pax_global_header00006660000000000000000000000064123365571130014520gustar00rootroot0000000000000052 comment=ac617dc41d13f1b0b29d280acd6068f0da6ec9d5 ripperX-2.8.0/000077500000000000000000000000001233655711300131605ustar00rootroot00000000000000ripperX-2.8.0/.gitignore000066400000000000000000000000261233655711300151460ustar00rootroot00000000000000*.o *~ *.gmo Makefile ripperX-2.8.0/ABOUT-NLS000066400000000000000000002671331233655711300144230ustar00rootroot000000000000001 Notes on the Free Translation Project *************************************** Free software is going international! The Free Translation Project is a way to get maintainers of free software, translators, and users all together, so that free software will gradually become able to speak many languages. A few packages already provide translations for their messages. If you found this `ABOUT-NLS' file inside a distribution, you may assume that the distributed package does use GNU `gettext' internally, itself available at your nearest GNU archive site. But you do _not_ need to install GNU `gettext' prior to configuring, installing or using this package with messages translated. Installers will find here some useful hints. These notes also explain how users should proceed for getting the programs to use the available translations. They tell how people wanting to contribute and work on translations can contact the appropriate team. 1.1 INSTALL Matters =================== Some packages are "localizable" when properly installed; the programs they contain can be made to speak your own native language. Most such packages use GNU `gettext'. Other packages have their own ways to internationalization, predating GNU `gettext'. By default, this package will be installed to allow translation of messages. It will automatically detect whether the system already provides the GNU `gettext' functions. Installers may use special options at configuration time for changing the default behaviour. The command: ./configure --disable-nls will _totally_ disable translation of messages. When you already have GNU `gettext' installed on your system and run configure without an option for your new package, `configure' will probably detect the previously built and installed `libintl' library and will decide to use it. If not, you may have to to use the `--with-libintl-prefix' option to tell `configure' where to look for it. Internationalized packages usually have many `po/LL.po' files, where LL gives an ISO 639 two-letter code identifying the language. Unless translations have been forbidden at `configure' time by using the `--disable-nls' switch, all available translations are installed together with the package. However, the environment variable `LINGUAS' may be set, prior to configuration, to limit the installed set. `LINGUAS' should then contain a space separated list of two-letter codes, stating which languages are allowed. 1.2 Using This Package ====================== As a user, if your language has been installed for this package, you only have to set the `LANG' environment variable to the appropriate `LL_CC' combination. If you happen to have the `LC_ALL' or some other `LC_xxx' environment variables set, you should unset them before setting `LANG', otherwise the setting of `LANG' will not have the desired effect. Here `LL' is an ISO 639 two-letter language code, and `CC' is an ISO 3166 two-letter country code. For example, let's suppose that you speak German and live in Germany. At the shell prompt, merely execute `setenv LANG de_DE' (in `csh'), `export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). This can be done from your `.login' or `.profile' file, once and for all. You might think that the country code specification is redundant. But in fact, some languages have dialects in different countries. For example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The country code serves to distinguish the dialects. The locale naming convention of `LL_CC', with `LL' denoting the language and `CC' denoting the country, is the one use on systems based on GNU libc. On other systems, some variations of this scheme are used, such as `LL' or `LL_CC.ENCODING'. You can get the list of locales supported by your system for your language by running the command `locale -a | grep '^LL''. Not all programs have translations for all languages. By default, an English message is shown in place of a nonexistent translation. If you understand other languages, you can set up a priority list of languages. This is done through a different environment variable, called `LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' for the purpose of message handling, but you still need to have `LANG' set to the primary language; this is required by other parts of the system libraries. For example, some Swedish users who would rather read translations in German than English for when Swedish is not available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. Special advice for Norwegian users: The language code for Norwegian bokma*l changed from `no' to `nb' recently (in 2003). During the transition period, while some message catalogs for this language are installed under `nb' and some older ones under `no', it's recommended for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and older translations are used. In the `LANGUAGE' environment variable, but not in the `LANG' environment variable, `LL_CC' combinations can be abbreviated as `LL' to denote the language's main dialect. For example, `de' is equivalent to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' (Portuguese as spoken in Portugal) in this context. 1.3 Translating Teams ===================== For the Free Translation Project to be a success, we need interested people who like their own language and write it well, and who are also able to synergize with other translators speaking the same language. Each translation team has its own mailing list. The up-to-date list of teams can be found at the Free Translation Project's homepage, `http://translationproject.org/', in the "Teams" area. If you'd like to volunteer to _work_ at translating messages, you should become a member of the translating team for your own language. The subscribing address is _not_ the same as the list itself, it has `-request' appended. For example, speakers of Swedish can send a message to `sv-request@li.org', having this message body: subscribe Keep in mind that team members are expected to participate _actively_ in translations, or at solving translational difficulties, rather than merely lurking around. If your team does not exist yet and you want to start one, or if you are unsure about what to do or how to get started, please write to `coordinator@translationproject.org' to reach the coordinator for all translator teams. The English team is special. It works at improving and uniformizing the terminology in use. Proven linguistic skills are praised more than programming skills, here. 1.4 Available Packages ====================== Languages are not equally supported in all packages. The following matrix shows the current state of internationalization, as of June 2010. The matrix shows, in regard of each package, for which languages PO files have been submitted to translation coordination, with a translation percentage of at least 50%. Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca +--------------------------------------------------+ a2ps | [] [] | aegis | | ant-phone | | anubis | | aspell | [] [] | bash | | bfd | | bibshelf | [] | binutils | | bison | | bison-runtime | [] | bluez-pin | [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] [] | cpio | | cppi | | cpplib | [] | cryptsetup | | dfarc | | dialog | [] [] | dico | | diffutils | [] | dink | | doodle | | e2fsprogs | [] | enscript | [] | exif | | fetchmail | [] | findutils | [] | flex | [] | freedink | | gas | | gawk | [] [] | gcal | [] | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] [] | gettext-tools | [] [] | gip | [] | gjay | | gliv | [] | glunarclock | [] [] | gnubiff | | gnucash | [] | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | | gold | | gpe-aerial | | gpe-beam | | gpe-bluetooth | | gpe-calendar | | gpe-clock | [] | gpe-conf | | gpe-contacts | | gpe-edit | | gpe-filemanager | | gpe-go | | gpe-login | | gpe-ownerinfo | [] | gpe-package | | gpe-sketchbook | | gpe-su | [] | gpe-taskmanager | [] | gpe-timesheet | [] | gpe-today | [] | gpe-todo | | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | [] [] | gsasl | | gss | | gst-plugins-bad | [] | gst-plugins-base | [] | gst-plugins-good | [] | gst-plugins-ugly | [] | gstreamer | [] [] [] | gtick | | gtkam | [] | gtkorphan | [] | gtkspell | [] [] [] | gutenprint | | hello | [] | help2man | | hylafax | | idutils | | indent | [] [] | iso_15924 | | iso_3166 | [] [] [] [] [] [] [] | iso_3166_2 | | iso_4217 | | iso_639 | [] [] [] [] | iso_639_3 | | jwhois | | kbd | | keytouch | [] | keytouch-editor | | keytouch-keyboa... | [] | klavaro | [] | latrine | | ld | [] | leafpad | [] [] | libc | [] [] | libexif | () | libextractor | | libgnutls | | libgpewidget | | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | [] | libidn | | lifelines | | liferea | [] [] | lilypond | | linkdr | [] | lordsawar | | lprng | | lynx | [] | m4 | | mailfromd | | mailutils | | make | | man-db | | man-db-manpages | | minicom | | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | | psmisc | | pspp | [] | pwdutils | | radius | [] | recode | [] [] | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] [] | sed | [] [] | sharutils | [] [] | shishi | | skencil | | solfege | | solfege-manual | | soundtracker | | sp | | sysstat | | tar | [] | texinfo | | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] [] | wyslij-po | | xchat | [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] | +--------------------------------------------------+ af am an ar as ast az be be@latin bg bn_IN bs ca 6 0 1 2 3 19 1 10 3 28 3 1 38 crh cs da de el en en_GB en_ZA eo es et eu fa +-------------------------------------------------+ a2ps | [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] () | anubis | [] [] | aspell | [] [] [] [] [] | bash | [] [] [] | bfd | [] | bibshelf | [] [] [] | binutils | [] | bison | [] [] | bison-runtime | [] [] [] [] | bluez-pin | [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] [] [] | cflow | [] [] | clisp | [] [] [] [] | coreutils | [] [] [] [] | cpio | | cppi | | cpplib | [] [] [] | cryptsetup | [] | dfarc | [] [] [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] | dink | [] [] [] | doodle | [] | e2fsprogs | [] [] [] | enscript | [] [] [] | exif | () [] [] | fetchmail | [] [] () [] [] [] | findutils | [] [] [] | flex | [] [] | freedink | [] [] [] | gas | [] | gawk | [] [] [] | gcal | [] | gcc | [] [] | gettext-examples | [] [] [] [] | gettext-runtime | [] [] [] [] | gettext-tools | [] [] [] | gip | [] [] [] [] | gjay | [] | gliv | [] [] [] | glunarclock | [] [] | gnubiff | () | gnucash | [] () () () () | gnuedu | [] [] | gnulib | [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] | gpe-aerial | [] [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] | gpe-conf | [] [] [] | gpe-contacts | [] [] [] | gpe-edit | [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] | gpe-taskmanager | [] [] [] [] | gpe-timesheet | [] [] [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] () [] [] [] | gprof | [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] | grub | [] [] | gsasl | [] | gss | | gst-plugins-bad | [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] () [] | gtkam | [] [] () [] [] | gtkorphan | [] [] [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | [] [] [] | hello | [] [] [] [] | help2man | [] | hylafax | [] [] | idutils | [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] [] [] [] () [] [] [] () | iso_3166_2 | () | iso_4217 | [] [] [] () [] [] | iso_639 | [] [] [] [] () [] [] | iso_639_3 | [] | jwhois | [] | kbd | [] [] [] [] [] | keytouch | [] [] | keytouch-editor | [] [] | keytouch-keyboa... | [] | klavaro | [] [] [] [] | latrine | [] () | ld | [] [] | leafpad | [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | [] [] | libgphoto2 | [] () | libgphoto2_port | [] () [] | libgsasl | | libiconv | [] [] [] [] [] | libidn | [] [] [] | lifelines | [] () | liferea | [] [] [] [] [] | lilypond | [] [] [] | linkdr | [] [] [] | lordsawar | [] | lprng | | lynx | [] [] [] [] | m4 | [] [] [] [] | mailfromd | | mailutils | [] | make | [] [] [] | man-db | | man-db-manpages | | minicom | [] [] [] [] | mkisofs | | myserver | | nano | [] [] [] | opcodes | [] [] | parted | [] [] | pies | | popt | [] [] [] [] [] | psmisc | [] [] [] | pspp | [] | pwdutils | [] | radius | [] | recode | [] [] [] [] [] [] | rosegarden | () () () | rpm | [] [] [] | rush | | sarg | | screem | | scrollkeeper | [] [] [] [] [] | sed | [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | | skencil | [] () [] | solfege | [] [] [] | solfege-manual | [] [] | soundtracker | [] [] [] | sp | [] | sysstat | [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] | tin | [] [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] | vice | () () | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] | wyslij-po | | xchat | [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] [] | +-------------------------------------------------+ crh cs da de el en en_GB en_ZA eo es et eu fa 5 64 105 117 18 1 8 0 28 89 18 19 0 fi fr ga gl gu he hi hr hu hy id is it ja ka kn +----------------------------------------------------+ a2ps | [] [] [] [] | aegis | [] [] | ant-phone | [] [] | anubis | [] [] [] [] | aspell | [] [] [] [] | bash | [] [] [] [] | bfd | [] [] [] | bibshelf | [] [] [] [] [] | binutils | [] [] [] | bison | [] [] [] [] | bison-runtime | [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] | buzztard | [] | cflow | [] [] [] | clisp | [] | coreutils | [] [] [] [] [] | cpio | [] [] [] [] | cppi | [] [] | cpplib | [] [] [] | cryptsetup | [] [] [] | dfarc | [] [] [] | dialog | [] [] [] [] [] [] [] | dico | | diffutils | [] [] [] [] [] [] [] [] [] | dink | [] | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] | exif | [] [] [] [] [] [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] [] | flex | [] [] [] | freedink | [] [] [] | gas | [] [] | gawk | [] [] [] [] () [] | gcal | [] | gcc | [] | gettext-examples | [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] | gettext-tools | [] [] [] [] | gip | [] [] [] [] [] [] | gjay | [] | gliv | [] () | glunarclock | [] [] [] [] | gnubiff | () [] () | gnucash | () () () () () [] | gnuedu | [] [] | gnulib | [] [] [] [] [] [] | gnunet | | gnunet-gtk | [] | gnutls | [] [] | gold | [] [] | gpe-aerial | [] [] [] | gpe-beam | [] [] [] [] | gpe-bluetooth | [] [] [] [] | gpe-calendar | [] [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] [] [] | gpe-contacts | [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] [] | gpe-go | [] [] [] [] [] | gpe-login | [] [] [] | gpe-ownerinfo | [] [] [] [] [] | gpe-package | [] [] [] | gpe-sketchbook | [] [] [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] | gpe-todo | [] [] [] | gphoto2 | [] [] [] [] [] [] | gprof | [] [] [] [] | gpsdrive | [] [] [] | gramadoir | [] [] [] | grep | [] [] | grub | [] [] [] [] | gsasl | [] [] [] [] [] | gss | [] [] [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] [] [] | gtkam | [] [] [] [] [] | gtkorphan | [] [] [] | gtkspell | [] [] [] [] [] [] [] [] [] | gutenprint | [] [] [] [] | hello | [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] [] | indent | [] [] [] [] [] [] [] [] | iso_15924 | [] () [] [] | iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | iso_3166_2 | () [] [] [] | iso_4217 | [] () [] [] [] [] | iso_639 | [] () [] [] [] [] [] [] [] | iso_639_3 | () [] [] | jwhois | [] [] [] [] [] | kbd | [] [] | keytouch | [] [] [] [] [] [] | keytouch-editor | [] [] [] [] [] | keytouch-keyboa... | [] [] [] [] [] | klavaro | [] [] | latrine | [] [] [] | ld | [] [] [] [] | leafpad | [] [] [] [] [] [] [] () | libc | [] [] [] [] [] | libexif | [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] [] | libgphoto2_port | [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] [] | libidn | [] [] [] [] | lifelines | () | liferea | [] [] [] [] | lilypond | [] [] | linkdr | [] [] [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] [] [] | m4 | [] [] [] [] [] [] | mailfromd | | mailutils | [] [] | make | [] [] [] [] [] [] [] [] [] | man-db | [] [] | man-db-manpages | [] | minicom | [] [] [] [] [] | mkisofs | [] [] [] [] | myserver | | nano | [] [] [] [] [] [] | opcodes | [] [] [] [] | parted | [] [] [] [] | pies | | popt | [] [] [] [] [] [] [] [] [] | psmisc | [] [] [] | pspp | | pwdutils | [] [] | radius | [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () () () () | rpm | [] [] | rush | | sarg | [] | screem | [] [] | scrollkeeper | [] [] [] [] | sed | [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] [] [] [] | shishi | [] | skencil | [] | solfege | [] [] [] [] | solfege-manual | [] [] | soundtracker | [] [] | sp | [] () | sysstat | [] [] [] [] [] | tar | [] [] [] [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | [] [] | util-linux-ng | [] [] [] [] [] [] | vice | () () () | vmm | [] | vorbis-tools | [] | wastesedge | () () | wdiff | [] | wget | [] [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] [] [] | +----------------------------------------------------+ fi fr ga gl gu he hi hr hu hy id is it ja ka kn 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne +-----------------------------------------------+ a2ps | [] | aegis | | ant-phone | | anubis | [] [] | aspell | [] | bash | | bfd | | bibshelf | [] [] | binutils | | bison | [] | bison-runtime | [] [] [] [] [] | bluez-pin | [] [] [] [] [] | bombono-dvd | | buzztard | | cflow | | clisp | | coreutils | [] | cpio | | cppi | | cpplib | | cryptsetup | | dfarc | [] | dialog | [] [] [] [] [] | dico | | diffutils | [] [] | dink | | doodle | | e2fsprogs | | enscript | | exif | [] | fetchmail | | findutils | | flex | | freedink | [] | gas | | gawk | | gcal | | gcc | | gettext-examples | [] [] [] [] | gettext-runtime | [] | gettext-tools | [] | gip | [] [] | gjay | | gliv | | glunarclock | [] | gnubiff | | gnucash | () () () () | gnuedu | | gnulib | | gnunet | | gnunet-gtk | | gnutls | [] | gold | | gpe-aerial | [] | gpe-beam | [] | gpe-bluetooth | [] [] | gpe-calendar | [] | gpe-clock | [] [] [] [] [] | gpe-conf | [] [] | gpe-contacts | [] [] | gpe-edit | [] | gpe-filemanager | [] [] | gpe-go | [] [] [] | gpe-login | [] | gpe-ownerinfo | [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] | gpe-su | [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] | gpe-timesheet | [] [] | gpe-today | [] [] [] [] | gpe-todo | [] [] | gphoto2 | | gprof | [] | gpsdrive | | gramadoir | | grep | | grub | | gsasl | | gss | | gst-plugins-bad | [] [] [] [] | gst-plugins-base | [] [] | gst-plugins-good | [] [] | gst-plugins-ugly | [] [] [] [] [] | gstreamer | | gtick | | gtkam | [] | gtkorphan | [] [] | gtkspell | [] [] [] [] [] [] [] | gutenprint | | hello | [] [] [] | help2man | | hylafax | | idutils | | indent | | iso_15924 | [] [] | iso_3166 | [] [] () [] [] [] [] [] | iso_3166_2 | | iso_4217 | [] [] | iso_639 | [] [] | iso_639_3 | [] | jwhois | [] | kbd | | keytouch | [] | keytouch-editor | [] | keytouch-keyboa... | [] | klavaro | [] | latrine | [] | ld | | leafpad | [] [] [] | libc | [] | libexif | | libextractor | | libgnutls | [] | libgpewidget | [] [] | libgpg-error | | libgphoto2 | | libgphoto2_port | | libgsasl | | libiconv | | libidn | | lifelines | | liferea | | lilypond | | linkdr | | lordsawar | | lprng | | lynx | | m4 | | mailfromd | | mailutils | | make | [] | man-db | | man-db-manpages | | minicom | [] | mkisofs | | myserver | | nano | [] [] | opcodes | | parted | | pies | | popt | [] [] [] | psmisc | | pspp | | pwdutils | | radius | | recode | | rosegarden | | rpm | | rush | | sarg | | screem | | scrollkeeper | [] [] | sed | | sharutils | | shishi | | skencil | | solfege | [] | solfege-manual | | soundtracker | | sp | | sysstat | [] | tar | [] | texinfo | [] | tin | | unicode-han-tra... | | unicode-transla... | | util-linux-ng | | vice | | vmm | | vorbis-tools | | wastesedge | | wdiff | | wget | [] | wyslij-po | | xchat | [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +-----------------------------------------------+ ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr +---------------------------------------------------+ a2ps | [] [] [] [] [] [] [] [] | aegis | [] [] [] | ant-phone | [] [] | anubis | [] [] [] | aspell | [] [] [] [] [] | bash | [] [] | bfd | [] | bibshelf | [] [] | binutils | [] [] | bison | [] [] [] | bison-runtime | [] [] [] [] [] [] [] | bluez-pin | [] [] [] [] [] [] [] [] | bombono-dvd | [] () | buzztard | [] [] | cflow | [] | clisp | [] [] | coreutils | [] [] [] [] [] [] | cpio | [] [] [] | cppi | [] | cpplib | [] | cryptsetup | [] | dfarc | [] | dialog | [] [] [] [] | dico | [] | diffutils | [] [] [] [] [] [] | dink | () | doodle | [] [] | e2fsprogs | [] [] | enscript | [] [] [] [] [] | exif | [] [] [] () [] | fetchmail | [] [] [] [] | findutils | [] [] [] [] [] | flex | [] [] [] [] [] | freedink | [] [] | gas | | gawk | [] [] [] [] | gcal | | gcc | [] | gettext-examples | [] [] [] [] [] [] [] [] | gettext-runtime | [] [] [] [] [] [] [] [] [] | gettext-tools | [] [] [] [] [] [] | gip | [] [] [] [] [] | gjay | | gliv | [] [] [] [] [] [] | glunarclock | [] [] [] [] [] | gnubiff | [] () | gnucash | [] () () () | gnuedu | [] | gnulib | [] [] [] [] | gnunet | | gnunet-gtk | | gnutls | [] [] | gold | | gpe-aerial | [] [] [] [] [] [] [] | gpe-beam | [] [] [] [] [] [] [] | gpe-bluetooth | [] [] | gpe-calendar | [] [] [] [] | gpe-clock | [] [] [] [] [] [] [] [] | gpe-conf | [] [] [] [] [] [] [] | gpe-contacts | [] [] [] [] [] | gpe-edit | [] [] [] | gpe-filemanager | [] [] [] | gpe-go | [] [] [] [] [] [] [] [] | gpe-login | [] [] | gpe-ownerinfo | [] [] [] [] [] [] [] [] | gpe-package | [] [] | gpe-sketchbook | [] [] [] [] [] [] [] | gpe-su | [] [] [] [] [] [] [] [] | gpe-taskmanager | [] [] [] [] [] [] [] [] | gpe-timesheet | [] [] [] [] [] [] [] [] | gpe-today | [] [] [] [] [] [] [] [] | gpe-todo | [] [] [] [] [] | gphoto2 | [] [] [] [] [] [] [] [] | gprof | [] [] [] | gpsdrive | [] [] | gramadoir | [] [] | grep | [] [] [] [] | grub | [] [] [] | gsasl | [] [] [] [] | gss | [] [] [] | gst-plugins-bad | [] [] [] [] [] [] | gst-plugins-base | [] [] [] [] [] | gst-plugins-good | [] [] [] [] [] | gst-plugins-ugly | [] [] [] [] [] [] | gstreamer | [] [] [] [] [] | gtick | [] [] [] | gtkam | [] [] [] [] [] [] | gtkorphan | [] | gtkspell | [] [] [] [] [] [] [] [] [] [] | gutenprint | [] [] | hello | [] [] [] [] | help2man | [] [] | hylafax | [] | idutils | [] [] [] [] [] | indent | [] [] [] [] [] [] [] | iso_15924 | [] [] [] [] | iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | iso_3166_2 | [] [] [] | iso_4217 | [] [] [] [] [] [] [] [] | iso_639 | [] [] [] [] [] [] [] [] [] | iso_639_3 | [] [] | jwhois | [] [] [] [] | kbd | [] [] [] | keytouch | [] [] [] | keytouch-editor | [] [] [] | keytouch-keyboa... | [] [] [] | klavaro | [] [] | latrine | [] [] | ld | | leafpad | [] [] [] [] [] [] [] [] [] | libc | [] [] [] [] | libexif | [] [] () [] | libextractor | | libgnutls | [] [] | libgpewidget | [] [] [] | libgpg-error | [] [] | libgphoto2 | [] [] | libgphoto2_port | [] [] [] [] [] | libgsasl | [] [] [] [] [] | libiconv | [] [] [] [] [] | libidn | [] [] | lifelines | [] [] | liferea | [] [] [] [] [] () () [] | lilypond | [] | linkdr | [] [] [] | lordsawar | | lprng | [] | lynx | [] [] [] | m4 | [] [] [] [] [] | mailfromd | [] | mailutils | [] | make | [] [] [] [] | man-db | [] [] [] | man-db-manpages | [] [] [] | minicom | [] [] [] [] | mkisofs | [] [] [] | myserver | | nano | [] [] [] [] | opcodes | [] [] | parted | [] [] [] [] | pies | [] | popt | [] [] [] [] | psmisc | [] [] [] | pspp | [] [] | pwdutils | [] | radius | [] [] [] | recode | [] [] [] [] [] [] [] [] | rosegarden | () () | rpm | [] [] [] | rush | [] [] | sarg | | screem | | scrollkeeper | [] [] [] [] [] [] [] [] | sed | [] [] [] [] [] [] [] [] [] | sharutils | [] [] [] [] | shishi | [] | skencil | [] [] | solfege | [] [] [] [] | solfege-manual | [] [] [] | soundtracker | [] | sp | | sysstat | [] [] [] [] | tar | [] [] [] [] | texinfo | [] [] [] [] | tin | [] | unicode-han-tra... | | unicode-transla... | | util-linux-ng | [] [] [] [] [] | vice | [] | vmm | [] | vorbis-tools | [] [] | wastesedge | [] | wdiff | [] [] | wget | [] [] [] [] [] [] [] | wyslij-po | [] [] [] | xchat | [] [] [] [] [] [] [] [] [] | xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | xkeyboard-config | [] [] [] | +---------------------------------------------------+ nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW +---------------------------------------------------+ a2ps | [] [] [] [] [] | 27 aegis | [] | 9 ant-phone | [] [] [] [] | 9 anubis | [] [] [] [] | 15 aspell | [] [] [] | 20 bash | [] [] [] | 12 bfd | [] | 6 bibshelf | [] [] [] | 16 binutils | [] [] | 8 bison | [] [] | 12 bison-runtime | [] [] [] [] [] [] | 29 bluez-pin | [] [] [] [] [] [] [] [] | 37 bombono-dvd | [] | 4 buzztard | [] | 7 cflow | [] [] [] | 9 clisp | | 10 coreutils | [] [] [] [] | 22 cpio | [] [] [] [] [] [] | 13 cppi | [] [] | 5 cpplib | [] [] [] [] [] [] | 14 cryptsetup | [] [] | 7 dfarc | [] | 9 dialog | [] [] [] [] [] [] [] | 30 dico | [] | 2 diffutils | [] [] [] [] [] [] | 30 dink | | 4 doodle | [] [] | 7 e2fsprogs | [] [] [] | 11 enscript | [] [] [] [] | 17 exif | [] [] [] | 16 fetchmail | [] [] [] | 17 findutils | [] [] [] [] [] | 20 flex | [] [] [] [] | 15 freedink | [] | 10 gas | [] | 4 gawk | [] [] [] [] | 18 gcal | [] [] | 5 gcc | [] [] [] | 7 gettext-examples | [] [] [] [] [] [] [] | 34 gettext-runtime | [] [] [] [] [] [] [] | 29 gettext-tools | [] [] [] [] [] [] | 22 gip | [] [] [] [] | 22 gjay | [] | 3 gliv | [] [] [] | 14 glunarclock | [] [] [] [] [] | 19 gnubiff | [] [] | 4 gnucash | () [] () [] () | 10 gnuedu | [] [] | 7 gnulib | [] [] [] [] | 16 gnunet | [] | 1 gnunet-gtk | [] [] [] | 5 gnutls | [] [] [] | 10 gold | [] | 4 gpe-aerial | [] [] [] | 18 gpe-beam | [] [] [] | 19 gpe-bluetooth | [] [] [] | 13 gpe-calendar | [] [] [] [] | 12 gpe-clock | [] [] [] [] [] | 28 gpe-conf | [] [] [] [] | 20 gpe-contacts | [] [] [] | 17 gpe-edit | [] [] [] | 12 gpe-filemanager | [] [] [] [] | 16 gpe-go | [] [] [] [] [] | 25 gpe-login | [] [] [] | 11 gpe-ownerinfo | [] [] [] [] [] | 25 gpe-package | [] [] [] | 13 gpe-sketchbook | [] [] [] | 20 gpe-su | [] [] [] [] [] | 30 gpe-taskmanager | [] [] [] [] [] | 29 gpe-timesheet | [] [] [] [] [] | 25 gpe-today | [] [] [] [] [] [] | 30 gpe-todo | [] [] [] [] | 17 gphoto2 | [] [] [] [] [] | 24 gprof | [] [] [] | 15 gpsdrive | [] [] [] | 11 gramadoir | [] [] [] | 11 grep | [] [] [] | 10 grub | [] [] [] | 14 gsasl | [] [] [] [] | 14 gss | [] [] [] | 11 gst-plugins-bad | [] [] [] [] | 26 gst-plugins-base | [] [] [] [] [] | 24 gst-plugins-good | [] [] [] [] | 24 gst-plugins-ugly | [] [] [] [] [] | 29 gstreamer | [] [] [] [] | 22 gtick | [] [] [] | 13 gtkam | [] [] [] | 20 gtkorphan | [] [] [] | 14 gtkspell | [] [] [] [] [] [] [] [] [] | 45 gutenprint | [] | 10 hello | [] [] [] [] [] [] | 21 help2man | [] [] | 7 hylafax | [] | 5 idutils | [] [] [] [] | 17 indent | [] [] [] [] [] [] | 30 iso_15924 | () [] () [] [] | 16 iso_3166 | [] [] () [] [] () [] [] [] () | 53 iso_3166_2 | () [] () [] | 9 iso_4217 | [] () [] [] () [] [] | 26 iso_639 | [] [] [] () [] () [] [] [] [] | 38 iso_639_3 | [] () | 8 jwhois | [] [] [] [] [] | 16 kbd | [] [] [] [] [] | 15 keytouch | [] [] [] | 16 keytouch-editor | [] [] [] | 14 keytouch-keyboa... | [] [] [] | 14 klavaro | [] | 11 latrine | [] [] [] | 10 ld | [] [] [] [] | 11 leafpad | [] [] [] [] [] [] | 33 libc | [] [] [] [] [] | 21 libexif | [] () | 7 libextractor | [] | 1 libgnutls | [] [] [] | 9 libgpewidget | [] [] [] | 14 libgpg-error | [] [] [] | 9 libgphoto2 | [] [] | 8 libgphoto2_port | [] [] [] [] | 14 libgsasl | [] [] [] | 13 libiconv | [] [] [] [] | 21 libidn | () [] [] | 11 lifelines | [] | 4 liferea | [] [] [] | 21 lilypond | [] | 7 linkdr | [] [] [] [] [] | 17 lordsawar | | 1 lprng | [] | 3 lynx | [] [] [] [] | 17 m4 | [] [] [] [] | 19 mailfromd | [] [] | 3 mailutils | [] | 5 make | [] [] [] [] | 21 man-db | [] [] [] | 8 man-db-manpages | | 4 minicom | [] [] | 16 mkisofs | [] [] | 9 myserver | | 0 nano | [] [] [] [] | 21 opcodes | [] [] [] | 11 parted | [] [] [] [] [] | 15 pies | [] [] | 3 popt | [] [] [] [] [] [] | 27 psmisc | [] [] | 11 pspp | | 4 pwdutils | [] [] | 6 radius | [] [] | 9 recode | [] [] [] [] | 28 rosegarden | () | 0 rpm | [] [] [] | 11 rush | [] [] | 4 sarg | | 1 screem | [] | 3 scrollkeeper | [] [] [] [] [] | 27 sed | [] [] [] [] [] | 30 sharutils | [] [] [] [] [] | 22 shishi | [] | 3 skencil | [] [] | 7 solfege | [] [] [] [] | 16 solfege-manual | [] | 8 soundtracker | [] [] [] | 9 sp | [] | 3 sysstat | [] [] | 15 tar | [] [] [] [] [] [] | 23 texinfo | [] [] [] [] [] | 17 tin | | 4 unicode-han-tra... | | 0 unicode-transla... | | 2 util-linux-ng | [] [] [] [] | 20 vice | () () | 1 vmm | [] | 4 vorbis-tools | [] | 6 wastesedge | | 2 wdiff | [] [] | 7 wget | [] [] [] [] [] | 26 wyslij-po | [] [] | 8 xchat | [] [] [] [] [] [] | 36 xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 xkeyboard-config | [] [] [] | 22 +---------------------------------------------------+ 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 Some counters in the preceding matrix are higher than the number of visible blocks let us expect. This is because a few extra PO files are used for implementing regional variants of languages, or language dialects. For a PO file in the matrix above to be effective, the package to which it applies should also have been internationalized and distributed as such by its maintainer. There might be an observable lag between the mere existence a PO file and its wide availability in a distribution. If June 2010 seems to be old, you may fetch a more recent copy of this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date matrix with full percentage details can be found at `http://translationproject.org/extra/matrix.html'. 1.5 Using `gettext' in new packages =================================== If you are writing a freely available program and want to internationalize it you are welcome to use GNU `gettext' in your package. Of course you have to respect the GNU Library General Public License which covers the use of the GNU `gettext' library. This means in particular that even non-free programs can use `libintl' as a shared library, whereas only free software can use `libintl' as a static library or use modified versions of `libintl'. Once the sources are changed appropriately and the setup can handle the use of `gettext' the only thing missing are the translations. The Free Translation Project is also available for packages which are not developed inside the GNU project. Therefore the information given above applies also for every other Free Software Project. Contact `coordinator@translationproject.org' to make the `.pot' files available to the translation teams. ripperX-2.8.0/BUGS000066400000000000000000000032221233655711300136420ustar00rootroot00000000000000* If cdparanoia returns something that cannot be parsed suring the scan, then ripperX will simply hang on startup. This is known to occur on Fedora Core 3 when the CDROM device for cdparanoia has been forced (using -d ) and that device is not available. In this specific situation, you can either edit your ~/.ripperXrc by hand, or delete it. ripperX should be able to detect the cdparanoia error output correctly if the cdrom device is not forced. * Sometimes the calculated remaining time is way off. This happens when cdparanoia finds a scratch or jitter on the CD and it must spend a LOT of extra time fixing things. The calculation is based on an average of the number of sectors read in a certain time period. So all it takes is a few jittery sectors to throw the completion time off. * Sometimes, especially if using the non-http cddb protocol, ripperX will appear to hang while looking up the CDDB info. This may because the network connection is very slow, or it is having trouble doing a DNS lookup. * If ripperX is ever acting strange, especially after upgrading, try deleting your ~/.ripperXrc file. This should reset things to the defaults. * Don't delete the directory you started ripperX in while running ripperX. Also, do not delete any of the directories used to store the mp3 or wav files while the program is running. * Sometimes with new CDs you will get a CDDB error 22: CD not found in database. You can try using another CDDB server. The default one is freedb.org, which sometimes is not as up to date as cddb.com. Try changing the CDDB server to something like us.cddb.com (port 888) or us.cddb.com/~cddb/cddb.cgi (for HTTP). ripperX-2.8.0/CHANGES000066400000000000000000000514521233655711300141620ustar00rootroot00000000000000Version 2.8.0 2014-03-02 * Convert repositoy from SVN to Git. * Switch langauge from C to C++. * Use taglib instead of libid3 & various helper programs. * Don't strip unsafe characters from ID3 tags (not needed with library). * Strip "?" from file names (needed for FAT32, etc). * Add eject button. * Adjust widget alignment; replace some xpms with equivalent builtins. * When only creating .wav files, save metadata in corresponding .inf file. * Fix bugs that caused select buttons to get out of sync. * Add French translation. Thank you to appzer0. * Remove bogus line from ripperX.pc ------------------------------------------------------------------------- Version 2.7.3 2010-11-13 * Add Glacian translation. Thank you to Miguel Bouzada. * Add German translation. Thank you to Chris Leick. (Debian #550207) * Increase width of main menu slightly ("Go" button was being clipped). * Automatically select all tracks after a CDDB lookup - by popular demand. * Correct typos in error messages. Thank you Chris Leick. (Debian #550208) * Apply buffer overflow patches (LP #514739) * Apply patch to no longer put underscore instead of space in id3 tag (LP #671852) * distclean target removes .gmo translation build artifacts * Apply patches from Robert Turnbull - Add year to Vorbis tags - Tags FLAC encoded files with metaflac ------------------------------------------------------------------------- Version 2.7.2 Remove auto-generated files from SVN source tree. You should be able to build the package from the source tarball by running ./configure ; make. If that fails, make sure you have automake, libtool, and autoconf installed and use ./autogen.sh. ------------------------------------------------------------------------- Version 2.7.1 2008-02-11 - Italian translation added. 2008-02-01 - Spanish translation added. 2008-01-27 * significant contributions from twb (at) users (dot) sourceforge (dot) net! - Revamp build system to use autoconf, automake, and libtool. autoconf >= 2.60 is needed, as well as recent automake and autoconf - Internationalization support has been added. gettext >= 0.15.x is required - GTK2 interface GTK2 >= 2.6.x is required Glib >= 2.6.x is required Not all deprecated GTK functions have been replaced yet. I've add the ./configure flag --disable-deprecated, as a dev helper. Currently, as there are still deprecated functions, a build will fail if this flag is used. * fix gtk_start_pack_box assertion error messages. * add ripperX.xpm icon file 2008-01-20/tm * apply child reaper fix from Paul Fox to correctly clean up plugin processes when running under dash. * remove internal versions of id3.c and id3lib.c and use libid3 directly - migrate internal functions to misc_utils.c * remove refererence to xpms.h * add to source files using str functions * updated ./src/Makefile.in to link against libz (used by libid3) * updated cdplay arguments * replaced splay with play (typically part of the sox package) * inverted the order of changes in this file ------------------------------------------------------------------------- Version 2.7.0 2006-04-16 * applied ID3v2 patches (provided by Ben Zonneveld - thanks!) - compilation now depends on id3lib * changed how vorbiscomment is invoked for tagging OGG files; the OGG file no longer has to be copied during tagging ------------------------------------------------------------------------- Version 2.6.7 2005-11-06 * misc_utils.c: file_path_without_name() null-terminates returned string (fixes problem with playlists) * select_frame_handler.c: no longer auto-selects a track when it receives cursor focus for editing. This circumvents the call to put_track_title() which was causing the cursor to jump to the end of the text buffer. ------------------------------------------------------------------------- 2005-06-03 * err_dialog_handler.h: added two new error errno codes for cdparanoia * ripper_encoder_manipulation.c: tweaked the cdparanoia processing code to work with Fedora Core 3 and to detect no disc as compared to no perms (unless -sv is being used); updated error messages related to cdparanoia ------------------------------------------------------------------------- Version 2.6.5 2005-06-01 * fixed ID3v1 problem with vorbis tags in OGG files where song titles are longer than 30 characters * added basic m3u playlist support (unqualified filenames in target dir); the config dialog option is in "Files" * modified df check in misc_utils.c to use -P (POSIX output), to ignore stderr, and to tail only the last line returned ------------------------------------------------------------------------- Version 2.6.4 2004-11-21 * fixed awk field fetched from df in misc_utils.c (SF #869947) * added more bitrate options (32, 40, 48, 80, 224) * added support for toolame encoder; note that toolame output files are given the .mp3 extension (even though they are technically MPEG layer 2 files). This is done purposefully to not confuse the issue for folks, as I think that most audio players out there today recognize MPEG layer 2 formatted files without issue. ------------------------------------------------------------------------- Version 2.6.3 2004-10-24 * applied priority patch; allows the encoder nice priority to be set (SF #870373) * applied AMD64 patches - thanks to Stefan Fuchs (SF #920105) * hacked on cddb.c to try to address CDDB DTITLE entries without ' / ' between the artist and disc title (this is an attempt to address SF #882144) ------------------------------------------------------------------------- Version 2.6.2 2004-10-09 * fix put_track_title() in misc_utils.c to explicitly null-terminate the string after removing trailing spaces (thanks to Ken Wakasa and Clemens Gerlach for submitting patches) * fix to real_local_file() in cddb.c to add the path separator when accessing local CDDB files (instead of querying them from a CDDB server) (thanks to Steve Bresson for the patch) * fixed offset [ tracknum ] function definition problems in cddbp.c (SF #1030728) * changed "Encode to mp3" to simply "Encode" (SF #963164) changed "Rip wav" to "Rip to WAV" as well ------------------------------------------------------------------------- Version 2.6.1 2004-01-04 tony mancill * Rick Coupland provided significant patches to the 2.6.0 source tree, including: - Handle track artist data in freedb data & use it in ID3 tags. - Allow entry by user of track artists in the track name using the same format as freedb (Artist / Title). - Config data is now saved when the OK button is clicked rather than waiting until the program exits. - The MP3 "File name format" config entry from the General tab is now used as the default track name format. The Wav "File name format" config entry is not used at all. Actual file names are always constructed using the "Filename format string" from the Files configuration tab. * functions in cddp.c now return -1 if they fail to read from the CDDB server (thanks to Erid de Castro Lopo for the bug report and patch via the Debian BTS) -------------------------------------------------------------------------------- Version 2.6 2003-09-20 Dave Cinege * Upped version number to 2.6 * Names now fully unix safe! * Cddb names are converted before entry into the editting window * Wrote high_ascii_to_low_ascii() * Rewrote remove_non_unix_chars() (Renamed from remove_non_unix() ) * Rewrote convert_spaces() and convert_slashes() * ASCII 160-255 now converted to printable lower ascii equivilents * Unprintable/Evil chars are removed instead of replaced (shrinks str) * Convert title/names only, user supplied path is not altered * Arguments surrounded by single quotes, for shell safeness * rmdir wav work dir, if wav files are not kept && wav_dir != mp3_dir * Prettied up 'finished' window * Fixed disk space check (wrong position, awk $3 !$4) * Time Info in progress dialog made 275 wide to fit text * Ripping progress dialog made 130 wide to fit text * Fixed ripping progress (cdparanoia 9.8) * Now use glibc openpty(). Requires libutil. * Fixed cddb parsing of Artist / Album. UNFIXABLE BUG: Artist contains " / " -------------------------------------------------------------------------------- Version 2.5+ Debian package Tony Mancill ? [ 784517 ] RipperX (latest) has percentage error. ? [ 778860 ] ogg files created in wrong directory * added FLAC support (the only major change) * set LC_NUMERIC locale to POSIX (to fix decimal point problems in the plugins) * halfway fixed the non-Unix character in filename problem. (Thanks for finishing this. I need to look more closely at how you did it. The only thing that occurs to me to watch out for is internationalization.) * hacked the oggenc plugin so that progress bars work better with the 1.0 release of vorbis tools -------------------------------------------------------------------------------- Version 2.5 2003/01/18 -fix file/albumdir names -vorbis tagging now works ------------------------------------------------------------------------------- Version 2.4 2002/09/23 -integrated debian patch *don't give away user info on cddb query *correct commandline options for lame *correct commandline for gogo *correct extension for ogg files -fixed segfault in error dialogs -make ogg progress bars move -always write id3 tag when requested -sync up select_frame and main data -check diskspace before even attempting to rip/encode -disable plugins when no encoder for it found -check if wav/mp3 path exists, if not, propose to create it -enable album dirs and id3tags by default ------------------------------------------------------------------------------- Version 2.3 2001/11/19 -Integrated most outstanding patches -fixed some annoying bugs -updated some docs ------------------------------------------------------------------------------- Version 2.2 08/07/2001 Jos Dehaes -Integrated some contributed patches -updated some docs -added support to edit the album and the artist ------------------------------------------------------------------------------- Version 2.1 30/01/2001 Jos Dehaes -Fixed bug in gogo-plugin so progressmeters actually move -wrote oggvorbis plugin - note that vorbis tagging doesn't work... -Changed the announce string for CDDB on cddb.com, since they won't allow ripperX as client anymore -Fixed SEGV when CDDB lookup fails (or rather when the dialog is destoryed) ----------------------------------------------------------------------------- Version "Scott didn't update the CHANGES file" 10/19/2000 Nils Philippsen - configure and use lame's VBR quality feature ----------------------------------------------------------------------------- Version 2.0 9/12/00 Scott Sams -Fixed bug when ripping takes longer than encoding. -Tracks Done is now reset properly -New ripperX icon for Gnome TeJun Huh -Moved files for ripperX into subdirectory named 'src' and files for plugins into subdirectory named 'plugins' -Rewrote configure.in, Makefile.in. It's now cleaner & easier to modify. -The results of tests done by configure is available via src/config.h and plugins/config.h. Added '#include "config.h"' to common.h. However, there remains a lot of work to make ripperX portable. -Modified INSTALL document and ripperX.spec to reflect the changes. -Merged misc.h/c into misc_utils.h/c. -Moved #include directives to where they belong. -Moved prototypes for functions which are not interface from h files to corresponding c files. Bryan Whitehead -Fixed automatic lookup of CD when no CD was in drive. -Disabled CDDB and GO buttons when no cd in drive. Dax Kelson -Updated SPEC to use $RPM_BUILD_ROOT, changelog, docs & strip binaries -Created GNOME ".desktop" file so ripperX shows up on the menu -Files created as group writable, enabling shared directory ripping ----------------------------------------------------------------------------- Version 1.9 12/29/1999 Scott Sams -MAJOR Change: ripperX can now rip and encode in parallel! This makes ripperX MUCH more efficient and faster. -rewrote job_controller and calc_stat to support parallel mode -updated find_next_job to support parallel mode -Created a new "Files" tab in the config window. Moved stuff around. -removed the "Abort All" button. Abort is now Abort All. (changed for simplicity in parallel mode) -removed "Auto append .wav or .mp3" option for simplicity and also because it HAS to be checked in order for ripperX to work properly. -major changes to status_frame_handler -stat_ struct changed and moved into common.h -changed calculation for total_progress, time_remaining, etc. -make_mp3_from_existing_wav now works. If the wav file of the same name already exists, it will not be ripped again. -changes in lock_file to look for existing wav files -remove changed to unlink to prevent deleting empty directories -.mp3 should no longer be needlessly appended -wav files should now have CDDB names instead of track1.wav, etc. -cleaned up references to some old stuff in the code -removed the cdparanoia_create_argv function since it is not used. -ripperX will no longer hang if there is a data CD in the drive. ----------------------------------------------------------------------------- Version 1.2 12/14/1999 Scott Sams -New icons and new ripperX logo! Thanks to The Gimp. -VBR for xingmp3 now works like it should: The -V parameter is derived from the bitrate, and the -B no longer is passed. Thanks to Derek Harding and Dax Kelson -Can now create subdirs like "artist/album/file.mp3" -No longer segfaults with cdparanoia 9.7 -Error dialog cosmetic changes: left alignment for all messages -Made some error messages less cryptic Dirk Katzenbach -Fix the cddb disc id calculation ----------------------------------------------------------------------------- Version 1.1 11/11/1999 Scott Sams -Plugins for FHG Encoders (l3enc v 2.72 and mp3enc v3.1) -Workaround for l3enc not liking spaces in file names -Updated lame plugin for version 3.50 NOTE: You must upgrade to lame v3.50, as 3.13 will NOT work with this plugin. -Bug fix for GOGO Encoder. NOTE: You must use gogo v2.22 or higher -Bug fix for cdparanoia not searching for drive -Changed default cddb server to freedb.org instead of cddb.com, because it is the "right" thing to do. Paul Rahme -Patch to use CDDB through an HTTP proxy server Carl Seutter -CDDB cache directory Derek Harding -Bugfix for mp3_ratio messing up -Automatic CDDB lookup on startup -Bugfix for artist & title not getting shown ----------------------------------------------------------------------------- Version 1.0 Scott Sams -Added plugin for Xing Mp3 Encoder contributed by Derek Harding -Added plugin for GoGo Mp3 Encoder contributed by Justin Buist -Added format string for the "create subdirectory" option -CDDB HTTP bugfix -Fix for plugins not picking up all options contributed by Alfred Weyers -Changed command line cd player from dcd to cdplay, since it comes with RedHat 6.0 -No longer writes files with non ASCII characters -Minor code cleanups TeJun -Plugged a HUGE memory leak Thanks to Steven Wilcoxon for the bug report! -Added locale support -Removed all compiler warnings Ralf Engels -Patch for better error checking so files won't be deleted accidently ----------------------------------------------------------------------------- Version 0.99 Scott Sams *NOTE* You must delete your old .ripperXrc file before trying this version! ** -Plugin for the Lame mp3 encoder contributed by Justin Buist -Plugin for the BladeEnc mp3 encoder -Lame is now default encoder -Optionally generate an ID3 tag from CDDB information -Added more encoding options for all encoders: Variable bitrate High quality encoding CRC error protection -Added more encoding bitrates -Status popup window when ripping or encoding is finished -Fixes for CDs with more than 50 tracks -Fixed some cddb bugs -Convert Underscores now converts non-unix characters -Album subdirectory obeys convert underscores option -Reworked how encoder options are stored in config file -No longer need "%w" "%m" in extra options space ----------------------------------------------------------------------------- Version 0.98 Scott Sams *NOTE* You must delete your old .ripperXrc file before trying this version! ** -HTTP Proxy for CDDB -Configuration panels for mp3 encoders and cdparanoia -Added format string for cddb file names -Changed default refresh from 5 seconds to 1 second -Permissions on created files fixed -Changed default values in config_rw.c (must delete old .ripperXrc) -Fixed the hang if you clicked on CDDB button while offline -Track number now in double digit format, e.g. Track 02 ----------------------------------------------------------------------------- Version 0.97 Scott Sams Made ripperX work with newer versions of cdparanoia. Improved the parsing of cdparanoia -Q. Improved the reporting of cdparanoia's error messages. Fixed "Select All Tracks" button to have the correct behavior. Made SRPM and i386 RPMS of ripperX. ----------------------------------------------------------------------------- Version 0.96 Scott Sams Greatly simplified the select_frame_handler interface. Instead of having 2 tiny text boxes, there is one big textbox that will generate names for both the wav and the mp3 file. Took out the play buttons for playing the wav and mp3. I might put them back in, but I thought they cluttered the interface too much (and I never used them anyway). Made a radiobox for selecting the action (rip or encode). Wrote a plugin for the ISO encoder version 2 (the "encode" program). The default encoder is now this one. It is free and produces very good quality mp3s. All the plugins are now included in the plugins directory, instead of a separate package. They will be built and installed. Made a new logo for RipperX in the Gimp. :-) Fixed a bug for file names with spaces. The solution was to place double quotes around the commands in the config dialog. e.g. encode "%w" "%m" Allocated more space for buffers MAX_COMMAND_LENGTH, MAX_FILE_NAME_LENGTH, MAX_FILE_PATH_LENGTH and MAX_TITLE_LENGTH. For the next version, I will make some SRPMS of ripperX, cdparanoia, dcd and the ISO encoder. Incorporated patches from ripperX-0.9z and ripperX-0.9b-segfix2.diff and ripperX-0.9b-dk.diff. Added checkbutton for creating subdirectories. Made everything work with autoconf again. ----------------------------------------------------------------------------- Version 0.95-devel1 Tejun Added support for plugin interface and cleaned up source code a little bit. Now ripperX deletes WAV file when a job is aborted. ----------------------------------------------------------------------------- Version 0.9b TeJun Changed the way CDDB displays its progress. Now it uses statusbar instead of separate progress window. Also the FIXME of V0.85a has been corrected. Changed the config read/write part such that it can handle older configuration files properly. Changed the way ripperX handles file names such that the names are kept after a ripping/encoding session. version number has been bumped up to 0.9b meaning it's a major release. ----------------------------------------------------------------------------- Version 0.85a Scott Sams Fixed a few segfault bugs and increased size of track titles buffer. Added error checking via error_handler dialog boxes. Added a progress bar. FIXME: Still does not update correctly in the beginning and while connecting to server. Added Button for connecting to CDDB server. Added Notebook for configuring CDDB server and 2 new options - Convert Spaces to underscores, and Include artist name in file name. "Borrowed" CDDB icon from www.cddb.com and modified it using the Gimp. ----------------------------------------------------------------------------- Version 0.84a Scott Sams Added Preliminary CDDB support. No error checking or configurability yet. CDDB support is based on code from cccd, which IMHO had the nicest abstraction of the CDDB protocol from actual implementation. cccd was written by Sven Riedel ripperX-2.8.0/COPYING000066400000000000000000000430761233655711300142250ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 675 Mass Ave, Cambridge, MA 02139, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19yy name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License. ripperX-2.8.0/FAQ000066400000000000000000000063761233655711300135260ustar00rootroot00000000000000ripperX FAQ jos.dehaes@bigfoot.com Last updated: 2001/11/19 AS YOU MAY HAVE NOTICED THIS FAQ IS *WAY* OUT OF DATE. PLEASE CHECK THE NEW FAQ ON RIPPERX.SOURCEFORGE.NET (You might also find what you're looking for the BUGS file.) Q. I keep getting "Error Code 14" A. This is usually because cdparanoia is not configured properly. If you are not running ripperX as root, you will need to either give your userid read access to your cdrom device, or make cdparanoia setuid root. A. cdparanoia may have trouble with your cdrom drive. Try running cdparanoia -vQ and you should see a table of contents appear. If you do not see this, check the cdparanoia troubleshooting page and FAQ at: http://www.xiph.org/paranoia/index.html Q. Sometimes I get "Error Code 22: CD not in database" A. This is because ripperX uses freedb.org, which sometimes is not as up to date as cddb.com, especially for new titles. (And vice versa can be true!) I believe freedb.org is the "Right Thing To Do", and that is why freedb is the default CDDB server. If you keep getting Error 22, there are 2 things you can do: 1) open gtcd or similar program and with the CDDB server set to freedb.org, fill in the information and submit it. 2) Change the CDDB server in ripperX to us.cddb.com (port 888) or us.cddb.com/~cddb/cddb.cgi (port 80 for HTTP). Q. How do I change the name of my files to have the track number, album name, etc? A. In the Files tab of the configuration window, you will see a File format string text box. You can name your files anything you want and the special % variables will be replaced with CDDB information. %s = Song Title %a = Artist Name %# = Track Number %v = Album Name for example, the default string is: %a - %s which will produce mp3s like so: Artist Name - Song Title.mp3 Q. How do I make a directory structure like Artist Name/Album Name/01 - Song Name.mp3? A. Make sure the "Create album subdirectory for each CD" option is checked. For the Directory format string, use: %a/%v and for the File format string, use: %# - %s Q. How can I rip the whole CD first, then encode everything later? A. Select all the tracks, and select the "Rip wav" option. All the tracks will be ripped. You can then quit ripperX and come back later. As long as the "Make mp3 from existing wav file" option under the General tab is checked, you will be able to encode the files later without having to rip them again. This works as long as the file names in the text boxes are exactly the same as they were when they were ripped. Q. How do I keep the wav files after encoding them? A. Check the "Keep wav files" option in the General tab. Q. What about SMP support? A. There are no plans for ripperX to support SMP directly. However, if you use one of the SMP enabled encoders, such as gogo and (I think) lame, SMP support will be totally transparent to ripperX. If quality is a major concern, perhaps enough people can petition some of the commercial encoder companies to make an SMP version of their encoder. Caveats: 1. The stop button may not stop the CD playing. This is because the "cdplay" program that is shipped with RedHat 6.0 is broken and cannot stop playing a CD. 2. Sometimes the freedb.org CDDB server will not have a CD in it. Try changing the URL to us.cddb.com/~cddb/cddb.cgi ripperX-2.8.0/INSTALL000066400000000000000000000024531233655711300142150ustar00rootroot00000000000000The installation procedure is 1. ./configure 2. make 3. su -c "make install" If you can't be root, use '--prefix=' option when running configure. To build ripperX, you need GTK2 >= 2.6, Glib >= 2.6, and gettext >= 0.15. You will also need id3lib (http://id3lib.sourceforge.net/) If you have autoconf >= 2.60 and recent versions of automake and libtool, you can re-libtoolize the build environment by using autogen.sh, which will run configure for you. You will need cdparanoia to rip digital audio from your CD-ROM. You can get the latest version at http://www.xiph.org/paranoia/index.html (Hint: Use the -d option to spec your cdrom drive.) You will also need one of the supported OGG, FLAC, or MP3 encoders. Well, that's all. Have fun. ------------------------------------------------------------------------- ripperX - a graphical interface to rip cd audio and encode mp3 files. written by TeJun, Huh, Scott Sams and Jos Dehaes jos.dehaes@bigfoot.com sbsams@eos.ncsu.edu wineking@adam.kaist.ac.kr Version 2.6 by: Tony Mancill Dave Cinege Version 2.7 by: Tony Mancill Paul Mangan and patches contributed by Paul Fox and Version 2.8 by: Steve Sanbeg ripperX-2.8.0/Makefile.am000066400000000000000000000005751233655711300152230ustar00rootroot00000000000000AUTOMAKE_OPTIONS = dist-bzip2 SUBDIRS = po src plugins man_MANS = \ ripperX.1 EXTRA_DIST = config/config.rpath m4/ChangeLog \ BUGS \ CHANGES \ FAQ \ README.plugin \ README.plugin_spec_v0.1 \ README.plugin_tester \ bootstrap \ ripperX.desktop \ ripperX.pc.in \ $(man_MANS) pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = ripperX.pc ACLOCAL_AMFLAGS = -I m4 ripperX-2.8.0/Makefile.in000066400000000000000000000716661233655711300152450ustar00rootroot00000000000000# Makefile.in generated by automake 1.13.3 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ subdir = . DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/configure $(am__configure_deps) \ $(srcdir)/config.h.in $(srcdir)/ripperX.pc.in ABOUT-NLS \ AUTHORS COPYING ChangeLog INSTALL NEWS README TODO \ config/config.guess config/config.rpath config/config.sub \ config/depcomp config/install-sh config/missing \ $(top_srcdir)/config/config.guess \ $(top_srcdir)/config/config.rpath \ $(top_srcdir)/config/config.sub \ $(top_srcdir)/config/install-sh $(top_srcdir)/config/missing ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ configure.lineno config.status.lineno mkinstalldirs = $(install_sh) -d CONFIG_HEADER = config.h CONFIG_CLEAN_FILES = ripperX.pc CONFIG_CLEAN_VPATH_FILES = AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = SOURCES = DIST_SOURCES = RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ ctags-recursive dvi-recursive html-recursive info-recursive \ install-data-recursive install-dvi-recursive \ install-exec-recursive install-html-recursive \ install-info-recursive install-pdf-recursive \ install-ps-recursive install-recursive installcheck-recursive \ installdirs-recursive pdf-recursive ps-recursive \ tags-recursive uninstall-recursive am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ *) f=$$p;; \ esac; am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; am__install_max = 40 am__nobase_strip_setup = \ srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` am__nobase_strip = \ for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" am__nobase_list = $(am__nobase_strip_setup); \ for p in $$list; do echo "$$p $$p"; done | \ sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ if (++n[$$2] == $(am__install_max)) \ { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ END { for (dir in files) print dir, files[dir] }' am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' am__uninstall_files_from_dir = { \ test -z "$$files" \ || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ $(am__cd) "$$dir" && rm -f $$files; }; \ } man1dir = $(mandir)/man1 am__installdirs = "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgconfigdir)" NROFF = nroff MANS = $(man_MANS) DATA = $(pkgconfig_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive am__recursive_targets = \ $(RECURSIVE_TARGETS) \ $(RECURSIVE_CLEAN_TARGETS) \ $(am__extra_recursive_targets) AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ cscope distdir dist dist-all distcheck am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ $(LISP)config.h.in # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ if test -d "$(distdir)"; then \ find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -rf "$(distdir)" \ || { sleep 5 && rm -rf "$(distdir)"; }; \ else :; fi am__post_remove_distdir = $(am__remove_distdir) am__relativize = \ dir0=`pwd`; \ sed_first='s,^\([^/]*\)/.*$$,\1,'; \ sed_rest='s,^[^/]*/*,,'; \ sed_last='s,^.*/\([^/]*\)$$,\1,'; \ sed_butlast='s,/*[^/]*$$,,'; \ while test -n "$$dir1"; do \ first=`echo "$$dir1" | sed -e "$$sed_first"`; \ if test "$$first" != "."; then \ if test "$$first" = ".."; then \ dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \ dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \ else \ first2=`echo "$$dir2" | sed -e "$$sed_first"`; \ if test "$$first2" = "$$first"; then \ dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \ else \ dir2="../$$dir2"; \ fi; \ dir0="$$dir0"/"$$first"; \ fi; \ fi; \ dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \ done; \ reldir="$$dir2" DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 GZIP_ENV = --best DIST_TARGETS = dist-bzip2 dist-gzip distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' distcleancheck_listfiles = find . -type f -print ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TAGLIB_CFLAGS = @TAGLIB_CFLAGS@ TAGLIB_LIBS = @TAGLIB_LIBS@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ AUTOMAKE_OPTIONS = dist-bzip2 SUBDIRS = po src plugins man_MANS = \ ripperX.1 EXTRA_DIST = config/config.rpath m4/ChangeLog \ BUGS \ CHANGES \ FAQ \ README.plugin \ README.plugin_spec_v0.1 \ README.plugin_tester \ bootstrap \ ripperX.desktop \ ripperX.pc.in \ $(man_MANS) pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = ripperX.pc ACLOCAL_AMFLAGS = -I m4 all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive .SUFFIXES: am--refresh: Makefile @: $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \ $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \ && exit 0; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ echo ' $(SHELL) ./config.status'; \ $(SHELL) ./config.status;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) $(SHELL) ./config.status --recheck $(top_srcdir)/configure: $(am__configure_deps) $(am__cd) $(srcdir) && $(AUTOCONF) $(ACLOCAL_M4): $(am__aclocal_m4_deps) $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) $(am__aclocal_m4_deps): config.h: stamp-h1 @if test ! -f $@; then rm -f stamp-h1; else :; fi @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) stamp-h1; else :; fi stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status @rm -f stamp-h1 cd $(top_builddir) && $(SHELL) ./config.status config.h $(srcdir)/config.h.in: $(am__configure_deps) ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) rm -f stamp-h1 touch $@ distclean-hdr: -rm -f config.h stamp-h1 ripperX.pc: $(top_builddir)/config.status $(srcdir)/ripperX.pc.in cd $(top_builddir) && $(SHELL) ./config.status $@ install-man1: $(man_MANS) @$(NORMAL_INSTALL) @list1=''; \ list2='$(man_MANS)'; \ test -n "$(man1dir)" \ && test -n "`echo $$list1$$list2`" \ || exit 0; \ echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \ $(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \ { for i in $$list1; do echo "$$i"; done; \ if test -n "$$list2"; then \ for i in $$list2; do echo "$$i"; done \ | sed -n '/\.1[a-z]*$$/p'; \ fi; \ } | while read p; do \ if test -f $$p; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; echo "$$p"; \ done | \ sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \ sed 'N;N;s,\n, ,g' | { \ list=; while read file base inst; do \ if test "$$base" = "$$inst"; then list="$$list $$file"; else \ echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \ $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \ fi; \ done; \ for i in $$list; do echo "$$i"; done | $(am__base_list) | \ while read files; do \ test -z "$$files" || { \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \ done; } uninstall-man1: @$(NORMAL_UNINSTALL) @list=''; test -n "$(man1dir)" || exit 0; \ files=`{ for i in $$list; do echo "$$i"; done; \ l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \ sed -n '/\.1[a-z]*$$/p'; \ } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \ -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \ dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir) install-pkgconfigDATA: $(pkgconfig_DATA) @$(NORMAL_INSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \ $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \ fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ done | $(am__base_list) | \ while read files; do \ echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \ $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \ done uninstall-pkgconfigDATA: @$(NORMAL_UNINSTALL) @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir) # This directory's subdirectories are mostly independent; you can cd # into them and run 'make' without going through this Makefile. # To change the values of 'make' variables: instead of editing Makefiles, # (1) if the variable is set in 'config.status', edit 'config.status' # (which will cause the Makefiles to be regenerated when you run 'make'); # (2) otherwise, pass the desired values on the 'make' command line. $(am__recursive_targets): @fail=; \ if $(am__make_keepgoing); then \ failcom='fail=yes'; \ else \ failcom='exit 1'; \ fi; \ dot_seen=no; \ target=`echo $@ | sed s/-recursive//`; \ case "$@" in \ distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ *) list='$(SUBDIRS)' ;; \ esac; \ for subdir in $$list; do \ echo "Making $$target in $$subdir"; \ if test "$$subdir" = "."; then \ dot_seen=yes; \ local_target="$$target-am"; \ else \ local_target="$$target"; \ fi; \ ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ || eval $$failcom; \ done; \ if test "$$dot_seen" = "no"; then \ $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ fi; test -z "$$fail" ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-recursive TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ include_option=--etags-include; \ empty_fix=.; \ else \ include_option=--include; \ empty_fix=; \ fi; \ list='$(SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ test ! -f $$subdir/TAGS || \ set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \ fi; \ done; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-recursive CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscope: cscope.files test ! -s cscope.files \ || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS) clean-cscope: -rm -f cscope.files cscope.files: clean-cscope cscopelist cscopelist: cscopelist-recursive cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files distdir: $(DISTFILES) $(am__remove_distdir) test -d "$(distdir)" || mkdir "$(distdir)" @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ if test "$$subdir" = .; then :; else \ $(am__make_dryrun) \ || test -d "$(distdir)/$$subdir" \ || $(MKDIR_P) "$(distdir)/$$subdir" \ || exit 1; \ dir1=$$subdir; dir2="$(distdir)/$$subdir"; \ $(am__relativize); \ new_distdir=$$reldir; \ dir1=$$subdir; dir2="$(top_distdir)"; \ $(am__relativize); \ new_top_distdir=$$reldir; \ echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \ echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \ ($(am__cd) $$subdir && \ $(MAKE) $(AM_MAKEFLAGS) \ top_distdir="$$new_top_distdir" \ distdir="$$new_distdir" \ am__remove_distdir=: \ am__skip_length_check=: \ am__skip_mode_fix=: \ distdir) \ || exit 1; \ fi; \ done -test -n "$(am__skip_mode_fix)" \ || find "$(distdir)" -type d ! -perm -755 \ -exec chmod u+rwx,go+rx {} \; -o \ ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ || chmod -R a+r "$(distdir)" dist-gzip: distdir tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz $(am__post_remove_distdir) dist-bzip2: distdir tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2 $(am__post_remove_distdir) dist-lzip: distdir tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz $(am__post_remove_distdir) dist-xz: distdir tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz $(am__post_remove_distdir) dist-tarZ: distdir tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z $(am__post_remove_distdir) dist-shar: distdir shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz $(am__post_remove_distdir) dist-zip: distdir -rm -f $(distdir).zip zip -rq $(distdir).zip $(distdir) $(am__post_remove_distdir) dist dist-all: $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:' $(am__post_remove_distdir) # This target untars the dist file and tries a VPATH configuration. Then # it guarantees that the distribution is self-contained by making another # tarfile. distcheck: dist case '$(DIST_ARCHIVES)' in \ *.tar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ *.tar.bz2*) \ bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ *.tar.lz*) \ lzip -dc $(distdir).tar.lz | $(am__untar) ;;\ *.tar.xz*) \ xz -dc $(distdir).tar.xz | $(am__untar) ;;\ *.tar.Z*) \ uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ *.shar.gz*) \ GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ *.zip*) \ unzip $(distdir).zip ;;\ esac chmod -R a-w $(distdir) chmod u+w $(distdir) mkdir $(distdir)/_build $(distdir)/_inst chmod a-w $(distdir) test -d $(distdir)/_build || exit 0; \ dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ && am__cwd=`pwd` \ && $(am__cd) $(distdir)/_build \ && ../configure --srcdir=.. --prefix="$$dc_install_base" \ $(AM_DISTCHECK_CONFIGURE_FLAGS) \ $(DISTCHECK_CONFIGURE_FLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) \ && $(MAKE) $(AM_MAKEFLAGS) dvi \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ && $(MAKE) $(AM_MAKEFLAGS) uninstall \ && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ distuninstallcheck \ && chmod -R a-w "$$dc_install_base" \ && ({ \ (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ } || { rm -rf "$$dc_destdir"; exit 1; }) \ && rm -rf "$$dc_destdir" \ && $(MAKE) $(AM_MAKEFLAGS) dist \ && rm -rf $(DIST_ARCHIVES) \ && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ && cd "$$am__cwd" \ || exit 1 $(am__post_remove_distdir) @(echo "$(distdir) archives ready for distribution: "; \ list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x' distuninstallcheck: @test -n '$(distuninstallcheck_dir)' || { \ echo 'ERROR: trying to run $@ with an empty' \ '$$(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ $(am__cd) '$(distuninstallcheck_dir)' || { \ echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \ exit 1; \ }; \ test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left after uninstall:" ; \ if test -n "$(DESTDIR)"; then \ echo " (check DESTDIR support)"; \ fi ; \ $(distuninstallcheck_listfiles) ; \ exit 1; } >&2 distcleancheck: distclean @if test '$(srcdir)' = . ; then \ echo "ERROR: distcleancheck can only run from a VPATH build" ; \ exit 1 ; \ fi @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ || { echo "ERROR: files left in build directory after distclean:" ; \ $(distcleancheck_listfiles) ; \ exit 1; } >&2 check-am: all-am check: check-recursive all-am: Makefile $(MANS) $(DATA) config.h installdirs: installdirs-recursive installdirs-am: for dir in "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(pkgconfigdir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-recursive install-exec: install-exec-recursive install-data: install-data-recursive uninstall: uninstall-recursive install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-recursive install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-recursive clean-am: clean-generic mostlyclean-am distclean: distclean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -f Makefile distclean-am: clean-am distclean-generic distclean-hdr distclean-tags dvi: dvi-recursive dvi-am: html: html-recursive html-am: info: info-recursive info-am: install-data-am: install-man install-pkgconfigDATA install-dvi: install-dvi-recursive install-dvi-am: install-exec-am: install-html: install-html-recursive install-html-am: install-info: install-info-recursive install-info-am: install-man: install-man1 install-pdf: install-pdf-recursive install-pdf-am: install-ps: install-ps-recursive install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-recursive -rm -f $(am__CONFIG_DISTCLEAN_FILES) -rm -rf $(top_srcdir)/autom4te.cache -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-recursive mostlyclean-am: mostlyclean-generic pdf: pdf-recursive pdf-am: ps: ps-recursive ps-am: uninstall-am: uninstall-man uninstall-pkgconfigDATA uninstall-man: uninstall-man1 .MAKE: $(am__recursive_targets) all install-am install-strip .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ am--refresh check check-am clean clean-cscope clean-generic \ cscope cscopelist-am ctags ctags-am dist dist-all dist-bzip2 \ dist-gzip dist-lzip dist-shar dist-tarZ dist-xz dist-zip \ distcheck distclean distclean-generic distclean-hdr \ distclean-tags distcleancheck distdir distuninstallcheck dvi \ dvi-am html html-am info info-am install install-am \ install-data install-data-am install-dvi install-dvi-am \ install-exec install-exec-am install-html install-html-am \ install-info install-info-am install-man install-man1 \ install-pdf install-pdf-am install-pkgconfigDATA install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs installdirs-am maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-generic pdf \ pdf-am ps ps-am tags tags-am uninstall uninstall-am \ uninstall-man uninstall-man1 uninstall-pkgconfigDATA # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ripperX-2.8.0/README000066400000000000000000000016451233655711300140460ustar00rootroot00000000000000ripperX is a graphical interface to CD rippers and MP3/OGG/FLAC encoders. It is released under the GNU GPL. For more information please read the COPYING file. http://ripperx.sf.net ===================================================================== If you have any suggestions or bug reports, please mail us at: Tony Mancill and/or Dave Cinege Steve Sanbeg Note that we're anticipating bugs, and hence more frequent releases. Therefore, release numbering will be 2.7.x to indicate bugfix/patch releases between functionality releases (i.e. 2.7 -> 2.8). Also of note is that primary development is being done on Debian now, not RedHat, so we welcome input from other distro users on how to make life easier for them in order to accomodate them as much as possible. Have fun. Note: jos.dehaes@bigfoot.com no longer maintains ripperX ripperX-2.8.0/README.plugin000066400000000000000000000013631233655711300153400ustar00rootroot00000000000000 This package contains source codes for i . ripperX plugin tester ( ripperX_plugin_tester.c ) ii . ripperX plugin for cdparanoia ( ripperX_plugin-cdparanoia.c ) iii . ripperX plugin for 8hz-mp3 ( ripperX_plugin-8hz-mp3.c ) and documentations describing i . ripperX plugin specifications ( README.plugin_spec_v0.1 ) ii . how to use ripperX plugin tester ( README.plugin_tester ) I tested cdparanoia plugin with cdparanoia III alpha prerelease 8 but it should work with more recent versions and I think the 8hz-mp3 plugin also should work with the versions most people have. ========================================================================== ripperX_plugin_devel_package_v0.1 TeJun, Huh wineking@adam.kaist.ac.kr ripperX-2.8.0/README.plugin_spec_v0.1000066400000000000000000000056111233655711300171160ustar00rootroot00000000000000ripperX plugin specification v0.1 This document describes the way ripperX plugins work. 1. ripperX plugin? ripperx plugin is just a program which interprets the output of various rippers/encoders into the form ripperX understands so that I don't have to mess with the source code of ripperX to add support for ripperA or encoderB. ;-) 2. The way program/plugin/ripperX communicates. ripperX will take care of the linkage among ripper/encoder, plugin and ripperX. The linkage will look like the following. /-stdout-\ pty/tty /-stdout-\ pty/tty ripper/encoder- ---------> plugin- ---------> ripperX \-stderr-/ \-stderr- \ -> default stderr Plugin can just read from stdin and write the result to stdout. Both stdout and stderr of ripper/encoder are redirected to stdin of plugin, and stderr of plugin is not modified. 3. Plugin arguments When a plugin is invoked by ripperX, it will be given two arguments. The first one is the beginning sector of currently processed track, and the second argument is the length of currently processed track in sector. You can use this information to caculate the progress. 4. The format of plugin output. The output of plugin consists of three parts - type, progress, msg. The type field tells ripperX what kind of msg it is sending. Available types are i ) P : normal reporting of progress w/ or w/o msg. P reporting must have progress field. If it has a msg, it will be displayed in the status bar of ripperX. ii ) W : warning. If ripperX receives warning msg, it will display the msg using dialog box but will not halt/abort current job. It must contain non-null msg field. iii ) E : error. If ripperX receives error msg, it will display the msg using dialog box and halts the job and asks the user if he/she wants to abort current job. It must contain non-null msg field. The progress field tells ripperX how much the ripping/encoding has progressed. It is a floating point number between 0 and 1. The msg field is described above. The format looks like [type progress "msg"]'\n' | | \---------------> space examples) [P 0.12345 "-----> "] [P 0.32321] [W "Hey there."] [E "Hello world!"] Every reporting must be followed by a new-line character. 5. How often does a plugin have to print out the reporting? Plugin should print out a reporting every 0.5 seconds(+- a little bit is just fine) and also should print only one reporting at a time. Also plugins should print nothing when the ripper/encoder is finished. Plugins can skip printing report if it doesn't want to. ============================================================================== ripperX plugin specification v0.1 TeJun, Huh wineking@adam.kaist.ac.kr ripperX-2.8.0/README.plugin_tester000066400000000000000000000036511233655711300167300ustar00rootroot00000000000000ripperX plugin tester v0.1 This document describes what ripperX_plugin_tester is and how to use it. 1. ripperX_plugin_tester? ripperX_plugin_tester is a program with which one can test if a plugin he/she wrote works fine. It is essentially made from the code segments from ripperX which handles execution of ripper/encoder/plugin and the parsing of output from plugin. So if a plugin looks fine when tested with ripperX_plugin_tester, it should work with ripperX. 2. How do I use it? The syntax is $ ripperX_plugin_tester "ripper/encoder command" "plugin command" for example, to test cdparanoia plugin. $ ripperX_plugin_tester "cdparanoia 4" "ripperX_plugin-cdparanoia 31987 4215 After executing ripperX_plugin_tester like above, if everything goes ok, you'll see output like this ***Executing "cdparanoia 4" with plugin "./ripperX_plugin-cdparanoia 31987 4215" *** No report available from plugin. Ctrl-C to stop *** PLUGIN_MSG_PARSE_ERR returned *** No report available from plugin. Ctrl-C to stop *** PLUGIN_MSG_PARSE_ERR returned *** No report available from plugin. Ctrl-C to stop *** PLUGIN_MSG_PARSE_ERR returned *** No report available from plugin. Ctrl-C to stop *** PLUGIN_MSG_PARSE_ERR returned *** No report available from plugin. Ctrl-C to stop *** PLUGIN_MSG_PARSE_ERR returned *** Output read from plugin : [P 0.055991 "--> "] Report type : progress, Progress : 0.055991, Msg : --> *** Output read from plugin : [P 0.092527 "-+-> "] Report type : progress, Progress : 0.092527, Msg : -+-> If something goes wrong, it will print out error msgs. The error msgs are quite easy. I think you can figure what's wrong when an error msg appears. ============================================================================== ripperX_plugin_tester v0.1 TeJun, Huh wineking@adam.kaist.ac.kr ripperX-2.8.0/TODO000066400000000000000000000003471233655711300136540ustar00rootroot00000000000000These things are on the wishlist for 2.x releases of ripperX; they are listed in some semblance of priority. * Add the ability to submit CD data to the CDDB if the CD is not found. * Eject cd when complete (option to spec cdrom?) ripperX-2.8.0/aclocal.m4000066400000000000000000004143331233655711300150300ustar00rootroot00000000000000# generated automatically by aclocal 1.13.3 -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, [m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. To do so, use the procedure documented by the package, typically 'autoreconf'.])]) # gettext.m4 serial 63 (gettext-0.18) dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl Add a version number to the cache macros. case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], [AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], [$gt_func_gnugettext_libintl], [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST([DATADIRNAME]) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST([INSTOBJEXT]) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST([GENCAT]) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST([INTLOBJS]) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) ]) dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. m4_define([gt_NEEDS_INIT], [ m4_divert_text([DEFAULTS], [gt_needs=]) m4_define([gt_NEEDS_INIT], []) ]) dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) AC_DEFUN([AM_GNU_GETTEXT_NEED], [ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) # iconv.m4 serial 11 (gettext-0.18.1) dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi AC_TRY_RUN([ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], [case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac]) LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) fi ]) # intlmacosx.m4 serial 3 (gettext-0.18) dnl Copyright (C) 2004-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Checks for special options needed on MacOS X. dnl Defines INTL_MACOSX_LIBS. AC_DEFUN([gt_INTL_MACOSX], [ dnl Check for API introduced in MacOS X 10.2. AC_CACHE_CHECK([for CFPreferencesCopyAppValue], [gt_cv_func_CFPreferencesCopyAppValue], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFPreferencesCopyAppValue(NULL, NULL)], [gt_cv_func_CFPreferencesCopyAppValue=yes], [gt_cv_func_CFPreferencesCopyAppValue=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) fi dnl Check for API introduced in MacOS X 10.3. AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], [gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], [gt_cv_func_CFLocaleCopyCurrent=yes], [gt_cv_func_CFLocaleCopyCurrent=no]) LIBS="$gt_save_LIBS"]) if test $gt_cv_func_CFLocaleCopyCurrent = yes; then AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi AC_SUBST([INTL_MACOSX_LIBS]) ]) # lib-ld.m4 serial 4 (gettext-0.18) dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL([acl_cv_path_LD], [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT([$LD]) else AC_MSG_RESULT([no]) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) # lib-link.m4 serial 21 (gettext-0.18) dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.54]) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes popdef([NAME]) popdef([Name]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. The missing-message dnl defaults to 'no' and may contain additional hints for the user. dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. dnl Otherwise, add it to the front of LIBS, because it may be a static dnl library that depends on another static library that is present in LIBS. dnl Static libraries benefit only from the static libraries listed after dnl it. case " $LIB[]NAME" in *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) popdef([NAME]) popdef([Name]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl acl_libext, dnl acl_shlibext, dnl acl_hardcode_libdir_flag_spec, dnl acl_hardcode_libdir_separator, dnl acl_hardcode_direct, dnl acl_hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE([rpath], [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_FROMPACKAGE(name, package) dnl declares that libname comes from the given package. The configure file dnl will then not have a --with-libname-prefix option but a dnl --with-package-prefix option. Several libraries can come from the same dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_libsinpackage_]PACKUP, m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) dnl Autoconf >= 2.61 supports dots in --with options. pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_ARG_WITH(P_A_C_K[-prefix], [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= LIB[]NAME[]_PREFIX= dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been dnl computed. So it has to be reset here. HAVE_LIB[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" dnl The same code as in the loop below: dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$acl_hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi popdef([P_A_C_K]) popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) popdef([NAME]) ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) # lib-prefix.m4 serial 7 (gettext-0.18) dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates dnl - a variable acl_libdirstem, containing the basename of the libdir, either dnl "lib" or "lib64" or "lib/64", dnl - a variable acl_libdirstem2, as a secondary possible value for dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or dnl "lib/amd64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. dnl On glibc systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine dnl the compiler's default mode by looking at the compiler's library search dnl path. If at least one of its elements ends in /lib64 or points to a dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. dnl Otherwise we use the default, namely "lib". dnl On Solaris systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. AC_REQUIRE([AC_CANONICAL_HOST]) acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment dnl . dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the dnl symlink is missing, so we set acl_libdirstem2 too. AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], [AC_EGREP_CPP([sixtyfour bits], [ #ifdef _LP64 sixtyfour bits #endif ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) ]) if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" ]) # nls.m4 serial 5 (gettext-0.18) dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT([$USE_NLS]) AC_SUBST([USE_NLS]) ]) # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) # # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # PKG_PROG_PKG_CONFIG([MIN-VERSION]) # ---------------------------------- AC_DEFUN([PKG_PROG_PKG_CONFIG], [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$]) m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$]) AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) fi if test -n "$PKG_CONFIG"; then _pkg_min_version=m4_default([$1], [0.9.0]) AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) PKG_CONFIG="" fi fi[]dnl ])# PKG_PROG_PKG_CONFIG # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) # # Check to see whether a particular set of modules exists. Similar # to PKG_CHECK_MODULES(), but does not set variables or print errors. # # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) # only at the first occurence in configure.ac, so if the first place # it's called might be skipped (such as if it is within an "if", you # have to call PKG_CHECK_EXISTS manually # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_EXISTS], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl if test -n "$PKG_CONFIG" && \ AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then m4_default([$2], [:]) m4_ifvaln([$3], [else $3])dnl fi]) # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) # --------------------------------------------- m4_define([_PKG_CONFIG], [if test -n "$$1"; then pkg_cv_[]$1="$$1" elif test -n "$PKG_CONFIG"; then PKG_CHECK_EXISTS([$3], [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes ], [pkg_failed=yes]) else pkg_failed=untried fi[]dnl ])# _PKG_CONFIG # _PKG_SHORT_ERRORS_SUPPORTED # ----------------------------- AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi[]dnl ])# _PKG_SHORT_ERRORS_SUPPORTED # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], # [ACTION-IF-NOT-FOUND]) # # # Note that if there is a possibility the first call to # PKG_CHECK_MODULES might not happen, you should be sure to include an # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac # # # -------------------------------------------------------------- AC_DEFUN([PKG_CHECK_MODULES], [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no AC_MSG_CHECKING([for $1]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then AC_MSG_RESULT([no]) m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. _PKG_TEXT To get pkg-config, see .])[]dnl ]) else $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) $3 fi[]dnl ])# PKG_CHECK_MODULES # po.m4 serial 17 (gettext-0.18) dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" <, 1996. AC_PREREQ([2.50]) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL([ac_cv_path_$1], [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$][$1]) else AC_MSG_RESULT([no]) fi AC_SUBST([$1])dnl ]) # Copyright (C) 2002-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_AUTOMAKE_VERSION(VERSION) # ---------------------------- # Automake X.Y traces this macro to ensure aclocal.m4 has been # generated from the m4 files accompanying Automake X.Y. # (This private macro should not be called outside this file.) AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.13' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. m4_if([$1], [1.13.3], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) # _AM_AUTOCONF_VERSION(VERSION) # ----------------------------- # aclocal traces this macro to find the Autoconf version. # This is a private macro too. Using m4_define simplifies # the logic in aclocal, which can simply ignore this definition. m4_define([_AM_AUTOCONF_VERSION], []) # AM_SET_CURRENT_AUTOMAKE_VERSION # ------------------------------- # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], [AM_AUTOMAKE_VERSION([1.13.3])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to # '$srcdir', '$srcdir/..', or '$srcdir/../..'. # # Of course, Automake must honor this variable whenever it calls a # tool from the auxiliary directory. The problem is that $srcdir (and # therefore $ac_aux_dir as well) can be either absolute or relative, # depending on how configure is run. This is pretty annoying, since # it makes $ac_aux_dir quite unusable in subdirectories: in the top # source directory, any form will work fine, but in subdirectories a # relative path needs to be adjusted first. # # $ac_aux_dir/missing # fails when called from a subdirectory if $ac_aux_dir is relative # $top_srcdir/$ac_aux_dir/missing # fails if $ac_aux_dir is absolute, # fails when called from a subdirectory in a VPATH build with # a relative $ac_aux_dir # # The reason of the latter failure is that $top_srcdir and $ac_aux_dir # are both prefixed by $srcdir. In an in-source build this is usually # harmless because $srcdir is '.', but things will broke when you # start a VPATH build or use an absolute $srcdir. # # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, # iff we strip the leading $srcdir from $ac_aux_dir. That would be: # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` # and then we would define $MISSING as # MISSING="\${SHELL} $am_aux_dir/missing" # This will work as long as MISSING is not called from configure, because # unfortunately $(top_srcdir) has no meaning in configure. # However there are other variables, like CC, which are often used in # configure, and could therefore not use this "fixed" $ac_aux_dir. # # Another solution, used here, is to always expand $ac_aux_dir to an # absolute PATH. The drawback is that using absolute paths prevent a # configured tree to be moved without reconfiguration. AC_DEFUN([AM_AUX_DIR_EXPAND], [dnl Rely on autoconf to set up CDPATH properly. AC_PREREQ([2.50])dnl # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` ]) # AM_CONDITIONAL -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_CONDITIONAL(NAME, SHELL-CONDITION) # ------------------------------------- # Define a conditional. AC_DEFUN([AM_CONDITIONAL], [AC_PREREQ([2.52])dnl m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl AC_SUBST([$1_TRUE])dnl AC_SUBST([$1_FALSE])dnl _AM_SUBST_NOTMAKE([$1_TRUE])dnl _AM_SUBST_NOTMAKE([$1_FALSE])dnl m4_define([_AM_COND_VALUE_$1], [$2])dnl if $2; then $1_TRUE= $1_FALSE='#' else $1_TRUE='#' $1_FALSE= fi AC_CONFIG_COMMANDS_PRE( [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then AC_MSG_ERROR([[conditional "$1" was never defined. Usually this means the macro was only invoked conditionally.]]) fi])]) # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be # written in clear, in which case automake, when reading aclocal.m4, # will think it sees a *use*, and therefore will trigger all it's # C support machinery. Also note that it means that autoscan, seeing # CC etc. in the Makefile, will ask for an AC_PROG_CC use... # _AM_DEPENDENCIES(NAME) # ---------------------- # See how the compiler implements dependency checking. # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC". # We try a few techniques and use that to set a single cache variable. # # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular # dependency, and given that the user is not expected to run this macro, # just rely on AC_PROG_CC. AC_DEFUN([_AM_DEPENDENCIES], [AC_REQUIRE([AM_SET_DEPDIR])dnl AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl AC_REQUIRE([AM_MAKE_INCLUDE])dnl AC_REQUIRE([AM_DEP_TRACK])dnl m4_if([$1], [CC], [depcc="$CC" am_compiler_list=], [$1], [CXX], [depcc="$CXX" am_compiler_list=], [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'], [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'], [$1], [UPC], [depcc="$UPC" am_compiler_list=], [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'], [depcc="$$1" am_compiler_list=]) AC_CACHE_CHECK([dependency style of $depcc], [am_cv_$1_dependencies_compiler_type], [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_$1_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` fi am__universal=false m4_case([$1], [CC], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac], [CXX], [case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac]) for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_$1_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_$1_dependencies_compiler_type=none fi ]) AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) AM_CONDITIONAL([am__fastdep$1], [ test "x$enable_dependency_tracking" != xno \ && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) ]) # AM_SET_DEPDIR # ------------- # Choose a directory name for dependency files. # This macro is AC_REQUIREd in _AM_DEPENDENCIES. AC_DEFUN([AM_SET_DEPDIR], [AC_REQUIRE([AM_SET_LEADING_DOT])dnl AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl ]) # AM_DEP_TRACK # ------------ AC_DEFUN([AM_DEP_TRACK], [AC_ARG_ENABLE([dependency-tracking], [dnl AS_HELP_STRING( [--enable-dependency-tracking], [do not reject slow dependency extractors]) AS_HELP_STRING( [--disable-dependency-tracking], [speeds up one-time build])]) if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) AC_SUBST([AMDEPBACKSLASH])dnl _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl AC_SUBST([am__nodep])dnl _AM_SUBST_NOTMAKE([am__nodep])dnl ]) # Generate code to set up dependency tracking. -*- Autoconf -*- # Copyright (C) 1999-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_OUTPUT_DEPENDENCY_COMMANDS # ------------------------------ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], [{ # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`AS_DIRNAME("$mf")` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`AS_DIRNAME(["$file"])` AS_MKDIR_P([$dirpart/$fdir]) # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ])# _AM_OUTPUT_DEPENDENCY_COMMANDS # AM_OUTPUT_DEPENDENCY_COMMANDS # ----------------------------- # This macro should only be invoked once -- use via AC_REQUIRE. # # This code is only required when automatic dependency tracking # is enabled. FIXME. This creates each '.P' file that we will # need in order to bootstrap the dependency handling code. AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], [AC_CONFIG_COMMANDS([depfiles], [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) ]) # Do all the work for Automake. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This macro actually does too much. Some checks are only needed if # your package does certain things. But this isn't really a big deal. # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) # AM_INIT_AUTOMAKE([OPTIONS]) # ----------------------------------------------- # The call with PACKAGE and VERSION arguments is the old style # call (pre autoconf-2.50), which is being phased out. PACKAGE # and VERSION should now be passed to AC_INIT and removed from # the call to AM_INIT_AUTOMAKE. # We support both call styles for the transition. After # the next Automake release, Autoconf can make the AC_INIT # arguments mandatory, and then we can depend on a new Autoconf # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl # test to see if srcdir already configured if test -f $srcdir/config.status; then AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi AC_SUBST([CYGPATH_W]) # Define the identity of the package. dnl Distinguish between old-style and new-style calls. m4_ifval([$2], [AC_DIAGNOSE([obsolete], [$0: two- and three-arguments forms are deprecated.]) m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl AC_SUBST([PACKAGE], [$1])dnl AC_SUBST([VERSION], [$2])], [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl _AM_IF_OPTION([no-define],, [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package]) AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl # Some tools Automake needs. AC_REQUIRE([AM_SANITY_CHECK])dnl AC_REQUIRE([AC_ARG_PROGRAM])dnl AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}]) AM_MISSING_PROG([AUTOCONF], [autoconf]) AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}]) AM_MISSING_PROG([AUTOHEADER], [autoheader]) AM_MISSING_PROG([MAKEINFO], [makeinfo]) AC_REQUIRE([AM_PROG_INSTALL_SH])dnl AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # AC_SUBST([mkdir_p], ['$(MKDIR_P)']) # We need awk for the "check" target. The system "awk" is bad on # some platforms. AC_REQUIRE([AC_PROG_AWK])dnl AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AM_SET_LEADING_DOT])dnl _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], [_AM_PROG_TAR([v7])])]) _AM_IF_OPTION([no-dependencies],, [AC_PROVIDE_IFELSE([AC_PROG_CC], [_AM_DEPENDENCIES([CC])], [m4_define([AC_PROG_CC], m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_CXX], [_AM_DEPENDENCIES([CXX])], [m4_define([AC_PROG_CXX], m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJC], [_AM_DEPENDENCIES([OBJC])], [m4_define([AC_PROG_OBJC], m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [_AM_DEPENDENCIES([OBJCXX])], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below. AC_CONFIG_COMMANDS_PRE(dnl [m4_provide_if([_AM_COMPILER_EXEEXT], [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl ]) dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further dnl mangled by Autoconf and run in a shell conditional statement. m4_define([_AC_COMPILER_EXEEXT], m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) # When config.status generates a header, we must update the stamp-h file. # This file resides in the same directory as the config header # that is generated. The stamp files are numbered to have different names. # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the # loop where config.status creates the headers, so we can generate # our stamp files there. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], [# Compute $1's index in $config_headers. _am_arg=$1 _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_SH # ------------------ # Define $install_sh. AC_DEFUN([AM_PROG_INSTALL_SH], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi AC_SUBST([install_sh])]) # Copyright (C) 2003-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # Check whether the underlying file-system supports filenames # with a leading dot. For instance MS-DOS doesn't. AC_DEFUN([AM_SET_LEADING_DOT], [rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MAKE_INCLUDE() # ----------------- # Check to see how make treats includes. AC_DEFUN([AM_MAKE_INCLUDE], [am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. AC_MSG_CHECKING([for style of include used by $am_make]) am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi AC_SUBST([am__include]) AC_SUBST([am__quote]) AC_MSG_RESULT([$_am_result]) rm -f confinc confmf ]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- # Copyright (C) 1997-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_MISSING_PROG(NAME, PROGRAM) # ------------------------------ AC_DEFUN([AM_MISSING_PROG], [AC_REQUIRE([AM_MISSING_HAS_RUN]) $1=${$1-"${am_missing_run}$2"} AC_SUBST($1)]) # AM_MISSING_HAS_RUN # ------------------ # Define MISSING if not defined so far and test if it is modern enough. # If it is, set am_missing_run to use it, otherwise, to nothing. AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= AC_MSG_WARN(['missing' script is too old or missing]) fi ]) # Copyright (C) 2003-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_MKDIR_P # --------------- # Check for 'mkdir -p'. AC_DEFUN([AM_PROG_MKDIR_P], [AC_PREREQ([2.60])dnl AC_REQUIRE([AC_PROG_MKDIR_P])dnl dnl FIXME we are no longer going to remove this! adjust warning dnl FIXME message accordingly. AC_DIAGNOSE([obsolete], [$0: this macro is deprecated, and will soon be removed. You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead, and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.]) dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, dnl while keeping a definition of mkdir_p for backward compatibility. dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of dnl Makefile.ins that do not define MKDIR_P, so we do our own dnl adjustment using top_builddir (which is defined more often than dnl MKDIR_P). AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl case $mkdir_p in [[\\/$]]* | ?:[[\\/]]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac ]) # Helper functions for option handling. -*- Autoconf -*- # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_MANGLE_OPTION(NAME) # ----------------------- AC_DEFUN([_AM_MANGLE_OPTION], [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) # _AM_SET_OPTION(NAME) # -------------------- # Set option NAME. Presently that only means defining a flag for this option. AC_DEFUN([_AM_SET_OPTION], [m4_define(_AM_MANGLE_OPTION([$1]), [1])]) # _AM_SET_OPTIONS(OPTIONS) # ------------------------ # OPTIONS is a space-separated list of Automake options. AC_DEFUN([_AM_SET_OPTIONS], [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) # ------------------------------------------- # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) # Check to make sure that the build environment is sane. -*- Autoconf -*- # Copyright (C) 1996-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SANITY_CHECK # --------------- AC_DEFUN([AM_SANITY_CHECK], [AC_MSG_CHECKING([whether build environment is sane]) # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[[\\\"\#\$\&\'\`$am_lf]]*) AC_MSG_ERROR([unsafe absolute working directory name]);; esac case $srcdir in *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$[*]" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$[*]" != "X $srcdir/configure conftest.file" \ && test "$[*]" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken alias in your environment]) fi if test "$[2]" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$[2]" = conftest.file ) then # Ok. : else AC_MSG_ERROR([newly created file is older than distributed files! Check your system clock]) fi AC_MSG_RESULT([yes]) # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi AC_CONFIG_COMMANDS_PRE( [AC_MSG_CHECKING([that generated files are newer than configure]) if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi AC_MSG_RESULT([done])]) rm -f conftest.file ]) # Copyright (C) 2009-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_SILENT_RULES([DEFAULT]) # -------------------------- # Enable less verbose build rules; with the default set to DEFAULT # ("yes" being less verbose, "no" or empty being verbose). AC_DEFUN([AM_SILENT_RULES], [AC_ARG_ENABLE([silent-rules], [dnl AS_HELP_STRING( [--enable-silent-rules], [less verbose build output (undo: "make V=1")]) AS_HELP_STRING( [--disable-silent-rules], [verbose build output (undo: "make V=0")])dnl ]) case $enable_silent_rules in @%:@ ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; esac dnl dnl A few 'make' implementations (e.g., NonStop OS and NextStep) dnl do not support nested variable expansions. dnl See automake bug#9928 and bug#10237. am_make=${MAKE-make} AC_CACHE_CHECK([whether $am_make supports nested variables], [am_cv_make_support_nested_variables], [if AS_ECHO([['TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi]) if test $am_cv_make_support_nested_variables = yes; then dnl Using '$V' instead of '$(V)' breaks IRIX make. AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AC_SUBST([AM_V])dnl AM_SUBST_NOTMAKE([AM_V])dnl AC_SUBST([AM_DEFAULT_V])dnl AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl AC_SUBST([AM_DEFAULT_VERBOSITY])dnl AM_BACKSLASH='\' AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) # Copyright (C) 2001-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # AM_PROG_INSTALL_STRIP # --------------------- # One issue with vendor 'install' (even GNU) is that you can't # specify the program used to strip binaries. This is especially # annoying in cross-compiling environments, where the build's strip # is unlikely to handle the host's binaries. # Fortunately install-sh will honor a STRIPPROG variable, so we # always use install-sh in "make install-strip", and initialize # STRIPPROG with the value of the STRIP variable (set by the user). AC_DEFUN([AM_PROG_INSTALL_STRIP], [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. dnl Don't test for $cross_compiling = yes, because it might be 'maybe'. if test "$cross_compiling" != no; then AC_CHECK_TOOL([STRIP], [strip], :) fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) # Copyright (C) 2006-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_SUBST_NOTMAKE(VARIABLE) # --------------------------- # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. # This macro is traced by Automake. AC_DEFUN([_AM_SUBST_NOTMAKE]) # AM_SUBST_NOTMAKE(VARIABLE) # -------------------------- # Public sister of _AM_SUBST_NOTMAKE. AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- # Copyright (C) 2004-2013 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # _AM_PROG_TAR(FORMAT) # -------------------- # Check how to create a tarball in format FORMAT. # FORMAT should be one of 'v7', 'ustar', or 'pax'. # # Substitute a variable $(am__tar) that is a command # writing to stdout a FORMAT-tarball containing the directory # $tardir. # tardir=directory && $(am__tar) > result.tar # # Substitute a variable $(am__untar) that extract such # a tarball read from stdin. # $(am__untar) < result.tar # AC_DEFUN([_AM_PROG_TAR], [# Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AC_SUBST([AMTAR], ['$${TAR-tar}']) # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' m4_if([$1], [v7], [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'], [m4_case([$1], [ustar], [# The POSIX 1988 'ustar' format is defined with fixed-size fields. # There is notably a 21 bits limit for the UID and the GID. In fact, # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343 # and bug#13588). am_max_uid=2097151 # 2^21 - 1 am_max_gid=$am_max_uid # The $UID and $GID variables are not portable, so we need to resort # to the POSIX-mandated id(1) utility. Errors in the 'id' calls # below are definitely unexpected, so allow the users to see them # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format]) if test $am_uid -le $am_max_uid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format]) if test $am_gid -le $am_max_gid; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no]) _am_tools=none fi], [pax], [], [m4_fatal([Unknown tar format])]) AC_MSG_CHECKING([how to create a $1 tar archive]) # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. _am_tools=${am_cv_prog_tar_$1-$_am_tools} for _am_tool in $_am_tools; do case $_am_tool in gnutar) for _am_tar in tar gnutar gtar; do AM_RUN_LOG([$_am_tar --version]) && break done am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' am__untar="$_am_tar -xf -" ;; plaintar) # Must skip GNU tar: if it does not support --format= it doesn't create # ustar tarball either. (tar --version) >/dev/null 2>&1 && continue am__tar='tar chf - "$$tardir"' am__tar_='tar chf - "$tardir"' am__untar='tar xf -' ;; pax) am__tar='pax -L -x $1 -w "$$tardir"' am__tar_='pax -L -x $1 -w "$tardir"' am__untar='pax -r' ;; cpio) am__tar='find "$$tardir" -print | cpio -o -H $1 -L' am__tar_='find "$tardir" -print | cpio -o -H $1 -L' am__untar='cpio -i -H $1 -d' ;; none) am__tar=false am__tar_=false am__untar=false ;; esac # If the value was cached, stop now. We just wanted to have am__tar # and am__untar set. test -n "${am_cv_prog_tar_$1}" && break # tar/untar a dummy directory, and stop if the command works. rm -rf conftest.dir mkdir conftest.dir echo GrepMe > conftest.dir/file AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) rm -rf conftest.dir if test -s conftest.tar; then AM_RUN_LOG([$am__untar /dev/null 2>&1 && break fi done rm -rf conftest.dir AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) AC_MSG_RESULT([$am_cv_prog_tar_$1])]) AC_SUBST([am__tar]) AC_SUBST([am__untar]) ]) # _AM_PROG_TAR ripperX-2.8.0/bootstrap000077500000000000000000000007641233655711300151320ustar00rootroot00000000000000#!/bin/sh # Script to regenerate the autotools scripts from # configure.ac and Makefile.am files. # # You may want to re-run gettextize(1) as well to fully # regenerate all the scripts and files needed, but it's # somewhat interactive and you'll need to backout the # changes it makes to the top level Makefile.am so we # don't call it from here. aclocal -I m4 \ && autoconf \ && autoheader \ && automake --add-missing --foreign --copy \ && echo "configure script successfully generated." ripperX-2.8.0/config.h.in000066400000000000000000000100661233655711300152060ustar00rootroot00000000000000/* config.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if translation of program messages to the user's native language is requested. */ #undef ENABLE_NLS /* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework. */ #undef HAVE_CFLOCALECOPYCURRENT /* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE /* Define if the GNU dcgettext() function is already present or preinstalled. */ #undef HAVE_DCGETTEXT /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_DIRENT_H /* Define to 1 if you have the header file. */ #undef HAVE_FCNTL_H /* Define to 1 if you have the `fork' function. */ #undef HAVE_FORK /* Define if the GNU gettext() function is already present or preinstalled. */ #undef HAVE_GETTEXT /* Define if you have the iconv() function and it works. */ #undef HAVE_ICONV /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H /* Define to 1 if you have the `util' library (-lutil). */ #undef HAVE_LIBUTIL /* Define to 1 if you have the header file. */ #undef HAVE_LINUX_CDROM_H /* Define to 1 if you have the header file. */ #undef HAVE_LOCALE_H /* Define to 1 if your system has a GNU libc compatible `malloc' function, and to 0 otherwise. */ #undef HAVE_MALLOC /* Define to 1 if you have the header file. */ #undef HAVE_MEMORY_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_NDIR_H /* Define to 1 if you have the header file. */ #undef HAVE_NETDB_H /* Define to 1 if you have the header file. */ #undef HAVE_NETINET_IN_H /* Define to 1 if you have the header file. */ #undef HAVE_STDINT_H /* Define to 1 if you have the header file. */ #undef HAVE_STDLIB_H /* Define to 1 if you have the header file. */ #undef HAVE_STRINGS_H /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_DIR_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_IOCTL_H /* Define to 1 if you have the header file, and it defines `DIR'. */ #undef HAVE_SYS_NDIR_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SOCKET_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_STAT_H /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H /* Define to 1 if you have that is POSIX.1 compatible. */ #undef HAVE_SYS_WAIT_H /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H /* Define to 1 if you have the `vfork' function. */ #undef HAVE_VFORK /* Define to 1 if you have the header file. */ #undef HAVE_VFORK_H /* Define to 1 if `fork' works. */ #undef HAVE_WORKING_FORK /* Define to 1 if `vfork' works. */ #undef HAVE_WORKING_VFORK /* Name of package */ #undef PACKAGE /* Define to the address where bug reports for this package should be sent. */ #undef PACKAGE_BUGREPORT /* Define to the full name of this package. */ #undef PACKAGE_NAME /* Define to the full name and version of this package. */ #undef PACKAGE_STRING /* Define to the one symbol short name of this package. */ #undef PACKAGE_TARNAME /* Define to the home page for this package. */ #undef PACKAGE_URL /* Define to the version of this package. */ #undef PACKAGE_VERSION /* Define to 1 if you have the ANSI C header files. */ #undef STDC_HEADERS /* Version number of package */ #undef VERSION /* Define to rpl_malloc if the replacement function should be used. */ #undef malloc /* Define to `int' if does not define. */ #undef pid_t /* Define to `unsigned int' if does not define. */ #undef size_t /* Define to `int' if does not define. */ #undef ssize_t /* Define as `fork' if `vfork' does not work. */ #undef vfork ripperX-2.8.0/config/000077500000000000000000000000001233655711300144255ustar00rootroot00000000000000ripperX-2.8.0/config/config.guess000077500000000000000000001276371233655711300167650ustar00rootroot00000000000000#! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 # Free Software Foundation, Inc. timestamp='2009-12-30' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA # 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Per Bothner. Please send patches (context # diff format) to and include a ChangeLog # entry. # # This script attempts to guess a canonical system name similar to # config.sub. If it succeeds, it prints the system name on stdout, and # exits with 0. Otherwise, it exits with 1. # # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] Output the configuration name of the system \`$me' is run on. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" >&2 exit 1 ;; * ) break ;; esac done if test $# != 0; then echo "$me: too many arguments$help" >&2 exit 1 fi trap 'exit 1' 1 2 15 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a # compiler to aid in system detection is discouraged as it requires # temporary files to be created and, as you can see below, it is a # headache to deal with in a portable fashion. # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still # use `HOST_CC' if defined, but it is deprecated. # Portable tmp directory creation inspired by the Autoconf team. set_cc_for_build=' trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; : ${TMPDIR=/tmp} ; { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; dummy=$tmp/dummy ; tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; case $CC_FOR_BUILD,$HOST_CC,$CC in ,,) echo "int x;" > $dummy.c ; for c in cc gcc c89 c99 ; do if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then CC_FOR_BUILD="$c"; break ; fi ; done ; if test x"$CC_FOR_BUILD" = x ; then CC_FOR_BUILD=no_compiler_found ; fi ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # (ghazi@noc.rutgers.edu 1994-08-24) if (test -f /.attbin/uname) >/dev/null 2>&1 ; then PATH=$PATH:/.attbin ; export PATH fi UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward # compatibility and a consistent mechanism for selecting the # object file format. # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". sysctl="sysctl -n hw.machine_arch" UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ /usr/sbin/$sysctl 2>/dev/null || echo unknown)` case "${UNAME_MACHINE_ARCH}" in armeb) machine=armeb-unknown ;; arm*) machine=arm-unknown ;; sh3el) machine=shl-unknown ;; sh3eb) machine=sh-unknown ;; sh5el) machine=sh5le-unknown ;; *) machine=${UNAME_MACHINE_ARCH}-unknown ;; esac # The Operating System including object format, if it has switched # to ELF recently, or will in the future. case "${UNAME_MACHINE_ARCH}" in arm*|i386|m68k|ns32k|sh3*|sparc|vax) eval $set_cc_for_build if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ELF__ then # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). # Return netbsd for either. FIX? os=netbsd else os=netbsdelf fi ;; *) os=netbsd ;; esac # The OS release # Debian GNU/NetBSD machines have a different userland, and # thus, need a distinct triplet. However, they do not need # kernel version information, so it can be replaced with a # suitable tag, in the style of linux-gnu. case "${UNAME_VERSION}" in Debian*) release='-gnu' ;; *) release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} exit ;; *:SolidBSD:*:*) echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd${UNAME_RELEASE} exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on # OSF/1 and Tru64 systems produced since 1995. I hope that # covers most systems running today. This code pipes the CPU # types through head -n 1, so we only detect the type of CPU 0. ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` case "$ALPHA_CPU_TYPE" in "EV4 (21064)") UNAME_MACHINE="alpha" ;; "EV4.5 (21064)") UNAME_MACHINE="alpha" ;; "LCA4 (21066/21068)") UNAME_MACHINE="alpha" ;; "EV5 (21164)") UNAME_MACHINE="alphaev5" ;; "EV5.6 (21164A)") UNAME_MACHINE="alphaev56" ;; "EV5.6 (21164PC)") UNAME_MACHINE="alphapca56" ;; "EV5.7 (21164PC)") UNAME_MACHINE="alphapca57" ;; "EV6 (21264)") UNAME_MACHINE="alphaev6" ;; "EV6.7 (21264A)") UNAME_MACHINE="alphaev67" ;; "EV6.8CB (21264C)") UNAME_MACHINE="alphaev68" ;; "EV6.8AL (21264B)") UNAME_MACHINE="alphaev68" ;; "EV6.8CX (21264D)") UNAME_MACHINE="alphaev68" ;; "EV6.9A (21264/EV69A)") UNAME_MACHINE="alphaev69" ;; "EV7 (21364)") UNAME_MACHINE="alphaev7" ;; "EV7.9 (21364A)") UNAME_MACHINE="alphaev79" ;; esac # A Pn.n version is a patched version. # A Vn.n version is a released version. # A Tn.n version is a released field test version. # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` exit ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead # of the specific Alpha model? echo alpha-pc-interix exit ;; 21064:Windows_NT:50:3) echo alpha-dec-winnt3.5 exit ;; Amiga*:UNIX_System_V:4.0:*) echo m68k-unknown-sysv4 exit ;; *:[Aa]miga[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-amigaos exit ;; *:[Mm]orph[Oo][Ss]:*:*) echo ${UNAME_MACHINE}-unknown-morphos exit ;; *:OS/390:*:*) echo i370-ibm-openedition exit ;; *:z/VM:*:*) echo s390-ibm-zvmoe exit ;; *:OS400:*:*) echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; arm:riscos:*:*|arm:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) echo hppa1.1-hitachi-hiuxmpp exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. if test "`(/bin/universe) 2>/dev/null`" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd fi exit ;; NILE*:*:*:dcosx) echo pyramid-pyramid-svr4 exit ;; DRS?6000:unix:4.0:6*) echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) case `/usr/bin/uname -p` in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4H:SunOS:5.*:*) echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux${UNAME_RELEASE} exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" # If there is a compiler, see if it is configured for 64-bit objects. # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. # This test works for both compilers. if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then SUN_ARCH="x86_64" fi fi echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:6*:*) # According to config.sub, this is the proper way to canonicalize # SunOS6. Hard to guess exactly what SunOS6 will be like, but # it's likely to be more like Solaris than SunOS4. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; sun4*:SunOS:*:*) case "`/usr/bin/arch -k`" in Series*|S4*) UNAME_RELEASE=`uname -v` ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos${UNAME_RELEASE} exit ;; sun*:*:4.2BSD:*) UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 case "`/bin/arch`" in sun3) echo m68k-sun-sunos${UNAME_RELEASE} ;; sun4) echo sparc-sun-sunos${UNAME_RELEASE} ;; esac exit ;; aushp:SunOS:*:*) echo sparc-auspex-sunos${UNAME_RELEASE} exit ;; # The situation for MiNT is a little confusing. The machine name # can be virtually everything (everything which is not # "atarist" or "atariste" at least should have a processor # > m68000). The system name ranges from "MiNT" over "FreeMiNT" # to the lowercase version "mint" (or "freemint"). Finally # the system name "TOS" denotes a system which is actually not # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) echo m68k-milan-mint${UNAME_RELEASE} exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) echo m68k-hades-mint${UNAME_RELEASE} exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) echo m68k-unknown-mint${UNAME_RELEASE} exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; powerpc:machten:*:*) echo powerpc-apple-machten${UNAME_RELEASE} exit ;; RISC*:Mach:*:*) echo mips-dec-mach_bsd4.3 exit ;; RISC*:ULTRIX:*:*) echo mips-dec-ultrix${UNAME_RELEASE} exit ;; VAX*:ULTRIX*:*:*) echo vax-dec-ultrix${UNAME_RELEASE} exit ;; 2020:CLIX:*:* | 2430:CLIX:*:*) echo clipper-intergraph-clix${UNAME_RELEASE} exit ;; mips:*:*:UMIPS | mips:*:*:RISCos) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __cplusplus #include /* for printf() prototype */ int main (int argc, char *argv[]) { #else int main (argc, argv) int argc; char *argv[]; { #endif #if defined (host_mips) && defined (MIPSEB) #if defined (SYSTYPE_SYSV) printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_SVR4) printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); #endif #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); #endif #endif exit (-1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && SYSTEM_NAME=`$dummy $dummyarg` && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos${UNAME_RELEASE} exit ;; Motorola:PowerMAX_OS:*:*) echo powerpc-motorola-powermax exit ;; Motorola:*:4.3:PL8-*) echo powerpc-harris-powermax exit ;; Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) echo powerpc-harris-powermax exit ;; Night_Hawk:Power_UNIX:*:*) echo powerpc-harris-powerunix exit ;; m88k:CX/UX:7*:*) echo m88k-harris-cxux7 exit ;; m88k:*:4*:R4*) echo m88k-motorola-sysv4 exit ;; m88k:*:3*:R3*) echo m88k-motorola-sysv3 exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures UNAME_PROCESSOR=`/usr/bin/uname -p` if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] then if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ [ ${TARGET_BINARY_INTERFACE}x = x ] then echo m88k-dg-dgux${UNAME_RELEASE} else echo m88k-dg-dguxbcs${UNAME_RELEASE} fi else echo i586-dg-dgux${UNAME_RELEASE} fi exit ;; M88*:DolphinOS:*:*) # DolphinOS (SVR3) echo m88k-dolphin-sysv3 exit ;; M88*:*:R3*:*) # Delta 88k system running SVR3 echo m88k-motorola-sysv3 exit ;; XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) echo m88k-tektronix-sysv3 exit ;; Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} exit ;; *:AIX:2:3) if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include main() { if (!__power_pc()) exit(1); puts("powerpc-ibm-aix3.2.5"); exit(0); } EOF if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` then echo "$SYSTEM_NAME" else echo rs6000-ibm-aix3.2.5 fi elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then echo rs6000-ibm-aix3.2.4 else echo rs6000-ibm-aix3.2 fi exit ;; *:AIX:*:[456]) IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then IBM_ARCH=rs6000 else IBM_ARCH=powerpc fi if [ -x /usr/bin/oslevel ] ; then IBM_REV=`/usr/bin/oslevel` else IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} fi echo ${IBM_ARCH}-ibm-aix${IBM_REV} exit ;; *:AIX:*:*) echo rs6000-ibm-aix exit ;; ibmrt:4.4BSD:*|romp-ibm:BSD:*) echo romp-ibm-bsd4.4 exit ;; ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to exit ;; # report: romp-ibm BSD 4.3 *:BOSX:*:*) echo rs6000-bull-bosx exit ;; DPX/2?00:B.O.S.:*:*) echo m68k-bull-sysv3 exit ;; 9000/[34]??:4.3bsd:1.*:*) echo m68k-hp-bsd exit ;; hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` case "${UNAME_MACHINE}" in 9000/31? ) HP_ARCH=m68000 ;; 9000/[34]?? ) HP_ARCH=m68k ;; 9000/[678][0-9][0-9]) if [ -x /usr/bin/getconf ]; then sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` case "${sc_cpu_version}" in 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 532) # CPU_PA_RISC2_0 case "${sc_kernel_bits}" in 32) HP_ARCH="hppa2.0n" ;; 64) HP_ARCH="hppa2.0w" ;; '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 esac ;; esac fi if [ "${HP_ARCH}" = "" ]; then eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #define _HPUX_SOURCE #include #include int main () { #if defined(_SC_KERNEL_BITS) long bits = sysconf(_SC_KERNEL_BITS); #endif long cpu = sysconf (_SC_CPU_VERSION); switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0"); break; case CPU_PA_RISC1_1: puts ("hppa1.1"); break; case CPU_PA_RISC2_0: #if defined(_SC_KERNEL_BITS) switch (bits) { case 64: puts ("hppa2.0w"); break; case 32: puts ("hppa2.0n"); break; default: puts ("hppa2.0"); break; } break; #else /* !defined(_SC_KERNEL_BITS) */ puts ("hppa2.0"); break; #endif default: puts ("hppa1.0"); break; } exit (0); } EOF (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac if [ ${HP_ARCH} = "hppa2.0w" ] then eval $set_cc_for_build # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # generating 64-bit code. GNU and HP use different nomenclature: # # $ CC_FOR_BUILD=cc ./config.guess # => hppa2.0w-hp-hpux11.23 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # => hppa64-hp-hpux11.23 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | grep -q __LP64__ then HP_ARCH="hppa2.0w" else HP_ARCH="hppa64" fi fi echo ${HP_ARCH}-hp-hpux${HPUX_REV} exit ;; ia64:HP-UX:*:*) HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` echo ia64-hp-hpux${HPUX_REV} exit ;; 3050*:HI-UX:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #include int main () { long cpu = sysconf (_SC_CPU_VERSION); /* The order matters, because CPU_IS_HP_MC68K erroneously returns true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct results, however. */ if (CPU_IS_PA_RISC (cpu)) { switch (cpu) { case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; default: puts ("hppa-hitachi-hiuxwe2"); break; } } else if (CPU_IS_HP_MC68K (cpu)) puts ("m68k-hitachi-hiuxwe2"); else puts ("unknown-hitachi-hiuxwe2"); exit (0); } EOF $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) echo hppa1.1-hp-bsd exit ;; 9000/8??:4.3bsd:*:*) echo hppa1.0-hp-bsd exit ;; *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) echo hppa1.0-hp-mpeix exit ;; hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) echo hppa1.1-hp-osf exit ;; hp8??:OSF1:*:*) echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) if [ -x /usr/sbin/sysversion ] ; then echo ${UNAME_MACHINE}-unknown-osf1mk else echo ${UNAME_MACHINE}-unknown-osf1 fi exit ;; parisc*:Lites*:*:*) echo hppa1.1-hp-lites exit ;; C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) echo c1-convex-bsd exit ;; C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) echo c34-convex-bsd exit ;; C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) echo c38-convex-bsd exit ;; C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) echo c4-convex-bsd exit ;; CRAY*Y-MP:*:*:*) echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*[A-Z]90:*:*:*) echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ -e 's/\.[^.]*$/.X/' exit ;; CRAY*TS:*:*:*) echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*T3E:*:*:*) echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; CRAY*SV1:*:*:*) echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; *:UNICOS/mp:*:*) echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' exit ;; F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 5000:UNIX_System_V:4.*:*) FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} exit ;; sparc*:BSD/OS:*:*) echo sparc-unknown-bsdi${UNAME_RELEASE} exit ;; *:BSD/OS:*:*) echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} exit ;; *:FreeBSD:*:*) case ${UNAME_MACHINE} in pc98) echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; amd64) echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; *) echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; esac exit ;; i*:CYGWIN*:*) echo ${UNAME_MACHINE}-pc-cygwin exit ;; *:MINGW*:*) echo ${UNAME_MACHINE}-pc-mingw32 exit ;; i*:windows32*:*) # uname -m includes "-pc" on this system. echo ${UNAME_MACHINE}-mingw32 exit ;; i*:PW*:*) echo ${UNAME_MACHINE}-pc-pw32 exit ;; *:Interix*:*) case ${UNAME_MACHINE} in x86) echo i586-pc-interix${UNAME_RELEASE} exit ;; authenticamd | genuineintel | EM64T) echo x86_64-unknown-interix${UNAME_RELEASE} exit ;; IA64) echo ia64-unknown-interix${UNAME_RELEASE} exit ;; esac ;; [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) echo i${UNAME_MACHINE}-pc-mks exit ;; 8664:Windows_NT:*) echo x86_64-pc-mks exit ;; i*:Windows_NT*:* | Pentium*:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we # UNAME_MACHINE based on the output of uname instead of i386? echo i586-pc-interix exit ;; i*:UWIN*:*) echo ${UNAME_MACHINE}-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) echo x86_64-unknown-cygwin exit ;; p*:CYGWIN*:*) echo powerpcle-unknown-cygwin exit ;; prep*:SunOS:5.*:*) echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; *:GNU:*:*) # the GNU system echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu exit ;; i*86:Minix:*:*) echo ${UNAME_MACHINE}-pc-minix exit ;; alpha:Linux:*:*) case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in EV5) UNAME_MACHINE=alphaev5 ;; EV56) UNAME_MACHINE=alphaev56 ;; PCA56) UNAME_MACHINE=alphapca56 ;; PCA57) UNAME_MACHINE=alphapca56 ;; EV6) UNAME_MACHINE=alphaev6 ;; EV67) UNAME_MACHINE=alphaev67 ;; EV68*) UNAME_MACHINE=alphaev68 ;; esac objdump --private-headers /bin/sh | grep -q ld.so.1 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} exit ;; arm*:Linux:*:*) eval $set_cc_for_build if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | grep -q __ARM_EABI__ then echo ${UNAME_MACHINE}-unknown-linux-gnu else echo ${UNAME_MACHINE}-unknown-linux-gnueabi fi exit ;; avr32*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; cris:Linux:*:*) echo cris-axis-linux-gnu exit ;; crisv32:Linux:*:*) echo crisv32-axis-linux-gnu exit ;; frv:Linux:*:*) echo frv-unknown-linux-gnu exit ;; i*86:Linux:*:*) LIBC=gnu eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #ifdef __dietlibc__ LIBC=dietlibc #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` echo "${UNAME_MACHINE}-pc-linux-${LIBC}" exit ;; ia64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m32r*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; m68*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; mips:Linux:*:* | mips64:Linux:*:*) eval $set_cc_for_build sed 's/^ //' << EOF >$dummy.c #undef CPU #undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}el #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) CPU=${UNAME_MACHINE}el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) CPU=${UNAME_MACHINE} #else CPU= #endif #endif EOF eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } ;; or32:Linux:*:*) echo or32-unknown-linux-gnu exit ;; padre:Linux:*:*) echo sparc-unknown-linux-gnu exit ;; parisc64:Linux:*:* | hppa64:Linux:*:*) echo hppa64-unknown-linux-gnu exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in PA7*) echo hppa1.1-unknown-linux-gnu ;; PA8*) echo hppa2.0-unknown-linux-gnu ;; *) echo hppa-unknown-linux-gnu ;; esac exit ;; ppc64:Linux:*:*) echo powerpc64-unknown-linux-gnu exit ;; ppc:Linux:*:*) echo powerpc-unknown-linux-gnu exit ;; s390:Linux:*:* | s390x:Linux:*:*) echo ${UNAME_MACHINE}-ibm-linux exit ;; sh64*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sh*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; sparc:Linux:*:* | sparc64:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; vax:Linux:*:*) echo ${UNAME_MACHINE}-dec-linux-gnu exit ;; x86_64:Linux:*:*) echo x86_64-unknown-linux-gnu exit ;; xtensa*:Linux:*:*) echo ${UNAME_MACHINE}-unknown-linux-gnu exit ;; i*86:DYNIX/ptx:4*:*) # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # earlier versions are messed up and put the nodename in both # sysname and nodename. echo i386-sequent-sysv4 exit ;; i*86:UNIX_SV:4.2MP:2.*) # Unixware is an offshoot of SVR4, but it has its own version # number series starting with 2... # I am not positive that other SVR4 systems won't match this, # I just have to hope. -- rms. # Use sysv4.2uw... so that sysv4* matches it. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} exit ;; i*86:OS/2:*:*) # If we were able to find `uname', then EMX Unix compatibility # is probably installed. echo ${UNAME_MACHINE}-pc-os2-emx exit ;; i*86:XTS-300:*:STOP) echo ${UNAME_MACHINE}-unknown-stop exit ;; i*86:atheos:*:*) echo ${UNAME_MACHINE}-unknown-atheos exit ;; i*86:syllable:*:*) echo ${UNAME_MACHINE}-pc-syllable exit ;; i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) echo i386-unknown-lynxos${UNAME_RELEASE} exit ;; i*86:*DOS:*:*) echo ${UNAME_MACHINE}-pc-msdosdjgpp exit ;; i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} else echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} fi exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. case `/bin/uname -X | grep "^Machine"` in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} exit ;; i*86:*:3.2:*) if test -f /usr/options/cb.name; then UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ && UNAME_MACHINE=i586 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ && UNAME_MACHINE=i686 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ && UNAME_MACHINE=i686 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL else echo ${UNAME_MACHINE}-pc-sysv32 fi exit ;; pc:*:*:*) # Left here for compatibility: # uname -m prints for DJGPP always 'pc', but it prints nothing about # the processor, so we play safe by assuming i586. # Note: whatever this is, it MUST be the same as what config.sub # prints for the "djgpp" host, or else GDB configury will decide that # this is a cross-build. echo i586-pc-msdosdjgpp exit ;; Intel:Mach:3*:*) echo i386-pc-mach3 exit ;; paragon:*:*:*) echo i860-intel-osf1 exit ;; i860:*:4.*:*) # i860-SVR4 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 else # Add other i860-SVR4 vendors below as they are discovered. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 fi exit ;; mini*:CTIX:SYS*5:*) # "miniframe" echo m68010-convergent-sysv exit ;; mc68k:UNIX:SYSTEM5:3.51m) echo m68k-convergent-sysv exit ;; M680?0:D-NIX:5.3:*) echo m68k-diab-dnix exit ;; M68*:*:R3V[5678]*:*) test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) OS_REL='' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4; exit; } ;; NCR*:*:4.2:* | MPRAS*:*:4.2:*) OS_REL='.3' test -r /etc/.relid \ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) echo m68k-unknown-lynxos${UNAME_RELEASE} exit ;; mc68030:UNIX_System_V:4.*:*) echo m68k-atari-sysv4 exit ;; TSUNAMI:LynxOS:2.*:*) echo sparc-unknown-lynxos${UNAME_RELEASE} exit ;; rs6000:LynxOS:2.*:*) echo rs6000-unknown-lynxos${UNAME_RELEASE} exit ;; PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) echo powerpc-unknown-lynxos${UNAME_RELEASE} exit ;; SM[BE]S:UNIX_SV:*:*) echo mips-dde-sysv${UNAME_RELEASE} exit ;; RM*:ReliantUNIX-*:*:*) echo mips-sni-sysv4 exit ;; RM*:SINIX-*:*:*) echo mips-sni-sysv4 exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then UNAME_MACHINE=`(uname -p) 2>/dev/null` echo ${UNAME_MACHINE}-sni-sysv4 else echo ns32k-sni-sysv fi exit ;; PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort # says echo i586-unisys-sysv4 exit ;; *:UNIX_System_V:4*:FTX*) # From Gerald Hewes . # How about differentiating between stratus architectures? -djm echo hppa1.1-stratus-sysv4 exit ;; *:*:*:FTX*) # From seanf@swdc.stratus.com. echo i860-stratus-sysv4 exit ;; i*86:VOS:*:*) # From Paul.Green@stratus.com. echo ${UNAME_MACHINE}-stratus-vos exit ;; *:VOS:*:*) # From Paul.Green@stratus.com. echo hppa1.1-stratus-vos exit ;; mc68*:A/UX:*:*) echo m68k-apple-aux${UNAME_RELEASE} exit ;; news*:NEWS-OS:6*:*) echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) if [ -d /usr/nec ]; then echo mips-nec-sysv${UNAME_RELEASE} else echo mips-unknown-sysv${UNAME_RELEASE} fi exit ;; BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. echo powerpc-be-beos exit ;; BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. echo powerpc-apple-beos exit ;; BePC:BeOS:*:*) # BeOS running on Intel PC compatible. echo i586-pc-beos exit ;; BePC:Haiku:*:*) # Haiku running on Intel PC compatible. echo i586-pc-haiku exit ;; SX-4:SUPER-UX:*:*) echo sx4-nec-superux${UNAME_RELEASE} exit ;; SX-5:SUPER-UX:*:*) echo sx5-nec-superux${UNAME_RELEASE} exit ;; SX-6:SUPER-UX:*:*) echo sx6-nec-superux${UNAME_RELEASE} exit ;; SX-7:SUPER-UX:*:*) echo sx7-nec-superux${UNAME_RELEASE} exit ;; SX-8:SUPER-UX:*:*) echo sx8-nec-superux${UNAME_RELEASE} exit ;; SX-8R:SUPER-UX:*:*) echo sx8r-nec-superux${UNAME_RELEASE} exit ;; Power*:Rhapsody:*:*) echo powerpc-apple-rhapsody${UNAME_RELEASE} exit ;; *:Rhapsody:*:*) echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} exit ;; *:Darwin:*:*) UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown case $UNAME_PROCESSOR in i386) eval $set_cc_for_build if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ grep IS_64BIT_ARCH >/dev/null then UNAME_PROCESSOR="x86_64" fi fi ;; unknown) UNAME_PROCESSOR=powerpc ;; esac echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) UNAME_PROCESSOR=`uname -p` if test "$UNAME_PROCESSOR" = "x86"; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc fi echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} exit ;; *:QNX:*:4*) echo i386-pc-qnx exit ;; NSE-?:NONSTOP_KERNEL:*:*) echo nse-tandem-nsk${UNAME_RELEASE} exit ;; NSR-?:NONSTOP_KERNEL:*:*) echo nsr-tandem-nsk${UNAME_RELEASE} exit ;; *:NonStop-UX:*:*) echo mips-compaq-nonstopux exit ;; BS2000:POSIX*:*:*) echo bs2000-siemens-sysv exit ;; DS/*:UNIX_System_V:*:*) echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} exit ;; *:Plan9:*:*) # "uname -m" is not consistent, so use $cputype instead. 386 # is converted to i386 for consistency with other x86 # operating systems. if test "$cputype" = "386"; then UNAME_MACHINE=i386 else UNAME_MACHINE="$cputype" fi echo ${UNAME_MACHINE}-unknown-plan9 exit ;; *:TOPS-10:*:*) echo pdp10-unknown-tops10 exit ;; *:TENEX:*:*) echo pdp10-unknown-tenex exit ;; KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) echo pdp10-dec-tops20 exit ;; XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) echo pdp10-xkl-tops20 exit ;; *:TOPS-20:*:*) echo pdp10-unknown-tops20 exit ;; *:ITS:*:*) echo pdp10-unknown-its exit ;; SEI:*:*:SEIUX) echo mips-sei-seiux${UNAME_RELEASE} exit ;; *:DragonFly:*:*) echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` exit ;; *:*VMS:*:*) UNAME_MACHINE=`(uname -p) 2>/dev/null` case "${UNAME_MACHINE}" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;; esac ;; *:XENIX:*:SysV) echo i386-pc-xenix exit ;; i*86:skyos:*:*) echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' exit ;; i*86:rdos:*:*) echo ${UNAME_MACHINE}-pc-rdos exit ;; i*86:AROS:*:*) echo ${UNAME_MACHINE}-pc-aros exit ;; esac #echo '(No uname command or uname output not recognized.)' 1>&2 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 eval $set_cc_for_build cat >$dummy.c < # include #endif main () { #if defined (sony) #if defined (MIPSEB) /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, I don't know.... */ printf ("mips-sony-bsd\n"); exit (0); #else #include printf ("m68k-sony-newsos%s\n", #ifdef NEWSOS4 "4" #else "" #endif ); exit (0); #endif #endif #if defined (__arm) && defined (__acorn) && defined (__unix) printf ("arm-acorn-riscix\n"); exit (0); #endif #if defined (hp300) && !defined (hpux) printf ("m68k-hp-bsd\n"); exit (0); #endif #if defined (NeXT) #if !defined (__ARCHITECTURE__) #define __ARCHITECTURE__ "m68k" #endif int version; version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; if (version < 4) printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); else printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); exit (0); #endif #if defined (MULTIMAX) || defined (n16) #if defined (UMAXV) printf ("ns32k-encore-sysv\n"); exit (0); #else #if defined (CMU) printf ("ns32k-encore-mach\n"); exit (0); #else printf ("ns32k-encore-bsd\n"); exit (0); #endif #endif #endif #if defined (__386BSD__) printf ("i386-pc-bsd\n"); exit (0); #endif #if defined (sequent) #if defined (i386) printf ("i386-sequent-dynix\n"); exit (0); #endif #if defined (ns32000) printf ("ns32k-sequent-dynix\n"); exit (0); #endif #endif #if defined (_SEQUENT_) struct utsname un; uname(&un); if (strncmp(un.version, "V2", 2) == 0) { printf ("i386-sequent-ptx2\n"); exit (0); } if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ printf ("i386-sequent-ptx1\n"); exit (0); } printf ("i386-sequent-ptx\n"); exit (0); #endif #if defined (vax) # if !defined (ultrix) # include # if defined (BSD) # if BSD == 43 printf ("vax-dec-bsd4.3\n"); exit (0); # else # if BSD == 199006 printf ("vax-dec-bsd4.3reno\n"); exit (0); # else printf ("vax-dec-bsd\n"); exit (0); # endif # endif # else printf ("vax-dec-bsd\n"); exit (0); # endif # else printf ("vax-dec-ultrix\n"); exit (0); # endif #endif #if defined (alliant) && defined (i860) printf ("i860-alliant-bsd\n"); exit (0); #endif exit (1); } EOF $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && { echo "$SYSTEM_NAME"; exit; } # Apollos put the system type in the environment. test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } # Convex versions that predate uname can use getsysinfo(1) if [ -x /usr/convex/getsysinfo ] then case `getsysinfo -f cpu_type` in c1*) echo c1-convex-bsd exit ;; c2*) if getsysinfo -f scalar_acc then echo c32-convex-bsd else echo c2-convex-bsd fi exit ;; c34*) echo c34-convex-bsd exit ;; c38*) echo c38-convex-bsd exit ;; c4*) echo c4-convex-bsd exit ;; esac fi cat >&2 < in order to provide the needed information to handle your system. config.guess timestamp = $timestamp uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` /bin/uname -X = `(/bin/uname -X) 2>/dev/null` hostinfo = `(hostinfo) 2>/dev/null` /bin/universe = `(/bin/universe) 2>/dev/null` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` /bin/arch = `(/bin/arch) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` UNAME_MACHINE = ${UNAME_MACHINE} UNAME_RELEASE = ${UNAME_RELEASE} UNAME_SYSTEM = ${UNAME_SYSTEM} UNAME_VERSION = ${UNAME_VERSION} EOF exit 1 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ripperX-2.8.0/config/config.rpath000066400000000000000000000440121233655711300167330ustar00rootroot00000000000000#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2010 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # # This file is free software; the Free Software Foundation gives # unlimited permission to copy and/or distribute it, with or without # modifications, as long as this notice is preserved. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # The environment variables CC, GCC, LDFLAGS, LD, with_gnu_ld # should be set by the caller. # # The set of defined variables is at the end of this script. # Known limitations: # - On IRIX 6.5 with CC="cc", the run time search patch must not be longer # than 256 bytes, otherwise the compiler driver will dump core. The only # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. # All known linkers require a `.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so host="$1" host_cpu=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` host_vendor=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` host_os=`echo "$host" | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` # Code taken from libtool.m4's _LT_CC_BASENAME. for cc_temp in $CC""; do case $cc_temp in compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; \-*) ;; *) break;; esac done cc_basename=`echo "$cc_temp" | sed -e 's%^.*/%%'` # Code taken from libtool.m4's _LT_COMPILER_PIC. wl= if test "$GCC" = yes; then wl='-Wl,' else case "$host_os" in aix*) wl='-Wl,' ;; darwin*) case $cc_basename in xlc*) wl='-Wl,' ;; esac ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) wl='-Wl,' ;; irix5* | irix6* | nonstopux*) wl='-Wl,' ;; newsos6) ;; linux* | k*bsd*-gnu) case $cc_basename in ecc*) wl='-Wl,' ;; icc* | ifort*) wl='-Wl,' ;; lf95*) wl='-Wl,' ;; pgcc | pgf77 | pgf90) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in *Sun\ C*) wl='-Wl,' ;; esac ;; esac ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) wl='-Wl,' ;; sunos4*) wl='-Qoption ld ' ;; sysv4 | sysv4.2uw2* | sysv4.3*) wl='-Wl,' ;; sysv4*MP*) ;; sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) wl='-Wl,' ;; unicos*) wl='-Wl,' ;; uts4*) ;; esac fi # Code taken from libtool.m4's _LT_LINKER_SHLIBS. hardcode_libdir_flag_spec= hardcode_libdir_separator= hardcode_direct=no hardcode_minus_L=no case "$host_os" in cygwin* | mingw* | pw32* | cegcc*) # FIXME: the MSVC++ port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using # Microsoft Visual C++. if test "$GCC" != yes; then with_gnu_ld=no fi ;; interix*) # we just hope/assume this is gcc and not c89 (= MSVC++) with_gnu_ld=yes ;; openbsd*) with_gnu_ld=no ;; esac ld_shlibs=yes if test "$with_gnu_ld" = yes; then # Set some defaults for GNU ld with shared library support. These # are reset later if shared libraries are not supported. Putting them # here allows them to be overridden if necessary. # Unlike libtool, we use -rpath here, not --rpath, since the documented # option of GNU ld is called -rpath, not --rpath. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' case "$host_os" in aix[3-9]*) # On AIX/PPC, the GNU linker is very broken if test "$host_cpu" != ia64; then ld_shlibs=no fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # Samuel A. Falvo II reports # that the semantics of dynamic libraries on AmigaOS, at least up # to version 4, is to share data among multiple programs linked # with the same dynamic library. Since this doesn't match the # behavior of shared libraries on other platforms, we cannot use # them. ld_shlibs=no ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; cygwin* | mingw* | pw32* | cegcc*) # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec='-L$libdir' if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then : else ld_shlibs=no fi ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; gnu* | linux* | k*bsd*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; netbsd*) ;; solaris*) if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then ld_shlibs=no elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) case `$LD -v 2>&1` in *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) ld_shlibs=no ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' else ld_shlibs=no fi ;; esac ;; sunos4*) hardcode_direct=yes ;; *) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else ld_shlibs=no fi ;; esac if test "$ld_shlibs" = no; then hardcode_libdir_flag_spec= fi else case "$host_os" in aix3*) # Note: this linker hardcodes the directories in LIBPATH if there # are no directories specified by -L. hardcode_minus_L=yes if test "$GCC" = yes; then # Neither direct hardcoding nor static linking is supported with a # broken collect2. hardcode_direct=unsupported fi ;; aix[4-9]*) if test "$host_cpu" = ia64; then # On IA64, the linker does run time linking by default, so we don't # have to do anything special. aix_use_runtimelinking=no else aix_use_runtimelinking=no # Test if we are trying to use run time linking or normal # AIX style linking. If -brtl is somewhere in LDFLAGS, we # need to do runtime linking. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) for ld_flag in $LDFLAGS; do if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then aix_use_runtimelinking=yes break fi done ;; esac fi hardcode_direct=yes hardcode_libdir_separator=':' if test "$GCC" = yes; then case $host_os in aix4.[012]|aix4.[012].*) collect2name=`${CC} -print-prog-name=collect2` if test -f "$collect2name" && \ strings "$collect2name" | grep resolve_lib_name >/dev/null then # We have reworked collect2 : else # We have old collect2 hardcode_direct=unsupported hardcode_minus_L=yes hardcode_libdir_flag_spec='-L$libdir' hardcode_libdir_separator= fi ;; esac fi # Begin _LT_AC_SYS_LIBPATH_AIX. echo 'int main () { return 0; }' > conftest.c ${CC} ${LDFLAGS} conftest.c -o conftest aix_libpath=`dump -H conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest 2>/dev/null | sed -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } }'` fi if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib" fi rm -f conftest.c conftest # End _LT_AC_SYS_LIBPATH_AIX. if test "$aix_use_runtimelinking" = yes; then hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" else if test "$host_cpu" = ia64; then hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' else hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" fi fi ;; amigaos*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes # see comment about different semantics on the GNU ld section ld_shlibs=no ;; bsdi[45]*) ;; cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using # Microsoft Visual C++. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec=' ' libext=lib ;; darwin* | rhapsody*) hardcode_direct=no if test "$GCC" = yes ; then : else case $cc_basename in xlc*) ;; *) ld_shlibs=no ;; esac fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; freebsd1*) ld_shlibs=no ;; freebsd2.2*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; freebsd2*) hardcode_direct=yes hardcode_minus_L=yes ;; freebsd* | dragonfly*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; hpux9*) hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; hpux10*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes fi ;; hpux11*) if test "$with_gnu_ld" = no; then hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' hardcode_libdir_separator=: case $host_cpu in hppa*64*|ia64*) hardcode_direct=no ;; *) hardcode_direct=yes # hardcode_minus_L: Not really in the search PATH, # but as the default location of the library. hardcode_minus_L=yes ;; esac fi ;; irix5* | irix6* | nonstopux*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; netbsd*) hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes ;; newsos6) hardcode_direct=yes hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then hardcode_libdir_flag_spec='${wl}-rpath,$libdir' else case "$host_os" in openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) hardcode_libdir_flag_spec='-R$libdir' ;; *) hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; esac fi else ld_shlibs=no fi ;; os2*) hardcode_libdir_flag_spec='-L$libdir' hardcode_minus_L=yes ;; osf3*) hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; osf4* | osf5*) if test "$GCC" = yes; then hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' else # Both cc and cxx compiler support -rpath directly hardcode_libdir_flag_spec='-rpath $libdir' fi hardcode_libdir_separator=: ;; solaris*) hardcode_libdir_flag_spec='-R$libdir' ;; sunos4*) hardcode_libdir_flag_spec='-L$libdir' hardcode_direct=yes hardcode_minus_L=yes ;; sysv4) case $host_vendor in sni) hardcode_direct=yes # is this really true??? ;; siemens) hardcode_direct=no ;; motorola) hardcode_direct=no #Motorola manual says yes, but my tests say they lie ;; esac ;; sysv4.3*) ;; sysv4*MP*) if test -d /usr/nec; then ld_shlibs=yes fi ;; sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) ;; sysv5* | sco3.2v5* | sco5v6*) hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' hardcode_libdir_separator=':' ;; uts4*) hardcode_libdir_flag_spec='-L$libdir' ;; *) ld_shlibs=no ;; esac fi # Check dynamic linker characteristics # Code taken from libtool.m4's _LT_SYS_DYNAMIC_LINKER. # Unlike libtool.m4, here we don't care about _all_ names of the library, but # only about the one the linker finds when passed -lNAME. This is the last # element of library_names_spec in libtool.m4, or possibly two of them if the # linker has special search rules. library_names_spec= # the last element of library_names_spec in libtool.m4 libname_spec='lib$name' case "$host_os" in aix3*) library_names_spec='$libname.a' ;; aix[4-9]*) library_names_spec='$libname$shrext' ;; amigaos*) library_names_spec='$libname.a' ;; beos*) library_names_spec='$libname$shrext' ;; bsdi[45]*) library_names_spec='$libname$shrext' ;; cygwin* | mingw* | pw32* | cegcc*) shrext=.dll library_names_spec='$libname.dll.a $libname.lib' ;; darwin* | rhapsody*) shrext=.dylib library_names_spec='$libname$shrext' ;; dgux*) library_names_spec='$libname$shrext' ;; freebsd1*) ;; freebsd* | dragonfly*) case "$host_os" in freebsd[123]*) library_names_spec='$libname$shrext$versuffix' ;; *) library_names_spec='$libname$shrext' ;; esac ;; gnu*) library_names_spec='$libname$shrext' ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) shrext=.so ;; hppa*64*) shrext=.sl ;; *) shrext=.sl ;; esac library_names_spec='$libname$shrext' ;; interix[3-9]*) library_names_spec='$libname$shrext' ;; irix5* | irix6* | nonstopux*) library_names_spec='$libname$shrext' case "$host_os" in irix5* | nonstopux*) libsuff= shlibsuff= ;; *) case $LD in *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") libsuff= shlibsuff= ;; *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") libsuff=32 shlibsuff=N32 ;; *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") libsuff=64 shlibsuff=64 ;; *) libsuff= shlibsuff= ;; esac ;; esac ;; linux*oldld* | linux*aout* | linux*coff*) ;; linux* | k*bsd*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) library_names_spec='$libname$shrext' ;; netbsd*) library_names_spec='$libname$shrext' ;; newsos6) library_names_spec='$libname$shrext' ;; nto-qnx*) library_names_spec='$libname$shrext' ;; openbsd*) library_names_spec='$libname$shrext$versuffix' ;; os2*) libname_spec='$name' shrext=.dll library_names_spec='$libname.a' ;; osf3* | osf4* | osf5*) library_names_spec='$libname$shrext' ;; rdos*) ;; solaris*) library_names_spec='$libname$shrext' ;; sunos4*) library_names_spec='$libname$shrext$versuffix' ;; sysv4 | sysv4.3*) library_names_spec='$libname$shrext' ;; sysv4*MP*) library_names_spec='$libname$shrext' ;; sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; uts4*) library_names_spec='$libname$shrext' ;; esac sed_quote_subst='s/\(["`$\\]\)/\\\1/g' escaped_wl=`echo "X$wl" | sed -e 's/^X//' -e "$sed_quote_subst"` shlibext=`echo "$shrext" | sed -e 's,^\.,,'` escaped_libname_spec=`echo "X$libname_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_library_names_spec=`echo "X$library_names_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` escaped_hardcode_libdir_flag_spec=`echo "X$hardcode_libdir_flag_spec" | sed -e 's/^X//' -e "$sed_quote_subst"` LC_ALL=C sed -e 's/^\([a-zA-Z0-9_]*\)=/acl_cv_\1=/' <. Submit a context # diff and a properly formatted GNU ChangeLog entry. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. # You can get the latest version of this script from: # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. # Each package is responsible for reporting which valid configurations # it does not support. The user should be able to distinguish # a failure to support a valid configuration from a meaningless # configuration. # The goal of this file is to map all the various variations of a given # machine specification into a single specification in the form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM # or in some cases, the newer four-part form: # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. me=`echo "$0" | sed -e 's,.*/,,'` usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS $0 [OPTION] ALIAS Canonicalize a configuration name. Operation modes: -h, --help print this help, then exit -t, --time-stamp print date of last modification, then exit -v, --version print version number, then exit Report bugs and patches to ." version="\ GNU config.sub ($timestamp) Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." help=" Try \`$me --help' for more information." # Parse command line while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) echo "$timestamp" ; exit ;; --version | -v ) echo "$version" ; exit ;; --help | --h* | -h ) echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. break ;; -* ) echo "$me: invalid option $1$help" exit 1 ;; *local*) # First pass through any local machine types. echo $1 exit ;; * ) break ;; esac done case $# in 0) echo "$me: missing argument$help" >&2 exit 1;; 1) ;; *) echo "$me: too many arguments$help" >&2 exit 1;; esac # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] then os=`echo $1 | sed 's/.*-/-/'` else os=; fi ;; esac ### Let's recognize common machines as not being operating systems so ### that things like config.sub decstation-3100 work. We also ### recognize some manufacturers as not being operating systems, so we ### can provide default operating systems below. case $os in -sun*os*) # Prevent following clause from handling this invalid input. ;; -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -apple | -axis | -knuth | -cray | -microblaze) os= basic_machine=$1 ;; -bluegene*) os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= basic_machine=$1 ;; -scout) ;; -wrs) os=-vxworks basic_machine=$1 ;; -chorusos*) os=-chorusos basic_machine=$1 ;; -chorusrdb) os=-chorusrdb basic_machine=$1 ;; -hiux*) os=-hiuxwe2 ;; -sco6) os=-sco5v6 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco4) os=-sco3.2v4 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2.[4-9]*) os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco3.2v[4-9]*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco5v6*) # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -udk*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -isc) os=-isc2.2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -clix*) basic_machine=clipper-intergraph ;; -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; -lynx*) os=-lynxos ;; -ptx*) basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` ;; -windowsnt*) os=`echo $os | sed -e 's/windowsnt/winnt/'` ;; -psos*) os=-psos ;; -mint | -mint[0-9]*) basic_machine=m68k-atari os=-mint ;; esac # Decode aliases for certain CPU-COMPANY combinations. case $basic_machine in # Recognize the basic CPU types without company name. # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ | maxq | mb | microblaze | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ | mips64octeon | mips64octeonel \ | mips64orion | mips64orionel \ | mips64r5900 | mips64r5900el \ | mips64vr | mips64vrel \ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ | nios | nios2 \ | ns16k | ns32k \ | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | spu | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | ubicom32 \ | v850 | v850e \ | we32k \ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k | z80) basic_machine=$basic_machine-unknown ;; m6811 | m68hc11 | m6812 | m68hc12 | picochip) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown os=-none ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; ms1) basic_machine=mt-unknown ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and # (2) the word "unknown" tends to confuse beginning users. i*86 | x86_64) basic_machine=$basic_machine-pc ;; # Object if more than one company name word. *-*-*) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; # Recognize the basic CPU types with company name. 580-* \ | a29k-* \ | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* | avr32-* \ | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ | ip2k-* | iq2000-* \ | lm32-* \ | m32c-* | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ | mips64octeon-* | mips64octeonel-* \ | mips64orion-* | mips64orionel-* \ | mips64r5900-* | mips64r5900el-* \ | mips64vr-* | mips64vrel-* \ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ | mmix-* \ | mt-* \ | msp430-* \ | nios-* | nios2-* \ | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* | rx-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparclite-* \ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tile-* | tilegx-* \ | tron-* \ | ubicom32-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ | xstormy16-* | xtensa*-* \ | ymp-* \ | z8k-* | z80-*) ;; # Recognize the basic CPU types without company name, with glob match. xtensa*) basic_machine=$basic_machine-unknown ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) basic_machine=i386-unknown os=-bsd ;; 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) basic_machine=m68000-att ;; 3b*) basic_machine=we32k-att ;; a29khif) basic_machine=a29k-amd os=-udi ;; abacus) basic_machine=abacus-unknown ;; adobe68k) basic_machine=m68010-adobe os=-scout ;; alliant | fx80) basic_machine=fx80-alliant ;; altos | altos3068) basic_machine=m68k-altos ;; am29k) basic_machine=a29k-none os=-bsd ;; amd64) basic_machine=x86_64-pc ;; amd64-*) basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; amdahl) basic_machine=580-amdahl os=-sysv ;; amiga | amiga-*) basic_machine=m68k-unknown ;; amigaos | amigados) basic_machine=m68k-unknown os=-amigaos ;; amigaunix | amix) basic_machine=m68k-unknown os=-sysv4 ;; apollo68) basic_machine=m68k-apollo os=-sysv ;; apollo68bsd) basic_machine=m68k-apollo os=-bsd ;; aros) basic_machine=i386-pc os=-aros ;; aux) basic_machine=m68k-apple os=-aux ;; balance) basic_machine=ns32k-sequent os=-dynix ;; blackfin) basic_machine=bfin-unknown os=-linux ;; blackfin-*) basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; bluegene*) basic_machine=powerpc-ibm os=-cnk ;; c90) basic_machine=c90-cray os=-unicos ;; cegcc) basic_machine=arm-unknown os=-cegcc ;; convex-c1) basic_machine=c1-convex os=-bsd ;; convex-c2) basic_machine=c2-convex os=-bsd ;; convex-c32) basic_machine=c32-convex os=-bsd ;; convex-c34) basic_machine=c34-convex os=-bsd ;; convex-c38) basic_machine=c38-convex os=-bsd ;; cray | j90) basic_machine=j90-cray os=-unicos ;; craynv) basic_machine=craynv-cray os=-unicosmp ;; cr16) basic_machine=cr16-unknown os=-elf ;; crds | unos) basic_machine=m68k-crds ;; crisv32 | crisv32-* | etraxfs*) basic_machine=crisv32-axis ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; crx) basic_machine=crx-unknown os=-elf ;; da30 | da30-*) basic_machine=m68k-da30 ;; decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) basic_machine=mips-dec ;; decsystem10* | dec10*) basic_machine=pdp10-dec os=-tops10 ;; decsystem20* | dec20*) basic_machine=pdp10-dec os=-tops20 ;; delta | 3300 | motorola-3300 | motorola-delta \ | 3300-motorola | delta-motorola) basic_machine=m68k-motorola ;; delta88) basic_machine=m88k-motorola os=-sysv3 ;; dicos) basic_machine=i686-pc os=-dicos ;; djgpp) basic_machine=i586-pc os=-msdosdjgpp ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx ;; dpx2* | dpx2*-bull) basic_machine=m68k-bull os=-sysv3 ;; ebmon29k) basic_machine=a29k-amd os=-ebmon ;; elxsi) basic_machine=elxsi-elxsi os=-bsd ;; encore | umax | mmax) basic_machine=ns32k-encore ;; es1800 | OSE68k | ose68k | ose | OSE) basic_machine=m68k-ericsson os=-ose ;; fx2800) basic_machine=i860-alliant ;; genix) basic_machine=ns32k-ns ;; gmicro) basic_machine=tron-gmicro os=-sysv ;; go32) basic_machine=i386-pc os=-go32 ;; h3050r* | hiux*) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; h8300hms) basic_machine=h8300-hitachi os=-hms ;; h8300xray) basic_machine=h8300-hitachi os=-xray ;; h8500hms) basic_machine=h8500-hitachi os=-hms ;; harris) basic_machine=m88k-harris os=-sysv3 ;; hp300-*) basic_machine=m68k-hp ;; hp300bsd) basic_machine=m68k-hp os=-bsd ;; hp300hpux) basic_machine=m68k-hp os=-hpux ;; hp3k9[0-9][0-9] | hp9[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k2[0-9][0-9] | hp9k31[0-9]) basic_machine=m68000-hp ;; hp9k3[2-9][0-9]) basic_machine=m68k-hp ;; hp9k6[0-9][0-9] | hp6[0-9][0-9]) basic_machine=hppa1.0-hp ;; hp9k7[0-79][0-9] | hp7[0-79][0-9]) basic_machine=hppa1.1-hp ;; hp9k78[0-9] | hp78[0-9]) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) # FIXME: really hppa2.0-hp basic_machine=hppa1.1-hp ;; hp9k8[0-9][13679] | hp8[0-9][13679]) basic_machine=hppa1.1-hp ;; hp9k8[0-9][0-9] | hp8[0-9][0-9]) basic_machine=hppa1.0-hp ;; hppa-next) os=-nextstep3 ;; hppaosf) basic_machine=hppa1.1-hp os=-osf ;; hppro) basic_machine=hppa1.1-hp os=-proelf ;; i370-ibm* | ibm*) basic_machine=i370-ibm ;; # I'm not sure what "Sysv32" means. Should this be sysv3.2? i*86v32) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv32 ;; i*86v4*) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv4 ;; i*86v) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-sysv ;; i*86sol2) basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` os=-solaris2 ;; i386mach) basic_machine=i386-mach os=-mach ;; i386-vsta | vsta) basic_machine=i386-unknown os=-vsta ;; iris | iris4d) basic_machine=mips-sgi case $os in -irix*) ;; *) os=-irix4 ;; esac ;; isi68 | isi) basic_machine=m68k-isi os=-sysv ;; m68knommu) basic_machine=m68k-unknown os=-linux ;; m68knommu-*) basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; m88k-omron*) basic_machine=m88k-omron ;; magnum | m3230) basic_machine=mips-mips os=-sysv ;; merlin) basic_machine=ns32k-utek os=-sysv ;; microblaze) basic_machine=microblaze-xilinx ;; mingw32) basic_machine=i386-pc os=-mingw32 ;; mingw32ce) basic_machine=arm-unknown os=-mingw32ce ;; miniframe) basic_machine=m68000-convergent ;; *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) basic_machine=m68k-atari os=-mint ;; mips3*-*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` ;; mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; monitor) basic_machine=m68k-rom68k os=-coff ;; morphos) basic_machine=powerpc-unknown os=-morphos ;; msdos) basic_machine=i386-pc os=-msdos ;; ms1-*) basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` ;; mvs) basic_machine=i370-ibm os=-mvs ;; ncr3000) basic_machine=i486-ncr os=-sysv4 ;; netbsd386) basic_machine=i386-unknown os=-netbsd ;; netwinder) basic_machine=armv4l-rebel os=-linux ;; news | news700 | news800 | news900) basic_machine=m68k-sony os=-newsos ;; news1000) basic_machine=m68030-sony os=-newsos ;; news-3600 | risc-news) basic_machine=mips-sony os=-newsos ;; necv70) basic_machine=v70-nec os=-sysv ;; next | m*-next ) basic_machine=m68k-next case $os in -nextstep* ) ;; -ns2*) os=-nextstep2 ;; *) os=-nextstep3 ;; esac ;; nh3000) basic_machine=m68k-harris os=-cxux ;; nh[45]000) basic_machine=m88k-harris os=-cxux ;; nindy960) basic_machine=i960-intel os=-nindy ;; mon960) basic_machine=i960-intel os=-mon960 ;; nonstopux) basic_machine=mips-compaq os=-nonstopux ;; np1) basic_machine=np1-gould ;; nsr-tandem) basic_machine=nsr-tandem ;; op50n-* | op60c-*) basic_machine=hppa1.1-oki os=-proelf ;; openrisc | openrisc-*) basic_machine=or32-unknown ;; os400) basic_machine=powerpc-ibm os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson os=-ose ;; os68k) basic_machine=m68k-none os=-os68k ;; pa-hitachi) basic_machine=hppa1.1-hitachi os=-hiuxwe2 ;; paragon) basic_machine=i860-intel os=-osf ;; parisc) basic_machine=hppa-unknown os=-linux ;; parisc-*) basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` os=-linux ;; pbd) basic_machine=sparc-tti ;; pbb) basic_machine=m68k-tti ;; pc532 | pc532-*) basic_machine=ns32k-pc532 ;; pc98) basic_machine=i386-pc ;; pc98-*) basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; pentiumpro | p6 | 6x86 | athlon | athlon_*) basic_machine=i686-pc ;; pentiumii | pentium2 | pentiumiii | pentium3) basic_machine=i686-pc ;; pentium4) basic_machine=i786-pc ;; pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumpro-* | p6-* | 6x86-* | athlon-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pentium4-*) basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` ;; pn) basic_machine=pn-gould ;; power) basic_machine=power-ibm ;; ppc) basic_machine=powerpc-unknown ;; ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppcle | powerpclittle | ppc-le | powerpc-little) basic_machine=powerpcle-unknown ;; ppcle-* | powerpclittle-*) basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64) basic_machine=powerpc64-unknown ;; ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ppc64le | powerpc64little | ppc64-le | powerpc64-little) basic_machine=powerpc64le-unknown ;; ppc64le-* | powerpc64little-*) basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` ;; ps2) basic_machine=i386-ibm ;; pw32) basic_machine=i586-unknown os=-pw32 ;; rdos) basic_machine=i386-pc os=-rdos ;; rom68k) basic_machine=m68k-rom68k os=-coff ;; rm[46]00) basic_machine=mips-siemens ;; rtpc | rtpc-*) basic_machine=romp-ibm ;; s390 | s390-*) basic_machine=s390-ibm ;; s390x | s390x-*) basic_machine=s390x-ibm ;; sa29200) basic_machine=a29k-amd os=-udi ;; sb1) basic_machine=mipsisa64sb1-unknown ;; sb1el) basic_machine=mipsisa64sb1el-unknown ;; sde) basic_machine=mipsisa32-sde os=-elf ;; sei) basic_machine=mips-sei os=-seiux ;; sequent) basic_machine=i386-sequent ;; sh) basic_machine=sh-hitachi os=-hms ;; sh5el) basic_machine=sh5le-unknown ;; sh64) basic_machine=sh64-unknown ;; sparclite-wrs | simso-wrs) basic_machine=sparclite-wrs os=-vxworks ;; sps7) basic_machine=m68k-bull os=-sysv2 ;; spur) basic_machine=spur-unknown ;; st2000) basic_machine=m68k-tandem ;; stratus) basic_machine=i860-stratus os=-sysv4 ;; sun2) basic_machine=m68000-sun ;; sun2os3) basic_machine=m68000-sun os=-sunos3 ;; sun2os4) basic_machine=m68000-sun os=-sunos4 ;; sun3os3) basic_machine=m68k-sun os=-sunos3 ;; sun3os4) basic_machine=m68k-sun os=-sunos4 ;; sun4os3) basic_machine=sparc-sun os=-sunos3 ;; sun4os4) basic_machine=sparc-sun os=-sunos4 ;; sun4sol2) basic_machine=sparc-sun os=-solaris2 ;; sun3 | sun3-*) basic_machine=m68k-sun ;; sun4) basic_machine=sparc-sun ;; sun386 | sun386i | roadrunner) basic_machine=i386-sun ;; sv1) basic_machine=sv1-cray os=-unicos ;; symmetry) basic_machine=i386-sequent os=-dynix ;; t3e) basic_machine=alphaev5-cray os=-unicos ;; t90) basic_machine=t90-cray os=-unicos ;; tic54x | c54x*) basic_machine=tic54x-unknown os=-coff ;; tic55x | c55x*) basic_machine=tic55x-unknown os=-coff ;; tic6x | c6x*) basic_machine=tic6x-unknown os=-coff ;; # This must be matched before tile*. tilegx*) basic_machine=tilegx-unknown os=-linux-gnu ;; tile*) basic_machine=tile-unknown os=-linux-gnu ;; tx39) basic_machine=mipstx39-unknown ;; tx39el) basic_machine=mipstx39el-unknown ;; toad1) basic_machine=pdp10-xkl os=-tops20 ;; tower | tower-32) basic_machine=m68k-ncr ;; tpf) basic_machine=s390x-ibm os=-tpf ;; udi29k) basic_machine=a29k-amd os=-udi ;; ultra3) basic_machine=a29k-nyu os=-sym1 ;; v810 | necv810) basic_machine=v810-nec os=-none ;; vaxv) basic_machine=vax-dec os=-sysv ;; vms) basic_machine=vax-dec os=-vms ;; vpp*|vx|vx-*) basic_machine=f301-fujitsu ;; vxworks960) basic_machine=i960-wrs os=-vxworks ;; vxworks68) basic_machine=m68k-wrs os=-vxworks ;; vxworks29k) basic_machine=a29k-wrs os=-vxworks ;; w65*) basic_machine=w65-wdc os=-none ;; w89k-*) basic_machine=hppa1.1-winbond os=-proelf ;; xbox) basic_machine=i686-pc os=-mingw32 ;; xps | xps100) basic_machine=xps100-honeywell ;; ymp) basic_machine=ymp-cray os=-unicos ;; z8k-*-coff) basic_machine=z8k-unknown os=-sim ;; z80-*-coff) basic_machine=z80-unknown os=-sim ;; none) basic_machine=none-none os=-none ;; # Here we handle the default manufacturer of certain CPU types. It is in # some cases the only manufacturer, in others, it is the most popular. w89k) basic_machine=hppa1.1-winbond ;; op50n) basic_machine=hppa1.1-oki ;; op60c) basic_machine=hppa1.1-oki ;; romp) basic_machine=romp-ibm ;; mmix) basic_machine=mmix-knuth ;; rs6000) basic_machine=rs6000-ibm ;; vax) basic_machine=vax-dec ;; pdp10) # there are many clones, so DEC is not a safe bet basic_machine=pdp10-unknown ;; pdp11) basic_machine=pdp11-dec ;; we32k) basic_machine=we32k-att ;; sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) basic_machine=sparc-sun ;; cydra) basic_machine=cydra-cydrome ;; orion) basic_machine=orion-highlevel ;; orion105) basic_machine=clipper-highlevel ;; mac | mpw | mac-mpw) basic_machine=m68k-apple ;; pmac | pmac-mpw) basic_machine=powerpc-apple ;; *-unknown) # Make sure to match an already-canonicalized machine name. ;; *) echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 exit 1 ;; esac # Here we canonicalize certain aliases for manufacturers. case $basic_machine in *-digital*) basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` ;; *-commodore*) basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` ;; *) ;; esac # Decode manufacturer-specific aliases for certain operating systems. if [ x"$os" != x"" ] then case $os in # First match some system type aliases # that might get confused with valid system types. # -solaris* is a basic system type, with this one exception. -auroraux) os=-auroraux ;; -solaris1 | -solaris1.*) os=`echo $os | sed -e 's|solaris1|sunos4|'` ;; -solaris) os=-solaris2 ;; -svr4*) os=-sysv4 ;; -unixware*) os=-sysv4.2uw ;; -gnu/linux*) os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` ;; # First accept the basic system types. # The portable systems comes first. # Each alternative MUST END IN A *, to match a version number. # -sysv* is not here because it comes later, after sysvr4. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ | -sym* | -kopensolaris* \ | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ | -aos* | -aros* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ | -openbsd* | -solidbsd* \ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* | -cegcc* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) case $basic_machine in x86-* | i*86-*) ;; *) os=-nto$os ;; esac ;; -nto-qnx*) ;; -nto*) os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; -linux-dietlibc) os=-linux-dietlibc ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; -sunos5*) os=`echo $os | sed -e 's|sunos5|solaris2|'` ;; -sunos6*) os=`echo $os | sed -e 's|sunos6|solaris3|'` ;; -opened*) os=-openedition ;; -os400*) os=-os400 ;; -wince*) os=-wince ;; -osfrose*) os=-osfrose ;; -osf*) os=-osf ;; -utek*) os=-bsd ;; -dynix*) os=-bsd ;; -acis*) os=-aos ;; -atheos*) os=-atheos ;; -syllable*) os=-syllable ;; -386bsd) os=-bsd ;; -ctix* | -uts*) os=-sysv ;; -nova*) os=-rtmk-nova ;; -ns2 ) os=-nextstep2 ;; -nsk*) os=-nsk ;; # Preserve the version number of sinix5. -sinix5.*) os=`echo $os | sed -e 's|sinix|sysv|'` ;; -sinix*) os=-sysv4 ;; -tpf*) os=-tpf ;; -triton*) os=-sysv3 ;; -oss*) os=-sysv3 ;; -svr4) os=-sysv4 ;; -svr3) os=-sysv3 ;; -sysvr4) os=-sysv4 ;; # This must come after -sysvr4. -sysv*) ;; -ose*) os=-ose ;; -es1800*) os=-ose ;; -xenix) os=-xenix ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) os=-mint ;; -aros*) os=-aros ;; -kaos*) os=-kaos ;; -zvmoe) os=-zvmoe ;; -dicos*) os=-dicos ;; -nacl*) ;; -none) ;; *) # Get rid of the `-' at the beginning of $os. os=`echo $os | sed 's/[^-]*-//'` echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 exit 1 ;; esac else # Here we handle the default operating systems that come with various machines. # The value should be what the vendor currently ships out the door with their # machine or put another way, the most popular os provided with the machine. # Note that if you're going to try to match "-MANUFACTURER" here (say, # "-sun"), then you have to tell the case statement up towards the top # that MANUFACTURER isn't an operating system. Otherwise, code above # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. case $basic_machine in score-*) os=-elf ;; spu-*) os=-elf ;; *-acorn) os=-riscix1.2 ;; arm*-rebel) os=-linux ;; arm*-semi) os=-aout ;; c4x-* | tic4x-*) os=-coff ;; # This must come before the *-dec entry. pdp10-*) os=-tops20 ;; pdp11-*) os=-none ;; *-dec | vax-*) os=-ultrix4.2 ;; m68*-apollo) os=-domain ;; i386-sun) os=-sunos4.0.2 ;; m68000-sun) os=-sunos3 # This also exists in the configure program, but was not the # default. # os=-sunos4 ;; m68*-cisco) os=-aout ;; mep-*) os=-elf ;; mips*-cisco) os=-elf ;; mips*-*) os=-elf ;; or32-*) os=-coff ;; *-tti) # must be before sparc entry or we get the wrong os. os=-sysv3 ;; sparc-* | *-sun) os=-sunos4.1.1 ;; *-be) os=-beos ;; *-haiku) os=-haiku ;; *-ibm) os=-aix ;; *-knuth) os=-mmixware ;; *-wec) os=-proelf ;; *-winbond) os=-proelf ;; *-oki) os=-proelf ;; *-hp) os=-hpux ;; *-hitachi) os=-hiux ;; i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) os=-sysv ;; *-cbm) os=-amigaos ;; *-dg) os=-dgux ;; *-dolphin) os=-sysv3 ;; m68k-ccur) os=-rtu ;; m88k-omron*) os=-luna ;; *-next ) os=-nextstep ;; *-sequent) os=-ptx ;; *-crds) os=-unos ;; *-ns) os=-genix ;; i370-*) os=-mvs ;; *-next) os=-nextstep3 ;; *-gould) os=-sysv ;; *-highlevel) os=-bsd ;; *-encore) os=-bsd ;; *-sgi) os=-irix ;; *-siemens) os=-sysv4 ;; *-masscomp) os=-rtu ;; f30[01]-fujitsu | f700-fujitsu) os=-uxpv ;; *-rom68k) os=-coff ;; *-*bug) os=-coff ;; *-apple) os=-macos ;; *-atari*) os=-mint ;; *) os=-none ;; esac fi # Here we handle the case where we know the os, and the CPU type, but not the # manufacturer. We pick the logical manufacturer. vendor=unknown case $basic_machine in *-unknown) case $os in -riscix*) vendor=acorn ;; -sunos*) vendor=sun ;; -cnk*|-aix*) vendor=ibm ;; -beos*) vendor=be ;; -hpux*) vendor=hp ;; -mpeix*) vendor=hp ;; -hiux*) vendor=hitachi ;; -unos*) vendor=crds ;; -dgux*) vendor=dg ;; -luna*) vendor=omron ;; -genix*) vendor=ns ;; -mvs* | -opened*) vendor=ibm ;; -os400*) vendor=ibm ;; -ptx*) vendor=sequent ;; -tpf*) vendor=ibm ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; -aux*) vendor=apple ;; -hms*) vendor=hitachi ;; -mpw* | -macos*) vendor=apple ;; -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) vendor=atari ;; -vos*) vendor=stratus ;; esac basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` ;; esac echo $basic_machine$os exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "timestamp='" # time-stamp-format: "%:y-%02m-%02d" # time-stamp-end: "'" # End: ripperX-2.8.0/config/depcomp000077500000000000000000000442671233655711300160170ustar00rootroot00000000000000#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2009-04-28.21; # UTC # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free # Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. # Originally written by Alexandre Oliva . case $1 in '') echo "$0: No command. Try \`$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] Run PROGRAMS ARGS to compile a file, generating dependencies as side-effects. Environment variables: depmode Dependency tracking mode. source Source file read by `PROGRAMS ARGS'. object Object file output by `PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. tmpdepfile Temporary file to use when outputing dependencies. libtool Whether libtool is used (yes/no). Report bugs to . EOF exit $? ;; -v | --v*) echo "depcomp $scriptversion" exit $? ;; esac if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 fi # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. depfile=${depfile-`echo "$object" | sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`} tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} rm -f "$tmpdepfile" # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case # here, because this file can only contain one case statement. if test "$depmode" = hp; then # HP compiler uses -M and no extra arg. gccflag=-M depmode=gcc fi if test "$depmode" = dashXmstdout; then # This is just like dashmstdout with a different argument. dashmflag=-xM depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then # This is just like msvisualcpp but w/o cygpath translation. # Just convert the backslash-escaped backslashes to single forward # slashes to satisfy depend.m4 cygpath_u="sed s,\\\\\\\\,/,g" depmode=msvisualcpp fi case "$depmode" in gcc3) ## gcc 3 implements dependency tracking that does exactly what ## we want. Yay! Note: for some reason libtool 1.4 doesn't like ## it if -MD -MP comes after the -MF stuff. Hmm. ## Unfortunately, FreeBSD c89 acceptance of flags depends upon ## the command line argument order; so add the flags where they ## appear in depend2.am. Note that the slowdown incurred here ## affects only configure: in makefiles, %FASTDEP% shortcuts this. for arg do case $arg in -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; *) set fnord "$@" "$arg" ;; esac shift # fnord shift # $arg done "$@" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi mv "$tmpdepfile" "$depfile" ;; gcc) ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like ## -MM, not -M (despite what the docs say). ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then gccflag=-MD, fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile" alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz ## The second -e expression handles DOS-style file names with drive letters. sed -e 's/^[^:]*: / /' \ -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" ## This next piece of magic avoids the `deleted header file' problem. ## The problem is that when a header file which appears in a .P file ## is deleted, the dependency causes make to die (because there is ## typically no way to rebuild the header). We avoid this by adding ## dummy dependencies for each header file. Too bad gcc doesn't do ## this for us directly. tr ' ' ' ' < "$tmpdepfile" | ## Some versions of gcc put a space before the `:'. On the theory ## that the space means something, we add a space to the output as ## well. ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; sgi) if test "$libtool" = yes; then "$@" "-Wp,-MDupdate,$tmpdepfile" else "$@" -MDupdate "$tmpdepfile" fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files echo "$object : \\" > "$depfile" # Clip off the initial element (the dependent). Don't try to be # clever and replace this with sed code, as IRIX sed won't handle # lines with more than a fixed number of characters (4096 in # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; # the IRIX cc adds comments like `#:fec' to the end of the # dependency line. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ tr ' ' ' ' >> "$depfile" echo >> "$depfile" # The second pass generates a dummy entry for each header file. tr ' ' ' ' < "$tmpdepfile" \ | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; aix) # The C for AIX Compiler uses -M and outputs the dependencies # in a .u file. In older versions, this file always lives in the # current directory. Also, the AIX compiler puts `$object:' at the # start of each line; $object doesn't have directory information. # Version 6 uses the directory in both cases. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.u tmpdepfile2=$base.u tmpdepfile3=$dir.libs/$base.u "$@" -Wc,-M else tmpdepfile1=$dir$base.u tmpdepfile2=$dir$base.u tmpdepfile3=$dir$base.u "$@" -M fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then # Each line is of the form `foo.o: dependent.h'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else # The sourcefile does not contain any dependencies, so just # store a dummy comment line, to avoid errors with the Makefile # "include basename.Plo" scheme. echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; icc) # Intel's C compiler understands `-MD -MF file'. However on # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c # ICC 7.0 will fill foo.d with something like # foo.o: sub/foo.c # foo.o: sub/foo.h # which is wrong. We want: # sub/foo.o: sub/foo.c # sub/foo.o: sub/foo.h # sub/foo.c: # sub/foo.h: # ICC 7.1 will output # foo.o: sub/foo.c sub/foo.h # and will wrap long lines using \ : # foo.o: sub/foo.c ... \ # sub/foo.h ... \ # ... "$@" -MD -MF "$tmpdepfile" stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" # Each line is of the form `foo.o: dependent.h', # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. # Do two passes, one to just change these to # `$object: dependent.h' and one to simply `dependent.h:'. sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" # Some versions of the HPUX 10.20 sed can't process this invocation # correctly. Breaking it into two sed invocations is a workaround. sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; hp2) # The "hp" stanza above does not work with aCC (C++) and HP's ia64 # compilers, which have integrated preprocessors. The correct option # to use with these is +Maked; it writes dependencies to a file named # 'foo.d', which lands next to the object file, wherever that # happens to be. # Much of this is similar to the tru64 case; see comments there. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then tmpdepfile1=$dir$base.d tmpdepfile2=$dir.libs/$base.d "$@" -Wc,+Maked else tmpdepfile1=$dir$base.d tmpdepfile2=$dir$base.d "$@" +Maked fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" # Add `dependent.h:' lines. sed -ne '2,${ s/^ *// s/ \\*$// s/$/:/ p }' "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" "$tmpdepfile2" ;; tru64) # The Tru64 compiler uses -MD to generate dependencies as a side # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'. # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put # dependencies in `foo.d' instead, so we check for that too. # Subdirectories are respected. dir=`echo "$object" | sed -e 's|/[^/]*$|/|'` test "x$dir" = "x$object" && dir= base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'` if test "$libtool" = yes; then # With Tru64 cc, shared objects can also be used to make a # static library. This mechanism is used in libtool 1.4 series to # handle both shared and static libraries in a single compilation. # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d. # # With libtool 1.5 this exception was removed, and libtool now # generates 2 separate objects for the 2 libraries. These two # compilations output dependencies in $dir.libs/$base.o.d and # in $dir$base.o.d. We have to check for both files, because # one of the two compilations can be disabled. We should prefer # $dir$base.o.d over $dir.libs/$base.o.d because the latter is # automatically cleaned when .libs/ is deleted, while ignoring # the former would cause a distcleancheck panic. tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4 tmpdepfile2=$dir$base.o.d # libtool 1.5 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504 "$@" -Wc,-MD else tmpdepfile1=$dir$base.o.d tmpdepfile2=$dir$base.d tmpdepfile3=$dir$base.d tmpdepfile4=$dir$base.d "$@" -MD fi stat=$? if test $stat -eq 0; then : else rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" exit $stat fi for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" do test -f "$tmpdepfile" && break done if test -f "$tmpdepfile"; then sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" # That's a tab and a space in the []. sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile" else echo "#dummy" > "$depfile" fi rm -f "$tmpdepfile" ;; #nosideeffect) # This comment above is used by automake to tell side-effect # dependency tracking mechanisms from slower ones. dashmstdout) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout, regardless of -o. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done test -z "$dashmflag" && dashmflag=-M # Require at least two characters before searching for `:' # in the target name. This is to cope with DOS-style filenames: # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise. "$@" $dashmflag | sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" tr ' ' ' ' < "$tmpdepfile" | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; dashXmstdout) # This case only exists to satisfy depend.m4. It is never actually # run, as this mode is specially recognized in the preamble. exit 1 ;; makedepend) "$@" || exit $? # Remove any Libtool call if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # X makedepend shift cleared=no eat=no for arg do case $cleared in no) set ""; shift cleared=yes ;; esac if test $eat = yes; then eat=no continue fi case "$arg" in -D*|-I*) set fnord "$@" "$arg"; shift ;; # Strip any option that makedepend may not understand. Remove # the object too, otherwise makedepend will parse it as a source file. -arch) eat=yes ;; -*|$object) ;; *) set fnord "$@" "$arg"; shift ;; esac done obj_suffix=`echo "$object" | sed 's/^.*\././'` touch "$tmpdepfile" ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround. sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" rm -f "$tmpdepfile" "$tmpdepfile".bak ;; cpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi # Remove `-o $object'. IFS=" " for arg do case $arg in -o) shift ;; $object) shift ;; *) set fnord "$@" "$arg" shift # fnord shift # $arg ;; esac done "$@" -E | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | sed '$ s: \\$::' > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" cat < "$tmpdepfile" >> "$depfile" sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" rm -f "$tmpdepfile" ;; msvisualcpp) # Important note: in order to support this mode, a compiler *must* # always write the preprocessed file to stdout. "$@" || exit $? # Remove the call to Libtool. if test "$libtool" = yes; then while test "X$1" != 'X--mode=compile'; do shift done shift fi IFS=" " for arg do case "$arg" in -o) shift ;; $object) shift ;; "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") set fnord "$@" shift shift ;; *) set fnord "$@" "$arg" shift shift ;; esac done "$@" -E 2>/dev/null | sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" rm -f "$depfile" echo "$object : \\" > "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" echo " " >> "$depfile" sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" rm -f "$tmpdepfile" ;; msvcmsys) # This case exists only to let depend.m4 do its work. It works by # looking at the text of this script. This case will never be run, # since it is checked for above. exit 1 ;; none) exec "$@" ;; *) echo "Unknown depmode $depmode" 1>&2 exit 1 ;; esac exit 0 # Local Variables: # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ripperX-2.8.0/config/install-sh000077500000000000000000000325371233655711300164430ustar00rootroot00000000000000#!/bin/sh # install - install a program, script, or datafile scriptversion=2009-04-28.21; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to # deal in the Software without restriction, including without limitation the # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or # sell copies of the Software, and to permit persons to whom the Software is # furnished to do so, subject to the following conditions: # # The above copyright notice and this permission notice shall be included in # all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. # # Except as contained in this notice, the name of the X Consortium shall not # be used in advertising or otherwise to promote the sale, use or other deal- # ings in this Software without prior written authorization from the X Consor- # tium. # # # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent # `make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written # from scratch. nl=' ' IFS=" "" $nl" # set DOITPROG to echo to test this script # Don't use :- since 4.3BSD and earlier shells don't like it. doit=${DOITPROG-} if test -z "$doit"; then doit_exec=exec else doit_exec=$doit fi # Put in absolute file names if you don't have them in your path; # or use environment vars. chgrpprog=${CHGRPPROG-chgrp} chmodprog=${CHMODPROG-chmod} chownprog=${CHOWNPROG-chown} cmpprog=${CMPPROG-cmp} cpprog=${CPPROG-cp} mkdirprog=${MKDIRPROG-mkdir} mvprog=${MVPROG-mv} rmprog=${RMPROG-rm} stripprog=${STRIPPROG-strip} posix_glob='?' initialize_posix_glob=' test "$posix_glob" != "?" || { if (set -f) 2>/dev/null; then posix_glob= else posix_glob=: fi } ' posix_mkdir= # Desired mode of installed file. mode=0755 chgrpcmd= chmodcmd=$chmodprog chowncmd= mvcmd=$mvprog rmcmd="$rmprog -f" stripcmd= src= dst= dir_arg= dst_arg= copy_on_change=false no_target_directory= usage="\ Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE or: $0 [OPTION]... SRCFILES... DIRECTORY or: $0 [OPTION]... -t DIRECTORY SRCFILES... or: $0 [OPTION]... -d DIRECTORIES... In the 1st form, copy SRCFILE to DSTFILE. In the 2nd and 3rd, copy all SRCFILES to DIRECTORY. In the 4th, create DIRECTORIES. Options: --help display this help and exit. --version display version info and exit. -c (ignored) -C install only if different (preserve the last data modification time) -d create directories instead of installing files. -g GROUP $chgrpprog installed files to GROUP. -m MODE $chmodprog installed files to MODE. -o USER $chownprog installed files to USER. -s $stripprog installed files. -t DIRECTORY install into DIRECTORY. -T report an error if DSTFILE is a directory. Environment variables override the default commands: CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG " while test $# -ne 0; do case $1 in -c) ;; -C) copy_on_change=true;; -d) dir_arg=true;; -g) chgrpcmd="$chgrpprog $2" shift;; --help) echo "$usage"; exit $?;; -m) mode=$2 case $mode in *' '* | *' '* | *' '* | *'*'* | *'?'* | *'['*) echo "$0: invalid mode: $mode" >&2 exit 1;; esac shift;; -o) chowncmd="$chownprog $2" shift;; -s) stripcmd=$stripprog;; -t) dst_arg=$2 shift;; -T) no_target_directory=true;; --version) echo "$0 $scriptversion"; exit $?;; --) shift break;; -*) echo "$0: invalid option: $1" >&2 exit 1;; *) break;; esac shift done if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then # When -d is used, all remaining arguments are directories to create. # When -t is used, the destination is already specified. # Otherwise, the last argument is the destination. Remove it from $@. for arg do if test -n "$dst_arg"; then # $@ is not empty: it contains at least $arg. set fnord "$@" "$dst_arg" shift # fnord fi shift # arg dst_arg=$arg done fi if test $# -eq 0; then if test -z "$dir_arg"; then echo "$0: no input file specified." >&2 exit 1 fi # It's OK to call `install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then trap '(exit $?); exit' 1 2 13 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. case $mode in # Optimize common cases. *644) cp_umask=133;; *755) cp_umask=22;; *[0-7]) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw='% 200' fi cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;; *) if test -z "$stripcmd"; then u_plus_rw= else u_plus_rw=,u+rw fi cp_umask=$mode$u_plus_rw;; esac fi for src do # Protect names starting with `-'. case $src in -*) src=./$src;; esac if test -n "$dir_arg"; then dst=$src dstdir=$dst test -d "$dstdir" dstdir_status=$? else # Waiting for this to be detected by the "$cpprog $src $dsttmp" command # might cause directories to be created, which would be especially bad # if $src (and thus $dsttmp) contains '*'. if test ! -f "$src" && test ! -d "$src"; then echo "$0: $src does not exist." >&2 exit 1 fi if test -z "$dst_arg"; then echo "$0: no destination specified." >&2 exit 1 fi dst=$dst_arg # Protect names starting with `-'. case $dst in -*) dst=./$dst;; esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. if test -d "$dst"; then if test -n "$no_target_directory"; then echo "$0: $dst_arg: Is a directory" >&2 exit 1 fi dstdir=$dst dst=$dstdir/`basename "$src"` dstdir_status=0 else # Prefer dirname, but fall back on a substitute if dirname fails. dstdir=` (dirname "$dst") 2>/dev/null || expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$dst" : 'X\(//\)[^/]' \| \ X"$dst" : 'X\(//\)$' \| \ X"$dst" : 'X\(/\)' \| . 2>/dev/null || echo X"$dst" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q' ` test -d "$dstdir" dstdir_status=$? fi fi obsolete_mkdir_used=false if test $dstdir_status != 0; then case $posix_mkdir in '') # Create intermediate dirs using mode 755 as modified by the umask. # This is like FreeBSD 'install' as of 1997-10-28. umask=`umask` case $stripcmd.$umask in # Optimize common cases. *[2367][2367]) mkdir_umask=$umask;; .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; *[0-7]) mkdir_umask=`expr $umask + 22 \ - $umask % 100 % 40 + $umask % 20 \ - $umask % 10 % 4 + $umask % 2 `;; *) mkdir_umask=$umask,go-w;; esac # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then mkdir_mode=-m$mode else mkdir_mode= fi posix_mkdir=false case $umask in *[123567][0-7][0-7]) # POSIX mkdir -p sets u+wx bits regardless of umask, which # is incompatible with FreeBSD 'install' when (umask & 300) != 0. ;; *) tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0 if (umask $mkdir_umask && exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1 then if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or # other-writeable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in d????-?r-*) different_mode=700;; d????-?--*) different_mode=755;; *) false;; esac && $mkdirprog -m$different_mode -p -- "$tmpdir" && { ls_ld_tmpdir_1=`ls -ld "$tmpdir"` test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" } } then posix_mkdir=: fi rmdir "$tmpdir/d" "$tmpdir" else # Remove any dirs left behind by ancient mkdir implementations. rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null fi trap '' 0;; esac;; esac if $posix_mkdir && ( umask $mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" ) then : else # The umask is ridiculous, or mkdir does not conform to POSIX, # or it failed possibly due to a race condition. Create the # directory the slow way, step by step, checking for races as we go. case $dstdir in /*) prefix='/';; -*) prefix='./';; *) prefix='';; esac eval "$initialize_posix_glob" oIFS=$IFS IFS=/ $posix_glob set -f set fnord $dstdir shift $posix_glob set +f IFS=$oIFS prefixes= for d do test -z "$d" && continue prefix=$prefix$d if test -d "$prefix"; then prefixes= else if $posix_mkdir; then (umask=$mkdir_umask && $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break # Don't fail if two instances are running concurrently. test -d "$prefix" || exit 1 else case $prefix in *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;; *) qprefix=$prefix;; esac prefixes="$prefixes '$qprefix'" fi fi prefix=$prefix/ done if test -n "$prefixes"; then # Don't fail if two instances are running concurrently. (umask $mkdir_umask && eval "\$doit_exec \$mkdirprog $prefixes") || test -d "$dstdir" || exit 1 obsolete_mkdir_used=true fi fi fi if test -n "$dir_arg"; then { test -z "$chowncmd" || $doit $chowncmd "$dst"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } && { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false || test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1 else # Make a couple of temp file names in the proper directory. dsttmp=$dstdir/_inst.$$_ rmtmp=$dstdir/_rm.$$_ # Trap to clean up those temp files at exit. trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0 # Copy the file name to the temp name. (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") && # and set any options; do chmod last to preserve setuid bits. # # If any of these fail, we abort the whole thing. If we want to # ignore errors from any of these, just make sure not to ignore # errors from the above "$doit $cpprog $src $dsttmp" command. # { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } && { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } && # If -C, don't bother to copy if it wouldn't change the file. if $copy_on_change && old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` && new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` && eval "$initialize_posix_glob" && $posix_glob set -f && set X $old && old=:$2:$4:$5:$6 && set X $new && new=:$2:$4:$5:$6 && $posix_glob set +f && test "$old" = "$new" && $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 then rm -f "$dsttmp" else # Rename the file to the real destination. $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null || # The rename failed, perhaps because mv can't rename something else # to itself, or perhaps because mv is so ancient that it does not # support -f. { # Now remove or move aside any old file at destination location. # We try this two ways since rm can't unlink itself on some # systems and the destination file might be busy for other # reasons. In this case, the final cleanup might fail but the new # file should still install successfully. { test ! -f "$dst" || $doit $rmcmd -f "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 } } && # Now rename the file to the real destination. $doit $mvcmd "$dsttmp" "$dst" } fi || exit 1 trap '' 0 fi done # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ripperX-2.8.0/config/missing000077500000000000000000000262331233655711300160320ustar00rootroot00000000000000#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2009-04-28.21; # UTC # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, # 2008, 2009 Free Software Foundation, Inc. # Originally by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program. If not, see . # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then echo 1>&2 "Try \`$0 --help' for more information" exit 1 fi run=: sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' sed_minuso='s/.* -o \([^ ]*\).*/\1/p' # In the cases where this matters, `missing' is being run in the # srcdir already. if test -f configure.ac; then configure_ac=configure.ac else configure_ac=configure.in fi msg="missing on your system" case $1 in --run) # Try to run requested program, and just exit if it succeeds. run= shift "$@" && exit 0 # Exit code 63 means version mismatch. This often happens # when the user try to use an ancient version of a tool on # a file that requires a minimum version. In this case we # we should proceed has if the program had been absent, or # if --run hadn't been passed. if test $? = 63; then run=: msg="probably too old" fi ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an error status if there is no known handling for PROGRAM. Options: -h, --help display this help and exit -v, --version output version information and exit --run try to run the given command, and emulate it if it fails Supported PROGRAM values: aclocal touch file \`aclocal.m4' autoconf touch file \`configure' autoheader touch file \`config.h.in' autom4te touch the output file, or create a stub one automake touch all \`Makefile.in' files bison create \`y.tab.[ch]', if possible, from existing .[ch] flex create \`lex.yy.c', if possible, from existing .c help2man touch the output file lex create \`lex.yy.c', if possible, from existing .c makeinfo touch the output file tar try tar, gnutar, gtar, then tar without non-portable flags yacc create \`y.tab.[ch]', if possible, from existing .[ch] Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and \`g' are ignored when checking the name. Send bug reports to ." exit $? ;; -v|--v|--ve|--ver|--vers|--versi|--versio|--version) echo "missing $scriptversion (GNU Automake)" exit $? ;; -*) echo 1>&2 "$0: Unknown \`$1' option" echo 1>&2 "Try \`$0 --help' for more information" exit 1 ;; esac # normalize program name to check for. program=`echo "$1" | sed ' s/^gnu-//; t s/^gnu//; t s/^g//; t'` # Now exit if we have it, but it failed. Also exit now if we # don't have it and --version was passed (most likely to detect # the program). This is about non-GNU programs, so use $1 not # $program. case $1 in lex*|yacc*) # Not GNU programs, they don't have --version. ;; tar*) if test -n "$run"; then echo 1>&2 "ERROR: \`tar' requires --run" exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then exit 1 fi ;; *) if test -z "$run" && ($1 --version) > /dev/null 2>&1; then # We have it, but it failed. exit 1 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then # Could not run --version or --help. This is probably someone # running `$TOOL --version' or `$TOOL --help' to check whether # $TOOL exists and not knowing $TOOL uses missing. exit 1 fi ;; esac # If it does not exist, or fails to run (possibly an outdated version), # try to emulate it. case $program in aclocal*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." touch aclocal.m4 ;; autoconf*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." touch configure ;; autoheader*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`acconfig.h' or \`${configure_ac}'. You might want to install the \`Autoconf' and \`GNU m4' packages. Grab them from any GNU archive site." files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` test -z "$files" && files="config.h" touch_files= for f in $files; do case $f in *:*) touch_files="$touch_files "`echo "$f" | sed -e 's/^[^:]*://' -e 's/:.*//'`;; *) touch_files="$touch_files $f.in";; esac done touch $touch_files ;; automake*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. You might want to install the \`Automake' and \`Perl' packages. Grab them from any GNU archive site." find . -type f -name Makefile.am -print | sed 's/\.am$/.in/' | while read f; do touch "$f"; done ;; autom4te*) echo 1>&2 "\ WARNING: \`$1' is needed, but is $msg. You might have modified some files without having the proper tools for further handling them. You can get \`$1' as part of \`Autoconf' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo "#! /bin/sh" echo "# Created by GNU Automake missing as a replacement of" echo "# $ $@" echo "exit 0" chmod +x $file exit 1 fi ;; bison*|yacc*) echo 1>&2 "\ WARNING: \`$1' $msg. You should only need it if you modified a \`.y' file. You may need the \`Bison' package in order for those modifications to take effect. You can get \`Bison' from any GNU archive site." rm -f y.tab.c y.tab.h if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.y) SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.c fi SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` if test -f "$SRCFILE"; then cp "$SRCFILE" y.tab.h fi ;; esac fi if test ! -f y.tab.h; then echo >y.tab.h fi if test ! -f y.tab.c; then echo 'main() { return 0; }' >y.tab.c fi ;; lex*|flex*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.l' file. You may need the \`Flex' package in order for those modifications to take effect. You can get \`Flex' from any GNU archive site." rm -f lex.yy.c if test $# -ne 1; then eval LASTARG="\${$#}" case $LASTARG in *.l) SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` if test -f "$SRCFILE"; then cp "$SRCFILE" lex.yy.c fi ;; esac fi if test ! -f lex.yy.c; then echo 'main() { return 0; }' >lex.yy.c fi ;; help2man*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a dependency of a manual page. You may need the \`Help2man' package in order for those modifications to take effect. You can get \`Help2man' from any GNU archive site." file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -f "$file"; then touch $file else test -z "$file" || exec >$file echo ".ab help2man is required to generate this page" exit $? fi ;; makeinfo*) echo 1>&2 "\ WARNING: \`$1' is $msg. You should only need it if you modified a \`.texi' or \`.texinfo' file, or any other file indirectly affecting the aspect of the manual. The spurious call might also be the consequence of using a buggy \`make' (AIX, DU, IRIX). You might want to install the \`Texinfo' package or the \`GNU make' package. Grab either from any GNU archive site." # The file to touch is that specified with -o ... file=`echo "$*" | sed -n "$sed_output"` test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"` if test -z "$file"; then # ... or it is the one specified with @setfilename ... infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` file=`sed -n ' /^@setfilename/{ s/.* \([^ ]*\) *$/\1/ p q }' $infile` # ... or it is derived from the source name (dir/f.texi becomes f.info) test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info fi # If the file does not exist, the user really needs makeinfo; # let's fail without touching anything. test -f $file || exit 1 touch $file ;; tar*) shift # We have already tried tar in the generic part. # Look for gnutar/gtar before invocation to avoid ugly error # messages. if (gnutar --version > /dev/null 2>&1); then gnutar "$@" && exit 0 fi if (gtar --version > /dev/null 2>&1); then gtar "$@" && exit 0 fi firstarg="$1" if shift; then case $firstarg in *o*) firstarg=`echo "$firstarg" | sed s/o//` tar "$firstarg" "$@" && exit 0 ;; esac case $firstarg in *h*) firstarg=`echo "$firstarg" | sed s/h//` tar "$firstarg" "$@" && exit 0 ;; esac fi echo 1>&2 "\ WARNING: I can't seem to be able to run \`tar' with the given arguments. You may want to install GNU tar or Free paxutils, or check the command line arguments." exit 1 ;; *) echo 1>&2 "\ WARNING: \`$1' is needed, and is $msg. You might have modified some files without having the proper tools for further handling them. Check the \`README' file, it often tells you about the needed prerequisites for installing this package. You may also peek at any GNU archive site, in case some other package would contain this missing \`$1' program." exit 1 ;; esac exit 0 # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) # time-stamp-start: "scriptversion=" # time-stamp-format: "%:y-%02m-%02d.%02H" # time-stamp-time-zone: "UTC" # time-stamp-end: "; # UTC" # End: ripperX-2.8.0/configure000077500000000000000000010466021233655711300151000ustar00rootroot00000000000000#! /bin/sh # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.69 for ripperX 2.8.0. # # Report bugs to . # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation # gives unlimited permission to copy, distribute and modify it. ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # Use a proper internal environment variable to ensure we don't fall # into an infinite loop, continuously re-executing ourselves. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then _as_can_reexec=no; export _as_can_reexec; # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 as_fn_exit 255 fi # We don't want this to propagate to other subprocesses. { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which # is contrary to our usage. Disable this feature. alias -g '\${1+\"\$@\"}'='\"\$@\"' setopt NO_GLOB_SUBST else case \`(set -o) 2>/dev/null\` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi " as_required="as_fn_return () { (exit \$1); } as_fn_success () { as_fn_return 0; } as_fn_failure () { as_fn_return 1; } as_fn_ret_success () { return 0; } as_fn_ret_failure () { return 1; } exitcode=0 as_fn_success || { exitcode=1; echo as_fn_success failed.; } as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : else exitcode=1; echo positional parameters were not saved. fi test x\$exitcode = x0 || exit 1 test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 test \$(( 1 + 1 )) = 2 || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else as_have_required=no fi if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR as_found=false for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. as_found=: case $as_dir in #( /*) for as_base in sh bash ksh sh5; do # Try only shells that exist, to save several forks. as_shell=$as_dir/$as_base if { test -f "$as_shell" || test -f "$as_shell.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : CONFIG_SHELL=$as_shell as_have_required=yes if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : break 2 fi fi done;; esac as_found=false done $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : CONFIG_SHELL=$SHELL as_have_required=yes fi; } IFS=$as_save_IFS if test "x$CONFIG_SHELL" != x; then : export CONFIG_SHELL # We cannot yet assume a decent shell, so we have to provide a # neutralization value for shells without unset; and this also # works around shells that cannot unset nonexistent variables. # Preserve -v and -x to the replacement shell. BASH_ENV=/dev/null ENV=/dev/null (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV case $- in # (((( *v*x* | *x*v* ) as_opts=-vx ;; *v* ) as_opts=-v ;; *x* ) as_opts=-x ;; * ) as_opts= ;; esac exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} # Admittedly, this is quite paranoid, since all the known shells bail # out after a failed `exec'. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 exit 255 fi if test x$as_have_required = xno; then : $as_echo "$0: This script requires a shell more modern than all" $as_echo "$0: the shells that I found on your system." if test x${ZSH_VERSION+set} = xset ; then $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" $as_echo "$0: be upgraded to zsh 4.3.4 or later." else $as_echo "$0: Please tell bug-autoconf@gnu.org and $0: tmancill@users.sourceforge.net about your system, $0: including any error possibly output before this $0: message. Then install a modern shell, or manually run $0: the script under such a shell if you do have one." fi exit 1 fi fi fi SHELL=${CONFIG_SHELL-/bin/sh} export SHELL # Unset more variables known to interfere with behavior of common tools. CLICOLOR_FORCE= GREP_OPTIONS= unset CLICOLOR_FORCE GREP_OPTIONS ## --------------------- ## ## M4sh Shell Functions. ## ## --------------------- ## # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits as_lineno_1=$LINENO as_lineno_1a=$LINENO as_lineno_2=$LINENO as_lineno_2a=$LINENO eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) sed -n ' p /[$]LINENO/= ' <$as_myself | sed ' s/[$]LINENO.*/&-/ t lineno b :lineno N :loop s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ t loop s/-\n.*// ' >$as_me.lineno && chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } # If we had to re-execute with $CONFIG_SHELL, we're ensured to have # already done that, so ensure we don't try to do so again and fall # in an infinite loop. This has already happened in practice. _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). . "./$as_me.lineno" # Exit status is that of the last command. exit } ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" test -n "$DJDIR" || exec 7<&0 &1 # Name of the host. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, # so uname gets run too. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` # # Initializations. # ac_default_prefix=/usr/local ac_clean_files= ac_config_libobj_dir=. LIBOBJS= cross_compiling=no subdirs= MFLAGS= MAKEFLAGS= # Identity of this package. PACKAGE_NAME='ripperX' PACKAGE_TARNAME='ripperx' PACKAGE_VERSION='2.8.0' PACKAGE_STRING='ripperX 2.8.0' PACKAGE_BUGREPORT='tmancill@users.sourceforge.net' PACKAGE_URL='' ac_unique_file="src/main.c" # Factoring default headers for most tests. ac_includes_default="\ #include #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #endif #ifdef HAVE_STRINGS_H # include #endif #ifdef HAVE_INTTYPES_H # include #endif #ifdef HAVE_STDINT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif" gt_needs= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE LTLIBOBJS TAGLIB_LIBS TAGLIB_CFLAGS GTK_LIBS GTK_CFLAGS GLIB_LIBS GLIB_CFLAGS PKG_CONFIG_LIBDIR PKG_CONFIG_PATH POSUB LTLIBINTL LIBINTL INTLLIBS LTLIBICONV LIBICONV INTL_MACOSX_LIBS host_os host_vendor host_cpu host build_os build_vendor build_cpu build XGETTEXT_EXTRA_OPTIONS MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 MSGFMT_015 GMSGFMT MSGFMT GETTEXT_MACRO_VERSION USE_NLS LIBOBJS EGREP GREP CPP PKG_CONFIG am__fastdepCXX_FALSE am__fastdepCXX_TRUE CXXDEPMODE ac_ct_CXX CXXFLAGS CXX am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE am__nodep AMDEPBACKSLASH AMDEP_FALSE AMDEP_TRUE am__quote am__include DEPDIR OBJEXT EXEEXT ac_ct_CC CPPFLAGS LDFLAGS CFLAGS CC AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V am__untar am__tar AMTAR am__leading_dot SET_MAKE AWK mkdir_p MKDIR_P INSTALL_STRIP_PROGRAM STRIP install_sh MAKEINFO AUTOHEADER AUTOMAKE AUTOCONF ACLOCAL VERSION PACKAGE CYGPATH_W am__isrc INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM target_alias host_alias build_alias LIBS ECHO_T ECHO_N ECHO_C DEFS mandir localedir libdir psdir pdfdir dvidir htmldir infodir docdir oldincludedir includedir localstatedir sharedstatedir sysconfdir datadir datarootdir libexecdir sbindir bindir program_transform_name prefix exec_prefix PACKAGE_URL PACKAGE_BUGREPORT PACKAGE_STRING PACKAGE_VERSION PACKAGE_TARNAME PACKAGE_NAME PATH_SEPARATOR SHELL' ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules enable_dependency_tracking enable_nls with_gnu_ld enable_rpath with_libiconv_prefix with_libintl_prefix enable_deprecated ' ac_precious_vars='build_alias host_alias target_alias CC CFLAGS LDFLAGS LIBS CPPFLAGS CXX CXXFLAGS CCC CPP PKG_CONFIG PKG_CONFIG_PATH PKG_CONFIG_LIBDIR GLIB_CFLAGS GLIB_LIBS GTK_CFLAGS GTK_LIBS TAGLIB_CFLAGS TAGLIB_LIBS' # Initialize some variables set by options. ac_init_help= ac_init_version=false ac_unrecognized_opts= ac_unrecognized_sep= # The variables have the same names as the options, with # dashes changed to underlines. cache_file=/dev/null exec_prefix=NONE no_create= no_recursion= prefix=NONE program_prefix=NONE program_suffix=NONE program_transform_name=s,x,x, silent= site= srcdir= verbose= x_includes=NONE x_libraries=NONE # Installation directory options. # These are left unexpanded so users can "make install exec_prefix=/foo" # and all the variables that are supposed to be based on exec_prefix # by default will actually change. # Use braces instead of parens because sh, perl, etc. also accept them. # (The list follows the same order as the GNU Coding Standards.) bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' libexecdir='${exec_prefix}/libexec' datarootdir='${prefix}/share' datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' infodir='${datarootdir}/info' htmldir='${docdir}' dvidir='${docdir}' pdfdir='${docdir}' psdir='${docdir}' libdir='${exec_prefix}/lib' localedir='${datarootdir}/locale' mandir='${datarootdir}/man' ac_prev= ac_dashdash= for ac_option do # If the previous option needs an argument, assign it. if test -n "$ac_prev"; then eval $ac_prev=\$ac_option ac_prev= continue fi case $ac_option in *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; *=) ac_optarg= ;; *) ac_optarg=yes ;; esac # Accept the important Cygnus configure options, so we can diagnose typos. case $ac_dashdash$ac_option in --) ac_dashdash=yes ;; -bindir | --bindir | --bindi | --bind | --bin | --bi) ac_prev=bindir ;; -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) bindir=$ac_optarg ;; -build | --build | --buil | --bui | --bu) ac_prev=build_alias ;; -build=* | --build=* | --buil=* | --bui=* | --bu=*) build_alias=$ac_optarg ;; -cache-file | --cache-file | --cache-fil | --cache-fi \ | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) ac_prev=cache_file ;; -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) cache_file=$ac_optarg ;; --config-cache | -C) cache_file=config.cache ;; -datadir | --datadir | --datadi | --datad) ac_prev=datadir ;; -datadir=* | --datadir=* | --datadi=* | --datad=*) datadir=$ac_optarg ;; -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | --dataroo | --dataro | --datar) ac_prev=datarootdir ;; -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) datarootdir=$ac_optarg ;; -disable-* | --disable-*) ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=no ;; -docdir | --docdir | --docdi | --doc | --do) ac_prev=docdir ;; -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) docdir=$ac_optarg ;; -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) ac_prev=dvidir ;; -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) dvidir=$ac_optarg ;; -enable-* | --enable-*) ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid feature name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "enable_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval enable_$ac_useropt=\$ac_optarg ;; -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | --exec | --exe | --ex) ac_prev=exec_prefix ;; -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | --exec=* | --exe=* | --ex=*) exec_prefix=$ac_optarg ;; -gas | --gas | --ga | --g) # Obsolete; use --with-gas. with_gas=yes ;; -help | --help | --hel | --he | -h) ac_init_help=long ;; -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) ac_init_help=recursive ;; -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) ac_init_help=short ;; -host | --host | --hos | --ho) ac_prev=host_alias ;; -host=* | --host=* | --hos=* | --ho=*) host_alias=$ac_optarg ;; -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) ac_prev=htmldir ;; -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | --ht=*) htmldir=$ac_optarg ;; -includedir | --includedir | --includedi | --included | --include \ | --includ | --inclu | --incl | --inc) ac_prev=includedir ;; -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | --includ=* | --inclu=* | --incl=* | --inc=*) includedir=$ac_optarg ;; -infodir | --infodir | --infodi | --infod | --info | --inf) ac_prev=infodir ;; -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) infodir=$ac_optarg ;; -libdir | --libdir | --libdi | --libd) ac_prev=libdir ;; -libdir=* | --libdir=* | --libdi=* | --libd=*) libdir=$ac_optarg ;; -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | --libexe | --libex | --libe) ac_prev=libexecdir ;; -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | --libexe=* | --libex=* | --libe=*) libexecdir=$ac_optarg ;; -localedir | --localedir | --localedi | --localed | --locale) ac_prev=localedir ;; -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) localedir=$ac_optarg ;; -localstatedir | --localstatedir | --localstatedi | --localstated \ | --localstate | --localstat | --localsta | --localst | --locals) ac_prev=localstatedir ;; -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) localstatedir=$ac_optarg ;; -mandir | --mandir | --mandi | --mand | --man | --ma | --m) ac_prev=mandir ;; -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) mandir=$ac_optarg ;; -nfp | --nfp | --nf) # Obsolete; use --without-fp. with_fp=no ;; -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | --no-cr | --no-c | -n) no_create=yes ;; -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) no_recursion=yes ;; -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | --oldin | --oldi | --old | --ol | --o) ac_prev=oldincludedir ;; -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) oldincludedir=$ac_optarg ;; -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) ac_prev=prefix ;; -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) prefix=$ac_optarg ;; -program-prefix | --program-prefix | --program-prefi | --program-pref \ | --program-pre | --program-pr | --program-p) ac_prev=program_prefix ;; -program-prefix=* | --program-prefix=* | --program-prefi=* \ | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) program_prefix=$ac_optarg ;; -program-suffix | --program-suffix | --program-suffi | --program-suff \ | --program-suf | --program-su | --program-s) ac_prev=program_suffix ;; -program-suffix=* | --program-suffix=* | --program-suffi=* \ | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) program_suffix=$ac_optarg ;; -program-transform-name | --program-transform-name \ | --program-transform-nam | --program-transform-na \ | --program-transform-n | --program-transform- \ | --program-transform | --program-transfor \ | --program-transfo | --program-transf \ | --program-trans | --program-tran \ | --progr-tra | --program-tr | --program-t) ac_prev=program_transform_name ;; -program-transform-name=* | --program-transform-name=* \ | --program-transform-nam=* | --program-transform-na=* \ | --program-transform-n=* | --program-transform-=* \ | --program-transform=* | --program-transfor=* \ | --program-transfo=* | --program-transf=* \ | --program-trans=* | --program-tran=* \ | --progr-tra=* | --program-tr=* | --program-t=*) program_transform_name=$ac_optarg ;; -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) ac_prev=pdfdir ;; -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) pdfdir=$ac_optarg ;; -psdir | --psdir | --psdi | --psd | --ps) ac_prev=psdir ;; -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) psdir=$ac_optarg ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) silent=yes ;; -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | --sbi=* | --sb=*) sbindir=$ac_optarg ;; -sharedstatedir | --sharedstatedir | --sharedstatedi \ | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | --sharedst | --shareds | --shared | --share | --shar \ | --sha | --sh) ac_prev=sharedstatedir ;; -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | --sha=* | --sh=*) sharedstatedir=$ac_optarg ;; -site | --site | --sit) ac_prev=site ;; -site=* | --site=* | --sit=*) site=$ac_optarg ;; -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) ac_prev=srcdir ;; -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) srcdir=$ac_optarg ;; -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | --syscon | --sysco | --sysc | --sys | --sy) ac_prev=sysconfdir ;; -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) sysconfdir=$ac_optarg ;; -target | --target | --targe | --targ | --tar | --ta | --t) ac_prev=target_alias ;; -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) target_alias=$ac_optarg ;; -v | -verbose | --verbose | --verbos | --verbo | --verb) verbose=yes ;; -version | --version | --versio | --versi | --vers | -V) ac_init_version=: ;; -with-* | --with-*) ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=\$ac_optarg ;; -without-* | --without-*) ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` # Reject names that are not valid shell variable names. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && as_fn_error $? "invalid package name: $ac_useropt" ac_useropt_orig=$ac_useropt ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` case $ac_user_opts in *" "with_$ac_useropt" "*) ;; *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" ac_unrecognized_sep=', ';; esac eval with_$ac_useropt=no ;; --x) # Obsolete; use --with-x. with_x=yes ;; -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | --x-incl | --x-inc | --x-in | --x-i) ac_prev=x_includes ;; -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) x_includes=$ac_optarg ;; -x-libraries | --x-libraries | --x-librarie | --x-librari \ | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) ac_prev=x_libraries ;; -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) x_libraries=$ac_optarg ;; -*) as_fn_error $? "unrecognized option: \`$ac_option' Try \`$0 --help' for more information" ;; *=*) ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` # Reject names that are not valid shell variable names. case $ac_envvar in #( '' | [0-9]* | *[!_$as_cr_alnum]* ) as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; esac eval $ac_envvar=\$ac_optarg export $ac_envvar ;; *) # FIXME: should be removed in autoconf 3.0. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" ;; esac done if test -n "$ac_prev"; then ac_option=--`echo $ac_prev | sed 's/_/-/g'` as_fn_error $? "missing argument to $ac_option" fi if test -n "$ac_unrecognized_opts"; then case $enable_option_checking in no) ;; fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; esac fi # Check all directory arguments for consistency. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. case $ac_val in */ ) ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` eval $ac_var=\$ac_val;; esac # Be sure to have absolute directory names. case $ac_val in [\\/$]* | ?:[\\/]* ) continue;; NONE | '' ) case $ac_var in *prefix ) continue;; esac;; esac as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" done # There might be people who depend on the old broken behavior: `$host' # used to hold the argument of --host etc. # FIXME: To remove some day. build=$build_alias host=$host_alias target=$target_alias # FIXME: To remove some day. if test "x$host_alias" != x; then if test "x$build_alias" = x; then cross_compiling=maybe elif test "x$build_alias" != "x$host_alias"; then cross_compiling=yes fi fi ac_tool_prefix= test -n "$host_alias" && ac_tool_prefix=$host_alias- test "$silent" = yes && exec 6>/dev/null ac_pwd=`pwd` && test -n "$ac_pwd" && ac_ls_di=`ls -di .` && ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || as_fn_error $? "working directory cannot be determined" test "X$ac_ls_di" = "X$ac_pwd_ls_di" || as_fn_error $? "pwd does not report name of working directory" # Find the source files, if location was not specified. if test -z "$srcdir"; then ac_srcdir_defaulted=yes # Try the directory containing this script, then the parent directory. ac_confdir=`$as_dirname -- "$as_myself" || $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_myself" : 'X\(//\)[^/]' \| \ X"$as_myself" : 'X\(//\)$' \| \ X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_myself" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` srcdir=$ac_confdir if test ! -r "$srcdir/$ac_unique_file"; then srcdir=.. fi else ac_srcdir_defaulted=no fi if test ! -r "$srcdir/$ac_unique_file"; then test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" fi ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" ac_abs_confdir=`( cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" pwd)` # When building in place, set srcdir=. if test "$ac_abs_confdir" = "$ac_pwd"; then srcdir=. fi # Remove unnecessary trailing slashes from srcdir. # Double slashes in file names in object file debugging info # mess up M-x gdb in Emacs. case $srcdir in */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; esac for ac_var in $ac_precious_vars; do eval ac_env_${ac_var}_set=\${${ac_var}+set} eval ac_env_${ac_var}_value=\$${ac_var} eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} eval ac_cv_env_${ac_var}_value=\$${ac_var} done # # Report the --help message. # if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF \`configure' configures ripperX 2.8.0 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... To assign environment variables (e.g., CC, CFLAGS...), specify them as VAR=VALUE. See below for descriptions of some of the useful variables. Defaults for the options are specified in brackets. Configuration: -h, --help display this help and exit --help=short display options specific to this package --help=recursive display the short help of all the included packages -V, --version display version information and exit -q, --quiet, --silent do not print \`checking ...' messages --cache-file=FILE cache test results in FILE [disabled] -C, --config-cache alias for \`--cache-file=config.cache' -n, --no-create do not create output files --srcdir=DIR find the sources in DIR [configure dir or \`..'] Installation directories: --prefix=PREFIX install architecture-independent files in PREFIX [$ac_default_prefix] --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX [PREFIX] By default, \`make install' will install all the files in \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify an installation prefix other than \`$ac_default_prefix' using \`--prefix', for instance \`--prefix=\$HOME'. For better control, use the options below. Fine tuning of the installation directories: --bindir=DIR user executables [EPREFIX/bin] --sbindir=DIR system admin executables [EPREFIX/sbin] --libexecdir=DIR program executables [EPREFIX/libexec] --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] --datadir=DIR read-only architecture-independent data [DATAROOTDIR] --infodir=DIR info documentation [DATAROOTDIR/info] --localedir=DIR locale-dependent data [DATAROOTDIR/locale] --mandir=DIR man documentation [DATAROOTDIR/man] --docdir=DIR documentation root [DATAROOTDIR/doc/ripperx] --htmldir=DIR html documentation [DOCDIR] --dvidir=DIR dvi documentation [DOCDIR] --pdfdir=DIR pdf documentation [DOCDIR] --psdir=DIR ps documentation [DOCDIR] _ACEOF cat <<\_ACEOF Program names: --program-prefix=PREFIX prepend PREFIX to installed program names --program-suffix=SUFFIX append SUFFIX to installed program names --program-transform-name=PROGRAM run sed PROGRAM on installed program names System types: --build=BUILD configure for building on BUILD [guessed] --host=HOST cross-compile to build programs to run on HOST [BUILD] _ACEOF fi if test -n "$ac_init_help"; then case $ac_init_help in short | recursive ) echo "Configuration of ripperX 2.8.0:";; esac cat <<\_ACEOF Optional Features: --disable-option-checking ignore unrecognized --enable/--with options --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") --enable-dependency-tracking do not reject slow dependency extractors --disable-dependency-tracking speeds up one-time build --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths --disable-deprecated Disable deprecated GTK functions. Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-gnu-ld assume the C compiler uses GNU ld default=no --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib --without-libintl-prefix don't search for libintl in includedir and libdir Some influential environment variables: CC C compiler command CFLAGS C compiler flags LDFLAGS linker flags, e.g. -L if you have libraries in a nonstandard directory LIBS libraries to pass to the linker, e.g. -l CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I if you have headers in a nonstandard directory CXX C++ compiler command CXXFLAGS C++ compiler flags CPP C preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH directories to add to pkg-config's search path PKG_CONFIG_LIBDIR path overriding pkg-config's built-in search path GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config GLIB_LIBS linker flags for GLIB, overriding pkg-config GTK_CFLAGS C compiler flags for GTK, overriding pkg-config GTK_LIBS linker flags for GTK, overriding pkg-config TAGLIB_CFLAGS C compiler flags for TAGLIB, overriding pkg-config TAGLIB_LIBS linker flags for TAGLIB, overriding pkg-config Use these variables to override the choices made by `configure' or to help it to find libraries and programs with nonstandard names/locations. Report bugs to . _ACEOF ac_status=$? fi if test "$ac_init_help" = "recursive"; then # If there are subdirs, report their specific --help. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue test -d "$ac_dir" || { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || continue ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix cd "$ac_dir" || { ac_status=$?; continue; } # Check for guested configure. if test -f "$ac_srcdir/configure.gnu"; then echo && $SHELL "$ac_srcdir/configure.gnu" --help=recursive elif test -f "$ac_srcdir/configure"; then echo && $SHELL "$ac_srcdir/configure" --help=recursive else $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 fi || ac_status=$? cd "$ac_pwd" || { ac_status=$?; break; } done fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF ripperX configure 2.8.0 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. This configure script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it. _ACEOF exit fi ## ------------------------ ## ## Autoconf initialization. ## ## ------------------------ ## # ac_fn_c_try_compile LINENO # -------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_compile # ac_fn_cxx_try_compile LINENO # ---------------------------- # Try to compile conftest.$ac_ext, and return whether this succeeded. ac_fn_cxx_try_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_cxx_werror_flag" || test ! -s conftest.err } && test -s conftest.$ac_objext; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_cxx_try_compile # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_link () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack rm -f conftest.$ac_objext conftest$ac_exeext if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { test -z "$ac_c_werror_flag" || test ! -s conftest.err } && test -s conftest$ac_exeext && { test "$cross_compiling" = yes || test -x conftest$ac_exeext }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would # interfere with the next link command; also delete a directory that is # left behind by Apple's compiler. We do this before executing the actions. rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_link # ac_fn_c_try_cpp LINENO # ---------------------- # Try to preprocess conftest.$ac_ext, and return whether this succeeded. ac_fn_c_try_cpp () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_cpp conftest.$ac_ext" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err ac_status=$? if test -s conftest.err; then grep -v '^ *+' conftest.err >conftest.er1 cat conftest.er1 >&5 mv -f conftest.er1 conftest.err fi $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } > conftest.i && { test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || test ! -s conftest.err }; then : ac_retval=0 else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=1 fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_cpp # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists, giving a warning if it cannot be compiled using # the include files in INCLUDES and setting the cache variable VAR # accordingly. ac_fn_c_check_header_mongrel () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if eval \${$3+:} false; then : { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } else # Is the header compilable? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 $as_echo_n "checking $2 usability... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_header_compiler=yes else ac_header_compiler=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 $as_echo "$ac_header_compiler" >&6; } # Is the header present? { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 $as_echo_n "checking $2 presence... " >&6; } cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include <$2> _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : ac_header_preproc=yes else ac_header_preproc=no fi rm -f conftest.err conftest.i conftest.$ac_ext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 $as_echo "$ac_header_preproc" >&6; } # So? What about this header? case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( yes:no: ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ;; no:yes:* ) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} ( $as_echo "## --------------------------------------------- ## ## Report this to tmancill@users.sourceforge.net ## ## --------------------------------------------- ##" ) | sed "s/^/$as_me: WARNING: /" >&2 ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=\$ac_header_compiler" fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_mongrel # ac_fn_c_try_run LINENO # ---------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes # that executables *can* be run. ac_fn_c_try_run () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then : ac_retval=0 else $as_echo "$as_me: program exited with status $ac_status" >&5 $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 ac_retval=$ac_status fi rm -rf conftest.dSYM conftest_ipa8_conftest.oo eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno as_fn_set_status $ac_retval } # ac_fn_c_try_run # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES # ------------------------------------------------------- # Tests whether HEADER exists and can be compiled using the include files in # INCLUDES, setting the cache variable VAR accordingly. ac_fn_c_check_header_compile () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 #include <$2> _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_header_compile # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- # Tests whether TYPE exists after having included INCLUDES, setting cache # variable VAR accordingly. ac_fn_c_check_type () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else eval "$3=no" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof ($2)) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int main () { if (sizeof (($2))) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else eval "$3=yes" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_type # ac_fn_c_check_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly ac_fn_c_check_func () { as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 $as_echo_n "checking for $2... " >&6; } if eval \${$3+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Define $2 to an innocuous variant, in case declares $2. For example, HP-UX 11i declares gettimeofday. */ #define $2 innocuous_$2 /* System header to define __stub macros and hopefully few prototypes, which can conflict with char $2 (); below. Prefer to if __STDC__ is defined, since exists even on freestanding compilers. */ #ifdef __STDC__ # include #else # include #endif #undef $2 /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char $2 (); /* The GNU C library defines this for functions which it implements to always fail with ENOSYS. Some functions are actually named something starting with __ and the normal name is an alias. */ #if defined __stub_$2 || defined __stub___$2 choke me #endif int main () { return $2 (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$3=yes" else eval "$3=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$3 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno } # ac_fn_c_check_func cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by ripperX $as_me 2.8.0, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ _ACEOF exec 5>>config.log { cat <<_ASUNAME ## --------- ## ## Platform. ## ## --------- ## hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` uname -m = `(uname -m) 2>/dev/null || echo unknown` uname -r = `(uname -r) 2>/dev/null || echo unknown` uname -s = `(uname -s) 2>/dev/null || echo unknown` uname -v = `(uname -v) 2>/dev/null || echo unknown` /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` _ASUNAME as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. $as_echo "PATH: $as_dir" done IFS=$as_save_IFS } >&5 cat >&5 <<_ACEOF ## ----------- ## ## Core tests. ## ## ----------- ## _ACEOF # Keep a trace of the command line. # Strip out --no-create and --no-recursion so they do not pile up. # Strip out --silent because we don't want to record it for future runs. # Also quote any args containing shell meta-characters. # Make two passes to allow for proper duplicate-argument suppression. ac_configure_args= ac_configure_args0= ac_configure_args1= ac_must_keep_next=false for ac_pass in 1 2 do for ac_arg do case $ac_arg in -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil) continue ;; *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; esac case $ac_pass in 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2) as_fn_append ac_configure_args1 " '$ac_arg'" if test $ac_must_keep_next = true; then ac_must_keep_next=false # Got value, back to normal. else case $ac_arg in *=* | --config-cache | -C | -disable-* | --disable-* \ | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | -with-* | --with-* | -without-* | --without-* | --x) case "$ac_configure_args0 " in "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; esac ;; -* ) ac_must_keep_next=true ;; esac fi as_fn_append ac_configure_args " '$ac_arg'" ;; esac done done { ac_configure_args0=; unset ac_configure_args0;} { ac_configure_args1=; unset ac_configure_args1;} # When interrupted or exit'd, cleanup temporary files, and complete # config.log. We remove comments because anyway the quotes in there # would cause problems or look ugly. # WARNING: Use '\'' to represent an apostrophe within the trap. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. trap 'exit_status=$? # Save into config.log some information that might help in debugging. { echo $as_echo "## ---------------- ## ## Cache variables. ## ## ---------------- ##" echo # The following way of writing the cache mishandles newlines in values, ( for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( *${as_nl}ac_space=\ *) sed -n \ "s/'\''/'\''\\\\'\'''\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" ;; #( *) sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) echo $as_echo "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo for ac_var in $ac_subst_vars do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo if test -n "$ac_subst_files"; then $as_echo "## ------------------- ## ## File substitutions. ## ## ------------------- ##" echo for ac_var in $ac_subst_files do eval ac_val=\$$ac_var case $ac_val in *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; esac $as_echo "$ac_var='\''$ac_val'\''" done | sort echo fi if test -s confdefs.h; then $as_echo "## ----------- ## ## confdefs.h. ## ## ----------- ##" echo cat confdefs.h echo fi test "$ac_signal" != 0 && $as_echo "$as_me: caught signal $ac_signal" $as_echo "$as_me: exit $exit_status" } >&5 rm -f core *.core core.conftest.* && rm -f -r conftest* confdefs* conf$$* $ac_clean_files && exit $exit_status ' 0 for ac_signal in 1 2 13 15; do trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal done ac_signal=0 # confdefs.h avoids OS command line length limits that DEFS can exceed. rm -f -r conftest* confdefs.h $as_echo "/* confdefs.h */" > confdefs.h # Predefined preprocessor variables. cat >>confdefs.h <<_ACEOF #define PACKAGE_NAME "$PACKAGE_NAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_TARNAME "$PACKAGE_TARNAME" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_VERSION "$PACKAGE_VERSION" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_STRING "$PACKAGE_STRING" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" _ACEOF cat >>confdefs.h <<_ACEOF #define PACKAGE_URL "$PACKAGE_URL" _ACEOF # Let the site file select an alternate cache file if it wants to. # Prefer an explicitly selected file to automatically selected ones. ac_site_file1=NONE ac_site_file2=NONE if test -n "$CONFIG_SITE"; then # We do not want a PATH search for config.site. case $CONFIG_SITE in #(( -*) ac_site_file1=./$CONFIG_SITE;; */*) ac_site_file1=$CONFIG_SITE;; *) ac_site_file1=./$CONFIG_SITE;; esac elif test "x$prefix" != xNONE; then ac_site_file1=$prefix/share/config.site ac_site_file2=$prefix/etc/config.site else ac_site_file1=$ac_default_prefix/share/config.site ac_site_file2=$ac_default_prefix/etc/config.site fi for ac_site_file in "$ac_site_file1" "$ac_site_file2" do test "x$ac_site_file" = xNONE && continue if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 $as_echo "$as_me: loading site script $ac_site_file" >&6;} sed 's/^/| /' "$ac_site_file" >&5 . "$ac_site_file" \ || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "failed to load site script $ac_site_file See \`config.log' for more details" "$LINENO" 5; } fi done if test -r "$cache_file"; then # Some versions of bash will fail to source /dev/null (special files # actually), so we avoid doing that. DJGPP emulates it as a regular file. if test /dev/null != "$cache_file" && test -f "$cache_file"; then { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 $as_echo "$as_me: loading cache $cache_file" >&6;} case $cache_file in [\\/]* | ?:[\\/]* ) . "$cache_file";; *) . "./$cache_file";; esac fi else { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 $as_echo "$as_me: creating cache $cache_file" >&6;} >$cache_file fi gt_needs="$gt_needs " # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false for ac_var in $ac_precious_vars; do eval ac_old_set=\$ac_cv_env_${ac_var}_set eval ac_new_set=\$ac_env_${ac_var}_set eval ac_old_val=\$ac_cv_env_${ac_var}_value eval ac_new_val=\$ac_env_${ac_var}_value case $ac_old_set,$ac_new_set in set,) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} ac_cache_corrupted=: ;; ,set) { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} ac_cache_corrupted=: ;; ,);; *) if test "x$ac_old_val" != "x$ac_new_val"; then # differences in whitespace do not lead to failure. ac_old_val_w=`echo x $ac_old_val` ac_new_val_w=`echo x $ac_new_val` if test "$ac_old_val_w" != "$ac_new_val_w"; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} ac_cache_corrupted=: else { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} eval $ac_var=\$ac_old_val fi { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} fi;; esac # Pass precious variables to config.status. if test "$ac_new_set" = set; then case $ac_new_val in *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; *) ac_arg=$ac_var=$ac_new_val ;; esac case " $ac_configure_args " in *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. *) as_fn_append ac_configure_args " '$ac_arg'" ;; esac fi done if $ac_cache_corrupted; then { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 fi ## -------------------- ## ## Main body of script. ## ## -------------------- ## ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu ac_aux_dir= for ac_dir in config "$srcdir"/config; do if test -f "$ac_dir/install-sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install-sh -c" break elif test -f "$ac_dir/install.sh"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/install.sh -c" break elif test -f "$ac_dir/shtool"; then ac_aux_dir=$ac_dir ac_install_sh="$ac_aux_dir/shtool install -c" break fi done if test -z "$ac_aux_dir"; then as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 fi # These three variables are undocumented and unsupported, # and are intended to be withdrawn in a future Autoconf release. # They can cause serious problems if a builder's source tree is in a directory # whose full name contains unusual characters. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. am__api_version='1.13' # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: # SysV /etc/install, /usr/sbin/install # SunOS /usr/etc/install # IRIX /sbin/install # AIX /bin/install # AmigaOS /C/install, which installs bootblocks on floppy discs # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag # AFS /usr/afsws/bin/install, which mishandles nonexistent args # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" # OS/2's system install, which has a completely different semantic # ./install, which can be erroneously created by make from ./install.sh. # Reject install programs that cannot install multiple files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 $as_echo_n "checking for a BSD-compatible install... " >&6; } if test -z "$INSTALL"; then if ${ac_cv_path_install+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. # Account for people who put trailing slashes in PATH elements. case $as_dir/ in #(( ./ | .// | /[cC]/* | \ /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ /usr/ucb/* ) ;; *) # OSF1 and SCO ODT 3.0 have their own names for install. # Don't use installbsd from OSF since it installs stuff as root # by default. for ac_prog in ginstall scoinst install; do for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then if test $ac_prog = install && grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # AIX install. It has an incompatible calling convention. : elif test $ac_prog = install && grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then # program-specific install script used by HP pwplus--don't use. : else rm -rf conftest.one conftest.two conftest.dir echo one > conftest.one echo two > conftest.two mkdir conftest.dir if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && test -s conftest.one && test -s conftest.two && test -s conftest.dir/conftest.one && test -s conftest.dir/conftest.two then ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" break 3 fi fi fi done done ;; esac done IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi if test "${ac_cv_path_install+set}" = set; then INSTALL=$ac_cv_path_install else # As a last resort, use the slow shell script. Don't cache a # value for INSTALL within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. INSTALL=$ac_install_sh fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 $as_echo "$INSTALL" >&6; } # Use test -z because SunOS4 sh mishandles braces in ${var-val}. # It thinks the first close brace ends the variable substitution. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 $as_echo_n "checking whether build environment is sane... " >&6; } # Reject unsafe characters in $srcdir or the absolute working directory # name. Accept space and tab only in the latter. am_lf=' ' case `pwd` in *[\\\"\#\$\&\'\`$am_lf]*) as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; esac case $srcdir in *[\\\"\#\$\&\'\`$am_lf\ \ ]*) as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; esac # Do 'set' in a subshell so we don't clobber the current shell's # arguments. Must try -L first in case configure is actually a # symlink; some systems play weird games with the mod time of symlinks # (eg FreeBSD returns the mod time of the symlink's containing # directory). if ( am_has_slept=no for am_try in 1 2; do echo "timestamp, slept: $am_has_slept" > conftest.file set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` if test "$*" = "X"; then # -L didn't work. set X `ls -t "$srcdir/configure" conftest.file` fi if test "$*" != "X $srcdir/configure conftest.file" \ && test "$*" != "X conftest.file $srcdir/configure"; then # If neither matched, then we have a broken ls. This can happen # if, for instance, CONFIG_SHELL is bash and it inherits a # broken ls alias from the environment. This has actually # happened. Such a system could not be considered "sane". as_fn_error $? "ls -t appears to fail. Make sure there is not a broken alias in your environment" "$LINENO" 5 fi if test "$2" = conftest.file || test $am_try -eq 2; then break fi # Just in case. sleep 1 am_has_slept=yes done test "$2" = conftest.file ) then # Ok. : else as_fn_error $? "newly created file is older than distributed files! Check your system clock" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } # If we didn't sleep, we still need to ensure time stamps of config.status and # generated files are strictly newer. am_sleep_pid= if grep 'slept: no' conftest.file >/dev/null 2>&1; then ( sleep 1 ) & am_sleep_pid=$! fi rm -f conftest.file test "$program_prefix" != NONE && program_transform_name="s&^&$program_prefix&;$program_transform_name" # Use a double $ so make ignores it. test "$program_suffix" != NONE && program_transform_name="s&\$&$program_suffix&;$program_transform_name" # Double any \ or $. # By default was `s,x,x', remove it if useless. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` # expand $ac_aux_dir to an absolute path am_aux_dir=`cd $ac_aux_dir && pwd` if test x"${MISSING+set}" != xset; then case $am_aux_dir in *\ * | *\ *) MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; *) MISSING="\${SHELL} $am_aux_dir/missing" ;; esac fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then am_missing_run="$MISSING " else am_missing_run= { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} fi if test x"${install_sh}" != xset; then case $am_aux_dir in *\ * | *\ *) install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; *) install_sh="\${SHELL} $am_aux_dir/install-sh" esac fi # Installed binaries are usually stripped using 'strip' when the user # run "make install-strip". However 'strip' might not be the right # tool to use in cross-compilation environments, therefore Automake # will honor the 'STRIP' environment variable to overrule this program. if test "$cross_compiling" != no; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. set dummy ${ac_tool_prefix}strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$STRIP"; then ac_cv_prog_STRIP="$STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_STRIP="${ac_tool_prefix}strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi STRIP=$ac_cv_prog_STRIP if test -n "$STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 $as_echo "$STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_prog_STRIP"; then ac_ct_STRIP=$STRIP # Extract the first word of "strip", so it can be a program name with args. set dummy strip; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_STRIP+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_STRIP"; then ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_STRIP="strip" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP if test -n "$ac_ct_STRIP"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 $as_echo "$ac_ct_STRIP" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_ct_STRIP" = x; then STRIP=":" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac STRIP=$ac_ct_STRIP fi else STRIP="$ac_cv_prog_STRIP" fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } if test -z "$MKDIR_P"; then if ${ac_cv_path_mkdir+:} false; then : $as_echo_n "(cached) " >&6 else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in mkdir gmkdir; do for ac_exec_ext in '' $ac_executable_extensions; do as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 'mkdir (GNU coreutils) '* | \ 'mkdir (coreutils) '* | \ 'mkdir (fileutils) '4.1*) ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext break 3;; esac done done done IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version if test "${ac_cv_path_mkdir+set}" = set; then MKDIR_P="$ac_cv_path_mkdir -p" else # As a last resort, use the slow shell script. Don't cache a # value for MKDIR_P within a source directory, because that will # break other packages using the cache if that directory is # removed, or if the value is a relative name. MKDIR_P="$ac_install_sh -d" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 $as_echo "$MKDIR_P" >&6; } for ac_prog in gawk mawk nawk awk do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_AWK+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$AWK"; then ac_cv_prog_AWK="$AWK" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_AWK="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi AWK=$ac_cv_prog_AWK if test -n "$AWK"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 $as_echo "$AWK" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$AWK" && break done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } set x ${MAKE-make} ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : $as_echo_n "(cached) " >&6 else cat >conftest.make <<\_ACEOF SHELL = /bin/sh all: @echo '@@@%%%=$(MAKE)=@@@%%%' _ACEOF # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. case `${MAKE-make} -f conftest.make 2>/dev/null` in *@@@%%%=?*=@@@%%%*) eval ac_cv_prog_make_${ac_make}_set=yes;; *) eval ac_cv_prog_make_${ac_make}_set=no;; esac rm -f conftest.make fi if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } SET_MAKE= else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } SET_MAKE="MAKE=${MAKE-make}" fi rm -rf .tst 2>/dev/null mkdir .tst 2>/dev/null if test -d .tst; then am__leading_dot=. else am__leading_dot=_ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. if test "${enable_silent_rules+set}" = set; then : enableval=$enable_silent_rules; fi case $enable_silent_rules in # ((( yes) AM_DEFAULT_VERBOSITY=0;; no) AM_DEFAULT_VERBOSITY=1;; *) AM_DEFAULT_VERBOSITY=1;; esac am_make=${MAKE-make} { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } if ${am_cv_make_support_nested_variables+:} false; then : $as_echo_n "(cached) " >&6 else if $as_echo 'TRUE=$(BAR$(V)) BAR0=false BAR1=true V=1 am__doit: @$(TRUE) .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then am_cv_make_support_nested_variables=yes else am_cv_make_support_nested_variables=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 $as_echo "$am_cv_make_support_nested_variables" >&6; } if test $am_cv_make_support_nested_variables = yes; then AM_V='$(V)' AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' else AM_V=$AM_DEFAULT_VERBOSITY AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY fi AM_BACKSLASH='\' if test "`cd $srcdir && pwd`" != "`pwd`"; then # Use -I$(srcdir) only when $(srcdir) != ., so that make's output # is not polluted with repeated "-I." am__isrc=' -I$(srcdir)' # test to see if srcdir already configured if test -f $srcdir/config.status; then as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 fi fi # test whether we have cygpath if test -z "$CYGPATH_W"; then if (cygpath --version) >/dev/null 2>/dev/null; then CYGPATH_W='cygpath -w' else CYGPATH_W=echo fi fi # Define the identity of the package. PACKAGE='ripperx' VERSION='2.8.0' cat >>confdefs.h <<_ACEOF #define PACKAGE "$PACKAGE" _ACEOF cat >>confdefs.h <<_ACEOF #define VERSION "$VERSION" _ACEOF # Some tools Automake needs. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} # For better backward compatibility. To be removed once Automake 1.9.x # dies out for good. For more background, see: # # mkdir_p='$(MKDIR_P)' # We need awk for the "check" target. The system "awk" is bad on # some platforms. # Always define AMTAR for backward compatibility. Yes, it's still used # in the wild :-( We should find a proper way to deprecate it ... AMTAR='$${TAR-tar}' # We'll loop over all known methods to create a tar archive until one works. _am_tools='gnutar pax cpio none' am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' ac_config_headers="$ac_config_headers config.h" # Checks for programs. ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu if test -n "$ac_tool_prefix"; then for ac_prog in g++ do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CC"; then ac_cv_prog_CC="$CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CC="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CC=$ac_cv_prog_CC if test -n "$CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 $as_echo "$CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CC" && break done fi if test -z "$CC"; then ac_ct_CC=$CC for ac_prog in g++ do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CC+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CC"; then ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CC="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CC=$ac_cv_prog_ac_ct_CC if test -n "$ac_ct_CC"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 $as_echo "$ac_ct_CC" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CC" && break done if test "x$ac_ct_CC" = x; then CC="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CC=$ac_ct_CC fi fi test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "no acceptable C compiler found in \$PATH See \`config.log' for more details" "$LINENO" 5; } # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" # Try to create an executable without -o first, disregard a.out. # It will help us diagnose broken compilers, and finding out an intuition # of exeext. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 $as_echo_n "checking whether the C compiler works... " >&6; } ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` # The possible output files: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" ac_rmfiles= for ac_file in $ac_files do case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; * ) ac_rmfiles="$ac_rmfiles $ac_file";; esac done rm -f $ac_rmfiles if { { ac_try="$ac_link_default" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link_default") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' # in a Makefile. We should not override ac_cv_exeext if it was cached, # so that the user can short-circuit this test for compilers unknown to # Autoconf. for ac_file in $ac_files '' do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; [ab].out ) # We found the default executable, but exeext='' is most # certainly right. break;; *.* ) if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi # We set ac_cv_exeext here because the later test for it is not # safe: cross compilers may not add the suffix if given an `-o' # argument, so we may need to know it at that point already. # Even if this section looks crufty: it has the advantage of # actually working. break;; * ) break;; esac done test "$ac_cv_exeext" = no && ac_cv_exeext= else ac_file='' fi if test -z "$ac_file"; then : { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error 77 "C compiler cannot create executables See \`config.log' for more details" "$LINENO" 5; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 $as_echo_n "checking for C compiler default output file name... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 $as_echo "$ac_file" >&6; } ac_exeext=$ac_cv_exeext rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 $as_echo_n "checking for suffix of executables... " >&6; } if { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : # If both `conftest.exe' and `conftest' are `present' (well, observable) # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will # work properly (i.e., refer to `conftest.exe'), while it won't with # `rm'. for ac_file in conftest.exe conftest conftest.*; do test -f "$ac_file" || continue case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` break;; * ) break;; esac done else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of executables: cannot compile and link See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest conftest$ac_cv_exeext { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 $as_echo "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext ac_exeext=$EXEEXT cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; ; return 0; } _ACEOF ac_clean_files="$ac_clean_files conftest.out" # Check that the compiler produces executables we can run. If not, either # the compiler is broken, or we cross compile. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 $as_echo_n "checking whether we are cross compiling... " >&6; } if test "$cross_compiling" != yes; then { { ac_try="$ac_link" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_link") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_try") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; }; then cross_compiling=no else if test "$cross_compiling" = maybe; then cross_compiling=yes else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot run C compiled programs. If you meant to cross compile, use \`--host'. See \`config.log' for more details" "$LINENO" 5; } fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 $as_echo "$cross_compiling" >&6; } rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out ac_clean_files=$ac_clean_files_save { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 $as_echo_n "checking for suffix of object files... " >&6; } if ${ac_cv_objext+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF rm -f conftest.o conftest.obj if { { ac_try="$ac_compile" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compile") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then : for ac_file in conftest.o conftest.obj conftest.*; do test -f "$ac_file" || continue; case $ac_file in *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` break;; esac done else $as_echo "$as_me: failed program was:" >&5 sed 's/^/| /' conftest.$ac_ext >&5 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "cannot compute suffix of object files: cannot compile See \`config.log' for more details" "$LINENO" 5; } fi rm -f conftest.$ac_cv_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 $as_echo "$ac_cv_objext" >&6; } OBJEXT=$ac_cv_objext ac_objext=$OBJEXT { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } if ${ac_cv_c_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_c_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 $as_echo "$ac_cv_c_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GCC=yes else GCC= fi ac_test_CFLAGS=${CFLAGS+set} ac_save_CFLAGS=$CFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 $as_echo_n "checking whether $CC accepts -g... " >&6; } if ${ac_cv_prog_cc_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_c_werror_flag=$ac_c_werror_flag ac_c_werror_flag=yes ac_cv_prog_cc_g=no CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes else CFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : else ac_c_werror_flag=$ac_save_c_werror_flag CFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_c_werror_flag=$ac_save_c_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 $as_echo "$ac_cv_prog_cc_g" >&6; } if test "$ac_test_CFLAGS" = set; then CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then CFLAGS="-g -O2" else CFLAGS="-g" fi else if test "$GCC" = yes; then CFLAGS="-O2" else CFLAGS= fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } if ${ac_cv_prog_cc_c89+:} false; then : $as_echo_n "(cached) " >&6 else ac_cv_prog_cc_c89=no ac_save_CC=$CC cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include struct stat; /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ struct buf { int x; }; FILE * (*rcsopen) (struct buf *, struct stat *, int); static char *e (p, i) char **p; int i; { return p[i]; } static char *f (char * (*g) (char **, int), char **p, ...) { char *s; va_list v; va_start (v,p); s = g (p, va_arg (v,int)); va_end (v); return s; } /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has function prototypes and stuff, but not '\xHH' hex character constants. These don't provoke an error unfortunately, instead are silently treated as 'x'. The following induces an error, until -std is added to get proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an array size at least. It's necessary to write '\x00'==0 to get something that's true only with -std. */ int osf4_cc_array ['\x00' == 0 ? 1 : -1]; /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters inside strings and character constants. */ #define FOO(x) 'x' int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; int test (int i, double x); struct s1 {int (*f) (int a);}; struct s2 {int (*f) (double a);}; int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); int argc; char **argv; int main () { return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; ; return 0; } _ACEOF for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" do CC="$ac_save_CC $ac_arg" if ac_fn_c_try_compile "$LINENO"; then : ac_cv_prog_cc_c89=$ac_arg fi rm -f core conftest.err conftest.$ac_objext test "x$ac_cv_prog_cc_c89" != "xno" && break done rm -f conftest.$ac_ext CC=$ac_save_CC fi # AC_CACHE_VAL case "x$ac_cv_prog_cc_c89" in x) { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 $as_echo "none needed" >&6; } ;; xno) { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 $as_echo "unsupported" >&6; } ;; *) CC="$CC $ac_cv_prog_cc_c89" { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; esac if test "x$ac_cv_prog_cc_c89" != xno; then : fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu DEPDIR="${am__leading_dot}deps" ac_config_commands="$ac_config_commands depfiles" am_make=${MAKE-make} cat > confinc << 'END' am__doit: @echo this is the am__doit target .PHONY: am__doit END # If we don't find an include directive, just comment out the code. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 $as_echo_n "checking for style of include used by $am_make... " >&6; } am__include="#" am__quote= _am_result=none # First try GNU make style include. echo "include confinc" > confmf # Ignore all kinds of additional output from 'make'. case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=include am__quote= _am_result=GNU ;; esac # Now try BSD make style include. if test "$am__include" = "#"; then echo '.include "confinc"' > confmf case `$am_make -s -f confmf 2> /dev/null` in #( *the\ am__doit\ target*) am__include=.include am__quote="\"" _am_result=BSD ;; esac fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 $as_echo "$_am_result" >&6; } rm -f confinc confmf # Check whether --enable-dependency-tracking was given. if test "${enable_dependency_tracking+set}" = set; then : enableval=$enable_dependency_tracking; fi if test "x$enable_dependency_tracking" != xno; then am_depcomp="$ac_aux_dir/depcomp" AMDEPBACKSLASH='\' am__nodep='_no' fi if test "x$enable_dependency_tracking" != xno; then AMDEP_TRUE= AMDEP_FALSE='#' else AMDEP_TRUE='#' AMDEP_FALSE= fi depcc="$CC" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CC_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CC_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CC_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CC_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then am__fastdepCC_TRUE= am__fastdepCC_FALSE='#' else am__fastdepCC_TRUE='#' am__fastdepCC_FALSE= fi ac_ext=cpp ac_cpp='$CXXCPP $CPPFLAGS' ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_cxx_compiler_gnu if test -z "$CXX"; then if test -n "$CCC"; then CXX=$CCC else if test -n "$ac_tool_prefix"; then for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. set dummy $ac_tool_prefix$ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$CXX"; then ac_cv_prog_CXX="$CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi CXX=$ac_cv_prog_CXX if test -n "$CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 $as_echo "$CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$CXX" && break done fi if test -z "$CXX"; then ac_ct_CXX=$CXX for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC do # Extract the first word of "$ac_prog", so it can be a program name with args. set dummy $ac_prog; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_prog_ac_ct_CXX+:} false; then : $as_echo_n "(cached) " >&6 else if test -n "$ac_ct_CXX"; then ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. else as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_prog_ac_ct_CXX="$ac_prog" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS fi fi ac_ct_CXX=$ac_cv_prog_ac_ct_CXX if test -n "$ac_ct_CXX"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 $as_echo "$ac_ct_CXX" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$ac_ct_CXX" && break done if test "x$ac_ct_CXX" = x; then CXX="g++" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac CXX=$ac_ct_CXX fi fi fi fi # Provide some information about the compiler. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 set X $ac_compile ac_compiler=$2 for ac_option in --version -v -V -qversion; do { { ac_try="$ac_compiler $ac_option >&5" case "(($ac_try" in *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; *) ac_try_echo=$ac_try;; esac eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" $as_echo "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then sed '10a\ ... rest of stderr output deleted ... 10q' conftest.err >conftest.er1 cat conftest.er1 >&5 fi rm -f conftest.er1 conftest.err $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } done { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } if ${ac_cv_cxx_compiler_gnu+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { #ifndef __GNUC__ choke me #endif ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_compiler_gnu=yes else ac_compiler_gnu=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cv_cxx_compiler_gnu=$ac_compiler_gnu fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } if test $ac_compiler_gnu = yes; then GXX=yes else GXX= fi ac_test_CXXFLAGS=${CXXFLAGS+set} ac_save_CXXFLAGS=$CXXFLAGS { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 $as_echo_n "checking whether $CXX accepts -g... " >&6; } if ${ac_cv_prog_cxx_g+:} false; then : $as_echo_n "(cached) " >&6 else ac_save_cxx_werror_flag=$ac_cxx_werror_flag ac_cxx_werror_flag=yes ac_cv_prog_cxx_g=no CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes else CXXFLAGS="" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : else ac_cxx_werror_flag=$ac_save_cxx_werror_flag CXXFLAGS="-g" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int main () { ; return 0; } _ACEOF if ac_fn_cxx_try_compile "$LINENO"; then : ac_cv_prog_cxx_g=yes fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext ac_cxx_werror_flag=$ac_save_cxx_werror_flag fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 $as_echo "$ac_cv_prog_cxx_g" >&6; } if test "$ac_test_CXXFLAGS" = set; then CXXFLAGS=$ac_save_CXXFLAGS elif test $ac_cv_prog_cxx_g = yes; then if test "$GXX" = yes; then CXXFLAGS="-g -O2" else CXXFLAGS="-g" fi else if test "$GXX" = yes; then CXXFLAGS="-O2" else CXXFLAGS= fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu depcc="$CXX" am_compiler_list= { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 $as_echo_n "checking dependency style of $depcc... " >&6; } if ${am_cv_CXX_dependencies_compiler_type+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then # We make a subdir and do the tests there. Otherwise we can end up # making bogus files that we don't know about and never remove. For # instance it was reported that on HP-UX the gcc test will end up # making a dummy file named 'D' -- because '-MD' means "put the output # in D". rm -rf conftest.dir mkdir conftest.dir # Copy depcomp to subdir because otherwise we won't find it if we're # using a relative directory. cp "$am_depcomp" conftest.dir cd conftest.dir # We will build objects and dependencies in a subdirectory because # it helps to detect inapplicable dependency modes. For instance # both Tru64's cc and ICC support -MD to output dependencies as a # side effect of compilation, but ICC will put the dependencies in # the current directory while Tru64 will put them in the object # directory. mkdir sub am_cv_CXX_dependencies_compiler_type=none if test "$am_compiler_list" = ""; then am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` fi am__universal=false case " $depcc " in #( *\ -arch\ *\ -arch\ *) am__universal=true ;; esac for depmode in $am_compiler_list; do # Setup a source with many dependencies, because some compilers # like to wrap large dependency lists on column 80 (with \), and # we should not choose a depcomp mode which is confused by this. # # We need to recreate these files for each test, as the compiler may # overwrite some of them when testing with obscure command lines. # This happens at least with the AIX C compiler. : > sub/conftest.c for i in 1 2 3 4 5 6; do echo '#include "conftst'$i'.h"' >> sub/conftest.c # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with # Solaris 10 /bin/sh. echo '/* dummy */' > sub/conftst$i.h done echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf # We check with '-c' and '-o' for the sake of the "dashmstdout" # mode. It turns out that the SunPro C++ compiler does not properly # handle '-M -o', and we need to detect this. Also, some Intel # versions had trouble with output in subdirs. am__obj=sub/conftest.${OBJEXT-o} am__minus_obj="-o $am__obj" case $depmode in gcc) # This depmode causes a compiler race in universal mode. test "$am__universal" = false || continue ;; nosideeffect) # After this tag, mechanisms are not by side-effect, so they'll # only be used when explicitly requested. if test "x$enable_dependency_tracking" = xyes; then continue else break fi ;; msvc7 | msvc7msys | msvisualcpp | msvcmsys) # This compiler won't grok '-c -o', but also, the minuso test has # not run yet. These depmodes are late enough in the game, and # so weak that their functioning should not be impacted. am__obj=conftest.${OBJEXT-o} am__minus_obj= ;; none) break ;; esac if depmode=$depmode \ source=sub/conftest.c object=$am__obj \ depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ >/dev/null 2>conftest.err && grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && grep $am__obj sub/conftest.Po > /dev/null 2>&1 && ${MAKE-make} -s -f confmf > /dev/null 2>&1; then # icc doesn't choke on unknown options, it will just issue warnings # or remarks (even with -Werror). So we grep stderr for any message # that says an option was ignored or not supported. # When given -MP, icc 7.0 and 7.1 complain thusly: # icc: Command line warning: ignoring option '-M'; no argument required # The diagnosis changed in icc 8.0: # icc: Command line remark: option '-MP' not supported if (grep 'ignoring option' conftest.err || grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else am_cv_CXX_dependencies_compiler_type=$depmode break fi fi done cd .. rm -rf conftest.dir else am_cv_CXX_dependencies_compiler_type=none fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type if test "x$enable_dependency_tracking" != xno \ && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then am__fastdepCXX_TRUE= am__fastdepCXX_FALSE='#' else am__fastdepCXX_TRUE='#' am__fastdepCXX_FALSE= fi # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Checks for header files. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } if ${ac_cv_header_sys_wait_h+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif int main () { int s; wait (&s); s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_sys_wait_h=yes else ac_cv_header_sys_wait_h=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 $as_echo "$ac_cv_header_sys_wait_h" >&6; } if test $ac_cv_header_sys_wait_h = yes; then $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h fi ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } if eval \${$as_ac_Header+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include <$ac_hdr> int main () { if ((DIR *) 0) return 0; ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : eval "$as_ac_Header=yes" else eval "$as_ac_Header=no" fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi eval ac_res=\$$as_ac_Header { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 _ACEOF ac_header_dirent=$ac_hdr; break fi done # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. if test $ac_header_dirent = dirent.h; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' dir; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 $as_echo_n "checking for library containing opendir... " >&6; } if ${ac_cv_search_opendir+:} false; then : $as_echo_n "(cached) " >&6 else ac_func_search_save_LIBS=$LIBS cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char opendir (); int main () { return opendir (); ; return 0; } _ACEOF for ac_lib in '' x; do if test -z "$ac_lib"; then ac_res="none required" else ac_res=-l$ac_lib LIBS="-l$ac_lib $ac_func_search_save_LIBS" fi if ac_fn_c_try_link "$LINENO"; then : ac_cv_search_opendir=$ac_res fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext if ${ac_cv_search_opendir+:} false; then : break fi done if ${ac_cv_search_opendir+:} false; then : else ac_cv_search_opendir=no fi rm conftest.$ac_ext LIBS=$ac_func_search_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 $as_echo "$ac_cv_search_opendir" >&6; } ac_res=$ac_cv_search_opendir if test "$ac_res" != no; then : test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" fi fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if ${ac_cv_prog_CPP+:} false; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : break fi done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP else ac_cv_prog_CPP=$CPP fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 $as_echo "$CPP" >&6; } ac_preproc_ok=false for ac_c_preproc_warn_flag in '' yes do # Use a header file that comes with gcc, so configuring glibc # with a fresh cross-compiler works. # Prefer to if __STDC__ is defined, since # exists even on freestanding compilers. # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. "Syntax error" is here to catch this case. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef __STDC__ # include #else # include #endif Syntax error _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : else # Broken: fails on valid input. continue fi rm -f conftest.err conftest.i conftest.$ac_ext # OK, works on sane cases. Now check whether nonexistent headers # can be detected and how. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if ac_fn_c_try_cpp "$LINENO"; then : # Broken: success on invalid input. continue else # Passes both tests. ac_preproc_ok=: break fi rm -f conftest.err conftest.i conftest.$ac_ext done # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. rm -f conftest.i conftest.err conftest.$ac_ext if $ac_preproc_ok; then : else { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "C preprocessor \"$CPP\" fails sanity check See \`config.log' for more details" "$LINENO" 5; } fi ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' ac_compiler_gnu=$ac_cv_c_compiler_gnu { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } if ${ac_cv_path_GREP+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$GREP"; then ac_path_GREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in grep ggrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_GREP" || continue # Check for GNU ac_path_GREP and select it if it is found. # Check for GNU $ac_path_GREP case `"$ac_path_GREP" --version 2>&1` in *GNU*) ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'GREP' >> "conftest.nl" "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_GREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_GREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_GREP"; then as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_GREP=$GREP fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 $as_echo "$ac_cv_path_GREP" >&6; } GREP="$ac_cv_path_GREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 $as_echo_n "checking for egrep... " >&6; } if ${ac_cv_path_EGREP+:} false; then : $as_echo_n "(cached) " >&6 else if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 then ac_cv_path_EGREP="$GREP -E" else if test -z "$EGREP"; then ac_path_EGREP_found=false # Loop through the user's path and test for each of PROGNAME-LIST as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_prog in egrep; do for ac_exec_ext in '' $ac_executable_extensions; do ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" as_fn_executable_p "$ac_path_EGREP" || continue # Check for GNU ac_path_EGREP and select it if it is found. # Check for GNU $ac_path_EGREP case `"$ac_path_EGREP" --version 2>&1` in *GNU*) ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; *) ac_count=0 $as_echo_n 0123456789 >"conftest.in" while : do cat "conftest.in" "conftest.in" >"conftest.tmp" mv "conftest.tmp" "conftest.in" cp "conftest.in" "conftest.nl" $as_echo 'EGREP' >> "conftest.nl" "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break as_fn_arith $ac_count + 1 && ac_count=$as_val if test $ac_count -gt ${ac_path_EGREP_max-0}; then # Best one so far, save it but keep looking for a better one ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_max=$ac_count fi # 10*(2^10) chars as input seems more than enough test $ac_count -gt 10 && break done rm -f conftest.in conftest.tmp conftest.nl conftest.out;; esac $ac_path_EGREP_found && break 3 done done done IFS=$as_save_IFS if test -z "$ac_cv_path_EGREP"; then as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 fi else ac_cv_path_EGREP=$EGREP fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 $as_echo "$ac_cv_path_EGREP" >&6; } EGREP="$ac_cv_path_EGREP" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 $as_echo_n "checking for ANSI C header files... " >&6; } if ${ac_cv_header_stdc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #include #include int main () { ; return 0; } _ACEOF if ac_fn_c_try_compile "$LINENO"; then : ac_cv_header_stdc=yes else ac_cv_header_stdc=no fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext if test $ac_cv_header_stdc = yes; then # SunOS 4.x string.h does not declare mem*, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "memchr" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "free" >/dev/null 2>&1; then : else ac_cv_header_stdc=no fi rm -f conftest* fi if test $ac_cv_header_stdc = yes; then # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. if test "$cross_compiling" = yes; then : : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include #if ((' ' & 0x0FF) == 0x020) # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) #else # define ISLOWER(c) \ (('a' <= (c) && (c) <= 'i') \ || ('j' <= (c) && (c) <= 'r') \ || ('s' <= (c) && (c) <= 'z')) # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) #endif #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) int main () { int i; for (i = 0; i < 256; i++) if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) return 2; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : else ac_cv_header_stdc=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 $as_echo "$ac_cv_header_stdc" >&6; } if test $ac_cv_header_stdc = yes; then $as_echo "#define STDC_HEADERS 1" >>confdefs.h fi # On IRIX 5.3, sys/types and inttypes.h are conflicting. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ inttypes.h stdint.h unistd.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default " if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done for ac_header in fcntl.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h linux/cdrom.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 _ACEOF fi done # Checks for typedefs, structures, and compiler characteristics. ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" if test "x$ac_cv_type_pid_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define pid_t int _ACEOF fi ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" if test "x$ac_cv_type_size_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define size_t unsigned int _ACEOF fi ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" if test "x$ac_cv_type_ssize_t" = xyes; then : else cat >>confdefs.h <<_ACEOF #define ssize_t int _ACEOF fi # Checks for library functions. for ac_header in vfork.h do : ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" if test "x$ac_cv_header_vfork_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_VFORK_H 1 _ACEOF fi done for ac_func in fork vfork do : as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" if eval test \"x\$"$as_ac_var"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 _ACEOF fi done if test "x$ac_cv_func_fork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 $as_echo_n "checking for working fork... " >&6; } if ${ac_cv_func_fork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_fork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $ac_includes_default int main () { /* By Ruediger Kuhlmann. */ return fork () < 0; ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_fork_works=yes else ac_cv_func_fork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 $as_echo "$ac_cv_func_fork_works" >&6; } else ac_cv_func_fork_works=$ac_cv_func_fork fi if test "x$ac_cv_func_fork_works" = xcross; then case $host in *-*-amigaos* | *-*-msdosdjgpp*) # Override, as these systems have only a dummy fork() stub ac_cv_func_fork_works=no ;; *) ac_cv_func_fork_works=yes ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} fi ac_cv_func_vfork_works=$ac_cv_func_vfork if test "x$ac_cv_func_vfork" = xyes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 $as_echo_n "checking for working vfork... " >&6; } if ${ac_cv_func_vfork_works+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_vfork_works=cross else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Thanks to Paul Eggert for this test. */ $ac_includes_default #include #ifdef HAVE_VFORK_H # include #endif /* On some sparc systems, changes by the child to local and incoming argument registers are propagated back to the parent. The compiler is told about this with #include , but some compilers (e.g. gcc -O) don't grok . Test for this by using a static variable whose address is put into a register that is clobbered by the vfork. */ static void #ifdef __cplusplus sparc_address_test (int arg) # else sparc_address_test (arg) int arg; #endif { static pid_t child; if (!child) { child = vfork (); if (child < 0) { perror ("vfork"); _exit(2); } if (!child) { arg = getpid(); write(-1, "", 0); _exit (arg); } } } int main () { pid_t parent = getpid (); pid_t child; sparc_address_test (0); child = vfork (); if (child == 0) { /* Here is another test for sparc vfork register problems. This test uses lots of local variables, at least as many local variables as main has allocated so far including compiler temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should reuse the register of parent for one of the local variables, since it will think that parent can't possibly be used any more in this routine. Assigning to the local variable will thus munge parent in the parent process. */ pid_t p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); /* Convince the compiler that p..p7 are live; otherwise, it might use the same hardware register for all 8 local variables. */ if (p != p1 || p != p2 || p != p3 || p != p4 || p != p5 || p != p6 || p != p7) _exit(1); /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent from child file descriptors. If the child closes a descriptor before it execs or exits, this munges the parent's descriptor as well. Test for this by closing stdout in the child. */ _exit(close(fileno(stdout)) != 0); } else { int status; struct stat st; while (wait(&status) != child) ; return ( /* Was there some problem with vforking? */ child < 0 /* Did the child fail? (This shouldn't happen.) */ || status /* Did the vfork/compiler bug occur? */ || parent != getpid() /* Did the file descriptor bug occur? */ || fstat(fileno(stdout), &st) != 0 ); } } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_vfork_works=yes else ac_cv_func_vfork_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 $as_echo "$ac_cv_func_vfork_works" >&6; } fi; if test "x$ac_cv_func_fork_works" = xcross; then ac_cv_func_vfork_works=$ac_cv_func_vfork { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} fi if test "x$ac_cv_func_vfork_works" = xyes; then $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h else $as_echo "#define vfork fork" >>confdefs.h fi if test "x$ac_cv_func_fork_works" = xyes; then $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h fi for ac_header in stdlib.h do : ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" if test "x$ac_cv_header_stdlib_h" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_STDLIB_H 1 _ACEOF fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 $as_echo_n "checking for GNU libc compatible malloc... " >&6; } if ${ac_cv_func_malloc_0_nonnull+:} false; then : $as_echo_n "(cached) " >&6 else if test "$cross_compiling" = yes; then : ac_cv_func_malloc_0_nonnull=no else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #if defined STDC_HEADERS || defined HAVE_STDLIB_H # include #else char *malloc (); #endif int main () { return ! malloc (0); ; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : ac_cv_func_malloc_0_nonnull=yes else ac_cv_func_malloc_0_nonnull=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } if test $ac_cv_func_malloc_0_nonnull = yes; then : $as_echo "#define HAVE_MALLOC 1" >>confdefs.h else $as_echo "#define HAVE_MALLOC 0" >>confdefs.h case " $LIBOBJS " in *" malloc.$ac_objext "* ) ;; *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;; esac $as_echo "#define malloc rpl_malloc" >>confdefs.h fi ac_fn_c_check_func "$LINENO" "dup2" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: dup2" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: gethostbyname" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: memset" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: mkdir" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: rmdir" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: setenv" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: setlocale" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: socket" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: strchr" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: strcspn" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: strdup" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: strerror" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: strncasecmp" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "strndup" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: strndup" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_func" if test "x$ac_cv_func_func" = xyes; then : else as_fn_error $? "Missing required function: strstr" "$LINENO" 5 fi ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" if test "x$ac_cv_func_openpty" = xyes; then : else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 $as_echo_n "checking for openpty in -lutil... " >&6; } if ${ac_cv_lib_util_openpty+:} false; then : $as_echo_n "(cached) " >&6 else ac_check_lib_save_LIBS=$LIBS LIBS="-lutil $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ /* Override any GCC internal prototype to avoid an error. Use char because int might match the return type of a GCC builtin and then its argument prototype would still apply. */ #ifdef __cplusplus extern "C" #endif char openpty (); int main () { return openpty (); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : ac_cv_lib_util_openpty=yes else ac_cv_lib_util_openpty=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS=$ac_check_lib_save_LIBS fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 $as_echo "$ac_cv_lib_util_openpty" >&6; } if test "x$ac_cv_lib_util_openpty" = xyes; then : cat >>confdefs.h <<_ACEOF #define HAVE_LIBUTIL 1 _ACEOF LIBS="-lutil $LIBS" else as_fn_error $? "Missing required function: openpty" "$LINENO" 5 fi fi # Additional libraries mkdir_p="$MKDIR_P" case $mkdir_p in [\\/$]* | ?:[\\/]*) ;; */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 $as_echo_n "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. if test "${enable_nls+set}" = set; then : enableval=$enable_nls; USE_NLS=$enableval else USE_NLS=yes fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } GETTEXT_MACRO_VERSION=0.18 # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" ;; esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 $as_echo "$MSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_GMSGFMT+:} false; then : $as_echo_n "(cached) " >&6 else case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" ;; esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 $as_echo "$GMSGFMT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_XGETTEXT+:} false; then : $as_echo_n "(cached) " >&6 else case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" ;; esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 $as_echo "$XGETTEXT" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi rm -f messages.po case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_MSGMERGE+:} false; then : $as_echo_n "(cached) " >&6 else case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in $PATH; do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&5 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" ;; esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 $as_echo "$MSGMERGE" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -n "$localedir" || localedir='${datadir}/locale' test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= ac_config_commands="$ac_config_commands po-directories" if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" # Make sure we can run config.sub. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 $as_echo_n "checking build system type... " >&6; } if ${ac_cv_build+:} false; then : $as_echo_n "(cached) " >&6 else ac_build_alias=$build_alias test "x$ac_build_alias" = x && ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` test "x$ac_build_alias" = x && as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 $as_echo "$ac_cv_build" >&6; } case $ac_cv_build in *-*-*) ;; *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; esac build=$ac_cv_build ac_save_IFS=$IFS; IFS='-' set x $ac_cv_build shift build_cpu=$1 build_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: build_os=$* IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 $as_echo_n "checking host system type... " >&6; } if ${ac_cv_host+:} false; then : $as_echo_n "(cached) " >&6 else if test "x$host_alias" = x; then ac_cv_host=$ac_cv_build else ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 $as_echo "$ac_cv_host" >&6; } case $ac_cv_host in *-*-*) ;; *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; esac host=$ac_cv_host ac_save_IFS=$IFS; IFS='-' set x $ac_cv_host shift host_cpu=$1 host_vendor=$2 shift; shift # Remember, the first character of IFS is used to create $*, # except with old shells: host_os=$* IFS=$ac_save_IFS case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac # Check whether --with-gnu-ld was given. if test "${with_gnu_ld+set}" = set; then : withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes else with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 $as_echo_n "checking for ld used by GCC... " >&6; } case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [\\/]* | [A-Za-z]:[\\/]*) re_direlt='/[^/][^/]*/\.\./' # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 $as_echo_n "checking for GNU ld... " >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 $as_echo_n "checking for non-GNU ld... " >&6; } fi if ${acl_cv_path_LD+:} false; then : $as_echo_n "(cached) " >&6 else if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi fi LD="$acl_cv_path_LD" if test -n "$LD"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 $as_echo "$LD" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } if ${acl_cv_prog_gnu_ld+:} false; then : $as_echo_n "(cached) " >&6 else # I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 &5 $as_echo "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 $as_echo_n "checking for shared library run path origin... " >&6; } if ${acl_cv_rpath+:} false; then : $as_echo_n "(cached) " >&6 else CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 $as_echo "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. if test "${enable_rpath+set}" = set; then : enableval=$enable_rpath; : else enable_rpath=yes fi acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 $as_echo_n "checking for 64-bit host... " >&6; } if ${gl_cv_solaris_64bit+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #ifdef _LP64 sixtyfour bits #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | $EGREP "sixtyfour bits" >/dev/null 2>&1; then : gl_cv_solaris_64bit=yes else gl_cv_solaris_64bit=no fi rm -f conftest* fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 $as_echo "$gl_cv_solaris_64bit" >&6; } if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. if test "${with_libiconv_prefix+set}" = set; then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBICONV= LTLIBICONV= INCICONV= LIBICONV_PREFIX= HAVE_LIBICONV= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='iconv ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" else LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'iconv'; then LIBICONV_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBICONV; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" ;; esac done fi else LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFPreferencesCopyAppValue=yes else gt_cv_func_CFPreferencesCopyAppValue=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int main () { CFLocaleCopyCurrent(); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : gt_cv_func_CFLocaleCopyCurrent=yes else gt_cv_func_CFLocaleCopyCurrent=no fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$gt_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } if test $gt_cv_func_CFLocaleCopyCurrent = yes; then $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h fi INTL_MACOSX_LIBS= if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi LIBINTL= LTLIBINTL= POSUB= case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 $as_echo_n "checking for GNU gettext in libc... " >&6; } if eval \${$gt_func_gnugettext_libc+:} false; then : $as_echo_n "(cached) " >&6 else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libc=yes" else eval "$gt_func_gnugettext_libc=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi eval ac_res=\$$gt_func_gnugettext_libc { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then am_save_CPPFLAGS="$CPPFLAGS" for element in $INCICONV; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 $as_echo_n "checking for iconv... " >&6; } if ${am_cv_func_iconv+:} false; then : $as_echo_n "(cached) " >&6 else am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd); ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : am_cv_lib_iconv=yes am_cv_func_iconv=yes fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext LIBS="$am_save_LIBS" fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 $as_echo "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 $as_echo_n "checking for working iconv... " >&6; } if ${am_cv_func_iconv_works+:} false; then : $as_echo_n "(cached) " >&6 else am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi if test "$cross_compiling" = yes; then : case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; } _ACEOF if ac_fn_c_try_run "$LINENO"; then : am_cv_func_iconv_works=yes else am_cv_func_iconv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi LIBS="$am_save_LIBS" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 $as_echo "$am_cv_func_iconv_works" >&6; } case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then $as_echo "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 $as_echo_n "checking how to link with libiconv... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 $as_echo "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi use_additional=yes acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. if test "${with_libintl_prefix+set}" = set; then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi fi LIBINTL= LTLIBINTL= INCINTL= LIBINTL_PREFIX= HAVE_LIBINTL= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='intl ' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" else : fi else found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi if test "$acl_hardcode_direct" = yes; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" else LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" fi fi additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = 'intl'; then LIBINTL_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INCINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" fi fi fi fi fi if test -n "$found_la"; then save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIBINTL; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" ;; esac done fi else LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" else for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then for found_dir in $ltrpathdirs; do LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" done fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 $as_echo_n "checking for GNU gettext in libintl... " >&6; } if eval \${$gt_func_gnugettext_libintl+:} false; then : $as_echo_n "(cached) " >&6 else gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : eval "$gt_func_gnugettext_libintl=yes" else eval "$gt_func_gnugettext_libintl=no" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); int main () { bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") ; return 0; } _ACEOF if ac_fn_c_try_link "$LINENO"; then : LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" fi rm -f core conftest.err conftest.$ac_objext \ conftest$ac_exeext conftest.$ac_ext fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 $as_echo "$ac_res" >&6; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else LIBINTL= LTLIBINTL= INCINTL= fi if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then $as_echo "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 $as_echo_n "checking whether to use NLS... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 $as_echo "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 $as_echo_n "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 $as_echo "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 $as_echo_n "checking how to link with libintl... " >&6; } { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 $as_echo "$LIBINTL" >&6; } for element in $INCINTL; do haveit= for x in $CPPFLAGS; do acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" eval x=\"$x\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" fi done fi $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h fi POSUB=po fi INTLLIBS="$LIBINTL" if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then if test -n "$ac_tool_prefix"; then # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi PKG_CONFIG=$ac_cv_path_PKG_CONFIG if test -n "$PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 $as_echo "$PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi fi if test -z "$ac_cv_path_PKG_CONFIG"; then ac_pt_PKG_CONFIG=$PKG_CONFIG # Extract the first word of "pkg-config", so it can be a program name with args. set dummy pkg-config; ac_word=$2 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 $as_echo_n "checking for $ac_word... " >&6; } if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : $as_echo_n "(cached) " >&6 else case $ac_pt_PKG_CONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 break 2 fi done done IFS=$as_save_IFS ;; esac fi ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG if test -n "$ac_pt_PKG_CONFIG"; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 $as_echo "$ac_pt_PKG_CONFIG" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } fi if test "x$ac_pt_PKG_CONFIG" = x; then PKG_CONFIG="" else case $cross_compiling:$ac_tool_warned in yes:) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} ac_tool_warned=yes ;; esac PKG_CONFIG=$ac_pt_PKG_CONFIG fi else PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi fi if test -n "$PKG_CONFIG"; then _pkg_min_version=0.9.0 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } PKG_CONFIG="" fi fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 $as_echo_n "checking for GLIB... " >&6; } if test -n "$GLIB_CFLAGS"; then pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GLIB_LIBS"; then pkg_cv_GLIB_LIBS="$GLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6\""; } >&5 ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>&1` else GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GLIB_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6) were not met: $GLIB_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GLIB_CFLAGS and GLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GLIB_CFLAGS and GLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS GLIB_LIBS=$pkg_cv_GLIB_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 $as_echo_n "checking for GTK... " >&6; } if test -n "$GTK_CFLAGS"; then pkg_cv_GTK_CFLAGS="$GTK_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.6" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$GTK_LIBS"; then pkg_cv_GTK_LIBS="$GTK_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.6\""; } >&5 ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.6") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.6" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.6" 2>&1` else GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.6" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$GTK_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (gtk+-2.0 >= 2.6) were not met: $GTK_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables GTK_CFLAGS and GTK_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables GTK_CFLAGS and GTK_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else GTK_CFLAGS=$pkg_cv_GTK_CFLAGS GTK_LIBS=$pkg_cv_GTK_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAGLIB" >&5 $as_echo_n "checking for TAGLIB... " >&6; } if test -n "$TAGLIB_CFLAGS"; then pkg_cv_TAGLIB_CFLAGS="$TAGLIB_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"taglib\""; } >&5 ($PKG_CONFIG --exists --print-errors "taglib") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_TAGLIB_CFLAGS=`$PKG_CONFIG --cflags "taglib" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test -n "$TAGLIB_LIBS"; then pkg_cv_TAGLIB_LIBS="$TAGLIB_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"taglib\""; } >&5 ($PKG_CONFIG --exists --print-errors "taglib") 2>&5 ac_status=$? $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; then pkg_cv_TAGLIB_LIBS=`$PKG_CONFIG --libs "taglib" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes fi else pkg_failed=untried fi if test $pkg_failed = yes; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then _pkg_short_errors_supported=yes else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then TAGLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "taglib" 2>&1` else TAGLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "taglib" 2>&1` fi # Put the nasty error message in config.log where it belongs echo "$TAGLIB_PKG_ERRORS" >&5 as_fn_error $? "Package requirements (taglib) were not met: $TAGLIB_PKG_ERRORS Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix. Alternatively, you may set the environment variables TAGLIB_CFLAGS and TAGLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details." "$LINENO" 5 elif test $pkg_failed = untried; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 $as_echo "no" >&6; } { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. Alternatively, you may set the environment variables TAGLIB_CFLAGS and TAGLIB_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details. To get pkg-config, see . See \`config.log' for more details" "$LINENO" 5; } else TAGLIB_CFLAGS=$pkg_cv_TAGLIB_CFLAGS TAGLIB_LIBS=$pkg_cv_TAGLIB_LIBS { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } fi # --disable-deprecated switch for GTK2 purification # Check whether --enable-deprecated was given. if test "${enable_deprecated+set}" = set; then : enableval=$enable_deprecated; GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED" fi ac_config_files="$ac_config_files Makefile ripperX.pc po/Makefile.in plugins/Makefile src/Makefile" cat >confcache <<\_ACEOF # This file is a shell script that caches the results of configure # tests run on this system so they can be shared between configure # scripts and configure runs, see configure's option --config-cache. # It is not useful on other systems. If it contains results you don't # want to keep, you may remove or edit it. # # config.status only pays attention to the cache file if you give it # the --recheck option to rerun configure. # # `ac_cv_env_foo' variables (set or unset) will be overridden when # loading this file, other *unset* `ac_cv_foo' will be assigned the # following values. _ACEOF # The following way of writing the cache mishandles newlines in values, # but we know of no workaround that is simple, portable, and efficient. # So, we kill variables containing newlines. # Ultrix sh set writes to stderr and can't be redirected directly, # and sets the high bit in the cache file unless we assign to the vars. ( for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do eval ac_val=\$$ac_var case $ac_val in #( *${as_nl}*) case $ac_var in #( *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; esac case $ac_var in #( _ | IFS | as_nl) ;; #( BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( *) { eval $ac_var=; unset $ac_var;} ;; esac ;; esac done (set) 2>&1 | case $as_nl`(ac_space=' '; set) 2>&1` in #( *${as_nl}ac_space=\ *) # `set' does not quote correctly, so add quotes: double-quote # substitution turns \\\\ into \\, and sed turns \\ into \. sed -n \ "s/'/'\\\\''/g; s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" ;; #( *) # `set' quotes correctly as required by POSIX, so do not add quotes. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" ;; esac | sort ) | sed ' /^ac_cv_env_/b end t clear :clear s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ t end s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ :end' >>confcache if diff "$cache_file" confcache >/dev/null 2>&1; then :; else if test -w "$cache_file"; then if test "x$cache_file" != "x/dev/null"; then { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 $as_echo "$as_me: updating cache $cache_file" >&6;} if test ! -f "$cache_file" || test -h "$cache_file"; then cat confcache >"$cache_file" else case $cache_file in #( */* | ?:*) mv -f confcache "$cache_file"$$ && mv -f "$cache_file"$$ "$cache_file" ;; #( *) mv -f confcache "$cache_file" ;; esac fi fi else { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} fi fi rm -f confcache test "x$prefix" = xNONE && prefix=$ac_default_prefix # Let make expand exec_prefix. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' DEFS=-DHAVE_CONFIG_H ac_libobjs= ac_ltlibobjs= U= for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue # 1. Remove the extension, and $U if already installed. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' ac_i=`$as_echo "$ac_i" | sed "$ac_script"` # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR # will be set to the directory where LIBOBJS objects are built. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' done LIBOBJS=$ac_libobjs LTLIBOBJS=$ac_ltlibobjs { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 $as_echo_n "checking that generated files are newer than configure... " >&6; } if test -n "$am_sleep_pid"; then # Hide warnings about reused PIDs. wait $am_sleep_pid 2>/dev/null fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 $as_echo "done" >&6; } if test -n "$EXEEXT"; then am__EXEEXT_TRUE= am__EXEEXT_FALSE='#' else am__EXEEXT_TRUE='#' am__EXEEXT_FALSE= fi if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then as_fn_error $? "conditional \"AMDEP\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCC\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 fi : "${CONFIG_STATUS=./config.status}" ac_write_fail=0 ac_clean_files_save=$ac_clean_files ac_clean_files="$ac_clean_files $CONFIG_STATUS" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} as_write_fail=0 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 #! $SHELL # Generated by $as_me. # Run this file to recreate the current configuration. # Compiler output produced by configure, useful for debugging # configure, is in config.log if it exists. debug=false ac_cs_recheck=false ac_cs_silent=false SHELL=\${CONFIG_SHELL-$SHELL} export SHELL _ASEOF cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 ## -------------------- ## ## M4sh Initialization. ## ## -------------------- ## # Be more Bourne compatible DUALCASE=1; export DUALCASE # for MKS sh if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : emulate sh NULLCMD=: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which # is contrary to our usage. Disable this feature. alias -g '${1+"$@"}'='"$@"' setopt NO_GLOB_SUBST else case `(set -o) 2>/dev/null` in #( *posix*) : set -o posix ;; #( *) : ;; esac fi as_nl=' ' export as_nl # Printing a long string crashes Solaris 7 /usr/bin/printf. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo # Prefer a ksh shell builtin over an external printf program on Solaris, # but without wasting forks for bash or zsh. if test -z "$BASH_VERSION$ZSH_VERSION" \ && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='print -r --' as_echo_n='print -rn --' elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then as_echo='printf %s\n' as_echo_n='printf %s' else if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' as_echo_n='/usr/ucb/echo -n' else as_echo_body='eval expr "X$1" : "X\\(.*\\)"' as_echo_n_body='eval arg=$1; case $arg in #( *"$as_nl"*) expr "X$arg" : "X\\(.*\\)$as_nl"; arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; esac; expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" ' export as_echo_n_body as_echo_n='sh -c $as_echo_n_body as_echo' fi export as_echo_body as_echo='sh -c $as_echo_body as_echo' fi # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then PATH_SEPARATOR=: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || PATH_SEPARATOR=';' } fi # IFS # We need space, tab and new line, in precisely that order. Quoting is # there to prevent editors from complaining about space-tab. # (If _AS_PATH_WALK were called with IFS unset, it would disable word # splitting by setting IFS to empty value.) IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR for as_dir in $PATH do IFS=$as_save_IFS test -z "$as_dir" && as_dir=. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break done IFS=$as_save_IFS ;; esac # We did not find ourselves, most probably we were run as `sh COMMAND' # in which case we are not to be found in the path. if test "x$as_myself" = x; then as_myself=$0 fi if test ! -f "$as_myself"; then $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 exit 1 fi # Unset variables that we do not need and which cause bugs (e.g. in # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" # suppresses any "Segmentation fault" message there. '((' could # trigger a bug in pdksh 5.2.14. for as_var in BASH_ENV ENV MAIL MAILPATH do eval test x\${$as_var+set} = xset \ && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : done PS1='$ ' PS2='> ' PS4='+ ' # NLS nuisances. LC_ALL=C export LC_ALL LANGUAGE=C export LANGUAGE # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH # as_fn_error STATUS ERROR [LINENO LOG_FD] # ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the # script with STATUS, using 1 if that was 0. as_fn_error () { as_status=$1; test $as_status -eq 0 && as_status=1 if test "$4"; then as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error # as_fn_set_status STATUS # ----------------------- # Set $? to STATUS, without forking. as_fn_set_status () { return $1 } # as_fn_set_status # as_fn_exit STATUS # ----------------- # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. as_fn_exit () { set +e as_fn_set_status $1 exit $1 } # as_fn_exit # as_fn_unset VAR # --------------- # Portably unset VAR. as_fn_unset () { { eval $1=; unset $1;} } as_unset=as_fn_unset # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take # advantage of any shell optimizations that allow amortized linear growth over # repeated appends, instead of the typical quadratic growth present in naive # implementations. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : eval 'as_fn_append () { eval $1+=\$2 }' else as_fn_append () { eval $1=\$$1\$2 } fi # as_fn_append # as_fn_arith ARG... # ------------------ # Perform arithmetic evaluation on the ARGs, and store the result in the # global $as_val. Take advantage of shells that can avoid forks. The arguments # must be portable across $(()) and expr. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : eval 'as_fn_arith () { as_val=$(( $* )) }' else as_fn_arith () { as_val=`expr "$@" || test $? -eq 1` } fi # as_fn_arith if expr a : '\(a\)' >/dev/null 2>&1 && test "X`expr 00001 : '.*\(...\)'`" = X001; then as_expr=expr else as_expr=false fi if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then as_basename=basename else as_basename=false fi if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then as_dirname=dirname else as_dirname=false fi as_me=`$as_basename -- "$0" || $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ X"$0" : 'X\(//\)$' \| \ X"$0" : 'X\(/\)' \| . 2>/dev/null || $as_echo X/"$0" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q } /^X\/\(\/\/\)$/{ s//\1/ q } /^X\/\(\/\).*/{ s//\1/ q } s/.*/./; q'` # Avoid depending upon Character Ranges. as_cr_letters='abcdefghijklmnopqrstuvwxyz' as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' as_cr_Letters=$as_cr_letters$as_cr_LETTERS as_cr_digits='0123456789' as_cr_alnum=$as_cr_Letters$as_cr_digits ECHO_C= ECHO_N= ECHO_T= case `echo -n x` in #((((( -n*) case `echo 'xy\c'` in *c*) ECHO_T=' ';; # ECHO_T is single tab character. xy) ECHO_C='\c';; *) echo `echo ksh88 bug on AIX 6.1` > /dev/null ECHO_T=' ';; esac;; *) ECHO_N='-n';; esac rm -f conf$$ conf$$.exe conf$$.file if test -d conf$$.dir; then rm -f conf$$.dir/conf$$.file else rm -f conf$$.dir mkdir conf$$.dir 2>/dev/null fi if (echo >conf$$.file) 2>/dev/null; then if ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_s='ln -s' # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else as_ln_s='cp -pR' fi else as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null # as_fn_mkdir_p # ------------- # Create "$as_dir" as a directory, including parents if necessary. as_fn_mkdir_p () { case $as_dir in #( -*) as_dir=./$as_dir;; esac test -d "$as_dir" || eval $as_mkdir_p || { as_dirs= while :; do case $as_dir in #( *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( *) as_qdir=$as_dir;; esac as_dirs="'$as_qdir' $as_dirs" as_dir=`$as_dirname -- "$as_dir" || $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$as_dir" : 'X\(//\)[^/]' \| \ X"$as_dir" : 'X\(//\)$' \| \ X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$as_dir" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p if mkdir -p . 2>/dev/null; then as_mkdir_p='mkdir -p "$as_dir"' else test -d ./-p && rmdir ./-p as_mkdir_p=false fi # as_fn_executable_p FILE # ----------------------- # Test if FILE is an executable regular file. as_fn_executable_p () { test -f "$1" && test -x "$1" } # as_fn_executable_p as_test_x='test -x' as_executable_p=as_fn_executable_p # Sed expression to map a string onto a valid CPP name. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" # Sed expression to map a string onto a valid variable name. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" exec 6>&1 ## ----------------------------------- ## ## Main body of $CONFIG_STATUS script. ## ## ----------------------------------- ## _ASEOF test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Save the log message, to keep $0 and so on meaningful, and to # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" This file was extended by ripperX $as_me 2.8.0, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS CONFIG_LINKS = $CONFIG_LINKS CONFIG_COMMANDS = $CONFIG_COMMANDS $ $0 $@ on `(hostname || uname -n) 2>/dev/null | sed 1q` " _ACEOF case $ac_config_files in *" "*) set x $ac_config_files; shift; ac_config_files=$*;; esac case $ac_config_headers in *" "*) set x $ac_config_headers; shift; ac_config_headers=$*;; esac cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # Files that config.status was made for. config_files="$ac_config_files" config_headers="$ac_config_headers" config_commands="$ac_config_commands" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 ac_cs_usage="\ \`$as_me' instantiates files and other configuration actions from templates according to the current configuration. Unless the files and actions are specified as TAGs, all are instantiated by default. Usage: $0 [OPTION]... [TAG]... -h, --help print this help, then exit -V, --version print version number and configuration settings, then exit --config print configuration, then exit -q, --quiet, --silent do not print progress messages -d, --debug don't remove temporary files --recheck update $as_me by reconfiguring in the same conditions --file=FILE[:TEMPLATE] instantiate the configuration file FILE --header=FILE[:TEMPLATE] instantiate the configuration header FILE Configuration files: $config_files Configuration headers: $config_headers Configuration commands: $config_commands Report bugs to ." _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ ripperX config.status 2.8.0 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" Copyright (C) 2012 Free Software Foundation, Inc. This config.status script is free software; the Free Software Foundation gives unlimited permission to copy, distribute and modify it." ac_pwd='$ac_pwd' srcdir='$srcdir' INSTALL='$INSTALL' MKDIR_P='$MKDIR_P' AWK='$AWK' test -n "\$AWK" || AWK=awk _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # The default lists apply if the user does not specify any file. ac_need_defaults=: while test $# != 0 do case $1 in --*=?*) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` ac_shift=: ;; --*=) ac_option=`expr "X$1" : 'X\([^=]*\)='` ac_optarg= ac_shift=: ;; *) ac_option=$1 ac_optarg=$2 ac_shift=shift ;; esac case $ac_option in # Handling of the options. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) ac_cs_recheck=: ;; --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) $as_echo "$ac_cs_version"; exit ;; --config | --confi | --conf | --con | --co | --c ) $as_echo "$ac_cs_config"; exit ;; --debug | --debu | --deb | --de | --d | -d ) debug=: ;; --file | --fil | --fi | --f ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; '') as_fn_error $? "missing file argument" ;; esac as_fn_append CONFIG_FILES " '$ac_optarg'" ac_need_defaults=false;; --header | --heade | --head | --hea ) $ac_shift case $ac_optarg in *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; esac as_fn_append CONFIG_HEADERS " '$ac_optarg'" ac_need_defaults=false;; --he | --h) # Conflict between --help and --header as_fn_error $? "ambiguous option: \`$1' Try \`$0 --help' for more information.";; --help | --hel | -h ) $as_echo "$ac_cs_usage"; exit ;; -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | -silent | --silent | --silen | --sile | --sil | --si | --s) ac_cs_silent=: ;; # This is an error. -*) as_fn_error $? "unrecognized option: \`$1' Try \`$0 --help' for more information." ;; *) as_fn_append ac_config_targets " $1" ac_need_defaults=false ;; esac shift done ac_configure_extra_args= if $ac_cs_silent; then exec 6>/dev/null ac_configure_extra_args="$ac_configure_extra_args --silent" fi _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 if \$ac_cs_recheck; then set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion shift \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 CONFIG_SHELL='$SHELL' export CONFIG_SHELL exec "\$@" fi _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 exec 5>>config.log { echo sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX ## Running $as_me. ## _ASBOX $as_echo "$ac_log" } >&5 _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 # # INIT-COMMANDS # AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" # Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # Handling of arguments. for ac_config_target in $ac_config_targets do case $ac_config_target in "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; "ripperX.pc") CONFIG_FILES="$CONFIG_FILES ripperX.pc" ;; "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; esac done # If the user did not use the arguments to specify the items to instantiate, # then the envvar interface is used. Set only those that are not. # We use the long form for the default assignment because of an extremely # bizarre bug on SunOS 4.1.3. if $ac_need_defaults; then test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands fi # Have a temporary directory for convenience. Make it in the build tree # simply because there is no reason against having it here, and in addition, # creating and moving files from /tmp can sometimes cause problems. # Hook for its removal unless debugging. # Note that there is a small window in which the directory will not be cleaned: # after its creation but before its name has been assigned to `$tmp'. $debug || { tmp= ac_tmp= trap 'exit_status=$? : "${ac_tmp:=$tmp}" { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status ' 0 trap 'as_fn_exit 1' 1 2 13 15 } # Create a (secure) tmp directory for tmp files. { tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && test -d "$tmp" } || { tmp=./conf$$-$RANDOM (umask 077 && mkdir "$tmp") } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 ac_tmp=$tmp # Set up the scripts for CONFIG_FILES section. # No need to generate them if there are no CONFIG_FILES. # This happens for instance with `./config.status config.h'. if test -n "$CONFIG_FILES"; then ac_cr=`echo X | tr X '\015'` # On cygwin, bash can eat \r inside `` if the user requested igncr. # But we know of no other shell where ac_cr would be empty at this # point, so we can use a bashism as a fallback. if test "x$ac_cr" = x; then eval ac_cr=\$\'\\r\' fi ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' /dev/null` if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then ac_cs_awk_cr='\\r' else ac_cs_awk_cr=$ac_cr fi echo 'BEGIN {' >"$ac_tmp/subs1.awk" && _ACEOF { echo "cat >conf$$subs.awk <<_ACEOF" && echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && echo "_ACEOF" } >conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` ac_delim='%!_!# ' for ac_last_try in false false false false false :; do . ./conf$$subs.sh || as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` if test $ac_delim_n = $ac_delim_num; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done rm -f conf$$subs.sh cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && _ACEOF sed -n ' h s/^/S["/; s/!.*/"]=/ p g s/^[^!]*!// :repl t repl s/'"$ac_delim"'$// t delim :nl h s/\(.\{148\}\)..*/\1/ t more1 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ p n b repl :more1 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t nl :delim h s/\(.\{148\}\)..*/\1/ t more2 s/["\\]/\\&/g; s/^/"/; s/$/"/ p b :more2 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ p g s/.\{148\}// t delim ' >$CONFIG_STATUS || ac_write_fail=1 rm -f conf$$subs.awk cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 _ACAWK cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && for (key in S) S_is_set[key] = 1 FS = "" } { line = $ 0 nfields = split(line, field, "@") substed = 0 len = length(field[1]) for (i = 2; i < nfields; i++) { key = field[i] keylen = length(key) if (S_is_set[key]) { value = S[key] line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) len += length(value) + length(field[++i]) substed = 1 } else len += 1 + keylen } print line } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" else cat fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 _ACEOF # VPATH may cause trouble with some makes, so we remove sole $(srcdir), # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and # trailing colons and then remove the whole line if VPATH becomes empty # (actually we leave an empty line to preserve line numbers). if test "x$srcdir" = x.; then ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ h s/// s/^/:/ s/[ ]*$/:/ s/:\$(srcdir):/:/g s/:\${srcdir}:/:/g s/:@srcdir@:/:/g s/^:*// s/:*$// x s/\(=[ ]*\).*/\1/ G s/\n// s/^[^=]*=[ ]*$// }' fi cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 fi # test -n "$CONFIG_FILES" # Set up the scripts for CONFIG_HEADERS section. # No need to generate them if there are no CONFIG_HEADERS. # This happens for instance with `./config.status Makefile'. if test -n "$CONFIG_HEADERS"; then cat >"$ac_tmp/defines.awk" <<\_ACAWK || BEGIN { _ACEOF # Transform confdefs.h into an awk script `defines.awk', embedded as # here-document in config.status, that substitutes the proper values into # config.h.in to produce config.h. # Create a delimiter string that does not exist in confdefs.h, to ease # handling of long lines. ac_delim='%!_!# ' for ac_last_try in false false :; do ac_tt=`sed -n "/$ac_delim/p" confdefs.h` if test -z "$ac_tt"; then break elif $ac_last_try; then as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 else ac_delim="$ac_delim!$ac_delim _$ac_delim!! " fi done # For the awk script, D is an array of macro values keyed by name, # likewise P contains macro parameters if any. Preserve backslash # newline sequences. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* sed -n ' s/.\{148\}/&'"$ac_delim"'/g t rset :rset s/^[ ]*#[ ]*define[ ][ ]*/ / t def d :def s/\\$// t bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3"/p s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p d :bsnl s/["\\]/\\&/g s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ D["\1"]=" \3\\\\\\n"\\/p t cont s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p t cont d :cont n s/.\{148\}/&'"$ac_delim"'/g t clear :clear s/\\$// t bsnlc s/["\\]/\\&/g; s/^/"/; s/$/"/p d :bsnlc s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p b cont ' >$CONFIG_STATUS || ac_write_fail=1 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 for (key in D) D_is_set[key] = 1 FS = "" } /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { line = \$ 0 split(line, arg, " ") if (arg[1] == "#") { defundef = arg[2] mac1 = arg[3] } else { defundef = substr(arg[1], 2) mac1 = arg[2] } split(mac1, mac2, "(") #) macro = mac2[1] prefix = substr(line, 1, index(line, defundef) - 1) if (D_is_set[macro]) { # Preserve the white space surrounding the "#". print prefix "define", macro P[macro] D[macro] next } else { # Replace #undef with comments. This is necessary, for example, # in the case of _POSIX_SOURCE, which is predefined and required # on some systems where configure will not decide to define it. if (defundef == "undef") { print "/*", prefix defundef, macro, "*/" next } } } { print } _ACAWK _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 fi # test -n "$CONFIG_HEADERS" eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" shift for ac_tag do case $ac_tag in :[FHLC]) ac_mode=$ac_tag; continue;; esac case $ac_mode$ac_tag in :[FHL]*:*);; :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; :[FH]-) ac_tag=-:-;; :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; esac ac_save_IFS=$IFS IFS=: set x $ac_tag IFS=$ac_save_IFS shift ac_file=$1 shift case $ac_mode in :L) ac_source=$1;; :[FH]) ac_file_inputs= for ac_f do case $ac_f in -) ac_f="$ac_tmp/stdin";; *) # Look for the file first in the build tree, then in the source tree # (if the path is not absolute). The absolute path cannot be DOS-style, # because $ac_f cannot contain `:'. test -f "$ac_f" || case $ac_f in [\\/$]*) false;; *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; esac || as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; esac case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac as_fn_append ac_file_inputs " '$ac_f'" done # Let's still pretend it is `configure' which instantiates (i.e., don't # use $as_me), people would be surprised to read: # /* config.h. Generated by config.status. */ configure_input='Generated from '` $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' `' by configure.' if test x"$ac_file" != x-; then configure_input="$ac_file. $configure_input" { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 $as_echo "$as_me: creating $ac_file" >&6;} fi # Neutralize special characters interpreted by sed in replacement strings. case $configure_input in #( *\&* | *\|* | *\\* ) ac_sed_conf_input=`$as_echo "$configure_input" | sed 's/[\\\\&|]/\\\\&/g'`;; #( *) ac_sed_conf_input=$configure_input;; esac case $ac_tag in *:-:* | *:-) cat >"$ac_tmp/stdin" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; esac ;; esac ac_dir=`$as_dirname -- "$ac_file" || $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$ac_file" : 'X\(//\)[^/]' \| \ X"$ac_file" : 'X\(//\)$' \| \ X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$ac_file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir="$ac_dir"; as_fn_mkdir_p ac_builddir=. case "$ac_dir" in .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` # A ".." for each directory in $ac_dir_suffix. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` case $ac_top_builddir_sub in "") ac_top_builddir_sub=. ac_top_build_prefix= ;; *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; esac ;; esac ac_abs_top_builddir=$ac_pwd ac_abs_builddir=$ac_pwd$ac_dir_suffix # for backward compatibility: ac_top_builddir=$ac_top_build_prefix case $srcdir in .) # We are building in place. ac_srcdir=. ac_top_srcdir=$ac_top_builddir_sub ac_abs_top_srcdir=$ac_pwd ;; [\\/]* | ?:[\\/]* ) # Absolute name. ac_srcdir=$srcdir$ac_dir_suffix; ac_top_srcdir=$srcdir ac_abs_top_srcdir=$srcdir ;; *) # Relative name. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix ac_top_srcdir=$ac_top_build_prefix$srcdir ac_abs_top_srcdir=$ac_pwd/$srcdir ;; esac ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix case $ac_mode in :F) # # CONFIG_FILE # case $INSTALL in [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; esac ac_MKDIR_P=$MKDIR_P case $MKDIR_P in [\\/$]* | ?:[\\/]* ) ;; */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; esac _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # If the template does not know about datarootdir, expand it. # FIXME: This hack should be removed a few years after 2.60. ac_datarootdir_hack=; ac_datarootdir_seen= ac_sed_dataroot=' /datarootdir/ { p q } /@datadir@/p /@docdir@/p /@infodir@/p /@localedir@/p /@mandir@/p' case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in *datarootdir*) ac_datarootdir_seen=yes;; *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_datarootdir_hack=' s&@datadir@&$datadir&g s&@docdir@&$docdir&g s&@infodir@&$infodir&g s&@localedir@&$localedir&g s&@mandir@&$mandir&g s&\\\${datarootdir}&$datarootdir&g' ;; esac _ACEOF # Neutralize VPATH when `$srcdir' = `.'. # Shell code in configure.ac might set extrasub. # FIXME: do we really want to maintain this feature? cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_sed_extra="$ac_vpsub $extrasub _ACEOF cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 :t /@[a-zA-Z_][a-zA-Z_0-9]*@/!b s|@configure_input@|$ac_sed_conf_input|;t t s&@top_builddir@&$ac_top_builddir_sub&;t t s&@top_build_prefix@&$ac_top_build_prefix&;t t s&@srcdir@&$ac_srcdir&;t t s&@abs_srcdir@&$ac_abs_srcdir&;t t s&@top_srcdir@&$ac_top_srcdir&;t t s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t s&@builddir@&$ac_builddir&;t t s&@abs_builddir@&$ac_abs_builddir&;t t s&@abs_top_builddir@&$ac_abs_top_builddir&;t t s&@INSTALL@&$ac_INSTALL&;t t s&@MKDIR_P@&$ac_MKDIR_P&;t t $ac_datarootdir_hack " eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ "$ac_tmp/out"`; test -z "$ac_out"; } && { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&5 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' which seems to be undefined. Please make sure it is defined" >&2;} rm -f "$ac_tmp/stdin" case $ac_file in -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; esac \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; :H) # # CONFIG_HEADER # if test x"$ac_file" != x-; then { $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" } >"$ac_tmp/config.h" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 $as_echo "$as_me: $ac_file is unchanged" >&6;} else rm -f "$ac_file" mv "$ac_tmp/config.h" "$ac_file" \ || as_fn_error $? "could not create $ac_file" "$LINENO" 5 fi else $as_echo "/* $configure_input */" \ && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ || as_fn_error $? "could not create -" "$LINENO" 5 fi # Compute "$ac_file"'s index in $config_headers. _am_arg="$ac_file" _am_stamp_count=1 for _am_header in $config_headers :; do case $_am_header in $_am_arg | $_am_arg:* ) break ;; * ) _am_stamp_count=`expr $_am_stamp_count + 1` ;; esac done echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$_am_arg" : 'X\(//\)[^/]' \| \ X"$_am_arg" : 'X\(//\)$' \| \ X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$_am_arg" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'`/stamp-h$_am_stamp_count ;; :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 $as_echo "$as_me: executing $ac_file commands" >&6;} ;; esac case $ac_file$ac_mode in "depfiles":C) test x"$AMDEP_TRUE" != x"" || { # Older Autoconf quotes --file arguments for eval, but not when files # are listed without --file. Let's play safe and only enable the eval # if we detect the quoting. case $CONFIG_FILES in *\'*) eval set x "$CONFIG_FILES" ;; *) set x $CONFIG_FILES ;; esac shift for mf do # Strip MF so we end up with the name of the file. mf=`echo "$mf" | sed -e 's/:.*$//'` # Check whether this is an Automake generated Makefile or not. # We used to match only the files named 'Makefile.in', but # some people rename them; so instead we look at the file content. # Grep'ing the first line is not enough: some people post-process # each Makefile.in and add a new line on top of each file to say so. # Grep'ing the whole file is not good either: AIX grep has a line # limit of 2048, but all sed's we know have understand at least 4000. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then dirpart=`$as_dirname -- "$mf" || $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$mf" : 'X\(//\)[^/]' \| \ X"$mf" : 'X\(//\)$' \| \ X"$mf" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` else continue fi # Extract the definition of DEPDIR, am__include, and am__quote # from the Makefile without running 'make'. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` test -z "$DEPDIR" && continue am__include=`sed -n 's/^am__include = //p' < "$mf"` test -z "$am__include" && continue am__quote=`sed -n 's/^am__quote = //p' < "$mf"` # Find all dependency output files, they are included files with # $(DEPDIR) in their names. We invoke sed twice because it is the # simplest approach to changing $(DEPDIR) to its actual value in the # expansion. for file in `sed -n " s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do # Make sure the directory exists. test -f "$dirpart/$file" && continue fdir=`$as_dirname -- "$file" || $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$file" : 'X\(//\)[^/]' \| \ X"$file" : 'X\(//\)$' \| \ X"$file" : 'X\(/\)' \| . 2>/dev/null || $as_echo X"$file" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q } /^X\(\/\/\)[^/].*/{ s//\1/ q } /^X\(\/\/\)$/{ s//\1/ q } /^X\(\/\).*/{ s//\1/ q } s/.*/./; q'` as_dir=$dirpart/$fdir; as_fn_mkdir_p # echo "creating $dirpart/$file" echo '# dummy' > "$dirpart/$file" done done } ;; "po-directories":C) for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done ;; esac done # for ac_tag as_fn_exit 0 _ACEOF ac_clean_files=$ac_clean_files_save test $ac_write_fail = 0 || as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 # configure is writing to config.log, and then calls config.status. # config.status does its own redirection, appending to config.log. # Unfortunately, on DOS this fails, as config.log is still kept open # by configure, so config.status won't be able to write to it; its # output is simply discarded. So we exec the FD to /dev/null, # effectively closing config.log, so it can be properly (re)opened and # appended to by config.status. When coming back to configure, we # need to make the FD available again. if test "$no_create" != yes; then ac_cs_success=: ac_config_status_args= test "$silent" = yes && ac_config_status_args="$ac_config_status_args --quiet" exec 5>/dev/null $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false exec 5>>config.log # Use ||, not &&, to avoid exiting from the if with $? = 1, which # would make configure fail if this is the last instruction. $ac_cs_success || as_fn_exit 1 fi if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} fi ripperX-2.8.0/configure.ac000066400000000000000000000035711233655711300154540ustar00rootroot00000000000000# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.65]) AC_INIT([ripperX], [2.8.0], [tmancill@users.sourceforge.net]) AC_CONFIG_SRCDIR([src/main.c]) AC_CONFIG_AUX_DIR([config]) AM_INIT_AUTOMAKE([foreign]) AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_CC([g++]) AC_PROG_CXX AC_PATH_PROG(PKG_CONFIG, [pkg-config], [no]) m4_if(PKG_CONFIG, [no], AC_MSG_ERROR([*** pkg-config not found. See http://www.freedesktop.org/software/pkgconfig/])) # Checks for header files. AC_HEADER_SYS_WAIT AC_HEADER_DIRENT AC_CHECK_HEADERS([fcntl.h locale.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h unistd.h linux/cdrom.h]) # Checks for typedefs, structures, and compiler characteristics. AC_TYPE_PID_T AC_TYPE_SIZE_T AC_TYPE_SSIZE_T # Checks for library functions. AC_FUNC_FORK AC_FUNC_MALLOC m4_foreach([func], [dup2, gethostbyname, memset, mkdir, rmdir, setenv, setlocale, socket, strchr, strcspn, strdup, strerror, strncasecmp, strndup, strstr], AC_CHECK_FUNC(func,, AC_MSG_ERROR([Missing required function: func])) ) AC_CHECK_FUNC(openpty,, AC_CHECK_LIB(util,openpty,, AC_MSG_ERROR([Missing required function: openpty])) ) # Additional libraries AM_GNU_GETTEXT([external]) PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.6 gmodule-2.0 >= 2.6 gobject-2.0 >= 2.6 gthread-2.0 >= 2.6) PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.6) PKG_CHECK_MODULES(TAGLIB,taglib) # --disable-deprecated switch for GTK2 purification AC_ARG_ENABLE(deprecated, [ --disable-deprecated Disable deprecated GTK functions. ], [GTK_CFLAGS="$GTK_CFLAGS -DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED"], []) AC_CONFIG_FILES([Makefile ripperX.pc po/Makefile.in plugins/Makefile src/Makefile]) AC_OUTPUT ripperX-2.8.0/m4/000077500000000000000000000000001233655711300135005ustar00rootroot00000000000000ripperX-2.8.0/m4/ChangeLog000066400000000000000000000006351233655711300152560ustar00rootroot000000000000002010-12-03 gettextize * gettext.m4: New file, from gettext-0.18.1. * iconv.m4: New file, from gettext-0.18.1. * lib-ld.m4: New file, from gettext-0.18.1. * lib-link.m4: New file, from gettext-0.18.1. * lib-prefix.m4: New file, from gettext-0.18.1. * nls.m4: New file, from gettext-0.18.1. * po.m4: New file, from gettext-0.18.1. * progtest.m4: New file, from gettext-0.18.1. ripperX-2.8.0/m4/gettext.m4000066400000000000000000000351321233655711300154320ustar00rootroot00000000000000# gettext.m4 serial 63 (gettext-0.18) dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The dnl default (if it is not specified or empty) is 'no-libtool'. dnl INTLSYMBOL should be 'external' for packages with no intl directory, dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library dnl $(top_builddir)/intl/libintl.a will be created. dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, dnl the value `$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled dnl and used. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 2) GNU gettext has been found in the system's C library. dnl Catalog format: GNU --> install in $(datadir) dnl Catalog extension: .mo after installation, .gmo in source tree dnl 3) No internationalization, always use English msgid. dnl Catalog format: none dnl Catalog extension: none dnl If INTLSYMBOL is 'external', only cases 2 and 3 can occur. dnl The use of .gmo is historical (it was needed to avoid overwriting the dnl GNU format catalogs when building on a platform with an X/Open gettext), dnl but we keep it in order not to force irrelevant filename changes on the dnl maintainers. dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT ])])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], ifelse([$1], [external], ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), [yes])) define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) AC_REQUIRE([AM_PO_SUBDIRS])dnl ifelse(gt_included_intl, yes, [ AC_REQUIRE([AM_INTL_SUBDIR])dnl ]) dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Sometimes libintl requires libiconv, so first search for libiconv. dnl Ideally we would do this search only after the dnl if test "$USE_NLS" = "yes"; then dnl if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl tests. But if configure.in invokes AM_ICONV after AM_GNU_GETTEXT dnl the configure script would need to contain the same shell code dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not dnl documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. AC_REQUIRE([AM_NLS]) ifelse(gt_included_intl, yes, [ BUILD_INCLUDED_LIBINTL=no USE_INCLUDED_LIBINTL=no ]) LIBINTL= LTLIBINTL= POSUB= dnl Add a version number to the cache macros. case " $gt_needs " in *" need-formatstring-macros "*) gt_api_version=3 ;; *" need-ngettext "*) gt_api_version=2 ;; *) gt_api_version=1 ;; esac gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" dnl If we use NLS figure out what method if test "$USE_NLS" = "yes"; then gt_use_preinstalled_gnugettext=no ifelse(gt_included_intl, yes, [ AC_MSG_CHECKING([whether included gettext is requested]) AC_ARG_WITH([included-gettext], [ --with-included-gettext use the GNU gettext library included here], nls_cv_force_use_gnu_gettext=$withval, nls_cv_force_use_gnu_gettext=no) AC_MSG_RESULT([$nls_cv_force_use_gnu_gettext]) nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" if test "$nls_cv_force_use_gnu_gettext" != "yes"; then ]) dnl User does not insist on using GNU NLS library. Figure out what dnl to use. If GNU gettext is available we use this. Else we have dnl to fall back to GNU NLS library. if test $gt_api_version -ge 3; then gt_revision_test_code=' #ifndef __GNU_GETTEXT_SUPPORTED_REVISION #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) #endif changequote(,)dnl typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; changequote([,])dnl ' else gt_revision_test_code= fi if test $gt_api_version -ge 2; then gt_expression_test_code=' + * ngettext ("", "", 0)' else gt_expression_test_code= fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], [AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings;], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then dnl Sometimes libintl requires libiconv, so first search for libiconv. ifelse(gt_included_intl, yes, , [ AM_ICONV_LINK ]) dnl Search for libintl and define LIBINTL, LTLIBINTL and INCINTL dnl accordingly. Don't use AC_LIB_LINKFLAGS_BODY([intl],[iconv]) dnl because that would add "-liconv" to LIBINTL and LTLIBINTL dnl even if libiconv doesn't exist. AC_LIB_LINKFLAGS_BODY([intl]) AC_CACHE_CHECK([for GNU gettext in libintl], [$gt_func_gnugettext_libintl], [gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include $gt_revision_test_code extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *);], [bindtextdomain ("", ""); return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], [LIBINTL="$LIBINTL $LIBICONV" LTLIBINTL="$LTLIBINTL $LTLIBICONV" eval "$gt_func_gnugettext_libintl=yes" ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) fi dnl If an already present or preinstalled GNU gettext() is found, dnl use it. But if this macro is used in GNU gettext, and GNU dnl gettext is already preinstalled in libintl, we update this dnl libintl. (Cf. the install rule in intl/Makefile.in.) if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ && test "$PACKAGE" != gettext-runtime \ && test "$PACKAGE" != gettext-tools; }; then gt_use_preinstalled_gnugettext=yes else dnl Reset the values set by searching for libintl. LIBINTL= LTLIBINTL= INCINTL= fi ifelse(gt_included_intl, yes, [ if test "$gt_use_preinstalled_gnugettext" != "yes"; then dnl GNU gettext is not found in the C library. dnl Fall back on included GNU gettext library. nls_cv_use_gnu_gettext=yes fi fi if test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi CATOBJEXT= if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Mark actions to use GNU gettext tools. CATOBJEXT=.gmo fi ]) if test -n "$INTL_MACOSX_LIBS"; then if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then dnl Some extra flags are needed during linking. LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" fi fi if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then AC_DEFINE([ENABLE_NLS], [1], [Define to 1 if translation of program messages to the user's native language is requested.]) else USE_NLS=no fi fi AC_MSG_CHECKING([whether to use NLS]) AC_MSG_RESULT([$USE_NLS]) if test "$USE_NLS" = "yes"; then AC_MSG_CHECKING([where the gettext function comes from]) if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" else gt_source="libc" fi else gt_source="included intl directory" fi AC_MSG_RESULT([$gt_source]) fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then AC_MSG_CHECKING([how to link with libintl]) AC_MSG_RESULT([$LIBINTL]) AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCINTL]) fi dnl For backward compatibility. Some packages may be using this. AC_DEFINE([HAVE_GETTEXT], [1], [Define if the GNU gettext() function is already present or preinstalled.]) AC_DEFINE([HAVE_DCGETTEXT], [1], [Define if the GNU dcgettext() function is already present or preinstalled.]) fi dnl We need to process the po/ directory. POSUB=po fi ifelse(gt_included_intl, yes, [ dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL dnl to 'yes' because some of the testsuite requires it. if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then BUILD_INCLUDED_LIBINTL=yes fi dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) dnl For backward compatibility. Some configure.ins may be using this. nls_cv_header_intl= nls_cv_header_libgt= dnl For backward compatibility. Some Makefiles may be using this. DATADIRNAME=share AC_SUBST([DATADIRNAME]) dnl For backward compatibility. Some Makefiles may be using this. INSTOBJEXT=.mo AC_SUBST([INSTOBJEXT]) dnl For backward compatibility. Some Makefiles may be using this. GENCAT=gencat AC_SUBST([GENCAT]) dnl For backward compatibility. Some Makefiles may be using this. INTLOBJS= if test "$USE_INCLUDED_LIBINTL" = yes; then INTLOBJS="\$(GETTOBJS)" fi AC_SUBST([INTLOBJS]) dnl Enable libtool support if the surrounding package wishes it. INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. INTLLIBS="$LIBINTL" AC_SUBST([INTLLIBS]) dnl Make all documented variables known to autoconf. AC_SUBST([LIBINTL]) AC_SUBST([LTLIBINTL]) AC_SUBST([POSUB]) ]) dnl gt_NEEDS_INIT ensures that the gt_needs variable is initialized. m4_define([gt_NEEDS_INIT], [ m4_divert_text([DEFAULTS], [gt_needs=]) m4_define([gt_NEEDS_INIT], []) ]) dnl Usage: AM_GNU_GETTEXT_NEED([NEEDSYMBOL]) AC_DEFUN([AM_GNU_GETTEXT_NEED], [ m4_divert_text([INIT_PREPARE], [gt_needs="$gt_needs $1"]) ]) dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) ripperX-2.8.0/m4/iconv.m4000066400000000000000000000165371233655711300150740ustar00rootroot00000000000000# iconv.m4 serial 11 (gettext-0.18.1) dnl Copyright (C) 2000-2002, 2007-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_DEFUN([AM_ICONV_LINKFLAGS_BODY], [ dnl Prerequisites of AC_LIB_LINKFLAGS_BODY. AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_LIB_LINKFLAGS_BODY([iconv]) ]) AC_DEFUN([AM_ICONV_LINK], [ dnl Some systems have iconv in libc, some have it in libiconv (OSF/1 and dnl those with the standalone portable GNU libiconv installed). AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles dnl Search for libiconv and define LIBICONV, LTLIBICONV and INCICONV dnl accordingly. AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) dnl Add $INCICONV to CPPFLAGS before performing the following checks, dnl because if the user has installed libiconv and not disabled its use dnl via --without-libiconv-prefix, he wants to use it. The first dnl AC_TRY_LINK will then fail, the second AC_TRY_LINK will succeed. am_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INCICONV]) AC_CACHE_CHECK([for iconv], [am_cv_func_iconv], [ am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" AC_TRY_LINK([#include #include ], [iconv_t cd = iconv_open("",""); iconv(cd,NULL,NULL,NULL,NULL); iconv_close(cd);], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" fi ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi AC_TRY_RUN([ #include #include int main () { /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { static const char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } /* Test against Solaris 10 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { static const char input[] = "\263"; char buf[10]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) return 1; } } #if 0 /* This bug could be worked around by the caller. */ /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ { iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; const char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, (char **) &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) return 1; } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ if (/* Try standardized names. */ iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) /* Try IRIX, OSF/1 names. */ && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) /* Try AIX names. */ && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) /* Try HP-UX names. */ && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) return 1; return 0; }], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], [case "$host_os" in aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; *) am_cv_func_iconv_works="guessing yes" ;; esac]) LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; esac else am_func_iconv=no am_cv_lib_iconv=no fi if test "$am_func_iconv" = yes; then AC_DEFINE([HAVE_ICONV], [1], [Define if you have the iconv() function and it works.]) fi if test "$am_cv_lib_iconv" = yes; then AC_MSG_CHECKING([how to link with libiconv]) AC_MSG_RESULT([$LIBICONV]) else dnl If $LIBICONV didn't lead to a usable library, we don't need $INCICONV dnl either. CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= LTLIBICONV= fi AC_SUBST([LIBICONV]) AC_SUBST([LTLIBICONV]) ]) dnl Define AM_ICONV using AC_DEFUN_ONCE for Autoconf >= 2.64, in order to dnl avoid warnings like dnl "warning: AC_REQUIRE: `AM_ICONV' was expanded before it was required". dnl This is tricky because of the way 'aclocal' is implemented: dnl - It requires defining an auxiliary macro whose name ends in AC_DEFUN. dnl Otherwise aclocal's initial scan pass would miss the macro definition. dnl - It requires a line break inside the AC_DEFUN_ONCE and AC_DEFUN expansions. dnl Otherwise aclocal would emit many "Use of uninitialized value $1" dnl warnings. m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], [[AC_DEFUN( [$1], [$2])]])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ AC_TRY_COMPILE([ #include #include extern #ifdef __cplusplus "C" #endif #if defined(__STDC__) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif ], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], [Define as const if the declaration of iconv() needs const.]) fi ]) ripperX-2.8.0/m4/lib-ld.m4000066400000000000000000000066031233655711300151120ustar00rootroot00000000000000# lib-ld.m4 serial 4 (gettext-0.18) dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl Subroutines of libtool.m4, dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision dnl with libtool.m4. dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. AC_DEFUN([AC_LIB_PROG_LD_GNU], [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], [# I'd rather use --version here, but apparently some GNU ld's only accept -v. case `$LD -v 2>&1 conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi ac_prog=ld if test "$GCC" = yes; then # Check if gcc -print-prog-name=ld gives a path. AC_MSG_CHECKING([for ld used by GCC]) case $host in *-*-mingw*) # gcc leaves a trailing carriage return which upsets mingw ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; *) ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; esac case $ac_prog in # Accept absolute paths. [[\\/]* | [A-Za-z]:[\\/]*)] [re_direlt='/[^/][^/]*/\.\./'] # Canonicalize the path of ld ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` done test -z "$LD" && LD="$ac_prog" ;; "") # If it fails, then pretend we aren't using GCC. ac_prog=ld ;; *) # If it is relative, then search for the first ld in PATH. with_gnu_ld=unknown ;; esac elif test "$with_gnu_ld" = yes; then AC_MSG_CHECKING([for GNU ld]) else AC_MSG_CHECKING([for non-GNU ld]) fi AC_CACHE_VAL([acl_cv_path_LD], [if test -z "$LD"; then IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" for ac_dir in $PATH; do test -z "$ac_dir" && ac_dir=. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then acl_cv_path_LD="$ac_dir/$ac_prog" # Check to see if the program is GNU ld. I'd rather use --version, # but apparently some GNU ld's only accept -v. # Break only if it was the GNU/non-GNU ld that we prefer. case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in *GNU* | *'with BFD'*) test "$with_gnu_ld" != no && break ;; *) test "$with_gnu_ld" != yes && break ;; esac fi done IFS="$ac_save_ifs" else acl_cv_path_LD="$LD" # Let the user override the test with a path. fi]) LD="$acl_cv_path_LD" if test -n "$LD"; then AC_MSG_RESULT([$LD]) else AC_MSG_RESULT([no]) fi test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) AC_LIB_PROG_LD_GNU ]) ripperX-2.8.0/m4/lib-link.m4000066400000000000000000001002021233655711300154360ustar00rootroot00000000000000# lib-link.m4 serial 21 (gettext-0.18) dnl Copyright (C) 2001-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. AC_PREREQ([2.54]) dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and dnl augments the CPPFLAGS variable. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ AC_LIB_LINKFLAGS_BODY([$1], [$2]) ac_cv_lib[]Name[]_libs="$LIB[]NAME" ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" ac_cv_lib[]Name[]_cppflags="$INC[]NAME" ac_cv_lib[]Name[]_prefix="$LIB[]NAME[]_PREFIX" ]) LIB[]NAME="$ac_cv_lib[]Name[]_libs" LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" INC[]NAME="$ac_cv_lib[]Name[]_cppflags" LIB[]NAME[]_PREFIX="$ac_cv_lib[]Name[]_prefix" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the dnl results of this search when this library appears as a dependency. HAVE_LIB[]NAME=yes popdef([NAME]) popdef([Name]) ]) dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode, [missing-message]) dnl searches for libname and the libraries corresponding to explicit and dnl implicit dependencies, together with the specified include files and dnl the ability to compile and link the specified testcode. The missing-message dnl defaults to 'no' and may contain additional hints for the user. dnl If found, it sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} dnl and LTLIB${NAME} variables and augments the CPPFLAGS variable, and dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. dnl Sets and AC_SUBSTs the LIB${NAME}_PREFIX variable to nonempty if libname dnl was found in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], [ AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) AC_REQUIRE([AC_LIB_RPATH]) pushdef([Name],[translit([$1],[./-], [___])]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME dnl accordingly. AC_LIB_LINKFLAGS_BODY([$1], [$2]) dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, dnl because if the user has installed lib[]Name and not disabled its use dnl via --without-lib[]Name-prefix, he wants to use it. ac_save_CPPFLAGS="$CPPFLAGS" AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ ac_save_LIBS="$LIBS" dnl If $LIB[]NAME contains some -l options, add it to the end of LIBS, dnl because these -l options might require -L options that are present in dnl LIBS. -l options benefit only from the -L options listed before it. dnl Otherwise, add it to the front of LIBS, because it may be a static dnl library that depends on another static library that is present in LIBS. dnl Static libraries benefit only from the static libraries listed after dnl it. case " $LIB[]NAME" in *" -l"*) LIBS="$LIBS $LIB[]NAME" ;; *) LIBS="$LIB[]NAME $LIBS" ;; esac AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name='m4_if([$5], [], [no], [[$5]])']) LIBS="$ac_save_LIBS" ]) if test "$ac_cv_lib[]Name" = yes; then HAVE_LIB[]NAME=yes AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the lib][$1 library.]) AC_MSG_CHECKING([how to link with lib[]$1]) AC_MSG_RESULT([$LIB[]NAME]) else HAVE_LIB[]NAME=no dnl If $LIB[]NAME didn't lead to a usable library, we don't need dnl $INC[]NAME either. CPPFLAGS="$ac_save_CPPFLAGS" LIB[]NAME= LTLIB[]NAME= LIB[]NAME[]_PREFIX= fi AC_SUBST([HAVE_LIB]NAME) AC_SUBST([LIB]NAME) AC_SUBST([LTLIB]NAME) AC_SUBST([LIB]NAME[_PREFIX]) popdef([NAME]) popdef([Name]) ]) dnl Determine the platform dependent parameters needed to use rpath: dnl acl_libext, dnl acl_shlibext, dnl acl_hardcode_libdir_flag_spec, dnl acl_hardcode_libdir_separator, dnl acl_hardcode_direct, dnl acl_hardcode_minus_L. AC_DEFUN([AC_LIB_RPATH], [ dnl Tell automake >= 1.10 to complain if config.rpath is missing. m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir AC_CACHE_CHECK([for shared library run path origin], [acl_cv_rpath], [ CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh . ./conftest.sh rm -f ./conftest.sh acl_cv_rpath=done ]) wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" acl_libname_spec="$acl_cv_libname_spec" acl_library_names_spec="$acl_cv_library_names_spec" acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" dnl Determine whether the user wants rpath handling at all. AC_ARG_ENABLE([rpath], [ --disable-rpath do not hardcode runtime library paths], :, enable_rpath=yes) ]) dnl AC_LIB_FROMPACKAGE(name, package) dnl declares that libname comes from the given package. The configure file dnl will then not have a --with-libname-prefix option but a dnl --with-package-prefix option. Several libraries can come from the same dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) define([acl_libsinpackage_]PACKUP, m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and dnl the libraries corresponding to explicit and implicit dependencies. dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. dnl Also, sets the LIB${NAME}_PREFIX variable to nonempty if libname was found dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) dnl Autoconf >= 2.61 supports dots in --with options. pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_ARG_WITH(P_A_C_K[-prefix], [[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" if test "$acl_libdirstem2" != "$acl_libdirstem" \ && ! test -d "$withval/$acl_libdirstem"; then additional_libdir="$withval/$acl_libdirstem2" fi fi fi ]) dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= LTLIB[]NAME= INC[]NAME= LIB[]NAME[]_PREFIX= dnl HAVE_LIB${NAME} is an indicator that LIB${NAME}, LTLIB${NAME} have been dnl computed. So it has to be reset here. HAVE_LIB[]NAME= rpathdirs= ltrpathdirs= names_already_handled= names_next_round='$1 $2' while test -n "$names_next_round"; do names_this_round="$names_next_round" names_next_round= for name in $names_this_round; do already_handled= for n in $names_already_handled; do if test "$n" = "$name"; then already_handled=yes break fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then eval value=\"\$LIB$uppername\" test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" eval value=\"\$LTLIB$uppername\" test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" else dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined dnl that this library doesn't exist. So just drop it. : fi else dnl Search the library lib$name in $additional_libdir and $LDFLAGS dnl and the already constructed $LIBNAME/$LTLIBNAME. found_dir= found_la= found_so= found_a= eval libname=\"$acl_libname_spec\" # typically: libname=lib$name if test -n "$acl_shlibext"; then shrext=".$acl_shlibext" # typically: shrext=.so else shrext= fi if test $use_additional = yes; then dir="$additional_libdir" dnl The same code as in the loop below: dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) case "$x" in -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then if test -f "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then ver=`(cd "$dir" && \ for f in "$libname$shrext".*; do echo "$f"; done \ | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do if test -f "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break fi done fi fi fi dnl Then look for a static library. if test "X$found_dir" = "X"; then if test -f "$dir/$libname.$acl_libext"; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi fi if test "X$found_dir" != "X"; then if test -f "$dir/$libname.la"; then found_la="$dir/$libname.la" fi fi ;; esac if test "X$found_dir" != "X"; then break fi done fi if test "X$found_dir" != "X"; then dnl Found the library. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" if test "X$found_so" != "X"; then dnl Linking with a shared library. We attempt to hardcode its dnl directory into the executable's runpath, unless it's the dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl Use an explicit option to hardcode DIR into the resulting dnl binary. dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $found_dir" fi dnl The hardcoding into $LIBNAME is system dependent. if test "$acl_hardcode_direct" = yes; then dnl Using DIR/libNAME.so during linking hardcodes DIR into the dnl resulting binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode DIR into the resulting dnl binary. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $found_dir" fi else dnl Rely on "-L$found_dir". dnl But don't add it if it's already contained in the LDFLAGS dnl or the already constructed $LIBNAME haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$found_dir"; then haveit=yes break fi done if test -z "$haveit"; then LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" fi if test "$acl_hardcode_minus_L" != no; then dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else dnl We cannot use $acl_hardcode_runpath_var and LD_RUN_PATH dnl here, because this doesn't fit in flags passed to the dnl compiler. So give up. No hardcoding. This affects only dnl very old systems. dnl FIXME: Not sure whether we should use dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" dnl here. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" fi fi fi fi else if test "X$found_a" != "X"; then dnl Linking with a static library. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" else dnl We shouldn't come here, but anyway it's good to have a dnl fallback. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" fi fi dnl Assume the include files are nearby. additional_includedir= case "$found_dir" in */$acl_libdirstem | */$acl_libdirstem/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; */$acl_libdirstem2 | */$acl_libdirstem2/) basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` if test "$name" = '$1'; then LIB[]NAME[]_PREFIX="$basedir" fi additional_includedir="$basedir/include" ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's /usr/local/include and we are using GCC on Linux, dnl 3. if it's already present in $CPPFLAGS or the already dnl constructed $INCNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then for x in $CPPFLAGS $INC[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $INCNAME. INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" fi fi fi fi fi dnl Look for dependencies. if test -n "$found_la"; then dnl Read the .la file. It defines the variables dnl dlname, library_names, old_library, dependency_libs, current, dnl age, revision, installed, dlopen, dlpreopen, libdir. save_libdir="$libdir" case "$found_la" in */* | *\\*) . "$found_la" ;; *) . "./$found_la" ;; esac libdir="$save_libdir" dnl We use only dependency_libs. for dep in $dependency_libs; do case "$dep" in -L*) additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then haveit= if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LIBNAME. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LTLIBNAME. LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" fi fi fi fi ;; -R*) dir=`echo "X$dep" | sed -e 's/^X-R//'` if test "$enable_rpath" != no; then dnl Potentially add DIR to rpathdirs. dnl The rpathdirs will be appended to $LIBNAME at the end. haveit= for x in $rpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then rpathdirs="$rpathdirs $dir" fi dnl Potentially add DIR to ltrpathdirs. dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. haveit= for x in $ltrpathdirs; do if test "X$x" = "X$dir"; then haveit=yes break fi done if test -z "$haveit"; then ltrpathdirs="$ltrpathdirs $dir" fi fi ;; -l*) dnl Handle this in the next round. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` ;; *.la) dnl Handle this in the next round. Throw away the .la's dnl directory; it is already contained in a preceding -L dnl option. names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` ;; *) dnl Most likely an immediate library name. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" ;; esac done fi else dnl Didn't find the library; assume it is in the system directories dnl known to the linker and runtime loader. (All the system dnl directories known to the linker should also be known to the dnl runtime loader, otherwise the system is severely misconfigured.) LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" fi fi fi done done if test "X$rpathdirs" != "X"; then if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user must dnl pass all path elements in one option. We can arrange that for a dnl single library, but not when more than one $LIBNAMEs are used. alldirs= for found_dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" done dnl Note: acl_hardcode_libdir_flag_spec uses $libdir and $wl. acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" else dnl The -rpath options are cumulative. for found_dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$found_dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" done fi fi if test "X$ltrpathdirs" != "X"; then dnl When using libtool, the option that works for both libraries and dnl executables is -R. The -R options are cumulative. for found_dir in $ltrpathdirs; do LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi popdef([P_A_C_K]) popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) popdef([NAME]) ]) dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, dnl unless already present in VAR. dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes dnl contains two or three consecutive elements that belong together. AC_DEFUN([AC_LIB_APPENDTOVAR], [ for element in [$2]; do haveit= for x in $[$1]; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X$element"; then haveit=yes break fi done if test -z "$haveit"; then [$1]="${[$1]}${[$1]:+ }$element" fi done ]) dnl For those cases where a variable contains several -L and -l options dnl referring to unknown libraries and directories, this macro determines the dnl necessary additional linker options for the runtime path. dnl AC_LIB_LINKFLAGS_FROM_LIBS([LDADDVAR], [LIBSVALUE], [USE-LIBTOOL]) dnl sets LDADDVAR to linker options needed together with LIBSVALUE. dnl If USE-LIBTOOL evaluates to non-empty, linking with libtool is assumed, dnl otherwise linking without libtool is assumed. AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], [ AC_REQUIRE([AC_LIB_RPATH]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) $1= if test "$enable_rpath" != no; then if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then dnl Use an explicit option to hardcode directories into the resulting dnl binary. rpathdirs= next= for opt in $2; do if test -n "$next"; then dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= else case $opt in -L) next=yes ;; -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ && test "X$dir" != "X/usr/$acl_libdirstem2"; then rpathdirs="$rpathdirs $dir" fi next= ;; *) next= ;; esac fi done if test "X$rpathdirs" != "X"; then if test -n ""$3""; then dnl libtool is used for linking. Use -R options. for dir in $rpathdirs; do $1="${$1}${$1:+ }-R$dir" done else dnl The linker is used for linking directly. if test -n "$acl_hardcode_libdir_separator"; then dnl Weird platform: only the last -rpath option counts, the user dnl must pass all path elements in one option. alldirs= for dir in $rpathdirs; do alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$dir" done acl_save_libdir="$libdir" libdir="$alldirs" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="$flag" else dnl The -rpath options are cumulative. for dir in $rpathdirs; do acl_save_libdir="$libdir" libdir="$dir" eval flag=\"$acl_hardcode_libdir_flag_spec\" libdir="$acl_save_libdir" $1="${$1}${$1:+ }$flag" done fi fi fi fi fi AC_SUBST([$1]) ]) ripperX-2.8.0/m4/lib-prefix.m4000066400000000000000000000204221233655711300160030ustar00rootroot00000000000000# lib-prefix.m4 serial 7 (gettext-0.18) dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't dnl require excessive bracketing. ifdef([AC_HELP_STRING], [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed dnl to access previously installed libraries. The basic assumption is that dnl a user will want packages to use other packages he previously installed dnl with the same --prefix option. dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate dnl libraries, but is otherwise very convenient. AC_DEFUN([AC_LIB_PREFIX], [ AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) AC_REQUIRE([AC_PROG_CC]) AC_REQUIRE([AC_CANONICAL_HOST]) AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) AC_LIB_ARG_WITH([lib-prefix], [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib --without-lib-prefix don't search for libraries in includedir and libdir], [ if test "X$withval" = "Xno"; then use_additional=no else if test "X$withval" = "X"; then AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" fi fi ]) if test $use_additional = yes; then dnl Potentially add $additional_includedir to $CPPFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/include, dnl 2. if it's already present in $CPPFLAGS, dnl 3. if it's /usr/local/include and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_includedir" != "X/usr/include"; then haveit= for x in $CPPFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-I$additional_includedir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_includedir" = "X/usr/local/include"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_includedir"; then dnl Really add $additional_includedir to $CPPFLAGS. CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" fi fi fi fi dnl Potentially add $additional_libdir to $LDFLAGS. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's already present in $LDFLAGS, dnl 3. if it's /usr/local/lib and we are using GCC on Linux, dnl 4. if it doesn't exist as a directory. if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then haveit= for x in $LDFLAGS; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) if test "X$x" = "X-L$additional_libdir"; then haveit=yes break fi done if test -z "$haveit"; then if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then if test -n "$GCC"; then case $host_os in linux*) haveit=yes;; esac fi fi if test -z "$haveit"; then if test -d "$additional_libdir"; then dnl Really add $additional_libdir to $LDFLAGS. LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" fi fi fi fi fi ]) dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, dnl acl_final_exec_prefix, containing the values to which $prefix and dnl $exec_prefix will expand at the end of the configure script. AC_DEFUN([AC_LIB_PREPARE_PREFIX], [ dnl Unfortunately, prefix and exec_prefix get only finally determined dnl at the end of configure. if test "X$prefix" = "XNONE"; then acl_final_prefix="$ac_default_prefix" else acl_final_prefix="$prefix" fi if test "X$exec_prefix" = "XNONE"; then acl_final_exec_prefix='${prefix}' else acl_final_exec_prefix="$exec_prefix" fi acl_save_prefix="$prefix" prefix="$acl_final_prefix" eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" prefix="$acl_save_prefix" ]) dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the dnl variables prefix and exec_prefix bound to the values they will have dnl at the end of the configure script. AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], [ acl_save_prefix="$prefix" prefix="$acl_final_prefix" acl_save_exec_prefix="$exec_prefix" exec_prefix="$acl_final_exec_prefix" $1 exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" ]) dnl AC_LIB_PREPARE_MULTILIB creates dnl - a variable acl_libdirstem, containing the basename of the libdir, either dnl "lib" or "lib64" or "lib/64", dnl - a variable acl_libdirstem2, as a secondary possible value for dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or dnl "lib/amd64". AC_DEFUN([AC_LIB_PREPARE_MULTILIB], [ dnl There is no formal standard regarding lib and lib64. dnl On glibc systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine dnl the compiler's default mode by looking at the compiler's library search dnl path. If at least one of its elements ends in /lib64 or points to a dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. dnl Otherwise we use the default, namely "lib". dnl On Solaris systems, the current practice is that on a system supporting dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. AC_REQUIRE([AC_CANONICAL_HOST]) acl_libdirstem=lib acl_libdirstem2= case "$host_os" in solaris*) dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment dnl . dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the dnl symlink is missing, so we set acl_libdirstem2 too. AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], [AC_EGREP_CPP([sixtyfour bits], [ #ifdef _LP64 sixtyfour bits #endif ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) ]) if test $gl_cv_solaris_64bit = yes; then acl_libdirstem=lib/64 case "$host_cpu" in sparc*) acl_libdirstem2=lib/sparcv9 ;; i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; esac fi ;; *) searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` if test -n "$searchpath"; then acl_save_IFS="${IFS= }"; IFS=":" for searchdir in $searchpath; do if test -d "$searchdir"; then case "$searchdir" in */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; */../ | */.. ) # Better ignore directories of this form. They are misleading. ;; *) searchdir=`cd "$searchdir" && pwd` case "$searchdir" in */lib64 ) acl_libdirstem=lib64 ;; esac ;; esac fi done IFS="$acl_save_IFS" fi ;; esac test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" ]) ripperX-2.8.0/m4/nls.m4000066400000000000000000000023151233655711300145370ustar00rootroot00000000000000# nls.m4 serial 5 (gettext-0.18) dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) AC_DEFUN([AM_NLS], [ AC_MSG_CHECKING([whether NLS is requested]) dnl Default is enabled NLS AC_ARG_ENABLE([nls], [ --disable-nls do not use Native Language Support], USE_NLS=$enableval, USE_NLS=yes) AC_MSG_RESULT([$USE_NLS]) AC_SUBST([USE_NLS]) ]) ripperX-2.8.0/m4/po.m4000066400000000000000000000446161233655711300143730ustar00rootroot00000000000000# po.m4 serial 17 (gettext-0.18) dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl dnl This file can can be used in projects which are not available under dnl the GNU General Public License or the GNU Library General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered dnl by the GNU Library General Public License, and the rest of the GNU dnl gettext package package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. AC_PREREQ([2.50]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. dnl Search for GNU msgfmt in the PATH. dnl The first test excludes Solaris msgfmt and early GNU msgfmt versions. dnl The second test excludes FreeBSD msgfmt. AM_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, [$ac_dir/$ac_word --statistics /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. changequote(,)dnl case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; *) MSGFMT_015=$MSGFMT ;; esac changequote([,])dnl AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac changequote([,])dnl AC_SUBST([GMSGFMT_015]) dnl Search for GNU xgettext 0.12 or newer in the PATH. dnl The first test excludes Solaris xgettext and early GNU xgettext versions. dnl The second test excludes FreeBSD xgettext. AM_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, [$ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1 && (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi)], :) dnl Remove leftover from FreeBSD xgettext call. rm -f messages.po dnl Test whether it is GNU xgettext >= 0.15. changequote(,)dnl case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; *) XGETTEXT_015=$XGETTEXT ;; esac changequote([,])dnl AC_SUBST([XGETTEXT_015]) dnl Search for GNU msgmerge 0.11 or newer in the PATH. AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) dnl Installation directories. dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we dnl have to define it here, so that it can be used in po/Makefile. test -n "$localedir" || localedir='${datadir}/locale' AC_SUBST([localedir]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= AC_SUBST([XGETTEXT_EXTRA_OPTIONS]) AC_CONFIG_COMMANDS([po-directories], [[ for ac_file in $CONFIG_FILES; do # Support "outfile[:infile[:infile...]]" case "$ac_file" in *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; esac # PO directories have a Makefile.in generated from Makefile.in.in. case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Treat a directory as a PO directory if and only if it has a # POTFILES.in file. This allows packages to have multiple PO # directories under different names or in different locations. if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration # parameters. if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$ALL_LINGUAS_' POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. # Hide the ALL_LINGUAS assigment from automake < 1.5. eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) # Compute DUMMYPOFILES # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) case "$ac_given_srcdir" in .) srcdirpre= ;; *) srcdirpre='$(srcdir)/' ;; esac POFILES= UPDATEPOFILES= DUMMYPOFILES= GMOFILES= for lang in $ALL_LINGUAS; do POFILES="$POFILES $srcdirpre$lang.po" UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" done # CATALOGS depends on both $ac_dir and the user's LINGUAS # environment variable. INST_LINGUAS= if test -n "$ALL_LINGUAS"; then for presentlang in $ALL_LINGUAS; do useit=no if test "%UNSET%" != "$LINGUAS"; then desiredlanguages="$LINGUAS" else desiredlanguages="$ALL_LINGUAS" fi for desiredlang in $desiredlanguages; do # Use the presentlang catalog if desiredlang is # a. equal to presentlang, or # b. a variant of presentlang (because in this case, # presentlang can be used as a fallback for messages # which are not translated in the desiredlang catalog). case "$desiredlang" in "$presentlang"*) useit=yes;; esac done if test $useit = yes; then INST_LINGUAS="$INST_LINGUAS $presentlang" fi done fi CATALOGS= if test -n "$INST_LINGUAS"; then for lang in $INST_LINGUAS; do CATALOGS="$CATALOGS $lang.gmo" done fi test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do if test -f "$f"; then case "$f" in *.orig | *.bak | *~) ;; *) cat "$f" >> "$ac_dir/Makefile" ;; esac fi done fi ;; esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it # from automake < 1.5. eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) ]) dnl Postprocesses a Makefile in a directory containing PO files. AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], [ # When this code is run, in config.status, two variables have already been # set: # - OBSOLETE_ALL_LINGUAS is the value of LINGUAS set in configure.in, # - LINGUAS is the value of the environment variable LINGUAS at configure # time. changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" case "$ac_given_srcdir" in .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; /*) top_srcdir="$ac_given_srcdir" ;; *) top_srcdir="$ac_dots$ac_given_srcdir" ;; esac # Find a way to echo strings without interpreting backslash. if test "X`(echo '\t') 2>/dev/null`" = 'X\t'; then gt_echo='echo' else if test "X`(printf '%s\n' '\t') 2>/dev/null`" = 'X\t'; then gt_echo='printf %s\n' else echo_func () { cat < "$ac_file.tmp" if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" < /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/_/-/g' -e 's/^sr-CS/sr-SP/' -e 's/@latin$/-Latn/' -e 's/@cyrillic$/-Cyrl/' -e 's/^sr-SP$/sr-SP-Latn/' -e 's/^uz-UZ$/uz-UZ-Latn/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" <, 1996. AC_PREREQ([2.50]) # Search path for a program which passes the given test. dnl AM_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) AC_DEFUN([AM_PATH_PROG_WITH_TEST], [ # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then echo "#! /bin/sh" >conf$$.sh echo "exit 0" >>conf$$.sh chmod +x conf$$.sh if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then PATH_SEPARATOR=';' else PATH_SEPARATOR=: fi rm -f conf$$.sh fi # Find out how to test for executable files. Don't use a zero-byte file, # as systems may use methods other than mode bits to determine executability. cat >conf$$.file <<_ASEOF #! /bin/sh exit 0 _ASEOF chmod +x conf$$.file if test -x conf$$.file >/dev/null 2>&1; then ac_executable_p="test -x" else ac_executable_p="test -f" fi rm -f conf$$.file # Extract the first word of "$2", so it can be a program name with args. set dummy $2; ac_word=[$]2 AC_MSG_CHECKING([for $ac_word]) AC_CACHE_VAL([ac_cv_path_$1], [case "[$]$1" in [[\\/]]* | ?:[[\\/]]*) ac_cv_path_$1="[$]$1" # Let the user override the test with a path. ;; *) ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR for ac_dir in ifelse([$5], , $PATH, [$5]); do IFS="$ac_save_IFS" test -z "$ac_dir" && ac_dir=. for ac_exec_ext in '' $ac_executable_extensions; do if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then echo "$as_me: trying $ac_dir/$ac_word..." >&AS_MESSAGE_LOG_FD if [$3]; then ac_cv_path_$1="$ac_dir/$ac_word$ac_exec_ext" break 2 fi fi done done IFS="$ac_save_IFS" dnl If no 4th arg is given, leave the cache variable unset, dnl so AC_PATH_PROGS will keep looking. ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" ])dnl ;; esac])dnl $1="$ac_cv_path_$1" if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then AC_MSG_RESULT([$][$1]) else AC_MSG_RESULT([no]) fi AC_SUBST([$1])dnl ]) ripperX-2.8.0/plugins/000077500000000000000000000000001233655711300146415ustar00rootroot00000000000000ripperX-2.8.0/plugins/.gitignore000066400000000000000000000000371233655711300166310ustar00rootroot00000000000000* !*.c !Makefile.* !.gitignore ripperX-2.8.0/plugins/Makefile.am000066400000000000000000000005651233655711300167030ustar00rootroot00000000000000bin_PROGRAMS = \ ripperX_plugin-8hz-mp3 \ ripperX_plugin-bladeenc \ ripperX_plugin-cdparanoia \ ripperX_plugin-encode \ ripperX_plugin-flac \ ripperX_plugin-gogo \ ripperX_plugin-l3enc \ ripperX_plugin-lame \ ripperX_plugin-mp3enc \ ripperX_plugin-musepack \ ripperX_plugin-oggenc \ ripperX_plugin-toolame \ ripperX_plugin-xingmp3enc \ ripperX_plugin_tester ripperX-2.8.0/plugins/Makefile.in000066400000000000000000000630041233655711300167110ustar00rootroot00000000000000# Makefile.in generated by automake 1.13.3 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = ripperX_plugin-8hz-mp3$(EXEEXT) \ ripperX_plugin-bladeenc$(EXEEXT) \ ripperX_plugin-cdparanoia$(EXEEXT) \ ripperX_plugin-encode$(EXEEXT) ripperX_plugin-flac$(EXEEXT) \ ripperX_plugin-gogo$(EXEEXT) ripperX_plugin-l3enc$(EXEEXT) \ ripperX_plugin-lame$(EXEEXT) ripperX_plugin-mp3enc$(EXEEXT) \ ripperX_plugin-musepack$(EXEEXT) \ ripperX_plugin-oggenc$(EXEEXT) ripperX_plugin-toolame$(EXEEXT) \ ripperX_plugin-xingmp3enc$(EXEEXT) \ ripperX_plugin_tester$(EXEEXT) subdir = plugins DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/config/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) ripperX_plugin_8hz_mp3_SOURCES = ripperX_plugin-8hz-mp3.c ripperX_plugin_8hz_mp3_OBJECTS = ripperX_plugin-8hz-mp3.$(OBJEXT) ripperX_plugin_8hz_mp3_LDADD = $(LDADD) ripperX_plugin_bladeenc_SOURCES = ripperX_plugin-bladeenc.c ripperX_plugin_bladeenc_OBJECTS = ripperX_plugin-bladeenc.$(OBJEXT) ripperX_plugin_bladeenc_LDADD = $(LDADD) ripperX_plugin_cdparanoia_SOURCES = ripperX_plugin-cdparanoia.c ripperX_plugin_cdparanoia_OBJECTS = \ ripperX_plugin-cdparanoia.$(OBJEXT) ripperX_plugin_cdparanoia_LDADD = $(LDADD) ripperX_plugin_encode_SOURCES = ripperX_plugin-encode.c ripperX_plugin_encode_OBJECTS = ripperX_plugin-encode.$(OBJEXT) ripperX_plugin_encode_LDADD = $(LDADD) ripperX_plugin_flac_SOURCES = ripperX_plugin-flac.c ripperX_plugin_flac_OBJECTS = ripperX_plugin-flac.$(OBJEXT) ripperX_plugin_flac_LDADD = $(LDADD) ripperX_plugin_gogo_SOURCES = ripperX_plugin-gogo.c ripperX_plugin_gogo_OBJECTS = ripperX_plugin-gogo.$(OBJEXT) ripperX_plugin_gogo_LDADD = $(LDADD) ripperX_plugin_l3enc_SOURCES = ripperX_plugin-l3enc.c ripperX_plugin_l3enc_OBJECTS = ripperX_plugin-l3enc.$(OBJEXT) ripperX_plugin_l3enc_LDADD = $(LDADD) ripperX_plugin_lame_SOURCES = ripperX_plugin-lame.c ripperX_plugin_lame_OBJECTS = ripperX_plugin-lame.$(OBJEXT) ripperX_plugin_lame_LDADD = $(LDADD) ripperX_plugin_mp3enc_SOURCES = ripperX_plugin-mp3enc.c ripperX_plugin_mp3enc_OBJECTS = ripperX_plugin-mp3enc.$(OBJEXT) ripperX_plugin_mp3enc_LDADD = $(LDADD) ripperX_plugin_musepack_SOURCES = ripperX_plugin-musepack.c ripperX_plugin_musepack_OBJECTS = ripperX_plugin-musepack.$(OBJEXT) ripperX_plugin_musepack_LDADD = $(LDADD) ripperX_plugin_oggenc_SOURCES = ripperX_plugin-oggenc.c ripperX_plugin_oggenc_OBJECTS = ripperX_plugin-oggenc.$(OBJEXT) ripperX_plugin_oggenc_LDADD = $(LDADD) ripperX_plugin_toolame_SOURCES = ripperX_plugin-toolame.c ripperX_plugin_toolame_OBJECTS = ripperX_plugin-toolame.$(OBJEXT) ripperX_plugin_toolame_LDADD = $(LDADD) ripperX_plugin_xingmp3enc_SOURCES = ripperX_plugin-xingmp3enc.c ripperX_plugin_xingmp3enc_OBJECTS = \ ripperX_plugin-xingmp3enc.$(OBJEXT) ripperX_plugin_xingmp3enc_LDADD = $(LDADD) ripperX_plugin_tester_SOURCES = ripperX_plugin_tester.c ripperX_plugin_tester_OBJECTS = ripperX_plugin_tester.$(OBJEXT) ripperX_plugin_tester_LDADD = $(LDADD) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = ripperX_plugin-8hz-mp3.c ripperX_plugin-bladeenc.c \ ripperX_plugin-cdparanoia.c ripperX_plugin-encode.c \ ripperX_plugin-flac.c ripperX_plugin-gogo.c \ ripperX_plugin-l3enc.c ripperX_plugin-lame.c \ ripperX_plugin-mp3enc.c ripperX_plugin-musepack.c \ ripperX_plugin-oggenc.c ripperX_plugin-toolame.c \ ripperX_plugin-xingmp3enc.c ripperX_plugin_tester.c DIST_SOURCES = ripperX_plugin-8hz-mp3.c ripperX_plugin-bladeenc.c \ ripperX_plugin-cdparanoia.c ripperX_plugin-encode.c \ ripperX_plugin-flac.c ripperX_plugin-gogo.c \ ripperX_plugin-l3enc.c ripperX_plugin-lame.c \ ripperX_plugin-mp3enc.c ripperX_plugin-musepack.c \ ripperX_plugin-oggenc.c ripperX_plugin-toolame.c \ ripperX_plugin-xingmp3enc.c ripperX_plugin_tester.c am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TAGLIB_CFLAGS = @TAGLIB_CFLAGS@ TAGLIB_LIBS = @TAGLIB_LIBS@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign plugins/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign plugins/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) ripperX_plugin-8hz-mp3$(EXEEXT): $(ripperX_plugin_8hz_mp3_OBJECTS) $(ripperX_plugin_8hz_mp3_DEPENDENCIES) $(EXTRA_ripperX_plugin_8hz_mp3_DEPENDENCIES) @rm -f ripperX_plugin-8hz-mp3$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_8hz_mp3_OBJECTS) $(ripperX_plugin_8hz_mp3_LDADD) $(LIBS) ripperX_plugin-bladeenc$(EXEEXT): $(ripperX_plugin_bladeenc_OBJECTS) $(ripperX_plugin_bladeenc_DEPENDENCIES) $(EXTRA_ripperX_plugin_bladeenc_DEPENDENCIES) @rm -f ripperX_plugin-bladeenc$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_bladeenc_OBJECTS) $(ripperX_plugin_bladeenc_LDADD) $(LIBS) ripperX_plugin-cdparanoia$(EXEEXT): $(ripperX_plugin_cdparanoia_OBJECTS) $(ripperX_plugin_cdparanoia_DEPENDENCIES) $(EXTRA_ripperX_plugin_cdparanoia_DEPENDENCIES) @rm -f ripperX_plugin-cdparanoia$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_cdparanoia_OBJECTS) $(ripperX_plugin_cdparanoia_LDADD) $(LIBS) ripperX_plugin-encode$(EXEEXT): $(ripperX_plugin_encode_OBJECTS) $(ripperX_plugin_encode_DEPENDENCIES) $(EXTRA_ripperX_plugin_encode_DEPENDENCIES) @rm -f ripperX_plugin-encode$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_encode_OBJECTS) $(ripperX_plugin_encode_LDADD) $(LIBS) ripperX_plugin-flac$(EXEEXT): $(ripperX_plugin_flac_OBJECTS) $(ripperX_plugin_flac_DEPENDENCIES) $(EXTRA_ripperX_plugin_flac_DEPENDENCIES) @rm -f ripperX_plugin-flac$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_flac_OBJECTS) $(ripperX_plugin_flac_LDADD) $(LIBS) ripperX_plugin-gogo$(EXEEXT): $(ripperX_plugin_gogo_OBJECTS) $(ripperX_plugin_gogo_DEPENDENCIES) $(EXTRA_ripperX_plugin_gogo_DEPENDENCIES) @rm -f ripperX_plugin-gogo$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_gogo_OBJECTS) $(ripperX_plugin_gogo_LDADD) $(LIBS) ripperX_plugin-l3enc$(EXEEXT): $(ripperX_plugin_l3enc_OBJECTS) $(ripperX_plugin_l3enc_DEPENDENCIES) $(EXTRA_ripperX_plugin_l3enc_DEPENDENCIES) @rm -f ripperX_plugin-l3enc$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_l3enc_OBJECTS) $(ripperX_plugin_l3enc_LDADD) $(LIBS) ripperX_plugin-lame$(EXEEXT): $(ripperX_plugin_lame_OBJECTS) $(ripperX_plugin_lame_DEPENDENCIES) $(EXTRA_ripperX_plugin_lame_DEPENDENCIES) @rm -f ripperX_plugin-lame$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_lame_OBJECTS) $(ripperX_plugin_lame_LDADD) $(LIBS) ripperX_plugin-mp3enc$(EXEEXT): $(ripperX_plugin_mp3enc_OBJECTS) $(ripperX_plugin_mp3enc_DEPENDENCIES) $(EXTRA_ripperX_plugin_mp3enc_DEPENDENCIES) @rm -f ripperX_plugin-mp3enc$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_mp3enc_OBJECTS) $(ripperX_plugin_mp3enc_LDADD) $(LIBS) ripperX_plugin-musepack$(EXEEXT): $(ripperX_plugin_musepack_OBJECTS) $(ripperX_plugin_musepack_DEPENDENCIES) $(EXTRA_ripperX_plugin_musepack_DEPENDENCIES) @rm -f ripperX_plugin-musepack$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_musepack_OBJECTS) $(ripperX_plugin_musepack_LDADD) $(LIBS) ripperX_plugin-oggenc$(EXEEXT): $(ripperX_plugin_oggenc_OBJECTS) $(ripperX_plugin_oggenc_DEPENDENCIES) $(EXTRA_ripperX_plugin_oggenc_DEPENDENCIES) @rm -f ripperX_plugin-oggenc$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_oggenc_OBJECTS) $(ripperX_plugin_oggenc_LDADD) $(LIBS) ripperX_plugin-toolame$(EXEEXT): $(ripperX_plugin_toolame_OBJECTS) $(ripperX_plugin_toolame_DEPENDENCIES) $(EXTRA_ripperX_plugin_toolame_DEPENDENCIES) @rm -f ripperX_plugin-toolame$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_toolame_OBJECTS) $(ripperX_plugin_toolame_LDADD) $(LIBS) ripperX_plugin-xingmp3enc$(EXEEXT): $(ripperX_plugin_xingmp3enc_OBJECTS) $(ripperX_plugin_xingmp3enc_DEPENDENCIES) $(EXTRA_ripperX_plugin_xingmp3enc_DEPENDENCIES) @rm -f ripperX_plugin-xingmp3enc$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_xingmp3enc_OBJECTS) $(ripperX_plugin_xingmp3enc_LDADD) $(LIBS) ripperX_plugin_tester$(EXEEXT): $(ripperX_plugin_tester_OBJECTS) $(ripperX_plugin_tester_DEPENDENCIES) $(EXTRA_ripperX_plugin_tester_DEPENDENCIES) @rm -f ripperX_plugin_tester$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_plugin_tester_OBJECTS) $(ripperX_plugin_tester_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-8hz-mp3.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-bladeenc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-cdparanoia.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-encode.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-flac.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-gogo.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-l3enc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-lame.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-mp3enc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-musepack.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-oggenc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-toolame.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin-xingmp3enc.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripperX_plugin_tester.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ripperX-2.8.0/plugins/ripperX_plugin-8hz-mp3.c000066400000000000000000000045661233655711300212330ustar00rootroot00000000000000 #include #include #include #include #include #define A8HZ_MP3_OUTPUT_BUF_LENGTH 1024 #define A8HZ_MP3_OUTPUT_LINE_LENGTH 32 #define CD_SECTORS_PER_FRAME (float)1.959 #define PRINTOUT_INTERVAL 0.5 int a8hz_mp3_read_stat (unsigned *current); int find_a8hz_mp3_output_read_offset (char *buf, int begin, int end); void print_msg (int length, int current); int a8hz_mp3_read_stat (unsigned int *current) { static char buf[A8HZ_MP3_OUTPUT_BUF_LENGTH]; int temp_offset, read_offset; ssize_t bytes_read; int bytes_avail, count; static int prev_bytes_avail; ioctl (0, FIONREAD, &bytes_avail); if (bytes_avail < 4 * A8HZ_MP3_OUTPUT_LINE_LENGTH) { if (bytes_avail == prev_bytes_avail) /* nothing available, let's wait */ return -1; else { /* Record available bytes, and let's just wait */ prev_bytes_avail = bytes_avail; return -1; } } prev_bytes_avail = -1; count = 0; do { bytes_read = read (0, (void *) buf, sizeof (buf)); temp_offset = bytes_read - 4 * A8HZ_MP3_OUTPUT_LINE_LENGTH - 1; read_offset = find_a8hz_mp3_output_read_offset (buf, temp_offset, sizeof (buf) - 1); if (read_offset < 0 || read_offset > sizeof (buf) - A8HZ_MP3_OUTPUT_LINE_LENGTH) { if (count == 0) return -1; else break; } sscanf (buf + read_offset, "%u", current); /* Convert it to cd sector unit */ *current *= CD_SECTORS_PER_FRAME; count++; } while (bytes_read == sizeof (buf)); return 0; } int find_a8hz_mp3_output_read_offset (char *buf, int begin, int end) { int i; i = begin; do { while (buf[i] != 'F' && i <= end - 5) i++; if (buf[i + 1] == 'r' && isdigit (buf[i + 11])) return i + 5; else i++; } while (i <= end - 5); return -1; } // print out [P 0.xxxx]\n void print_msg (int length, int current) { printf ("[P "); printf ("%f]\n", (double) current / (double) length); } int main (int argc, char **argv) { int begin, length; unsigned int current; if (argc != 3) { fprintf (stderr, "This is ripperX plugin for 8hz-mp3. Syntax is\n" "ripperX_plugin-8hz-mp3 beginning_sector length_in_sector\n"); exit (1); } sscanf (argv[1], "%d", &begin); sscanf (argv[2], "%d", &length); while (1) { if (a8hz_mp3_read_stat (¤t) == 0) print_msg (length, current); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-bladeenc.c000066400000000000000000000013361233655711300215520ustar00rootroot00000000000000 #include #include #include #include #define OUTPUT_BUF_LENGTH 4096 #define PRINTOUT_INTERVAL 0.5 int bladeenc_read_stat (double *current) { char temp[OUTPUT_BUF_LENGTH]; char string[OUTPUT_BUF_LENGTH]; int bytes_read; /* Grab new ouput from 'bladeenc' */ bytes_read = read (0, (void *) temp, sizeof (temp)); if (bytes_read) { sscanf (temp, "Status: %s", string); *current = atof (string) / 100.0; return (0); } return (-1); } int main (int argc, char **argv) { double current = 0; while (1) { if (bladeenc_read_stat (¤t) == 0) /* print message in form [P 0.xxxxx]\n */ printf ("[P %f]\n", current); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-cdparanoia.c000066400000000000000000000060151233655711300221150ustar00rootroot00000000000000 #include #include #include #include #include #include #define CDPARANOIA_OUTPUT_BUF_LENGTH 1024 #define CDPARANOIA_OUTPUT_LINE_LENGTH 74 #define CDPARANOIA_STAT_LENGTH 42 #define CDPARANOIA_GRAPH_LENGTH 30 #define PRINTOUT_INTERVAL 0.5 extern int errno; int cdparanoia_read_stat (unsigned *current, char **graph_string); int find_cdparanoia_output_read_offset (char *buf, int begin, int end); void print_msg (int begin, int length, int current, char *graph); int cdparanoia_read_stat (unsigned int *current, char **graph_string) { extern int errno; static char buf[CDPARANOIA_OUTPUT_BUF_LENGTH]; static char status[CDPARANOIA_STAT_LENGTH + 1]; static char graph[CDPARANOIA_GRAPH_LENGTH + 1]; ssize_t bytes_read; int bytes_avail; static int prev_bytes_avail = -1; int read_offset, temp_offset, count; ioctl (0, FIONREAD, &bytes_avail); if (bytes_avail < 4 * CDPARANOIA_OUTPUT_LINE_LENGTH) { if (bytes_avail == prev_bytes_avail) /* nothing available, let's wait */ return -1; else { /* Record available bytes, and let's just wait */ prev_bytes_avail = bytes_avail; return -1; } } prev_bytes_avail = -1; count = 0; do { bytes_read = read (0, (void *) buf, sizeof (buf)); temp_offset = bytes_read - 4 * CDPARANOIA_OUTPUT_LINE_LENGTH - 1; read_offset = find_cdparanoia_output_read_offset (buf, temp_offset, sizeof (buf) - 1); if (read_offset < 0 || read_offset > sizeof (buf) - CDPARANOIA_OUTPUT_LINE_LENGTH) { if (count == 0) return -1; else break; } strncpy (status, buf + read_offset, sizeof (status)); status[sizeof (status) - 1] = '\0'; count++; } while (bytes_read == sizeof (buf)); strncpy (graph, status, sizeof (graph)); graph[sizeof (graph) - 1] = '\0'; *graph_string = graph; temp_offset = CDPARANOIA_GRAPH_LENGTH + 1; sscanf (status + temp_offset + 1, "%u", current); return 0; } int find_cdparanoia_output_read_offset (char *buf, int begin, int end) { int i; i = begin; do { while (buf[i] != '=' && i <= end - 16) i++; if (buf[i + 3] == 'P' && isdigit (buf[i + 16 + CDPARANOIA_GRAPH_LENGTH + 3])) return i + 16; else i++; } while (i <= end - 16); return -1; } // print out [P 0.xxxx "----> "]\n void print_msg (int begin, int length, int current, char *graph) { printf ("[P "); printf ("%f ", (double) (current - begin) / (double) length); printf ("\"%s\"]\n", graph); } int main (int argc, char **argv) { int begin, length; unsigned int current; char *graph_string; if (argc != 3) { fprintf (stderr, "This is ripperX plugin for cdparanoia. Syntax is\n" "ripperX_plugin-cdparanoia beginning_sector length_in_sector\n"); exit (1); } sscanf (argv[1], "%d", &begin); sscanf (argv[2], "%d", &length); while (1) { if (cdparanoia_read_stat (¤t, &graph_string) == 0) print_msg (begin, length, current, graph_string); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-encode.c000066400000000000000000000051701233655711300212520ustar00rootroot00000000000000 #include #include #include #include #include #include #define AENCODER_OUTPUT_BUF_LENGTH 1024 #define AENCODER_OUTPUT_LINE_LENGTH 19 #define AENCODER_STATUS_LENGTH 5 #define CD_SECTORS_PER_FRAME (float)1.959 #define PRINTOUT_INTERVAL 0.5 int aEncoder_read_stat (unsigned *current); int find_aEncoder_output_read_offset (char *buf, int begin, int end); void print_msg (int length, int current); int aEncoder_read_stat (unsigned int *current) { static char buf[AENCODER_OUTPUT_BUF_LENGTH]; static char status[AENCODER_STATUS_LENGTH]; int temp_offset, read_offset; ssize_t bytes_read; int bytes_avail, count; static int prev_bytes_avail; ioctl (0, FIONREAD, &bytes_avail); if (bytes_avail < 4 * AENCODER_OUTPUT_LINE_LENGTH) { if (bytes_avail == prev_bytes_avail) /* nothing available, let's wait */ return -1; else { /* Record available bytes, and let's just wait */ prev_bytes_avail = bytes_avail; return -1; } } prev_bytes_avail = -1; count = 0; do { bytes_read = read (0, (void *) buf, sizeof (buf)); temp_offset = bytes_read - 4 * AENCODER_OUTPUT_LINE_LENGTH - 1; read_offset = find_aEncoder_output_read_offset (buf, temp_offset, sizeof (buf) - 1); if (read_offset < 0 || read_offset > sizeof (buf) - AENCODER_OUTPUT_LINE_LENGTH) { if (count == 0) return -1; else break; } strncpy (status, buf + read_offset, sizeof (status)); status[sizeof (status) - 1] = '\0'; sscanf (status, "%u", current); /* Convert it to cd sector unit */ *current *= CD_SECTORS_PER_FRAME; count++; } while (bytes_read == sizeof (buf)); if (*current != 0) return 0; return -1; } int find_aEncoder_output_read_offset (char *buf, int begin, int end) { int i; i = begin; do { while (buf[i] != '[' && i <= end - 5) i++; if (buf[i + 1] == ' ' && isdigit (buf[i + 5])) return i + 2; else i++; } while (i <= end - 5); return -1; } // print out [P 0.xxxx]\n void print_msg (int length, int current) { printf ("[P "); printf ("%f]\n", (double) current / (double) length); } int main (int argc, char **argv) { int begin, length; unsigned int current; if (argc != 3) { fprintf (stderr, "This is ripperX plugin for the ISO encoder version 2. Syntax is\n" "ripperX_plugin-encoder beginning_sector length_in_sector\n"); exit (1); } sscanf (argv[1], "%d", &begin); sscanf (argv[2], "%d", &length); print_msg (length, 0); while (1) { if (aEncoder_read_stat (¤t) == 0) print_msg (length, current); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-flac.c000066400000000000000000000020441233655711300207170ustar00rootroot00000000000000 #include #include #include #include #include #define FLAC_OUTPUT_BUF_LENGTH 160 #define PRINTOUT_INTERVAL 0.5 void strip_nulls(char* input, int len) { int i; for (i = 0; i < len; i++) { if (input[i] == '\0') { input[i] = ' '; } } } int flac_read_stat (unsigned int *current) { char temp[FLAC_OUTPUT_BUF_LENGTH]; int bytes_read; char *p; char *q; /* Grab new ouput from 'flac' */ bytes_read = read (0, (void *) temp, sizeof (temp)); if (bytes_read) { /* strip_nulls(temp, bytes_read); */ if (p = (char *)strstr(temp, "wav: ")) { /* we found the string we need */ p += 5; if (q = (char *)strchr(p, '%')) { *q = '\0'; /* terminate */ *current = atoi(p); return (0); } } } return (-1); } int main (int argc, char **argv) { unsigned int current = 0; while (1) { if (flac_read_stat (¤t) == 0) /* print message in form [P 0.xxxxx]\n */ printf ("[P %f]\n", (double) current / 100.0 ); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-gogo.c000066400000000000000000000016461233655711300207540ustar00rootroot00000000000000 #include #include #include #include #define GOGO_OUTPUT_BUF_LENGTH 1024 #define PRINTOUT_INTERVAL 0.5 void strip_nulls(char* input, int len) { int i; for (i = 0; i < len; i++) { if (input[i] == '\0') { input[i] = ' '; } } } int gogo_read_stat (unsigned int *current, unsigned int *length) { char temp[GOGO_OUTPUT_BUF_LENGTH]; int bytes_read; /* Grab new ouput from 'gogo' */ bytes_read = read (0, (void *) temp, sizeof (temp)); if (bytes_read) { strip_nulls(temp, bytes_read); sscanf (temp, "{ %u/ %u}", current, length); return (0); } return (-1); } int main (int argc, char **argv) { unsigned int length = 1; unsigned int current = 0; while (1) { if (gogo_read_stat (¤t, &length) == 0) /* print message in form [P 0.xxxxx]\n */ printf ("[P %f]\n", (double) current / (double) length); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-l3enc.c000066400000000000000000000015141233655711300210170ustar00rootroot00000000000000 #include #include #include #include #define OUTPUT_BUF_LENGTH 4096 #define OFFSET_LENGTH 22 #define PRINTOUT_INTERVAL 0.5 int l3enc_read_stat (unsigned int *percent) { char temp[OUTPUT_BUF_LENGTH]; char *string1; int bytes_read; /* Grab new ouput from 'l3enc' */ bytes_read = read (0, (void *) temp, sizeof (temp)); /* This is ugly, but then again so is the output of l3enc */ if (bytes_read > OFFSET_LENGTH) { string1 = temp + OFFSET_LENGTH; string1[3] = 0; *percent = atoi (string1); return (0); } return (-1); } int main (int argc, char **argv) { unsigned int percent = 0; while (1) { if (l3enc_read_stat (&percent) == 0) /* print message in form [P 0.xxxxx]\n */ printf ("[P %f]\n", ((float) (percent)) / 100.0); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-lame.c000066400000000000000000000014721233655711300207340ustar00rootroot00000000000000 #include #include #include #include /* plugin for lame v3.50. WILL NOT WORK for 3.13 */ #define OUTPUT_BUF_LENGTH 4096 #define OFFSET_LENGTH 16 #define PRINTOUT_INTERVAL 0.5 int lame_read_stat (double *current) { char temp[OUTPUT_BUF_LENGTH]; int bytes_read; char percent = '\0'; /* Grab new ouput from 'lame' */ bytes_read = read (0, (void *) temp, sizeof (temp)-1); if (bytes_read > 0) { temp[bytes_read] = '\0'; sscanf (temp, " %*d/%*d ( %lg%c", current, &percent); *current /= 100; } return (percent == '%') ? 0 : -1; } int main (int argc, char **argv) { double current = 0.0; while (1) { if (lame_read_stat (¤t) == 0) /* print message in form [P 0.xxxxx]\n */ printf ("[P %f]\n", current); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-mp3enc.c000066400000000000000000000013461233655711300212030ustar00rootroot00000000000000 #include #include #include #include #define OUTPUT_BUF_LENGTH 1024 #define PRINTOUT_INTERVAL 0.5 int read_stat (unsigned int *current, unsigned int *length) { char temp[OUTPUT_BUF_LENGTH]; int bytes_read; /* Grab new ouput from 'gogo' */ bytes_read = read (0, (void *) temp, sizeof (temp)); if (bytes_read) { sscanf (temp, "%u / %u", current, length); return (0); } return (-1); } int main (int argc, char **argv) { unsigned int length = 1; unsigned int current = 0; while (1) { if (read_stat (¤t, &length) == 0) /* print message in form [P 0.xxxxx]\n */ printf ("[P %f]\n", (double) current / (double) length); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-musepack.c000066400000000000000000000027411233655711300216260ustar00rootroot00000000000000 #include #include #include #include #include /* plugin for musepack encoder mppenc version 1.16 */ #define MUSE_OUTPUT_BUF_LENGTH 2048 #define PRINTOUT_INTERVAL 1 /* mppenc updates screen at 1 cpu usage second, so use longer PRINTOUT_INTERVAL to help prevent reading partial lines */ int mppenc_read_stat (float *current) { char temp[MUSE_OUTPUT_BUF_LENGTH]; char string[MUSE_OUTPUT_BUF_LENGTH]; int bytes_read; int bytes_left; char *kbps = "kbps"; char *string_ptr; char *temp_ptr; temp_ptr = temp; /* Grab new output from 'mppenc' */ bytes_read = read (0, (void *) temp, sizeof (temp)); if (bytes_read) { temp[bytes_read]='\0'; string_ptr = strstr (temp_ptr, kbps); bytes_left = string_ptr - temp_ptr; if ( (bytes_left < 20) && (bytes_left > 8) ) { /*discard the long initial header or fragments*/ if ( temp[0] == '\015' ) { temp_ptr = temp; temp_ptr++; strcpy( string , temp_ptr ); } else { strcpy( string , temp); } sscanf (string, "%f", current); /*pickup the first number in the string = % done */ if (!(*current > 100 || *current <= 0 )) /*just in case bad value */ return (0); } } return (-1); } int main (int argc, char **argv) { float current = 0.0; printf ("[P 0.00]\n"); while (1) { if (mppenc_read_stat (¤t) == 0) /* print message in form [P 0.xxxxx]\n */ printf ("[P %f]\n", current / 100.0); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-oggenc.c000066400000000000000000000024621233655711300212600ustar00rootroot00000000000000// strndup is a GNU extension: #define _GNU_SOURCE #include #include #include #include #include #define OGG_OUTPUT_BUF_LENGTH 2048 #define PRINTOUT_INTERVAL 0.5 void strip_shit(char* input, int len) { int i; for (i = 0; i < len; i++) { if (input[i] < ' ' || input[i] > 'z') { input[i] = ' '; } } } int extract_perc(char* input, float *result) { char* bpos; char* epos; char* subs; size_t ipos; bpos = strchr(input, '\x5b'); epos = strchr(input, '\x25'); if (bpos != NULL && epos != NULL && epos > bpos) { ipos = (size_t)(epos - bpos); subs = strndup(bpos + 1, ipos - 1); sscanf(subs, "%f", result); return 0; } else { return -1; } } int ogg_read_stat (float *perc) { char temp[OGG_OUTPUT_BUF_LENGTH]; int bytes_read; char input[OGG_OUTPUT_BUF_LENGTH]; /* Grab new ouput from 'oggenc' */ bytes_read = read (0, (void *) temp, sizeof (temp)); if (bytes_read) { strip_shit(temp, bytes_read); return extract_perc(temp, perc); } return (-1); } int main (int argc, char **argv) { float perc = 0; while (1) { if (ogg_read_stat (&perc) == 0) /* print message in form [P 0.xxxxx]\n */ printf ("[P %f]\n", perc / 100 ); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-toolame.c000066400000000000000000000016231233655711300214540ustar00rootroot00000000000000 #include #include #include #include /* plugin for toolame versin 0.2i */ #define OUTPUT_BUF_LENGTH 1024 #define OFFSET_LENGTH 16 #define PRINTOUT_INTERVAL 0.2 int toolame_read_stat (int *current) { char temp[OUTPUT_BUF_LENGTH]; char string[100]; char *string1; int bytes_read; /* Grab new ouput from 'toolame' */ bytes_read = read (0, (void *) temp, sizeof (temp)); if (bytes_read > OFFSET_LENGTH) { sscanf (&temp[1], "%s]", string); *current = atoi(string); return (0); } return (-1); } int main (int argc, char **argv) { int begin, length; int current; sscanf (argv[1], "%d", &begin); sscanf (argv[2], "%d", &length); while (1) { if (toolame_read_stat (¤t) == 0) { printf ("[P %f]\n", ((double) current / (double) length) ); } usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin-xingmp3enc.c000066400000000000000000000013251233655711300220660ustar00rootroot00000000000000 #include #include #include #include #define OUTPUT_BUF_LENGTH 4096 #define PRINTOUT_INTERVAL 0.5 int xingenc_read_stat (double *current) { char temp[OUTPUT_BUF_LENGTH]; char string[OUTPUT_BUF_LENGTH]; int bytes_read; /* Grab new ouput from 'xingenc' */ bytes_read = read (0, (void *) temp, sizeof (temp)); if (bytes_read) { sscanf (temp, " %s%% [", string); *current = atof (string) / 100.0; return (0); } return (-1); } int main (int argc, char **argv) { double current = 0; while (1) { if (xingenc_read_stat (¤t) == 0) /* print message in form [P 0.xxxxx]\n */ printf ("[P %f]\n", current); usleep (PRINTOUT_INTERVAL * 1000000); } } ripperX-2.8.0/plugins/ripperX_plugin_tester.c000066400000000000000000000174531233655711300214140ustar00rootroot00000000000000 #include #include #include #include #include #include #include #include #include #define TRUE 1 #define FALSE 0 #define PLUGIN_MSG_PARSE_ERR -1 // also interpreted as 'no more output' #define PLUGIN_PROGRESS_MSG 0 #define PLUGIN_WARN_MSG 1 #define PLUGIN_ERR_MSG 2 #define CHECK_INTERVAL 0.475 int open_a_pty (int *pty, int *tty); char **create_argv_for_execution_using_shell (char *command); int execute_ripper_encoder_with_plugin (char **program_argv, char **plugin_argv, pid_t * program_pid, pid_t * plugin_pid, int *read_fd); void err_handler (const char *msg) { fprintf (stderr, "Error : %s\n", msg); } int read_and_process_plugin_output (int read_fd, double *progress, char *msg); int parse_plugin_output (char *out, double *progress, char *msg); int add_argv (char **dest, const char *content) { size_t i; i = 0; while (content[i++] != '\0'); if ((*dest = (char*)malloc (i)) == NULL) { err_handler ("Cannot allocate memory"); return FALSE; } strcpy (*dest, content); return TRUE; } int open_a_pty (int *pty, int *tty) { char line[12]; char *p1, *p2; const char *cp; int i; sprintf (line, "/dev/ptyXX"); p1 = &line[8]; p2 = &line[9]; for (cp = "pqrstuvwxyzPQRST"; *cp; cp++) { struct stat stb; *p1 = *cp; *p2 = '0'; /* * This stat() check is just to keep us from * looping through all 256 combinations if there * aren't that many ptys available. */ if (stat (line, &stb) < 0) break; for (i = 0; i < 16; i++) { *p2 = "0123456789abcdef"[i]; *pty = open (line, O_RDWR); if (*pty > 0) { line[5] = 't'; /* Now open appropriate tty */ if ((*tty = open (line, O_RDWR)) < 0) { line[5] = 'p'; close (*pty); continue; } return 0; } } } return -1; } char ** create_argv_for_execution_using_shell (char *command) { char **argv; const char * shell = "/bin/bash"; if ((argv = (char **) malloc (sizeof (char *) * 4)) == NULL) { err_handler ("malloc failed"); return NULL; } argv[0] = NULL; argv[1] = NULL; argv[2] = NULL; argv[3] = NULL; if (add_argv (&(argv[0]), shell) == FALSE) return NULL; if (add_argv (&(argv[1]), "-c") == FALSE) return NULL; if (add_argv (&(argv[2]), command) == FALSE) return NULL; return argv; } int execute_ripper_encoder_with_plugin (char **program_argv, char **plugin_argv, pid_t * program_pid, pid_t * plugin_pid, int *read_fd) { int pty_fd0, tty_fd0, pty_fd1, tty_fd1; pid_t pid; /* Open two pty/tty pairs */ if (open_a_pty (&pty_fd0, &tty_fd0) < 0) { err_handler ("Cannot open pty/tty pair"); return -1; } if (open_a_pty (&pty_fd1, &tty_fd1) < 0) { close (pty_fd0); close (tty_fd0); err_handler ("Cannot open pty/tty pair"); return -1; } // fork & exec & link plugin if ((pid = fork ()) < 0) { err_handler ("Cannot fork"); return -1; } *plugin_pid = pid; if (pid == 0) { // We're in the child process // save stderr int stderr_fd; stderr_fd = dup (2); dup2 (pty_fd0, 0); dup2 (tty_fd1, 1); execvp (plugin_argv[0], plugin_argv); dup2 (stderr_fd, 2); perror ("Failed to exec plugin"); _exit (127); } // we're in the parent process close (pty_fd0); close (tty_fd1); *read_fd = pty_fd1; // fork the real program if ((pid = fork ()) < 0) { err_handler ("Cannot fork"); return -1; } *program_pid = pid; if (pid == 0) { // We're in the child process // save stderr int stderr_fd; stderr_fd = dup (2); dup2 (tty_fd0, 1); dup2 (tty_fd0, 2); execvp (program_argv[0], program_argv); dup2 (stderr_fd, 2); perror ("Failed to exec the specified program"); _exit (127); } close (tty_fd0); return 0; } int read_and_process_plugin_output (int read_fd, double *progress, char *msg) { int bytes_avail; char buf[1024]; FILE *read_stream; ioctl (read_fd, FIONREAD, &bytes_avail); if (bytes_avail <= 0) { fprintf (stderr, "*** No report available from plugin. Ctrl-C to stop\n"); // the plugin hasn't printed anything yet. return PLUGIN_MSG_PARSE_ERR // which the caller should ignore. return PLUGIN_MSG_PARSE_ERR; } // all the lines are terminated with '\n' and if the plugin started to // print something then it'll finish it soon. so using fgets is // reasonable read_stream = fdopen (read_fd, "r"); if (fgets (buf, sizeof (buf), read_stream) == NULL) return PLUGIN_MSG_PARSE_ERR; fprintf (stderr, "*** Output read from plugin : %s", buf); return parse_plugin_output (buf, progress, msg); } int parse_plugin_output (char *out, double *progress, char *msg) { int pos, done, s, d; char ch; *progress = -1; msg[0] = '\0'; pos = 0; while (out[pos] != '\0' && out[pos] != '[') pos++; // parse err point 0 : cannot find beginning '[' if (out[pos] != '[') { fprintf (stderr, "*** parse err at : 0 : cannot find leading '['\n"); return PLUGIN_MSG_PARSE_ERR; } pos++; // read the type character ch = out[pos++]; if (ch == 'P') // if it's a msg reporting progess, read the percentage sscanf (out + pos, "%lf", progress); while (out[pos] != '\0' && out[pos] != '"' && out[pos] != ']') pos++; if (out[pos] == '"') { // we've got some message pos++; // copy the message done = 0; s = pos; d = 0; while (!done) { if (out[s] != '\\' && out[s] != '"' && out[s] != ']' && out[s] != '\0') msg[d++] = out[s++]; else if (out[s] == '\\') { msg[d] = out[s + 1]; s += 2; d++; } else { msg[d] = '\0'; done = 1; } } } switch (ch) { case 'P': // parse err point 1 : invalid progress if (*progress < 0 || *progress > 1) { fprintf (stderr, "*** parse err at : 1 : invalid progress : %f\n", *progress); return PLUGIN_MSG_PARSE_ERR; } return PLUGIN_PROGRESS_MSG; case 'W': // parse err point 2 : warning report without msg if (msg[0] == '\0') { fprintf (stderr, "*** parse err at : 2 : warning report w/o msg\n"); return PLUGIN_MSG_PARSE_ERR; } return PLUGIN_WARN_MSG; case 'E': // parse err point 3 : error report without msg if (msg[0] == '\0') { fprintf (stderr, "*** parse err at : 3 : error report w/o msg\n"); return PLUGIN_MSG_PARSE_ERR; } return PLUGIN_ERR_MSG; default: return PLUGIN_MSG_PARSE_ERR; } } int main (int argc, char **argv) { char *pg_com, *pi_com; char **pg_argv, **pi_argv; pid_t pg_pid, pi_pid; int read_fd; double progress; char msg[1024]; int rs; if (argc != 3) { fprintf (stderr, "Syntax: ripperX_plugin_tester" " \"program command with args\" \"plugin command\"\n"); exit (1); } pg_com = argv[1]; pi_com = argv[2]; fprintf (stdout, "***Executing \"%s\"\n" "with plugin \"%s\"\n", pg_com, pi_com); pg_argv = create_argv_for_execution_using_shell (pg_com); pi_argv = create_argv_for_execution_using_shell (pi_com); pg_pid = 0; pi_pid = 0; if (execute_ripper_encoder_with_plugin (pg_argv, pi_argv, &pg_pid, &pi_pid, &read_fd) < 0) exit (1); while (1) { usleep (CHECK_INTERVAL * 1000000); printf ("\n"); if ((rs = read_and_process_plugin_output (read_fd, &progress, msg)) == PLUGIN_MSG_PARSE_ERR) { //if (msg != NULL) //free(msg); fprintf (stderr, "*** PLUGIN_MSG_PARSE_ERR returned\n"); continue; } switch (rs) { case PLUGIN_PROGRESS_MSG: printf ("Report type : progress, Progress : %f,\nMsg : %s\n", progress, msg); break; case PLUGIN_WARN_MSG: printf ("Report type : warning,\nMsg : %s\n", msg); break; case PLUGIN_ERR_MSG: printf ("Report type : error,\nMsg : %s\n", msg); break; } } return 0; } ripperX-2.8.0/po/000077500000000000000000000000001233655711300135765ustar00rootroot00000000000000ripperX-2.8.0/po/ChangeLog000066400000000000000000000006111233655711300153460ustar00rootroot000000000000002010-12-16 gettextize * Makefile.in.in: Upgrade to gettext-0.18.1. * Rules-quot: New file, from gettext-0.18.1. * boldquot.sed: New file, from gettext-0.18.1. * en@boldquot.header: New file, from gettext-0.18.1. * en@quot.header: New file, from gettext-0.18.1. * insert-header.sin: New file, from gettext-0.18.1. * quot.sed: New file, from gettext-0.18.1. ripperX-2.8.0/po/LINGUAS000066400000000000000000000000541233655711300146220ustar00rootroot00000000000000# available languages en_GB es it gl de fr ripperX-2.8.0/po/Makefile.in.in000066400000000000000000000374411233655711300162610ustar00rootroot00000000000000# Makefile for PO directory in any package using GNU gettext. # Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper # # This file can be copied and used freely without restrictions. It can # be used in projects which are not available under the GNU General Public # License but which still want to provide support for the GNU gettext # functionality. # Please note that the actual code of GNU gettext is covered by the GNU # General Public License and is *not* in the public domain. # # Origin: gettext-0.18 GETTEXT_MACRO_VERSION = 0.18 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ SHELL = /bin/sh @SET_MAKE@ srcdir = @srcdir@ top_srcdir = @top_srcdir@ VPATH = @srcdir@ prefix = @prefix@ exec_prefix = @exec_prefix@ datarootdir = @datarootdir@ datadir = @datadir@ localedir = @localedir@ gettextsrcdir = $(datadir)/gettext/po INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, # @install_sh@ does not start with $(SHELL), so we add it. # In automake >= 1.10, @mkdir_p@ is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. mkinstalldirs = $(SHELL) @install_sh@ -d install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) MSGFMT_ = @MSGFMT@ MSGFMT_no = @MSGFMT@ MSGFMT_yes = @MSGFMT_015@ MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) MSGMERGE = msgmerge MSGMERGE_UPDATE = @MSGMERGE@ --update MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter POFILES = @POFILES@ GMOFILES = @GMOFILES@ UPDATEPOFILES = @UPDATEPOFILES@ DUMMYPOFILES = @DUMMYPOFILES@ DISTFILES.common = Makefile.in.in remove-potcdate.sin \ $(DISTFILES.common.extra1) $(DISTFILES.common.extra2) $(DISTFILES.common.extra3) DISTFILES = $(DISTFILES.common) Makevars POTFILES.in \ $(POFILES) $(GMOFILES) \ $(DISTFILES.extra1) $(DISTFILES.extra2) $(DISTFILES.extra3) POTFILES = \ CATALOGS = @CATALOGS@ # Makevars gets inserted here. (Don't remove this line!) .SUFFIXES: .SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update .po.mo: @echo "$(MSGFMT) -c -o $@ $<"; \ $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ all: check-macro-version all-@USE_NLS@ all-yes: stamp-po all-no: # Ensure that the gettext macros and this Makefile.in.in are in sync. check-macro-version: @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ exit 1; \ } # $(srcdir)/$(DOMAIN).pot is only created when needed. When xgettext finds no # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. # In this case, stamp-po is a nop (i.e. a phony target). # stamp-po is a timestamp denoting the last time at which the CATALOGS have # been loosely updated. Its purpose is that when a developer or translator # checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, # "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent # invocations of "make" will do nothing. This timestamp would not be necessary # if updating the $(CATALOGS) would always touch them; however, the rule for # $(POFILES) has been designed to not touch files that don't need to be # changed. stamp-po: $(srcdir)/$(DOMAIN).pot test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ echo "touch stamp-po" && \ echo timestamp > stamp-poT && \ mv stamp-poT stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', # otherwise packages like GCC can not be built if only parts of the source # have been downloaded. # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \ package_gnu='GNU '; \ else \ package_gnu=''; \ fi; \ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ else \ msgid_bugs_address='$(PACKAGE_BUGREPORT)'; \ fi; \ case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ *) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --package-name="$${package_gnu}@PACKAGE@" \ --package-version='@VERSION@' \ --msgid-bugs-address="$$msgid_bugs_address" \ ;; \ esac test ! -f $(DOMAIN).po || { \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ if cmp $(DOMAIN).1po $(DOMAIN).2po >/dev/null 2>&1; then \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(DOMAIN).po; \ else \ rm -f $(DOMAIN).1po $(DOMAIN).2po $(srcdir)/$(DOMAIN).pot && \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ else \ mv $(DOMAIN).po $(srcdir)/$(DOMAIN).pot; \ fi; \ } # This rule has no dependencies: we don't need to update $(DOMAIN).pot at # every "make" invocation, only create it when it is missing. # Only "make $(DOMAIN).pot-update" or "make dist" will force an update. $(srcdir)/$(DOMAIN).pot: $(MAKE) $(DOMAIN).pot-update # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. $(POFILES): $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) \ && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ esac; \ }; \ else \ $(MAKE) $${lang}.po-create; \ fi install: install-exec install-data install-exec: install-data: install-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ for file in $(DISTFILES.common) Makevars.template; do \ $(INSTALL_DATA) $(srcdir)/$$file \ $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ for file in Makevars; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi install-data-no: all install-data-yes: all @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ if test -r $$cat; then realcat=$$cat; else realcat=$(srcdir)/$$cat; fi; \ $(INSTALL_DATA) $$realcat $(DESTDIR)$$dir/$(DOMAIN).mo; \ echo "installing $$realcat as $(DESTDIR)$$dir/$(DOMAIN).mo"; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ ln -s ../LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ ln $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo 2>/dev/null || \ cp -p $(DESTDIR)$(localedir)/$$lang/LC_MESSAGES/$(DOMAIN).mo $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ echo "installing $$realcat link as $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo"; \ fi; \ done; \ done install-strip: install installdirs: installdirs-exec installdirs-data installdirs-exec: installdirs-data: installdirs-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ $(mkdir_p) $(DESTDIR)$(gettextsrcdir); \ else \ : ; \ fi installdirs-data-no: installdirs-data-yes: @catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ dir=$(localedir)/$$lang/LC_MESSAGES; \ $(mkdir_p) $(DESTDIR)$$dir; \ for lc in '' $(EXTRA_LOCALE_CATEGORIES); do \ if test -n "$$lc"; then \ if (cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc 2>/dev/null) | grep ' -> ' >/dev/null; then \ link=`cd $(DESTDIR)$(localedir)/$$lang && LC_ALL=C ls -l -d $$lc | sed -e 's/^.* -> //'`; \ mv $(DESTDIR)$(localedir)/$$lang/$$lc $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ (cd $(DESTDIR)$(localedir)/$$lang/$$lc.old && \ for file in *; do \ if test -f $$file; then \ ln -s ../$$link/$$file $(DESTDIR)$(localedir)/$$lang/$$lc/$$file; \ fi; \ done); \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc.old; \ else \ if test -d $(DESTDIR)$(localedir)/$$lang/$$lc; then \ :; \ else \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc; \ mkdir $(DESTDIR)$(localedir)/$$lang/$$lc; \ fi; \ fi; \ fi; \ done; \ done # Define this as empty until I found a useful application. installcheck: uninstall: uninstall-exec uninstall-data uninstall-exec: uninstall-data: uninstall-data-@USE_NLS@ if test "$(PACKAGE)" = "gettext-tools"; then \ for file in $(DISTFILES.common) Makevars.template; do \ rm -f $(DESTDIR)$(gettextsrcdir)/$$file; \ done; \ else \ : ; \ fi uninstall-data-no: uninstall-data-yes: catalogs='$(CATALOGS)'; \ for cat in $$catalogs; do \ cat=`basename $$cat`; \ lang=`echo $$cat | sed -e 's/\.gmo$$//'`; \ for lc in LC_MESSAGES $(EXTRA_LOCALE_CATEGORIES); do \ rm -f $(DESTDIR)$(localedir)/$$lang/$$lc/$(DOMAIN).mo; \ done; \ done check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: mostlyclean: rm -f remove-potcdate.sed rm -f stamp-po rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean rm -f Makefile Makefile.in POTFILES *.mo maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." rm -f stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: $(MAKE) update-po @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. dist2: stamp-po $(DISTFILES) dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ fi; \ for i in 0 1 2 3 4 5 6 7 8 9; do \ if test -f $(srcdir)/ChangeLog.$$i; then \ dists="$$dists ChangeLog.$$i"; \ fi; \ done; \ if test -f $(srcdir)/LINGUAS; then dists="$$dists LINGUAS"; fi; \ for file in $$dists; do \ if test -f $$file; then \ cp -p $$file $(distdir) || exit 1; \ else \ cp -p $(srcdir)/$$file $(distdir) || exit 1; \ fi; \ done update-po: Makefile $(MAKE) $(DOMAIN).pot-update test -z "$(UPDATEPOFILES)" || $(MAKE) $(UPDATEPOFILES) $(MAKE) update-gmo # General rule for creating PO files. .nop.po-create: @lang=`echo $@ | sed -e 's/\.po-create$$//'`; \ echo "File $$lang.po does not exist. If you are a translator, you can create it through 'msginit'." 1>&2; \ exit 1 # General rule for updating PO files. .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ *) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ esac; \ }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "msgmerge for $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "msgmerge for $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi $(DUMMYPOFILES): update-gmo: Makefile $(GMOFILES) @: # Recreate Makefile by invoking config.status. Explicitly invoke the shell, # because execution permission bits may not work on the current file system. # Use @SHELL@, which is the shell determined by autoconf for the use by its # scripts, not $(SHELL) which is hardwired to /bin/sh and may be deficient. Makefile: Makefile.in.in Makevars $(top_builddir)/config.status @POMAKEFILEDEPS@ cd $(top_builddir) \ && @SHELL@ ./config.status $(subdir)/$@.in po-directories force: # Tell versions [3.59,3.63) of GNU make not to export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ripperX-2.8.0/po/Makevars000066400000000000000000000046701233655711300153010ustar00rootroot00000000000000# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = \ --keyword=_ --flag=_:1:pass-c-format \ --keyword=Q_ --flag=Q_:1:pass-c-format \ --keyword=N_ --flag=N_:1:pass-c-format \ --keyword='proper_name:1,"This is a proper name. See the gettext manual, section Names."' \ --keyword='proper_name_utf8:1,"This is a proper name. See the gettext manual, section Names."' \ --flag=error:3:c-format --flag=error_at_line:5:c-format # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = ripperX # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = tmancill@users.sourceforge.net # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = # This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt' # context. Possible values are "yes" and "no". Set this to yes if the # package uses functions taking also a message context, like pgettext(), or # if in $(XGETTEXT_OPTIONS) you define keywords with a context argument. USE_MSGCTXT = no ripperX-2.8.0/po/Makevars.template000066400000000000000000000034161233655711300171100ustar00rootroot00000000000000# Makefile variables for PO directory in any package using GNU gettext. # Usually the message domain is the same as the package name. DOMAIN = $(PACKAGE) # These two variables depend on the location of this directory. subdir = po top_builddir = .. # These options get passed to xgettext. XGETTEXT_OPTIONS = --keyword=_ --keyword=N_ # This is the copyright holder that gets inserted into the header of the # $(DOMAIN).pot file. Set this to the copyright holder of the surrounding # package. (Note that the msgstr strings, extracted from the package's # sources, belong to the copyright holder of the package.) Translators are # expected to transfer the copyright for their translations to this person # or entity, or to disclaim their copyright. The empty string stands for # the public domain; in this case the translators are expected to disclaim # their copyright. COPYRIGHT_HOLDER = Free Software Foundation, Inc. # This is the email address or URL to which the translators shall report # bugs in the untranslated strings: # - Strings which are not entire sentences, see the maintainer guidelines # in the GNU gettext documentation, section 'Preparing Strings'. # - Strings which use unclear terms or require additional context to be # understood. # - Strings which make invalid assumptions about notation of date, time or # money. # - Pluralisation problems. # - Incorrect English spelling. # - Incorrect formatting. # It can be your email address, or a mailing list address where translators # can write to without being subscribed, or the URL of a web page through # which the translators can contact you. MSGID_BUGS_ADDRESS = # This is the list of locale categories, beyond LC_MESSAGES, for which the # message catalogs shall be used. It is usually empty. EXTRA_LOCALE_CATEGORIES = ripperX-2.8.0/po/POTFILES.in000066400000000000000000000004251233655711300153540ustar00rootroot00000000000000src/cddb.c src/cddbp.c src/config_window_handler.c src/dir_window_handler.c src/err_dialog_handler.c src/job_control.c src/main_window_handler.c src/misc_utils.c src/players_manipulation.c src/ripper_encoder_manipulation.c src/select_frame_handler.c src/status_frame_handler.c ripperX-2.8.0/po/Rules-quot000066400000000000000000000034001233655711300155760ustar00rootroot00000000000000# Special Makefile rules for English message catalogs with quotation marks. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot .SUFFIXES: .insert-header .po-update-en en@quot.po-create: $(MAKE) en@quot.po-update en@boldquot.po-create: $(MAKE) en@boldquot.po-update en@quot.po-update: en@quot.po-update-en en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ if mv -f $$tmpdir/$$lang.new.po $$lang.po; then \ :; \ else \ echo "creation of $$lang.po failed: cannot move $$tmpdir/$$lang.new.po to $$lang.po" 1>&2; \ exit 1; \ fi; \ fi; \ else \ echo "creation of $$lang.po failed!" 1>&2; \ rm -f $$tmpdir/$$lang.new.po; \ fi en@quot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@quot.header/g' $(srcdir)/insert-header.sin > en@quot.insert-header en@boldquot.insert-header: insert-header.sin sed -e '/^#/d' -e 's/HEADER/en@boldquot.header/g' $(srcdir)/insert-header.sin > en@boldquot.insert-header mostlyclean: mostlyclean-quot mostlyclean-quot: rm -f *.insert-header ripperX-2.8.0/po/boldquot.sed000066400000000000000000000003311233655711300161210ustar00rootroot00000000000000s/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g s/“/“/g s/â€/â€/g s/‘/‘/g s/’/’/g ripperX-2.8.0/po/de.po000066400000000000000000000446461233655711300145440ustar00rootroot00000000000000# Translation of ripperx to German # Copyright (C) 2000 TeJun Huh . # This file is distributed under the same license as the ripperx package. # Chris Leick , 2009. # msgid "" msgstr "" "Project-Id-Version: ripperx 2.7.2-2\n" "Report-Msgid-Bugs-To: tmancill@users.sourceforge.net\n" "POT-Creation-Date: 2014-02-23 22:41-0500\n" "PO-Revision-Date: 2009-10-07 22:09+0200\n" "Last-Translator: Chris Leick \n" "Language-Team: German \n" "Language: de\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" #: src/cddb.c:663 msgid "Contacting CDDB server..." msgstr "CDDB-Server wird kontaktiert ..." #: src/cddb.c:688 msgid "Grabbing Completed..." msgstr "Aufnahme vervollständigt ..." #: src/cddbp.c:253 #, c-format msgid "Reading Information about track %2d" msgstr "Informationen über Spur %2d werden gelesen" #: src/cddbp.c:272 msgid "Done..." msgstr "Erledigt ..." #: src/config_window_handler.c:87 msgid "General Configuration" msgstr "Allgemeine Einrichtung" #: src/config_window_handler.c:94 msgid "Wav file" msgstr "WAV-Datei" #: src/config_window_handler.c:102 src/config_window_handler.c:140 msgid "File name format: " msgstr "Dateinamenformat: " #: src/config_window_handler.c:117 src/config_window_handler.c:156 msgid "Target Directory: " msgstr "Zielverzeichnis: " #: src/config_window_handler.c:132 msgid "MP3 file" msgstr "MP3-Datei" #: src/config_window_handler.c:175 msgid "Prepend character : " msgstr "Vorangestelltes Zeichen: " #: src/config_window_handler.c:187 msgid "Make Mp3 from existing Wav file" msgstr "MP3 aus existierender WAV-Datei erstellen" #: src/config_window_handler.c:196 msgid "Ask user when specified file exists" msgstr "Benutzer fragen, wenn angegebene Dateien existieren" #: src/config_window_handler.c:205 msgid "Keep wav files" msgstr "WAV-Dateien behalten" #: src/config_window_handler.c:213 src/config_window_handler.c:214 msgid "General" msgstr "Allgemein" #: src/config_window_handler.c:235 msgid "You need to fill every entry in general page" msgstr "Sie müssen jeden Eintrag auf der Hauptseite ausfüllen" #: src/config_window_handler.c:283 msgid "Force search for drive (ignore /dev/cdrom)" msgstr "Suche nach Laufwerk erzwingen (/dev/cdrom ignorieren)" #: src/config_window_handler.c:284 msgid "Disable paranoia (will act like cdda)" msgstr "Paranoia ausschalten (wird sich wie CDDA verhalten)" #: src/config_window_handler.c:285 msgid "Disable extra paranoia" msgstr "Zusätzliche Paranoia ausschalten" #: src/config_window_handler.c:286 msgid "Disable scratch detection" msgstr "Kratzererkennung ausschalten" #: src/config_window_handler.c:287 msgid "Disable scratch repair" msgstr "Kratzerreparatur ausschalten" #: src/config_window_handler.c:307 msgid "Wav Configuration" msgstr "WAV-Einrichtung" #: src/config_window_handler.c:321 msgid "Ripper plugin" msgstr "Ripper-Erweiterung" #: src/config_window_handler.c:356 src/config_window_handler.c:622 msgid "Extra Options: " msgstr "Zusatzoptionen: " #: src/config_window_handler.c:488 msgid "Mp3 Configuration" msgstr "MP3-Einrichtung" #: src/config_window_handler.c:499 msgid "Encoder plugin" msgstr "Kodierer-Erweiterung" #: src/config_window_handler.c:526 msgid "BitRate, Default 128kbits" msgstr "BitRate, Vorgabe 128 kbits" #: src/config_window_handler.c:573 msgid "Use variable bitrate (VBR)" msgstr "Variable Bitrate benutzen (VBR)" #: src/config_window_handler.c:579 msgid "VBR quality (if available)" msgstr "VBR-Qualität (wenn verfügbar)" #: src/config_window_handler.c:589 msgid "0=high quality and bigger files, 9=smaller files" msgstr "0=hohe Qualität und größere Dateien, 9=kleinere Dateien" #: src/config_window_handler.c:593 msgid "Encoder Priority" msgstr "Kodierer-Priorität" #: src/config_window_handler.c:603 msgid "0=high priority, 19=system is responsive while encoding" msgstr "0=hohe Priorität, 19=System ist während der Kodierung zugänglich" #: src/config_window_handler.c:607 msgid "High quality mode" msgstr "Modus mit hoher Qualität" #: src/config_window_handler.c:613 msgid "Include CRC error protection" msgstr "Schutz vor CRC-Fehlern einschließen" #: src/config_window_handler.c:835 src/config_window_handler.c:879 #: src/config_window_handler.c:880 msgid "Players" msgstr "Abspieler" #: src/config_window_handler.c:843 msgid "CD play command: " msgstr "CD-Abspielbefehl: " #: src/config_window_handler.c:852 msgid "CD stop command: " msgstr "CD-Stoppbefehl: " #: src/config_window_handler.c:861 msgid "Wav play command: " msgstr "WAV-Abspielbefehl: " #: src/config_window_handler.c:870 msgid "Mp3 play command: " msgstr "MP3-Abspielbefehl: " #: src/config_window_handler.c:898 msgid "You need to fill every entry in players page" msgstr "Sie müssen jeden Eintrag auf der Abspielseite ausfüllen" #: src/config_window_handler.c:931 msgid "File Configuration" msgstr "Datei-Einrichtung" #: src/config_window_handler.c:938 msgid "Convert spaces to underscores" msgstr "Leerzeichen zu Unterstrichen konvertieren" #: src/config_window_handler.c:944 msgid "Create album subdirectory for each CD" msgstr "Für jede CD Albumunterverzeichnis erstellen" #: src/config_window_handler.c:950 msgid "Create ID3 tag" msgstr "ID3-Etikett erstellen" #: src/config_window_handler.c:956 msgid "Create m3u playlist" msgstr "M3U-Abspielliste erstellen" #: src/config_window_handler.c:965 msgid "Filename format string: " msgstr "Dateinamen-Formatzeichenkette: " #: src/config_window_handler.c:977 msgid "Directory format string: " msgstr "Verzeichnis-Formatzeichenkette: " #: src/config_window_handler.c:991 #, c-format msgid "%a = Artist" msgstr "%a = Interpret" #: src/config_window_handler.c:994 msgid "%v = Album" msgstr "%v = Album" #: src/config_window_handler.c:997 msgid "%# = Track no." msgstr "%# = Spur-Nr." #: src/config_window_handler.c:1000 #, c-format msgid "%s = Song title" msgstr "%s = Liedtitel" #: src/config_window_handler.c:1003 msgid "%y = Year" msgstr "%y = Jahr" #: src/config_window_handler.c:1009 src/config_window_handler.c:1010 msgid "Files" msgstr "Dateien" #: src/config_window_handler.c:1083 msgid "CDDB Configuration" msgstr "CDDB-Einrichtung" #: src/config_window_handler.c:1096 msgid "URL: " msgstr "URL: " #: src/config_window_handler.c:1106 msgid "Port: " msgstr "Port: " #: src/config_window_handler.c:1118 msgid "Use HTTP" msgstr "HTTP benutzen" #: src/config_window_handler.c:1125 msgid "Proxy Server: " msgstr "Proxy-Server: " #: src/config_window_handler.c:1135 msgid "Proxy Port: " msgstr "Proxy-Port: " #: src/config_window_handler.c:1151 msgid "CDDB Cache path: " msgstr "CDDB-Zwischenspeicherpfad: " #: src/config_window_handler.c:1165 msgid "Automatic lookup on startup" msgstr "Automatisches Nachschlagen beim Start" #: src/config_window_handler.c:1186 msgid "You need to specify a server and a port" msgstr "Sie müssen einen Server und einen Port angeben" #: src/config_window_handler.c:1256 src/main_window_handler.c:135 msgid "Configuration" msgstr "Einrichtung" #: src/dir_window_handler.c:76 msgid "Select a directory" msgstr "Wählen Sie ein Verzeichnis" #: src/err_dialog_handler.c:39 msgid "An error has occured while forking" msgstr "Beim Duplizieren eines Prozesses ist ein Fehler aufgetreten" #: src/err_dialog_handler.c:40 msgid "Cannot create pipe" msgstr "Pipe kann nicht erstellt werden" #: src/err_dialog_handler.c:41 msgid "Cannot open /dev/null" msgstr "/dev/null kann nicht geöffnet werden" #: src/err_dialog_handler.c:42 #, fuzzy msgid "Memory allocation error has occurred" msgstr "Bei der Speicherreservierung ist ein Fehler aufgetreten" #: src/err_dialog_handler.c:43 msgid "" "An error has occurred while trying to\n" "reopen a file as a stream (fdopen)" msgstr "" "Beim Versuch, eine Datei als Datenstrom (fdopen)\n" "wieder zu öffnen, ist ein Fehler aufgetreten" #: src/err_dialog_handler.c:44 msgid "Cannot read from the pipe" msgstr "Aus der Pipe kann nicht gelesen werden" #: src/err_dialog_handler.c:45 msgid "Cannot delete file" msgstr "Datei kann nicht gelöscht werden" #: src/err_dialog_handler.c:46 msgid "" "Cannot open configuration file\n" "loading default values" msgstr "" "Einrichtungsdatei kann nicht geöffnet werden\n" "Vorgabewerte werden geladen" #: src/err_dialog_handler.c:47 msgid "Cannot create configuration file ~/.ripperXrc" msgstr "Einrichtungsdatei ~/.ripperXrc kann nicht erstellt werden" #: src/err_dialog_handler.c:48 msgid "" "Cannot open a pty\n" "Maybe all ptys are busy" msgstr "" "Kein pty konnte geöffnet werden\n" "Möglicherweise sind alle ptys belegt" #: src/err_dialog_handler.c:49 msgid "///// use perror msg until here /////" msgstr "///// »perror msg« bis hierher benutzen /////" #: src/err_dialog_handler.c:50 msgid "Too many arguments" msgstr "Zu viele Argumente" #: src/err_dialog_handler.c:51 msgid "Job already in progress" msgstr "Aufgabe ist bereits in Ausführung" #: src/err_dialog_handler.c:52 #, fuzzy msgid "" "Please select a track to rip or encode.\n" "If you did select tracks, they may already have been ripped." msgstr "" "Bitte wählen Sie eine Spur zum Rippen oder Kodieren.\n" "Wenn Sie Spuren gewählt haben, könnten sie bereits gerippt worden sein." #: src/err_dialog_handler.c:53 #, fuzzy msgid "" "Make sure an audio disc is in the drive and that you are\n" "either running ripperX as root, are a member\n" "of the \"cdrom\" group, or otherwise have appropriate\n" "permissions to access the CDROM device.\n" msgstr "" "Stellen Sie sicher, dass eine Audio-CD im Laufwerk ist und dass Sie\n" "entweder root oder ein Mitglied der Gruppe »cdrom« sind oder\n" "dass Sie andernfalls entsprechende Rechte besitzen, um auf\n" "das CDROM-Laufwerk zuzugreifen.\n" #: src/err_dialog_handler.c:54 msgid "The file name is too long" msgstr "Der Dateiname ist zu lang" #: src/err_dialog_handler.c:55 msgid "Some entry(s) are empty" msgstr "Einige Einträge sind leer" #: src/err_dialog_handler.c:56 msgid "An error has occurred while parsing ~/.ripperXrc" msgstr "Beim Auswerten von ~/.ripperXrc ist ein Fehler aufgetreten" #: src/err_dialog_handler.c:57 msgid "Some field(s) are empty. Substituting default value" msgstr "Einige Felder sind leer. Sie werden durch den Vorgabewert ersetzt." #: src/err_dialog_handler.c:58 msgid "Invalid selection" msgstr "Ungültige Auswahl" #: src/err_dialog_handler.c:59 msgid "Could not connect to CDDB server" msgstr "Es kann keine Verbindung mit dem CDDB-Server hergestellt werden" #: src/err_dialog_handler.c:60 msgid "Connection refused from CDDB server" msgstr "Verbindung wurde vom CDDB-Server abgewiesen" #: src/err_dialog_handler.c:61 msgid "CDDB Server Error" msgstr "CDDB-Server-Fehler" #: src/err_dialog_handler.c:62 msgid "CD Not Found in CD Database" msgstr "CD wurde nicht in CD-Datenbank gefunden" #: src/err_dialog_handler.c:63 msgid "Cannot parse the format string" msgstr "Das Zeichenkettenformat kann nicht ausgewertet werden" #: src/err_dialog_handler.c:64 msgid "Plugin not present" msgstr "Erweiterung nicht vorhanden" #: src/err_dialog_handler.c:65 #, fuzzy msgid "" "Error while locking file.\n" "Make sure the WAV dir and MP3 dir paths are correct and\n" "you have permission to write to those directories." msgstr "" "Fehler beim Sperren der Datei.\n" "Stellen Sie sicher, dass die WAV- und MP3-Verzeichnispfade richtig sind\n" "und Sie Schreibrechte auf diese Verzeichnisse haben." #: src/err_dialog_handler.c:66 msgid "The WAV dir is not writable." msgstr "Das WAV-Verzeichnis ist nicht beschreibbar." #: src/err_dialog_handler.c:67 msgid "The MP3 dir is not writable." msgstr "Das MP3-Verzeichnis ist nicht beschreibbar." #: src/err_dialog_handler.c:68 msgid "Cannot create WAV dir" msgstr "WAV-Verzeichnis kann nicht erstellt werden" #: src/err_dialog_handler.c:69 msgid "Cannot create MP3 dir" msgstr "MP3-Verzeichnis kann nicht erstellt werden" #: src/err_dialog_handler.c:70 msgid "Make sure an audio disc is in the CDROM device." msgstr "" "Stellen Sie sicher, dass sich eine Audio-Disk im CDROM-Laufwerk befindet." #: src/err_dialog_handler.c:71 msgid "" "Make sure that you are a member of the the \"cdrom\" group,\n" "or otherwise have appropriate permissions to access the CDROM device." msgstr "" "Stellen Sie sicher, dass Sie Mitglied der Gruppe »cdrom« sind oder dass\n" "Sie andernfalls entsprechende Rechte besitzen, um auf das\n" "CDROM-Laufwerk zuzugreifen." #: src/err_dialog_handler.c:72 msgid "Exception" msgstr "" #: src/err_dialog_handler.c:82 msgid "Abort confirmation" msgstr "Abbruchbestätigung" #: src/err_dialog_handler.c:83 msgid "Do you really want to abort?" msgstr "Wollen Sie wirklich abbrechen?" #: src/err_dialog_handler.c:86 msgid "Wanna delete?" msgstr "Wollen Sie löschen?" #: src/err_dialog_handler.c:87 msgid "Do you want to delete current file?" msgstr "Wollen Sie die aktuelle Datei löschen?" #: src/err_dialog_handler.c:90 msgid "Wanna overwrite?" msgstr "Wollen Sie überschreiben?" #: src/err_dialog_handler.c:91 msgid "The file already exists. Do you want to overwrite?" msgstr "Die Datei existiert bereits. Wollen Sie sie überschreiben?" #: src/err_dialog_handler.c:94 msgid "Enter file name" msgstr "Geben Sie den Dateinamen ein" #: src/err_dialog_handler.c:95 msgid "Enter new file name" msgstr "Geben Sie einen neuen Dateinamen ein" #: src/err_dialog_handler.c:98 msgid "Wanna create config file?" msgstr "Wollen Sie eine Einrichtungsdatei erstellen?" #: src/err_dialog_handler.c:99 msgid "" "Config file ~/.ripperXrc does not exist.\n" "Do you want to create config file?" msgstr "" "Einrichtungsdatei ~/.ripperXrc existiert nicht.\n" "Wollen Sie die Einrichtungsdatei erstellen?" #: src/err_dialog_handler.c:102 src/err_dialog_handler.c:106 msgid "Low diskspace warning" msgstr "Warnung wegen geringem Plattenplatz" #: src/err_dialog_handler.c:103 msgid "" "There is less than 500 megabytes free on the wav partition.\n" " Do you want to continue?" msgstr "" "Auf der WAV-Partition sind weniger als 500 Megabyte frei.\n" " Wollen Sie fortfahren?" #: src/err_dialog_handler.c:107 msgid "" "There is less than 100 megabytes free on the mp3 partition.\n" " Do you want to continue?" msgstr "" "Auf der MP3-Partition sind weniger als 100 Megabyte frei.\n" " Wollen Sie fortfahren?" #: src/err_dialog_handler.c:110 src/err_dialog_handler.c:114 msgid "Directory does not exist" msgstr "Verzeichnis existiert nicht" #: src/err_dialog_handler.c:111 msgid "The WAV dir does not exist. Create it?" msgstr "Das WAV-Verzeichnis existiert nicht. Erstellen?" #: src/err_dialog_handler.c:115 msgid "The MP3 dir does not exist. Create it?" msgstr "Das MP3-Verzeichnis existiert nicht. Erstellen?" #: src/err_dialog_handler.c:121 msgid "Finished ripping" msgstr "Rippen abgeschlossen" #: src/err_dialog_handler.c:122 msgid "Finished encoding" msgstr "Kodieren abgeschlossen" #: src/err_dialog_handler.c:160 msgid "Error" msgstr "Fehler" #: src/err_dialog_handler.c:336 msgid "Status" msgstr "Status" #: src/job_control.c:459 src/job_control.c:582 msgid "Maybe ripperX has failed to execute the plugin" msgstr "" "Möglicherweise ist die Ausführung der Erweiterung durch ripperX " "fehlgeschlagen" #: src/main_window_handler.c:139 msgid "Scan CD" msgstr "CD scannen" #: src/main_window_handler.c:143 msgid "Stop playing" msgstr "Wiedergabe anhalten" #: src/main_window_handler.c:147 msgid "Get track titles from CDDB server" msgstr "Spurentitel vom CDDB-Server abrufen" #: src/main_window_handler.c:151 msgid "Start ripping&encoding" msgstr "Rippen & Kodieren starten" #: src/main_window_handler.c:155 msgid "Exit the program" msgstr "Das Programm beenden" #: src/misc_utils.c:1229 msgid "" "Check if the filename format string contains format characters other than %a " "%# %v %y or %s." msgstr "" "Prüfen Sie, ob die Dateiname-Formatierungszeichenkette andere Zeichen als " "%a, %#, %v, %y, oder %s enthält." #: src/players_manipulation.c:154 msgid "Failed to exec player :" msgstr "Die Ausführung des Abspielers ist fehlgeschlagen:" #: src/ripper_encoder_manipulation.c:72 msgid "Cannot reopen pty as stream" msgstr "pty kann nicht wieder als Datenstrom geöffnet werden" #: src/ripper_encoder_manipulation.c:253 msgid "Failed to exec cdparanoia :" msgstr "Die Ausführung von Cdparanoia ist fehlgeschlagen:" #: src/ripper_encoder_manipulation.c:324 msgid "Failed to exec plugin" msgstr "Die Ausführung der Erweiterung ist fehlgeschlagen" #: src/ripper_encoder_manipulation.c:358 msgid "Failed to exec the specified program" msgstr "Die Ausführung des angegebenen Programms ist fehlgeschlagen" #: src/select_frame_handler.c:188 msgid "Select All Tracks" msgstr "Alle Spuren auswählen" #: src/select_frame_handler.c:200 msgid "Eject" msgstr "" #: src/select_frame_handler.c:214 msgid "Rip to WAV" msgstr "Zu WAV rippen" #: src/select_frame_handler.c:219 msgid "Encode" msgstr "Kodieren" #: src/select_frame_handler.c:238 msgid "Artist " msgstr "Interpret " #: src/select_frame_handler.c:250 msgid "Album" msgstr "Album" #: src/select_frame_handler.c:263 msgid "Year" msgstr "Jahr" #: src/select_frame_handler.c:292 msgid "Genre" msgstr "Genre" #: src/status_frame_handler.c:55 msgid "Total time elapsed: " msgstr "Gesamte verstrichene Zeit: " #: src/status_frame_handler.c:64 msgid "Total time remaining: " msgstr "Gesamte verbleibende Zeit: " #: src/status_frame_handler.c:73 msgid "Tracks completed: " msgstr "Komplettierte Spuren: " #: src/status_frame_handler.c:82 msgid "Tracks remaining: " msgstr "Verbleibende Spuren: " #: src/status_frame_handler.c:183 src/status_frame_handler.c:287 #, c-format msgid "Ripping track %d" msgstr "Spur %d wird gerippt" #: src/status_frame_handler.c:198 src/status_frame_handler.c:310 #, c-format msgid "Encoding track %d" msgstr "Spur %d wird kodiert" #: src/status_frame_handler.c:213 msgid "Total progress" msgstr "Gesamter Fortschritt" #: src/status_frame_handler.c:229 msgid "Time info" msgstr "Zeitinformation" #: src/status_frame_handler.c:249 msgid "Abort" msgstr "Abbrechen" #: src/status_frame_handler.c:261 src/status_frame_handler.c:379 msgid "Pause" msgstr "Pause" #: src/status_frame_handler.c:300 msgid "Not ripping" msgstr "Es wird nicht gerippt" #: src/status_frame_handler.c:323 msgid "Not encoding" msgstr "Es wird nicht kodiert" #: src/status_frame_handler.c:369 msgid "Continue" msgstr "Fortfahren" #~ msgid "" #~ "Tracks Completed: %2d\n" #~ "\n" #~ "Artist: %s\n" #~ "Album: %s\n" #~ "\n" #~ "%s" #~ msgstr "" #~ "Komplettierte Spuren: %2d\n" #~ "\n" #~ "Interpret: %s\n" #~ "Album: %s\n" #~ "\n" #~ "%s" #~ msgid "Unknown Style" #~ msgstr "Unbekannter Stil" ripperX-2.8.0/po/en@boldquot.header000066400000000000000000000024711233655711300172300ustar00rootroot00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # # This catalog furthermore displays the text between the quotation marks in # bold face, assuming the VT100/XTerm escape sequences. # ripperX-2.8.0/po/en@quot.header000066400000000000000000000022631233655711300163660ustar00rootroot00000000000000# All this catalog "translates" are quotation characters. # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see # http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). # It also translates pairs of apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019) # and pairs of quotation mark (0x22) to # left double quotation mark (U+201C) and right double quotation mark (U+201D). # # When output to an UTF-8 terminal, the quotation characters appear perfectly. # When output to an ISO-8859-1 terminal, the single quotation marks are # transliterated to apostrophes (by iconv in glibc 2.2 or newer) or to # grave/acute accent (by libiconv), and the double quotation marks are # transliterated to 0x22. # When output to an ASCII terminal, the single quotation marks are # transliterated to apostrophes, and the double quotation marks are # transliterated to 0x22. # ripperX-2.8.0/po/en_GB.po000066400000000000000000000317201233655711300151130ustar00rootroot00000000000000# British English translation of ripperX # Copyright (C) 2007 Paul Mangan # This file is distributed under the same license as the ripperX package. # Paul , 2007. # msgid "" msgstr "" "Project-Id-Version: ripperX\n" "Report-Msgid-Bugs-To: tmancill@users.sourceforge.net\n" "POT-Creation-Date: 2014-02-23 22:41-0500\n" "PO-Revision-Date: 2007-04-01 08:32+0100\n" "Last-Translator: Paul \n" "Language-Team: Paul \n" "Language: en_GB\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/cddb.c:663 msgid "Contacting CDDB server..." msgstr "" #: src/cddb.c:688 msgid "Grabbing Completed..." msgstr "" #: src/cddbp.c:253 #, c-format msgid "Reading Information about track %2d" msgstr "" #: src/cddbp.c:272 msgid "Done..." msgstr "" #: src/config_window_handler.c:87 msgid "General Configuration" msgstr "" #: src/config_window_handler.c:94 msgid "Wav file" msgstr "" #: src/config_window_handler.c:102 src/config_window_handler.c:140 msgid "File name format: " msgstr "" #: src/config_window_handler.c:117 src/config_window_handler.c:156 msgid "Target Directory: " msgstr "" #: src/config_window_handler.c:132 msgid "MP3 file" msgstr "" #: src/config_window_handler.c:175 msgid "Prepend character : " msgstr "" #: src/config_window_handler.c:187 msgid "Make Mp3 from existing Wav file" msgstr "" #: src/config_window_handler.c:196 msgid "Ask user when specified file exists" msgstr "" #: src/config_window_handler.c:205 msgid "Keep wav files" msgstr "" #: src/config_window_handler.c:213 src/config_window_handler.c:214 msgid "General" msgstr "" #: src/config_window_handler.c:235 msgid "You need to fill every entry in general page" msgstr "" #: src/config_window_handler.c:283 msgid "Force search for drive (ignore /dev/cdrom)" msgstr "" #: src/config_window_handler.c:284 msgid "Disable paranoia (will act like cdda)" msgstr "" #: src/config_window_handler.c:285 msgid "Disable extra paranoia" msgstr "" #: src/config_window_handler.c:286 msgid "Disable scratch detection" msgstr "" #: src/config_window_handler.c:287 msgid "Disable scratch repair" msgstr "" #: src/config_window_handler.c:307 msgid "Wav Configuration" msgstr "" #: src/config_window_handler.c:321 msgid "Ripper plugin" msgstr "" #: src/config_window_handler.c:356 src/config_window_handler.c:622 msgid "Extra Options: " msgstr "" #: src/config_window_handler.c:488 msgid "Mp3 Configuration" msgstr "" #: src/config_window_handler.c:499 msgid "Encoder plugin" msgstr "" #: src/config_window_handler.c:526 msgid "BitRate, Default 128kbits" msgstr "" #: src/config_window_handler.c:573 msgid "Use variable bitrate (VBR)" msgstr "" #: src/config_window_handler.c:579 msgid "VBR quality (if available)" msgstr "" #: src/config_window_handler.c:589 msgid "0=high quality and bigger files, 9=smaller files" msgstr "" #: src/config_window_handler.c:593 msgid "Encoder Priority" msgstr "" #: src/config_window_handler.c:603 msgid "0=high priority, 19=system is responsive while encoding" msgstr "" #: src/config_window_handler.c:607 msgid "High quality mode" msgstr "" #: src/config_window_handler.c:613 msgid "Include CRC error protection" msgstr "" #: src/config_window_handler.c:835 src/config_window_handler.c:879 #: src/config_window_handler.c:880 msgid "Players" msgstr "" #: src/config_window_handler.c:843 msgid "CD play command: " msgstr "" #: src/config_window_handler.c:852 msgid "CD stop command: " msgstr "" #: src/config_window_handler.c:861 msgid "Wav play command: " msgstr "" #: src/config_window_handler.c:870 msgid "Mp3 play command: " msgstr "" #: src/config_window_handler.c:898 msgid "You need to fill every entry in players page" msgstr "" #: src/config_window_handler.c:931 msgid "File Configuration" msgstr "" #: src/config_window_handler.c:938 msgid "Convert spaces to underscores" msgstr "" #: src/config_window_handler.c:944 msgid "Create album subdirectory for each CD" msgstr "" #: src/config_window_handler.c:950 msgid "Create ID3 tag" msgstr "" #: src/config_window_handler.c:956 msgid "Create m3u playlist" msgstr "" #: src/config_window_handler.c:965 msgid "Filename format string: " msgstr "" #: src/config_window_handler.c:977 msgid "Directory format string: " msgstr "" #: src/config_window_handler.c:991 #, c-format msgid "%a = Artist" msgstr "" #: src/config_window_handler.c:994 msgid "%v = Album" msgstr "" #: src/config_window_handler.c:997 msgid "%# = Track no." msgstr "" #: src/config_window_handler.c:1000 #, c-format msgid "%s = Song title" msgstr "" #: src/config_window_handler.c:1003 msgid "%y = Year" msgstr "" #: src/config_window_handler.c:1009 src/config_window_handler.c:1010 msgid "Files" msgstr "" #: src/config_window_handler.c:1083 msgid "CDDB Configuration" msgstr "" #: src/config_window_handler.c:1096 msgid "URL: " msgstr "" #: src/config_window_handler.c:1106 msgid "Port: " msgstr "" #: src/config_window_handler.c:1118 msgid "Use HTTP" msgstr "" #: src/config_window_handler.c:1125 msgid "Proxy Server: " msgstr "" #: src/config_window_handler.c:1135 msgid "Proxy Port: " msgstr "" #: src/config_window_handler.c:1151 msgid "CDDB Cache path: " msgstr "" #: src/config_window_handler.c:1165 msgid "Automatic lookup on startup" msgstr "" #: src/config_window_handler.c:1186 msgid "You need to specify a server and a port" msgstr "" #: src/config_window_handler.c:1256 src/main_window_handler.c:135 msgid "Configuration" msgstr "" #: src/dir_window_handler.c:76 msgid "Select a directory" msgstr "" #: src/err_dialog_handler.c:39 msgid "An error has occured while forking" msgstr "" #: src/err_dialog_handler.c:40 msgid "Cannot create pipe" msgstr "" #: src/err_dialog_handler.c:41 msgid "Cannot open /dev/null" msgstr "" #: src/err_dialog_handler.c:42 msgid "Memory allocation error has occurred" msgstr "" #: src/err_dialog_handler.c:43 msgid "" "An error has occurred while trying to\n" "reopen a file as a stream (fdopen)" msgstr "" #: src/err_dialog_handler.c:44 msgid "Cannot read from the pipe" msgstr "" #: src/err_dialog_handler.c:45 msgid "Cannot delete file" msgstr "" #: src/err_dialog_handler.c:46 msgid "" "Cannot open configuration file\n" "loading default values" msgstr "" #: src/err_dialog_handler.c:47 msgid "Cannot create configuration file ~/.ripperXrc" msgstr "" #: src/err_dialog_handler.c:48 msgid "" "Cannot open a pty\n" "Maybe all ptys are busy" msgstr "" #: src/err_dialog_handler.c:49 msgid "///// use perror msg until here /////" msgstr "" #: src/err_dialog_handler.c:50 msgid "Too many arguments" msgstr "" #: src/err_dialog_handler.c:51 msgid "Job already in progress" msgstr "" #: src/err_dialog_handler.c:52 msgid "" "Please select a track to rip or encode.\n" "If you did select tracks, they may already have been ripped." msgstr "" #: src/err_dialog_handler.c:53 msgid "" "Make sure an audio disc is in the drive and that you are\n" "either running ripperX as root, are a member\n" "of the \"cdrom\" group, or otherwise have appropriate\n" "permissions to access the CDROM device.\n" msgstr "" #: src/err_dialog_handler.c:54 msgid "The file name is too long" msgstr "" #: src/err_dialog_handler.c:55 msgid "Some entry(s) are empty" msgstr "" #: src/err_dialog_handler.c:56 msgid "An error has occurred while parsing ~/.ripperXrc" msgstr "" #: src/err_dialog_handler.c:57 msgid "Some field(s) are empty. Substituting default value" msgstr "" #: src/err_dialog_handler.c:58 msgid "Invalid selection" msgstr "" #: src/err_dialog_handler.c:59 msgid "Could not connect to CDDB server" msgstr "" #: src/err_dialog_handler.c:60 msgid "Connection refused from CDDB server" msgstr "" #: src/err_dialog_handler.c:61 msgid "CDDB Server Error" msgstr "" #: src/err_dialog_handler.c:62 msgid "CD Not Found in CD Database" msgstr "" #: src/err_dialog_handler.c:63 msgid "Cannot parse the format string" msgstr "" #: src/err_dialog_handler.c:64 msgid "Plugin not present" msgstr "" #: src/err_dialog_handler.c:65 msgid "" "Error while locking file.\n" "Make sure the WAV dir and MP3 dir paths are correct and\n" "you have permission to write to those directories." msgstr "" #: src/err_dialog_handler.c:66 msgid "The WAV dir is not writable." msgstr "" #: src/err_dialog_handler.c:67 msgid "The MP3 dir is not writable." msgstr "" #: src/err_dialog_handler.c:68 msgid "Cannot create WAV dir" msgstr "" #: src/err_dialog_handler.c:69 msgid "Cannot create MP3 dir" msgstr "" #: src/err_dialog_handler.c:70 msgid "Make sure an audio disc is in the CDROM device." msgstr "" #: src/err_dialog_handler.c:71 msgid "" "Make sure that you are a member of the the \"cdrom\" group,\n" "or otherwise have appropriate permissions to access the CDROM device." msgstr "" #: src/err_dialog_handler.c:72 msgid "Exception" msgstr "" #: src/err_dialog_handler.c:82 msgid "Abort confirmation" msgstr "" #: src/err_dialog_handler.c:83 msgid "Do you really want to abort?" msgstr "" #: src/err_dialog_handler.c:86 msgid "Wanna delete?" msgstr "Want to delete?" #: src/err_dialog_handler.c:87 msgid "Do you want to delete current file?" msgstr "" #: src/err_dialog_handler.c:90 msgid "Wanna overwrite?" msgstr "Want to overwrite?" #: src/err_dialog_handler.c:91 msgid "The file already exists. Do you want to overwrite?" msgstr "" #: src/err_dialog_handler.c:94 msgid "Enter file name" msgstr "" #: src/err_dialog_handler.c:95 msgid "Enter new file name" msgstr "" #: src/err_dialog_handler.c:98 msgid "Wanna create config file?" msgstr "Want to create config file?" #: src/err_dialog_handler.c:99 msgid "" "Config file ~/.ripperXrc does not exist.\n" "Do you want to create config file?" msgstr "" #: src/err_dialog_handler.c:102 src/err_dialog_handler.c:106 msgid "Low diskspace warning" msgstr "" #: src/err_dialog_handler.c:103 msgid "" "There is less than 500 megabytes free on the wav partition.\n" " Do you want to continue?" msgstr "" #: src/err_dialog_handler.c:107 msgid "" "There is less than 100 megabytes free on the mp3 partition.\n" " Do you want to continue?" msgstr "" #: src/err_dialog_handler.c:110 src/err_dialog_handler.c:114 msgid "Directory does not exist" msgstr "" #: src/err_dialog_handler.c:111 msgid "The WAV dir does not exist. Create it?" msgstr "" #: src/err_dialog_handler.c:115 msgid "The MP3 dir does not exist. Create it?" msgstr "" #: src/err_dialog_handler.c:121 msgid "Finished ripping" msgstr "" #: src/err_dialog_handler.c:122 msgid "Finished encoding" msgstr "" #: src/err_dialog_handler.c:160 msgid "Error" msgstr "" #: src/err_dialog_handler.c:336 msgid "Status" msgstr "" #: src/job_control.c:459 src/job_control.c:582 msgid "Maybe ripperX has failed to execute the plugin" msgstr "" #: src/main_window_handler.c:139 msgid "Scan CD" msgstr "" #: src/main_window_handler.c:143 msgid "Stop playing" msgstr "" #: src/main_window_handler.c:147 msgid "Get track titles from CDDB server" msgstr "" #: src/main_window_handler.c:151 msgid "Start ripping&encoding" msgstr "Start ripping & encoding" #: src/main_window_handler.c:155 msgid "Exit the program" msgstr "" #: src/misc_utils.c:1229 msgid "" "Check if the filename format string contains format characters other than %a " "%# %v %y or %s." msgstr "" #: src/players_manipulation.c:154 msgid "Failed to exec player :" msgstr "" #: src/ripper_encoder_manipulation.c:72 msgid "Cannot reopen pty as stream" msgstr "" #: src/ripper_encoder_manipulation.c:253 msgid "Failed to exec cdparanoia :" msgstr "" #: src/ripper_encoder_manipulation.c:324 msgid "Failed to exec plugin" msgstr "" #: src/ripper_encoder_manipulation.c:358 msgid "Failed to exec the specified program" msgstr "" #: src/select_frame_handler.c:188 msgid "Select All Tracks" msgstr "" #: src/select_frame_handler.c:200 msgid "Eject" msgstr "" #: src/select_frame_handler.c:214 msgid "Rip to WAV" msgstr "" #: src/select_frame_handler.c:219 msgid "Encode" msgstr "" #: src/select_frame_handler.c:238 msgid "Artist " msgstr "" #: src/select_frame_handler.c:250 msgid "Album" msgstr "" #: src/select_frame_handler.c:263 msgid "Year" msgstr "" #: src/select_frame_handler.c:292 msgid "Genre" msgstr "" #: src/status_frame_handler.c:55 msgid "Total time elapsed: " msgstr "" #: src/status_frame_handler.c:64 msgid "Total time remaining: " msgstr "" #: src/status_frame_handler.c:73 msgid "Tracks completed: " msgstr "" #: src/status_frame_handler.c:82 msgid "Tracks remaining: " msgstr "" #: src/status_frame_handler.c:183 src/status_frame_handler.c:287 #, c-format msgid "Ripping track %d" msgstr "" #: src/status_frame_handler.c:198 src/status_frame_handler.c:310 #, c-format msgid "Encoding track %d" msgstr "" #: src/status_frame_handler.c:213 msgid "Total progress" msgstr "" #: src/status_frame_handler.c:229 msgid "Time info" msgstr "" #: src/status_frame_handler.c:249 msgid "Abort" msgstr "" #: src/status_frame_handler.c:261 src/status_frame_handler.c:379 msgid "Pause" msgstr "" #: src/status_frame_handler.c:300 msgid "Not ripping" msgstr "" #: src/status_frame_handler.c:323 msgid "Not encoding" msgstr "" #: src/status_frame_handler.c:369 msgid "Continue" msgstr "" ripperX-2.8.0/po/es.po000066400000000000000000000440421233655711300145510ustar00rootroot00000000000000# Spanish translation of ripperX # Copyright (C) 2008 Ricardo Mones # This file is distributed under the same license as the ripperX package. # Ricardo Mones , 2008. # msgid "" msgstr "" "Project-Id-Version: ripperX\n" "Report-Msgid-Bugs-To: tmancill@users.sourceforge.net\n" "POT-Creation-Date: 2014-02-23 22:41-0500\n" "PO-Revision-Date: 2007-04-01 08:32+0100\n" "Last-Translator: Ricardo Mones \n" "Language-Team: Ricardo Mones \n" "Language: es\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/cddb.c:663 msgid "Contacting CDDB server..." msgstr "Conectando con el servidor CDDB..." #: src/cddb.c:688 msgid "Grabbing Completed..." msgstr "Extracción completada..." #: src/cddbp.c:253 #, c-format msgid "Reading Information about track %2d" msgstr "Leyendo información de la pista %2d" #: src/cddbp.c:272 msgid "Done..." msgstr "Hecho..." #: src/config_window_handler.c:87 msgid "General Configuration" msgstr "Configuración general" #: src/config_window_handler.c:94 msgid "Wav file" msgstr "Fichero de onda" #: src/config_window_handler.c:102 src/config_window_handler.c:140 msgid "File name format: " msgstr "Formato del nombre de fichero: " #: src/config_window_handler.c:117 src/config_window_handler.c:156 msgid "Target Directory: " msgstr "Directorio destino: " #: src/config_window_handler.c:132 msgid "MP3 file" msgstr "Fichero MP3" #: src/config_window_handler.c:175 msgid "Prepend character : " msgstr "Añadir carácter : " #: src/config_window_handler.c:187 msgid "Make Mp3 from existing Wav file" msgstr "Hacer MP3 de un fichero de onda existente" #: src/config_window_handler.c:196 msgid "Ask user when specified file exists" msgstr "Preguntar al usuario cuando el fichero especificado exista" #: src/config_window_handler.c:205 msgid "Keep wav files" msgstr "Mantener ficheros de onda" #: src/config_window_handler.c:213 src/config_window_handler.c:214 msgid "General" msgstr "General" #: src/config_window_handler.c:235 msgid "You need to fill every entry in general page" msgstr "Necesita rellenar todas las entradas en la página general" #: src/config_window_handler.c:283 msgid "Force search for drive (ignore /dev/cdrom)" msgstr "Forzar la detección de unidad (ignorar /dev/cdrom)" #: src/config_window_handler.c:284 msgid "Disable paranoia (will act like cdda)" msgstr "Desactivar paranoia (funcionará como cdda)" #: src/config_window_handler.c:285 msgid "Disable extra paranoia" msgstr "Desactivar paranoia extra" #: src/config_window_handler.c:286 msgid "Disable scratch detection" msgstr "Desactivar la detección de ralladuras" #: src/config_window_handler.c:287 msgid "Disable scratch repair" msgstr "Desactivar la reparación de ralladuras" #: src/config_window_handler.c:307 msgid "Wav Configuration" msgstr "Configuración de ficheros de onda" #: src/config_window_handler.c:321 msgid "Ripper plugin" msgstr "Módulo extractor" #: src/config_window_handler.c:356 src/config_window_handler.c:622 msgid "Extra Options: " msgstr "Opciones adicionales: " #: src/config_window_handler.c:488 msgid "Mp3 Configuration" msgstr "Configuración MP3" #: src/config_window_handler.c:499 msgid "Encoder plugin" msgstr "Módulo codificador" #: src/config_window_handler.c:526 msgid "BitRate, Default 128kbits" msgstr "Tasa de bits, por defecto 128kbps" #: src/config_window_handler.c:573 msgid "Use variable bitrate (VBR)" msgstr "Usar tasa variable (VBR)" #: src/config_window_handler.c:579 msgid "VBR quality (if available)" msgstr "Calidad de VBR (si está disponible)" #: src/config_window_handler.c:589 msgid "0=high quality and bigger files, 9=smaller files" msgstr "0=alta caldad y ficheros grandes, 9=ficheros más pequeños" #: src/config_window_handler.c:593 msgid "Encoder Priority" msgstr "Prioridad del codificador" #: src/config_window_handler.c:603 msgid "0=high priority, 19=system is responsive while encoding" msgstr "0=alta prioridad, 19=el sistema responde mientras codifica" #: src/config_window_handler.c:607 msgid "High quality mode" msgstr "Modo de alta calidad" #: src/config_window_handler.c:613 msgid "Include CRC error protection" msgstr "Incluir protección de errores con CRC" #: src/config_window_handler.c:835 src/config_window_handler.c:879 #: src/config_window_handler.c:880 msgid "Players" msgstr "Reproductores" #: src/config_window_handler.c:843 msgid "CD play command: " msgstr "Órden para reproducir el CD: " #: src/config_window_handler.c:852 msgid "CD stop command: " msgstr "Órden para parar el CD: " #: src/config_window_handler.c:861 msgid "Wav play command: " msgstr "Órden para reproducir fichero de ondas: " #: src/config_window_handler.c:870 msgid "Mp3 play command: " msgstr "Órden para reproducir fichero MP3: " #: src/config_window_handler.c:898 msgid "You need to fill every entry in players page" msgstr "Necesita rellenar todas las entradas en la página de reproductores" #: src/config_window_handler.c:931 msgid "File Configuration" msgstr "Configuración de ficheros" #: src/config_window_handler.c:938 msgid "Convert spaces to underscores" msgstr "Convertir espacios a subrayados" #: src/config_window_handler.c:944 msgid "Create album subdirectory for each CD" msgstr "Crear un subdirectorio de álbum para cada CD" #: src/config_window_handler.c:950 msgid "Create ID3 tag" msgstr "Crear etiqueta ID3" #: src/config_window_handler.c:956 msgid "Create m3u playlist" msgstr "Crear lista de reproducción m3u" #: src/config_window_handler.c:965 msgid "Filename format string: " msgstr "Cadena de formato del nombre de fichero:" #: src/config_window_handler.c:977 msgid "Directory format string: " msgstr "Cadena de formato del directorio:" #: src/config_window_handler.c:991 #, c-format msgid "%a = Artist" msgstr "%a = Artista" #: src/config_window_handler.c:994 msgid "%v = Album" msgstr "%v = Álbum" #: src/config_window_handler.c:997 msgid "%# = Track no." msgstr "%# = N.º de pista" #: src/config_window_handler.c:1000 #, c-format msgid "%s = Song title" msgstr "%s = Título de la canción" #: src/config_window_handler.c:1003 msgid "%y = Year" msgstr "%y = Año" #: src/config_window_handler.c:1009 src/config_window_handler.c:1010 msgid "Files" msgstr "Ficheros" #: src/config_window_handler.c:1083 msgid "CDDB Configuration" msgstr "Configuración CDDB" #: src/config_window_handler.c:1096 msgid "URL: " msgstr "URL: " #: src/config_window_handler.c:1106 msgid "Port: " msgstr "Puerto: " #: src/config_window_handler.c:1118 msgid "Use HTTP" msgstr "Usar HTTP" #: src/config_window_handler.c:1125 msgid "Proxy Server: " msgstr "Servidor proxy: " #: src/config_window_handler.c:1135 msgid "Proxy Port: " msgstr "Puerto del proxy: " #: src/config_window_handler.c:1151 msgid "CDDB Cache path: " msgstr "Ruta a la caché CDDB: " #: src/config_window_handler.c:1165 msgid "Automatic lookup on startup" msgstr "Búsqueda automática al iniciar" #: src/config_window_handler.c:1186 msgid "You need to specify a server and a port" msgstr "Necesita especificar un servidor y un puerto" #: src/config_window_handler.c:1256 src/main_window_handler.c:135 msgid "Configuration" msgstr "Configuración" #: src/dir_window_handler.c:76 msgid "Select a directory" msgstr "Seleccione un directorio" #: src/err_dialog_handler.c:39 msgid "An error has occured while forking" msgstr "Ocurrió un error al crear el proceso" #: src/err_dialog_handler.c:40 msgid "Cannot create pipe" msgstr "No se puede crear la tubería" #: src/err_dialog_handler.c:41 msgid "Cannot open /dev/null" msgstr "No se puede abrir /dev/null" #: src/err_dialog_handler.c:42 #, fuzzy msgid "Memory allocation error has occurred" msgstr "Ha ocurrido un error de reserva de memoria" #: src/err_dialog_handler.c:43 msgid "" "An error has occurred while trying to\n" "reopen a file as a stream (fdopen)" msgstr "" "Ha ocurrido un error intentando reabrir\n" "un fichero como un flujo (fdopen)" #: src/err_dialog_handler.c:44 msgid "Cannot read from the pipe" msgstr "No se puede leer de la tubería" #: src/err_dialog_handler.c:45 msgid "Cannot delete file" msgstr "No se puede borrar el fichero" #: src/err_dialog_handler.c:46 msgid "" "Cannot open configuration file\n" "loading default values" msgstr "" "No se puede abrir el fichero de\n" "configuración, valores por defecto" #: src/err_dialog_handler.c:47 msgid "Cannot create configuration file ~/.ripperXrc" msgstr "No se puede crear el fichero de configuración ~/.ripperXrc" #: src/err_dialog_handler.c:48 msgid "" "Cannot open a pty\n" "Maybe all ptys are busy" msgstr "" "No se puede abrir una pty\n" "Quizás todas estén ocupadas" #: src/err_dialog_handler.c:49 msgid "///// use perror msg until here /////" msgstr "///// use perror msg until here /////" #: src/err_dialog_handler.c:50 msgid "Too many arguments" msgstr "Demasiados argumentos" #: src/err_dialog_handler.c:51 msgid "Job already in progress" msgstr "El trabajo ya está en curso" #: src/err_dialog_handler.c:52 #, fuzzy msgid "" "Please select a track to rip or encode.\n" "If you did select tracks, they may already have been ripped." msgstr "" "Por favor seleccione una pista para extraer o codificar. \n" "Si seleccionó pistas puede que ya hayan sido extraídas." #: src/err_dialog_handler.c:53 #, fuzzy msgid "" "Make sure an audio disc is in the drive and that you are\n" "either running ripperX as root, are a member\n" "of the \"cdrom\" group, or otherwise have appropriate\n" "permissions to access the CDROM device.\n" msgstr "" "Asegúrese de que un disco de audio está en la unidad y \n" "que está ejecutando ripperX como root, es miembro del \n" "grupo «cdrom» o alternativamente tiene los permisos \n" "apropiados para acceder al dispositivo de CDROM.\n" #: src/err_dialog_handler.c:54 msgid "The file name is too long" msgstr "El nombre de fichero es demasiado largo" #: src/err_dialog_handler.c:55 msgid "Some entry(s) are empty" msgstr "Algunas entradas están vacías" #: src/err_dialog_handler.c:56 msgid "An error has occurred while parsing ~/.ripperXrc" msgstr "Ha ocurrido un error al interpretar ~/.ripperXrc" #: src/err_dialog_handler.c:57 msgid "Some field(s) are empty. Substituting default value" msgstr "Algunos campos están vacíos. Sustituyendo valor por defecto" #: src/err_dialog_handler.c:58 msgid "Invalid selection" msgstr "Selección inválida" #: src/err_dialog_handler.c:59 msgid "Could not connect to CDDB server" msgstr "No se pudo conectar al servidor CDDB" #: src/err_dialog_handler.c:60 msgid "Connection refused from CDDB server" msgstr "Conexión rechazada por el servidor CDDB" #: src/err_dialog_handler.c:61 msgid "CDDB Server Error" msgstr "Error del servidor CDDB" #: src/err_dialog_handler.c:62 msgid "CD Not Found in CD Database" msgstr "No se encontró el CD en la base de datos" #: src/err_dialog_handler.c:63 msgid "Cannot parse the format string" msgstr "No se puede interpretar el formato de la cadena" #: src/err_dialog_handler.c:64 msgid "Plugin not present" msgstr "Módulo no dispobible" #: src/err_dialog_handler.c:65 #, fuzzy msgid "" "Error while locking file.\n" "Make sure the WAV dir and MP3 dir paths are correct and\n" "you have permission to write to those directories." msgstr "" "Error al bloquear el fichero.\n" "Asegúrese que las rutas de los directorios de onda y MP3 son \n" "correctos y que tiene permisos para escribir en ellos." #: src/err_dialog_handler.c:66 msgid "The WAV dir is not writable." msgstr "El directorio de onda no es escribible" #: src/err_dialog_handler.c:67 msgid "The MP3 dir is not writable." msgstr "El directorio MP3 no es escribible" #: src/err_dialog_handler.c:68 msgid "Cannot create WAV dir" msgstr "No se puede crear el directorio de onda" #: src/err_dialog_handler.c:69 msgid "Cannot create MP3 dir" msgstr "No se puede crear el directorio de MP3" #: src/err_dialog_handler.c:70 msgid "Make sure an audio disc is in the CDROM device." msgstr "Asegúrese que haya un disco de audio en el CDROM" #: src/err_dialog_handler.c:71 msgid "" "Make sure that you are a member of the the \"cdrom\" group,\n" "or otherwise have appropriate permissions to access the CDROM device." msgstr "" "Asegúrese de que es miembro del grupo «cdrom», o alternativamente\n" "tiene los permisos adecuados para acceder al dispositivo CDROM." #: src/err_dialog_handler.c:72 msgid "Exception" msgstr "" #: src/err_dialog_handler.c:82 msgid "Abort confirmation" msgstr "Confirmación de detención" #: src/err_dialog_handler.c:83 msgid "Do you really want to abort?" msgstr "¿Realmente desea cancelar?" #: src/err_dialog_handler.c:86 msgid "Wanna delete?" msgstr "¿Quiere borrar?" #: src/err_dialog_handler.c:87 msgid "Do you want to delete current file?" msgstr "¿Quiere borrar el fichero actual?" #: src/err_dialog_handler.c:90 msgid "Wanna overwrite?" msgstr "¿Quiere sobreescribir?" #: src/err_dialog_handler.c:91 msgid "The file already exists. Do you want to overwrite?" msgstr "El fichero ya existe. ¿Desea sobreescribirlo?" #: src/err_dialog_handler.c:94 msgid "Enter file name" msgstr "Introduzca el nombre de fichero" #: src/err_dialog_handler.c:95 msgid "Enter new file name" msgstr "Introduzca el nuevo nombre del fichero" #: src/err_dialog_handler.c:98 msgid "Wanna create config file?" msgstr "¿Quiere crear el fichero de configuración?" #: src/err_dialog_handler.c:99 msgid "" "Config file ~/.ripperXrc does not exist.\n" "Do you want to create config file?" msgstr "" "El fichero de configuración ~/.ripperXrc no existe.\n" "¿Desea crear el fichero de configuración?" #: src/err_dialog_handler.c:102 src/err_dialog_handler.c:106 msgid "Low diskspace warning" msgstr "Aviso de espacio en disco bajo" #: src/err_dialog_handler.c:103 msgid "" "There is less than 500 megabytes free on the wav partition.\n" " Do you want to continue?" msgstr "" "Hay menos de 500 Megabytes libres en la partición de onda.\n" "¿Desea continuar?" #: src/err_dialog_handler.c:107 msgid "" "There is less than 100 megabytes free on the mp3 partition.\n" " Do you want to continue?" msgstr "" "Hay menos de 100 Megabytes libres en la partición de MP3.\n" "¿Desea continuar?" #: src/err_dialog_handler.c:110 src/err_dialog_handler.c:114 msgid "Directory does not exist" msgstr "El directorio no existe" #: src/err_dialog_handler.c:111 msgid "The WAV dir does not exist. Create it?" msgstr "El directorio de onda no existe. ¿Crearlo?" #: src/err_dialog_handler.c:115 msgid "The MP3 dir does not exist. Create it?" msgstr "El directorio MP3 no existe. ¿Crearlo?" #: src/err_dialog_handler.c:121 msgid "Finished ripping" msgstr "Finalizada extracción" #: src/err_dialog_handler.c:122 msgid "Finished encoding" msgstr "Finalizada codificación" #: src/err_dialog_handler.c:160 msgid "Error" msgstr "Error" #: src/err_dialog_handler.c:336 msgid "Status" msgstr "Estado" #: src/job_control.c:459 src/job_control.c:582 msgid "Maybe ripperX has failed to execute the plugin" msgstr "Quizás ripperX ha fallado al ejecutar el módulo" #: src/main_window_handler.c:139 msgid "Scan CD" msgstr "Escanear CD" #: src/main_window_handler.c:143 msgid "Stop playing" msgstr "Detener reproducción" #: src/main_window_handler.c:147 msgid "Get track titles from CDDB server" msgstr "Obtener los títulos de las pistas del servidor CDDB" #: src/main_window_handler.c:151 msgid "Start ripping&encoding" msgstr "Iniciar extracción y codificación" #: src/main_window_handler.c:155 msgid "Exit the program" msgstr "Salir del programa" #: src/misc_utils.c:1229 msgid "" "Check if the filename format string contains format characters other than %a " "%# %v %y or %s." msgstr "" "Compruebe si la cadena de formato de nombre contiene caracteres de formato " "distintos a «%a», «%#», «%v», «%y» o «%s»." #: src/players_manipulation.c:154 msgid "Failed to exec player :" msgstr "Falló la ejecución del reproductor :" #: src/ripper_encoder_manipulation.c:72 msgid "Cannot reopen pty as stream" msgstr "No se puede reabrir la pty como un flujo" #: src/ripper_encoder_manipulation.c:253 msgid "Failed to exec cdparanoia :" msgstr "Falló la ejecución de cdparanoia :" #: src/ripper_encoder_manipulation.c:324 msgid "Failed to exec plugin" msgstr "Falló la ejecución del módulo" #: src/ripper_encoder_manipulation.c:358 msgid "Failed to exec the specified program" msgstr "Falló la ejecución del programa especificado" #: src/select_frame_handler.c:188 msgid "Select All Tracks" msgstr "Seleccionar todas las pistas" #: src/select_frame_handler.c:200 msgid "Eject" msgstr "" #: src/select_frame_handler.c:214 msgid "Rip to WAV" msgstr "Extraer a onda" #: src/select_frame_handler.c:219 msgid "Encode" msgstr "Codificar" #: src/select_frame_handler.c:238 msgid "Artist " msgstr "Artista " #: src/select_frame_handler.c:250 msgid "Album" msgstr "Álbum" #: src/select_frame_handler.c:263 msgid "Year" msgstr "Año" #: src/select_frame_handler.c:292 msgid "Genre" msgstr "Género" #: src/status_frame_handler.c:55 msgid "Total time elapsed: " msgstr "Tiempo total transcurrido: " #: src/status_frame_handler.c:64 msgid "Total time remaining: " msgstr "Tiempo total restante: " #: src/status_frame_handler.c:73 msgid "Tracks completed: " msgstr "Pistas completadas: " #: src/status_frame_handler.c:82 msgid "Tracks remaining: " msgstr "Pistas restantes: " #: src/status_frame_handler.c:183 src/status_frame_handler.c:287 #, c-format msgid "Ripping track %d" msgstr "Extrayendo pista %d" #: src/status_frame_handler.c:198 src/status_frame_handler.c:310 #, c-format msgid "Encoding track %d" msgstr "Codificando pista %d" #: src/status_frame_handler.c:213 msgid "Total progress" msgstr "Progreso total" #: src/status_frame_handler.c:229 msgid "Time info" msgstr "Información de tiempo" #: src/status_frame_handler.c:249 msgid "Abort" msgstr "Cancelar" #: src/status_frame_handler.c:261 src/status_frame_handler.c:379 msgid "Pause" msgstr "Pausa" #: src/status_frame_handler.c:300 msgid "Not ripping" msgstr "No extrayendo" #: src/status_frame_handler.c:323 msgid "Not encoding" msgstr "No codificando" #: src/status_frame_handler.c:369 msgid "Continue" msgstr "Continuar" #~ msgid "" #~ "Tracks Completed: %2d\n" #~ "\n" #~ "Artist: %s\n" #~ "Album: %s\n" #~ "\n" #~ "%s" #~ msgstr "" #~ "Pistas completadas: %2d\n" #~ "\n" #~ "Artista: %s\n" #~ "Álbum: %s\n" #~ "\n" #~ "%s" #~ msgid "Unknown Style" #~ msgstr "Estilo desconocido" ripperX-2.8.0/po/fr.po000066400000000000000000000441531233655711300145540ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR ripperX # This file is distributed under the same license as the PACKAGE package. # appzer0 , 2014. # msgid "" msgstr "" "Project-Id-Version: ripperx 2.7.3\n" "Report-Msgid-Bugs-To: tmancill@users.sourceforge.net\n" "POT-Creation-Date: 2014-02-23 22:41-0500\n" "PO-Revision-Date: 2014-01-18 12:23+0100\n" "Last-Translator: appzer0 \n" "Language-Team: LANGUAGE \n" "Language: fr\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Generator: Poedit 1.5.5\n" #: src/cddb.c:663 msgid "Contacting CDDB server..." msgstr "Connexion au serveur CDDB..." #: src/cddb.c:688 msgid "Grabbing Completed..." msgstr "Fin de la détection..." #: src/cddbp.c:253 #, c-format msgid "Reading Information about track %2d" msgstr "Lecture des informations sur la piste %2d" #: src/cddbp.c:272 msgid "Done..." msgstr "Terminé." #: src/config_window_handler.c:87 msgid "General Configuration" msgstr "Configuration générale" #: src/config_window_handler.c:94 msgid "Wav file" msgstr "fichier WAV" #: src/config_window_handler.c:102 src/config_window_handler.c:140 msgid "File name format: " msgstr "Format du fichier :" #: src/config_window_handler.c:117 src/config_window_handler.c:156 msgid "Target Directory: " msgstr "Répertoire cible :" #: src/config_window_handler.c:132 msgid "MP3 file" msgstr "fichier MP3" #: src/config_window_handler.c:175 msgid "Prepend character : " msgstr "Caractère préfixe :" #: src/config_window_handler.c:187 msgid "Make Mp3 from existing Wav file" msgstr "Convertir un fichier WAV existant en MP3" #: src/config_window_handler.c:196 msgid "Ask user when specified file exists" msgstr "Me demander si le fichier existe" #: src/config_window_handler.c:205 msgid "Keep wav files" msgstr "Conserver les fichiers WAV" #: src/config_window_handler.c:213 src/config_window_handler.c:214 msgid "General" msgstr "Général" #: src/config_window_handler.c:235 msgid "You need to fill every entry in general page" msgstr "Vous devez renseigner toutes les entrées dans la page Général" #: src/config_window_handler.c:283 msgid "Force search for drive (ignore /dev/cdrom)" msgstr "Forcer la recherche du périphérique (en ignorant /dev/cdrom)" #: src/config_window_handler.c:284 msgid "Disable paranoia (will act like cdda)" msgstr "Désactiver cdparanoia (comportement de cdda)" #: src/config_window_handler.c:285 msgid "Disable extra paranoia" msgstr "Désactiver les extensions de cdparanoia" #: src/config_window_handler.c:286 msgid "Disable scratch detection" msgstr "Désactiver la détection d'erreurs" #: src/config_window_handler.c:287 msgid "Disable scratch repair" msgstr "Désactiver la réparation des erreurs" #: src/config_window_handler.c:307 msgid "Wav Configuration" msgstr "Configuration WAV" #: src/config_window_handler.c:321 msgid "Ripper plugin" msgstr "Greffon d'extraction" #: src/config_window_handler.c:356 src/config_window_handler.c:622 msgid "Extra Options: " msgstr "Option supplémentaires :" #: src/config_window_handler.c:488 msgid "Mp3 Configuration" msgstr "Configuration MP3" #: src/config_window_handler.c:499 msgid "Encoder plugin" msgstr "Greffon de l'encodeur" #: src/config_window_handler.c:526 msgid "BitRate, Default 128kbits" msgstr "Taux d'échantillonnage, 128 kbits par défaut" #: src/config_window_handler.c:573 msgid "Use variable bitrate (VBR)" msgstr "Utiliser un taux variable (VBR)" #: src/config_window_handler.c:579 msgid "VBR quality (if available)" msgstr "Qualité VBR (si activé)" #: src/config_window_handler.c:589 msgid "0=high quality and bigger files, 9=smaller files" msgstr "0=qualité élevé et gros fichiers, 9=fichiers plus petits" #: src/config_window_handler.c:593 msgid "Encoder Priority" msgstr "Priorité de l'encodeur" #: src/config_window_handler.c:603 msgid "0=high priority, 19=system is responsive while encoding" msgstr "" "0=priorité élevée, 19=le système conserve des ressources pendant l'encodage" #: src/config_window_handler.c:607 msgid "High quality mode" msgstr "Mode haute qualité" #: src/config_window_handler.c:613 msgid "Include CRC error protection" msgstr "Inclure la protection CRC contre les erreurs" #: src/config_window_handler.c:835 src/config_window_handler.c:879 #: src/config_window_handler.c:880 msgid "Players" msgstr "Lecteurs" #: src/config_window_handler.c:843 msgid "CD play command: " msgstr "Commande de lecture CD :" #: src/config_window_handler.c:852 msgid "CD stop command: " msgstr "Commande d'arrêt lecture CD :" #: src/config_window_handler.c:861 msgid "Wav play command: " msgstr "Commande de levcture WAV :" #: src/config_window_handler.c:870 msgid "Mp3 play command: " msgstr "Commande de lecture MP3 :" #: src/config_window_handler.c:898 msgid "You need to fill every entry in players page" msgstr "Vous devez renseigner toutes les entrées dans la page Lecteurs" #: src/config_window_handler.c:931 msgid "File Configuration" msgstr "Configuration fichiers" #: src/config_window_handler.c:938 msgid "Convert spaces to underscores" msgstr "Convertir les espaces en tirets bas (ou underscores)" #: src/config_window_handler.c:944 msgid "Create album subdirectory for each CD" msgstr "Créer un sous-répertoire pour chaque CD" #: src/config_window_handler.c:950 msgid "Create ID3 tag" msgstr "Créer les tags ID3" #: src/config_window_handler.c:956 msgid "Create m3u playlist" msgstr "Créer une liste de lecture M3U" #: src/config_window_handler.c:965 msgid "Filename format string: " msgstr "Format du nom de fichier :" #: src/config_window_handler.c:977 msgid "Directory format string: " msgstr "Format du nom de répertoire :" #: src/config_window_handler.c:991 #, c-format msgid "%a = Artist" msgstr "%a = artiste" #: src/config_window_handler.c:994 msgid "%v = Album" msgstr "%v = album" #: src/config_window_handler.c:997 msgid "%# = Track no." msgstr "%# = piste n°" #: src/config_window_handler.c:1000 #, c-format msgid "%s = Song title" msgstr "%s = titre de la piste" #: src/config_window_handler.c:1003 msgid "%y = Year" msgstr "%y = année" #: src/config_window_handler.c:1009 src/config_window_handler.c:1010 msgid "Files" msgstr "Fichiers" #: src/config_window_handler.c:1083 msgid "CDDB Configuration" msgstr "Configuration CDDB" #: src/config_window_handler.c:1096 msgid "URL: " msgstr "URL :" #: src/config_window_handler.c:1106 msgid "Port: " msgstr "Port :" #: src/config_window_handler.c:1118 msgid "Use HTTP" msgstr "Utiliser HTTP" #: src/config_window_handler.c:1125 msgid "Proxy Server: " msgstr "Serveur proxy :" #: src/config_window_handler.c:1135 msgid "Proxy Port: " msgstr "Port du proxy :" #: src/config_window_handler.c:1151 msgid "CDDB Cache path: " msgstr "Chemin du cache CDDB :" #: src/config_window_handler.c:1165 msgid "Automatic lookup on startup" msgstr "Consultation automatique au démarrage" #: src/config_window_handler.c:1186 msgid "You need to specify a server and a port" msgstr "Vous devez spécifier au moins un serveur et un port" #: src/config_window_handler.c:1256 src/main_window_handler.c:135 msgid "Configuration" msgstr "Configuration" #: src/dir_window_handler.c:76 msgid "Select a directory" msgstr "Choisir un répertoire" #: src/err_dialog_handler.c:39 msgid "An error has occured while forking" msgstr "Une erreur est survenue pendant le \"fork\"" #: src/err_dialog_handler.c:40 msgid "Cannot create pipe" msgstr "Impossible de créer le tube" #: src/err_dialog_handler.c:41 msgid "Cannot open /dev/null" msgstr "Impossible d'ouvrir /dev/null" #: src/err_dialog_handler.c:42 msgid "Memory allocation error has occurred" msgstr "Erreur d'allocation mémoire" #: src/err_dialog_handler.c:43 msgid "" "An error has occurred while trying to\n" "reopen a file as a stream (fdopen)" msgstr "" "Un erreur est survenue lors de la réouverture\n" "d'un fichier en tant que flux (dfopen)" #: src/err_dialog_handler.c:44 msgid "Cannot read from the pipe" msgstr "Lecture impossible depuis le tube" #: src/err_dialog_handler.c:45 msgid "Cannot delete file" msgstr "Impossible de supprimer le fichier" #: src/err_dialog_handler.c:46 msgid "" "Cannot open configuration file\n" "loading default values" msgstr "" "Impossible d'ouvrir la configuration,\n" "chargement des valeurs par défaut" #: src/err_dialog_handler.c:47 msgid "Cannot create configuration file ~/.ripperXrc" msgstr "Impossible de créer le fichier de configuration ~/.ripperXrc" #: src/err_dialog_handler.c:48 msgid "" "Cannot open a pty\n" "Maybe all ptys are busy" msgstr "" "Impossible d'ouvreir un pty\n" "Tous les pty sont peut-être déjà occupés" #: src/err_dialog_handler.c:49 msgid "///// use perror msg until here /////" msgstr "//// utiliser le msg perror jusqu'ici ////" #: src/err_dialog_handler.c:50 msgid "Too many arguments" msgstr "Trop d'arguments" #: src/err_dialog_handler.c:51 msgid "Job already in progress" msgstr "Tâche déjà en cours" #: src/err_dialog_handler.c:52 msgid "" "Please select a track to rip or encode.\n" "If you did select tracks, they may already have been ripped." msgstr "" "Choisissez une piste à extraire ou encoder.\n" "SI vous avez déjà choisi, ces pistes sont peut-être déjà extraites." #: src/err_dialog_handler.c:53 msgid "" "Make sure an audio disc is in the drive and that you are\n" "either running ripperX as root, are a member\n" "of the \"cdrom\" group, or otherwise have appropriate\n" "permissions to access the CDROM device.\n" msgstr "" "Assurez-vous qu'un CD audio est dans le lecteur et qu vous n'exécutez pas " "ripperX en root\n" " et que vous avez les permissions suffisantes pour accéder au périphérique.\n" #: src/err_dialog_handler.c:54 msgid "The file name is too long" msgstr "Nom de fichier trop long" #: src/err_dialog_handler.c:55 msgid "Some entry(s) are empty" msgstr "Certaines entrées sont vides" #: src/err_dialog_handler.c:56 msgid "An error has occurred while parsing ~/.ripperXrc" msgstr "Une erreur est survenue pendant l'analyse de ~/.ripperXrc" #: src/err_dialog_handler.c:57 msgid "Some field(s) are empty. Substituting default value" msgstr "Certains champs sont vides (application de la valeur par défaut)" #: src/err_dialog_handler.c:58 msgid "Invalid selection" msgstr "Sélection incorrecte" #: src/err_dialog_handler.c:59 msgid "Could not connect to CDDB server" msgstr "Impossible de se connecter au serveur CDDB" #: src/err_dialog_handler.c:60 msgid "Connection refused from CDDB server" msgstr "Connexion au serveur CDDB refusée" #: src/err_dialog_handler.c:61 msgid "CDDB Server Error" msgstr "Erreur du serveur CDDB" #: src/err_dialog_handler.c:62 msgid "CD Not Found in CD Database" msgstr "CD introuvable dans la base CDDB" #: src/err_dialog_handler.c:63 msgid "Cannot parse the format string" msgstr "Erreur d'analyse du format" #: src/err_dialog_handler.c:64 msgid "Plugin not present" msgstr "Greffon absent" #: src/err_dialog_handler.c:65 msgid "" "Error while locking file.\n" "Make sure the WAV dir and MP3 dir paths are correct and\n" "you have permission to write to those directories." msgstr "" "Erreur lors du verrouillage du fichier.\n" "Assurez-vous que le répertoire pour les MP3 ou les WAV est correct\n" "et que vous avez la permission d'y écrire." #: src/err_dialog_handler.c:66 msgid "The WAV dir is not writable." msgstr "Le répertoire cible des WAV est inaccessible en écriture." #: src/err_dialog_handler.c:67 msgid "The MP3 dir is not writable." msgstr "Le répertoire cible des MP3 est inaccessible en écriture." #: src/err_dialog_handler.c:68 msgid "Cannot create WAV dir" msgstr "Impossible de créer le répertoire cible pour les WAV" #: src/err_dialog_handler.c:69 msgid "Cannot create MP3 dir" msgstr "Impossible de créer le répertoire cible pour les MP3" #: src/err_dialog_handler.c:70 msgid "Make sure an audio disc is in the CDROM device." msgstr "Assurez-vous qu'un disque audio est dans le lecteur CD-ROM." #: src/err_dialog_handler.c:71 msgid "" "Make sure that you are a member of the the \"cdrom\" group,\n" "or otherwise have appropriate permissions to access the CDROM device." msgstr "" "Assurez-vous d'avoir les permissions suffisantes pour accéder au lecteur CD-" "ROM." #: src/err_dialog_handler.c:72 msgid "Exception" msgstr "" #: src/err_dialog_handler.c:82 msgid "Abort confirmation" msgstr "Confirmer l'abandon" #: src/err_dialog_handler.c:83 msgid "Do you really want to abort?" msgstr "Voulez-vous vraiment abandonner ?" #: src/err_dialog_handler.c:86 msgid "Wanna delete?" msgstr "Voulez-vous effacer ?" #: src/err_dialog_handler.c:87 msgid "Do you want to delete current file?" msgstr "Voulez-vous effacer le fichier courant ?" #: src/err_dialog_handler.c:90 msgid "Wanna overwrite?" msgstr "Voulez-vous écraser ?" #: src/err_dialog_handler.c:91 msgid "The file already exists. Do you want to overwrite?" msgstr "Le fichier existe déjà. Voulez-vous l'écraser ?" #: src/err_dialog_handler.c:94 msgid "Enter file name" msgstr "Entrez le nom de fichier" #: src/err_dialog_handler.c:95 msgid "Enter new file name" msgstr "Entrez le nouveau nom de fichier" #: src/err_dialog_handler.c:98 msgid "Wanna create config file?" msgstr "Voulez-vous créer un fichier de configuration ?" #: src/err_dialog_handler.c:99 msgid "" "Config file ~/.ripperXrc does not exist.\n" "Do you want to create config file?" msgstr "" "Le fichier de configuration ~/.ripperXrc n'existe pas.\n" "Voulez-vous le créer ?" #: src/err_dialog_handler.c:102 src/err_dialog_handler.c:106 msgid "Low diskspace warning" msgstr "Attention espace disque faible" #: src/err_dialog_handler.c:103 msgid "" "There is less than 500 megabytes free on the wav partition.\n" " Do you want to continue?" msgstr "" "Il reste moins de 500 méga-octets disponibles sur la partition cible pour " "les WAV.\n" "Voulez-vous continuer ?" #: src/err_dialog_handler.c:107 msgid "" "There is less than 100 megabytes free on the mp3 partition.\n" " Do you want to continue?" msgstr "" "Il reste moins de 100 méga-octets disponibles sur la partition cible pour " "les MP3.\n" "Voulez-vous continuer ?" #: src/err_dialog_handler.c:110 src/err_dialog_handler.c:114 msgid "Directory does not exist" msgstr "Le répertoire n'existe pas" #: src/err_dialog_handler.c:111 msgid "The WAV dir does not exist. Create it?" msgstr "Le répertoire pour les WAV n'existe pas. Voulez-vous le créer ?" #: src/err_dialog_handler.c:115 msgid "The MP3 dir does not exist. Create it?" msgstr "Le répertoire pour les MP3 n'existe pas. Voulez-vous le créer ?" #: src/err_dialog_handler.c:121 msgid "Finished ripping" msgstr "Extraction terminée" #: src/err_dialog_handler.c:122 msgid "Finished encoding" msgstr "Encodage terminé" #: src/err_dialog_handler.c:160 msgid "Error" msgstr "Erreur" #: src/err_dialog_handler.c:336 msgid "Status" msgstr "État" #: src/job_control.c:459 src/job_control.c:582 msgid "Maybe ripperX has failed to execute the plugin" msgstr "ripperX a peut-être connu une erreur lors de l'exécution du greffon" #: src/main_window_handler.c:139 msgid "Scan CD" msgstr "Scanner le CD" #: src/main_window_handler.c:143 msgid "Stop playing" msgstr "Arrêter la lecture" #: src/main_window_handler.c:147 msgid "Get track titles from CDDB server" msgstr "Rapatrier les titres des pistes depuis le serveur CDDB" #: src/main_window_handler.c:151 msgid "Start ripping&encoding" msgstr "Démarrer l'extraction + encodage" #: src/main_window_handler.c:155 msgid "Exit the program" msgstr "Quitter le programme" #: src/misc_utils.c:1229 msgid "" "Check if the filename format string contains format characters other than %a " "%# %v %y or %s." msgstr "" "Vérifiez si le nom du fichier contient des caractères autres que %a %# %v " "%y ou %s." #: src/players_manipulation.c:154 msgid "Failed to exec player :" msgstr "Échec à l'exécution du lecteur :" #: src/ripper_encoder_manipulation.c:72 msgid "Cannot reopen pty as stream" msgstr "Impossible de réouvrir le pty en tant que flux" #: src/ripper_encoder_manipulation.c:253 msgid "Failed to exec cdparanoia :" msgstr "Échec à l'exécution de cdparanoia :" #: src/ripper_encoder_manipulation.c:324 msgid "Failed to exec plugin" msgstr "Échec à l'exécution du greffon" #: src/ripper_encoder_manipulation.c:358 msgid "Failed to exec the specified program" msgstr "Échec à l'exécution du programme spécifié" #: src/select_frame_handler.c:188 msgid "Select All Tracks" msgstr "Sélectionner toutes les pistes" #: src/select_frame_handler.c:200 msgid "Eject" msgstr "" #: src/select_frame_handler.c:214 msgid "Rip to WAV" msgstr "Extraire en WAV" #: src/select_frame_handler.c:219 msgid "Encode" msgstr "Encodage" #: src/select_frame_handler.c:238 msgid "Artist " msgstr "Artiste" #: src/select_frame_handler.c:250 msgid "Album" msgstr "Album" #: src/select_frame_handler.c:263 msgid "Year" msgstr "Année" #: src/select_frame_handler.c:292 msgid "Genre" msgstr "Genre" #: src/status_frame_handler.c:55 msgid "Total time elapsed: " msgstr "Temps total passé :" #: src/status_frame_handler.c:64 msgid "Total time remaining: " msgstr "Temps total restant :" #: src/status_frame_handler.c:73 msgid "Tracks completed: " msgstr "Pistes complétées :" #: src/status_frame_handler.c:82 msgid "Tracks remaining: " msgstr "Pistes restantes :" #: src/status_frame_handler.c:183 src/status_frame_handler.c:287 #, c-format msgid "Ripping track %d" msgstr "Extraction de la piste %d" #: src/status_frame_handler.c:198 src/status_frame_handler.c:310 #, c-format msgid "Encoding track %d" msgstr "Encodage de la piste %d" #: src/status_frame_handler.c:213 msgid "Total progress" msgstr "Progression totale" #: src/status_frame_handler.c:229 msgid "Time info" msgstr "Temps" #: src/status_frame_handler.c:249 msgid "Abort" msgstr "Abandonner" #: src/status_frame_handler.c:261 src/status_frame_handler.c:379 msgid "Pause" msgstr "Pauser" #: src/status_frame_handler.c:300 msgid "Not ripping" msgstr "Pas d'extraction" #: src/status_frame_handler.c:323 msgid "Not encoding" msgstr "Pas d'encodage" #: src/status_frame_handler.c:369 msgid "Continue" msgstr "Continuer" #~ msgid "" #~ "Tracks Completed: %2d\n" #~ "\n" #~ "Artist: %s\n" #~ "Album: %s\n" #~ "\n" #~ "%s" #~ msgstr "" #~ "Pistes complétées : %2d\n" #~ "\n" #~ "Artiste : %s\n" #~ "Album : %s\n" #~ "\n" #~ "%s" #~ msgid "Unknown Style" #~ msgstr "Style inconnu" ripperX-2.8.0/po/gl.po000066400000000000000000000437721233655711300145550ustar00rootroot00000000000000msgid "" msgstr "" "Project-Id-Version: ripperX 2.7.2 galego\n" "Report-Msgid-Bugs-To: tmancill@users.sourceforge.net\n" "POT-Creation-Date: 2014-02-23 22:41-0500\n" "PO-Revision-Date: 2008-05-24 13:58+0100\n" "Last-Translator: Miguel Anxo Bouzada \n" "Language-Team: GALPon MiniNo \n" "Language: gl\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "X-Poedit-Language: Galician\n" "X-Poedit-Country: SPAIN\n" #: src/cddb.c:663 msgid "Contacting CDDB server..." msgstr "Conectando co servidor CDDB..." #: src/cddb.c:688 msgid "Grabbing Completed..." msgstr "Extracción completada..." #: src/cddbp.c:253 #, c-format msgid "Reading Information about track %2d" msgstr "Ledo información da pista %2d" #: src/cddbp.c:272 msgid "Done..." msgstr "Feito..." #: src/config_window_handler.c:87 msgid "General Configuration" msgstr "Configuración xeral" #: src/config_window_handler.c:94 msgid "Wav file" msgstr "Ficheiro WAV" #: src/config_window_handler.c:102 src/config_window_handler.c:140 msgid "File name format: " msgstr "Formato do nome de ficheiro: " #: src/config_window_handler.c:117 src/config_window_handler.c:156 msgid "Target Directory: " msgstr "Directorio de destino: " #: src/config_window_handler.c:132 msgid "MP3 file" msgstr "Ficheiro MP3" #: src/config_window_handler.c:175 msgid "Prepend character : " msgstr "Engadir carácter : " #: src/config_window_handler.c:187 msgid "Make Mp3 from existing Wav file" msgstr "Facer un MP3 a partir dun ficheiro WAV existente" #: src/config_window_handler.c:196 msgid "Ask user when specified file exists" msgstr "Preguntar ao usuario cando o ficheiro especificado xa exista" #: src/config_window_handler.c:205 msgid "Keep wav files" msgstr "Manter ficheiros WAV" #: src/config_window_handler.c:213 src/config_window_handler.c:214 msgid "General" msgstr "Xeral" #: src/config_window_handler.c:235 msgid "You need to fill every entry in general page" msgstr "É preciso encher todas as entradas na páxina xerall" #: src/config_window_handler.c:283 msgid "Force search for drive (ignore /dev/cdrom)" msgstr "Forzar a detección da unidade (ignorar /dev/cdrom)" #: src/config_window_handler.c:284 msgid "Disable paranoia (will act like cdda)" msgstr "Desactivar «paranoia» (funcionará como cdda)" #: src/config_window_handler.c:285 msgid "Disable extra paranoia" msgstr "Desactivar «paranoia extra»" #: src/config_window_handler.c:286 msgid "Disable scratch detection" msgstr "Desactivar a detección de raiaduras" #: src/config_window_handler.c:287 msgid "Disable scratch repair" msgstr "Desactivar a reparación de raiaduras" #: src/config_window_handler.c:307 msgid "Wav Configuration" msgstr "Configuración de ficheiros WAV" #: src/config_window_handler.c:321 msgid "Ripper plugin" msgstr "Módulo extractor" #: src/config_window_handler.c:356 src/config_window_handler.c:622 msgid "Extra Options: " msgstr "Opcións adicionais: " #: src/config_window_handler.c:488 msgid "Mp3 Configuration" msgstr "Configuración MP3" #: src/config_window_handler.c:499 msgid "Encoder plugin" msgstr "Módulo codificador" #: src/config_window_handler.c:526 msgid "BitRate, Default 128kbits" msgstr "Taxa de bits, predeterminada 128kbps" #: src/config_window_handler.c:573 msgid "Use variable bitrate (VBR)" msgstr "Usar taxa variable (VBR)" #: src/config_window_handler.c:579 msgid "VBR quality (if available)" msgstr "Calidade de «VBR» (si está dispoñible)" #: src/config_window_handler.c:589 msgid "0=high quality and bigger files, 9=smaller files" msgstr "0=alta calidade e ficheiros grandes, 9=ficheiros máis pequenos" #: src/config_window_handler.c:593 msgid "Encoder Priority" msgstr "Prioridade do codificador" #: src/config_window_handler.c:603 msgid "0=high priority, 19=system is responsive while encoding" msgstr "0=alta prioridade, 19=o sistema responde mentras codifica" #: src/config_window_handler.c:607 msgid "High quality mode" msgstr "Modo de alta calidade" #: src/config_window_handler.c:613 msgid "Include CRC error protection" msgstr "Incluir protección de erros con «CRC»" #: src/config_window_handler.c:835 src/config_window_handler.c:879 #: src/config_window_handler.c:880 msgid "Players" msgstr "Reproductores" #: src/config_window_handler.c:843 msgid "CD play command: " msgstr "Orde para reproducir o CD: " #: src/config_window_handler.c:852 msgid "CD stop command: " msgstr "Orde para parar o CD: " #: src/config_window_handler.c:861 msgid "Wav play command: " msgstr "Orde para reproducir ficheiros WAV: " #: src/config_window_handler.c:870 msgid "Mp3 play command: " msgstr "Orde para reproducir ficheiros MP3: " #: src/config_window_handler.c:898 msgid "You need to fill every entry in players page" msgstr "É preciso encher todas as entradas na páxina de reproductores" #: src/config_window_handler.c:931 msgid "File Configuration" msgstr "Configuración de ficheiros" #: src/config_window_handler.c:938 msgid "Convert spaces to underscores" msgstr "Convertir espacios a subraiados" #: src/config_window_handler.c:944 msgid "Create album subdirectory for each CD" msgstr "Crear un subdirectorio de álbum para cada CD" #: src/config_window_handler.c:950 msgid "Create ID3 tag" msgstr "Crear etiqueta «ID3«" #: src/config_window_handler.c:956 msgid "Create m3u playlist" msgstr "Crear lista de reproducción «m3u»" #: src/config_window_handler.c:965 msgid "Filename format string: " msgstr "Cadea de formato do nome de ficheiro: " #: src/config_window_handler.c:977 msgid "Directory format string: " msgstr "Cadea de formato do directorio: " #: src/config_window_handler.c:991 #, c-format msgid "%a = Artist" msgstr "%a = Artista" #: src/config_window_handler.c:994 msgid "%v = Album" msgstr "%v = Ãlbum" #: src/config_window_handler.c:997 msgid "%# = Track no." msgstr "# = N.º de pista" #: src/config_window_handler.c:1000 #, c-format msgid "%s = Song title" msgstr "%s = Título da canción" #: src/config_window_handler.c:1003 msgid "%y = Year" msgstr "%y = Ano" #: src/config_window_handler.c:1009 src/config_window_handler.c:1010 msgid "Files" msgstr "Ficheiros" #: src/config_window_handler.c:1083 msgid "CDDB Configuration" msgstr "Configuración «CDDB»" #: src/config_window_handler.c:1096 msgid "URL: " msgstr "URL: " #: src/config_window_handler.c:1106 msgid "Port: " msgstr "Porto: " #: src/config_window_handler.c:1118 msgid "Use HTTP" msgstr "Usar HTTP" #: src/config_window_handler.c:1125 msgid "Proxy Server: " msgstr "Servidor proxy: " #: src/config_window_handler.c:1135 msgid "Proxy Port: " msgstr "Porto do proxy: " #: src/config_window_handler.c:1151 msgid "CDDB Cache path: " msgstr "Ruta á «caché CDDB»: " #: src/config_window_handler.c:1165 msgid "Automatic lookup on startup" msgstr "Procura automática ao iniciar" #: src/config_window_handler.c:1186 msgid "You need to specify a server and a port" msgstr "É preciso especificar un servidor e un porto" #: src/config_window_handler.c:1256 src/main_window_handler.c:135 msgid "Configuration" msgstr "Configuracion" #: src/dir_window_handler.c:76 msgid "Select a directory" msgstr "Seleccione un directorio" #: src/err_dialog_handler.c:39 msgid "An error has occured while forking" msgstr "Atopouse un erro ao crear o proceso" #: src/err_dialog_handler.c:40 msgid "Cannot create pipe" msgstr "Non se pode crear a «tubería»" #: src/err_dialog_handler.c:41 msgid "Cannot open /dev/null" msgstr "Non se pode abrir «/dev/null»" #: src/err_dialog_handler.c:42 #, fuzzy msgid "Memory allocation error has occurred" msgstr "Ocurriu un erro de reserva de memoria" #: src/err_dialog_handler.c:43 msgid "" "An error has occurred while trying to\n" "reopen a file as a stream (fdopen)" msgstr "" "Ocurriu un erro intentando reabrir\n" "un ficheiro como un fluxo (fdopen)" #: src/err_dialog_handler.c:44 msgid "Cannot read from the pipe" msgstr "Non se pode ler da «tubería»" #: src/err_dialog_handler.c:45 msgid "Cannot delete file" msgstr "Non se pode borrar o ficheiro" #: src/err_dialog_handler.c:46 msgid "" "Cannot open configuration file\n" "loading default values" msgstr "" "Non se pode abrir o ficheiro de configuración,\n" "aplicanse os valores predeterminados" #: src/err_dialog_handler.c:47 msgid "Cannot create configuration file ~/.ripperXrc" msgstr "Non se pode crear o ficheiro de configuración ~/.ripperXrc" #: src/err_dialog_handler.c:48 msgid "" "Cannot open a pty\n" "Maybe all ptys are busy" msgstr "" "Non se puede abrir unha «pty»\n" "Quizás todas estean ocupadas" #: src/err_dialog_handler.c:49 msgid "///// use perror msg until here /////" msgstr "" #: src/err_dialog_handler.c:50 msgid "Too many arguments" msgstr "Demasiados argumentos" #: src/err_dialog_handler.c:51 msgid "Job already in progress" msgstr "Este traballo esta a facerse" #: src/err_dialog_handler.c:52 #, fuzzy msgid "" "Please select a track to rip or encode.\n" "If you did select tracks, they may already have been ripped." msgstr "" "Por favor seleccione unha pista para extraer ou codificar. \n" "Si xa seleccionou pistas pode que xa foran extraídas." #: src/err_dialog_handler.c:53 #, fuzzy msgid "" "Make sure an audio disc is in the drive and that you are\n" "either running ripperX as root, are a member\n" "of the \"cdrom\" group, or otherwise have appropriate\n" "permissions to access the CDROM device.\n" msgstr "" "Asegúrese de que hai algún disco de son na unidade e de\n" "que está a executar «ripperX» como root, é membro do\n" "grupo «cdrom» ou de que ten os permisos axeitados\n" "para empregar o dispositivo de CDROM.\n" #: src/err_dialog_handler.c:54 msgid "The file name is too long" msgstr "O nome do ficheiro é demasiado longo" #: src/err_dialog_handler.c:55 msgid "Some entry(s) are empty" msgstr "Algunha(s) entrada(s) está(n) valeira(s)" #: src/err_dialog_handler.c:56 msgid "An error has occurred while parsing ~/.ripperXrc" msgstr "Ocorreu un erro ao interpretar ~/.ripperXrc" #: src/err_dialog_handler.c:57 msgid "Some field(s) are empty. Substituting default value" msgstr "" "Algun(s) campo(s) está(n) valeiro(s). Substituindo por valor predeterminado" #: src/err_dialog_handler.c:58 msgid "Invalid selection" msgstr "Selección non válida" #: src/err_dialog_handler.c:59 msgid "Could not connect to CDDB server" msgstr "Non se puido conectar ao servidor CDDB" #: src/err_dialog_handler.c:60 msgid "Connection refused from CDDB server" msgstr "Conesión rexeitada polo servidor CDDB" #: src/err_dialog_handler.c:61 msgid "CDDB Server Error" msgstr "Ocorreu un erro co servidor CDDB" #: src/err_dialog_handler.c:62 msgid "CD Not Found in CD Database" msgstr "Este CD non aparece na base de datos" #: src/err_dialog_handler.c:63 msgid "Cannot parse the format string" msgstr "Non se pode interpretar o formato da cadea" #: src/err_dialog_handler.c:64 msgid "Plugin not present" msgstr "Nonexiste o complemento" #: src/err_dialog_handler.c:65 #, fuzzy msgid "" "Error while locking file.\n" "Make sure the WAV dir and MP3 dir paths are correct and\n" "you have permission to write to those directories." msgstr "" "Ocorreu un erro ao bloquear o ficheiro.\n" "Asegúrese de que as rutas dos directorios de WAV e MP3 son \n" "correctos e de que ten permisos para escribir neles." #: src/err_dialog_handler.c:66 msgid "The WAV dir is not writable." msgstr "Non se pode escribir nodirectoro WAV " #: src/err_dialog_handler.c:67 msgid "The MP3 dir is not writable." msgstr "Non se pode escribir no directorio MP·" #: src/err_dialog_handler.c:68 msgid "Cannot create WAV dir" msgstr "Non se pode crear o directorio WAV" #: src/err_dialog_handler.c:69 msgid "Cannot create MP3 dir" msgstr "Non se pode crear o directorio MP3" #: src/err_dialog_handler.c:70 msgid "Make sure an audio disc is in the CDROM device." msgstr "Asegúrese de que que haxa un disco de son nol CDROM" #: src/err_dialog_handler.c:71 msgid "" "Make sure that you are a member of the the \"cdrom\" group,\n" "or otherwise have appropriate permissions to access the CDROM device." msgstr "" "Asegúrese de que é miembro do grupo «cdrom», ou de que\n" "ten os permisos axeitados para empregar o CDROM." #: src/err_dialog_handler.c:72 msgid "Exception" msgstr "" #: src/err_dialog_handler.c:82 msgid "Abort confirmation" msgstr "Confirmación da detención" #: src/err_dialog_handler.c:83 msgid "Do you really want to abort?" msgstr "Está seguro de que desexa cancelar?" #: src/err_dialog_handler.c:86 msgid "Wanna delete?" msgstr "Quere borrar?" #: src/err_dialog_handler.c:87 msgid "Do you want to delete current file?" msgstr "Quere borrar o ficheiro actual?" #: src/err_dialog_handler.c:90 msgid "Wanna overwrite?" msgstr "Quere sobreescribir?" #: src/err_dialog_handler.c:91 msgid "The file already exists. Do you want to overwrite?" msgstr "O ficheiro xa existe. Quere sobreescribirlo?" #: src/err_dialog_handler.c:94 msgid "Enter file name" msgstr "Introduza o nome de ficheiro" #: src/err_dialog_handler.c:95 msgid "Enter new file name" msgstr "Introduza o novo nome de ficheiro" #: src/err_dialog_handler.c:98 msgid "Wanna create config file?" msgstr "Quere crear o ficheiro de configuración?" #: src/err_dialog_handler.c:99 msgid "" "Config file ~/.ripperXrc does not exist.\n" "Do you want to create config file?" msgstr "" "O ficheiro de configuración ~/.ripperXrc non existe.\n" "Desexa crear o ficheiro de configuración?" #: src/err_dialog_handler.c:102 src/err_dialog_handler.c:106 msgid "Low diskspace warning" msgstr "Aviso! Pouco espazo no disco" #: src/err_dialog_handler.c:103 msgid "" "There is less than 500 megabytes free on the wav partition.\n" " Do you want to continue?" msgstr "" "Hai menos de 500 Megabytes libres na partición de WAV.\n" "Desexa continuar?" #: src/err_dialog_handler.c:107 msgid "" "There is less than 100 megabytes free on the mp3 partition.\n" " Do you want to continue?" msgstr "" "Hai menos de 100 Megabytes libres na partición de MP3.\n" "Desexa continuar?" #: src/err_dialog_handler.c:110 src/err_dialog_handler.c:114 msgid "Directory does not exist" msgstr "O directorio non existe" #: src/err_dialog_handler.c:111 msgid "The WAV dir does not exist. Create it?" msgstr "O directorio WAV non existe. Desexa crealo?" #: src/err_dialog_handler.c:115 msgid "The MP3 dir does not exist. Create it?" msgstr "O directorio MP· non existe. Desexa crealo?" #: src/err_dialog_handler.c:121 msgid "Finished ripping" msgstr "Rematou a extracción" #: src/err_dialog_handler.c:122 msgid "Finished encoding" msgstr "Rematou a codificación" #: src/err_dialog_handler.c:160 msgid "Error" msgstr "Ocorreu un erro" #: src/err_dialog_handler.c:336 msgid "Status" msgstr "Estado" #: src/job_control.c:459 src/job_control.c:582 msgid "Maybe ripperX has failed to execute the plugin" msgstr "Parece que ripperX fallou ao executar o módulo" #: src/main_window_handler.c:139 msgid "Scan CD" msgstr "Examinando o CD" #: src/main_window_handler.c:143 msgid "Stop playing" msgstr "Parar a reproducción" #: src/main_window_handler.c:147 msgid "Get track titles from CDDB server" msgstr "Obter os títulos das pistas do servidor CDDB" #: src/main_window_handler.c:151 msgid "Start ripping&encoding" msgstr "Iniciar a extracción e a codificación" #: src/main_window_handler.c:155 msgid "Exit the program" msgstr "Sair do programa" #: src/misc_utils.c:1229 msgid "" "Check if the filename format string contains format characters other than %a " "%# %v %y or %s." msgstr "" "Comprobe si a cadea de formato de nome conten carácteres de formato " "distintos a «%a», «%#», «%v», «%y» ou «%s»." #: src/players_manipulation.c:154 msgid "Failed to exec player :" msgstr "Ocorreu un fallo ao executar o reproductor" #: src/ripper_encoder_manipulation.c:72 msgid "Cannot reopen pty as stream" msgstr "Non se pode reabrir a «pty» como un fluxo" #: src/ripper_encoder_manipulation.c:253 msgid "Failed to exec cdparanoia :" msgstr "Ocorreu un fallo ao executar o «cdparanoia»" #: src/ripper_encoder_manipulation.c:324 msgid "Failed to exec plugin" msgstr "Ocorreu un fallo ao executar o módulo" #: src/ripper_encoder_manipulation.c:358 msgid "Failed to exec the specified program" msgstr "Ocorreu un fallo ao executar o programa específicado" #: src/select_frame_handler.c:188 msgid "Select All Tracks" msgstr "Seleccionar todas as pistas" #: src/select_frame_handler.c:200 msgid "Eject" msgstr "" #: src/select_frame_handler.c:214 msgid "Rip to WAV" msgstr "Extraer a WAV" #: src/select_frame_handler.c:219 msgid "Encode" msgstr "Codificar" #: src/select_frame_handler.c:238 msgid "Artist " msgstr "Artista" #: src/select_frame_handler.c:250 msgid "Album" msgstr "Ãlbum" #: src/select_frame_handler.c:263 msgid "Year" msgstr "Ano" #: src/select_frame_handler.c:292 msgid "Genre" msgstr "Xénero" #: src/status_frame_handler.c:55 msgid "Total time elapsed: " msgstr "Tempo total transcurrido: " #: src/status_frame_handler.c:64 msgid "Total time remaining: " msgstr "Tempo total restante: " #: src/status_frame_handler.c:73 msgid "Tracks completed: " msgstr "Pistas completadas: " #: src/status_frame_handler.c:82 msgid "Tracks remaining: " msgstr "Pistas restantes: " #: src/status_frame_handler.c:183 src/status_frame_handler.c:287 #, c-format msgid "Ripping track %d" msgstr "Extraendo pista %d" #: src/status_frame_handler.c:198 src/status_frame_handler.c:310 #, c-format msgid "Encoding track %d" msgstr "Codificando pista %d" #: src/status_frame_handler.c:213 msgid "Total progress" msgstr "Progreso total" #: src/status_frame_handler.c:229 msgid "Time info" msgstr "Información de tempo" #: src/status_frame_handler.c:249 msgid "Abort" msgstr "Cancelar" #: src/status_frame_handler.c:261 src/status_frame_handler.c:379 msgid "Pause" msgstr "Pausa" #: src/status_frame_handler.c:300 msgid "Not ripping" msgstr "Non se pode extraer" #: src/status_frame_handler.c:323 msgid "Not encoding" msgstr "Non se pode codificar" #: src/status_frame_handler.c:369 msgid "Continue" msgstr "Continuar" #~ msgid "" #~ "Tracks Completed: %2d\n" #~ "\n" #~ "Artist: %s\n" #~ "Album: %s\n" #~ "\n" #~ "%s" #~ msgstr "" #~ "Pistas completadas: %2d\n" #~ "\n" #~ "Artista: %s\n" #~ "Ãlbum: %s\n" #~ "\n" #~ "%s" #~ msgid "Unknown Style" #~ msgstr "Estilo descoñecido" ripperX-2.8.0/po/insert-header.sin000066400000000000000000000012401233655711300170400ustar00rootroot00000000000000# Sed script that inserts the file called HEADER before the header entry. # # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following # occurrences is achieved by looking at the hold space. /^msgid /{ x # Test if the hold space is empty. s/m/m/ ta # Yes it was empty. First occurrence. Read the file. r HEADER # Output the file's contents by reading the next line. But don't lose the # current line while doing this. g N bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } ripperX-2.8.0/po/it.po000066400000000000000000000432571233655711300145650ustar00rootroot00000000000000# Italian translation of ripperX. # Copyright (C) 2008 Salvatore De Paolis # This file is distributed under the same license as the ripperX package. # Salvatore De Paolis , 2008. # msgid "" msgstr "" "Project-Id-Version: ripperX\n" "Report-Msgid-Bugs-To: tmancill@users.sourceforge.net\n" "POT-Creation-Date: 2014-02-23 22:41-0500\n" "PO-Revision-Date: 2008-02-01 22:19+100\n" "Last-Translator: Salvatore De Paolis \n" "Language-Team: Salvatore De Paolis \n" "Language: it\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=iso-8859-1\n" "Content-Transfer-Encoding: 8bit\n" #: src/cddb.c:663 msgid "Contacting CDDB server..." msgstr "Connessione al server CDDB..." #: src/cddb.c:688 msgid "Grabbing Completed..." msgstr "Estrazione Completata..." #: src/cddbp.c:253 #, c-format msgid "Reading Information about track %2d" msgstr "Lettura informazioni della traccia %2d" #: src/cddbp.c:272 msgid "Done..." msgstr "Fatto..." #: src/config_window_handler.c:87 msgid "General Configuration" msgstr "Configurazione Generale" #: src/config_window_handler.c:94 msgid "Wav file" msgstr "File Wav" #: src/config_window_handler.c:102 src/config_window_handler.c:140 msgid "File name format: " msgstr "Formato del file" #: src/config_window_handler.c:117 src/config_window_handler.c:156 msgid "Target Directory: " msgstr "Cartella di destinazione" #: src/config_window_handler.c:132 msgid "MP3 file" msgstr "File MP3" #: src/config_window_handler.c:175 msgid "Prepend character : " msgstr "Aggiungi un carattere all'inizio : " #: src/config_window_handler.c:187 msgid "Make Mp3 from existing Wav file" msgstr "Crea un Mp3 da un file Wav esistente" #: src/config_window_handler.c:196 msgid "Ask user when specified file exists" msgstr "Chiedi all'utente se un file esiste" #: src/config_window_handler.c:205 msgid "Keep wav files" msgstr "Mantieni file wav" #: src/config_window_handler.c:213 src/config_window_handler.c:214 msgid "General" msgstr "Generale" #: src/config_window_handler.c:235 msgid "You need to fill every entry in general page" msgstr "Devi riempire tutti i campi nella pagina generale" #: src/config_window_handler.c:283 msgid "Force search for drive (ignore /dev/cdrom)" msgstr "Forza la ricerca per unità disco (ignora /dev/cdrom)" #: src/config_window_handler.c:284 msgid "Disable paranoia (will act like cdda)" msgstr "Disattiva paranoia (funzionerà come cdda)" #: src/config_window_handler.c:285 msgid "Disable extra paranoia" msgstr "Disattiva extra paranoia" #: src/config_window_handler.c:286 msgid "Disable scratch detection" msgstr "Disattiva il riconoscimento parti danneggiate" #: src/config_window_handler.c:287 msgid "Disable scratch repair" msgstr "Disattiva la riparazione parti danneggiate" #: src/config_window_handler.c:307 msgid "Wav Configuration" msgstr "Configurazione Wav" #: src/config_window_handler.c:321 msgid "Ripper plugin" msgstr "Plugin Ripper" #: src/config_window_handler.c:356 src/config_window_handler.c:622 msgid "Extra Options: " msgstr "Opzioni Extra: " #: src/config_window_handler.c:488 msgid "Mp3 Configuration" msgstr "Configurazione Mp3" #: src/config_window_handler.c:499 msgid "Encoder plugin" msgstr "Plugin di codifica" #: src/config_window_handler.c:526 msgid "BitRate, Default 128kbits" msgstr "BitRate, Default 128kbits" #: src/config_window_handler.c:573 msgid "Use variable bitrate (VBR)" msgstr "Usa bitrate variabile (VBR)" #: src/config_window_handler.c:579 msgid "VBR quality (if available)" msgstr "Qualità VBR (se disponibile)" #: src/config_window_handler.c:589 msgid "0=high quality and bigger files, 9=smaller files" msgstr "0=Alta qualità e file grandi, 9=file piccoli" #: src/config_window_handler.c:593 msgid "Encoder Priority" msgstr "Priorità del codificatore" #: src/config_window_handler.c:603 msgid "0=high priority, 19=system is responsive while encoding" msgstr "0=Priorità alta, 19=sistema reattivo durante la codifica" #: src/config_window_handler.c:607 msgid "High quality mode" msgstr "Modo alta qualità" #: src/config_window_handler.c:613 msgid "Include CRC error protection" msgstr "Includi la protezione errori CRC" #: src/config_window_handler.c:835 src/config_window_handler.c:879 #: src/config_window_handler.c:880 msgid "Players" msgstr "Lettori" #: src/config_window_handler.c:843 msgid "CD play command: " msgstr "Comando esegui CD: " #: src/config_window_handler.c:852 msgid "CD stop command: " msgstr "Comando ferma CD: " #: src/config_window_handler.c:861 msgid "Wav play command: " msgstr "Comando esegui Wav: " #: src/config_window_handler.c:870 msgid "Mp3 play command: " msgstr "Comando esegui Mp3: " #: src/config_window_handler.c:898 msgid "You need to fill every entry in players page" msgstr "Devi riempire tutti i campi nella pagina lettori" #: src/config_window_handler.c:931 msgid "File Configuration" msgstr "Configurazione file" #: src/config_window_handler.c:938 msgid "Convert spaces to underscores" msgstr "Converti spazi in trattino basso" #: src/config_window_handler.c:944 msgid "Create album subdirectory for each CD" msgstr "Crea una sottodirectory album per ogni CD" #: src/config_window_handler.c:950 msgid "Create ID3 tag" msgstr "Crea tag ID3" #: src/config_window_handler.c:956 msgid "Create m3u playlist" msgstr "Crea lista brani m3u" #: src/config_window_handler.c:965 msgid "Filename format string: " msgstr "Formato del nome file: " #: src/config_window_handler.c:977 msgid "Directory format string: " msgstr "Formato della cartella: " #: src/config_window_handler.c:991 #, c-format msgid "%a = Artist" msgstr "%a = Artista" #: src/config_window_handler.c:994 msgid "%v = Album" msgstr "%v = Album" #: src/config_window_handler.c:997 msgid "%# = Track no." msgstr "%= = Traccia n." #: src/config_window_handler.c:1000 #, c-format msgid "%s = Song title" msgstr "%s = Titolo brano" #: src/config_window_handler.c:1003 msgid "%y = Year" msgstr "%y = Anno" #: src/config_window_handler.c:1009 src/config_window_handler.c:1010 msgid "Files" msgstr "File" #: src/config_window_handler.c:1083 msgid "CDDB Configuration" msgstr "Configurazione CDDB" #: src/config_window_handler.c:1096 msgid "URL: " msgstr "URL: " #: src/config_window_handler.c:1106 msgid "Port: " msgstr "Porta: " #: src/config_window_handler.c:1118 msgid "Use HTTP" msgstr "Usa HTTP" #: src/config_window_handler.c:1125 msgid "Proxy Server: " msgstr "Server Proxy: " #: src/config_window_handler.c:1135 msgid "Proxy Port: " msgstr "Porta Proxy: " #: src/config_window_handler.c:1151 msgid "CDDB Cache path: " msgstr "Percorso cache CDDB: " #: src/config_window_handler.c:1165 msgid "Automatic lookup on startup" msgstr "Ricerca automatica all'avvio" #: src/config_window_handler.c:1186 msgid "You need to specify a server and a port" msgstr "Devi specificare un server ed una porta" #: src/config_window_handler.c:1256 src/main_window_handler.c:135 msgid "Configuration" msgstr "Configurazione" #: src/dir_window_handler.c:76 msgid "Select a directory" msgstr "Seleziona una cartella" #: src/err_dialog_handler.c:39 msgid "An error has occured while forking" msgstr "Errore nella creazione del processo" #: src/err_dialog_handler.c:40 msgid "Cannot create pipe" msgstr "Impossibile creare la pipe" #: src/err_dialog_handler.c:41 msgid "Cannot open /dev/null" msgstr "Impossibile aprire /dev/null" #: src/err_dialog_handler.c:42 #, fuzzy msgid "Memory allocation error has occurred" msgstr "Si è verificato un errore di allocazione di memoria" #: src/err_dialog_handler.c:43 msgid "" "An error has occurred while trying to\n" "reopen a file as a stream (fdopen)" msgstr "" "Si è verificato un errore cercando di\n" "riaprire un file come stream (fdopen)" #: src/err_dialog_handler.c:44 msgid "Cannot read from the pipe" msgstr "Impossibile leggere dalla pipe" #: src/err_dialog_handler.c:45 msgid "Cannot delete file" msgstr "Impossibile eliminare il file" #: src/err_dialog_handler.c:46 msgid "" "Cannot open configuration file\n" "loading default values" msgstr "" "Impossibile aprire il file di configurazione\n" "verranno caricati i valori predefiniti" #: src/err_dialog_handler.c:47 msgid "Cannot create configuration file ~/.ripperXrc" msgstr "Impossibile creare il file di configurazione ~/.ripperXrc" #: src/err_dialog_handler.c:48 msgid "" "Cannot open a pty\n" "Maybe all ptys are busy" msgstr "" "Impossibile aprire una pty\n" "Tutte le pty potrebbero essere occupate" #: src/err_dialog_handler.c:49 msgid "///// use perror msg until here /////" msgstr "///// usa il messaggio perror fin qui ///// " #: src/err_dialog_handler.c:50 msgid "Too many arguments" msgstr "Troppi argomenti" #: src/err_dialog_handler.c:51 msgid "Job already in progress" msgstr "Attività già in esecuzione" #: src/err_dialog_handler.c:52 #, fuzzy msgid "" "Please select a track to rip or encode.\n" "If you did select tracks, they may already have been ripped." msgstr "" "Seleziona una traccia da estrarre o convertireSe hai già selezionato le " "tracce, potrebbero essere già state estratte." #: src/err_dialog_handler.c:53 #, fuzzy msgid "" "Make sure an audio disc is in the drive and that you are\n" "either running ripperX as root, are a member\n" "of the \"cdrom\" group, or otherwise have appropriate\n" "permissions to access the CDROM device.\n" msgstr "" "Assicurati che ci sia un CD audio nel lettore e che ripperX venga\n" "eseguito con permessi root, di essere membro del gruppo \"cdrom\", o in\n" "altro modo di avere i permessi per accedere alla periferica CDROM.\n" #: src/err_dialog_handler.c:54 msgid "The file name is too long" msgstr "Il nome del file è troppo lungo" #: src/err_dialog_handler.c:55 msgid "Some entry(s) are empty" msgstr "Alcuni campi sono vuoti" #: src/err_dialog_handler.c:56 msgid "An error has occurred while parsing ~/.ripperXrc" msgstr "Si è verificato un errore analizzando ~/.ripperXrc" #: src/err_dialog_handler.c:57 msgid "Some field(s) are empty. Substituting default value" msgstr "Alcuni campi sono vuoti. Sostituzione con valori predefiniti" #: src/err_dialog_handler.c:58 msgid "Invalid selection" msgstr "Selezione invalida" #: src/err_dialog_handler.c:59 msgid "Could not connect to CDDB server" msgstr "Impossibile connettersi al server CDDB" #: src/err_dialog_handler.c:60 msgid "Connection refused from CDDB server" msgstr "Connessione rifiutata dal server CDDB" #: src/err_dialog_handler.c:61 msgid "CDDB Server Error" msgstr "Errore dal server CDDB" #: src/err_dialog_handler.c:62 msgid "CD Not Found in CD Database" msgstr "CD non trovato nel Database dei CD" #: src/err_dialog_handler.c:63 msgid "Cannot parse the format string" msgstr "Impossibile analizzare il formato della stringa" #: src/err_dialog_handler.c:64 msgid "Plugin not present" msgstr "Plugin non presente" #: src/err_dialog_handler.c:65 #, fuzzy msgid "" "Error while locking file.\n" "Make sure the WAV dir and MP3 dir paths are correct and\n" "you have permission to write to those directories." msgstr "" "Errore nel bloccare il file.\n" "Controlla che i percorsi alle cartella WAV e MP3 sono corretti e\n" "di avere i permessi di scrittura." #: src/err_dialog_handler.c:66 msgid "The WAV dir is not writable." msgstr "La cartella WAV non ha permessi di scrittura." #: src/err_dialog_handler.c:67 msgid "The MP3 dir is not writable." msgstr "La cartella MP3 non ha permessi di scrittura." #: src/err_dialog_handler.c:68 msgid "Cannot create WAV dir" msgstr "Impossibile creare la cartella WAV" #: src/err_dialog_handler.c:69 msgid "Cannot create MP3 dir" msgstr "Impossibile creare la cartella MP3" #: src/err_dialog_handler.c:70 msgid "Make sure an audio disc is in the CDROM device." msgstr "Assicurati che ci sia un disco nel lettore CDROM." #: src/err_dialog_handler.c:71 msgid "" "Make sure that you are a member of the the \"cdrom\" group,\n" "or otherwise have appropriate permissions to access the CDROM device." msgstr "" "Assicurati di essere membro del gruppo \"cdrom\", o in\n" "altro modo di avere i permessi per accedere alla periferica CDROM." #: src/err_dialog_handler.c:72 msgid "Exception" msgstr "" #: src/err_dialog_handler.c:82 msgid "Abort confirmation" msgstr "Conferma terminazione" #: src/err_dialog_handler.c:83 msgid "Do you really want to abort?" msgstr "Vuoi davvero terminare?" #: src/err_dialog_handler.c:86 msgid "Wanna delete?" msgstr "Vuoi eliminare?" #: src/err_dialog_handler.c:87 msgid "Do you want to delete current file?" msgstr "Vuoi eliminare il file corrente?" #: src/err_dialog_handler.c:90 msgid "Wanna overwrite?" msgstr "Vuoi sovrascrivere?" #: src/err_dialog_handler.c:91 msgid "The file already exists. Do you want to overwrite?" msgstr "Il file esiste già. Vuoi sovrascrivere?" #: src/err_dialog_handler.c:94 msgid "Enter file name" msgstr "Inserisci un nome di file" #: src/err_dialog_handler.c:95 msgid "Enter new file name" msgstr "Inserisci un nuovo nome di file" #: src/err_dialog_handler.c:98 msgid "Wanna create config file?" msgstr "Vuoi creare un file di configurazione?" #: src/err_dialog_handler.c:99 msgid "" "Config file ~/.ripperXrc does not exist.\n" "Do you want to create config file?" msgstr "" "Il file di configurazioe ~/.ripperXrc non esiste.\n" "Vuoi crearlo?" #: src/err_dialog_handler.c:102 src/err_dialog_handler.c:106 msgid "Low diskspace warning" msgstr "Avviso di spazio su disco insufficiente" #: src/err_dialog_handler.c:103 msgid "" "There is less than 500 megabytes free on the wav partition.\n" " Do you want to continue?" msgstr "" "Ci sono meno di 500 MB liberi sulla partizione wav.\n" " Vuoi continuare?" #: src/err_dialog_handler.c:107 msgid "" "There is less than 100 megabytes free on the mp3 partition.\n" " Do you want to continue?" msgstr "" "Ci sono meno di 100 MB liberi sulla partizione mp3.\n" " Vuoi continuare?" #: src/err_dialog_handler.c:110 src/err_dialog_handler.c:114 msgid "Directory does not exist" msgstr "La cartella non esiste" #: src/err_dialog_handler.c:111 msgid "The WAV dir does not exist. Create it?" msgstr "La cartella WAV non esiste. Crearla?" #: src/err_dialog_handler.c:115 msgid "The MP3 dir does not exist. Create it?" msgstr "La cartella MP3 non esiste. Crearla?" #: src/err_dialog_handler.c:121 msgid "Finished ripping" msgstr "Estrazione completata" #: src/err_dialog_handler.c:122 msgid "Finished encoding" msgstr "Codifica completata" #: src/err_dialog_handler.c:160 msgid "Error" msgstr "Errore" #: src/err_dialog_handler.c:336 msgid "Status" msgstr "Stato" #: src/job_control.c:459 src/job_control.c:582 msgid "Maybe ripperX has failed to execute the plugin" msgstr "ripperX potrebbe aver fallito nell'esecuzione del plugin" #: src/main_window_handler.c:139 msgid "Scan CD" msgstr "Lettura CD" #: src/main_window_handler.c:143 msgid "Stop playing" msgstr "Ferma l'esecuzione" #: src/main_window_handler.c:147 msgid "Get track titles from CDDB server" msgstr "Ottieni i titoli delle tracce dal server CDDB" #: src/main_window_handler.c:151 msgid "Start ripping&encoding" msgstr "Inizio estrazione&ecodifica" #: src/main_window_handler.c:155 msgid "Exit the program" msgstr "Esci dal programma" #: src/misc_utils.c:1229 msgid "" "Check if the filename format string contains format characters other than %a " "%# %v %y or %s." msgstr "" "Controlla se il nome del file contiene caratteri diversi da %a %# %v %y o %s." #: src/players_manipulation.c:154 msgid "Failed to exec player :" msgstr "Esecuzione del lettore fallita: " #: src/ripper_encoder_manipulation.c:72 msgid "Cannot reopen pty as stream" msgstr "Impossibile riaprire pty come stream" #: src/ripper_encoder_manipulation.c:253 msgid "Failed to exec cdparanoia :" msgstr "Esecuzione di cdparanoia fallita: " #: src/ripper_encoder_manipulation.c:324 msgid "Failed to exec plugin" msgstr "Esecuzione del plugin fallita" #: src/ripper_encoder_manipulation.c:358 msgid "Failed to exec the specified program" msgstr "Esecuzione del programma specifico fallita" #: src/select_frame_handler.c:188 msgid "Select All Tracks" msgstr "Seleziona tutte le tracce" #: src/select_frame_handler.c:200 msgid "Eject" msgstr "" #: src/select_frame_handler.c:214 msgid "Rip to WAV" msgstr "Estrai in WAV" #: src/select_frame_handler.c:219 msgid "Encode" msgstr "Codifica" #: src/select_frame_handler.c:238 msgid "Artist " msgstr "Artista" #: src/select_frame_handler.c:250 msgid "Album" msgstr "Album" #: src/select_frame_handler.c:263 msgid "Year" msgstr "Anno" #: src/select_frame_handler.c:292 msgid "Genre" msgstr "Genere" #: src/status_frame_handler.c:55 msgid "Total time elapsed: " msgstr "Tempo totale trascorso: " #: src/status_frame_handler.c:64 msgid "Total time remaining: " msgstr "Tempo totale restante: " #: src/status_frame_handler.c:73 msgid "Tracks completed: " msgstr "Tracce completate: " #: src/status_frame_handler.c:82 msgid "Tracks remaining: " msgstr "Tracce rimanenti: " #: src/status_frame_handler.c:183 src/status_frame_handler.c:287 #, c-format msgid "Ripping track %d" msgstr "Estrazione traccia %d" #: src/status_frame_handler.c:198 src/status_frame_handler.c:310 #, c-format msgid "Encoding track %d" msgstr "Codifica traccia %d" #: src/status_frame_handler.c:213 msgid "Total progress" msgstr "Totale completato" #: src/status_frame_handler.c:229 msgid "Time info" msgstr "Tempo" #: src/status_frame_handler.c:249 msgid "Abort" msgstr "Termina" #: src/status_frame_handler.c:261 src/status_frame_handler.c:379 msgid "Pause" msgstr "Pausa" #: src/status_frame_handler.c:300 msgid "Not ripping" msgstr "Non estrarre" #: src/status_frame_handler.c:323 msgid "Not encoding" msgstr "Non codificare" #: src/status_frame_handler.c:369 msgid "Continue" msgstr "Continua" #~ msgid "" #~ "Tracks Completed: %2d\n" #~ "\n" #~ "Artist: %s\n" #~ "Album: %s\n" #~ "\n" #~ "%s" #~ msgstr "" #~ "Tracce completate: %2d\n" #~ "\n" #~ "Artista: %s\n" #~ "Album: %s\n" #~ "\n" #~ "%s" #~ msgid "Unknown Style" #~ msgstr "Stile sconosciuto" ripperX-2.8.0/po/quot.sed000066400000000000000000000002311233655711300152570ustar00rootroot00000000000000s/"\([^"]*\)"/“\1â€/g s/`\([^`']*\)'/‘\1’/g s/ '\([^`']*\)' / ‘\1’ /g s/ '\([^`']*\)'$/ ‘\1’/g s/^'\([^`']*\)' /‘\1’ /g s/“â€/""/g ripperX-2.8.0/po/remove-potcdate.sin000066400000000000000000000006601233655711300174110ustar00rootroot00000000000000# Sed script that remove the POT-Creation-Date line in the header entry # from a POT file. # # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ x # Test if the hold space is empty. s/P/P/ ta # Yes it was empty. First occurrence. Remove the line. g d bb :a # The hold space was nonempty. Following occurrences. Do nothing. x :b } ripperX-2.8.0/po/ripperx.pot000066400000000000000000000315051233655711300160170ustar00rootroot00000000000000# SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR ripperX # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: ripperx 2.8.0\n" "Report-Msgid-Bugs-To: tmancill@users.sourceforge.net\n" "POT-Creation-Date: 2014-02-23 22:41-0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #: src/cddb.c:663 msgid "Contacting CDDB server..." msgstr "" #: src/cddb.c:688 msgid "Grabbing Completed..." msgstr "" #: src/cddbp.c:253 #, c-format msgid "Reading Information about track %2d" msgstr "" #: src/cddbp.c:272 msgid "Done..." msgstr "" #: src/config_window_handler.c:87 msgid "General Configuration" msgstr "" #: src/config_window_handler.c:94 msgid "Wav file" msgstr "" #: src/config_window_handler.c:102 src/config_window_handler.c:140 msgid "File name format: " msgstr "" #: src/config_window_handler.c:117 src/config_window_handler.c:156 msgid "Target Directory: " msgstr "" #: src/config_window_handler.c:132 msgid "MP3 file" msgstr "" #: src/config_window_handler.c:175 msgid "Prepend character : " msgstr "" #: src/config_window_handler.c:187 msgid "Make Mp3 from existing Wav file" msgstr "" #: src/config_window_handler.c:196 msgid "Ask user when specified file exists" msgstr "" #: src/config_window_handler.c:205 msgid "Keep wav files" msgstr "" #: src/config_window_handler.c:213 src/config_window_handler.c:214 msgid "General" msgstr "" #: src/config_window_handler.c:235 msgid "You need to fill every entry in general page" msgstr "" #: src/config_window_handler.c:283 msgid "Force search for drive (ignore /dev/cdrom)" msgstr "" #: src/config_window_handler.c:284 msgid "Disable paranoia (will act like cdda)" msgstr "" #: src/config_window_handler.c:285 msgid "Disable extra paranoia" msgstr "" #: src/config_window_handler.c:286 msgid "Disable scratch detection" msgstr "" #: src/config_window_handler.c:287 msgid "Disable scratch repair" msgstr "" #: src/config_window_handler.c:307 msgid "Wav Configuration" msgstr "" #: src/config_window_handler.c:321 msgid "Ripper plugin" msgstr "" #: src/config_window_handler.c:356 src/config_window_handler.c:622 msgid "Extra Options: " msgstr "" #: src/config_window_handler.c:488 msgid "Mp3 Configuration" msgstr "" #: src/config_window_handler.c:499 msgid "Encoder plugin" msgstr "" #: src/config_window_handler.c:526 msgid "BitRate, Default 128kbits" msgstr "" #: src/config_window_handler.c:573 msgid "Use variable bitrate (VBR)" msgstr "" #: src/config_window_handler.c:579 msgid "VBR quality (if available)" msgstr "" #: src/config_window_handler.c:589 msgid "0=high quality and bigger files, 9=smaller files" msgstr "" #: src/config_window_handler.c:593 msgid "Encoder Priority" msgstr "" #: src/config_window_handler.c:603 msgid "0=high priority, 19=system is responsive while encoding" msgstr "" #: src/config_window_handler.c:607 msgid "High quality mode" msgstr "" #: src/config_window_handler.c:613 msgid "Include CRC error protection" msgstr "" #: src/config_window_handler.c:835 src/config_window_handler.c:879 #: src/config_window_handler.c:880 msgid "Players" msgstr "" #: src/config_window_handler.c:843 msgid "CD play command: " msgstr "" #: src/config_window_handler.c:852 msgid "CD stop command: " msgstr "" #: src/config_window_handler.c:861 msgid "Wav play command: " msgstr "" #: src/config_window_handler.c:870 msgid "Mp3 play command: " msgstr "" #: src/config_window_handler.c:898 msgid "You need to fill every entry in players page" msgstr "" #: src/config_window_handler.c:931 msgid "File Configuration" msgstr "" #: src/config_window_handler.c:938 msgid "Convert spaces to underscores" msgstr "" #: src/config_window_handler.c:944 msgid "Create album subdirectory for each CD" msgstr "" #: src/config_window_handler.c:950 msgid "Create ID3 tag" msgstr "" #: src/config_window_handler.c:956 msgid "Create m3u playlist" msgstr "" #: src/config_window_handler.c:965 msgid "Filename format string: " msgstr "" #: src/config_window_handler.c:977 msgid "Directory format string: " msgstr "" #: src/config_window_handler.c:991 #, c-format msgid "%a = Artist" msgstr "" #: src/config_window_handler.c:994 msgid "%v = Album" msgstr "" #: src/config_window_handler.c:997 msgid "%# = Track no." msgstr "" #: src/config_window_handler.c:1000 #, c-format msgid "%s = Song title" msgstr "" #: src/config_window_handler.c:1003 msgid "%y = Year" msgstr "" #: src/config_window_handler.c:1009 src/config_window_handler.c:1010 msgid "Files" msgstr "" #: src/config_window_handler.c:1083 msgid "CDDB Configuration" msgstr "" #: src/config_window_handler.c:1096 msgid "URL: " msgstr "" #: src/config_window_handler.c:1106 msgid "Port: " msgstr "" #: src/config_window_handler.c:1118 msgid "Use HTTP" msgstr "" #: src/config_window_handler.c:1125 msgid "Proxy Server: " msgstr "" #: src/config_window_handler.c:1135 msgid "Proxy Port: " msgstr "" #: src/config_window_handler.c:1151 msgid "CDDB Cache path: " msgstr "" #: src/config_window_handler.c:1165 msgid "Automatic lookup on startup" msgstr "" #: src/config_window_handler.c:1186 msgid "You need to specify a server and a port" msgstr "" #: src/config_window_handler.c:1256 src/main_window_handler.c:135 msgid "Configuration" msgstr "" #: src/dir_window_handler.c:76 msgid "Select a directory" msgstr "" #: src/err_dialog_handler.c:39 msgid "An error has occured while forking" msgstr "" #: src/err_dialog_handler.c:40 msgid "Cannot create pipe" msgstr "" #: src/err_dialog_handler.c:41 msgid "Cannot open /dev/null" msgstr "" #: src/err_dialog_handler.c:42 msgid "Memory allocation error has occurred" msgstr "" #: src/err_dialog_handler.c:43 msgid "" "An error has occurred while trying to\n" "reopen a file as a stream (fdopen)" msgstr "" #: src/err_dialog_handler.c:44 msgid "Cannot read from the pipe" msgstr "" #: src/err_dialog_handler.c:45 msgid "Cannot delete file" msgstr "" #: src/err_dialog_handler.c:46 msgid "" "Cannot open configuration file\n" "loading default values" msgstr "" #: src/err_dialog_handler.c:47 msgid "Cannot create configuration file ~/.ripperXrc" msgstr "" #: src/err_dialog_handler.c:48 msgid "" "Cannot open a pty\n" "Maybe all ptys are busy" msgstr "" #: src/err_dialog_handler.c:49 msgid "///// use perror msg until here /////" msgstr "" #: src/err_dialog_handler.c:50 msgid "Too many arguments" msgstr "" #: src/err_dialog_handler.c:51 msgid "Job already in progress" msgstr "" #: src/err_dialog_handler.c:52 msgid "" "Please select a track to rip or encode.\n" "If you did select tracks, they may already have been ripped." msgstr "" #: src/err_dialog_handler.c:53 msgid "" "Make sure an audio disc is in the drive and that you are\n" "either running ripperX as root, are a member\n" "of the \"cdrom\" group, or otherwise have appropriate\n" "permissions to access the CDROM device.\n" msgstr "" #: src/err_dialog_handler.c:54 msgid "The file name is too long" msgstr "" #: src/err_dialog_handler.c:55 msgid "Some entry(s) are empty" msgstr "" #: src/err_dialog_handler.c:56 msgid "An error has occurred while parsing ~/.ripperXrc" msgstr "" #: src/err_dialog_handler.c:57 msgid "Some field(s) are empty. Substituting default value" msgstr "" #: src/err_dialog_handler.c:58 msgid "Invalid selection" msgstr "" #: src/err_dialog_handler.c:59 msgid "Could not connect to CDDB server" msgstr "" #: src/err_dialog_handler.c:60 msgid "Connection refused from CDDB server" msgstr "" #: src/err_dialog_handler.c:61 msgid "CDDB Server Error" msgstr "" #: src/err_dialog_handler.c:62 msgid "CD Not Found in CD Database" msgstr "" #: src/err_dialog_handler.c:63 msgid "Cannot parse the format string" msgstr "" #: src/err_dialog_handler.c:64 msgid "Plugin not present" msgstr "" #: src/err_dialog_handler.c:65 msgid "" "Error while locking file.\n" "Make sure the WAV dir and MP3 dir paths are correct and\n" "you have permission to write to those directories." msgstr "" #: src/err_dialog_handler.c:66 msgid "The WAV dir is not writable." msgstr "" #: src/err_dialog_handler.c:67 msgid "The MP3 dir is not writable." msgstr "" #: src/err_dialog_handler.c:68 msgid "Cannot create WAV dir" msgstr "" #: src/err_dialog_handler.c:69 msgid "Cannot create MP3 dir" msgstr "" #: src/err_dialog_handler.c:70 msgid "Make sure an audio disc is in the CDROM device." msgstr "" #: src/err_dialog_handler.c:71 msgid "" "Make sure that you are a member of the the \"cdrom\" group,\n" "or otherwise have appropriate permissions to access the CDROM device." msgstr "" #: src/err_dialog_handler.c:72 msgid "Exception" msgstr "" #: src/err_dialog_handler.c:82 msgid "Abort confirmation" msgstr "" #: src/err_dialog_handler.c:83 msgid "Do you really want to abort?" msgstr "" #: src/err_dialog_handler.c:86 msgid "Wanna delete?" msgstr "" #: src/err_dialog_handler.c:87 msgid "Do you want to delete current file?" msgstr "" #: src/err_dialog_handler.c:90 msgid "Wanna overwrite?" msgstr "" #: src/err_dialog_handler.c:91 msgid "The file already exists. Do you want to overwrite?" msgstr "" #: src/err_dialog_handler.c:94 msgid "Enter file name" msgstr "" #: src/err_dialog_handler.c:95 msgid "Enter new file name" msgstr "" #: src/err_dialog_handler.c:98 msgid "Wanna create config file?" msgstr "" #: src/err_dialog_handler.c:99 msgid "" "Config file ~/.ripperXrc does not exist.\n" "Do you want to create config file?" msgstr "" #: src/err_dialog_handler.c:102 src/err_dialog_handler.c:106 msgid "Low diskspace warning" msgstr "" #: src/err_dialog_handler.c:103 msgid "" "There is less than 500 megabytes free on the wav partition.\n" " Do you want to continue?" msgstr "" #: src/err_dialog_handler.c:107 msgid "" "There is less than 100 megabytes free on the mp3 partition.\n" " Do you want to continue?" msgstr "" #: src/err_dialog_handler.c:110 src/err_dialog_handler.c:114 msgid "Directory does not exist" msgstr "" #: src/err_dialog_handler.c:111 msgid "The WAV dir does not exist. Create it?" msgstr "" #: src/err_dialog_handler.c:115 msgid "The MP3 dir does not exist. Create it?" msgstr "" #: src/err_dialog_handler.c:121 msgid "Finished ripping" msgstr "" #: src/err_dialog_handler.c:122 msgid "Finished encoding" msgstr "" #: src/err_dialog_handler.c:160 msgid "Error" msgstr "" #: src/err_dialog_handler.c:336 msgid "Status" msgstr "" #: src/job_control.c:459 src/job_control.c:582 msgid "Maybe ripperX has failed to execute the plugin" msgstr "" #: src/main_window_handler.c:139 msgid "Scan CD" msgstr "" #: src/main_window_handler.c:143 msgid "Stop playing" msgstr "" #: src/main_window_handler.c:147 msgid "Get track titles from CDDB server" msgstr "" #: src/main_window_handler.c:151 msgid "Start ripping&encoding" msgstr "" #: src/main_window_handler.c:155 msgid "Exit the program" msgstr "" #: src/misc_utils.c:1229 msgid "" "Check if the filename format string contains format characters other than %a " "%# %v %y or %s." msgstr "" #: src/players_manipulation.c:154 msgid "Failed to exec player :" msgstr "" #: src/ripper_encoder_manipulation.c:72 msgid "Cannot reopen pty as stream" msgstr "" #: src/ripper_encoder_manipulation.c:253 msgid "Failed to exec cdparanoia :" msgstr "" #: src/ripper_encoder_manipulation.c:324 msgid "Failed to exec plugin" msgstr "" #: src/ripper_encoder_manipulation.c:358 msgid "Failed to exec the specified program" msgstr "" #: src/select_frame_handler.c:188 msgid "Select All Tracks" msgstr "" #: src/select_frame_handler.c:200 msgid "Eject" msgstr "" #: src/select_frame_handler.c:214 msgid "Rip to WAV" msgstr "" #: src/select_frame_handler.c:219 msgid "Encode" msgstr "" #: src/select_frame_handler.c:238 msgid "Artist " msgstr "" #: src/select_frame_handler.c:250 msgid "Album" msgstr "" #: src/select_frame_handler.c:263 msgid "Year" msgstr "" #: src/select_frame_handler.c:292 msgid "Genre" msgstr "" #: src/status_frame_handler.c:55 msgid "Total time elapsed: " msgstr "" #: src/status_frame_handler.c:64 msgid "Total time remaining: " msgstr "" #: src/status_frame_handler.c:73 msgid "Tracks completed: " msgstr "" #: src/status_frame_handler.c:82 msgid "Tracks remaining: " msgstr "" #: src/status_frame_handler.c:183 src/status_frame_handler.c:287 #, c-format msgid "Ripping track %d" msgstr "" #: src/status_frame_handler.c:198 src/status_frame_handler.c:310 #, c-format msgid "Encoding track %d" msgstr "" #: src/status_frame_handler.c:213 msgid "Total progress" msgstr "" #: src/status_frame_handler.c:229 msgid "Time info" msgstr "" #: src/status_frame_handler.c:249 msgid "Abort" msgstr "" #: src/status_frame_handler.c:261 src/status_frame_handler.c:379 msgid "Pause" msgstr "" #: src/status_frame_handler.c:300 msgid "Not ripping" msgstr "" #: src/status_frame_handler.c:323 msgid "Not encoding" msgstr "" #: src/status_frame_handler.c:369 msgid "Continue" msgstr "" ripperX-2.8.0/ripperX.1000066400000000000000000000041761233655711300147030ustar00rootroot00000000000000.TH "RIPPERX" "1" .SH "NAME" ripperX \(em graphical (GTK) frontend for ripping and OGG/FLAC/MP3 encoding CD tracks .SH "SYNOPSIS" .PP \fBripperX\fR .SH "DESCRIPTION" .PP This manual page documents briefly the \fBripperX\fR command. It was written for the \fBDebian GNU/Linux\fP distribution because the program originally did not have a manual page. .PP \fBripperX\fR is an X-based program that uses \fBcdparanoia\fR to convert (a.k.a. "rip") CD audio tracks to WAV files, and then calls the Vorbis/Ogg encoder \fBoggenc\fR to convert the WAV to an OGG file. It can also call \fBflac\fR to perform loss-less compression on the WAV file, resulting in a FLAC file. If you have an MP3 encoder installed such as \fBtoolame\fR, \fBlame\fR or \fBbladeenc\fR, it can convert the WAV into a MP3 file instead. .PP Besides a nice GUI interface, \fBripperX\fR also supports CDDB queries to retrieve song and album information, progress meters, and pausing while ripping. .SH "OPTIONS" .PP This program takes no command line arguments. After starting the application, select the \fIConfig\fP button and cycle through the tabs to learn what options are configurable. .PP Because Vorbis/Ogg typically uses variable bit rates, there is not a direct correlation between the bitrate selected for encoding and the rate used by \fBoggenc\fR. The bitrates selected in the MP3 tab of the Configuration dialog are passed to \fBoggenc\fR with the \fI-b\fP switch. Enabling or disabling VBR when using Vorbis/Ogg has no effect on the encoding process. .PP The FLAC encoding currently does not accept any bitrate arguments, so any bitrate you specify in the config dialog will be ignored for this type of encoding. .SH "SEE ALSO" .PP cdparanoia (1). .PP oggenc (1). .PP flac (1). .PP toolame (1). .PP Documentation in /usr/share/doc/ripperx/ .SH "BUGS" .PP Many, to be sure... Please report them as you find them! .SH "AUTHOR" .PP This manual page was written by tony mancill tmancill@debian.org for the \fBDebian GNU/Linux\fP system (but may be used by others). .\" created by instant / docbook-to-man, Tue 04 Jul 2006, 17:33 ripperX-2.8.0/ripperX.desktop000066400000000000000000000002711233655711300162040ustar00rootroot00000000000000 [Desktop Entry] Name=ripperX Comment=rip CDs and encode to mp3, ogg, or flac Exec=ripperX Icon=/usr/share/pixmaps/ripperX-icon.xpm Terminal=false MultipleArgs=false Type=Application ripperX-2.8.0/ripperX.pc.in000066400000000000000000000002701233655711300155410ustar00rootroot00000000000000prefix=@prefix@ exec_prefix=@exec_prefix@ libdir=@libdir@ pkglibdir=${libdir}/@PACKAGE@ Name: ripperX Description: ripperX Version: @MAJOR_VERSION@.@MINOR_VERSION@.@MICRO_VERSION@ ripperX-2.8.0/ripperX.spec000066400000000000000000000051251233655711300154700ustar00rootroot00000000000000%define ver 2.7.0 %define prefix /usr %define rel 1 Summary: GTK program to rip CD audio and encode to mp3, ogg, or flac Name: ripperX Prefix: %prefix Version: %ver Release: %rel Copyright: GPL Group: X11/Applications Requires: cdparanoia Source: ftp://ftp.sf.net/pub/sourceforge/r/ri/ripperX/ripperX-%{ver}.tar.gz URL: ripperx.sourceforge.net Packager: tony mancill BuildRoot: /var/tmp/ripperX-%{PACKAGE_VERSION}-root Docdir: %{prefix}/doc %description GTK program to rip CD audio and encode to mp3, ogg, and flac. Supports parallel ripping/encoding, has plugins for cdparanoia, BladeEnc, Lame, GoGo, FHG (l3enc and mp3enc), XingMp3enc, 8hz-mp3, FLAC, and the ISO encoder. Also has support for CDDB and ID3 tags. %prep %setup %build ./configure --prefix=%{prefix} make %install mkdir -p $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{prefix}/share/pixmaps mkdir -p $RPM_BUILD_ROOT%{prefix}/share/gnome/apps/Multimedia make prefix=$RPM_BUILD_ROOT%{prefix} install strip $RPM_BUILD_ROOT%{prefix}/bin/* ||: cp src/xpms/ripperX-icon.xpm $RPM_BUILD_ROOT%{prefix}/share/pixmaps cp ripperX.desktop $RPM_BUILD_ROOT%{prefix}/share/gnome/apps/Multimedia %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc FAQ README README.plugin README.plugin_spec_v0.1 README.plugin_tester TODO CHANGES COPYING BUGS %{prefix}/bin/ripperX %{prefix}/bin/ripperX_plugin-cdparanoia %{prefix}/bin/ripperX_plugin-encode %{prefix}/bin/ripperX_plugin-8hz-mp3 %{prefix}/bin/ripperX_plugin-lame %{prefix}/bin/ripperX_plugin-flac %{prefix}/bin/ripperX_plugin-gogo %{prefix}/bin/ripperX_plugin-oggenc %{prefix}/bin/ripperX_plugin-toolame %{prefix}/bin/ripperX_plugin-bladeenc %{prefix}/bin/ripperX_plugin-xingmp3enc %{prefix}/bin/ripperX_plugin-l3enc %{prefix}/bin/ripperX_plugin-mp3enc %{prefix}/share/pixmaps/ripperX-icon.xpm %{prefix}/share/gnome/apps/Multimedia/ripperX.desktop %changelog * Sun Apr 16 2006 tony mancill - version 2.7.0 * Wed Jun 01 2005 tony mancill - version 2.6.6 - fixes for cdparanoia output on Fedora Core 3 * Wed Jun 01 2005 tony mancill - version 2.6.5 * Sun Jan 04 2004 tony mancill - version 2.6.1 * Thu Sep 25 2003 tony mancill - version 2.6 * Tue Apr 04 2001 Jos Dehaes -version 2.1 * Mon Jan 03 2000 Dax Kelson - Version 1.9 - Updated SPEC to use a $RPM_BUILD_ROOT, changelog, docs, and the strip binaries - Created GNOME ".desktop" file so ripperX shows up on the menu - Patch so cdparanoia fills files that are group writable, enabling shared directory ripping ripperX-2.8.0/ripperX.xpm000066400000000000000000000143471233655711300153500ustar00rootroot00000000000000/* XPM */ static char * ripperX_xpm[] = { "32 32 259 2", " c None", ". c #020204", "+ c #18325C", "@ c #22427C", "# c #223F7C", "$ c #1D3564", "% c #070C17", "& c #101C3A", "* c #1C366F", "= c #1A336C", "- c #1A326C", "; c #182D66", "> c #0A1027", ", c #0B1324", "' c #315BAA", ") c #3462B4", "! c #325FB4", "~ c #3059AC", "{ c #182B56", "] c #0F1A37", "^ c #274897", "/ c #2A4EA4", "( c #264AA4", "_ c #2648A4", ": c #101D44", "< c #080C17", "[ c #284884", "} c #3460B4", "| c #325EB4", "1 c #325DB4", "2 c #203A74", "3 c #04050A", "4 c #080C1A", "5 c #234087", "6 c #203C84", "7 c #0A1024", "8 c #04060C", "9 c #1C3462", "0 c #325AB4", "a c #27458A", "b c #0A1021", "c c #142552", "d c #2A50A9", "e c #2A4BA4", "f c #244599", "g c #101F42", "h c #142444", "i c #305BAE", "j c #315AB4", "k c #2950A1", "l c #0F1C37", "m c #050811", "n c #2A52AC", "o c #1C3571", "p c #0A1224", "q c #27498E", "r c #315AB2", "s c #2E58AC", "t c #182D5A", "u c #203F7E", "v c #244497", "w c #060A14", "x c #203C74", "y c #294FA2", "z c #2C50A9", "A c #2A51AA", "B c #101E3E", "C c #0D1727", "D c #345F9F", "E c #427ACC", "F c #4176CC", "G c #3666AF", "H c #1E365E", "I c #305997", "J c #3D6EC4", "K c #3A6EC1", "L c #3A6CBC", "M c #1A3056", "N c #182D56", "O c #3057AC", "P c #2E5AB2", "Q c #2E56AC", "R c #2E53AC", "S c #192F61", "T c #04070E", "U c #4176CA", "V c #3E74C4", "W c #396BB6", "X c #3C70BF", "Y c #3A6EC4", "Z c #3A6CC1", "` c #3A6ABC", " . c #101D36", ".. c #0E1A2F", "+. c #2C509F", "@. c #2E59AC", "#. c #2E54AC", "$. c #2B52AC", "%. c #24438E", "&. c #0C152E", "*. c #14223A", "=. c #3A6AB2", "-. c #3E76CA", ";. c #3E72C4", ">. c #3E6FC4", ",. c #3563AE", "'. c #0C1424", "). c #284891", "!. c #274999", "~. c #102142", "{. c #182D4A", "]. c #3F75C2", "^. c #4277CC", "/. c #3E75C4", "(. c #3B6FC4", "_. c #3A6DC2", ":. c #3765B6", "<. c #1F3A69", "[. c #05080F", "}. c #182F5E", "|. c #203A7A", "1. c #030407", "2. c #1E395E", "3. c #4278CC", "4. c #3F76CC", "5. c #2E5491", "6. c #0A101E", "7. c #1F386A", "8. c #2C52AC", "9. c #0C152A", "0. c #060A11", "a. c #284A7A", "b. c #3F76C6", "c. c #3B6DBC", "d. c #1C375F", "e. c #152447", "f. c #2C54A1", "g. c #2A4FA6", "h. c #152C57", "i. c #0A121E", "j. c #3460A1", "k. c #4076CC", "l. c #3E76C6", "m. c #3868B2", "n. c #152642", "o. c #244586", "p. c #2E57AC", "q. c #2C54AC", "r. c #223F84", "s. c #3C6FBE", "t. c #3E76C7", "u. c #3E73C4", "v. c #3663AA", "w. c #0E182A", "x. c #1F366C", "y. c #305AAF", "z. c #2E55AC", "A. c #2A52A7", "B. c #2A4FA4", "C. c #24448E", "D. c #091021", "E. c #0E192C", "F. c #3E76C9", "G. c #325C9E", "H. c #0F1A34", "I. c #305AB1", "J. c #2D55AC", "K. c #2A50A7", "L. c #274599", "M. c #254577", "N. c #2B54A1", "O. c #2E5AB1", "P. c #234489", "Q. c #1E3C79", "R. c #2A50A4", "S. c #182D64", "T. c #284C7E", "U. c #1F3C6A", "V. c #1F3871", "W. c #284C99", "X. c #14254E", "Y. c #1E387E", "Z. c #080D1E", "`. c #345FA4", " + c #0F1F37", ".+ c #152647", "++ c #2F54A7", "@+ c #142652", "#+ c #0D1A37", "$+ c #254897", "%+ c #274BA4", "&+ c #2649A4", "*+ c #234094", "=+ c #0D1734", "-+ c #3C70C4", ";+ c #0A1221", ">+ c #27478A", ",+ c #1B3269", "'+ c #04070F", ")+ c #080F21", "!+ c #203A81", "~+ c #274AA4", "{+ c #2646A1", "]+ c #10204A", "^+ c #121F37", "/+ c #3461B1", "(+ c #2F5AAE", "_+ c #284B96", ":+ c #0D1831", "<+ c #19306A", "[+ c #2646A2", "}+ c #26469C", "|+ c #182E67", "1+ c #040811", "2+ c #152844", "3+ c #3D71C4", "4+ c #2A4E8A", "5+ c #0F1B34", "6+ c #325CB4", "7+ c #2C52A4", "8+ c #152851", "9+ c #13244C", "0+ c #24479C", "a+ c #24449C", "b+ c #1D3889", "c+ c #070C1C", "d+ c #223C6A", "e+ c #3A6CBF", "f+ c #305AB4", "g+ c #2E5AAF", "h+ c #203D81", "i+ c #223F91", "j+ c #22429C", "k+ c #0C183C", "l+ c #2F589E", "m+ c #172749", "n+ c #121E3C", "o+ c #1F3C77", "p+ c #060614", "q+ c #203981", "r+ c #25459C", "s+ c #182F6F", "t+ c #0E1A2C", "u+ c #315DA6", "v+ c #3A6DBC", "w+ c #0D1729", "x+ c #0B1429", "y+ c #0E1E3C", "z+ c #0C1734", "A+ c #020614", "B+ c #0D1634", "C+ c #0A1634", "D+ c #060E24", "E+ c #0E162C", "F+ c #31599F", "G+ c #3560AE", "H+ c #0F1C31", "I+ c #12223C", "J+ c #080F1C", " ", " ", " ", " . . . . . . . . . . ", " + @ @ # $ % & * = - ; > ", " , ' ) ! ~ { ] ^ / ( _ : ", " < [ } | 1 2 3 4 5 / / ( 6 7 ", " 8 9 } | 0 a b . c d / e f g ", " h i | j k l m n d / e o . ", " p q | r s t u n d / v w ", " . . . . . . . . . 3 x | r s y z A / / B . ", " C D E F G H I J K L M . N O P s Q R A / S T ", " C D E U V W X Y Z ` .. ..+.@.Q #.$.A %.&. ", " *.=.E -.V ;.>.Y Z ,.'. . ).@.Q #.$.!.~. ", " {.].^./.;.;.(._.:.<.[. . }.Q Q #.$.|.w ", " 1.2.3.4./.5.6.. . . . . 7.Q #.8.n 9.. ", " 0.a.3.b.c.d. e.f.Q #.8.g.h.. ", " i.j.k.l.m.n. b o.p.Q q.n g.r.. ", " C s.t.u.v.w. [.x.y.p.z.8.A.B.C.D. ", " E.F.V ;.G.. . H.I.s Q J.n K./ L.g ", " . H V ;.;.M.. . m N.O.s Q P.Q.R./ ( S. ", " . T.V ;.>.U.. . V.r s Q W.w X./ / ( Y.Z. ", " . `.;.;.(. +. .+++@.Q Q @+. #+$+%+&+*+=+ ", " . ;.;.-+Y m . ;+>+0 @.Q ,+'+ )+!+~+&+{+]+ ", " . ^+;.-+Y /+. [.x.0 (+Q _+:+ <+( [+}+|+1+ ", " . 2+3+Y Y 4+. . 5+6+y.p.7+8+ 9+0+[+a+b+c+ ", " . d+Y Y e+M . . f.f+g+p.h+w 9.i+}+a+j+k+. ", " . l+Y Z ` m+. n+0 I.s Q o+. p+q+r+j+j+s+. ", " t+u+v+` ` w+ . x+y+y+y+z+w A+B+C+C+C+D+ ", " E+F+` ` G+'. . . . . . . . . . . ", " . H+I+I+I+J+ ", " . . . . . "}; ripperX-2.8.0/src/000077500000000000000000000000001233655711300137475ustar00rootroot00000000000000ripperX-2.8.0/src/Makefile.am000066400000000000000000000024421233655711300160050ustar00rootroot00000000000000bin_PROGRAMS = ripperX ripperX_SOURCES = \ cddb.c cddb.h \ cddbp.c cddbp.h \ common.h \ main_data.h main_data.c \ calc_stat.h calc_stat.c \ config_rw.c config_rw.h \ config_window_handler.c config_window_handler.h \ dir_window_handler.c dir_window_handler.h \ err_dialog_handler.c err_dialog_handler.h \ interface_common.h \ job_control.c job_control.h \ main.c main.h \ main_window_handler.c main_window_handler.h \ misc_utils.c misc_utils.h \ players_manipulation.c players_manipulation.h \ ripper_encoder_manipulation.c ripper_encoder_manipulation.h \ select_frame_handler.c select_frame_handler.h \ status_frame_handler.c status_frame_handler.h \ xpms.c EXTRA_DIST = \ xpms/cddb.xpm \ xpms/config.xpm \ xpms/doall.xpm \ xpms/exit.xpm \ xpms/go.xpm \ xpms/ripperX-icon.xpm \ xpms/ripperX.xpm \ xpms/ripperX_box.xpm \ xpms/s_button_checked.xpm \ xpms/s_button_unchecked.xpm \ xpms/s_play_button_disabled.xpm \ xpms/s_play_button_enabled.xpm \ xpms/scan.xpm \ xpms/stop.xpm INCLUDES = \ -I$(includedir) ripperX_LDADD = \ $(INTLLIBS) \ $(GTK_LIBS) \ $(TAGLIB_LIBS) AM_CPPFLAGS = \ -DG_LOG_DOMAIN=\"ripperX\" \ -DLOCALEDIR=\""$(localedir)"\" \ -DDATAROOTDIR=\""$(datarootdir)"\" \ $(GTK_CFLAGS) $(TAGLIB_CFLAGS) ripperX-2.8.0/src/Makefile.in000066400000000000000000000506721233655711300160260ustar00rootroot00000000000000# Makefile.in generated by automake 1.13.3 from Makefile.am. # @configure_input@ # Copyright (C) 1994-2013 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY, to the extent permitted by law; without # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. @SET_MAKE@ VPATH = @srcdir@ am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' am__make_running_with_option = \ case $${target_option-} in \ ?) ;; \ *) echo "am__make_running_with_option: internal error: invalid" \ "target option '$${target_option-}' specified" >&2; \ exit 1;; \ esac; \ has_opt=no; \ sane_makeflags=$$MAKEFLAGS; \ if $(am__is_gnu_make); then \ sane_makeflags=$$MFLAGS; \ else \ case $$MAKEFLAGS in \ *\\[\ \ ]*) \ bs=\\; \ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ esac; \ fi; \ skip_next=no; \ strip_trailopt () \ { \ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ }; \ for flg in $$sane_makeflags; do \ test $$skip_next = yes && { skip_next=no; continue; }; \ case $$flg in \ *=*|--*) continue;; \ -*I) strip_trailopt 'I'; skip_next=yes;; \ -*I?*) strip_trailopt 'I';; \ -*O) strip_trailopt 'O'; skip_next=yes;; \ -*O?*) strip_trailopt 'O';; \ -*l) strip_trailopt 'l'; skip_next=yes;; \ -*l?*) strip_trailopt 'l';; \ -[dEDm]) skip_next=yes;; \ -[JT]) skip_next=yes;; \ esac; \ case $$flg in \ *$$target_option*) has_opt=yes; break;; \ esac; \ done; \ test $$has_opt = yes am__make_dryrun = (target_option=n; $(am__make_running_with_option)) am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c INSTALL_HEADER = $(INSTALL_DATA) transform = $(program_transform_name) NORMAL_INSTALL = : PRE_INSTALL = : POST_INSTALL = : NORMAL_UNINSTALL = : PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ bin_PROGRAMS = ripperX$(EXEEXT) subdir = src DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(top_srcdir)/config/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) am_ripperX_OBJECTS = cddb.$(OBJEXT) cddbp.$(OBJEXT) \ main_data.$(OBJEXT) calc_stat.$(OBJEXT) config_rw.$(OBJEXT) \ config_window_handler.$(OBJEXT) dir_window_handler.$(OBJEXT) \ err_dialog_handler.$(OBJEXT) job_control.$(OBJEXT) \ main.$(OBJEXT) main_window_handler.$(OBJEXT) \ misc_utils.$(OBJEXT) players_manipulation.$(OBJEXT) \ ripper_encoder_manipulation.$(OBJEXT) \ select_frame_handler.$(OBJEXT) status_frame_handler.$(OBJEXT) \ xpms.$(OBJEXT) ripperX_OBJECTS = $(am_ripperX_OBJECTS) am__DEPENDENCIES_1 = ripperX_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ $(am__DEPENDENCIES_1) AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false am__v_P_1 = : AM_V_GEN = $(am__v_GEN_@AM_V@) am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) am__v_GEN_0 = @echo " GEN " $@; am__v_GEN_1 = AM_V_at = $(am__v_at_@AM_V@) am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) am__v_at_0 = @ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/config/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) AM_V_CC = $(am__v_CC_@AM_V@) am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) am__v_CC_0 = @echo " CC " $@; am__v_CC_1 = CCLD = $(CC) LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ AM_V_CCLD = $(am__v_CCLD_@AM_V@) am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) am__v_CCLD_0 = @echo " CCLD " $@; am__v_CCLD_1 = SOURCES = $(ripperX_SOURCES) DIST_SOURCES = $(ripperX_SOURCES) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ *) (install-info --version) >/dev/null 2>&1;; \ esac am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) # Read a list of newline-separated strings from the standard input, # and print each of them once, without duplicates. Input order is # *not* preserved. am__uniquify_input = $(AWK) '\ BEGIN { nonempty = 0; } \ { items[$$0] = 1; nonempty = 1; } \ END { if (nonempty) { for (i in items) print i; }; } \ ' # Make sure the list of sources is unique. This is necessary because, # e.g., the same source file might be shared among _SOURCES variables # for different programs/libraries. am__define_uniq_tagged_files = \ list='$(am__tagged_files)'; \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ AMTAR = @AMTAR@ AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ CXX = @CXX@ CXXDEPMODE = @CXXDEPMODE@ CXXFLAGS = @CXXFLAGS@ CYGPATH_W = @CYGPATH_W@ DEFS = @DEFS@ DEPDIR = @DEPDIR@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ EXEEXT = @EXEEXT@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GLIB_CFLAGS = @GLIB_CFLAGS@ GLIB_LIBS = @GLIB_LIBS@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ GREP = @GREP@ GTK_CFLAGS = @GTK_CFLAGS@ GTK_LIBS = @GTK_LIBS@ INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ INTLLIBS = @INTLLIBS@ INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ LDFLAGS = @LDFLAGS@ LIBICONV = @LIBICONV@ LIBINTL = @LIBINTL@ LIBOBJS = @LIBOBJS@ LIBS = @LIBS@ LTLIBICONV = @LTLIBICONV@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAKEINFO = @MAKEINFO@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ OBJEXT = @OBJEXT@ PACKAGE = @PACKAGE@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ PACKAGE_NAME = @PACKAGE_NAME@ PACKAGE_STRING = @PACKAGE_STRING@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ PKG_CONFIG = @PKG_CONFIG@ PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ POSUB = @POSUB@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ TAGLIB_CFLAGS = @TAGLIB_CFLAGS@ TAGLIB_LIBS = @TAGLIB_LIBS@ USE_NLS = @USE_NLS@ VERSION = @VERSION@ XGETTEXT = @XGETTEXT@ XGETTEXT_015 = @XGETTEXT_015@ XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ abs_builddir = @abs_builddir@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ am__tar = @am__tar@ am__untar = @am__untar@ bindir = @bindir@ build = @build@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ builddir = @builddir@ datadir = @datadir@ datarootdir = @datarootdir@ docdir = @docdir@ dvidir = @dvidir@ exec_prefix = @exec_prefix@ host = @host@ host_alias = @host_alias@ host_cpu = @host_cpu@ host_os = @host_os@ host_vendor = @host_vendor@ htmldir = @htmldir@ includedir = @includedir@ infodir = @infodir@ install_sh = @install_sh@ libdir = @libdir@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ pdfdir = @pdfdir@ prefix = @prefix@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ ripperX_SOURCES = \ cddb.c cddb.h \ cddbp.c cddbp.h \ common.h \ main_data.h main_data.c \ calc_stat.h calc_stat.c \ config_rw.c config_rw.h \ config_window_handler.c config_window_handler.h \ dir_window_handler.c dir_window_handler.h \ err_dialog_handler.c err_dialog_handler.h \ interface_common.h \ job_control.c job_control.h \ main.c main.h \ main_window_handler.c main_window_handler.h \ misc_utils.c misc_utils.h \ players_manipulation.c players_manipulation.h \ ripper_encoder_manipulation.c ripper_encoder_manipulation.h \ select_frame_handler.c select_frame_handler.h \ status_frame_handler.c status_frame_handler.h \ xpms.c EXTRA_DIST = \ xpms/cddb.xpm \ xpms/config.xpm \ xpms/doall.xpm \ xpms/exit.xpm \ xpms/go.xpm \ xpms/ripperX-icon.xpm \ xpms/ripperX.xpm \ xpms/ripperX_box.xpm \ xpms/s_button_checked.xpm \ xpms/s_button_unchecked.xpm \ xpms/s_play_button_disabled.xpm \ xpms/s_play_button_enabled.xpm \ xpms/scan.xpm \ xpms/stop.xpm INCLUDES = \ -I$(includedir) ripperX_LDADD = \ $(INTLLIBS) \ $(GTK_LIBS) \ $(TAGLIB_LIBS) AM_CPPFLAGS = \ -DG_LOG_DOMAIN=\"ripperX\" \ -DLOCALEDIR=\""$(localedir)"\" \ -DDATAROOTDIR=\""$(datarootdir)"\" \ $(GTK_CFLAGS) $(TAGLIB_CFLAGS) all: all-am .SUFFIXES: .SUFFIXES: .c .o .obj $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ *$$dep*) \ ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ && { if test -f $@; then exit 0; else break; fi; }; \ exit 1;; \ esac; \ done; \ echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ $(am__cd) $(top_srcdir) && \ $(AUTOMAKE) --foreign src/Makefile .PRECIOUS: Makefile Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status @case '$?' in \ *config.status*) \ cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ *) \ echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ esac; $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(top_srcdir)/configure: $(am__configure_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(ACLOCAL_M4): $(am__aclocal_m4_deps) cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh $(am__aclocal_m4_deps): install-binPROGRAMS: $(bin_PROGRAMS) @$(NORMAL_INSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ if test -n "$$list"; then \ echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \ $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \ fi; \ for p in $$list; do echo "$$p $$p"; done | \ sed 's/$(EXEEXT)$$//' | \ while read p p1; do if test -f $$p \ ; then echo "$$p"; echo "$$p"; else :; fi; \ done | \ sed -e 'p;s,.*/,,;n;h' \ -e 's|.*|.|' \ -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ sed 'N;N;N;s,\n, ,g' | \ $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \ { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ if ($$2 == $$4) files[d] = files[d] " " $$1; \ else { print "f", $$3 "/" $$4, $$1; } } \ END { for (d in files) print "f", d, files[d] }' | \ while read type dir files; do \ if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ test -z "$$files" || { \ echo " $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \ $(INSTALL_PROGRAM_ENV) $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \ } \ ; done uninstall-binPROGRAMS: @$(NORMAL_UNINSTALL) @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \ files=`for p in $$list; do echo "$$p"; done | \ sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ -e 's/$$/$(EXEEXT)/' \ `; \ test -n "$$list" || exit 0; \ echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ cd "$(DESTDIR)$(bindir)" && rm -f $$files clean-binPROGRAMS: -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) ripperX$(EXEEXT): $(ripperX_OBJECTS) $(ripperX_DEPENDENCIES) $(EXTRA_ripperX_DEPENDENCIES) @rm -f ripperX$(EXEEXT) $(AM_V_CCLD)$(LINK) $(ripperX_OBJECTS) $(ripperX_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/calc_stat.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cddb.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cddbp.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/config_rw.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/config_window_handler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dir_window_handler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/err_dialog_handler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/job_control.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main_data.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main_window_handler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc_utils.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/players_manipulation.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ripper_encoder_manipulation.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/select_frame_handler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/status_frame_handler.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xpms.Po@am__quote@ .c.o: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c $< .c.obj: @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c `$(CYGPATH_W) '$<'` ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am TAGS: tags tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) set x; \ here=`pwd`; \ $(am__define_uniq_tagged_files); \ shift; \ if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ test -n "$$unique" || unique=$$empty_fix; \ if test $$# -gt 0; then \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ "$$@" $$unique; \ else \ $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ $$unique; \ fi; \ fi ctags: ctags-am CTAGS: ctags ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) $(am__define_uniq_tagged_files); \ test -z "$(CTAGS_ARGS)$$unique" \ || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ $$unique GTAGS: here=`$(am__cd) $(top_builddir) && pwd` \ && $(am__cd) $(top_srcdir) \ && gtags -i $(GTAGS_ARGS) "$$here" cscopelist: cscopelist-am cscopelist-am: $(am__tagged_files) list='$(am__tagged_files)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \ esac; \ for i in $$list; do \ if test -f "$$i"; then \ echo "$(subdir)/$$i"; \ else \ echo "$$sdir/$$i"; \ fi; \ done >> $(top_builddir)/cscope.files distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags distdir: $(DISTFILES) @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ list='$(DISTFILES)'; \ dist_files=`for file in $$list; do echo $$file; done | \ sed -e "s|^$$srcdirstrip/||;t" \ -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ case $$dist_files in \ */*) $(MKDIR_P) `echo "$$dist_files" | \ sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ sort -u` ;; \ esac; \ for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ if test -d $$d/$$file; then \ dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d "$(distdir)/$$file"; then \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ fi; \ cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ else \ test -f "$(distdir)/$$file" \ || cp -p $$d/$$file "$(distdir)/$$file" \ || exit 1; \ fi; \ done check-am: all-am check: check-am all-am: Makefile $(PROGRAMS) installdirs: for dir in "$(DESTDIR)$(bindir)"; do \ test -z "$$dir" || $(MKDIR_P) "$$dir"; \ done install: install-am install-exec: install-exec-am install-data: install-data-am uninstall: uninstall-am install-am: all-am @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am installcheck: installcheck-am install-strip: if test -z '$(STRIP)'; then \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ install; \ else \ $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ fi mostlyclean-generic: clean-generic: distclean-generic: -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." clean: clean-am clean-am: clean-binPROGRAMS clean-generic mostlyclean-am distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ distclean-tags dvi: dvi-am dvi-am: html: html-am html-am: info: info-am info-am: install-data-am: install-dvi: install-dvi-am install-dvi-am: install-exec-am: install-binPROGRAMS install-html: install-html-am install-html-am: install-info: install-info-am install-info-am: install-man: install-pdf: install-pdf-am install-pdf-am: install-ps: install-ps-am install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am -rm -rf ./$(DEPDIR) -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic mostlyclean: mostlyclean-am mostlyclean-am: mostlyclean-compile mostlyclean-generic pdf: pdf-am pdf-am: ps: ps-am ps-am: uninstall-am: uninstall-binPROGRAMS .MAKE: install-am install-strip .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \ clean-binPROGRAMS clean-generic cscopelist-am ctags ctags-am \ distclean distclean-compile distclean-generic distclean-tags \ distdir dvi dvi-am html html-am info info-am install \ install-am install-binPROGRAMS install-data install-data-am \ install-dvi install-dvi-am install-exec install-exec-am \ install-html install-html-am install-info install-info-am \ install-man install-pdf install-pdf-am install-ps \ install-ps-am install-strip installcheck installcheck-am \ installdirs maintainer-clean maintainer-clean-generic \ mostlyclean mostlyclean-compile mostlyclean-generic pdf pdf-am \ ps ps-am tags tags-am uninstall uninstall-am \ uninstall-binPROGRAMS # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. .NOEXPORT: ripperX-2.8.0/src/calc_stat.c000066400000000000000000000155461233655711300160630ustar00rootroot00000000000000#include "calc_stat.h" #include "misc_utils.h" #include #include void CalcStat::pause() { pause_time = time(0); }; void CalcStat::cont() { pause_time = time(NULL) - pause_time; session_start_time += pause_time; wav_start_time += pause_time; mp3_start_time += pause_time; }; void CalcStat::init() { wav_ratio = config.wav_ratio; mp3_ratio = config.mp3_ratio; total_wav_length_remain = 0; total_mp3_length_remain = 0; length_first_track = 0; length_last_track = 0; first_track = -1; last_track = -1; first_track_time_remain = 0; last_track_time_remain = 0; /* session_start_time = 0; wav_start_time = 0; pause_time = 0; */ }; void CalcStat::start_session(const MainData *main_data, _stat *stat) { int track=-1; CommonEncoderType type=WAV; /* Reset stat structure */ memset(stat, 0, sizeof(*stat)); stat->wav.track = -1; stat->mp3.track = -1; stat->tracks_remain = 0; stat->wav.progress = 0; stat->mp3.progress = 0; stat->total_progress = 0; stat->ripping = FALSE; stat->encoding = FALSE; this->init(); /* calculate total times */ while(main_data->find_next_job(track, WAV, &track, &type) >= 0) { total_wav_length_remain += main_data->track[ track ].length; stat->tracks_remain++; if(length_first_track == 0) { first_track = track; length_first_track = main_data->track[ track ].length; } last_track = track; length_last_track = main_data->track[ track ].length; } first_track_time_remain = main_data->track[ first_track ].length * wav_ratio; last_track_time_remain = main_data->track[ last_track ].length * mp3_ratio; track = -1; type = MP3; while(main_data->find_next_job(track, MP3, &track, &type) >= 0) { total_mp3_length_remain += main_data->track[ track ].length; } total_wav_length = total_wav_length_remain; total_mp3_length = total_mp3_length_remain; saved_total_wav_length_remain = total_wav_length_remain; saved_total_mp3_length_remain = total_mp3_length_remain; session_start_time = time(NULL); }; void CalcStat::start(const MainData *main_data, _stat *stat, int cur_track, CommonEncoderType cur_type) { create_file_names_for_track( main_data, cur_track, &wav_file_path, &enc_file_path ); if(cur_type == WAV) { strcpy(stat->dest_file_name, file_name_without_path(wav_file_path)); wav_prev_length_processed = 0; stat->wav.time_elapsed = 0; stat->wav.track = cur_track; wav_start_time = time(NULL); } else { strcpy(stat->src_file_name, file_name_without_path(wav_file_path)); strcpy(stat->dest_file_name, file_name_without_path(enc_file_path)); mp3_prev_length_processed = 0; stat->mp3.time_elapsed = 0; stat->mp3.track = cur_track; mp3_start_time = time(NULL); } count = 0; }; void CalcStat::update(const MainData *main_data, _stat *stat, unsigned int current, int cur_track, CommonEncoderType cur_type) { unsigned wav_length_processed; unsigned mp3_length_processed; int type; float total_time, temp; time_t cur_time = time(NULL); stat->total_time_elapsed = cur_time - session_start_time; assert (stat->total_time_elapsed > 0); /* avoid dividing by zero */ if(current == 0) { current = 1; } if(cur_type == WAV) { stat->wav.time_elapsed = cur_time - wav_start_time; wav_length_processed = current; stat->wav.progress = (float) wav_length_processed / main_data->track[ cur_track ].length; wav_temp_ratio = (float)(stat->wav.time_elapsed) / wav_length_processed; if(count++ >= COUNT_BEFORE_GET_AVG) { /* do not adjust ratio if length_processed is not 1 */ if(wav_length_processed != 1) { wav_ratio = (wav_temp_ratio + 2 * wav_ratio) / 3; } } else { wav_temp_ratio = wav_ratio; } stat->wav.time_remain = (main_data->track[ cur_track ].length - wav_length_processed) * wav_temp_ratio; total_wav_length_remain -= wav_length_processed - wav_prev_length_processed; wav_prev_length_processed = wav_length_processed; if(cur_track == first_track) { first_track_time_remain = stat->wav.time_remain; } } else { stat->mp3.time_elapsed = cur_time - mp3_start_time; mp3_length_processed = current; stat->mp3.progress = (float) mp3_length_processed / main_data->track[ cur_track ].length; mp3_temp_ratio = (float)(stat->mp3.time_elapsed) / mp3_length_processed; if(count++ >= COUNT_BEFORE_GET_AVG) { /* do not adjust ratio if length_processed is not 1 */ if(mp3_length_processed != 1) { mp3_ratio = (mp3_temp_ratio + 2 * mp3_ratio) / 3; } } else { mp3_temp_ratio = mp3_ratio; } stat->mp3.time_remain = (main_data->track[ cur_track ].length - mp3_length_processed) * mp3_temp_ratio; total_mp3_length_remain -= mp3_length_processed - mp3_prev_length_processed; mp3_prev_length_processed = mp3_length_processed; if(cur_track == last_track) { last_track_time_remain = stat->mp3.time_remain; } } /* Total progress */ if(main_data->track[ cur_track ].make_mp3) { /* for ripping and encoding. Assumption: Total time is equal to time_to_rip_first_track + time_to_encode_all_tracks */ if(mp3_ratio > wav_ratio) { stat->total_time_remain = first_track_time_remain + total_mp3_length_remain * mp3_ratio; total_time = length_first_track * wav_ratio + total_mp3_length * mp3_ratio; } else { /* for rare case when ripping takes longer than encoding */ stat->total_time_remain = last_track_time_remain + total_wav_length_remain * wav_ratio; total_time = length_last_track * mp3_ratio + total_wav_length * wav_ratio; } } else { /* if we are only ripping, only use the wav times */ stat->total_time_remain = total_wav_length_remain * wav_ratio; total_time = total_wav_length * wav_ratio; } temp = (total_time - stat->total_time_remain) / total_time; if(temp >= stat->total_progress) { stat->total_progress = temp; } else if((temp - stat->total_progress) / temp >= 0.05) { stat->total_progress = temp; } }; void CalcStat::stop (const MainData *main_data, _stat *stat, CommonEncoderType cur_type) { if(cur_type == WAV) { saved_total_wav_length_remain -= main_data->track[ stat->wav.track ].length; total_wav_length_remain = saved_total_wav_length_remain; } else { saved_total_mp3_length_remain -= main_data->track[ stat->mp3.track ].length; total_mp3_length_remain = saved_total_mp3_length_remain; } } void CalcStat::stop_session (_stat *stat) { stat->tracks_remain = 0; stat->tracks_done = 0; config.wav_ratio = wav_ratio; config.mp3_ratio = mp3_ratio; }; ripperX-2.8.0/src/calc_stat.h000066400000000000000000000027321233655711300160610ustar00rootroot00000000000000#include #include "common.h" #include "main_data.h" /* calculates statiscal info to report to the user */ // current is length_processes now class CalcStat { public: void start_session(const MainData *main_data, _stat *stat); void start(const MainData *main_data, _stat *stat,int cur_track, CommonEncoderType cur_type); void update(const MainData *main_data, _stat *stat, unsigned int current, int cur_track, CommonEncoderType cur_type); void pause(); void cont(); void stop(const MainData *main_data, _stat *stat, CommonEncoderType cur_type); void stop_session(_stat *stat); CalcStat() : wav_file_path(0), enc_file_path(0) { this->init(); } private: enum CalcStatConst { COUNT_BEFORE_GET_AVG = 10 }; unsigned int total_wav_length, total_mp3_length; unsigned int total_wav_length_remain, saved_total_wav_length_remain; unsigned int total_mp3_length_remain, saved_total_mp3_length_remain; unsigned int length_first_track; unsigned int first_track; unsigned int first_track_time_remain; unsigned int length_last_track; unsigned int last_track; unsigned int last_track_time_remain; float wav_ratio; float mp3_ratio; time_t session_start_time; time_t wav_start_time; time_t mp3_start_time; time_t pause_time; float wav_temp_ratio; float mp3_temp_ratio; unsigned wav_prev_length_processed; unsigned mp3_prev_length_processed; int count; char *wav_file_path, *enc_file_path; void init(); }; ripperX-2.8.0/src/cddb.c000066400000000000000000000471001233655711300150110ustar00rootroot00000000000000#include "config.h" #include #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #include #include #include "cddb.h" #include "cddbp.h" #include "id3v1genres.h" #include "misc_utils.h" #include "select_frame_handler.h" #include "main_window_handler.h" #include #include #define NAME "CATraxx" #define MAX_CDDB_FILE_SIZE 15360 enum errors { OK, REMOTE_OK, LOCAL_OK, NOT_FOUND, NO_CONNECT, CONNECT_REFUSED, SERVER_ERROR, PARAM_ERROR }; enum lookup_protocol { CDDBP, HTTP }; enum lookup_order { NONE, LOCAL, REMOTE, LOCAL_REMOTE, REMOTE_LOCAL }; int cddb_handle_data(const char *data, char **artist, char **dtitle, char *titles[], int *totaltracks, char **year, char **dgenre); int do_cddb(char **result, char **disc_category, int tracknum, int duration, long int offset[], const char *server, int port, int proto); int cddb_handle_data(const char *data, char **artist, char **dtitle, char *titles[], int *totaltracks, char **year, char **dgenre) { using std::string; const char *tmp = data; int i, j, counter = 0, track, previoustrack = 100, ttcounter = 0; char tempbuf[ MAX_CDDB_LENGTH+1 ]; if(strncmp(data, "# xmcd", 6) != 0) { return - 1; } *dtitle = NULL; while(*tmp != 0) /* check against end of string */ { /* get the row */ i = strcspn(tmp, "\r\n"); string row(tmp, i); tmp += i; while(*tmp == '\r' || *tmp == '\n') ++tmp; /* eval the row */ if(row.compare(0, 5, "DYEAR") == 0) /* CD Year */ { string tempstr(row, row.find('=')+1); j=tempstr.length()+1; *year = (char *)malloc(j); copy(tempstr.begin(), tempstr.begin()+j, *year); remove_non_ascii_chars(*year); } else if(row.compare(0, 6, "DGENRE") == 0) /* Disc Genre */ { string tempstr(row, row.find('=')+1); j=tempstr.length()+1; *dgenre = (char *)malloc(j); copy(tempstr.begin(), tempstr.begin()+j, *dgenre); remove_non_ascii_chars(*dgenre); } else if(row.compare(0, 6, "TTITLE") == 0) /* Track Title */ { /* get the track number before going on */ /* skip the TTITLE */ const char * mark = row.c_str() + 6; counter = 0; // printf ("title = %s\n", mark); /* convert ascii -> int */ while(*mark != '=') { counter *= 10; counter += *mark - 0x30 ; mark++; } mark++; /* and skip the '=' */ track = counter; if(previoustrack != track) { ttcounter++; } /* create the filename. Append previous title if necessary */ string tempstr; if(previoustrack == track) { tempstr += titles[track]; } /* put in the track name */ tempstr += mark; titles[track] = strdup(tempstr.c_str()); strip_trailing_space(&titles[ track ]); strip_leading_space(&titles[ track ]); previoustrack = track; remove_non_ascii_chars(titles[ track ]); #ifdef DEBUG printf("Track %d: %s\n", track, titles[ track ]); #endif } else if((row.compare(0, 6, "DTITLE") == 0) and (*dtitle == NULL)) /* CD Title */ { /* skip to the data */ const char * mark = row.c_str()+row.find('=')+1; // tm: hack around bogus CDDB entries if(strstr(mark, " / ")) { j = strstr(mark, " / ") - mark + 1; (*artist) = (char *) malloc(j + 1); strncpy((*artist), mark, j); (*artist)[ j ] = 0; (*dtitle) = (char *) malloc(strlen(mark) - j); mark = mark + j + 1; strcpy((*dtitle), mark); } else { #ifdef DEBUG printf("malformed DTITLE, copying full DTITLE into both artist and dtitle\n"); #endif j = strlen(mark); (* artist) = (char *) malloc(j + 1); strncpy((*artist), mark, j); (*artist)[ j ] = 0; (*dtitle) = (char *) malloc(j + 1); strncpy((*dtitle), mark, j); (*dtitle)[ j ] = 0; } strip_trailing_space(artist); strip_leading_space(artist); strip_trailing_space(dtitle); strip_leading_space(dtitle); remove_non_ascii_chars(*artist); remove_non_ascii_chars(*dtitle); convert_slashes(*artist, '_'); // dc: _ Artist, - others convert_slashes(*dtitle, '-'); #ifdef CONVERT_SPACES_IN_ID3_DATA if(config.cddb_config.convert_spaces == TRUE) { convert_spaces(*artist, '_'); convert_spaces(*dtitle, '_'); } #endif #ifdef DEBUG printf("Artist: %s\n", (*artist)); printf("Dtitle: %s\n", (*dtitle)); #endif } /* ignore any other results */ } *totaltracks = ttcounter; return 0; } unsigned long int cddb_disk_id(int length, int tracknum, long int offset[]) { int track; long int result = 0, tmp; for(track = 0; track < tracknum; track++) { tmp = (offset[ track ] + 150) / 75; do { result += tmp % 10; tmp /= 10; } while(tmp != 0); } return (result % 0xff) << 24 | (length + 2 - ((offset[ 0 ] + 150) / 75)) << 8 | tracknum; } int do_cddb(char **result, char **disc_category, int tracknum, int duration, long int offset[], const char *server, int port, int proto) { FILE *sock = NULL; int status, matches, i; char **category = NULL, **title = NULL, **alt_id = NULL; char *final_cat=0, *final_id=0, *cd_id=0, *uri=0, *wwwserver=0; /* chop up the URL */ std::auto_ptr server_ptr (new char[strlen(server)+1]); wwwserver = uri = strcpy(server_ptr.get(),server); strsep(&uri, "/"); cd_id = (char *) malloc(20); sprintf(cd_id, "%08lx", cddb_disk_id(duration, tracknum, offset)); if(proto == CDDBP) { sock = socket_init(wwwserver, port); if(!sock) { return NO_CONNECT; } /* connect to the cddb server */ status = cddbp_signon(sock); switch(status) { case 200 : case 201 : break; /* might want to differenciate when write() is supported on the server side */ case 432 : case 433 : case 434 : fclose(sock); return CONNECT_REFUSED; default : fclose(sock); return SERVER_ERROR; } /* do the hello handshake */ status = cddbp_handshake(sock, NAME, VERSION); switch(status) { case 200 : case 402 : break; case 431 : fclose(sock); return CONNECT_REFUSED; default : fclose(sock); return SERVER_ERROR; } status = cddbp_query(sock, cd_id, tracknum, offset, duration, &matches, &category, &title, &alt_id); } #if 0 /* get cddb information from a local http server (plain text file) */ /* must change CDDB URL to be http://localhost/testentry.txt */ strcpy(final_cat, "test"); strcpy(final_id, "test"); #else else { if(!strcmp(config.cddb_config.proxy_server, "")) status = http_query(wwwserver, port, uri, cd_id, tracknum, offset, duration, &matches, &category, &title, &alt_id, NAME, VERSION); else status = http_query_proxy(wwwserver, port, config.cddb_config.proxy_server, config.cddb_config.proxy_port, uri, cd_id, tracknum, offset, duration, &matches, &category, &title, &alt_id, NAME, VERSION); } switch(status) { case 200 : case 211 : break; case 999: return NO_CONNECT; case 202 : if(proto == CDDBP) { cddbp_signoff(sock); } return NOT_FOUND; case 403 : if(proto == CDDBP) { cddbp_signoff(sock); } return SERVER_ERROR; default : if(proto == CDDBP) { fclose(sock); } return SERVER_ERROR; } /* we don't care about multiple matches, just grab the first one */ final_cat = strdup(category[ 0 ]); *disc_category = final_cat; final_id = strdup(alt_id[ 0 ]); for(i = 0; i < matches; i++) { free(category[ i ]); free(title[ i ]); free(alt_id[ i ]); } free(category); free(title); free(alt_id); #endif /* now finally grab the data for the disc id and category */ if(proto == CDDBP) { status = cddbp_read(sock, final_cat, final_id, result); } else if(!strcmp(config.cddb_config.proxy_server, "")) { status = http_read(wwwserver, port, uri, final_cat, final_id, result, NAME, VERSION); } else { status = http_read_proxy(wwwserver, port, config.cddb_config.proxy_server, config.cddb_config.proxy_port, uri, final_cat, final_id, result, NAME, VERSION); } switch(status) { case 210 : break; case 401 : if(proto == CDDBP) { cddbp_signoff(sock); } return NOT_FOUND; case 403 : if(proto == CDDBP) { cddbp_signoff(sock); } return SERVER_ERROR; default : if(proto == CDDBP) { fclose(sock); } return SERVER_ERROR; } if(proto == CDDBP) { cddbp_signoff(sock); } free(final_id); return REMOTE_OK; } /* check the local file system to see if the file already exists by looping thru the catagories and the predefined prefix */ static int read_local_file(char *result, int tracknum, int duration, long int offset[]) { FILE *datafile; int i; char file_check[ MAX_FILE_PATH_LENGTH + MAX_FILE_NAME_LENGTH + 1 ]; char cd_id[ 20 ]; sprintf(cd_id, "%08lx", cddb_disk_id(duration, tracknum, offset)); #ifdef DEBUG printf("cddb_disk_id returned '%s'\n", cd_id); #endif /* first, check the directory pointed to by the config file */ strcpy(file_check, config.cddb_path); /* start with the base path */ strcat(file_check, "/"); strcat(file_check, cd_id); /* add the filename */ if((datafile = fopen(file_check, "r")) == NULL) { /* * since the file didn't exist in the directory * check the category sub-directories */ const TagLib::StringList genre_description = TagLib::ID3v1::genreList(); std::string file_check_genre; for(i = 0; i < genre_description.size(); i++) { file_check_genre = config.cddb_path; /* start with the base path */ file_check_genre += '/'; /* add the seperator */ file_check_genre += genre_description[i].to8Bit(); /* add the catagory */ file_check_genre += '/'; /* add the seperator */ file_check_genre += cd_id; /* add the filename */ if((datafile = fopen(file_check_genre.c_str(), "r")) != NULL) { break; } } } if(datafile == NULL) { return (NOT_FOUND); } else { fread(result, 1, MAX_CDDB_FILE_SIZE, datafile); fclose(datafile); return (REMOTE_OK); } } int do_cddb_proxy(char **result, char **disc_category, int tracknum, int duration, long int offset[], const char *server, int port, int proto) { FILE *sock = NULL; int status, matches, i; char **category = NULL, **title = NULL, **alt_id = NULL; char *final_cat=0, *final_id=0, *cd_id, *uri, *wwwserver; /* chop up the URL */ wwwserver = uri = strdup(server); wwwserver = strsep(&uri, "/"); final_cat = (char *) malloc(20); final_id = (char *) malloc(20); cd_id = (char *) malloc(20); sprintf(cd_id, "%08lx", cddb_disk_id(duration, tracknum, offset)); if(proto == CDDBP) { sock = socket_init(wwwserver, port); if(!sock) { return NO_CONNECT; } /* connect to the cddb server */ status = cddbp_signon(sock); switch(status) { case 200 : case 201 : break; /* might want to differentiate when write() is supported on the server side */ case 432 : case 433 : case 434 : fclose(sock); return CONNECT_REFUSED; default : fclose(sock); return SERVER_ERROR; } /* do the hello handshake */ status = cddbp_handshake(sock, NAME, VERSION); switch(status) { case 200 : case 402 : break; case 431 : fclose(sock); return CONNECT_REFUSED; default : fclose(sock); return SERVER_ERROR; } status = cddbp_query(sock, cd_id, tracknum, offset, duration, &matches, &category, &title, &alt_id); } #ifdef TESTLOCALHTTP /* get cddb information from a local http server (plain text file) */ /* must change CDDB URL to be http://localhost/testentry.txt */ strcpy(final_cat, "test"); strcpy(final_id, "test"); #else else { status = http_query(wwwserver, port, uri, cd_id, tracknum, offset, duration, &matches, &category, &title, &alt_id, NAME, VERSION); } switch(status) { case 200 : case 211 : break; case 999: return NO_CONNECT; case 202 : if(proto == CDDBP) { cddbp_signoff(sock); } return NOT_FOUND; case 403 : if(proto == CDDBP) { cddbp_signoff(sock); } return SERVER_ERROR; default : if(proto == CDDBP) { fclose(sock); } return SERVER_ERROR; } /* we don't care about multiple matches, just grab the first one */ final_cat = strdup(category[ 0 ]); *disc_category = final_cat; final_id = strdup(alt_id[ 0 ]); for(i = 0; i < matches; i++) { free(category[ i ]); free(title[ i ]); free(alt_id[ i ]); } free(category); free(title); free(alt_id); #endif /* now finally grab the data for the disc id and category */ if(proto == CDDBP) { status = cddbp_read(sock, final_cat, final_id, result); } else status = http_read(wwwserver, port, uri, final_cat, final_id, result, NAME, VERSION); switch(status) { case 210 : break; case 401 : if(proto == CDDBP) { cddbp_signoff(sock); } return NOT_FOUND; case 403 : if(proto == CDDBP) { cddbp_signoff(sock); } return SERVER_ERROR; default : if(proto == CDDBP) { fclose(sock); } return SERVER_ERROR; } if(proto == CDDBP) { cddbp_signoff(sock); } free(final_id); return REMOTE_OK; } int cddb_main(_main_data *main_data) { int err, i, totaltracks; char *result = (char *) malloc(MAX_CDDB_FILE_SIZE); char *artist = NULL; char *dtitle = NULL; char *category = NULL; char *titles[ MAX_NUM_TRACK ]; char *year = NULL; char *dgenre = NULL; int tracknum = main_data->num_tracks(); int duration = main_data->total_length; long int offset[ MAX_NUM_TRACK ]; main_window_handler(MW_UPDATE_STATUSBAR, _("Contacting CDDB server..."), NULL); while(gtk_events_pending()) { gtk_main_iteration(); } /* grab the track offsets from the main_data structure */ for(i = 0; i < tracknum; i++) { offset[ i ] = main_data->track[ i ].begin; } /* check for a local file first */ err = read_local_file(result, tracknum, duration, offset); /* connect to the cddb server and grab the results */ if(err != REMOTE_OK) { free(result); result=0; err = do_cddb(&result, &category, tracknum, duration, offset, config.cddb_config.server, config.cddb_config.port, config.cddb_config.use_http); } main_window_handler(MW_UPDATE_STATUSBAR, _("Grabbing Completed..."), NULL); while(gtk_events_pending()) { gtk_main_iteration(); } switch(err) { case REMOTE_OK : /* successful lookup, now parse the returned data */ cddb_handle_data(result, &artist, &dtitle, titles, &totaltracks, &year, &dgenre); free(result); if(artist == 0) { main_data->disc_artist[0]=0; } else { strcpy(main_data->disc_artist, artist); } free(artist); if(dtitle == 0) { main_data->disc_title[0]=0; } else { strcpy(main_data->disc_title, dtitle); } free(dtitle); if(dgenre == 0) { main_data->disc_category[0]=0; } else { strcpy(main_data->disc_category, dgenre); } free(category); if(year == 0) { main_data->disc_year[0]=0; } else { strcpy(main_data->disc_year, year); } free(year); for(i = 0; i < tracknum; i++) /* fixed a sneaky bug here */ { /* copy the data into the main_data structure */ put_track_title(titles[i], main_data, i); free(titles[ i ]); } // auto-select all tracks // FIXME - this seems to get the state out of sync with the buttons. select_frame_handler(SF_SELECT_ALL, 0, main_data); /* this is needed to update the display with the new data */ select_frame_handler(SF_SYNC_SELECT_FRAME, 0, main_data); break; case NO_CONNECT : err_handler(CDDB_NO_CONNECT_ERR, NULL); break; case CONNECT_REFUSED : err_handler(CDDB_CONNECT_REFUSED_ERR, NULL); break; case SERVER_ERROR : err_handler(CDDB_SERVER_ERR, NULL); break; case NOT_FOUND : err_handler(CDDB_NOT_FOUND_ERR, NULL); break; } main_window_handler(MW_CLEAR_STATUSBAR, NULL, NULL); while(gtk_events_pending()) { gtk_main_iteration(); } return 0; } ripperX-2.8.0/src/cddb.h000066400000000000000000000002331233655711300150120ustar00rootroot00000000000000/* Modified from cccd * http://www.hsp.de/~jst/cccd/ */ #ifndef CDDB_H #define CDDB_H #include "common.h" int cddb_main(_main_data *main_data); #endif ripperX-2.8.0/src/cddbp.c000066400000000000000000000445341233655711300152010ustar00rootroot00000000000000#include "config.h" #include #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #include #include #include "cddbp.h" #include "main_window_handler.h" #include "misc_utils.h" int cddbp_query_proxy(FILE *, const char *disk_id, int tracknum, long int offsets[], int duration, int *matches, char ***category_buffer, char ***title_buffer, char ***id_buffer); int cddbp_stat(FILE *, char **result); int http_stat(const char *server, int port, const char *URL, char **result, const char *client, const char *version); int cddbp_signon(FILE *socket) { char *buffer; int code; buffer = get_string_piece(socket, '\n'); if(buffer == NULL) { return -1; } #ifdef DEBUG printf("<= %s\n", buffer); #endif /* convert the answer code to int */ code = ((buffer[ 0 ] - 0x30) * 10 + (buffer[ 1 ] - 0x30)) * 10 + (buffer[ 2 ] - 0x30); free(buffer); return code; } int cddbp_handshake(FILE *socket, const char *clientname, const char *version) { char *buffer; int code; /* Greetings! */ /* - no need to disclose user and hostname */ #ifdef DEBUG printf("=> cddb hello %s %s %s %s\n", "anonymous", "localhost", clientname, version); #endif fprintf(socket, "cddb hello %s %s %s %s\n", "anonymous", "localhost", clientname, version); buffer = get_string_piece(socket, '\n'); if(buffer == NULL) { return -1; } #ifdef DEBUG printf("<= %s\n", buffer); #endif code = ((buffer[ 0 ] - 0x30) * 10 + (buffer[ 1 ] - 0x30)) * 10 + (buffer[ 2 ] - 0x30); free(buffer); return code; } int cddbp_query(FILE *socket, const char *disk_id, int tracknum, long int offset[], int duration, int *matches, char ***category_buffer, char ***title_buffer, char ***id_buffer) { char *buffer, *tmp; int code, i; buffer = (char *) malloc(strlen("cddb query ") + strlen(disk_id) + 1 + 3 + tracknum * 10 + 6 + 1); sprintf(buffer, "cddb query %s %d ", disk_id, tracknum); tmp = (char *) malloc(10); for(i = 0; i < tracknum; i++) { sprintf(tmp, "%ld ", offset[ i ]); strcat(buffer, tmp); } sprintf(tmp, "%d\n", duration); strcat(buffer, tmp); free(tmp); #ifdef DEBUG printf("=> %s\n", buffer); #endif fwrite(buffer, strlen(buffer)+1, 1, socket); free(buffer); tmp = buffer = get_string_piece(socket, '\n'); if(buffer == NULL) { return -1; } #ifdef DEBUG printf("<= %s\n", buffer); #endif code = ((buffer[ 0 ] - 0x30) * 10 + (buffer[ 1 ] - 0x30)) * 10 + (buffer[ 2 ] - 0x30); *matches = 0; if(code == 200) { buffer = tmp + 4; } else if(code == 211) { free(buffer); tmp = buffer = get_string_piece(socket, '\n'); } else { return code; } /* get the alternavtives */ *title_buffer = (char **) malloc(sizeof(char *) * 1000); *category_buffer = (char **) malloc(sizeof(char *) * 1000); *id_buffer = (char **) malloc(sizeof(char *) * 1000); do { if(strcmp(buffer, ".\r\n") == 0) { break; } /* if we get more than 1000 matches, the char*[] will be full, and we will skip the remaining few million matches */ if(*matches == 999) { free(tmp); continue; } i = strcspn(buffer, " "); (*category_buffer)[ *matches ] = (char *) malloc(i + 1); strncpy((*category_buffer)[ *matches ], buffer, i); (*category_buffer)[ *matches ][ i ] = 0; /*terminate the string*/ buffer += i + 1; /* skip to the disk id */ (*id_buffer)[ *matches ] = (char *) malloc(9); /* the disk id is always 8 char long */ strncpy((*id_buffer)[ *matches ], buffer, 8); (*id_buffer)[ *matches ][ 8 ] = 0; /*terminate the string */ buffer += 9; i = strlen(buffer) - 2; /*strip the remaining '\r\n' from the end of the line*/ (*title_buffer)[ *matches ] = (char *) malloc(i + 1); strncpy((*title_buffer)[ *matches ], buffer, i); (*title_buffer)[ *matches ][ i ] = 0; /*terminate the string */ (*matches) ++; free(tmp); } while(code != 200 && (tmp = buffer = get_string_piece(socket, '\n')) != NULL); return code; } int cddbp_read(FILE *socket, const char *category, const char *disk_id, char **result_buffer) { char *buffer; int code; int count; char status_buf[ 36 ]; #ifdef DEBUG printf("=> cddb read %s %s\n", category, disk_id); #endif fprintf(socket, "cddb read %s %s\n", category, disk_id); buffer = get_string_piece(socket, '\n'); if(buffer == NULL) { return -1; } #ifdef DEBUG printf("<= %s\n", buffer); #endif code = ((buffer[ 0 ] - 0x30) * 10 + (buffer[ 1 ] - 0x30)) * 10 + (buffer[ 2 ] - 0x30); free(buffer); if(code > 210) { return code; } /* skip the first row, and copy the data that follows into the result buffer*/ *result_buffer = (char *) malloc(1); strcpy(*result_buffer, ""); count = 1; do { buffer = get_string_piece(socket, '\n'); if(strncmp(buffer, "TTITLE", 6) == 0) { sprintf(status_buf, _("Reading Information about track %2d"), count); main_window_handler(MW_UPDATE_STATUSBAR, status_buf, NULL); while(gtk_events_pending()) { gtk_main_iteration(); } count++; } #ifdef DEBUG printf("<= %s", buffer); #endif string_append(result_buffer, buffer); free(buffer); } while(strstr(*result_buffer, "\r\n.\r\n") == NULL); main_window_handler(MW_UPDATE_STATUSBAR, _("Done..."), NULL); while(gtk_events_pending()) { gtk_main_iteration(); } return code; } int cddbp_stat(FILE *socket, char **result) { int code; char *buffer; #ifdef DEBUG printf("=> stat\n"); #endif fprintf(socket, "stat\n"); buffer = get_string_piece(socket, '\n'); if(buffer == NULL) { return -1; } #ifdef DEBUG printf("<= %s\n", buffer); #endif code = ((buffer[ 0 ] - 0x30) * 10 + (buffer[ 1 ] - 0x30)) * 10 + (buffer[ 2 ] - 0x30); free(buffer); if(code > 210) { return code; } do { buffer = get_string_piece(socket, '\n'); #ifdef DEBUG printf("<= %s", buffer); #endif string_append(result, buffer); free(buffer); } while(strstr(*result, "\r\n.\r\n") == NULL); return code; } void cddbp_signoff(FILE *socket) { char *buffer; fprintf(socket, "quit\n"); buffer = get_string_piece(socket, '\n'); free(buffer); fclose(socket); #ifdef DEBUG printf("Signing off\n"); #endif } int http_query(const char *server, int port, const char *URL, const char *cd_id, int tracknum, long int offset[], int duration, int *matches, char ***category_buffer, char ***title_buffer, char ***id_buffer, const char *client, const char *version) { char *buffer = new char[1024], *tmp = new char[1024]; int i, code; FILE *sock; sprintf(buffer, "GET /%s?cmd=cddb+query+%s+%d", URL, cd_id, tracknum); for(i = 0; i < tracknum; i++) { sprintf(tmp, "+%ld", offset[ i ]); strcat(buffer, tmp); strcpy(tmp, ""); } sprintf(tmp, "+%d&hello=%s+%s+%s+%s&proto=1 HTTP/1.0\r\n\r\n", duration, "anonymous", "localhost", client, version); strcat(buffer, tmp); delete [] tmp; #ifdef DEBUG printf("=> %s\n", buffer); #endif sock = socket_init(server, port); if(!sock) { free(buffer); return 999; } fprintf(sock, "%s", buffer); delete [] buffer; buffer = get_ascii_file(sock); #ifdef DEBUG printf("<= %s\n", buffer); #endif /* strip the http header of the answer */ tmp = strstr(buffer, "\r\n\r\n"); if(tmp == NULL) /* uhoh, no empty row anywhere.... */ { free(buffer); return -1; } tmp += 4; tmp = strdup(tmp); free(buffer); buffer = tmp; *matches = 0; code = ((tmp[ 0 ] - 0x30) * 10 + (tmp[ 1 ] - 0x30)) * 10 + (tmp[ 2 ] - 0x30); if(code == 200) { buffer += 4; } else if(code == 211) { buffer = strchr(buffer, '\n'); } else { free(tmp); return code; } *title_buffer = (char **) malloc(sizeof(char *) * 1000); *category_buffer = (char **) malloc(sizeof(char *) * 1000); *id_buffer = (char **) malloc(sizeof(char *) * 1000); do { if(strcmp(buffer, ".\r\n") == 0) { break; } /* if we get more than 1000 matches, the char*[] will be full, and we will skip the remaining few million matches */ if(*matches == 999) { continue; } i = strcspn(buffer, " "); if(buffer[ 0 ] == '\n') /* skip the \n only if it is there */ { buffer++; i--; } (*category_buffer)[ *matches ] = (char *) malloc(i + 1); strncpy((*category_buffer)[ *matches ], buffer, i); (*category_buffer)[ *matches ][ i ] = 0; /*terminate the string*/ buffer += i + 1; /* skip to the disk id */ (*id_buffer)[ *matches ] = (char *) malloc(9); /* the disk id is always 8 char long */ strncpy((*id_buffer)[ *matches ], buffer, 8); (*id_buffer)[ *matches ][ 8 ] = 0; /*terminate the string */ buffer += 9; i = strcspn(buffer, "\r\n"); (*title_buffer)[ *matches ] = (char *) malloc(i + 1); strncpy((*title_buffer)[ *matches ], buffer, i); (*title_buffer)[ *matches ][ i ] = 0; /*terminate the string */ (*matches) ++; buffer += i + 2; /* skip the \r\n */ } while((buffer = strchr(buffer, '\n')) != NULL); #ifdef DEBUG printf("category: %s, title: %s", (*category_buffer)[ 0 ], (*title_buffer)[ 0 ]); #endif free(tmp); return code; } int http_query_proxy(const char *server, int port, const char *proxy_server, int proxy_port, const char *URL, const char *cd_id, int tracknum, long int offset[], int duration, int *matches, char ***category_buffer, char ***title_buffer, char ***id_buffer, const char *client, const char *version) { char *buffer = (char *) malloc(1024), *tmp = (char *) malloc(1024); int i, code; FILE *sock; sprintf(buffer, "GET http://%s:%i/%s?cmd=cddb+query+%s+%d", server, port, URL, cd_id, tracknum); for(i = 0; i < tracknum; i++) { sprintf(tmp, "+%ld", offset[ i ]); strcat(buffer, tmp); strcpy(tmp, ""); } sprintf(tmp, "+%d&hello=%s+%s+%s+%s&proto=1 HTTP/1.0\r\n\r\n", duration, "anonymous", "localhost", client, version); strcat(buffer, tmp); free(tmp); #ifdef DEBUG printf("=> %s\n", buffer); #endif sock = socket_init(proxy_server, proxy_port); if(!sock) { free(buffer); return 999; } fprintf(sock, "%s", buffer); free(buffer); buffer = get_ascii_file(sock); #ifdef DEBUG printf("<= %s\n", buffer); #endif /* strip the http header of the answer */ tmp = strstr(buffer, "\r\n\r\n"); if(tmp == NULL) /* uhoh, no empty row anywhere.... */ { free(buffer); return - 1; } tmp += 4; tmp = strdup(tmp); free(buffer); buffer = tmp; *matches = 0; code = ((tmp[ 0 ] - 0x30) * 10 + (tmp[ 1 ] - 0x30)) * 10 + (tmp[ 2 ] - 0x30); if(code == 200) { buffer += 4; } else if(code == 211) { buffer = strchr(buffer, '\n'); } else { free(tmp); return code; } *title_buffer = (char **) malloc(sizeof(char *) * 1000); *category_buffer = (char **) malloc(sizeof(char *) * 1000); *id_buffer = (char **) malloc(sizeof(char *) * 1000); do { if(strcmp(buffer, ".\r\n") == 0) { break; } /* if we get more than 1000 matches, the char*[] will be full, and we will skip the remaining few million matches */ if(*matches == 999) { continue; } i = strcspn(buffer, " "); if(buffer[ 0 ] == '\n') /* skip the \n only if it is there */ { buffer++; i--; } (*category_buffer)[ *matches ] = (char *) malloc(i + 1); strncpy((*category_buffer)[ *matches ], buffer, i); (*category_buffer)[ *matches ][ i ] = 0; /*terminate the string*/ buffer += i + 1; /* skip to the disk id */ (*id_buffer)[ *matches ] = (char *) malloc(9); /* the disk id is always 8 char long */ strncpy((*id_buffer)[ *matches ], buffer, 8); (*id_buffer)[ *matches ][ 8 ] = 0; /*terminate the string */ buffer += 9; i = strcspn(buffer, "\r\n"); (*title_buffer)[ *matches ] = (char *) malloc(i + 1); strncpy((*title_buffer)[ *matches ], buffer, i); (*title_buffer)[ *matches ][ i ] = 0; /*terminate the string */ (*matches) ++; buffer += i + 2; /* skip the \r\n */ } while((buffer = strchr(buffer, '\n')) != NULL); #ifdef DEBUG printf("category: %s, title: %s", (*category_buffer)[ 0 ], (*title_buffer)[ 0 ]); #endif free(tmp); return code; } int http_read(const char *server, int port, const char *URL, const char *category, const char *disk_id, char **result, const char *client, const char *version) { int code; char *buffer, *tmp; FILE *sock; #ifdef DEBUG printf("=> GET /%s?cmd=cddb+read+%s+%s&hello=%s+%s+%s+%s&proto=1 HTTP/1.0\r\n\r\n", URL, category, disk_id, "anonymouse", "localhost", client, version); #endif sock = socket_init(server, port); if(!sock) { return 999; } fprintf(sock, "GET /%s?cmd=cddb+read+%s+%s&hello=%s+%s+%s+%s&proto=5 HTTP/1.0\r\n\r\n", URL, category, disk_id, "anonymous", "localhost", client, version); buffer = get_ascii_file(sock); #ifdef DEBUG printf("<= %s\n", buffer); #endif /* strip the http header of the answer */ tmp = strstr(buffer, "\r\n\r\n"); if(tmp == NULL) /* uhoh, no empty row anywhere.... */ { free(buffer); return - 1; } tmp += 4; tmp = strdup(tmp); free(buffer); buffer = tmp; code = ((buffer[ 0 ] - 0x30) * 10 + (buffer[ 1 ] - 0x30)) * 10 + (buffer[ 2 ] - 0x30); if(code > 210) { free(buffer); return code; } /* skip the first row, and copy the data that follows into the result buffer*/ tmp = strchr(buffer, '\n') + 1; *result = strdup(tmp); free(buffer); return code; } int http_read_proxy(const char *server, int port, const char *proxy_server, int proxy_port, const char *URL, const char *category, const char *disk_id, char **result, const char *client, const char *version) { int code; char *buffer, *tmp; FILE *sock; #ifdef DEBUG printf("=> GET http://%s:%i/%s?cmd=cddb+read+%s+%s&hello=%s+%s+%s+%s&proto=1 HTTP/1.0\r\n\r\n", server, port, URL, category, disk_id, "anonymous", "localhost", client, version); #endif sock = socket_init(proxy_server, proxy_port); if(!sock) { return 999; } fprintf(sock, "GET http://%s:%i/%s?cmd=cddb+read+%s+%s&hello=%s+%s+%s+%s&proto=5 HTTP/1.0\r\n\r\n", server, port, URL, category, disk_id, "anonymous", "localhost", client, version); buffer = get_ascii_file(sock); #ifdef DEBUG printf("<= %s\n", buffer); #endif /* strip the http header of the answer */ tmp = strstr(buffer, "\r\n\r\n"); if(tmp == NULL) /* uhoh, no empty row anywhere.... */ { free(buffer); return - 1; } tmp += 4; tmp = strdup(tmp); free(buffer); buffer = tmp; code = ((buffer[ 0 ] - 0x30) * 10 + (buffer[ 1 ] - 0x30)) * 10 + (buffer[ 2 ] - 0x30); if(code > 210) { free(buffer); return code; } /* skip the first row, and copy the data that follows into the result buffer*/ tmp = strchr(buffer, '\n') + 1; *result = strdup(tmp); free(buffer); return code; } int http_stat(const char *server, int port, const char *URL, char **result, const char *client, const char *version) { int code; char *buffer, *tmp; FILE *sock; #ifdef DEBUG printf("=> GET /%s?cmd=stat&hello=%s+%s+%s+%s&proto=1 HTTP/1.0\r\n\r\n", URL, "anonymous", "localhost", client, version); #endif sock = socket_init(server, port); if(!sock) { return 999; } fprintf(sock, "GET /%s?cmd=stat&hello=%s+%s+%s+%s&proto=1 HTTP/1.0\r\n\r\n", URL, "anonymous", "localhost", client, version); buffer = get_ascii_file(sock); #ifdef DEBUG printf("<= %s\n", buffer); #endif /* strip the http header of the answer */ tmp = strstr(buffer, "\r\n\r\n"); if(tmp == NULL) /* uhoh, no empty row anywhere.... */ { free(buffer); return - 1; } tmp += 4; tmp = strdup(tmp); free(buffer); buffer = tmp; code = ((buffer[ 0 ] - 0x30) * 10 + (buffer[ 1 ] - 0x30)) * 10 + (buffer[ 2 ] - 0x30); if(code > 210) { free(buffer); return code; } /* skip the first row, and copy the data that follows into the result buffer*/ tmp = strchr(buffer, '\n') + 1; *result = strdup(tmp); free(buffer); return code; } ripperX-2.8.0/src/cddbp.h000066400000000000000000000034641233655711300152030ustar00rootroot00000000000000#ifndef CDDBP_H #define CDDBP_H /* the following functions are active, meaning that they themselves will communicate directly to the server through the FILE* which is given */ #if 0 #define DEBUG #endif #include "common.h" int cddbp_signon(FILE *); int cddbp_handshake(FILE *, const char *clientname, const char *version); int cddbp_query(FILE *, const char *disk_id, int tracknum, long int offsets[ ], int duration, int *matches, char ***category_buffer, char ***title_buffer, char ***id_buffer); int cddbp_read(FILE *, const char *category, const char *disk_id, char **result_buffer); int http_query(const char *server, int port, const char *URL, const char *disk_cd, int tracknum, long int offsets[ ], int duration, int *matches, char ***category_buffer, char ***title_buffer, char ***id_buffer, const char *client, const char *version); int http_query_proxy(const char *server, int port, const char *proxy_server, int proxy_port, const char *URL, const char *cd_id, int tracknum, long int offset[ ], int duration, int *matches, char ***category_buffer, char ***title_buffer, char ***id_buffer, const char *client, const char *version); int http_read(const char *server, int port, const char *URL, const char *category, const char *disk_id, char **result_buffer, const char *client, const char *version); int http_read_proxy(const char *server, int port, const char *proxy_server, int proxy_port, const char *URL, const char *category, const char *disk_id, char **result_buffer, const char *client, const char *version); void cddbp_signoff(FILE *); #endif ripperX-2.8.0/src/common.h000066400000000000000000000072731233655711300154210ustar00rootroot00000000000000/* file common.h * * defines constants common to all files in ripperx * * TODO: move the includes to the files where they are used (ralf) * * Ralf Engels 10/06/1999 commented extern int errno out * moved include to files where needed * removed all the warnings */ #ifndef COMMON_H #define COMMON_H #include "../config.h" #include "main_data.h" #ifdef HAVE_SYS_TYPES_H #include #endif #include "err_dialog_handler.h" #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif /* ===================================================== * Constants * ===================================================*/ /* Global constants */ #define MAX_OPTIONS_LENGTH 300 #define MAX_SINGLE_OPTION_LENGTH 50 #define MAX_COMMAND_LENGTH 2048 #define MAX_ARGS 50 #define MAX_FILE_PER_DIR 1024 #define MAX_FILE_PATH_LENGTH 512 #define MAX_TOTAL_PATH_LENGTH (MAX_FILE_PATH_LENGTH+MAX_FILE_NAME_LENGTH) #define MAX_TITLE_LENGTH 1024 #define MAX_GENRE_LENGTH 1024 /* MAX_CDDB_LENGTH is the maximum length of a CDDB element */ #define MAX_CDDB_LENGTH 1024 #define CD_SECTORS_PER_SEC (float)75.018 #define CD_SECTORS_PER_FRAME (float)1.959 #define MIN_NICE_LEVEL 19 #define MAX_NICE_LEVEL 0 /* ===================================================== * Structures * ===================================================*/ /* Configuration Structure */ typedef struct { float wav_ratio; float mp3_ratio; char shell_for_execution[ MAX_COMMAND_LENGTH ]; char wav_path[ MAX_FILE_PATH_LENGTH ]; char mp3_path[ MAX_FILE_PATH_LENGTH ]; char cddb_path[ MAX_FILE_PATH_LENGTH ]; char wav_file_name_format[ MAX_FILE_NAME_LENGTH ]; char mp3_file_name_format[ MAX_FILE_NAME_LENGTH ]; char prepend_char; int make_mp3_from_existing_wav; int ask_when_file_exists; int auto_append_extension; int keep_wav; struct _ripper { char ripper[ MAX_COMMAND_LENGTH ]; char plugin[ MAX_COMMAND_LENGTH ]; } ripper; struct _encoder { char encoder[ MAX_COMMAND_LENGTH ]; char plugin[ MAX_COMMAND_LENGTH ]; CommonEncoderType type; int bitrate; int use_varbitrate; int priority; int use_high_qual; int use_crc; int vbr_qual; char extra_options[ MAX_OPTIONS_LENGTH ]; char full_command[ MAX_COMMAND_LENGTH ]; } encoder; struct _player { char command[ MAX_COMMAND_LENGTH ]; } wav_player, mp3_player; struct _cd_player { char play_command[ MAX_COMMAND_LENGTH ]; char stop_command[ MAX_COMMAND_LENGTH ]; } cd_player; struct _cddb_config { char server[ MAX_COMMAND_LENGTH ]; int port; int use_http; int convert_spaces; int make_directories; int create_id3; int create_playlist; int auto_lookup; char format_string[ MainData::MAX_ARTIST_LENGTH ]; char dir_format_string[ MainData::MAX_ARTIST_LENGTH ]; char proxy_server[ MAX_COMMAND_LENGTH ]; int proxy_port; } cddb_config; } _config; typedef MainData _main_data; struct StatByType { int track; time_t time_elapsed, time_remain; float progress; }; typedef struct { StatByType wav, mp3; char src_file_name[ MAX_FILE_NAME_LENGTH ]; char dest_file_name[ MAX_FILE_NAME_LENGTH ]; time_t total_time_elapsed; time_t total_time_remain; float total_progress; int tracks_done; int tracks_remain; int ripping; int encoding; } _stat; extern _config config; enum CommonLocation { SELECT_FRAME, STATUS_FRAME, CONFIG_WINDOW }; extern enum CommonLocation where_now; #endif ripperX-2.8.0/src/config_rw.c000066400000000000000000000176051233655711300161010ustar00rootroot00000000000000#include #include #include #include #include #include #include #include #include #include "../config.h" #include "../src/misc_utils.h" #include "../src/common.h" #include "config_rw.h" using std::istream; using std::ostream; using std::copy; _config config; //read enums by casting to int istream & operator >> (istream & in, CommonEncoderType &t) { return in >> (int&)t; } //interface for config entries class ConfigRW::ConfigRwInterface { public: friend istream & operator >> (istream & in, ConfigRwInterface & e) { return e.operator >> (in); } friend ostream & operator << (ostream & out, ConfigRwInterface const &e) { return e.operator << (out); } private: virtual ostream & operator << (ostream & out) const = 0; virtual istream & operator >> (istream & in) = 0; }; namespace { template struct ConfigRwData : public ConfigRW::ConfigRwInterface { public: ConfigRwData(T * dst, const T & default_value) { m_id = dst; *m_id = default_value; } private: T *m_id; //pointer into config ostream & operator << (ostream & out) const { return out << *m_id; } istream & operator >> (istream & in) { return in >> *m_id; } }; //current c string handling is a little odd. template <> struct ConfigRwData : public ConfigRW::ConfigRwInterface { public: ConfigRwData(char * dst, const char * default_value) { m_id = dst; copy (default_value, default_value+strlen(default_value)+1, m_id); } private: char * m_id; //pointer into config ostream & operator << (ostream & out) const { return out << m_id; } istream & operator >> (istream & in) { while (in.peek() == ' ') in.ignore(1); return in.getline(m_id, 1024, '\n'); } }; }; //unnamed namespace template void ConfigRW::insert_pair(const char * label, T * dst, const U dft) { config_rw_data.push_back(std::make_pair(label, new ConfigRwData(dst,dft))); } void ConfigRW::init_config_data (void) { config_rw_data.reserve(42); insert_pair("General::WavRatio", &config.wav_ratio, 0.006f); insert_pair("General::Mp3Ratio", &config.mp3_ratio, 0.08f); insert_pair("General::ShellForExecution", config.shell_for_execution, "/bin/sh"); insert_pair("General::WavPath", config.wav_path, "./"); insert_pair("General::Mp3Path", config.mp3_path, "./"); insert_pair("General::CDDBPath", config.cddb_path,"./.cddbslave"); insert_pair("General::WavFileNameFormat", config.wav_file_name_format,"track%"); insert_pair( "General::Mp3FileNameFormat", config.mp3_file_name_format, "track%" ); insert_pair( "General::PrependChar", &config.prepend_char, '_' ); insert_pair( "General::MakeMp3FromExistingWav", &config.make_mp3_from_existing_wav,0 ); insert_pair( "General::AskWhenFileExists", &config.ask_when_file_exists, 1 ); insert_pair( "General::AutoAppendExtension", &config.auto_append_extension, 1 ); insert_pair( "General::KeepWav", &config.keep_wav, 0 ); insert_pair( "Ripper::Ripper", config.ripper.ripper, "cdparanoia " ); insert_pair( "Ripper::Plugin", config.ripper.plugin, "ripperX_plugin-cdparanoia" ); insert_pair( "Encoder::Encoder", config.encoder.encoder, "lame" ); insert_pair( "Encoder::Type", &config.encoder.type,MP3 ); insert_pair( "Encoder::Bitrate", &config.encoder.bitrate,128 ); insert_pair( "Encoder::VarBitrate", &config.encoder.use_varbitrate,1 ); insert_pair( "Encoder::VBRQual", &config.encoder.vbr_qual,4 ); insert_pair( "Encoder::Priority", &config.encoder.priority,10 ); insert_pair( "Encoder::HighQual", &config.encoder.use_high_qual,1 ); insert_pair( "Encoder::useCRC", &config.encoder.use_crc,0 ); insert_pair( "Encoder::extraOptions", config.encoder.extra_options,"" ); insert_pair( "Encoder::fullCommand", config.encoder.full_command, "lame -b 128" ); insert_pair( "Encoder::Plugin", config.encoder.plugin, "ripperX_plugin-lame" ); insert_pair( "CdPlayer::Play_command", config.cd_player.play_command, "cdplay %" ); insert_pair( "CdPlayer::Stop_command", config.cd_player.stop_command, "cdstop" ); insert_pair( "WavPlayer::Command", config.wav_player.command, "play %" ); insert_pair( "Mp3Player::Command", config.mp3_player.command, "mpg123 %" ); insert_pair( "CDDBConfig::Server", config.cddb_config.server, "freedb.freedb.org/~cddb/cddb.cgi" ); insert_pair( "CDDBConfig::Port", &config.cddb_config.port,80 ); insert_pair( "CDDBConfig::UseHttp", &config.cddb_config.use_http,1 ); insert_pair( "CDDBConfig::ProxyServer", config.cddb_config.proxy_server, "" ); insert_pair( "CDDBConfig::ProxyPort", &config.cddb_config.proxy_port,8080 ); insert_pair( "CDDBConfig::ConvertSpaces", &config.cddb_config.convert_spaces,0 ); insert_pair( "CDDBConfig::MakeDirectories", &config.cddb_config.make_directories,1 ); insert_pair( "CDDBConfig::CreateID3", &config.cddb_config.create_id3,1 ); insert_pair( "CDDBConfig::CreatePlaylist", &config.cddb_config.create_playlist,1 ); insert_pair( "CDDBConfig::AutoLookup", &config.cddb_config.auto_lookup,0 ); insert_pair( "CDDBConfig::FormatString", config.cddb_config.format_string, "%a - %s" ); insert_pair( "CDDBConfig::DirFormatString", config.cddb_config.dir_format_string, "%a - %v" ); sort(config_rw_data.begin(),config_rw_data.end()); } void ConfigRW::write_config(void) { using std::ofstream; using std::endl; #ifdef TEST_CONFIG_MAIN ofstream file ("test.ripperXrc"); #else ofstream file(construct_file_name(std::getenv("HOME"), ".ripperXrc")); #endif //check error, see if we should create, etc... file << "//\n"; file << "// ~/.ripperXrc\n"; file << "// This is the resource file for ripperX.\n"; file << "// If you edit this file with an editor, note\n"; file << "// that this file is overwritten each time ripperX is run.\n"; file << "//\n// You can configure everything in the config menu within ripperX.\n"; file << "//\n\n"; file << "//-v " << VERSION << "\n\n"; for (config_rw_type::iterator it=config_rw_data.begin(); it != config_rw_data.end(); ++it) { file << it->first << " = " << *it->second << std::endl; } } void ConfigRW::read_config(void) { using std::cout; using std::endl; using std::string; #ifdef TEST_CONFIG_MAIN std::ifstream file(".ripperXrc"); #else std::ifstream file(construct_file_name(getenv("HOME"), ".ripperXrc")); #endif //each non-comment line is label = value \n string label, eq, value; while (file >> label) { if (not label.compare(0, 2, "//")) { file.ignore(1024,'\n'); continue; } if (!(file >> eq) or eq.compare("=")) throw std::runtime_error("error parsing config file"); config_rw_type::iterator entry = lower_bound ( config_rw_data.begin(), config_rw_data.end(), std::make_pair(label, static_cast(0)) ); if ((entry == config_rw_data.end()) or (entry->first != label)) { throw std::runtime_error(string("Invalid config entry: ")+label); } else if (entry->first == label) { file >> *(entry->second); //TODO error check,... } } } #ifdef TEST_CONFIG_MAIN int main (void) { ConfigRW data; data.read_config(); data.write_config(); } #endif ripperX-2.8.0/src/config_rw.h000066400000000000000000000010151233655711300160720ustar00rootroot00000000000000 #ifndef CONFIG_RW_H #define CONFIG_RW_H #include "common.h" #include class ConfigRW { public: void read_config(void); void write_config(void); ConfigRW() { init_config_data(); } class ConfigRwInterface; private: typedef std::vector < std::pair > config_rw_type; config_rw_type config_rw_data; template void insert_pair(const char * label, T * dst, const U dft) ; void init_config_data(void); }; #endif ripperX-2.8.0/src/config_window_handler.c000066400000000000000000001525441233655711300204570ustar00rootroot00000000000000#include "config.h" #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #include #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #include #include #include #include "interface_common.h" #include "main_window_handler.h" #include "select_frame_handler.h" #include "dir_window_handler.h" #include "misc_utils.h" #include "config_rw.h" #include "config_window_handler.h" #include "gtk_cpp_workaround.h" #define DEFAULT_BIT_RATE 4 extern ConfigRW config_data; void cw_g_path_clicked(GtkWidget *widget, gpointer callback_data); int cw_general_handler(int ops, _main_data *main_data, GtkWidget *notebook); int cw_wav_handler(int ops, _main_data *main_data, GtkWidget *notebook); int cw_mp3_handler(int ops, _main_data *main_data, GtkWidget *notebook); int cw_players_handler(int ops, _main_data *main_data, GtkWidget *notebook); int cw_cddb_handler(int ops, _main_data *main_data, GtkWidget *notebook); void cw_ok_button_clicked(GtkWidget *widget, gpointer callback_data); void cw_cancel_button_clicked(GtkWidget *widget, gpointer callback_data); void cw_g_path_clicked(GtkWidget *widget, gpointer callback_data) { GtkWidget *entry; char *temp; entry = (GtkWidget *) callback_data; gtk_widget_set_sensitive(widget, FALSE); if((temp = dir_window_handler(WIDGET_CREATE, gtk_entry_get_text(GTK_ENTRY(entry)))) != NULL) { gtk_entry_set_text(GTK_ENTRY(entry), temp); } gtk_widget_set_sensitive(widget, TRUE); } int cw_general_handler(int ops, _main_data *main_data, GtkWidget *notebook) { static GtkWidget *main_frame; static GtkWidget *wav_path_entry, *mp3_path_entry; static GtkWidget *wav_file_name_format_entry, *mp3_file_name_format_entry; static GtkWidget *prepend_char_entry; static GtkWidget *make_mp3_from_existing_wav_check_button; static GtkWidget *ask_when_file_exists_check_button; static GtkWidget *keep_wav_check_button; char buf[ 2 ]; switch(ops) { case WIDGET_CREATE : { GtkWidget *frame, *vbox, *table, *hbox, *label, *label2, *button; main_frame = gtk_frame_new(_("General Configuration")); gtk_container_set_border_width(GTK_CONTAINER(main_frame), 10); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(main_frame), vbox); /* Frame for wav */ frame = gtk_frame_new(_("Wav file")); gtk_container_set_border_width(GTK_CONTAINER(frame), 2); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); table = gtk_table_new(2, 2, FALSE); gtk_container_set_border_width(GTK_CONTAINER(table), 3); gtk_container_add(GTK_CONTAINER(frame), table); label = gtk_label_new(_("File name format: ")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, 0, GTK_EXPAND | GTK_FILL, 0, 0); wav_file_name_format_entry = gtk_entry_new_with_max_length(MAX_FILE_NAME_LENGTH - 3); gtk_entry_set_text(GTK_ENTRY(wav_file_name_format_entry), config.wav_file_name_format); gtk_table_attach(GTK_TABLE(table), wav_file_name_format_entry, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); /* Create entry first to give its address as callback data */ wav_path_entry = gtk_entry_new_with_max_length(MAX_FILE_PATH_LENGTH - 3); button = gtk_button_new_with_label(_("Target Directory: ")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(cw_g_path_clicked), wav_path_entry); gtk_table_attach(GTK_TABLE(table), button, 0, 1, 1, 2, 0, GTK_EXPAND | GTK_FILL, 2, 2); gtk_entry_set_text(GTK_ENTRY(wav_path_entry), config.wav_path); gtk_table_attach(GTK_TABLE(table), wav_path_entry, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); /* Frame for mp3 */ frame = gtk_frame_new(_("MP3 file")); gtk_container_set_border_width(GTK_CONTAINER(frame), 2); gtk_box_pack_start(GTK_BOX(vbox), frame, FALSE, FALSE, 0); table = gtk_table_new(2, 2, FALSE); gtk_container_set_border_width(GTK_CONTAINER(table), 3); gtk_container_add(GTK_CONTAINER(frame), table); label = gtk_label_new(_("File name format: ")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, 0, GTK_EXPAND | GTK_FILL, 0, 0); mp3_file_name_format_entry = gtk_entry_new_with_max_length(MAX_FILE_NAME_LENGTH - 3); gtk_entry_set_text(GTK_ENTRY(mp3_file_name_format_entry), config.mp3_file_name_format); gtk_table_attach(GTK_TABLE(table), mp3_file_name_format_entry, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); mp3_path_entry = gtk_entry_new_with_max_length(MAX_FILE_PATH_LENGTH - 3); button = gtk_button_new_with_label(_("Target Directory: ")); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(cw_g_path_clicked), mp3_path_entry); gtk_table_attach(GTK_TABLE(table), button, 0, 1, 1, 2, 0, GTK_EXPAND | GTK_FILL, 2, 2); gtk_entry_set_text(GTK_ENTRY(mp3_path_entry), config.mp3_path); gtk_table_attach(GTK_TABLE(table), mp3_path_entry, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); /* Misc options */ hbox = gtk_hbox_new(FALSE, 3); gtk_container_set_border_width(GTK_CONTAINER(hbox), 5); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); label = gtk_label_new(_("Prepend character : ")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); buf[ 0 ] = config.prepend_char; buf[ 1 ] = '\0'; prepend_char_entry = gtk_entry_new_with_max_length(1); gtk_widget_set_size_request(prepend_char_entry, 16, 0); gtk_entry_set_text(GTK_ENTRY(prepend_char_entry), buf); gtk_box_pack_start(GTK_BOX(hbox), prepend_char_entry, FALSE, FALSE, 0); make_mp3_from_existing_wav_check_button = gtk_check_button_new_with_label(_("Make Mp3 from existing Wav file")); gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(make_mp3_from_existing_wav_check_button), config.make_mp3_from_existing_wav); gtk_box_pack_start(GTK_BOX(vbox), make_mp3_from_existing_wav_check_button, FALSE, FALSE, 0); ask_when_file_exists_check_button = gtk_check_button_new_with_label(_("Ask user when specified file exists")); gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(ask_when_file_exists_check_button), config.ask_when_file_exists); gtk_box_pack_start(GTK_BOX(vbox), ask_when_file_exists_check_button, FALSE, FALSE, 0); keep_wav_check_button = gtk_check_button_new_with_label(_("Keep wav files")); gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON(keep_wav_check_button), config.keep_wav); gtk_box_pack_start(GTK_BOX(vbox), keep_wav_check_button, FALSE, FALSE, 0); label = gtk_label_new(_("General")); label2 = gtk_label_new(_("General")); gtk_notebook_append_page_menu(GTK_NOTEBOOK(notebook), main_frame, label, label2); gtk_widget_show_all(main_frame); return 0; } case OP_OK : /* Wav */ if(strlen(gtk_entry_get_text( GTK_ENTRY(wav_file_name_format_entry))) == 0 || strlen(gtk_entry_get_text( GTK_ENTRY(wav_path_entry))) == 0 || strlen(gtk_entry_get_text( GTK_ENTRY(mp3_file_name_format_entry))) == 0 || strlen(gtk_entry_get_text( GTK_ENTRY(mp3_path_entry))) == 0 || strlen(gtk_entry_get_text( GTK_ENTRY(prepend_char_entry))) == 0) { err_handler(EMPTY_ENTRY_ERR, _("You need to fill every entry in general page")); return - 1; } strcpy(config.wav_file_name_format, gtk_entry_get_text(GTK_ENTRY(wav_file_name_format_entry))); strcpy(config.wav_path, gtk_entry_get_text(GTK_ENTRY(wav_path_entry))); strcpy(config.mp3_file_name_format, gtk_entry_get_text(GTK_ENTRY(mp3_file_name_format_entry))); strcpy(config.mp3_path, gtk_entry_get_text(GTK_ENTRY(mp3_path_entry))); strcpy(buf, gtk_entry_get_text(GTK_ENTRY(prepend_char_entry))); config.prepend_char = buf[ 0 ]; config.make_mp3_from_existing_wav = GTK_TOGGLE_BUTTON(make_mp3_from_existing_wav_check_button) ->active ? TRUE : FALSE; config.ask_when_file_exists = GTK_TOGGLE_BUTTON(ask_when_file_exists_check_button) ->active ? TRUE : FALSE; config.auto_append_extension = TRUE; config.keep_wav = GTK_TOGGLE_BUTTON(keep_wav_check_button) ->active ? TRUE : FALSE; return 0; } /* Just to avoid warning */ return 0; } int cw_wav_handler(int ops, _main_data *main_data, GtkWidget *notebook) { static GtkWidget *main_frame, *ripper_menu, *menu; static GtkWidget *extra_options_entry; static int num_buttons, option_length, num_plugins; static int extra_options_offset, options_offset; static struct { GtkWidget *button; const char *arg; const char *text; } button[] = { { NULL, "-s ", N_("Force search for drive (ignore /dev/cdrom)") }, { NULL, "-Z ", N_("Disable paranoia (will act like cdda)") }, { NULL, "-Y ", N_("Disable extra paranoia") }, { NULL, "-X ", N_("Disable scratch detection") }, { NULL, "-W ", N_("Disable scratch repair") }, }; static struct { GtkWidget *menu_item; const char *ripper; const char *plugin; const char *description; } plugins[] = { { NULL, "cdparanoia", "ripperX_plugin-cdparanoia", "cdparanoia III" } }; switch(ops) { case WIDGET_CREATE : { GtkWidget *vbox, *hbox, *label, *label2; int i, temp; main_frame = gtk_frame_new(_("Wav Configuration")); gtk_container_set_border_width(GTK_CONTAINER(main_frame), 10); vbox = gtk_vbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); gtk_container_add(GTK_CONTAINER(main_frame), vbox); num_buttons = sizeof(button) / sizeof(button[ 0 ]); num_plugins = sizeof(plugins) / sizeof(plugins[ 0 ]); options_offset = 11; option_length = strlen(button[ 0 ].arg); extra_options_offset = options_offset + option_length * num_buttons; /* Plugin selector menu */ label = gtk_label_new(_("Ripper plugin")); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); menu = gtk_option_menu_new(); ripper_menu = gtk_menu_new(); for(i = 0; i < num_plugins; i++) { plugins[ i ].menu_item = gtk_menu_item_new_with_label(plugins[ i ].description); gtk_menu_append(GTK_MENU(ripper_menu), plugins[ i ].menu_item); } /* set menu to current plugin */ for(i = 0; i < num_plugins; i++) if(!strcmp(config.encoder.plugin, plugins[ i ].plugin)) { gtk_menu_set_active(GTK_MENU(ripper_menu), i); } gtk_option_menu_set_menu(GTK_OPTION_MENU(menu), ripper_menu); gtk_box_pack_start(GTK_BOX(vbox), menu, FALSE, FALSE, 0); /* options */ for(i = 0; i < num_buttons; i++) { temp = config.ripper.ripper[ options_offset + option_length * i + 1 ] == button[ i ].arg[ 1 ] ? TRUE : FALSE; button[ i ].button = gtk_check_button_new_with_label(button[ i ].text); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button[ i ].button), temp); gtk_box_pack_start(GTK_BOX(vbox), button[ i ].button, FALSE, FALSE, 0); } hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); label = gtk_label_new(_("Extra Options: ")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); extra_options_entry = gtk_entry_new_with_max_length(MAX_OPTIONS_LENGTH - 20); gtk_entry_set_text(GTK_ENTRY(extra_options_entry), config.ripper.ripper + extra_options_offset); gtk_box_pack_start(GTK_BOX(hbox), extra_options_entry, FALSE, FALSE, 0); label = gtk_label_new(" Wav "); label2 = gtk_label_new(" Wav "); gtk_notebook_append_page_menu(GTK_NOTEBOOK(notebook), main_frame, label, label2); gtk_widget_show_all(main_frame); return 0; } case OP_OK : { int i, temp; GtkWidget *item; memset(config.ripper.ripper, 0, sizeof(config.ripper.ripper)); item = gtk_menu_get_active(GTK_MENU(ripper_menu)); temp = 0; for(i = 0; i < num_plugins; i++) { if(item == plugins[ i ].menu_item) { temp = i; } } memset(config.ripper.ripper, ' ', options_offset); strcpy(config.ripper.ripper, plugins[ temp ].ripper); config.ripper.ripper[ strlen(plugins[ temp ].ripper)] = ' '; strcpy(config.ripper.plugin, plugins[ temp ].plugin); for(i = 0; i < num_buttons; i++) { if(GTK_TOGGLE_BUTTON(button[ i ].button) ->active) sprintf(config.ripper.ripper + options_offset + option_length * i, "%s", button[ i ].arg); else { sprintf(config.ripper.ripper + options_offset + option_length * i, " "); } } strcpy(config.ripper.ripper + extra_options_offset, gtk_entry_get_text(GTK_ENTRY(extra_options_entry))); return 0; } } /* Just to avoid warning */ return 0; } int cw_mp3_handler(int ops, _main_data *main_data, GtkWidget *notebook) { static GtkWidget *main_frame; static GtkWidget *extra_options_entry, *encoder_menu, *menu; static int num_bitrates, num_plugins; static GtkWidget *use_varbitrate_ckbx, *use_high_qual_ckbx, *use_crc_ckbx; static GtkObject *vbr_qual_adj; static GtkObject *pri_adj; static GtkWidget *vbr_qual_scale; static GtkWidget *pri_scale; static struct { GtkWidget *menu_item; CommonEncoderType encoding_type; const char *encoder; const char *plugin; const char *description; const char *bitrate_op; const char *varbitrate_op; const char *vbr_qual_op; const char *high_qual_op; const char *crc_op; } plugins[] = { { NULL, MP2, "toolame", "ripperX_plugin-toolame", "Toolame layer 2 encoder", "-b", "", "-v", "", "-e"}, { NULL, MP3, "encode ", "ripperX_plugin-encode", "ISO Encoder v2", "-b", "", "", "", "-e"}, { NULL, MP3, "8hz-mp3 ", "ripperX_plugin-8hz-mp3", "8hz-mp3 Encoder", "-b", "", "", "", ""}, { NULL, MP3, "lame", "ripperX_plugin-lame", "Lame MP3 Encoder", "-b", "--nohist -v", "-V", "-h", "-p"}, { NULL, MP3, "gogo", "ripperX_plugin-gogo", "GoGo MP3 Encoder", "-b", "-v 4", "", "", ""}, { NULL, MP3, "bladeenc", "ripperX_plugin-bladeenc", "BladeEnc MP3 Encoder", "-br", "", "", "", "-crc"}, { NULL, MP3, "xingmp3enc", "ripperX_plugin-xingmp3enc", "Xingmp3enc MP3 Encoder", "-B", "", "", "", ""}, { NULL, MP3, "l3enc", "ripperX_plugin-l3enc", "FHG MP3 Encoder (l3enc v2.72)", "-br", "", "", "-hq", "-crc"}, { NULL, MP3, "mp3enc", "ripperX_plugin-mp3enc", "FHG MP3 Encoder (mp3enc 3.1)", "-br", "", "", "-qual 9", "-crc"}, { NULL, OGG, "oggenc", "ripperX_plugin-oggenc", "OggVorbis encoder", "-b", "", "", "", "" }, { NULL, FLAC, "flac", "ripperX_plugin-flac", "FLAC encoder", "", "", "", "", "" }, { NULL, MUSE, "mppenc", "ripperX_plugin-musepack", "Musepack Encoder", "", "", "--quality 5", "--quality 8", "" } }; static struct { GtkWidget *button; int bitrate; } bitrate[] = { { NULL, 32 }, { NULL, 40 }, { NULL, 48 }, { NULL, 56 }, { NULL, 64 }, { NULL, 80 }, { NULL, 96 }, { NULL, 112 }, { NULL, 128 }, /* Default */ { NULL, 160 }, { NULL, 192 }, { NULL, 224 }, { NULL, 256 }, { NULL, 320 } }; switch(ops) { case WIDGET_CREATE : { GtkWidget *frame, *table, *vbox, *vbox2, *vbox3, *hbox, *label, *label2; int i, match; char buf[ 5 ]; main_frame = gtk_frame_new(_("Mp3 Configuration")); gtk_container_set_border_width(GTK_CONTAINER(main_frame), 10); num_bitrates = sizeof(bitrate) / sizeof(bitrate[ 0 ]); num_plugins = sizeof(plugins) / sizeof(plugins[ 0 ]); vbox = gtk_vbox_new(FALSE, 3); gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); gtk_container_add(GTK_CONTAINER(main_frame), vbox); /* Plugin selector menu */ label = gtk_label_new(_("Encoder plugin")); gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0); menu = gtk_option_menu_new(); encoder_menu = gtk_menu_new(); for(i = 0; i < num_plugins; i++) { plugins[ i ].menu_item = gtk_menu_item_new_with_label(plugins[ i ].description); gtk_menu_append(GTK_MENU(encoder_menu), plugins[ i ].menu_item); if(!is_found(plugins[i].encoder)) { gtk_widget_set_sensitive(GTK_WIDGET(plugins[i].menu_item), 0); } } /* set menu to current plugin */ for(i = 0; i < num_plugins; i++) if(!strcmp(config.encoder.plugin, plugins[ i ].plugin)) { gtk_menu_set_active(GTK_MENU(encoder_menu), i); } gtk_option_menu_set_menu(GTK_OPTION_MENU(menu), encoder_menu); gtk_box_pack_start(GTK_BOX(vbox), menu, TRUE, TRUE, 0); /* Frame for bitrate */ frame = gtk_frame_new(_("BitRate, Default 128kbits")); gtk_container_set_border_width(GTK_CONTAINER(frame), 2); gtk_box_pack_start(GTK_BOX(vbox), frame, TRUE, TRUE, 0); table = gtk_table_new(3, (gint) ceil((float) num_bitrates / 3), FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 0); gtk_container_set_border_width(GTK_CONTAINER(table), 3); gtk_container_add(GTK_CONTAINER(frame), table); /* First radio button */ snprintf(buf, sizeof(buf), "%3dk", bitrate[ 0 ].bitrate); bitrate[ 0 ].button = gtk_radio_button_new_with_label(NULL, buf); gtk_widget_set_size_request(bitrate[ 0 ].button, 0, 16); gtk_table_attach_defaults(GTK_TABLE(table), bitrate[ 0 ].button, 0, 1, 0, 1); /* And the rest */ for(i = 1; i < num_bitrates; i++) { snprintf(buf, sizeof(buf), "%3dk", bitrate[ i ].bitrate); bitrate[ i ].button = gtk_radio_button_new_with_label( gtk_radio_button_get_group(GTK_RADIO_BUTTON(bitrate[ 0 ].button)), buf); gtk_widget_set_size_request(bitrate[ i ].button, 0, 16); gtk_table_attach_defaults(GTK_TABLE(table), bitrate[ i ].button, i % 3, i % 3 + 1, i / 3, i / 3 + 1); } /* Find current bitrate */ for(i = 0, match = -1; i < num_bitrates && match == -1; i++) { if(config.encoder.bitrate == bitrate[ i ].bitrate) { match = i; } } if(match == -1) { match = DEFAULT_BIT_RATE; } gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(bitrate[ match ].button), TRUE); /* Var Bitrate */ use_varbitrate_ckbx = gtk_check_button_new_with_label(_("Use variable bitrate (VBR)")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(use_varbitrate_ckbx), config.encoder.use_varbitrate); gtk_container_add(GTK_CONTAINER(vbox), use_varbitrate_ckbx); /* VBR quality */ frame = gtk_frame_new(_("VBR quality (if available)")); gtk_container_add(GTK_CONTAINER(vbox), frame); vbox2 = gtk_vbox_new(FALSE, 3); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 5); gtk_container_add(GTK_CONTAINER(frame), vbox2); vbr_qual_adj = gtk_adjustment_new((gfloat) CLAMP(config.encoder.vbr_qual, 0, 9), 0.0, 9.0, 1.0, 1.0, 0.0); vbr_qual_scale = gtk_hscale_new(GTK_ADJUSTMENT(vbr_qual_adj)); gtk_scale_set_digits(GTK_SCALE(vbr_qual_scale), 0); gtk_container_add(GTK_CONTAINER(vbox2), vbr_qual_scale); label = gtk_label_new(_("0=high quality and bigger files, 9=smaller files")); gtk_container_add(GTK_CONTAINER(vbox2), label); /* encoder priority */ frame = gtk_frame_new(_("Encoder Priority")); gtk_container_add(GTK_CONTAINER(vbox), frame); vbox3 = gtk_vbox_new(FALSE, 3); gtk_container_set_border_width(GTK_CONTAINER(vbox3), 5); gtk_container_add(GTK_CONTAINER(frame), vbox3); pri_adj = gtk_adjustment_new((gfloat) CLAMP(config.encoder.priority, MAX_NICE_LEVEL, MIN_NICE_LEVEL), 0.0, 19.0, 1.0, 1.0, 0.0); pri_scale = gtk_hscale_new(GTK_ADJUSTMENT(pri_adj)); gtk_scale_set_digits(GTK_SCALE(pri_scale), 0); gtk_container_add(GTK_CONTAINER(vbox3), pri_scale); label = gtk_label_new(_("0=high priority, 19=system is responsive while encoding")); gtk_container_add(GTK_CONTAINER(vbox3), label); /* High Quality */ use_high_qual_ckbx = gtk_check_button_new_with_label(_("High quality mode")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(use_high_qual_ckbx), config.encoder.use_high_qual); gtk_container_add(GTK_CONTAINER(vbox), use_high_qual_ckbx); /* CRC */ use_crc_ckbx = gtk_check_button_new_with_label(_("Include CRC error protection")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(use_crc_ckbx), config.encoder.use_crc); gtk_container_add(GTK_CONTAINER(vbox), use_crc_ckbx); hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 8); /* Extra options entry */ label = gtk_label_new(_("Extra Options: ")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); extra_options_entry = gtk_entry_new_with_max_length(MAX_OPTIONS_LENGTH - 20); gtk_entry_set_text(GTK_ENTRY(extra_options_entry), config.encoder.extra_options); gtk_box_pack_start(GTK_BOX(hbox), extra_options_entry, TRUE, TRUE, 0); label = gtk_label_new(" Mp3 "); label2 = gtk_label_new(" Mp3 "); gtk_notebook_append_page_menu(GTK_NOTEBOOK(notebook), main_frame, label, label2); gtk_widget_show_all(main_frame); return 0; } case OP_OK : { int i, temp, cur_plugin, br; GtkWidget *item; char bitrate_switch [ 12 ]; char vbr_qual_switch [ 5 ]; memset(config.encoder.encoder, 0, sizeof(config.encoder.encoder)); item = gtk_menu_get_active(GTK_MENU(encoder_menu)); cur_plugin = 0; for(i = 0; i < num_plugins; i++) { if(item == plugins[ i ].menu_item) { cur_plugin = i; } } strcpy(config.encoder.encoder, plugins[ cur_plugin ].encoder); strcpy(config.encoder.plugin, plugins[ cur_plugin ].plugin); config.encoder.type = plugins[ cur_plugin ].encoding_type; if(GTK_TOGGLE_BUTTON(use_varbitrate_ckbx) ->active) { config.encoder.use_varbitrate = 1; } else { config.encoder.use_varbitrate = 0; } config.encoder.vbr_qual = CLAMP((int) GTK_ADJUSTMENT(vbr_qual_adj)->value, 0, 9); if(GTK_TOGGLE_BUTTON(use_high_qual_ckbx) ->active) { config.encoder.use_high_qual = 1; } else { config.encoder.use_high_qual = 0; } if(GTK_TOGGLE_BUTTON(use_crc_ckbx) ->active) { config.encoder.use_crc = 1; } else { config.encoder.use_crc = 0; } for(temp = -1, i = 0; i < num_bitrates && temp < 0; i++) { if(GTK_TOGGLE_BUTTON(bitrate[ i ].button) ->active) { temp = i; } } if(temp == -1) { temp = DEFAULT_BIT_RATE; } config.encoder.bitrate = bitrate[ temp ].bitrate; strncpy(config.encoder.extra_options, gtk_entry_get_text(GTK_ENTRY(extra_options_entry)), MAX_OPTIONS_LENGTH); /* support special cases */ br = config.encoder.bitrate; if(!strcmp(config.encoder.encoder, "l3enc")) { if(br == 160) { br = 128; } if(br == 320) { br = 256; } br *= 1000; snprintf(bitrate_switch , sizeof(bitrate_switch), "%s %d", plugins[ cur_plugin ].bitrate_op, br); } else if(!strcmp(config.encoder.encoder, "mp3enc")) { br *= 1000; snprintf(bitrate_switch , sizeof(bitrate_switch), "%s %d", plugins[ cur_plugin ].bitrate_op, br); } else if(!strcmp(config.encoder.encoder, "xingmp3enc")) { if(config.encoder.use_varbitrate) { switch(br) { case 112: br = 30; break; case 128: br = 50; break; case 160: br = 75; break; case 192: br = 100; break; case 256: br = 125; break; case 320: br = 150; break; default: br = 1; break; } snprintf(bitrate_switch , sizeof(bitrate_switch), "%s %d", "-V", br); } else { snprintf(bitrate_switch , sizeof(bitrate_switch), "%s %d", "-B", br); } } else { snprintf(bitrate_switch , sizeof(bitrate_switch), "%s %d", plugins[ cur_plugin ].bitrate_op, br); } if(plugins[cur_plugin].vbr_qual_op && strlen(plugins[cur_plugin].vbr_qual_op)) { snprintf(vbr_qual_switch, 5, "%s %d", plugins[cur_plugin].vbr_qual_op, config.encoder.vbr_qual); } else { sprintf(vbr_qual_switch, ""); } if(!strcmp(config.encoder.encoder, "flac")) { snprintf(config.encoder.full_command, MAX_COMMAND_LENGTH, "%s %s", config.encoder.encoder, config.encoder.extra_options); } else if(!strcmp(config.encoder.encoder, "mppenc")) { if(config.encoder.use_high_qual) snprintf(config.encoder.full_command, MAX_COMMAND_LENGTH, "%s --overwrite %s %s", config.encoder.encoder, plugins[ cur_plugin ].high_qual_op, config.encoder.extra_options); else snprintf(config.encoder.full_command, MAX_COMMAND_LENGTH, "%s --overwrite %s %s", config.encoder.encoder, plugins[ cur_plugin ].vbr_qual_op, config.encoder.extra_options); } else { snprintf(config.encoder.full_command, MAX_COMMAND_LENGTH, "%s %s %s %s %s %s %s", config.encoder.encoder, bitrate_switch , config.encoder.use_varbitrate ? plugins[ cur_plugin ].varbitrate_op : "", config.encoder.use_high_qual ? plugins[ cur_plugin ].high_qual_op : "", config.encoder.use_crc ? plugins[ cur_plugin ].crc_op : "", config.encoder.use_varbitrate ? vbr_qual_switch : "", config.encoder.extra_options); } return 0; } } /* Just to avoid warning */ return 0; } int cw_players_handler(int ops, _main_data *main_data, GtkWidget *notebook) { static GtkWidget *main_frame; static GtkWidget *cd_play_entry, *cd_stop_entry; static GtkWidget *wav_entry, *mp3_entry; switch(ops) { case WIDGET_CREATE : { GtkWidget *table, *label, *label2; main_frame = gtk_frame_new(_("Players")); gtk_container_set_border_width(GTK_CONTAINER(main_frame), 10); table = gtk_table_new(4, 2, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 5); gtk_container_set_border_width(GTK_CONTAINER(table), 3); gtk_container_add(GTK_CONTAINER(main_frame), table); label = gtk_label_new(_("CD play command: ")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, 0, 0, 0, 0); cd_play_entry = gtk_entry_new_with_max_length(MAX_COMMAND_LENGTH - 2); gtk_entry_set_text(GTK_ENTRY(cd_play_entry), config.cd_player.play_command); gtk_table_attach(GTK_TABLE(table), cd_play_entry, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 0, 0); label = gtk_label_new(_("CD stop command: ")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, 0, 0, 0, 0); cd_stop_entry = gtk_entry_new_with_max_length(MAX_COMMAND_LENGTH - 2); gtk_entry_set_text(GTK_ENTRY(cd_stop_entry), config.cd_player.stop_command); gtk_table_attach(GTK_TABLE(table), cd_stop_entry, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0); label = gtk_label_new(_("Wav play command: ")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3, 0, 0, 0, 0); wav_entry = gtk_entry_new_with_max_length(MAX_COMMAND_LENGTH - 2); gtk_entry_set_text(GTK_ENTRY(wav_entry), config.wav_player.command); gtk_table_attach(GTK_TABLE(table), wav_entry, 1, 2, 2, 3, GTK_EXPAND | GTK_FILL, 0, 0, 0); label = gtk_label_new(_("Mp3 play command: ")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 3, 4, 0, 0, 0, 0); mp3_entry = gtk_entry_new_with_max_length(MAX_COMMAND_LENGTH - 2); gtk_entry_set_text(GTK_ENTRY(mp3_entry), config.mp3_player.command); gtk_table_attach(GTK_TABLE(table), mp3_entry, 1, 2, 3, 4, GTK_EXPAND | GTK_FILL, 0, 0, 0); label = gtk_label_new(_("Players")); label2 = gtk_label_new(_("Players")); gtk_notebook_append_page_menu(GTK_NOTEBOOK(notebook), main_frame, label, label2); gtk_widget_show_all(main_frame); return 0; } case OP_OK : { if(strlen(gtk_entry_get_text( GTK_ENTRY(cd_play_entry))) == 0 || strlen(gtk_entry_get_text( GTK_ENTRY(cd_stop_entry))) == 0 || strlen(gtk_entry_get_text( GTK_ENTRY(wav_entry))) == 0 || strlen(gtk_entry_get_text( GTK_ENTRY(mp3_entry))) == 0) { err_handler(EMPTY_ENTRY_ERR, _("You need to fill every entry in players page")); return - 1; } strcpy(config.cd_player.play_command, gtk_entry_get_text(GTK_ENTRY(cd_play_entry))); strcpy(config.cd_player.stop_command, gtk_entry_get_text(GTK_ENTRY(cd_stop_entry))); strcpy(config.wav_player.command, gtk_entry_get_text(GTK_ENTRY(wav_entry))); strcpy(config.mp3_player.command, gtk_entry_get_text(GTK_ENTRY(mp3_entry))); return 0; } } /* Just to avoid warning */ return - 1; } int cw_files_handler(int ops, _main_data *main_data, GtkWidget *notebook) { static GtkWidget *main_frame; static GtkWidget *format_string_entry, *dir_format_string_entry; static GtkWidget *convert_spaces_ckbx, *make_directories_ckbx, *create_id3_ckbx, *create_playlist_ckbx; static GtkWidget *table, *vbox, *hbox; switch(ops) { case WIDGET_CREATE : { GtkWidget *label, *label2; main_frame = gtk_frame_new(_("File Configuration")); gtk_container_set_border_width(GTK_CONTAINER(main_frame), 10); vbox = gtk_vbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); /* convert spaces */ convert_spaces_ckbx = gtk_check_button_new_with_label(_("Convert spaces to underscores")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(convert_spaces_ckbx), config.cddb_config.convert_spaces); gtk_box_pack_start(GTK_BOX(vbox), convert_spaces_ckbx, FALSE, FALSE, 0); /* make directories */ make_directories_ckbx = gtk_check_button_new_with_label(_("Create album subdirectory for each CD")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(make_directories_ckbx), config.cddb_config.make_directories); gtk_box_pack_start(GTK_BOX(vbox), make_directories_ckbx, FALSE, FALSE, 0); /* Create ID3 tag*/ create_id3_ckbx = gtk_check_button_new_with_label(_("Create ID3 tag")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(create_id3_ckbx), config.cddb_config.create_id3); gtk_box_pack_start(GTK_BOX(vbox), create_id3_ckbx, FALSE, FALSE, 0); /* Create m3u playlist file */ create_playlist_ckbx = gtk_check_button_new_with_label(_("Create m3u playlist")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(create_playlist_ckbx), config.cddb_config.create_playlist); gtk_box_pack_start(GTK_BOX(vbox), create_playlist_ckbx, FALSE, FALSE, 0); /* format string entry */ hbox = gtk_hbox_new(FALSE, 3); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); label = gtk_label_new(_("Filename format string: ")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); format_string_entry = gtk_entry_new_with_max_length(50); gtk_entry_set_text(GTK_ENTRY(format_string_entry), config.cddb_config.format_string); gtk_box_pack_start(GTK_BOX(hbox), format_string_entry, FALSE, FALSE, 0); /* directory format string entry */ hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 8); label = gtk_label_new(_("Directory format string: ")); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); dir_format_string_entry = gtk_entry_new_with_max_length(50); gtk_entry_set_text(GTK_ENTRY(dir_format_string_entry), config.cddb_config.dir_format_string); gtk_box_pack_start(GTK_BOX(hbox), dir_format_string_entry, FALSE, FALSE, 0); /* format string help */ table = gtk_table_new(3, 2, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 5); gtk_container_set_border_width(GTK_CONTAINER(table), 3); gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0); label = gtk_label_new(_("%a = Artist")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_EXPAND | GTK_FILL, 0, 0, 0); label = gtk_label_new(_("%v = Album")); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 0, 0); label = gtk_label_new(_("%# = Track no.")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0); label = gtk_label_new(_("%s = Song title")); gtk_table_attach(GTK_TABLE(table), label, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0); label = gtk_label_new(_("%y = Year")); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3, GTK_EXPAND | GTK_FILL, 0, 0, 0); gtk_container_add(GTK_CONTAINER(main_frame), vbox); label = gtk_label_new(_("Files")); label2 = gtk_label_new(_("Files")); gtk_notebook_append_page_menu(GTK_NOTEBOOK(notebook), main_frame, label, label2); gtk_widget_show_all(main_frame); return 0; } case OP_OK : if(GTK_TOGGLE_BUTTON(convert_spaces_ckbx) ->active) { config.cddb_config.convert_spaces = 1; } else { config.cddb_config.convert_spaces = 0; } if(GTK_TOGGLE_BUTTON(make_directories_ckbx) ->active) { config.cddb_config.make_directories = 1; } else { config.cddb_config.make_directories = 0; } if(GTK_TOGGLE_BUTTON(create_id3_ckbx) ->active) { config.cddb_config.create_id3 = 1; } else { config.cddb_config.create_id3 = 0; } if(GTK_TOGGLE_BUTTON(create_playlist_ckbx) ->active) { config.cddb_config.create_playlist = 1; } else { config.cddb_config.create_playlist = 0; } strcpy(config.cddb_config.format_string, gtk_entry_get_text(GTK_ENTRY(format_string_entry))); strcpy(config.cddb_config.dir_format_string, gtk_entry_get_text(GTK_ENTRY(dir_format_string_entry))); return 0; } /* Just to avoid warning */ return - 1; } int cw_cddb_handler(int ops, _main_data *main_data, GtkWidget *notebook) { static GtkWidget *main_frame; static GtkWidget *cddb_server_entry, *cddb_port_entry, *cddb_path_entry; static GtkWidget *use_http_ckbx, *cddb_proxy_server_entry, *cddb_proxy_port_entry; static GtkWidget *auto_lookup_ckbx; static GtkWidget *table, *vbox, *hbox; char *cddb_port_num, *cddb_proxy_port_num; switch(ops) { case WIDGET_CREATE : { GtkWidget *label, *label2; main_frame = gtk_frame_new(_("CDDB Configuration")); gtk_container_set_border_width(GTK_CONTAINER(main_frame), 10); vbox = gtk_vbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); /* cddb server config table */ table = gtk_table_new(6, 2, FALSE); gtk_table_set_row_spacings(GTK_TABLE(table), 5); gtk_container_set_border_width(GTK_CONTAINER(table), 3); gtk_box_pack_start(GTK_BOX(vbox), table, FALSE, FALSE, 0); /* URL box */ label = gtk_label_new(_("URL: ")); cddb_server_entry = gtk_entry_new_with_max_length(MAX_COMMAND_LENGTH - 2); gtk_entry_set_text(GTK_ENTRY(cddb_server_entry), config.cddb_config.server); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, 0, 0, 0, 0); gtk_table_attach(GTK_TABLE(table), cddb_server_entry, 1, 2, 0, 1, GTK_EXPAND | GTK_FILL, 0, 0, 0); /* port box */ label = gtk_label_new(_("Port: ")); cddb_port_entry = gtk_entry_new_with_max_length(5); cddb_port_num = int2str(config.cddb_config.port); gtk_entry_set_text(GTK_ENTRY(cddb_port_entry), cddb_port_num); free(cddb_port_num); cddb_port_num = NULL; gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, 0, 0, 0, 0); gtk_table_attach(GTK_TABLE(table), cddb_port_entry, 1, 2, 1, 2, GTK_EXPAND | GTK_FILL, 0, 0, 0); /* use http */ use_http_ckbx = gtk_check_button_new_with_label(_("Use HTTP")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(use_http_ckbx), config.cddb_config.use_http); gtk_table_attach(GTK_TABLE(table), use_http_ckbx, 0, 2, 2, 3, 0, 0, 0, 0); /* Proxy URL box */ label = gtk_label_new(_("Proxy Server: ")); cddb_proxy_server_entry = gtk_entry_new_with_max_length(MAX_COMMAND_LENGTH - 2); gtk_entry_set_text(GTK_ENTRY(cddb_proxy_server_entry), config.cddb_config.proxy_server); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 3, 4, 0, 0, 0, 0); gtk_table_attach(GTK_TABLE(table), cddb_proxy_server_entry, 1, 2, 3, 4, GTK_EXPAND | GTK_FILL, 0, 0, 0); /* proxy port box */ label = gtk_label_new(_("Proxy Port: ")); cddb_proxy_port_entry = gtk_entry_new_with_max_length(5); cddb_proxy_port_num = int2str(config.cddb_config.proxy_port); gtk_entry_set_text(GTK_ENTRY(cddb_proxy_port_entry), cddb_proxy_port_num); free(cddb_proxy_port_num); cddb_proxy_port_num = NULL; gtk_table_attach(GTK_TABLE(table), label, 0, 1, 4, 5, 0, 0, 0, 0); gtk_table_attach(GTK_TABLE(table), cddb_proxy_port_entry, 1, 2, 4, 5, GTK_EXPAND | GTK_FILL, 0, 0, 0); /* end cddb server config table */ /* CDDB Path*/ hbox = gtk_hbox_new(FALSE, 3); label = gtk_label_new(_("CDDB Cache path: ")); gtk_widget_show(label); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); cddb_path_entry = gtk_entry_new_with_max_length(MAX_FILE_NAME_LENGTH - 3); gtk_entry_set_text(GTK_ENTRY(cddb_path_entry), config.cddb_path); gtk_widget_show(cddb_path_entry); gtk_box_pack_start(GTK_BOX(hbox), cddb_path_entry, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); /* CDDB Autolookup */ hbox = gtk_hbox_new(FALSE, 3); auto_lookup_ckbx = gtk_check_button_new_with_label(_("Automatic lookup on startup")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(auto_lookup_ckbx), config.cddb_config.auto_lookup); gtk_widget_show(auto_lookup_ckbx); gtk_box_pack_start(GTK_BOX(hbox), auto_lookup_ckbx, FALSE, FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); gtk_container_add(GTK_CONTAINER(main_frame), vbox); label = gtk_label_new("CDDB"); label2 = gtk_label_new("CDDB"); gtk_notebook_append_page_menu(GTK_NOTEBOOK(notebook), main_frame, label, label2); gtk_widget_show_all(main_frame); return 0; } case OP_OK : if(strlen(gtk_entry_get_text(GTK_ENTRY(cddb_server_entry))) == 0 || strlen(gtk_entry_get_text(GTK_ENTRY(cddb_port_entry))) == 0) { err_handler(EMPTY_ENTRY_ERR, _("You need to specify a server and a port")); return - 1; } strcpy(config.cddb_config.server, gtk_entry_get_text(GTK_ENTRY(cddb_server_entry))); config.cddb_config.port = atoi(gtk_entry_get_text(GTK_ENTRY(cddb_port_entry))); strcpy(config.cddb_config.proxy_server, gtk_entry_get_text(GTK_ENTRY(cddb_proxy_server_entry))); config.cddb_config.proxy_port = atoi(gtk_entry_get_text(GTK_ENTRY(cddb_proxy_port_entry))); strcpy(config.cddb_path, gtk_entry_get_text(GTK_ENTRY(cddb_path_entry))); if(GTK_TOGGLE_BUTTON(use_http_ckbx) ->active) { config.cddb_config.use_http = 1; } else { config.cddb_config.use_http = 0; } if(GTK_TOGGLE_BUTTON(auto_lookup_ckbx) ->active) { config.cddb_config.auto_lookup = 1; } else { config.cddb_config.auto_lookup = 0; } return 0; } /* Just to avoid warning */ return - 1; } void cw_ok_button_clicked(GtkWidget *widget, gpointer callback_data) { config_window_handler(OP_OK, NULL); } void cw_cancel_button_clicked(GtkWidget *widget, gpointer callback_data) { config_window_handler(OP_CANCEL, NULL); } void config_window_handler(enum InterfaceCommon ops, _main_data *main_data) { static GtkWidget *window = NULL; static _main_data *saved_main_data; switch(ops) { case WIDGET_CREATE : { GtkWidget *vbox, *bbox, *notebook, *separator, *button; saved_main_data = main_data; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(cw_cancel_button_clicked), NULL); gtk_window_set_title(GTK_WINDOW(window), _("Configuration")); gtk_container_set_border_width(GTK_CONTAINER(window), 0); vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(window), vbox); notebook = gtk_notebook_new(); gtk_notebook_set_tab_pos(GTK_NOTEBOOK(notebook), GTK_POS_TOP); gtk_box_pack_start(GTK_BOX(vbox), notebook, TRUE, TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(notebook), 10); gtk_widget_realize(window); cw_general_handler(WIDGET_CREATE, main_data, notebook); cw_wav_handler(WIDGET_CREATE, main_data, notebook); cw_mp3_handler(WIDGET_CREATE, main_data, notebook); cw_players_handler(WIDGET_CREATE, main_data, notebook); cw_cddb_handler(WIDGET_CREATE, main_data, notebook); cw_files_handler(WIDGET_CREATE, main_data, notebook); separator = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), separator, FALSE, TRUE, 10); bbox = gtk_hbox_new(TRUE, 5); gtk_container_set_border_width(GTK_CONTAINER(bbox), 10); gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, TRUE, 0); button = gtk_button_new_from_stock(GTK_STOCK_OK); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(cw_ok_button_clicked), NULL); gtk_box_pack_end(GTK_BOX(bbox), button, TRUE, TRUE, 0); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(cw_cancel_button_clicked), NULL); gtk_box_pack_end(GTK_BOX(bbox), button, TRUE, TRUE, 0); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); gtk_widget_grab_default(button); gtk_widget_show_all(window); return; } case OP_OK : main_data = saved_main_data; if(cw_general_handler(OP_OK, main_data, NULL) < 0 || cw_wav_handler(OP_OK, main_data, NULL) < 0 || cw_mp3_handler(OP_OK, main_data, NULL) < 0 || cw_players_handler(OP_OK, main_data, NULL) < 0 || cw_cddb_handler(OP_OK, main_data, NULL) < 0 || cw_files_handler(OP_OK, main_data, NULL) < 0) { return; } gtk_widget_destroy(window); main_window_handler(MW_MODE_SELECT, 0, main_data); #ifdef DEBUG printf("==Debug Info==\n"); printf("wav path : <%s>, mp3 path : <%s>\n", config.wav_path, config.mp3_path); printf("wav format : <%s>, mp3 format : <%s>\n", config.wav_file_name_format, config.mp3_file_name_format); printf("prepend char : %c, make mp3 from existing wav : %d\n", config.prepend_char, config.make_mp3_from_existing_wav); printf("--ripper --\n"); printf("file : <%s>\nplugin : <%s>\n", config.ripper.ripper, config.ripper.plugin); printf("--encoder --\n"); printf("file : <%s>\nplugin : <%s>\n", config.encoder.encoder, config.encoder.plugin); printf("full command : <%s>\n", config.encoder.full_command); printf("--Cd player --\n"); printf("Play : <%s>, Stop : <%s>\n", config.cd_player.play_command, config.cd_player.stop_command); printf("--Wav Player --\n"); printf("Command : <%s>\n", config.wav_player.command); printf("--Mp3 Player --\n"); printf("Command : <%s>\n", config.mp3_player.command); #endif config_data.write_config(); return; case OP_CANCEL : gtk_widget_destroy(window); main_window_handler(MW_MODE_SELECT, 0, main_data); return; } } ripperX-2.8.0/src/config_window_handler.h000066400000000000000000000003121233655711300204450ustar00rootroot00000000000000 #ifndef CONFIG_WINDOW_HANDLER_H #define CONFIG_WINDOW_HANDLER_H #include "common.h" #include "interface_common.h" void config_window_handler(enum InterfaceCommon ops, _main_data *main_data); #endif ripperX-2.8.0/src/dir_window_handler.c000066400000000000000000000127131233655711300177610ustar00rootroot00000000000000#include "config.h" #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_UNISTD_H # include #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #include #include #include #include "misc_utils.h" #include "interface_common.h" #include "dir_window_handler.h" void dw_cancel_clicked(GtkWidget *widget, gpointer callback_data); void dw_ok_clicked(GtkWidget *widget, gpointer callback_data); void dw_cancel_clicked(GtkWidget *widget, gpointer callback_data) { dir_window_handler(OP_CANCEL, NULL); } void dw_ok_clicked(GtkWidget *widget, gpointer callback_data) { dir_window_handler(OP_OK, NULL); } char *dir_window_handler(enum InterfaceCommon ops, const char *cur_dir) { static GtkWidget *filew; static int id; static char buf[ MAX_FILE_PATH_LENGTH ]; static const char *saved_cur_dir; switch(ops) { case WIDGET_CREATE : { struct stat st; char check_dir[ MAX_FILE_PATH_LENGTH + 1]; char *checked_dir; saved_cur_dir = cur_dir; checked_dir = check_dir; strncpy(check_dir, cur_dir, MAX_FILE_PATH_LENGTH); /* Add a final / to input directory string if missing and input string is only a directory (i.e. no filename); but pass through any other strings. This allows GtkFileSelection widget to show proper directory level upon entering. */ if((lstat(checked_dir, &st) >= 0) && (S_ISDIR(st.st_mode))) { if((check_dir[ strlen(checked_dir) - 1 ] != '/') && (strlen(checked_dir) > 0) && (strlen(checked_dir) < MAX_FILE_PATH_LENGTH)) { checked_dir = strcat(check_dir, "/"); } } filew = gtk_file_selection_new(_("Select a directory")); gtk_window_set_position(GTK_WINDOW(filew), GTK_WIN_POS_MOUSE); gtk_file_selection_show_fileop_buttons(GTK_FILE_SELECTION(filew)); id = g_signal_connect(G_OBJECT(filew), "destroy", G_CALLBACK(dw_cancel_clicked), NULL); g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(filew) ->ok_button), "clicked", G_CALLBACK(dw_ok_clicked), NULL); g_signal_connect(G_OBJECT(GTK_FILE_SELECTION(filew) ->cancel_button), "clicked", G_CALLBACK(dw_cancel_clicked), NULL); gtk_file_selection_set_filename(GTK_FILE_SELECTION(filew), checked_dir); gtk_widget_hide(GTK_WIDGET(GTK_FILE_SELECTION(filew) ->fileop_del_file)); gtk_widget_hide(GTK_WIDGET(GTK_FILE_SELECTION(filew) ->fileop_ren_file)); gtk_widget_set_sensitive(GTK_WIDGET(GTK_FILE_SELECTION(filew) ->file_list), FALSE); gtk_widget_show(filew); gtk_main(); g_signal_handler_disconnect(G_OBJECT(filew), id); strncpy(buf, gtk_file_selection_get_filename(GTK_FILE_SELECTION(filew)), sizeof(buf)); gtk_widget_destroy(filew); return buf; } case OP_OK : { struct stat st; //FIXME - should be const, make copy?? gchar *temp = (gchar*)gtk_file_selection_get_filename(GTK_FILE_SELECTION(filew)); if(lstat(temp, &st) < 0) { err_handler(INVALID_FILE_SELECTION_ERR, NULL); return NULL; } if(!S_ISDIR(st.st_mode)) { gtk_file_selection_set_filename(GTK_FILE_SELECTION(filew), file_path_without_name(temp)); temp = (gchar*)gtk_file_selection_get_filename(GTK_FILE_SELECTION(filew)); } /* remove final directory ../ from directory string if present */ if(strlen(temp) > 3) { if((temp[ strlen(temp) - 1 ] == '/') && (temp[ strlen(temp) - 2 ] == '.') && (temp[ strlen(temp) - 3 ] == '.') && (temp[ strlen(temp) - 4 ] == '/')) { temp[ strlen(temp) - 3 ] = '\0'; gtk_file_selection_set_filename(GTK_FILE_SELECTION(filew), temp); } } /* remove final directory ./ from directory string if present */ if(strlen(temp) > 2) { if((temp[ strlen(temp) - 1 ] == '/') && (temp[ strlen(temp) - 2 ] == '.') && (temp[ strlen(temp) - 3 ] == '/')) { temp[ strlen(temp) - 2 ] = '\0'; gtk_file_selection_set_filename(GTK_FILE_SELECTION(filew), temp); } } gtk_main_quit(); return NULL; } case OP_CANCEL : gtk_file_selection_set_filename(GTK_FILE_SELECTION(filew), saved_cur_dir); gtk_main_quit(); return NULL; } return NULL; } ripperX-2.8.0/src/dir_window_handler.h000066400000000000000000000003001233655711300177530ustar00rootroot00000000000000 #ifndef DIR_WINDOW_HANDLER_H #define DIR_WINDOW_HANDLER_H #include "common.h" #include "interface_common.h" char *dir_window_handler(enum InterfaceCommon ops, const char *cur_dir); #endif ripperX-2.8.0/src/err_dialog_handler.c000066400000000000000000000275651233655711300177360ustar00rootroot00000000000000/* file err_dialog_handler.c * * defines procedures for error messages or dialogs * * Ralf Engels 10/06/1999 changed errno stuff * (strange who does such things) */ #include "config.h" #include #include #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #include #include #include #include "interface_common.h" #include "err_dialog_handler.h" void dl_callback(GtkWidget *widget, gpointer callback_data); /* When with_entry is FALSE and entry_default is not NULL, entry_default * will be displayed as extra msg */ const char *err_msg[] = { N_("An error has occured while forking"), N_("Cannot create pipe"), N_("Cannot open /dev/null"), N_("Memory allocation error has occurred"), N_("An error has occurred while trying to\nreopen a file as a stream (fdopen)"), N_("Cannot read from the pipe"), N_("Cannot delete file"), N_("Cannot open configuration file\nloading default values"), N_("Cannot create configuration file ~/.ripperXrc"), N_("Cannot open a pty\nMaybe all ptys are busy"), N_("///// use perror msg until here /////"), N_("Too many arguments"), N_("Job already in progress"), N_("Please select a track to rip or encode.\nIf you did select tracks, they may already have been ripped."), N_("Make sure an audio disc is in the drive and that you are\neither running ripperX as root, are a member\nof the \"cdrom\" group, or otherwise have appropriate\npermissions to access the CDROM device.\n"), N_("The file name is too long"), N_("Some entry(s) are empty"), N_("An error has occurred while parsing ~/.ripperXrc"), N_("Some field(s) are empty. Substituting default value"), N_("Invalid selection"), N_("Could not connect to CDDB server"), N_("Connection refused from CDDB server"), N_("CDDB Server Error"), N_("CD Not Found in CD Database"), N_("Cannot parse the format string"), N_("Plugin not present"), N_("Error while locking file.\nMake sure the WAV dir and MP3 dir paths are correct and\nyou have permission to write to those directories."), N_("The WAV dir is not writable."), N_("The MP3 dir is not writable."), N_("Cannot create WAV dir"), N_("Cannot create MP3 dir"), N_("Make sure an audio disc is in the CDROM device."), N_("Make sure that you are a member of the the \"cdrom\" group,\nor otherwise have appropriate permissions to access the CDROM device."), N_("Exception") }; const struct { const char *title; const char *msg; } dialog_data[] = { { N_("Abort confirmation"), N_("Do you really want to abort?") }, { N_("Wanna delete?"), N_("Do you want to delete current file?") }, { N_("Wanna overwrite?"), N_("The file already exists. Do you want to overwrite?") }, { N_("Enter file name"), N_("Enter new file name") }, { N_("Wanna create config file?"), N_("Config file ~/.ripperXrc does not exist.\nDo you want to create config file?") }, { N_("Low diskspace warning"), N_("There is less than 500 megabytes free on the wav partition.\n Do you want to continue?") }, { N_("Low diskspace warning"), N_("There is less than 100 megabytes free on the mp3 partition.\n Do you want to continue?") }, { N_("Directory does not exist"), N_("The WAV dir does not exist. Create it?") }, { N_("Directory does not exist"), N_("The MP3 dir does not exist. Create it?") } }; const char *status_msg [] = { N_("Finished ripping"), N_("Finished encoding") }; const char * ErrCode::get_buf() const { if (*buf == 0) sprintf(buf, "Error Code %d", err_code); return buf; } const char * ErrCode::get_msg() const { return gettext(err_msg[ err_code ]); } bool ErrCode::has_perror() const { return err_code < END_PERROR; } const char * ExcCode::get_buf() const { return this->ErrCode::get_msg(); } const char * ExcCode::get_msg() const { return e.what(); } bool ExcCode::has_perror() const { return true; } void err_handler(const ErrCode & err_code, const char *extra_msg) { GtkWidget *window, *vbox, *hbox, *label, *separator, *button; char buf[ 20 ]; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER); gtk_window_set_title(GTK_WINDOW(window), _("Error")); g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_widget_destroyed), NULL); gtk_container_set_border_width(GTK_CONTAINER(window), 5); vbox = gtk_vbox_new(FALSE, 3); gtk_container_set_border_width(GTK_CONTAINER(vbox), 0); gtk_container_add(GTK_CONTAINER(window), vbox); label = gtk_label_new(err_code.get_buf()); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, FALSE, 0); label = gtk_label_new(err_code.get_msg()); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, FALSE, 0); if(err_code.has_perror()) { hbox = gtk_hbox_new(FALSE, 3); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); label = gtk_label_new("Perror: "); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); label = gtk_label_new(strerror(errno)); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); } if(extra_msg != NULL) { label = gtk_label_new(extra_msg); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, FALSE, 0); } separator = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), separator, FALSE, FALSE, 0); button = gtk_button_new_from_stock(GTK_STOCK_OK); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(window)); gtk_box_pack_start(GTK_BOX(vbox), button, TRUE, FALSE, 0); gtk_widget_grab_default(button); gtk_widget_show_all(window); } void dl_callback(GtkWidget *widget, gpointer callback_data) { dialog_handler(DL_OK_PRESSED, TRUE, 0, TRUE, NULL, NULL, 0); } int dialog_handler(int ops, int ok_or_yes, int dialog_code, int with_entry, char *entry_default, char *entered, int answer_length) { static GtkWidget *window, *vbox, *hbox, *label, *entry, *button, *separator; static int answer, saved_with_entry; static char *saved_entered; int id; switch(ops) { case WIDGET_CREATE : saved_entered = entered; saved_with_entry = with_entry; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER); gtk_window_set_title(GTK_WINDOW(window), dialog_data[ dialog_code ].title); id = g_signal_connect(G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL); vbox = gtk_vbox_new(FALSE, 3); gtk_container_set_border_width(GTK_CONTAINER(vbox), 0); gtk_container_add(GTK_CONTAINER(window), vbox); hbox = gtk_hbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(hbox), 2); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); label = gtk_label_new(dialog_data[ dialog_code ].msg); gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); if(with_entry) { entry = gtk_entry_new_with_max_length(answer_length); gtk_entry_set_text(GTK_ENTRY(entry), entry_default); gtk_editable_select_region(GTK_EDITABLE(entry), 0, -1); gtk_box_pack_start(GTK_BOX(vbox), entry, FALSE, FALSE, 0); } else if(entry_default != NULL) { label = gtk_label_new(entry_default); gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, TRUE, 0); } separator = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), separator, FALSE, FALSE, 0); hbox = gtk_hbox_new(TRUE, 0); gtk_container_set_border_width(GTK_CONTAINER(hbox), 3); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0); if(ok_or_yes == TRUE) { button = gtk_button_new_from_stock(GTK_STOCK_OK); } else { button = gtk_button_new_from_stock(GTK_STOCK_YES); } GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(dl_callback), NULL); gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 0); gtk_widget_grab_default(button); if(ok_or_yes == TRUE) { button = gtk_button_new_from_stock(GTK_STOCK_CANCEL); } else { button = gtk_button_new_from_stock(GTK_STOCK_NO); } GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(gtk_main_quit), NULL); gtk_box_pack_start(GTK_BOX(hbox), button, TRUE, TRUE, 0); gtk_widget_show_all(window); answer = FALSE; gtk_main(); g_signal_handler_disconnect(G_OBJECT(window), id); gtk_widget_destroy(window); return answer; case DL_OK_PRESSED : if(saved_with_entry == FALSE) { answer = TRUE; gtk_main_quit(); return TRUE; } if(strlen(gtk_entry_get_text(GTK_ENTRY(entry))) == 0) { return FALSE; } strcpy(saved_entered, gtk_entry_get_text(GTK_ENTRY(entry))); answer = TRUE; gtk_main_quit(); return TRUE; } /* Just to avoid compile time warning */ return FALSE; } void status_handler(int status_code, const char *extra_msg) { GtkWidget *window, *vbox, *label, *separator, *button; window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_position(GTK_WINDOW(window), GTK_WIN_POS_CENTER); gtk_window_set_title(GTK_WINDOW(window), _("Status")); gtk_container_set_border_width(GTK_CONTAINER(window), 5); vbox = gtk_vbox_new(FALSE, 3); gtk_container_set_border_width(GTK_CONTAINER(vbox), 0); gtk_container_add(GTK_CONTAINER(window), vbox); label = gtk_label_new(status_msg[ status_code ]); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, FALSE, 0); if(extra_msg != NULL) { label = gtk_label_new(extra_msg); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_box_pack_start(GTK_BOX(vbox), label, TRUE, FALSE, 0); } separator = gtk_hseparator_new(); gtk_box_pack_start(GTK_BOX(vbox), separator, FALSE, FALSE, 0); button = gtk_button_new_from_stock(GTK_STOCK_OK); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); g_signal_connect_swapped(G_OBJECT(button), "clicked", G_CALLBACK(gtk_widget_destroy), G_OBJECT(window)); gtk_box_pack_start(GTK_BOX(vbox), button, TRUE, FALSE, 0); gtk_widget_grab_default(button); gtk_widget_show_all(window); } ripperX-2.8.0/src/err_dialog_handler.h000066400000000000000000000043751233655711300177350ustar00rootroot00000000000000 #ifndef ERR_DIALOG_HANDLER_H #define ERR_DIALOG_HANDLER_H #include "common.h" #include enum ErrorCodes { /* Error codes */ FORK_ERR, PIPE_CREATION_ERR, NULL_OPEN_ERR, MALLOC_ERR, FDOPEN_ERR, PIPE_READ_ERR, FILE_DELETE_ERR, CONFIG_OPEN_ERR, CONFIG_CREATION_ERR, PTY_OPEN_ERR, END_PERROR, TOO_MANY_ARGS_ERR, JOB_IN_PROGRESS_ERR, NOTHING_TO_DO_ERR, CD_PARANOIA_MISC_ERR, TOO_LONG_FILE_NAME_ERR, EMPTY_ENTRY_ERR, CONFIG_PARSE_ERR, CONFIG_EMPTY_ITEM_ERR, INVALID_FILE_SELECTION_ERR, /* CDDB Error Codes */ CDDB_NO_CONNECT_ERR, CDDB_CONNECT_REFUSED_ERR, CDDB_SERVER_ERR, CDDB_NOT_FOUND_ERR, /* Newly added ones */ RX_PARSING_ERR, PLUGIN_NOT_PRESENT_ERR, CREATING_FILE_ERROR, WAV_PATH_NOT_WRITABLE_ERROR, MP3_PATH_NOT_WRITABLE_ERROR, WAV_PATH_CREATE_ERROR, MP3_PATH_CREATE_ERROR, /* more distinct cdparanoia error codes */ CD_PARANOIA_NO_DISC, CD_PARANOIA_NO_PERMS, /* catch any exceptions */ CPP_EXCEPTION_ERR }; enum DialogCodes { /* Dialog codes */ DL_ABORT_CONFIRM, DL_DELETE_ON_ABORT, DL_OVERWRITE_CONFIRM, DL_ENTER_FILE_NAME, DL_CREATE_CONFIG_CONFIRM, DL_WAV_PART_LOW, DL_MP3_PART_LOW }; enum StatusCodes { /* Status codes */ STAT_FINISH_WAV, STAT_FINISH_MP3, /* For dialog handler */ DL_OK_PRESSED = 100 }; /* Function Prototypes */ class ErrCode { public: ErrCode(int x) :err_code(x) { *buf=0; } virtual const char * get_buf() const; virtual const char * get_msg() const; virtual bool has_perror() const; private: int err_code; mutable char buf[20]; }; class ExcCode : public ErrCode { public: ExcCode(std::exception &x) : ErrCode(CPP_EXCEPTION_ERR), e(x) { } ; const char * get_buf() const; const char * get_msg() const; bool has_perror() const; private: std::exception & e; }; void err_handler(const ErrCode &, const char *extra_msg); int dialog_handler(int ops, int ok_or_yes, int dialog_code, int with_entry, char *entry_default, char *entered, int answer_length); void status_handler(int status_code, const char *extra_msg); #endif ripperX-2.8.0/src/gtk_cpp_workaround.h000066400000000000000000000013521233655711300200230ustar00rootroot00000000000000#ifndef gtk_cpp_workaround_h #define gtk_cpp_workaround_h #ifdef __cplusplus //proto is wrong, override here for C++ namespace { inline void gtk_table_attach (GtkTable *table, GtkWidget *child, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach, //GtkAttachOptions xoptions, //GtkAttachOptions yoptions, guint xoptions, guint yoptions, guint xpadding, guint ypadding ) { gtk_table_attach(table, child, left_attach, right_attach, top_attach, bottom_attach, (GtkAttachOptions)xoptions, (GtkAttachOptions)yoptions, xpadding, ypadding ); }; } #endif #endif ripperX-2.8.0/src/interface_common.h000066400000000000000000000003051233655711300174260ustar00rootroot00000000000000 #ifndef INTERFACE_COMMON_H #define INTERFACE_COMMON_H enum InterfaceCommon { WIDGET_CREATE, WIDGET_DESTROY, WIDGET_UPDATE, CLEAR_ENTRIES, OP_CANCEL, OP_OK }; #endif ripperX-2.8.0/src/job_control.c000066400000000000000000000673571233655711300164470ustar00rootroot00000000000000/* file job_control.c * * does calling of the ripper or encoder * handles files * * Ralf Engels 10/06/1999 changed lock file to handle all errors */ #include "config.h" #include /* for bezo debug */ #include /* for errno -- Really? No shit... */ #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_SYS_TYPES_H # include #endif #ifdef HAVE_SYS_STAT_H # include /* defines read and write flags */ #endif #ifdef TIME_WITH_SYS_TIME # include # include #else # ifdef HAVE_SYS_TIME_H # include # else # include # endif #endif #ifdef HAVE_UNISTD_H # include # include #endif #include #ifdef HAVE_FCNTL_H # include #endif #ifdef HAVE_SYS_WAIT_H # include #endif #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #include #include #include #include #include #include "misc_utils.h" #include "interface_common.h" #include "ripper_encoder_manipulation.h" #include "main_window_handler.h" #include "select_frame_handler.h" #include "status_frame_handler.h" #include "job_control.h" #include "calc_stat.h" #define CLEAR_PIPE_BUF_SIZE 512 #define COUNT_BEFORE_GET_AVG 10 /* Dialog structure */ typedef struct { char *title; char *msg; } _dialog_data; /* Function Prototypes */ int lock_file(char *file_name, int is_temp); /* calculates statiscal info to report to the user */ // current is length_processes now void job_controller_timeout_start(); int job_controller_timeout_update(gpointer anything); void job_controller_timeout_stop(); int lock_file(char *file_name, int is_temp) { int fd; char *temp; char buf[ MAX_FILE_NAME_LENGTH ]; fd = open(file_name, O_CREAT | O_EXCL, S_IWUSR | S_IRUSR | S_IRGRP | S_IWGRP | S_IROTH); if(fd >= 0) { close(fd); unlink(file_name); } else { if(errno == EEXIST) if(config.ask_when_file_exists == FALSE || is_temp == TRUE) { if(config.make_mp3_from_existing_wav) { return 1; } /* Prepend config.prepend_char until we succeed open() */ if(strlen(file_name) > MAX_FILE_NAME_LENGTH + MAX_FILE_PATH_LENGTH - 2) { return - 1; } else { temp = file_name_without_path(file_name); strcpy(buf, temp); temp[ 0 ] = config.prepend_char; strcpy(temp + 1, buf); /* now try again */ if(lock_file(file_name, is_temp) < 0) { return - 1; } } } else { if(config.make_mp3_from_existing_wav) { return 1; } if(dialog_handler(WIDGET_CREATE, FALSE, DL_OVERWRITE_CONFIRM, FALSE, file_name_without_path(file_name), NULL, 0) == TRUE) /* Just return. Cdparanoia or 8hz-mp3 will overwrite on it */ { return 0; } /* Let's ask the user what s/he wants */ temp = file_name_without_path(file_name); strcpy(buf, temp); if(dialog_handler(WIDGET_CREATE, TRUE, DL_ENTER_FILE_NAME, TRUE, buf, buf, sizeof(buf) - 1) == FALSE) /* The user does not want to continue. return error */ { return - 1; } strcpy(temp, buf); /* now try again */ if(lock_file(file_name, is_temp) < 0) { return - 1; } } else /* an other error (maybe directory not existent */ { err_handler(CREATING_FILE_ERROR, file_name); return - 1; } } return 0; } /* this is called when the go button is clicked. The default file names are determined and the files are locked. */ void job_starter(_main_data *main_data) { int i, track, is_temp, code; static char *wav_file_path=0, *enc_file_path=0; CommonEncoderType type; /* Sync main_data structure with the data user has entered */ select_frame_handler(SF_SYNC_MAIN_DATA, 0, main_data); /* Setup directory and filename extension */ if(!create_filenames_from_format(main_data)) { return; } /* Reset exist flags */ for(i = 0; i < main_data->num_tracks(); i++) { if(main_data->track[ i ].make_wav) { main_data->track[ i ].wav_exist = FALSE; } if(main_data->track[ i ].make_mp3) { main_data->track[ i ].mp3_exist = FALSE; } } /* Lock target files */ track = -1; type = WAV; while(main_data->find_next_job(track, WAV, &track, &type) >= 0) { is_temp = FALSE; if(!create_file_names_for_track(main_data, track, &wav_file_path, NULL)) { return; } code = lock_file(wav_file_path, is_temp); if(code < 0) { return; } if(code == 1) { main_data->track[ track ].make_wav = FALSE; main_data->track[ track ].wav_exist = TRUE; } } if(main_data->track[ track ].make_mp3) { track = -1; type = MP3; while(main_data->find_next_job(track, MP3, &track, &type) >= 0) { if(!create_file_names_for_track(main_data, track, NULL, &enc_file_path)) { return; } if(lock_file(enc_file_path, FALSE) < 0) { return; } } } /* Destroy select frame & change main window button state */ select_frame_handler(WIDGET_DESTROY, 0, NULL); main_window_handler(MW_MODE_STATUS, NULL, NULL); /* Start Job */ job_controller(JC_START, main_data); } static int timer; void job_controller_timeout_start() { timer = gtk_timeout_add(JC_TIMEOUT, job_controller_timeout_update, NULL); } int job_controller_timeout_update(gpointer anything) { job_controller(JC_UPDATE, NULL); return TRUE; } void job_controller_timeout_stop() { gtk_timeout_remove(timer); } void job_controller(JC ops, _main_data *main_data) { static CommonEncoderType cur_type = NO_TYPE; static int wav_cur_track = -1; static int mp3_cur_track = -1; static int mp3_nxt_track = -1; static pid_t wav_pg_pid = -1; static pid_t mp3_pg_pid = -1; static pid_t wav_pi_pid = -1; static pid_t mp3_pi_pid = -1; static int wav_read_fd; static int mp3_read_fd; static _stat stat; static _main_data *saved_main_data; static char *wav_file_path, *enc_file_path; static CalcStat calc_stat; unsigned wav_current = 0; unsigned mp3_current = 0; double wav_progress; double mp3_progress; char msg[ MAX_PLUGIN_OUTPUT_LENGTH ]; char *str; int temp, temp_track; switch(ops) { case JC_START : /* called once when the go button is clicked. */ saved_main_data = main_data; if(wav_cur_track != -1) { err_handler(JOB_IN_PROGRESS_ERR, NULL); main_data->finish_job(); return; } if(main_data->find_next_job(wav_cur_track, WAV, &wav_cur_track, &cur_type) < 0) { /* ok, no more wavs to rip, try looking for mp3s */ if(main_data->find_next_job(mp3_cur_track, MP3, &mp3_cur_track, &cur_type) < 0) { /* nothing at all found */ err_handler(NOTHING_TO_DO_ERR, NULL); main_data->finish_job(); return; } create_file_names_for_track(main_data, mp3_cur_track, &wav_file_path, &enc_file_path); calc_stat.start_session(main_data, &stat); calc_stat.start(main_data, &stat, mp3_cur_track, MP3); /* start encoding */ if(start_ripping_encoding(MP3, main_data->track[ mp3_cur_track ].begin, main_data->track[ mp3_cur_track ].length, mp3_cur_track, wav_file_path, enc_file_path, &mp3_pg_pid, &mp3_pi_pid, &mp3_read_fd) < 0) { main_data->finish_job(); return; } stat.encoding = TRUE; } else { /* found the first wav to rip */ create_file_names_for_track(main_data, wav_cur_track, &wav_file_path, &enc_file_path); calc_stat.start_session(main_data, &stat); calc_stat.start(main_data, &stat, wav_cur_track, WAV); /* start ripping */ if(start_ripping_encoding(WAV, main_data->track[ wav_cur_track ].begin, main_data->track[ wav_cur_track ].length, wav_cur_track, wav_file_path, enc_file_path, &wav_pg_pid, &wav_pi_pid, &wav_read_fd) < 0) { main_data->finish_job(); return; } stat.ripping = TRUE; /* Find the next track to encode if any */ if(main_data->find_next_job(mp3_cur_track, MP3, &mp3_nxt_track, &cur_type) < 0 || !main_data->track[ mp3_nxt_track ].make_mp3) { mp3_nxt_track = -1; } } /* Create wav/mp3 status frame */ wm_status_frame_handler(WIDGET_CREATE, cur_type, &stat, NULL); job_controller_timeout_start(); return; case JC_UPDATE : main_data = saved_main_data; /* Part 1: check progress on the rip */ if(stat.ripping == TRUE) { temp = read_and_process_plugin_output(wav_read_fd, &wav_progress, msg); wav_current = main_data->track[ wav_cur_track ].length * wav_progress; switch(temp) { case PLUGIN_MSG_PARSE_ERR : /* Nothing to do. Let's wait more */ break; case PLUGIN_PROGRESS_MSG : /* progress report, update status display */ calc_stat.update(main_data, &stat, wav_current, wav_cur_track, WAV); /* Update status widget */ if(msg[ 0 ] == '\0') { str = NULL; } else { str = msg; } wm_status_frame_handler(WIDGET_UPDATE, WAV, &stat, str); break; case PLUGIN_NO_MSG_AVAILABLE : /* Check if the plugin has exited It only happens when ripperX failed to execute the plugin */ if(wav_pi_pid >= 0) if(waitpid(wav_pi_pid, NULL, WNOHANG) == wav_pi_pid) { err_handler(PLUGIN_NOT_PRESENT_ERR, _("Maybe ripperX has failed to execute the plugin")); wav_pi_pid = -1; job_controller_timeout_stop(); job_controller(JC_ABORT_ALL_DELETE, main_data); return; } /* Check if the job is finished */ if(waitpid(wav_pg_pid, NULL, WNOHANG) == wav_pg_pid) { /* One job finished, go for next one */ /* kill the plugin */ if(waitpid(wav_pi_pid, NULL, WNOHANG) != wav_pi_pid) { kill(-wav_pi_pid, SIGTERM); waitpid(wav_pi_pid, NULL, 0); } /* Close the fd */ close(wav_read_fd); /* stop calculating stats */ calc_stat.stop(main_data, &stat, WAV); /* Mark that it exists */ main_data->track[ wav_cur_track ].wav_exist = TRUE; /* find next track to rip */ temp_track = wav_cur_track; if(main_data->find_next_job(wav_cur_track, WAV, &wav_cur_track, &cur_type) < 0) { /* All finished - no more rips */ wav_pg_pid = -1; wav_pi_pid = -1; wav_cur_track = -1; cur_type = NO_TYPE; stat.ripping = FALSE; /* if we are only ripping, finish up for good */ if(!main_data->track[ temp_track ].make_mp3) { calc_stat.stop_session(&stat); job_controller_timeout_stop(); main_data->finish_job(); return; } } else { /* if we are only ripping, update the stats */ if(!main_data->track[ temp_track ].make_mp3) { stat.tracks_done++; stat.tracks_remain--; } /* start ripping the next track */ create_file_names_for_track(main_data, wav_cur_track, &wav_file_path, &enc_file_path); calc_stat.start(main_data, &stat, wav_cur_track, WAV); if(start_ripping_encoding(WAV, main_data->track[ wav_cur_track ].begin, main_data->track[ wav_cur_track ].length, wav_cur_track, wav_file_path, enc_file_path, &wav_pg_pid, &wav_pi_pid, &wav_read_fd) < 0) { calc_stat.stop_session(&stat); job_controller_timeout_stop(); main_data->finish_job(); return; } } } /* end if job is finished section */ break; } /* end rip switch */ } /* end rip progress check */ /* Part 2: check progress on the encode */ if(stat.encoding == TRUE) { temp = read_and_process_plugin_output(mp3_read_fd, &mp3_progress, msg); mp3_current = main_data->track[ mp3_cur_track ].length * mp3_progress; switch(temp) { case PLUGIN_MSG_PARSE_ERR : /* Nothing to do. Let's wait more */ break; case PLUGIN_PROGRESS_MSG : /* progress report, update status display */ calc_stat.update(main_data, &stat, mp3_current, mp3_cur_track, MP3); /* Update status widget */ if(msg[ 0 ] == '\0') { str = NULL; } else { str = msg; } wm_status_frame_handler(WIDGET_UPDATE, MP3, &stat, str); break; case PLUGIN_NO_MSG_AVAILABLE : /* Check if the plugin has exited It only happens when ripperX failed to execute the plugin */ if(mp3_pi_pid >= 0) if(waitpid(mp3_pi_pid, NULL, WNOHANG) == mp3_pi_pid) { err_handler(PLUGIN_NOT_PRESENT_ERR, _("Maybe ripperX has failed to execute the plugin")); mp3_pi_pid = -1; job_controller_timeout_stop(); job_controller(JC_ABORT_ALL_DELETE, main_data); return; } /* Check if the job is finished */ if(waitpid(mp3_pg_pid, NULL, WNOHANG) == mp3_pg_pid) { /* One job finished, go for next one */ /* kill the plugin */ if(waitpid(mp3_pi_pid, NULL, WNOHANG) != mp3_pi_pid) { kill(-mp3_pi_pid, SIGTERM); waitpid(mp3_pi_pid, NULL, 0); } /* Close the fd */ close(mp3_read_fd); /* stop calculating stats */ calc_stat.stop(main_data, &stat, MP3); main_data->track[ mp3_cur_track ].mp3_exist = TRUE; /* Delete WAV file if he/she doesn't want it */ if(!config.keep_wav) { create_file_names_for_track(main_data, mp3_cur_track, &wav_file_path, &enc_file_path); if(unlink(wav_file_path) < 0) { err_handler(FILE_DELETE_ERR, wav_file_path); } /* Mark that it has been deleted */ main_data->track[ mp3_cur_track ].wav_exist = FALSE; /* Delete WAV work directory if this was the last WAV file, and the mp3 work dir is different */ if(stat.tracks_remain <= 1) if(strcmp(config.wav_path,config.mp3_path) != 0) { rmdir(file_path_without_name(wav_file_path)); } } /* find next track to encode */ temp_track = mp3_cur_track; if(main_data->find_next_job(mp3_cur_track, MP3, &mp3_nxt_track, &cur_type) < 0) { /* All finished - no more encoding - done for good! */ mp3_pg_pid = -1; mp3_pi_pid = -1; mp3_cur_track = mp3_nxt_track = -1; cur_type = NO_TYPE; calc_stat.stop_session(&stat); job_controller_timeout_stop(); stat.encoding = FALSE; main_data->finish_job(); return; } mp3_cur_track = -1; stat.tracks_done++; stat.tracks_remain--; stat.encoding = FALSE; } /* end if job is finished section */ break; } /* end encode switch */ } /* end encode progress check */ if(!stat.encoding && mp3_nxt_track != -1 && main_data->track[ mp3_nxt_track ].wav_exist) { /* start encoding */ mp3_cur_track = mp3_nxt_track; mp3_nxt_track = -1; create_file_names_for_track(main_data, mp3_cur_track, &wav_file_path, &enc_file_path); calc_stat.start(main_data, &stat, mp3_cur_track, MP3); if(start_ripping_encoding(MP3, main_data->track[ mp3_cur_track ].begin, main_data->track[ mp3_cur_track ].length, mp3_cur_track, wav_file_path, enc_file_path, &mp3_pg_pid, &mp3_pi_pid, &mp3_read_fd) < 0) { calc_stat.stop_session(&stat); job_controller_timeout_stop(); main_data->finish_job(); } stat.encoding = TRUE; } /* end of JC_UPDATE */ return; case JC_PAUSE : main_data = saved_main_data; if(wav_pg_pid >= 0) if(waitpid(wav_pg_pid, NULL, WNOHANG) != wav_pg_pid) { kill(wav_pg_pid, SIGTSTP); } if(wav_pi_pid >= 0) if(waitpid(wav_pi_pid, NULL, WNOHANG) != wav_pi_pid) { kill(wav_pi_pid, SIGTSTP); } if(mp3_pg_pid >= 0) if(waitpid(mp3_pg_pid, NULL, WNOHANG) != mp3_pg_pid) { kill(mp3_pg_pid, SIGTSTP); } if(mp3_pi_pid >= 0) if(waitpid(mp3_pi_pid, NULL, WNOHANG) != mp3_pi_pid) { kill(mp3_pi_pid, SIGTSTP); } calc_stat.pause(); job_controller_timeout_stop(); return; case JC_CONT : main_data = saved_main_data; if(wav_pg_pid >= 0) if(waitpid(wav_pg_pid, NULL, WNOHANG) != wav_pg_pid) { kill(wav_pg_pid, SIGCONT); } if(wav_pi_pid >= 0) if(waitpid(wav_pi_pid, NULL, WNOHANG) != wav_pi_pid) { kill(wav_pi_pid, SIGCONT); } if(mp3_pg_pid >= 0) if(waitpid(mp3_pg_pid, NULL, WNOHANG) != mp3_pg_pid) { kill(mp3_pg_pid, SIGCONT); } if(mp3_pi_pid >= 0) if(waitpid(mp3_pi_pid, NULL, WNOHANG) != mp3_pi_pid) { kill(mp3_pi_pid, SIGCONT); } calc_stat.cont(); job_controller_timeout_start(); return; case JC_ABORT : case JC_ABORT_DELETE : case JC_ABORT_ALL : case JC_ABORT_ALL_DELETE : main_data = saved_main_data; if(wav_pg_pid >= 0) if(waitpid(wav_pg_pid, NULL, WNOHANG) != wav_pg_pid) { job_controller(JC_CONT, NULL); kill(-wav_pg_pid, SIGTERM); waitpid(wav_pg_pid, NULL, 0); } if(wav_pi_pid >= 0) if(waitpid(wav_pi_pid, NULL, WNOHANG) != wav_pi_pid) { kill(-wav_pi_pid, SIGTERM); waitpid(wav_pi_pid, NULL, 0); } if(mp3_pg_pid >= 0) if(waitpid(mp3_pg_pid, NULL, WNOHANG) != mp3_pg_pid) { job_controller(JC_CONT, NULL); kill(-mp3_pg_pid, SIGTERM); waitpid(mp3_pg_pid, NULL, 0); } if(mp3_pi_pid >= 0) if(waitpid(mp3_pi_pid, NULL, WNOHANG) != mp3_pi_pid) { kill(-mp3_pi_pid, SIGTERM); waitpid(mp3_pi_pid, NULL, 0); } /* Close the pipe or pty */ close(wav_read_fd); close(mp3_read_fd); calc_stat.stop_session(&stat); /* Destroy status widget */ wm_status_frame_handler(WIDGET_DESTROY, WAV, &stat, msg); if((ops == JC_ABORT_ALL_DELETE) || (ops == JC_ABORT_DELETE)) { create_file_names_for_track(main_data, wav_cur_track, &wav_file_path, NULL); if(wav_cur_track != -1) { create_file_names_for_track(main_data, wav_cur_track, &wav_file_path, &enc_file_path); if(unlink(wav_file_path) < 0) { err_handler(FILE_DELETE_ERR, wav_file_path); } } if(mp3_cur_track != -1) { create_file_names_for_track(main_data, mp3_cur_track, NULL, &enc_file_path); if(unlink(enc_file_path) < 0) { err_handler(FILE_DELETE_ERR, enc_file_path); } } } else { /* Mark that it exists */ if(wav_cur_track != -1) { main_data->track[ wav_cur_track ].wav_exist = TRUE; } if(mp3_cur_track != -1) { main_data->track[ mp3_cur_track ].mp3_exist = TRUE; } } wav_cur_track = -1; mp3_cur_track = -1; cur_type = NO_TYPE; calc_stat.stop_session(&stat); job_controller_timeout_stop(); main_data->finish_job(); return; } } ripperX-2.8.0/src/job_control.h000066400000000000000000000007251233655711300164360ustar00rootroot00000000000000 #ifndef JOB_CONTROL_H #define JOB_CONTROL_H #include "common.h" enum JC { JC_START, JC_UPDATE, JC_PAUSE, JC_CONT, JC_ABORT, JC_ABORT_DELETE, JC_ABORT_ALL, JC_ABORT_ALL_DELETE }; const int JC_TIMEOUT = 450; void job_starter(_main_data *main_data); void job_controller(JC ops, _main_data *main_data); /* Job controller. This function saves main_data * when called with JC_START and uses it for further operation */ #endif ripperX-2.8.0/src/main.c000066400000000000000000000032701233655711300150410ustar00rootroot00000000000000#include "config.h" #ifdef ENABLE_NLS #include #else #define _(a) (a) #define N_(a) (a) #endif #include "interface_common.h" #include "main_window_handler.h" #include "err_dialog_handler.h" #include "job_control.h" #include "config_rw.h" #include "main.h" void ripperX_init(_main_data *main_data); /* Global variable */ enum CommonLocation where_now; ConfigRW config_data; void ripperX_init(_main_data *main_data) { memset(main_data, 0, sizeof(_main_data)); config_data.read_config(); main_window_handler(WIDGET_CREATE, 0, main_data); return; } void ripperX_exit(GtkWidget *widget, gpointer callback_data) { if(where_now == STATUS_FRAME) { job_controller(JC_PAUSE, NULL); /* Confirm */ if(dialog_handler(WIDGET_CREATE, FALSE, DL_ABORT_CONFIRM, FALSE, NULL, NULL, 0) == FALSE) { job_controller(JC_CONT, NULL); return; } /* Terminate current job */ if(dialog_handler(WIDGET_CREATE, FALSE, DL_DELETE_ON_ABORT, FALSE, NULL, NULL, 0) == TRUE) { job_controller(JC_ABORT_ALL_DELETE, NULL); } else { job_controller(JC_ABORT_ALL, NULL); } } main_window_handler(WIDGET_DESTROY, NULL, NULL); gtk_main_quit(); } int main(int argc, char *argv[]) { _main_data main_data; gtk_set_locale(); gtk_init(&argc, &argv); setlocale(LC_NUMERIC, "POSIX"); #ifdef ENABLE_NLS bindtextdomain(PACKAGE, LOCALEDIR); bind_textdomain_codeset(PACKAGE, "UTF-8"); textdomain(PACKAGE); #endif /*ENABLE_NLS*/ ripperX_init(&main_data); gtk_main(); return 0; } ripperX-2.8.0/src/main.h000066400000000000000000000005731233655711300150510ustar00rootroot00000000000000#ifndef MAIN_H #define MAIN_H #include "config.h" #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #include "common.h" #include #include void ripperX_exit(GtkWidget *widget, gpointer callback_data); #endif ripperX-2.8.0/src/main_data.c000066400000000000000000000137551233655711300160430ustar00rootroot00000000000000#include "main_data.h" #include "misc_utils.h" #include #include #include #include #include #include #include "interface_common.h" #include "main_window_handler.h" #include "select_frame_handler.h" #include "status_frame_handler.h" /* * This function finds what to do next. type is WAV or MP3. * It returns -1 when there's no job left, 0 when a job's found * * finds the next track from cur_track. If cur_type is wav, it will find the * next wav file to rip. If cur_type is mp3, it will find the next mp3 file * to encode **/ int MainData::find_next_job(int cur_track, CommonEncoderType cur_type, int *next_track, CommonEncoderType *next_type) const { int flag=1, track=cur_track+1; int temp_next; CommonEncoderType temp_type; /* Find next track from cur_track */ while(track < this->num_tracks() && flag) { if(this->track[ track ].make_wav || this->track[ track ].make_mp3) { flag = 0; } else { ++track; } } if(flag) { return - 1; } /* for finding the next wav file, check to see if the file exists */ if(cur_type == WAV && this->track[ track ].make_mp3 && this->track[ track ].wav_exist == TRUE && config.make_mp3_from_existing_wav == TRUE) { if(find_next_job(track, WAV, &temp_next, &temp_type) >= 0) { *next_track = temp_next; *next_type = WAV; } else { return - 1; } } else { *next_track = track; *next_type = MP3; } return 0; }; /* called after all jobs are finshed. Files are cleaned up and renamed */ void MainData::finish_job() { int i; static char status_message[(MAX_FILE_PATH_LENGTH + MAX_FILE_NAME_LENGTH) * MAX_NUM_TRACK ]; static char buffer[(MAX_FILE_PATH_LENGTH + MAX_FILE_NAME_LENGTH) * MAX_NUM_TRACK ]; static char *wav_file=0, *enc_file=0; int madewavs = FALSE; int mademp3s = FALSE; int tracksdone = 0; char *artist; FILE *fp_playlist = NULL; char playlist_filespec[ MAX_FILE_PATH_LENGTH + MAX_FILE_NAME_LENGTH ]; buffer[0] = 0; /* Clean up */ for(i = 0; i < this->num_tracks(); i++) { create_file_names_for_track(this, i, &wav_file, &enc_file); if(this->track[ i ].wav_exist == FALSE) { unlink(wav_file); } else if(this->track[ i ].make_wav == TRUE) { madewavs = TRUE; //write .inf files, for cdrecord - refactor this //should do this whenever we keep the .wavs? if(config.cddb_config.create_id3 == TRUE) { std::string inf_file(wav_file); inf_file.resize(inf_file.size() - 3); inf_file += "inf"; FILE * inf_fp = fopen(inf_file.c_str(), "w"); if (inf_fp) { if(!(artist = this->track[ i ].artist)) { artist = this->disc_artist; } fprintf(inf_fp, "Albumperformer= '%s'\n", artist); fprintf(inf_fp, "Performer= '%s'\n", this->track[ i ].artist); fprintf(inf_fp, "Albumtitle= '%s'\n", this->disc_title); fprintf(inf_fp, "Tracktitle= '%s'\n", this->track[ i ].title); fprintf(inf_fp, "Tracknumber= %d\n", i+1); fclose(inf_fp); } else { perror (inf_file.c_str()); } } sprintf(&buffer[strlen(buffer)], "%d: %s\n", ++tracksdone, file_name_without_path(wav_file)); } this->track[ i ].make_wav = FALSE; if(this->track[ i ].mp3_exist == TRUE && this->track[ i ].make_mp3 == TRUE) { mademp3s = TRUE; /* add ID3 tag if requested */ if(config.cddb_config.create_id3 == TRUE) { if(!(artist = this->track[ i ].artist)) { artist = this->disc_artist; } TagLib::FileRef file(enc_file); TagLib::Tag *tag = file.tag(); if (tag) { tag->setTitle(this->track[ i ].title); tag->setArtist(artist); tag->setAlbum(this->disc_title); tag->setYear(atoi(this->disc_year)); tag->setTrack(i+1); tag->setGenre(this->disc_category); file.save(); } } //dc: strcat() is for sissies! sprintf(&buffer[strlen(buffer)], "%d: %s\n", ++tracksdone, file_name_without_path(enc_file)); // tm: basic playlist support - thanks to Mark Tyler if(config.cddb_config.create_playlist == TRUE) { if(fp_playlist == NULL) { sprintf(playlist_filespec, "%s/playlist.m3u", file_path_without_name(enc_file)); fp_playlist = fopen(playlist_filespec, "w"); } // if we succeeded above, we can now write to this if(fp_playlist != NULL) { fprintf(fp_playlist, "%s\n", file_name_without_path(enc_file)); } } } this->track[ i ].make_mp3 = FALSE; } /* end loop over all tracks */ if((config.cddb_config.create_playlist == TRUE) && (fp_playlist != NULL)) { fclose(fp_playlist); } /* Generate status message */ sprintf(status_message, _("Tracks Completed: %2d\n\nArtist: %s\nAlbum: %s\n\n%s"), tracksdone, this->disc_artist, this->disc_title, buffer); /* show status pop up */ if(madewavs) { status_handler(STAT_FINISH_WAV, status_message); } else if(mademp3s) { status_handler(STAT_FINISH_MP3, status_message); } /* Clear status bar */ main_window_handler(MW_CLEAR_STATUSBAR, NULL, NULL); /* Destroy status widget */ wm_status_frame_handler(WIDGET_DESTROY, WAV, NULL, NULL); /* Create select frame */ select_frame_handler(WIDGET_CREATE, 0, this); main_window_handler(MW_MODE_SELECT, NULL, NULL); select_frame_handler(SF_SYNC_SELECT_FRAME_TO_DATA, 0, this); } ripperX-2.8.0/src/main_data.h000066400000000000000000000023371233655711300160420ustar00rootroot00000000000000#ifndef main_data_h #define main_data_h const int MAX_NUM_TRACK = 100; const int MAX_FILE_NAME_LENGTH = 512; enum CommonEncoderType { NO_TYPE = -1, CD, WAV, MP3, OGG, FLAC, MP2, MUSE } ; class MainData { /** * Main data structure * All length is in cd sector unit **/ public: enum Lengths { MAX_ARTIST_LENGTH = 1024, MAX_YEAR_LENGTH = 30 }; int total_length; char disc_artist[ MAX_ARTIST_LENGTH ]; char disc_title[ MAX_ARTIST_LENGTH ]; char disc_year[ MAX_YEAR_LENGTH ]; char disc_category[ MAX_ARTIST_LENGTH ]; struct Track { char title[ MAX_FILE_NAME_LENGTH ]; unsigned begin; unsigned length; int make_wav; int wav_exist; int make_mp3; int mp3_exist; char *artist; } track[ MAX_NUM_TRACK ]; int find_next_job(int cur_track, CommonEncoderType cur_type, int *next_track, CommonEncoderType *next_type) const; void finish_job(); MainData() { num_tracks_ = 0; }; void add_track() { ++num_tracks_; }; Track & back_track () { return track[num_tracks_ - 1]; }; int num_tracks() const { return num_tracks_; } private: int num_tracks_; }; #endif ripperX-2.8.0/src/main_window_handler.c000066400000000000000000000340621233655711300201300ustar00rootroot00000000000000#include "config.h" #include #include #include #include "interface_common.h" #include "main.h" #include "config_window_handler.h" #include "players_manipulation.h" #include "ripper_encoder_manipulation.h" #include "select_frame_handler.h" #include "job_control.h" #include "status_frame_handler.h" #include "cddb.h" #include "misc_utils.h" #include "main_window_handler.h" /* Xpms */ #include "xpms/ripperX.xpm" #include "xpms/config.xpm" #include "xpms/scan.xpm" #include "xpms/go.xpm" #include "xpms/stop.xpm" #include "xpms/cddb.xpm" #include "xpms/exit.xpm" void mw_config_button_clicked(GtkWidget *widget, gpointer callback_data); void mw_stop_button_clicked(GtkWidget *widget, gpointer callback_data); void mw_go_button_clicked(GtkWidget *widget, gpointer callback_data); void mw_pause_button_clicked(GtkWidget *widget, gpointer callback_data); void mw_exit_button_clicked(GtkWidget *widget, gpointer callback_data); static int check_dirs(); void mw_config_button_clicked(GtkWidget *widget, gpointer callback_data) { main_window_handler(MW_MODE_CONFIG, 0, NULL); config_window_handler(WIDGET_CREATE, (_main_data *) callback_data); return; } void mw_scan_button_clicked(GtkWidget *widget, gpointer callback_data) { _main_data *main_data; main_data = (_main_data *) callback_data; memset(main_data, 0, sizeof(_main_data)); select_frame_handler(WIDGET_DESTROY, 0, main_data); select_frame_handler(CLEAR_ENTRIES, 0, main_data); /* check to make sure there is a cd in the drive.. if not dim out cddb and go buttons to prevent errors from even happening.... otherwise make sure they can use the buttons */ if(!scan_cd(main_data)) { main_window_handler(CD_INDRIVE, NULL, NULL); } else { main_window_handler(NO_CD_INDRIVE, NULL, NULL); } select_frame_handler(WIDGET_CREATE, 0, main_data); select_frame_handler(SF_SYNC_SELECT_FRAME, 0, main_data); return; } void mw_go_button_clicked(GtkWidget *widget, gpointer callback_data) { if(!check_dirs()) { return; } play_cd_wav_mp3(STOP, CD, NULL); play_cd_wav_mp3(STOP, WAV, NULL); play_cd_wav_mp3(STOP, MP3, NULL); job_starter((_main_data *) callback_data); return; } void mw_stop_button_clicked(GtkWidget *widget, gpointer callback_data) { play_cd_wav_mp3(STOP, CD, NULL); play_cd_wav_mp3(STOP, WAV, NULL); play_cd_wav_mp3(STOP, MP3, NULL); return; } void mw_cddb_button_clicked(GtkWidget *widget, gpointer callback_data) { _main_data *main_data; main_data = (_main_data *) callback_data; cddb_main((_main_data *) callback_data); return; } void mw_exit_button_clicked(GtkWidget *widget, gpointer callback_data) { int mode; mode = *(int *) callback_data; ripperX_exit(NULL, NULL); return; } GtkWidget *main_window_handler(int ops, const char *statusbar_msg, _main_data *main_data) { static GtkWidget *main_frame, *statusbar; static int saved_mode; static int count = 0; static struct { GtkWidget *button; char **xpm; void (*func)(GtkWidget*, void*); gpointer callback_data; int arrangement; /* If arrangement is TRUE, it will be packed using gtk_pack_start * function. Otherwise, it will use gtk_pack_end function */ const char *tooltip; } buttons[] = { { NULL, config_xpm, mw_config_button_clicked, NULL, TRUE, N_("Configuration") }, { NULL, scan_xpm, mw_scan_button_clicked, NULL, TRUE, N_("Scan CD") }, { NULL, stop_xpm, mw_stop_button_clicked, NULL, TRUE, N_("Stop playing") }, { NULL, cddb_xpm, mw_cddb_button_clicked, NULL, TRUE, N_("Get track titles from CDDB server") }, { NULL, go_xpm, mw_go_button_clicked, NULL, TRUE, N_("Start ripping&encoding") }, { NULL, exit_xpm, mw_exit_button_clicked, NULL, FALSE, N_("Exit the program") }, }; buttons[ 0 ].callback_data = (gpointer) main_data; buttons[ 1 ].callback_data = (gpointer) main_data; buttons[ 3 ].callback_data = (gpointer) main_data; buttons[ 4 ].callback_data = (gpointer) main_data; buttons[ 5 ].callback_data = (gpointer) & saved_mode; switch(ops) { case WIDGET_CREATE : { /* Variables used only when creating widget */ GtkWidget *main_window, *bbox, *vbox; GtkTooltips *tooltips; GtkWidget *pixmap; GdkPixmap *gdk_pixmap; GdkBitmap *mask; GtkStyle *style; GdkGC *gc; GdkColormap *colormap; static GdkColor tooltips_bg; int i, num_buttons; char welcome_msg_buf[ 100 ]; num_buttons = sizeof(buttons) / sizeof(buttons[ 0 ]); main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_widget_set_name(main_window, "main window"); gtk_widget_set_size_request(main_window, 508, 406); gtk_widget_realize(main_window); tooltips = gtk_tooltips_new(); colormap = gdk_window_get_colormap(main_window->window); tooltips_bg.red = 61669; tooltips_bg.green = 59113; tooltips_bg.blue = 35979; gdk_color_alloc(colormap, &tooltips_bg); /* gtk_tooltips_set_colors ( tooltips, &tooltips_bg, &main_window->style->fg[ GTK_STATE_NORMAL ] );*/ g_object_set_data(G_OBJECT(main_window), "tooltips", tooltips); g_signal_connect(G_OBJECT(main_window), "destroy", G_CALLBACK(ripperX_exit), NULL); g_signal_connect(G_OBJECT(main_window), "delete_event", G_CALLBACK(ripperX_exit), NULL); /* Create a vbox to contain things */ vbox = gtk_vbox_new(FALSE, 0); gtk_container_add(GTK_CONTAINER(main_window), vbox); gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); gtk_widget_realize(vbox); gtk_widget_show(vbox); /* Create button box & buttons */ bbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), bbox, FALSE, FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(bbox), 0); gtk_widget_realize(bbox); gtk_widget_show(bbox); /* logo */ style = gtk_widget_get_default_style(); gc = style->black_gc; gdk_pixmap = gdk_pixmap_create_from_xpm_d(bbox->window, &mask, &style->bg[ GTK_STATE_NORMAL ], ripperX_xpm); pixmap = gtk_pixmap_new(gdk_pixmap, mask); gtk_box_pack_start(GTK_BOX(bbox), pixmap, FALSE, FALSE, 0); for(i = 0; i < num_buttons; i++) { /* Create pixmap */ style = gtk_widget_get_default_style(); gc = style->black_gc; gdk_pixmap = gdk_pixmap_create_from_xpm_d(bbox->window, &mask, &style->bg[ GTK_STATE_NORMAL ], buttons[ i ].xpm); pixmap = gtk_pixmap_new(gdk_pixmap, mask); /* Pack pixmap into button */ buttons[ i ].button = gtk_button_new(); gtk_container_add(GTK_CONTAINER(buttons[ i ].button), pixmap); g_signal_connect(G_OBJECT(buttons[ i ].button), "clicked", G_CALLBACK(buttons[ i ].func), (gpointer) buttons[ i ].callback_data); if(buttons[ i ].arrangement == TRUE) { gtk_box_pack_start(GTK_BOX(bbox), buttons[ i ].button, FALSE, FALSE, 0); } else { gtk_box_pack_end(GTK_BOX(bbox), buttons[ i ].button, FALSE, FALSE, 0); } gtk_tooltips_set_tip(tooltips, buttons[ i ].button, buttons[ i ].tooltip, NULL); } /* Create main frame */ main_frame = gtk_frame_new("ripperX"); gtk_box_pack_start(GTK_BOX(vbox), main_frame, TRUE, TRUE, 0); statusbar = gtk_statusbar_new(); gtk_box_pack_end(GTK_BOX(vbox), statusbar, FALSE, FALSE, 0); /* Push welcome message */ sprintf(welcome_msg_buf, " RipperX, v%s", VERSION); gtk_statusbar_push(GTK_STATUSBAR(statusbar), 1, welcome_msg_buf); /* Read main_data & Create select window here */ count = scan_cd(main_data); select_frame_handler(WIDGET_CREATE, 0, main_data); select_frame_handler(SF_SYNC_SELECT_FRAME, 0, main_data); gtk_widget_show_all(main_window); /* Do a CDDB lookup for this CD only if cd is actually is drive */ if(config.cddb_config.auto_lookup && !count) { cddb_main(main_data); } } /* go on and set mode to select mode */ case MW_MODE_SELECT : saved_mode = ops; /* where now is used by ripperX_exit */ where_now = SELECT_FRAME; gtk_widget_set_sensitive(buttons[ 0 ].button, TRUE); gtk_widget_set_sensitive(buttons[ 1 ].button, TRUE); gtk_widget_set_sensitive(buttons[ 2 ].button, TRUE); /* disable cddb and go buttons since no cd anyway... prevent stupid errors*/ if(count) { gtk_widget_set_sensitive(buttons[ 3 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 4 ].button, FALSE); } else { gtk_widget_set_sensitive(buttons[ 3 ].button, TRUE); gtk_widget_set_sensitive(buttons[ 4 ].button, TRUE); } gtk_widget_set_sensitive(buttons[ 5 ].button, TRUE); return main_frame; case MW_MODE_STATUS : saved_mode = ops; /* where now is used by ripperX_exit */ where_now = STATUS_FRAME; gtk_widget_set_sensitive(buttons[ 0 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 1 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 2 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 3 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 4 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 5 ].button, TRUE); return main_frame; case MW_MODE_CONFIG : saved_mode = ops; /* where now is used by ripperX_exit */ where_now = CONFIG_WINDOW; gtk_widget_set_sensitive(buttons[ 0 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 1 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 2 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 3 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 4 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 5 ].button, TRUE); return main_frame; case MW_CLEAR_STATUSBAR : while(--count >= 0) { gtk_statusbar_pop(GTK_STATUSBAR(statusbar), 1); } count++; return main_frame; case MW_UPDATE_STATUSBAR : count++; gtk_statusbar_push(GTK_STATUSBAR(statusbar), 1, statusbar_msg); return main_frame; case MW_REQUEST_MF : return main_frame; case NO_CD_INDRIVE: gtk_widget_set_sensitive(buttons[ 3 ].button, FALSE); gtk_widget_set_sensitive(buttons[ 4 ].button, FALSE); return main_frame; case CD_INDRIVE: gtk_widget_set_sensitive(buttons[ 3 ].button, TRUE); gtk_widget_set_sensitive(buttons[ 4 ].button, TRUE); return main_frame; } return main_frame; } static int check_dirs() { long wav_free, mp3_free; int rc; rc = check_dir(config.wav_path); switch(rc) { case MISC_DOES_NOT_EXISTS: rc = dialog_handler(WIDGET_CREATE, FALSE, 7, 0, NULL, NULL, 0); if(!rc) { return 0; } else { if(create_dir(config.wav_path) != 0) { err_handler(29, NULL); return 0; } } break; case MISC_NOT_DIR: case MISC_NOT_WRITABLE: err_handler(27, NULL); return 0; break; } rc = check_dir(config.mp3_path); switch(rc) { case MISC_DOES_NOT_EXISTS: rc = dialog_handler(WIDGET_CREATE, FALSE, 8, 0, NULL, NULL, 0); if(!rc) { return 0; } else { if(create_dir(config.mp3_path) != 0) { err_handler(30, NULL); return 0; } } break; case MISC_NOT_DIR: case MISC_NOT_WRITABLE: err_handler(28, NULL); return 0; break; } wav_free = check_free_space(config.wav_path); mp3_free = check_free_space(config.mp3_path); if(wav_free < 500 * 1024) { /* warn if less than 500 MB free on wav partition */ rc = dialog_handler(WIDGET_CREATE, FALSE, 5, 0, NULL, NULL, 0); if(!rc) { return 0; } } if(wav_free != mp3_free && mp3_free < 100 * 1024) { /* only warn if on different partition and less * than 100 MB free */ rc = dialog_handler(WIDGET_CREATE, FALSE, 6, 0, NULL, NULL, 0); if(!rc) { return 0; } } /* good to go */ return 1; } ripperX-2.8.0/src/main_window_handler.h000066400000000000000000000015511233655711300201320ustar00rootroot00000000000000#ifndef MAIN_WINDOW_HANDLER_H #define MAIN_WINDOW_HANDLER_H #include "config.h" #include "common.h" #include enum MainWindow { MW_MODE_SELECT = 100, MW_MODE_STATUS, MW_MODE_CONFIG, MW_CLEAR_STATUSBAR, MW_UPDATE_STATUSBAR, MW_REQUEST_MF, NO_CD_INDRIVE, CD_INDRIVE }; /* Creates main window. Returns the pointer to main frame which will be * used by select frame and update frames. ops can be one of WIDGET_CREATE, * MW_MODE_SELECT, MW_MODE_STATUS, MW_MODE_CONFIG, MW_UPDATE_STATUSBAR * * * main_data is used to install button callbacks */ GtkWidget *main_window_handler(int ops, const char *status_bar_msg, _main_data *main_data); void mw_scan_button_clicked(GtkWidget *widget, gpointer callback_data); void mw_cddb_button_clicked(GtkWidget *widget, gpointer callback_data); #endif ripperX-2.8.0/src/misc_utils.c000066400000000000000000000620761233655711300163010ustar00rootroot00000000000000#include "config.h" #include #include #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #include #ifdef HAVE_UNISTD_H # include # include # include #endif #ifdef HAVE_DIRENT_H # include #else # define dirent direct # ifdef HAVE_SYS_NDIR_H # include # endif # ifdef HAVE_SYS_DIR_H # include # endif # ifdef HAVE_NDIR_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_FCNTL_H # include #endif #include #include #include #include #include #include #include #include "misc_utils.h" #include int execute_using_shell(const char *command) { return execlp(config.shell_for_execution, config.shell_for_execution, "-c", command, NULL); } int parse_rx_format_string(char **target, char *format, int track_no, const char *artist, const char *album, const char *year, const char *song) { int s, d, n, pass, totlen = 0; char ch; const char *tmp; char *bp; char track_no_str[ 4 ]; track_no_str[ 0 ] = 0; if(track_no >= 0) { snprintf(track_no_str, sizeof(track_no_str), "%02d", track_no + 1); } for(pass = 0; pass <= 1; ++pass) { for(s = d = 0; format[ s ] != 0; ++s) { // determine space character and check for error if(format[ s ] == '%') { ch = format[ s + 1 ]; if(ch == '\0') { return -1; } else if(ch == '%' || ch == '#' || ch == 'a' || ch == 'v' || ch == 'y' || ch == 's') { s += 1; } else if(ch == ' ') { ch = format[ s + 2 ]; if(ch == '\0') { return -1; } if(ch == '%' || ch == '#' || ch == 'a' || ch == 'v' || ch == 'y' || ch == 's') { s += 2; } } else { return -1; } // determine what to copy tmp = NULL; switch(format[ s ]) { case '%' : tmp = "%"; break; case '#' : tmp = track_no_str; break; case 'a' : tmp = artist; break; case 'v' : tmp = album; break; case 'y' : tmp = year; break; case 's' : tmp = song; break; } // expand n = strlen(tmp); if(!pass) { totlen += n; } else { strcpy(bp + d, tmp); d += n; } } else { if(!pass) { totlen += 1; } else { bp[ d++ ] = format[ s ]; } } } if(!pass) { mk_buf(target, totlen + 1); bp = *target; } } bp[ d ] = '\0'; return 0; } char *time_to_readable(time_t sec) { static char buf[ 10 ]; sprintf(buf, "%2d:%02d", (int) sec / 60, (int) sec % 60); return buf; } char *length_to_readable(unsigned length) { time_t sec; sec = (float) length / CD_SECTORS_PER_SEC; return time_to_readable(sec); } char *expand_tilde(char *path) { static char buf[ MAX_FILE_PATH_LENGTH + MAX_FILE_NAME_LENGTH ]; if(path[ 0 ] != '~') { return path; } strcpy(buf, getenv("HOME")); strcpy(buf + strlen(buf), path + 1); return buf; } char *construct_file_name(const char *path, const char *name) { int offset; static char buf[ MAX_FILE_PATH_LENGTH + MAX_FILE_NAME_LENGTH ]; strcpy(buf, path); offset = strlen(buf) - 1; if(buf[ offset ] != '/') { buf[ ++offset ] = '/'; } offset++; strcpy(buf + offset, name); return buf; } char *file_name_without_path(char *src) { int offset; offset = strlen(src) - 1; while(src[ offset ] != '/' && offset >= 0) { offset--; } return src + ++offset; } char *file_path_without_name(char *src) { static char buf[ MAX_FILE_PATH_LENGTH ]; int offset; offset = strlen(src) - 1; while(src[ offset ] != '/' && offset >= 0) { offset--; } strncpy(buf, src, offset); buf[offset] = '\0'; return buf; } void auto_append_extension(char *src, int type) { int offset; offset = strlen(src) - 4; /* aasdfasdfasd.wav */ /* ^ */ if(type == WAV) { if(strcmp(".wav", src + offset) != 0) { offset += 4; strcpy(src + offset, ".wav"); return; } } else if(type == OGG) { if(strcmp(".ogg", src + offset) != 0) { offset += 4; strcpy(src + offset, ".ogg"); return; } } else if(type == FLAC) { offset--; if(strcmp(".flac", src + offset) != 0) { offset += 5; strcpy(src + offset, ".flac"); return; } } else if(type == MP2) { if(strcmp(".mp2", src + offset) != 0) { offset += 4; strcpy(src + offset, ".mp2"); return; } } else if(type == MUSE) { if(strcmp(".mpc", src + offset) != 0) { offset += 4; strcpy(src + offset, ".mpc"); return; } } else { if(strcmp(".mp3", src + offset) != 0) { offset += 4; strcpy(src + offset, ".mp3"); return; } } } char *get_default_track_title(int track) { static char name_buf[ MAX_FILE_NAME_LENGTH ]; char *name_format = config.mp3_file_name_format; char track_no_buf[ 5 ]; int read_offset, write_offset; read_offset = -1; write_offset = 0; while(name_format[ ++read_offset ] != '\0') { if(name_format[ read_offset ] == '%') { snprintf(track_no_buf, 5, "%d", track + 1); strcpy(name_buf + write_offset, track_no_buf); write_offset += strlen(track_no_buf); } else { name_buf[ write_offset++ ] = name_format[ read_offset ]; } } name_buf[ write_offset ] = '\0'; return name_buf; } int is_str_blank(char *str) { int i = 0; if(!str) { return TRUE; } while(str[ i++ ] != '\0') if(!isspace(str[ i ]) && str[ i ] != '\0') { return FALSE; } return TRUE; } int high_ascii_to_low_ascii(unsigned char *p) { /* Convert ASCII 160-255 to closest matching, ASCII within 32-126 */ if(*p == 160) { *p = ' '; return 0; } if(*p == 161) { *p = 'i'; return 0; } if(*p == 162) { *p = 'c'; return 0; } if(*p == 163) { *p = 'E'; return 0; } if(*p == 164) { *p = 'o'; return 0; } if(*p == 165) { *p = 'Y'; return 0; } if(*p == 166) { *p = 'I'; return 0; } if(*p == 167) { *p = 'S'; return 0; } if(*p == 168) { *p = '-'; return 0; } if(*p == 169) { *p = 'c'; return 0; } if(*p == 170) { *p = 'a'; return 0; } if(*p == 171) { *p = '<'; return 0; } if(*p == 172 || *p == 173) { *p = '-'; return 0; } if(*p == 174) { *p = 'r'; return 0; } if(*p == 175) { *p = '-'; return 0; } if(*p == 176) { *p = 'o'; return 0; } if(*p == 177) { *p = '+'; return 0; } if(*p == 178) { *p = '2'; return 0; } if(*p == 179) { *p = '3'; return 0; } if(*p == 180) { *p = '.'; return 0; } if(*p == 181) { *p = 'u'; return 0; } if(*p == 182) { *p = 'P'; return 0; } if(*p == 183 || *p == 184) { *p = '.'; return 0; } if(*p == 185) { *p = '7'; return 0; } if(*p == 186) { *p = 'o'; return 0; } if(*p == 187) { *p = '>'; return 0; } if(*p >= 188 && *p <= 190) { *p = '4'; return 0; } if(*p == 191) { *p = '?'; return 0; } if(*p >= 192 && *p <= 198) { *p = 'A'; return 0; } if(*p == 199) { *p = 'C'; return 0; } if(*p >= 200 && *p <= 203) { *p = 'E'; return 0; } if(*p >= 204 && *p <= 207) { *p = 'I'; return 0; } if(*p == 208) { *p = 'D'; return 0; } if(*p == 209) { *p = 'N'; return 0; } if(*p >= 210 && *p <= 214) { *p = 'O'; return 0; } if(*p == 215) { *p = 'x'; return 0; } if(*p == 216) { *p = 'O'; return 0; } if(*p >= 217 && *p <= 220) { *p = 'U'; return 0; } if(*p == 221) { *p = 'Y'; return 0; } if(*p == 222) { *p = 'b'; return 0; } if(*p == 223) { *p = 'B'; return 0; } if(*p >= 224 && *p <= 230) { *p = 'a'; return 0; } if(*p == 231) { *p = 'c'; return 0; } if(*p >= 232 && *p <= 235) { *p = 'e'; return 0; } if(*p >= 236 && *p <= 239) { *p = 'i'; return 0; } if(*p == 240) { *p = 'o'; return 0; } if(*p == 241) { *p = 'n'; return 0; } if(*p >= 242 && *p <= 246) { *p = 'o'; return 0; } if(*p == 247) { *p = '-'; return 0; } if(*p == 248) { *p = 'o'; return 0; } if(*p >= 249 && *p <= 252) { *p = 'u'; return 0; } if(*p == 253) { *p = 'y'; return 0; } if(*p == 254) { *p = 'b'; return 0; } if(*p == 255) { *p = 'y'; return 0; } return 1; } void remove_non_ascii_chars(char *src) { for (unsigned char *p=(unsigned char*)src; *p; ++p) if (*p >= 160) high_ascii_to_low_ascii(p); } void remove_non_unix_characters(char *src) { char *w=src-1; for (char *p=src; *p; ++p) { switch(*p) { case '\\': case '*': case '?': case '<': case '>': case '|': case ':': // Evil chars unsafe for shell case '\'': case '"': case ';': break;// Skip char, shrink string default: unsigned char *up = reinterpret_cast(p); // Unprintable chars if(*up < 32 || (*up > 126 && *up < 160)) break; // Skip char, shrink string if(*up >= 160) high_ascii_to_low_ascii(up); *(++w) = *up; } } *(++w) = 0; } void convert_slashes(char *src, char c) { char *p; for(p = src; *p != 0; p++) { if(*p == '/') { *p = c; } } } void convert_spaces(char *src, char c) { char *p; for(p = src; *p != 0; p++) { if(*p == ' ') { *p = c; } } } /*************************************************** * * Function implementations immigrated from misc.c * */ char *get_string_piece(FILE *file, int delim) { /* gets one complete row from 'file' and save it in 'buffer'. buffer's memory will be freed and allocated to fit the stringsize automatically. */ char *buffer1 = (char *) malloc(1), *buffer2 = (char *) malloc(1); //*tmp = (char *) malloc(1024); std::auto_ptr tmp(new char[1024]); char **active=0, **inactive=0; int i = 0; strcpy(buffer1, ""); strcpy(buffer2, ""); strcpy(tmp.get(), ""); do { /*switch the frames*/ if(inactive == &buffer1) { active = &buffer1; inactive = &buffer2; } else { active = &buffer2; inactive = &buffer1; } /*get the next part, and handle EOF*/ if(fgets(tmp.get(), 1024, file) == NULL) { /* ok, so we reached the end of the file w/o finding the delimiter */ free(*active); return NULL; } free(*active); *active = (char *) malloc((++i) * 1024); sprintf(*active, "%s%s", *inactive, tmp.get()); } while(strchr(*active, delim) == NULL); free(*inactive); return *active; } char *get_ascii_file(FILE *file) { /* gets one complete row from 'file' and save it in 'buffer'. buffer's memory will be freed and allocated to fit the stringsize automatically. */ char *buffer1 = (char *) malloc(1), *buffer2 = (char *) malloc(1), *tmp = (char *) malloc(1024); char **active=0, **inactive=0; int i = 0; *buffer1 = *buffer2 = *tmp = 0; do { /*switch the frames*/ if(inactive == &buffer1) { active = &buffer1; inactive = &buffer2; } else { active = &buffer2; inactive = &buffer1; } /*get the next part, and handle EOF*/ if(fgets(tmp, 1024, file) == NULL) { free(*active); return *inactive; } *active = (char*)realloc(*active, ++i*1024); sprintf(*active, "%s%s", *inactive, tmp); } while(1); } void strip_trailing_space(char **string) { int i = strlen(*string) - 1; if(string == NULL || *string == NULL) { return; } while(isspace((*string)[ i ])) { i--; } string[0][ ++i ] = 0; } void strip_leading_space(char **string) { char *tmp = *string; if(string == NULL || *string == NULL) { return; } while(isspace(*tmp)) { tmp++; } if (tmp != *string) { memmove(*string, tmp, strlen(tmp)+1); } } char *string_append(char **dest, char *appendage) { char *holder; if(dest == NULL || appendage == NULL) { return NULL; } if(*dest != NULL) { holder = *dest; *dest = (char *) malloc(strlen(holder) + strlen(appendage) + 1); sprintf(*dest, "%s%s", holder, appendage); free(holder); } else { *dest = strdup(appendage); } return *dest; } FILE *socket_init(const char *server, short int port) { struct hostent *host; struct sockaddr_in socket_address; int hsocket; /* see if some default values have been set */ if(server == NULL) { return NULL; } host = gethostbyname(server); if(host == NULL) { return NULL; /* we don't know the host */ } /* set socket address */ memset(&socket_address, 0, sizeof(socket_address)); memcpy((char *) & socket_address.sin_addr, host->h_addr, host->h_length); socket_address.sin_family = host->h_addrtype; socket_address.sin_port = htons(port); /* get the actual socket handle */ hsocket = socket(host->h_addrtype, SOCK_STREAM, 0); if(hsocket < 0) /* we couldn't grab the socket */ { return NULL; } if(connect(hsocket, (struct sockaddr *) & socket_address, sizeof(socket_address)) < 0) { return NULL; } return fdopen(hsocket, "r+"); /* we made it */ } char *int2str(int integer) { char *newstr = (char *) malloc(10); sprintf(newstr, "%d", integer); return newstr; } long check_free_space(char *dir) { FILE *file; long len; char cmd[MAX_FILE_NAME_LENGTH]; snprintf(cmd, MAX_FILE_NAME_LENGTH - 1, "df -P '%s' 2>/dev/null | awk '{print $4}' | tail -1", dir); file = popen(cmd, "r"); fscanf(file, "%ld", &len); /* now read the length */ pclose(file); return len; } int check_dir(const char *dir) { int rc; struct stat ds; rc = access(dir, F_OK); if(rc != 0) { return MISC_DOES_NOT_EXISTS; } rc = stat(dir, &ds); if(rc != 0) { return MISC_NOT_DIR; } if(!S_ISDIR(ds.st_mode)) { return MISC_NOT_DIR; } rc = access(dir, X_OK | W_OK | R_OK); if(rc != 0) { return MISC_NOT_WRITABLE; } return MISC_OK; } int create_dir_2 (const char * path) { int rc = mkdir(path, 0777); if ((rc!=0) and (errno==ENOENT)) { //missing parent, create it and try again char *tmp = strdup(path); /* preserve our string */ char *parent = dirname(tmp); create_dir_2(parent); free(tmp); rc = mkdir(path, 0777); } return rc; } int create_dir(const char *path) { char *tmp = strdup(path); /* preserve our string */ char *parent = dirname(tmp); int rc = check_dir(parent); if(strcmp(parent, "/") == 0) { return -1; /* stop endless loop */ } if(rc == MISC_NOT_DIR || rc == MISC_NOT_WRITABLE) { return -1; } else if(rc == MISC_DOES_NOT_EXISTS) { /* recursively create */ if(create_dir(parent) != 0) { fprintf(stderr, "failed to create %s\n", parent); return -1; } } rc = mkdir(path, 0755); free(tmp); return rc; } int is_found(const char *plugin) { FILE *pf; char buffer[MAX_COMMAND_LENGTH]; char cmd[MAX_COMMAND_LENGTH]; snprintf(cmd, sizeof(cmd) -1, "%s 2>&1", plugin); pf = popen(cmd, "r"); if(pf == NULL) { return 0; } fgets(buffer, sizeof(buffer) - 1, pf); pclose(pf); if(strncmp(buffer, "sh:", 3) != 0) { return 1; } return 0; } static char *wd, *ed; static const char *wfext, *ecfext; int create_filenames_from_format(_main_data *main_data) { int i; int rc2; static char *df; i = strlen(config.wav_path) - 1; if(i >= 0 && config.wav_path[i] == '/') { config.wav_path[i] = 0; } i = strlen(config.mp3_path) - 1; if(i >= 0 && config.mp3_path[i] == '/') { config.mp3_path[i] = 0; } if(config.cddb_config.make_directories && config.cddb_config.dir_format_string[0]) { rc2 = parse_rx_format_string(&df, config.cddb_config.dir_format_string, -1, main_data->disc_artist, main_data->disc_title, main_data->disc_year, ""); if(rc2 < 0) { err_handler(RX_PARSING_ERR, "Check if the directory format string contains format characters other than %a %# %v %y or %s."); return 0; } remove_non_unix_characters(df); if(config.cddb_config.convert_spaces == TRUE) { convert_spaces(df, '_'); } if(strlen(df) > 0) { mk_strcat(&wd, config.wav_path, "/", df, "/", NULL); mk_strcat(&ed, config.mp3_path, "/", df, "/", NULL); create_dir(wd); create_dir(ed); } else { mk_strcat(&wd, config.wav_path, "/", NULL); mk_strcat(&ed, config.mp3_path, "/", NULL); } } else { mk_strcat(&wd, config.wav_path, "/", NULL); mk_strcat(&ed, config.mp3_path, "/", NULL); } if(config.auto_append_extension == TRUE) { wfext = ".wav"; if(config.encoder.type == OGG) { ecfext = ".ogg"; } else if(config.encoder.type == FLAC) { ecfext = ".flac"; } else if(config.encoder.type == MP2) { ecfext = ".mp2"; } else if(config.encoder.type == MUSE) { ecfext = ".mpc"; } else { ecfext = ".mp3"; } } else { wfext = ecfext = ""; } return 1; } int create_file_names_for_track(const _main_data *main_data, int track, char **wfp, char **efp) { static char *buffer; int rc; char *conv_str = NULL; rc = parse_rx_format_string(&buffer, config.cddb_config.format_string, track, main_data->disc_artist, main_data->disc_title, main_data->disc_year, main_data->track[ track ].title); if(rc < 0) { err_handler(RX_PARSING_ERR, _("Check if the filename format string contains format characters other than %a %# %v %y or %s.")); return 0; } if(buffer[0] == 0) { strcpy(buffer, main_data->track[ track ].title); } conv_str = g_locale_from_utf8(buffer, -1, NULL, NULL, NULL); remove_non_unix_characters(conv_str); convert_slashes(conv_str, '-'); if(config.cddb_config.convert_spaces == TRUE) { convert_spaces(conv_str, '_'); } if(wfp) { mk_strcat(wfp, wd, conv_str, wfext, NULL); } if(efp) { mk_strcat(efp, ed, conv_str, ecfext, NULL); } g_free(conv_str); return 1; } /* ** get_track_title - Copy track artist & title for specified track from ** main_data to a specified location in freedb format. */ void get_track_title(char *dest, _main_data *main_data, int tno) { MainData::Track *tk_p = &(main_data->track[tno]); if(tk_p->artist) { sprintf(dest, "%s / %s", tk_p->artist, tk_p->title); } else { strncpy(dest, tk_p->title, MAX_FILE_NAME_LENGTH); } } /* ** put_track_title - Put track artist & title in freedb format into ** main_data for specified track number. ** NOTE: A track artist can be specified */ void put_track_title(char *src, _main_data *main_data, int tno) { MainData::Track *tk_p = &(main_data->track[tno]); char *sp = src, *cp, *ep; int c; /* Strip leading blanks */ while(isspace(*sp)) { ++sp; } /* Split off track artist if specified */ if((cp = rindex(sp, '/'))) { for(ep = cp - 1; ep > sp && isspace(*ep); --ep) continue; c = *(++ep); *ep = 0; mk_str(&(tk_p->artist), sp); *ep = c; for(sp = cp + 1; isspace(*sp); ++sp) continue; } else { mk_buf(&(tk_p->artist), 0); } /* Strip trailing spaces */ for(ep = sp + strlen(sp) - 1; isspace(*ep); --ep) continue; memcpy(tk_p->title, sp, ep - sp + 1); tk_p->title[ep - sp + 1] = 0; } /* dup_str - return a copy of a string in allocated memory */ char *dup_str(char *inp) { char *out; int len; if(!inp || (len = strlen(inp)) == 0) { return (char *)0; } out = (char*)malloc(len + 1); return strcpy(out, inp); } /* ** mk_buf - allocate a buffer of a specified size & save the pointer. ** If the pointer was non-null, free the storage previously ** pointed to. */ void mk_buf(char **ptr, int size) { if (size > 0) if ((*ptr = (char*)realloc(*ptr, size)) == 0) { perror ("Unable to allocate memory"); exit(3); } } /* ** mk_str - Make a copy of a string in allocated storage saving a pointer in ptr. ** If *ptr was non-null, free previously allocated storage. */ void mk_str(char **ptr, char *inp) { int n = strlen(inp); mk_buf(ptr, n + 1); if(n > 0) { strcpy(*ptr, inp); } } /* ** mk_strcat - Make a new string by concatenating the specified strings, ** in order, & storing the result in allocated storage. A ** pointer to the result will be stored in *ptr. The last ** argument must be a null pointer, marking the end of the ** list of strings to be concatenated. ** If *ptr is non-null, free previously allocated storage. */ void mk_strcat(char **ptr, ...) { va_list ap; char *cp, *cpb; int tlen = 0; va_start(ap, ptr); while((cp = va_arg(ap, char *))) { tlen += strlen(cp); } va_end(ap); mk_buf(ptr, tlen + 1); va_start(ap, ptr); for(cpb = *ptr; (cp = va_arg(ap, char *)); cpb += strlen(cp)) { strcpy(cpb, cp); } va_end(ap); } ripperX-2.8.0/src/misc_utils.h000066400000000000000000000037611233655711300163020ustar00rootroot00000000000000#ifndef MISC_UTILS_H #define MISC_UTILS_H #include "../config.h" #include "common.h" #include enum MiscUtils { MISC_OK, MISC_NOT_DIR, MISC_NOT_WRITABLE, MISC_DOES_NOT_EXISTS }; /* contents immigrated from misc.h */ char *get_string_piece(FILE *file, int delim); char *get_ascii_file(FILE *file); void strip_trailing_space(char **string); void strip_leading_space(char **string); char *string_append(char **dest, char *appendage); FILE *socket_init(const char *server, short int port); char *int2str(int integer); /* end of misc.h */ int add_argv(char **dest, char *content); int execute_using_shell(const char *command) ; int parse_rx_format_string(char **target, char *format, int track_no, const char *artist, const char *album, const char *year, const char *song); // track_no starts from 0 // %% % // %a Artist // %v album (Volume) // %y Year // %s Song char *length_to_readable(unsigned length); char *time_to_readable(time_t sec); char *construct_file_name(const char *path, const char *name); char *expand_tilde(char *path); char *file_name_without_path(char *src); char *file_path_without_name(char *src); void auto_append_extension(char *src, int type); char *get_default_track_title(int track); void remove_non_ascii_chars(char *src); void convert_slashes(char *src, char c); void convert_spaces(char *src, char c); int is_str_blank(char *str); long check_free_space(char *dir); int check_dir(const char *dir); int create_dir(const char *path); int is_found(const char *plugin); int create_filenames_from_format(_main_data *main_data); int create_file_names_for_track(const _main_data *main_data, int track, char **wfp, char **efp); void get_track_title(char *dest, _main_data *main_data, int tno); void put_track_title(char *src, _main_data *main_data, int tno); char *dup_str(char *inp); void mk_buf(char **ptr, int size); void mk_str(char **ptr, char *inp); void mk_strcat(char **ptr, ...); #endif ripperX-2.8.0/src/players_manipulation.c000066400000000000000000000064621233655711300203620ustar00rootroot00000000000000#include "config.h" #include #ifdef HAVE_UNISTD_H # include # include #endif #include #ifdef HAVE_SYS_STAT_H # include #endif #ifdef HAVE_FCNTL_H # include #endif #ifdef HAVE_SYS_WAIT_H # include #endif #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #include "misc_utils.h" #include "players_manipulation.h" #include #include namespace { char *players_create_argv(enum PlayerOps ops, enum CommonEncoderType cd_wav_mp3, const char *playit) { int i, j, d; char *buf = new char[ MAX_COMMAND_LENGTH ]; char *command = NULL; switch(cd_wav_mp3) { case CD : if(ops == PLAY) { command = config.cd_player.play_command; } else { command = config.cd_player.stop_command; } break; case WAV : command = config.wav_player.command; break; case MP3 : command = config.mp3_player.command; break; } // expand '%' strcpy(buf, command); for(i = 0, d = 0; command[ i ] != '\0';) if(command[ i ] == '%') { for(j = 0; playit[ j ] != '\0';) { buf[ d++ ] = playit[ j++ ]; } i++; } else { buf[ d++ ] = command[ i++ ]; } buf[ d ] = '\0'; return buf; } } int play_cd_wav_mp3(PlayerOps ops, CommonEncoderType cd_wav_mp3, const char *playit) { static int null_fd, stderr_fd; static pid_t saved_pid; static int is_first_time = 1; pid_t pid; if(is_first_time) { /* Open /dev/null */ if((null_fd = open("/dev/null", O_WRONLY)) < 0) { err_handler(NULL_OPEN_ERR, NULL); return FALSE; } is_first_time = 0; } while(waitpid(-1, NULL, WNOHANG) > 0) ; /* Create appropriate argvs */ if(ops == PLAY || cd_wav_mp3 == CD) { char * arg; if((arg = players_create_argv(ops, cd_wav_mp3, playit)) == NULL) { return FALSE; } /* Fork */ if((pid = fork()) < 0) { err_handler(FORK_ERR, NULL); delete [] arg; return FALSE; } if(pid == 0) { /* This code will be excuted in the child process */ /* Throw away stdout and stderr */ stderr_fd = dup(2); dup2(null_fd, 2); dup2(null_fd, 1); /* Execute the player */ execute_using_shell(arg); dup2(stderr_fd, 2); perror(_("Failed to exec player :")); _exit(127); } if(ops == PLAY) { saved_pid = pid; } delete [] arg; return TRUE; } else { if(saved_pid > 0) if(waitpid(saved_pid, NULL, WNOHANG) == 0) { kill(saved_pid, SIGTERM); waitpid(saved_pid, NULL, 0); } pid = -1; return TRUE; } } ripperX-2.8.0/src/players_manipulation.h000066400000000000000000000010471233655711300203610ustar00rootroot00000000000000#ifndef PLAYERS_MANIPULATION_H #define PLAYERS_MANIPULATION_H #include "common.h" enum PlayerOps { PLAY, STOP }; int play_cd_wav_mp3(enum PlayerOps ops, enum CommonEncoderType cd_wav_mp3, const char *playit); /* The player. This function return TRUE on success. FALSE on failure. * This function uses players_create_argv function. * ops selects to play or to stop. playit * is a string which contains the number of track if ops is CD(that is "3". * Otherwise, it should contain the name of file to play */ #endif ripperX-2.8.0/src/ripper_encoder_manipulation.c000066400000000000000000000324051233655711300216770ustar00rootroot00000000000000#include "config.h" #include #ifdef STDC_HEADERS # include # include #else # ifdef HAVE_STDLIB_H # include # endif #endif #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #ifdef HAVE_UNISTD_H # include # include # include #endif #ifdef HAVE_SYS_STAT_H # include #endif #include #ifdef HAVE_FCNTL_H # include #endif #ifdef HAVE_SYS_WAIT_H # include #endif #ifndef WEXITSTATUS # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) #endif #ifndef WIFEXITED # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif #include #include #include #include #include "ripper_encoder_manipulation.h" #include "misc_utils.h" static int process_cd_contents_output(_main_data *main_data, int fd) { FILE *stream; char buf[ BUF_LENGTH_FOR_F_SCAN_CD ]; char errmsg[ 1024 ]; char *temp; int err_code = CD_PARANOIA_MISC_ERR; // err... what should it default to? int cdparanoia_toc = FALSE; // assume failure to get the table of contents /* Reopen the pipe as stream */ if((stream = fdopen(fd, "r")) == NULL) { err_handler(FDOPEN_ERR, _("Cannot reopen pty as stream")); return - 1; } temp = fgets(buf, sizeof(buf), stream); /* make sure we get cdparanoia, or else there is a problem */ if(strncmp("cdparanoia III", buf, 14) != 0) { strcpy(errmsg, buf); err_handler(CD_PARANOIA_MISC_ERR, errmsg); return - 1; } // read lines until we see "Table of contents" or another error message do { temp = fgets(buf, sizeof(buf), stream); // this is a good response if(strncmp("Table of contents", temp, 17) == 0) { cdparanoia_toc = TRUE; break; } // there is no disc in the drive if(strncmp("Unable to open disc.", temp, 20) == 0) { err_code = CD_PARANOIA_NO_DISC; break; } // the user does not have permissions to open the cdrom // (when -sv is not used) if(strncmp("/dev/cdrom exists but isn\'t accessible.", temp, 39) == 0) { err_code = CD_PARANOIA_NO_PERMS; break; } // the user does not have permissions to open the cdrom // (when -d is used) or the device does not exist if(strncmp("Unable to open cdrom drive", temp, 26) == 0) { err_code = CD_PARANOIA_MISC_ERR; break; } // the user does not have permissions to open the cdrom // (when -sv is used) // OR // there are no CDROM devices available if(strncmp("No cdrom drives accessible to", temp, 29) == 0) { err_code = CD_PARANOIA_MISC_ERR; break; } } while(temp != NULL); /* Just to be sure, If we weren't able to read from pty it may * indicate exec failure */ if(temp == NULL) { err_handler(PIPE_READ_ERR, NULL); return - 1; } // if we didn't get a TOC, display an error message if(cdparanoia_toc != TRUE) { //strncpy( errmsg, buf, BUF_LENGTH_FOR_F_SCAN_CD ); //err_handler( err_code, errmsg ); err_handler(err_code, NULL); return - 1; } /* Skip two more lines */ for(int i = 0; i < 2; i++) { fgets(buf, sizeof(buf), stream); } /* Process the output from cdparanoia */ int track_num = 0; temp = fgets(buf, sizeof(buf), stream); while(temp != NULL && strlen(buf) > 5) { /* fix for cdparanoia 9.7 */ if(strncmp("TOTAL", buf, 5) != 0) { int read_offset = 0; main_data->add_track(); MainData::Track & track = main_data->back_track(); /* Skip unnecessary parts */ while(*(buf + read_offset++) != '.') ; /* Read length */ sscanf(buf + read_offset, "%u", &track.length); /* Skip */ while(*(buf + read_offset++) != '[') ; /* Read begin */ while(*(buf + read_offset++) != ']'); sscanf(buf + read_offset, "%u", &track.begin); /* Get default track title */ strncpy(track.title, get_default_track_title(track_num), MAX_FILE_NAME_LENGTH); track_num++; } temp = fgets(buf, sizeof(buf), stream); } /* Record the number of tracks */ //main_data->num_tracks = track_num; /* Record the total length */ main_data->total_length = (int)((main_data->track[track_num - 1].begin + main_data->track[track_num - 1].length) / 75); /* Close the pipe */ fclose(stream); return 0; } //Scan info from CD into main_data int scan_cd(_main_data *main_data) { pid_t pid; char tmp[ MAX_COMMAND_LENGTH ]; int null_fd, pty_fd, tty_fd; int return_value; /* Open a pty */ if(openpty(&pty_fd, &tty_fd, NULL, NULL, NULL)) { err_handler(PTY_OPEN_ERR, NULL); return - 1; } /* Open /dev/null */ if((null_fd = open("/dev/null", O_WRONLY)) < 0) { err_handler(NULL_OPEN_ERR, NULL); return - 1; } /* Create argvs */ sprintf(tmp, "%s -Q", config.ripper.ripper); /* Fork */ if((pid = fork()) < 0) { err_handler(FORK_ERR, NULL); return - 1; } if(pid == 0) { int stderr_fd; /* This code will be excuted in the child process */ /* Save stderr before attaching to the tty */ stderr_fd = dup(2); dup2(tty_fd, 2); /* Throw away stdout to the black hole */ dup2(null_fd, 1); /* Execute cdparanoia*/ execute_using_shell(tmp); dup2(stderr_fd, 2); perror(_("Failed to exec cdparanoia :")); _exit(127); } close(null_fd); return_value = process_cd_contents_output(main_data, pty_fd); /* Kill again the zombie */ waitpid(pid, NULL, 0); return return_value; } // // stdout-\ pty/tty stdout -\ pty/tty // ripper/encoder ---------> plugin ---------> ripperX // stderr-/ stderr // // // static int execute_ripper_encoder_with_plugin(const char *pg_com, const char *pi_com, int *program_pid, int *plugin_pid, int *read_fd) { int pty_fd0, tty_fd0, pty_fd1, tty_fd1; pid_t pid; /* Open two pty/tty pairs */ if(openpty(&pty_fd0, &tty_fd0, NULL, NULL, NULL)) { err_handler(PTY_OPEN_ERR, NULL); return - 1; } if(openpty(&pty_fd1, &tty_fd1, NULL, NULL, NULL)) { close(pty_fd0); close(tty_fd0); err_handler(PTY_OPEN_ERR, NULL); return - 1; } // fork & exec & link plugin if((pid = fork()) < 0) { close(pty_fd0); close(tty_fd0); close(pty_fd1); close(tty_fd1); err_handler(FORK_ERR, NULL); return - 1; } *plugin_pid = pid; if(pid == 0) { // We're in the child process // save stderr int stderr_fd; stderr_fd = dup(2); dup2(pty_fd0, 0); dup2(tty_fd1, 1); setpgrp(); execute_using_shell(pi_com); dup2(stderr_fd, 2); perror(_("Failed to exec plugin")); _exit(127); } // we're in the parent process close(pty_fd0); close(tty_fd1); // fork the real program if((pid = fork()) < 0) { close(tty_fd0); close(pty_fd1); kill(*plugin_pid, SIGTERM); err_handler(FORK_ERR, NULL); return - 1; } *program_pid = pid; if(pid == 0) { // We're in the child process // save stderr int stderr_fd; stderr_fd = dup(2); dup2(tty_fd0, 1); dup2(tty_fd0, 2); setpgrp(); execute_using_shell(pg_com); dup2(stderr_fd, 2); perror(_("Failed to exec the specified program")); _exit(127); } close(tty_fd0); *read_fd = pty_fd1; return 0; } int start_ripping_encoding(int type, int begin, int length, int track, const char *wav_file_name, const char *mp3_file_name, int *program_pid, int *plugin_pid, int *read_fd) { char *tmp; char plugin[ MAX_COMMAND_LENGTH ]; char command[ MAX_COMMAND_LENGTH ]; // Debian modification for alternate plugin location // char debian_path[ MAX_COMMAND_LENGTH ]; char *path = getenv("PATH"); char *found = strstr(path, "/usr/lib/ripperx:"); if(found == NULL) /* Only add the path if it isn't already present. */ { strcpy(debian_path, "/usr/lib/ripperx:"); strcat(debian_path, getenv("PATH")); setenv("PATH", debian_path, 1); } // end Debian modifications // parse/expand program command if(type == WAV) { snprintf(command, sizeof(command), "%s %d '%s'", config.ripper.ripper, track + 1, wav_file_name); } else { // hack to support the interface for mp3enc if(!strcmp(config.encoder.encoder, "mp3enc")) snprintf(command, sizeof(command), "nice -n %i %s -v -if '%s' -of '%s'", config.encoder.priority, config.encoder.full_command, wav_file_name, mp3_file_name); else if(!strcmp(config.encoder.encoder, "flac")) snprintf(command, sizeof(command), "nice -n %i %s -o '%s' '%s'", config.encoder.priority, config.encoder.full_command, mp3_file_name, wav_file_name); else if(!strcmp(config.encoder.encoder, "oggenc")) snprintf(command, sizeof(command), "nice -n %i %s -o '%s' '%s'", config.encoder.priority, config.encoder.full_command, mp3_file_name, wav_file_name); else snprintf(command, sizeof(command), "nice -n %i %s '%s' '%s'", config.encoder.priority, config.encoder.full_command, wav_file_name, mp3_file_name); } // parse/expand plugin command // plugin_executable beginning_sector length_in_sector if(type == WAV) { tmp = config.ripper.plugin; } else { tmp = config.encoder.plugin; } snprintf(plugin, sizeof(plugin), "%s %d %d", tmp, begin, length); // execute if(execute_ripper_encoder_with_plugin(command, plugin, program_pid, plugin_pid, read_fd) < 0) { return - 1; } return 0; } static int parse_plugin_output(char *out, double *progress, char *msg) { int pos, done, s, d; char ch; msg[ 0 ] = '\0'; *progress = -1; pos = 0; while(out[ pos ] != '\0' && out[ pos ] != '[') { pos++; } if(out[ pos ] != '[') { return PLUGIN_MSG_PARSE_ERR; } pos ++; // read the type character ch = out[ pos++ ]; if(ch == 'P') { // if it's a msg reporting progess, read the percentage sscanf(out + pos, "%lf", progress); } while(out[ pos ] != '\0' && out[ pos ] != '"' && out[ pos ] != ']') { pos++; } if(out[ pos ] == '"') { // we've got some message pos++; // copy the message done = 0; s = pos; d = 0; while(!done) { if(out[ s ] != '\\' && out[ s ] != '"' && out[ s ] != ']' && out[ s ] != '\0') { msg[ d++ ] = out[ s++ ]; } else if(out[ s ] == '\\') { msg[ d ] = out[ s + 1 ]; s += 2; d++; } else { msg[ d ] = '\0'; done = 1; } } } switch(ch) { case 'P' : if(*progress < 0 || *progress > 1) { return PLUGIN_MSG_PARSE_ERR; } return PLUGIN_PROGRESS_MSG; case 'W' : if(msg[ 0 ] == '\0') { return PLUGIN_MSG_PARSE_ERR; } return PLUGIN_WARN_MSG; case 'E' : if(msg[ 0 ] == '\0') { return PLUGIN_MSG_PARSE_ERR; } return PLUGIN_ERR_MSG; default : return PLUGIN_MSG_PARSE_ERR; } } int read_and_process_plugin_output(int read_fd, double *progress, char *msg) { int bytes_avail; char buf[ MAX_PLUGIN_OUTPUT_LENGTH ]; int i; ioctl(read_fd, FIONREAD, &bytes_avail); if(bytes_avail <= 0) // the plugin hasn't printed anything yet. return PLUGIN_NO_MSG_AVAILABLE { return PLUGIN_NO_MSG_AVAILABLE; } // all the lines are terminated with '\n' and if the plugin started to // print something then it'll finish it soon. so using fgets is // reasonable i = 0; do { if(read(read_fd, buf + i++, 1) <= 0) { return PLUGIN_MSG_PARSE_ERR; } } while(i < sizeof(buf) && buf[ i - 1 ] != '\n'); buf[ i - 1 ] = '\n'; return parse_plugin_output(buf, progress, msg); } ripperX-2.8.0/src/ripper_encoder_manipulation.h000066400000000000000000000015351233655711300217040ustar00rootroot00000000000000#ifndef RIPPER_ENCODER_MANIPULATION_H #define RIPPER_ENCODER_MANIPULATION_H #include "common.h" #define BUF_LENGTH_FOR_F_SCAN_CD 150 #define MAX_PLUGIN_OUTPUT_LENGTH 1024 // return values of read_and_process... & parse_plugin_output enum Plugin { PLUGIN_MSG_PARSE_ERR = -2, PLUGIN_NO_MSG_AVAILABLE = -1, PLUGIN_PROGRESS_MSG = 0, PLUGIN_WARN_MSG = 1, PLUGIN_ERR_MSG = 2 }; int scan_cd(_main_data *main_data); int start_ripping_encoding(int type, int begin, int length, int track, const char *src_file_name, const char *dest_file_name, int *program_pid, int *plugin_pid, int *read_fd); // type is either WAV(rip) or MP3(encode) int read_and_process_plugin_output(int read_fd, double *progress, char *msg); #endif ripperX-2.8.0/src/select_frame_handler.c000066400000000000000000000537231233655711300202530ustar00rootroot00000000000000#include "config.h" #include #ifdef HAVE_STRING_H # if !defined STDC_HEADERS && defined HAVE_MEMORY_H # include # endif # include #else # ifdef HAVE_STRINGS_H # include # endif #endif #include #include #ifdef HAVE_LINUX_CDROM_H #include #include #include #include #include #endif #include "misc_utils.h" #include "interface_common.h" #include "main_window_handler.h" #include "players_manipulation.h" #include "select_frame_handler.h" #include "gtk_cpp_workaround.h" void sf_select_all_button_clicked(GtkWidget *widget, gpointer callback_data); void sf_eject_button_clicked(GtkWidget *widget, gpointer callback_data); void sf_select_button_toggled(GtkWidget *widget, gpointer callback_data); void sf_filename_entry_changed(GtkWidget *widget, gpointer callback_data); void sf_cd_play_button_clicked(GtkWidget *widget, gpointer callback_data); void sf_select_all_button_clicked(GtkWidget *widget, gpointer callback_data) { select_frame_handler(SF_SELECT_BUTTON_ACT_ALL, 0, NULL); } #ifdef HAVE_LINUX_CDROM_H void sf_eject_button_clicked(GtkWidget *widget, gpointer callback_data) { int fd=open("/dev/cdrom", O_RDWR|O_NONBLOCK); if (fd > 0) { ioctl (fd, CDROMEJECT); close(fd); } else { perror ("/dev/cdrom"); } } #endif void sf_track_selected_button_toggled(GtkWidget *widget, gpointer callback_data) { int track; track = *(int *) callback_data; select_frame_handler(SF_SELECT_BUTTON_ACT, track, NULL); } void sf_artist_entry_changed(GtkWidget *widget, gpointer callback_data) { select_frame_handler(SF_ARTIST_ENTRY_CHG, 0, NULL); } void sf_album_entry_changed(GtkWidget *widget, gpointer callback_data) { select_frame_handler(SF_ALBUM_ENTRY_CHG, 0, NULL); } // patch from M.Tyler // tm: we're not quite read for this (need updates to cddb.c) void sf_year_entry_changed(GtkWidget *widget, gpointer callback_data) { select_frame_handler(SF_YEAR_ENTRY_CHG, 0, NULL); } void sf_genre_entry_changed(GtkWidget *widget, gpointer callback_data) { select_frame_handler(SF_GENRE_ENTRY_CHG, 0, NULL); } void sf_filename_entry_changed(GtkWidget *widget, gpointer callback_data) { int track; track = *(int *) callback_data; select_frame_handler(SF_FILENAME_ENTRY_CHG, track, NULL); } void sf_cd_play_button_clicked(GtkWidget *widget, gpointer callback_data) { char buf[ 5 ]; play_cd_wav_mp3(STOP, CD, NULL); play_cd_wav_mp3(STOP, WAV, NULL); play_cd_wav_mp3(STOP, MP3, NULL); snprintf(buf, sizeof(buf), "%d", (*(int *) callback_data) + 1); play_cd_wav_mp3(PLAY, CD, buf); } void select_frame_handler(int ops, int track, _main_data *main_data) { static GtkWidget *select_frame = NULL; static GdkPixmap *play_button_enabled_pixmap = NULL; static GdkPixmap *play_button_disabled_pixmap = NULL; static GtkWidget *button_checked_pixmap = NULL; static GtkWidget *button_unchecked_pixmap = NULL; static GdkBitmap *play_button_enabled_mask; static GdkBitmap *play_button_disabled_mask; static GtkWidget *select_all_button = NULL; static GtkWidget *eject_button = NULL; static GtkWidget *track_selected_button[ MAX_NUM_TRACK ]; static GtkWidget *artist_label = NULL; static GtkWidget *artist_entry = NULL; static GtkWidget *album_label = NULL; static GtkWidget *album_entry = NULL; static GtkWidget *year_label = NULL; static GtkWidget *year_entry = NULL; static GtkWidget *genre_label = NULL; static GtkWidget *genre_entry = NULL; //static GtkWidget *genre_combo = NULL; //static GList *genre_combo_items = NULL; static GtkWidget *filename_entry[ MAX_NUM_TRACK ]; static GtkWidget *rip_action_button = NULL; static GtkWidget *encode_action_button = NULL; static char saved_filename_entry[ MAX_NUM_TRACK ][ MAX_FILE_NAME_LENGTH ]; static int track_numbers[ MAX_NUM_TRACK ]; static _main_data *saved_main_data; static int num_tracks, button_state; GtkWidget *pixmap; switch(ops) { case WIDGET_CREATE : { GtkWidget *main_frame, *vbox, *hbox1, *vbox2, *hbox, *hbox2, *hbox3, *hbox4, *hbox5, *label, *scr_window; GtkWidget *table, *separator, *button; GtkStyle *style; GdkGC *gc; char buf[ 5 ]; char *readable_length; int i; if(select_frame != NULL) { return; } main_frame = main_window_handler(MW_REQUEST_MF, 0, NULL); num_tracks = main_data->num_tracks(); saved_main_data = main_data; /* Create a vbox. Don't show it yet */ vbox = gtk_vbox_new(FALSE, 0); select_frame = vbox; gtk_container_add(GTK_CONTAINER(main_frame), vbox); /* Create a hbox & labels and pack */ hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); //button to toggle selection select_all_button = gtk_toggle_button_new(); hbox2 = gtk_hbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(hbox2), 0); gtk_container_add(GTK_CONTAINER(select_all_button), hbox2); pixmap = gtk_image_new_from_stock("gtk-apply", GTK_ICON_SIZE_MENU); gtk_box_pack_start(GTK_BOX(hbox2), pixmap, FALSE, FALSE, 0); label = gtk_label_new(_("Select All Tracks")); gtk_widget_set_usize(label, 120, 0); gtk_box_pack_end(GTK_BOX(hbox2), label, FALSE, FALSE, 0); g_signal_connect(G_OBJECT(select_all_button), "clicked", G_CALLBACK(sf_select_all_button_clicked), NULL); gtk_box_pack_start(GTK_BOX(hbox), select_all_button, FALSE, FALSE, 0); #ifdef HAVE_LINUX_CDROM_H //eject button eject_button = gtk_button_new(); label = gtk_label_new(_("Eject")); gtk_widget_set_usize(label, 60, 0); gtk_container_add(GTK_CONTAINER(eject_button), label); g_signal_connect(G_OBJECT(eject_button), "clicked", G_CALLBACK(sf_eject_button_clicked), NULL); gtk_box_pack_start(GTK_BOX(hbox), eject_button, FALSE, FALSE, 0); #endif /* action buttons */ hbox1 = gtk_hbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(hbox1), 5); gtk_box_pack_start(GTK_BOX(hbox), hbox1 , FALSE, FALSE, 0); rip_action_button = gtk_radio_button_new_with_label(NULL, _("Rip to WAV")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(rip_action_button), 0); gtk_box_pack_start(GTK_BOX(hbox1), rip_action_button, FALSE, FALSE, 0); encode_action_button = gtk_radio_button_new_with_label( gtk_radio_button_group(GTK_RADIO_BUTTON(rip_action_button)), _("Encode")); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(encode_action_button), 1); gtk_box_pack_start(GTK_BOX(hbox1), encode_action_button, FALSE, FALSE, 0); /* Create a scrolled window */ scr_window = gtk_scrolled_window_new(NULL, NULL); gtk_container_set_border_width(GTK_CONTAINER(scr_window), 5); gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scr_window), GTK_POLICY_AUTOMATIC, GTK_POLICY_ALWAYS); gtk_box_pack_start(GTK_BOX(vbox), scr_window, TRUE, TRUE, 0); /* Create table and vbox which will contain the table */ vbox2 = gtk_vbox_new(FALSE, 0); gtk_container_set_border_width(GTK_CONTAINER(vbox2), 0); gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scr_window), vbox2); /* artist entry fields */ hbox3 = gtk_hbox_new(FALSE, 0); artist_label = gtk_label_new(_("Artist ")); gtk_box_pack_start(GTK_BOX(hbox3), artist_label, FALSE, FALSE, 5); artist_entry = gtk_entry_new_with_max_length(main_data->MAX_ARTIST_LENGTH); gtk_entry_set_text(GTK_ENTRY(artist_entry), main_data->disc_artist); g_signal_connect(G_OBJECT(artist_entry), "changed", G_CALLBACK(sf_artist_entry_changed), NULL); gtk_box_pack_start(GTK_BOX(hbox3), artist_entry, TRUE, TRUE, 5); gtk_box_pack_start(GTK_BOX(vbox2), hbox3, FALSE, FALSE, 5); /* album entry fields */ hbox4 = gtk_hbox_new(FALSE, 0); album_label = gtk_label_new(_("Album")); gtk_box_pack_start(GTK_BOX(hbox4), album_label, FALSE, FALSE, 5); album_entry = gtk_entry_new_with_max_length(main_data->MAX_ARTIST_LENGTH); gtk_entry_set_text(GTK_ENTRY(album_entry), main_data->disc_title); g_signal_connect(G_OBJECT(album_entry), "changed", G_CALLBACK(sf_album_entry_changed), NULL); gtk_box_pack_start(GTK_BOX(hbox4), album_entry, TRUE, TRUE, 5); gtk_box_pack_start(GTK_BOX(vbox2), hbox4, FALSE, FALSE, 5); /* year and genre entry fields */ hbox5 = gtk_hbox_new(FALSE, 0); year_label = gtk_label_new(_("Year")); gtk_box_pack_start(GTK_BOX(hbox5), year_label, FALSE, FALSE, 5); year_entry = gtk_entry_new_with_max_length(main_data->MAX_YEAR_LENGTH); gtk_widget_set_usize(year_entry, 60, -2); if(strlen(main_data->disc_year) < 2) { //not sure why a default is used, or where 2007 came from #if 0 time_t t = time(0); struct tm *tmp = localtime(&t); if ( (tmp == NULL) || (strftime(main_data->disc_year, 5, "%Y", tmp) <= 0) ) sprintf(main_data->disc_year, "2007"); #else main_data->disc_year[0] = 0; #endif } gtk_entry_set_text(GTK_ENTRY(year_entry), main_data->disc_year); g_signal_connect(G_OBJECT(year_entry), "changed", G_CALLBACK(sf_year_entry_changed), NULL); gtk_box_pack_start(GTK_BOX(hbox5), year_entry, TRUE, TRUE, 5); genre_label = gtk_label_new(_("Genre")); gtk_box_pack_start(GTK_BOX(hbox5), genre_label, FALSE, FALSE, 5); genre_entry = gtk_entry_new_with_max_length(MAX_GENRE_LENGTH); gtk_entry_set_text(GTK_ENTRY(genre_entry), main_data->disc_category); g_signal_connect(G_OBJECT(genre_entry), "changed", G_CALLBACK(sf_genre_entry_changed), NULL); gtk_box_pack_start(GTK_BOX(hbox5), genre_entry, TRUE, TRUE, 5); gtk_box_pack_start(GTK_BOX(vbox2), hbox5, FALSE, FALSE, 5); // genre_combo = gtk_combo_new (); // gtk_widget_show (genre_combo); // gtk_box_pack_start(GTK_BOX(hbox3), genre_combo, TRUE, TRUE, 5); // gtk_widget_set_usize (genre_combo, 80, -2); // gtk_container_set_border_width (GTK_CONTAINER (genre_combo), 5); // gtk_combo_set_value_in_list (GTK_COMBO (genre_combo), TRUE, FALSE); // gtk_combo_set_use_arrows_always (GTK_COMBO (genre_combo), TRUE); // i = 0; // while ( id3_styles[i].name != NULL ) // { // genre_combo_items = g_list_append (genre_combo_items, // (gpointer) id3_styles[i].name); // i++; // } // gtk_combo_set_popdown_strings (GTK_COMBO (genre_combo), genre_combo_items); // g_list_free (genre_combo_items); // genre_combo_items = NULL; // // genre_entry = GTK_COMBO (genre_combo)->entry; // // if ( strlen(main_data->disc_category) < 2 ) // sprintf(main_data->disc_category, "Pop"); // // gtk_entry_set_text (GTK_ENTRY (genre_entry), main_data->disc_category); // gtk_signal_connect( GTK_OBJECT( genre_entry ), "changed", // GTK_SIGNAL_FUNC( sf_genre_entry_changed ), // NULL ); // gtk_widget_show (genre_entry); /* the table */ table = gtk_table_new(MAX_NUM_TRACK, 6, FALSE); gtk_box_pack_start(GTK_BOX(vbox2), table, FALSE, FALSE, 0); gtk_table_set_row_spacings(GTK_TABLE(table), 1); gtk_table_set_col_spacings(GTK_TABLE(table), 0); gtk_container_set_border_width(GTK_CONTAINER(table), 5); /* Separators */ if(num_tracks > 0) { separator = gtk_vseparator_new(); gtk_widget_set_usize(separator, 10, 0); gtk_table_attach(GTK_TABLE(table), separator, 3, 4, 0, num_tracks, 0, GTK_FILL, 0, 0); } for(i = 0; i < num_tracks; i++) { track_numbers[ i ] = i; if(strlen(saved_filename_entry[ i ]) == 0) { get_track_title(saved_filename_entry[i], main_data, i); } /* CD play button */ button = gtk_button_new(); pixmap = gtk_image_new_from_stock("gtk-media-play", GTK_ICON_SIZE_MENU); gtk_container_add(GTK_CONTAINER(button), pixmap); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(sf_cd_play_button_clicked), &track_numbers[ i ]); gtk_table_attach(GTK_TABLE(table), button, 0, 1, i, i + 1, 0, GTK_EXPAND | GTK_FILL, 0, 0); /* Track number */ sprintf(buf, "%d", i + 1); label = gtk_label_new(buf); gtk_widget_set_usize(label, 20, 0); gtk_table_attach(GTK_TABLE(table), label, 1, 2, i, i + 1, 0, 0, 0, 0); /* Length */ readable_length = length_to_readable(main_data->track[ i ].length); label = gtk_label_new(readable_length); gtk_table_attach(GTK_TABLE(table), label, 2, 3, i, i + 1, 0, 0, 0, 0); /* MP3 check buttons */ track_selected_button[ i ] = gtk_toggle_button_new(); pixmap = gtk_image_new_from_stock("gtk-apply", GTK_ICON_SIZE_MENU); gtk_container_add(GTK_CONTAINER(track_selected_button[ i ]), pixmap); gtk_table_attach(GTK_TABLE(table), track_selected_button[ i ], 4, 5, i, i + 1, 0, GTK_EXPAND | GTK_FILL, 0, 0); /* file name entry */ filename_entry[ i ] = gtk_entry_new(); gtk_entry_set_max_length(GTK_ENTRY(filename_entry[ i ]),MAX_FILE_NAME_LENGTH); gtk_widget_set_size_request(filename_entry[ i ], 325, -1); gtk_entry_set_text(GTK_ENTRY(filename_entry[ i ]), saved_filename_entry[ i ]); gtk_table_attach(GTK_TABLE(table), filename_entry[ i ], 5, 6, i, i + 1, GTK_EXPAND | GTK_FILL, 0, 0, 0); g_signal_connect(G_OBJECT(track_selected_button[ i ]), "clicked", G_CALLBACK(sf_track_selected_button_toggled), &track_numbers[ i ]); g_signal_connect(G_OBJECT(filename_entry[ i ]), "changed", G_CALLBACK(sf_filename_entry_changed), &track_numbers[ i ]); } gtk_widget_show_all(vbox); return; } case WIDGET_DESTROY : if(select_frame == NULL) { return; } gtk_widget_destroy(select_frame); select_frame = NULL; return; case CLEAR_ENTRIES : /* clear filename entries */ for(track = 0; track < num_tracks; track++) { saved_filename_entry[ track ][ 0 ] = 0; } return; case SF_SELECT_BUTTON_ACT : if(GTK_TOGGLE_BUTTON(track_selected_button[ track ]) ->active) { gtk_button_set_image ( GTK_BUTTON(track_selected_button[ track ]), gtk_image_new_from_stock("gtk-apply", GTK_ICON_SIZE_MENU) ); } else { gtk_button_set_image ( GTK_BUTTON(track_selected_button[ track ]), gtk_image_new_from_stock("gtk-remove", GTK_ICON_SIZE_MENU) ); } return; case SF_ARTIST_ENTRY_CHG : /* The artist name has been edited. Sync saved artist name */ strcpy(saved_main_data->disc_artist, gtk_entry_get_text(GTK_ENTRY(artist_entry))); return; case SF_ALBUM_ENTRY_CHG : /* The album name has been edited. Sync saved album name */ strcpy(saved_main_data->disc_title, gtk_entry_get_text(GTK_ENTRY(album_entry))); return; case SF_YEAR_ENTRY_CHG : /* The album year has been edited. Sync saved album year */ strcpy(saved_main_data->disc_year, gtk_entry_get_text(GTK_ENTRY(year_entry))); return; case SF_GENRE_ENTRY_CHG : /* The album genre has been edited. Sync saved album genre */ strcpy(saved_main_data->disc_category, gtk_entry_get_text(GTK_ENTRY(genre_entry))); return; case SF_FILENAME_ENTRY_CHG : if(strlen(gtk_entry_get_text(GTK_ENTRY(filename_entry[ track ]))) == 0) { if(GTK_TOGGLE_BUTTON(track_selected_button[ track ]) ->active == TRUE) { /* The user has deleted the file name. Untoggle the button and * delete saved_filename_entry too */ saved_filename_entry[ track ][ 0 ] = '\0'; gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(track_selected_button[ track ]), FALSE); } } else { /* The file name has been edited. Sync saved file name */ strcpy(saved_filename_entry[ track ], gtk_entry_get_text(GTK_ENTRY(filename_entry[ track ]))); /* * 20051030/tm * no longer auto-select the track when the text is altered * if ( GTK_TOGGLE_BUTTON( track_selected_button[ track ] ) ->active == FALSE ) gtk_toggle_button_set_active( GTK_TOGGLE_BUTTON( track_selected_button[ track ] ), TRUE ); */ } return; case SF_SELECT_BUTTON_ACT_ALL : gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(select_all_button), GTK_TOGGLE_BUTTON(select_all_button) ->active); for(track = 0; track < num_tracks; track++) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(track_selected_button[ track ]), GTK_TOGGLE_BUTTON(select_all_button) ->active); } return; // auto-select all tracks case SF_SELECT_ALL : gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(select_all_button), TRUE); for(track = 0; track < num_tracks; track++) { gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(track_selected_button[ track ]), TRUE); } return; case SF_SYNC_MAIN_DATA : main_data = saved_main_data; for(track = 0; track < num_tracks; track++) { char *tmp = saved_filename_entry[ track ]; if(strlen(tmp)) { /* hack for l3enc. It is so stupid about spaces in the file name */ if(!strcmp(config.encoder.encoder, "l3enc")) { convert_spaces(tmp, '_'); } /* put track title back into main_data */ put_track_title(tmp, main_data, track); } if(GTK_TOGGLE_BUTTON(track_selected_button[ track ]) ->active == TRUE) { if(GTK_TOGGLE_BUTTON(rip_action_button) ->active) { main_data->track[ track ].make_wav = TRUE; main_data->track[ track ].make_mp3 = FALSE; } else { main_data->track[ track ].make_wav = FALSE; main_data->track[ track ].make_mp3 = TRUE; } } else { main_data->track[ track ].make_wav = FALSE; main_data->track[ track ].make_mp3 = FALSE; } } return; case SF_SYNC_SELECT_FRAME_TO_DATA : for(track = 0; track < num_tracks; track++) { select_frame_handler(SF_SELECT_BUTTON_ACT, track, main_data); } return; case SF_SYNC_SELECT_FRAME : main_data = saved_main_data; gtk_entry_set_text(GTK_ENTRY(artist_entry), main_data->disc_artist); gtk_entry_set_text(GTK_ENTRY(album_entry), main_data->disc_title); gtk_entry_set_text(GTK_ENTRY(year_entry), main_data->disc_year); gtk_entry_set_text(GTK_ENTRY(genre_entry), main_data->disc_category); for(track = 0; track < num_tracks; track++) { button_state = GTK_TOGGLE_BUTTON(track_selected_button[ track ]) ->active; get_track_title(saved_filename_entry[track], main_data, track); gtk_entry_set_text(GTK_ENTRY(filename_entry[ track ]), saved_filename_entry[ track ]); gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(track_selected_button[ track ]), button_state); } return; } } ripperX-2.8.0/src/select_frame_handler.h000066400000000000000000000020071233655711300202450ustar00rootroot00000000000000#ifndef SELECT_FRAME_HANDLER_H #define SELECT_FRAME_HANDLER_H #include "config.h" #include "common.h" #include enum SelectFrameHandler { SF_SELECT_BUTTON_ACT = 101, SF_ALBUM_ENTRY_CHG, SF_FILENAME_ENTRY_CHG, SF_ARTIST_ENTRY_CHG, SF_SELECT_BUTTON_ACT_ALL, SF_SYNC_MAIN_DATA, SF_SYNC_SELECT_FRAME, SF_SYNC_SELECT_FRAME_TO_DATA, SF_SELECT_ALL, SF_YEAR_ENTRY_CHG, SF_GENRE_ENTRY_CHG }; /* Create or destroy select frame. ops can be one of WIDGET_CREATE, * WIDGET_DESTROY, SF_WAV_BUTTON_ACT, SF_MP3_BUTTON_ACT, * , SF_WAV_ENTRY_CHG, SF_MP3_ENTRY_CHG, and SF_SYNC_MAIN_DATA. * When called with WIDGET_CREATE, it will save the value of *main_data * and use it for further operation until the widget is created again. * So, it's important not to change *main_data while this function is * operating on it */ /* Call back functions will convert gpointer callback_data to an integer */ void select_frame_handler(int ops, int track, _main_data *main_data); #endif ripperX-2.8.0/src/status_frame_handler.c000066400000000000000000000406231233655711300203120ustar00rootroot00000000000000#include "config.h" #include #include #include "misc_utils.h" #include "job_control.h" #include "interface_common.h" #include "main_window_handler.h" #include "status_frame_handler.h" #include "xpms/ripperX_box.xpm" #include "gtk_cpp_workaround.h" enum WMS { WMS_TIME_UPDATE_CYCLE = 1, WMS_P_C_BUTTON_ACT = 100, WMS_ABORT_BUTTON_ACT, WMS_ABORT_ALL_BUTTON_ACT }; void time_status_frame_handler(int ops, GtkWidget *time_frame, _stat *stat); /* Callback data is a pinter to the int type */ void wms_p_c_button_clicked(GtkWidget *widget, gpointer callback_data); void wms_abort_button_clicked(GtkWidget *widget, gpointer callback_data); void wms_abort_all_button_clicked(GtkWidget *widget, gpointer callback_data); void time_status_frame_handler(int ops, GtkWidget *time_frame, _stat *stat) { static GtkWidget *table = NULL; static GtkWidget *total_time_elapsed_label, *total_time_remain_label; static GtkWidget *tracks_done_label, *tracks_remain_label; char buf[ 100 ]; switch(ops) { case WIDGET_CREATE : { GtkWidget *label; if(table != NULL) { return; } table = gtk_table_new(4, 2, TRUE); gtk_container_set_border_width(GTK_CONTAINER(table), 5); gtk_container_add(GTK_CONTAINER(time_frame), table); label = gtk_label_new(_("Total time elapsed: ")); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 0, 1, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); total_time_elapsed_label = gtk_label_new(time_to_readable(0)); gtk_label_set_justify(GTK_LABEL(total_time_elapsed_label), GTK_JUSTIFY_LEFT); gtk_table_attach(GTK_TABLE(table), total_time_elapsed_label, 1, 2, 0, 1, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); label = gtk_label_new(_("Total time remaining: ")); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 1, 2, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); total_time_remain_label = gtk_label_new(time_to_readable(0)); gtk_label_set_justify(GTK_LABEL(total_time_remain_label), GTK_JUSTIFY_LEFT); gtk_table_attach(GTK_TABLE(table), total_time_remain_label, 1, 2, 1, 2, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); label = gtk_label_new(_("Tracks completed: ")); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 2, 3, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); tracks_done_label = gtk_label_new("0"); gtk_label_set_justify(GTK_LABEL(tracks_done_label), GTK_JUSTIFY_LEFT); gtk_table_attach(GTK_TABLE(table), tracks_done_label, 1, 2, 2, 3, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); label = gtk_label_new(_("Tracks remaining: ")); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_table_attach(GTK_TABLE(table), label, 0, 1, 3, 4, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); tracks_remain_label = gtk_label_new("0"); gtk_label_set_justify(GTK_LABEL(tracks_remain_label), GTK_JUSTIFY_LEFT); gtk_table_attach(GTK_TABLE(table), tracks_remain_label, 1, 2, 3, 4, GTK_FILL, GTK_EXPAND | GTK_FILL, 0, 0); gtk_widget_show_all(table); return; } case WIDGET_UPDATE : gtk_label_set_text(GTK_LABEL(total_time_elapsed_label), time_to_readable(stat->total_time_elapsed)); gtk_label_set_text(GTK_LABEL(total_time_remain_label), time_to_readable(stat->total_time_remain)); snprintf(buf, sizeof(buf), "%d", stat->tracks_done); gtk_label_set_text(GTK_LABEL(tracks_done_label), buf); snprintf(buf, sizeof(buf), "%d", stat->tracks_remain); gtk_label_set_text(GTK_LABEL(tracks_remain_label), buf); return; case WIDGET_DESTROY : if(table == NULL) { return; } gtk_widget_destroy(table); table = NULL; return; } } /* Callback data is pointer to type */ void wms_p_c_button_clicked(GtkWidget *widget, gpointer callback_data) { wm_status_frame_handler(WMS_P_C_BUTTON_ACT, *(int *) callback_data, NULL, NULL); } void wms_abort_button_clicked(GtkWidget *widget, gpointer callback_data) { wm_status_frame_handler(WMS_ABORT_BUTTON_ACT, *(int *) callback_data, NULL, NULL); } void wm_status_frame_handler(int ops, int type, _stat *stat, char *graph_string) { static GtkWidget *vbox = NULL, *wav_pbar, *mp3_pbar, *total_pbar; static GtkWidget *time_frame, *wav_plabel, *mp3_plabel, *total_plabel; static GtkWidget *wav_tlabel, *mp3_tlabel; static GtkWidget *hbox; static GtkWidget *p_c_button, *pause_label, *cont_label; static GtkWidget *pixmap = NULL; static char percentage_buf[ 10 ]; static char graph_string_buf[ 50 ]; static int count; static GdkPixmap *gdk_pixmap; static GdkBitmap *mask; char buf[ MAX_FILE_NAME_LENGTH + 100 ]; switch(ops) { case WIDGET_CREATE : { GtkWidget *main_frame, *label, *button, *temp_hbox, *separator; GtkStyle *style; GdkGC *gc; if(vbox != NULL) { return; } count = WMS_TIME_UPDATE_CYCLE - 1; main_frame = main_window_handler(MW_REQUEST_MF, 0, NULL); vbox = gtk_vbox_new(FALSE, 5); gtk_container_set_border_width(GTK_CONTAINER(vbox), 5); gtk_container_add(GTK_CONTAINER(main_frame), vbox); gtk_widget_realize(vbox); /* Create pixmap */ if(pixmap == NULL) { style = gtk_widget_get_default_style(); gc = style->black_gc; gdk_pixmap = gdk_pixmap_create_from_xpm_d(vbox->window, &mask, &style->bg[ GTK_STATE_NORMAL ], ripperX_box_xpm); } /* ripping progress */ hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, FALSE, 0); sprintf(buf, _("Ripping track %d"), stat->wav.track + 1); wav_tlabel = gtk_label_new(buf); gtk_label_set_justify(GTK_LABEL(wav_tlabel), GTK_JUSTIFY_LEFT); gtk_widget_set_size_request(wav_tlabel, 130, -1); gtk_box_pack_start(GTK_BOX(hbox), wav_tlabel, FALSE, FALSE, 0); wav_pbar = gtk_progress_bar_new(); gtk_widget_set_size_request(wav_pbar, 250, 22); gtk_box_pack_start(GTK_BOX(hbox), wav_pbar, FALSE, FALSE, 0); wav_plabel = gtk_label_new(" 0%"); gtk_box_pack_start(GTK_BOX(hbox), wav_plabel, FALSE, FALSE, 0); /* encoding progress */ hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, FALSE, 0); sprintf(buf, _("Encoding track %d"), stat->wav.track + 1); mp3_tlabel = gtk_label_new(buf); gtk_label_set_justify(GTK_LABEL(mp3_tlabel), GTK_JUSTIFY_LEFT); gtk_widget_set_size_request(mp3_tlabel, 130, -1); gtk_box_pack_start(GTK_BOX(hbox), mp3_tlabel, FALSE, FALSE, 0); mp3_pbar = gtk_progress_bar_new(); gtk_widget_set_size_request(mp3_pbar, 250, 22); gtk_box_pack_start(GTK_BOX(hbox), mp3_pbar, FALSE, FALSE, 0); mp3_plabel = gtk_label_new(" 0%"); gtk_box_pack_start(GTK_BOX(hbox), mp3_plabel, FALSE, FALSE, 0); /* total progress */ hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, FALSE, 0); label = gtk_label_new(_("Total progress")); gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_LEFT); gtk_widget_set_size_request(label, 130, -1); gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); total_pbar = gtk_progress_bar_new(); gtk_widget_set_size_request(total_pbar, 250, 22); gtk_box_pack_start(GTK_BOX(hbox), total_pbar, FALSE, FALSE, 0); total_plabel = gtk_label_new(" 0%"); gtk_box_pack_start(GTK_BOX(hbox), total_plabel, FALSE, FALSE, 0); /* Row with time frame & pixmap */ temp_hbox = gtk_hbox_new(FALSE, 10); gtk_box_pack_start(GTK_BOX(vbox), temp_hbox, TRUE, TRUE, 0); time_frame = gtk_frame_new(_("Time info")); gtk_widget_set_size_request(time_frame, 275, 0); gtk_box_pack_start(GTK_BOX(temp_hbox), time_frame, FALSE, FALSE, 0); time_status_frame_handler(WIDGET_CREATE, time_frame, stat); /* Pixmap */ pixmap = gtk_pixmap_new(gdk_pixmap, mask); gtk_box_pack_start(GTK_BOX(temp_hbox), pixmap, TRUE, TRUE, 0); /* Separator */ separator = gtk_hseparator_new(); gtk_widget_set_size_request(separator, 0, 10); gtk_box_pack_start(GTK_BOX(vbox), separator, FALSE, FALSE, 0); /* Buttons row */ temp_hbox = gtk_hbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(vbox), temp_hbox, TRUE, TRUE, 0); /* Abort button */ button = gtk_button_new_with_label(_("Abort")); GTK_WIDGET_SET_FLAGS(button, GTK_CAN_DEFAULT); gtk_widget_set_size_request(button, 80, -1); g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(wms_abort_button_clicked), &type); gtk_box_pack_end(GTK_BOX(temp_hbox), button, FALSE, FALSE, 0); /* Pause continue button */ p_c_button = gtk_button_new(); GTK_WIDGET_SET_FLAGS(p_c_button, GTK_CAN_DEFAULT); gtk_widget_set_size_request(p_c_button, 80, 0); pause_label = gtk_label_new(_("Pause")); gtk_container_add(GTK_CONTAINER(p_c_button), pause_label); g_signal_connect(G_OBJECT(p_c_button), "clicked", G_CALLBACK(wms_p_c_button_clicked), &type); gtk_box_pack_end(GTK_BOX(temp_hbox), p_c_button, FALSE, FALSE, 0); gtk_widget_grab_default(p_c_button); cont_label = NULL; gtk_widget_show_all(vbox); return; } case WIDGET_UPDATE : if(count++ < WMS_TIME_UPDATE_CYCLE) { return; } if(stat->ripping) { gtk_widget_set_sensitive(wav_tlabel, TRUE); gtk_widget_set_sensitive(wav_pbar, TRUE); gtk_widget_set_sensitive(wav_plabel, TRUE); sprintf(buf, _("Ripping track %d"), stat->wav.track + 1); gtk_label_set_text(GTK_LABEL(wav_tlabel), buf); gtk_progress_bar_update(GTK_PROGRESS_BAR(wav_pbar), stat->wav.progress); snprintf(percentage_buf, sizeof(percentage_buf), "%2d%%", (int)(stat->wav.progress * 100)); gtk_label_set_text(GTK_LABEL(wav_plabel), percentage_buf); } else { gtk_widget_set_sensitive(wav_tlabel, FALSE); gtk_widget_set_sensitive(wav_pbar, FALSE); gtk_widget_set_sensitive(wav_plabel, FALSE); gtk_label_set_text(GTK_LABEL(wav_tlabel), _("Not ripping")); gtk_progress_bar_update(GTK_PROGRESS_BAR(wav_pbar), 0); gtk_label_set_text(GTK_LABEL(wav_plabel), "-"); } if(stat->encoding) { gtk_widget_set_sensitive(mp3_tlabel, TRUE); gtk_widget_set_sensitive(mp3_pbar, TRUE); gtk_widget_set_sensitive(mp3_plabel, TRUE); sprintf(buf, _("Encoding track %d"), stat->mp3.track + 1); gtk_label_set_text(GTK_LABEL(mp3_tlabel), buf); gtk_progress_bar_update(GTK_PROGRESS_BAR(mp3_pbar), stat->mp3.progress); snprintf(percentage_buf, sizeof(percentage_buf), "%2d%%", (int)(stat->mp3.progress * 100)); gtk_label_set_text(GTK_LABEL(mp3_plabel), percentage_buf); } else { gtk_widget_set_sensitive(mp3_tlabel, FALSE); gtk_widget_set_sensitive(mp3_pbar, FALSE); gtk_widget_set_sensitive(mp3_plabel, FALSE); gtk_label_set_text(GTK_LABEL(mp3_tlabel), _("Not encoding")); gtk_progress_bar_update(GTK_PROGRESS_BAR(mp3_pbar), 0); gtk_label_set_text(GTK_LABEL(mp3_plabel), "-"); } /* 2002/03/15 - - hack to ensure that stat->total_progress is always between 0 and 1 */ gtk_progress_bar_update(GTK_PROGRESS_BAR(total_pbar), (stat->total_progress < 0.0) ? 0.0 : (stat->total_progress > 1.0) ? 1.0 : stat->total_progress); snprintf(percentage_buf, sizeof(percentage_buf), "%2d%%", (int)(((stat->total_progress < 0.0) ? 0.0 : (stat->total_progress > 1.0) ? 1.0 : stat->total_progress) * 100)); gtk_label_set_text(GTK_LABEL(total_plabel), percentage_buf); if(graph_string != NULL) { snprintf(graph_string_buf, sizeof(graph_string_buf), "Cdparanoia: %s", graph_string); main_window_handler(MW_UPDATE_STATUSBAR, graph_string_buf, NULL); } if(!stat->ripping) { main_window_handler(MW_UPDATE_STATUSBAR, "", NULL); } time_status_frame_handler(WIDGET_UPDATE, time_frame, stat); count = 0; return; case WMS_P_C_BUTTON_ACT : if(pause_label != NULL) { job_controller(JC_PAUSE, NULL); gtk_widget_destroy(pause_label); pause_label = NULL; cont_label = gtk_label_new(_("Continue")); gtk_container_add(GTK_CONTAINER(p_c_button), cont_label); gtk_widget_show(cont_label); } else { job_controller(JC_CONT, NULL); gtk_widget_destroy(cont_label); cont_label = NULL; pause_label = gtk_label_new(_("Pause")); gtk_container_add(GTK_CONTAINER(p_c_button), pause_label); gtk_widget_show(pause_label); } return; case WMS_ABORT_BUTTON_ACT : case WMS_ABORT_ALL_BUTTON_ACT : job_controller(JC_PAUSE, NULL); if(dialog_handler(WIDGET_CREATE, FALSE, DL_ABORT_CONFIRM, FALSE, NULL, NULL, 0) == FALSE) { job_controller(JC_CONT, NULL); return; } if(dialog_handler(WIDGET_CREATE, FALSE, DL_DELETE_ON_ABORT, FALSE, NULL, NULL, 0) == TRUE) { if(ops == WMS_ABORT_BUTTON_ACT) { job_controller(JC_ABORT_DELETE, NULL); } else { job_controller(JC_ABORT_ALL_DELETE, NULL); } } else { if(ops == WMS_ABORT_BUTTON_ACT) { job_controller(JC_ABORT, NULL); } else { job_controller(JC_ABORT_ALL, NULL); } } return; case WIDGET_DESTROY : main_window_handler(MW_CLEAR_STATUSBAR, NULL , NULL); time_status_frame_handler(WIDGET_DESTROY, NULL, NULL); if(vbox == NULL) { return; } gtk_widget_destroy(vbox); vbox = NULL; return; } } ripperX-2.8.0/src/status_frame_handler.h000066400000000000000000000003661233655711300203170ustar00rootroot00000000000000#ifndef STATUS_FRAME_HANDLER_H #define STATUS_FRAME_HANDLER_H #include "config.h" #include "common.h" #include void wm_status_frame_handler(int ops, int type, _stat *stat, char *graph_string); #endif ripperX-2.8.0/src/version.h.in000066400000000000000000000022461233655711300162160ustar00rootroot00000000000000/* * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef __VERSION_H__ #define __VERSION_H__ #include #define MAKE_NUMERIC_VERSION(a, b, c, d) ((((guint32)a) << 24) | (((guint32)b) << 16) | \ (((guint32)c) << 8) | ((guint32)d) ) #define PACKAGE "@PACKAGE@" #define VERSION "@VERSION@" #define PROG_VERSION "ripperX "VERSION #define VERSION_NUMERIC MAKE_NUMERIC_VERSION(@MAJOR_VERSION@, @MINOR_VERSION@, \ @MICRO_VERSION@, @EXTRA_VERSION@) #endif /* __VERSION_H__ */ ripperX-2.8.0/src/xpms.c000066400000000000000000000004361233655711300151050ustar00rootroot00000000000000#include "xpms/config.xpm" #include "xpms/scan.xpm" #include "xpms/go.xpm" #include "xpms/stop.xpm" #include "xpms/exit.xpm" #include "xpms/s_play_button_enabled.xpm" #include "xpms/s_play_button_disabled.xpm" #include "xpms/s_button_checked.xpm" #include "xpms/s_button_unchecked.xpm" ripperX-2.8.0/src/xpms/000077500000000000000000000000001233655711300147365ustar00rootroot00000000000000ripperX-2.8.0/src/xpms/cddb.xpm000066400000000000000000000430441233655711300163650ustar00rootroot00000000000000/* XPM */ static char * cddb_xpm[] = { "48 60 744 2", " c None", ". c #020204", "+ c #FCFDFB", "@ c #D59E9C", "# c #FEFEFE", "$ c #FFFFFF", "% c #FAFAFA", "& c #E5E8E6", "* c #E1E3E2", "= c #F1F3F2", "- c #F6F7F8", "; c #F8F8F8", "> c #FDFDFD", ", c #F8F9F9", "' c #F6F6F7", ") c #FBFBFC", "! c #7795A5", "~ c #D9D9D9", "{ c #838383", "] c #494949", "^ c #3F403F", "/ c #353635", "( c #343534", "_ c #797979", ": c #F6F6F6", "< c #909091", "[ c #2C2C2C", "} c #3E3E3E", "| c #4B4B4B", "1 c #898989", "2 c #D9DAD9", "3 c #FCFDFC", "4 c #B5B6B6", "5 c #2D2D2D", "6 c #373737", "7 c #4C4C4C", "8 c #767676", "9 c #C7C8C9", "0 c #C6C7C8", "a c #3C3C3C", "b c #4D4D4D", "c c #939393", "d c #ECECEC", "e c #5C7687", "f c #C7C7C7", "g c #5C5D5D", "h c #B9B9BA", "i c #D4D4D4", "j c #C9C9C9", "k c #8A8A8A", "l c #F0F0F0", "m c #ABABAB", "n c #121212", "o c #B0B0B0", "p c #969B97", "q c #434343", "r c #2C2E2C", "s c #A9AAA9", "t c #FBFBFB", "u c #D1D1D2", "v c #929292", "w c #A7A7A7", "x c #555555", "y c #202020", "z c #868687", "A c #F1F2F3", "B c #DADADA", "C c #2F2F2F", "D c #969696", "E c #A1A1A1", "F c #242424", "G c #5B5B5B", "H c #F3F4F3", "I c #D6D7D8", "J c #2B2B2B", "K c #F5F5F5", "L c #E0E4E1", "M c #C2C2C2", "N c #181818", "O c #E5E5E5", "P c #F2F6F3", "Q c #666868", "R c #1B1B1B", "S c #B7B8B9", "T c #DEDEDE", "U c #222222", "V c #B5B5B5", "W c #8F8F8F", "X c #131313", "Y c #858585", "Z c #DFDFDF", "` c #BBBBBB", " . c #999999", ".. c #030303", "+. c #C5C9C6", "@. c #747575", "#. c #262626", "$. c #EFF0F1", "%. c #E8E8E8", "&. c #3D3D3D", "*. c #424242", "=. c #B1B1B1", "-. c #646464", ";. c #1A1A1A", ">. c #E6E7E8", ",. c #FBFCFC", "'. c #E3E4E5", "). c #FCFCFC", "!. c #F0F3F0", "~. c #5E5E5E", "{. c #0A0A0A", "]. c #E2E7E3", "^. c #151515", "/. c #B4B4B4", "(. c #343434", "_. c #8B8C8D", ":. c #8E8E8F", "<. c #454646", "[. c #C1C1C1", "}. c #F3F4F5", "|. c #B9CDD9", "1. c #D5E1E9", "2. c #F9FAFC", "3. c #252626", "4. c #777777", "5. c #000000", "6. c #D7D7D7", "7. c #D8D8D8", "8. c #A2A2A2", "9. c #323232", "0. c #6F6F6F", "a. c #5A5A5A", "b. c #353535", "c. c #B2B6B3", "d. c #D8E0EA", "e. c #4C77B4", "f. c #7E9EC9", "g. c #F5F6F7", "h. c #F1F5F2", "i. c #626262", "j. c #A5A5A5", "k. c #0B0B0B", "l. c #E5EAE6", "m. c #C9CACB", "n. c #1D1D1D", "o. c #AFAFAF", "p. c #F9FAFA", "q. c #9A9B9C", "r. c #BABBBC", "s. c #A8BCD7", "t. c #08459A", "u. c #4874B1", "v. c #DEE4EC", "w. c #212121", "x. c #EAEAEA", "y. c #EFEFEF", "z. c #505050", "A. c #484A48", "B. c #7E7E7F", "C. c #1F201F", "D. c #E7EBE8", "E. c #ECEDED", "F. c #363636", "G. c #6B6B6B", "H. c #C1D1DB", "I. c #144F9F", "J. c #1750A0", "K. c #5E85BB", "L. c #F5F7FB", "M. c #D3D3D3", "N. c #737373", "O. c #EAEBEB", "P. c #FDFDFE", "Q. c #F2F2F2", "R. c #A6AAA6", "S. c #E5E6E7", "T. c #F2F3F2", "U. c #B9BBBA", "V. c #B2B2B2", "W. c #A2A3A5", "X. c #8D8E8F", "Y. c #FDFEFE", "Z. c #707171", "`. c #FBFCFD", " + c #86A7C7", ".+ c #134E9E", "++ c #2058A4", "@+ c #2057A3", "#+ c #CBD8E9", "$+ c #B8B9BA", "%+ c #454546", "&+ c #919192", "*+ c #939394", "=+ c #4C4C4D", "-+ c #E4E4E4", ";+ c #AEAEAE", ">+ c #969796", ",+ c #424543", "'+ c #BABABA", ")+ c #D5D5D5", "!+ c #171717", "~+ c #8B8B8B", "{+ c #5D5D5D", "]+ c #272727", "^+ c #979999", "/+ c #F7F9F7", "(+ c #7F7F7F", "_+ c #A1A1A2", ":+ c #373838", "<+ c #282828", "[+ c #B2CBD5", "}+ c #245BA6", "|+ c #1D56A3", "1+ c #2159A5", "2+ c #CAD7E9", "3+ c #828383", "4+ c #454545", "5+ c #4E4F4F", "6+ c #7A7A7A", "7+ c #C7C8C8", "8+ c #9EA19E", "9+ c #4C514D", "0+ c #545856", "a+ c #6D6D6D", "b+ c #AAAAAA", "c+ c #F3F3F3", "d+ c #BABBBB", "e+ c #4B4E4C", "f+ c #515652", "g+ c #5D5F5E", "h+ c #9B9B9B", "i+ c #EAEBEC", "j+ c #FCFCFD", "k+ c #C9CCCC", "l+ c #575C58", "m+ c #616262", "n+ c #9D9E9D", "o+ c #E8ECE9", "p+ c #ECF1F2", "q+ c #8BA7CF", "r+ c #225AA4", "s+ c #1E56A3", "t+ c #1751A0", "u+ c #5881B9", "v+ c #F5F6F8", "w+ c #F8FAF9", "x+ c #F1F1F1", "y+ c #EDEDED", "z+ c #F3F3F4", "A+ c #FCFDFD", "B+ c #F7FAF8", "C+ c #F4F8F5", "D+ c #F6F8F6", "E+ c #F4F5F4", "F+ c #F9FAF9", "G+ c #FAFBFA", "H+ c #FBFCFB", "I+ c #E9F0F2", "J+ c #ABBED8", "K+ c #4C79B2", "L+ c #1952A1", "M+ c #1E57A3", "N+ c #1752A1", "O+ c #455D7E", "P+ c #CEBAA1", "Q+ c #FEFDFC", "R+ c #D6DFE3", "S+ c #A8BDD8", "T+ c #DEEBE4", "U+ c #F7F8FB", "V+ c #F4F5F8", "W+ c #C5D9DB", "X+ c #82A0C8", "Y+ c #3E71AA", "Z+ c #1851A1", "`+ c #1953A1", " @ c #1751A1", ".@ c #20549B", "+@ c #606671", "@@ c #DD8B1E", "#@ c #F7A12F", "$@ c #FDF0DE", "%@ c #E7F2EA", "&@ c #8BA8CB", "*@ c #6087BB", "=@ c #6C91BA", "-@ c #9FB6D5", ";@ c #BECEE4", ">@ c #DAE3EE", ",@ c #F4F5F5", "'@ c #EDF0F3", ")@ c #D1DCEB", "!@ c #B7C8E1", "~@ c #8BA7CC", "{@ c #557FB8", "]@ c #2B60A8", "^@ c #114C9E", "/@ c #154FA0", "(@ c #1852A1", "_@ c #265CA6", ":@ c #718BAD", "<@ c #CF8F3A", "[@ c #F6930F", "}@ c #F69513", "|@ c #F7991C", "1@ c #FCE4C4", "2@ c #EAEEF4", "3@ c #BACAE1", "4@ c #7A9BC7", "5@ c #4673B2", "6@ c #3466AB", "7@ c #3D6DAF", "8@ c #537DB8", "9@ c #6289BE", "0@ c #7194C4", "a@ c #85A3CC", "b@ c #94AFD1", "c@ c #ACBED6", "d@ c #A2B9CF", "e@ c #91ADD0", "f@ c #7E9DC9", "g@ c #6E91C2", "h@ c #6087BD", "i@ c #4774B3", "j@ c #3164AA", "k@ c #1F56A3", "l@ c #154F9F", "m@ c #124D9E", "n@ c #124E9F", "o@ c #3469A7", "p@ c #688DBF", "q@ c #9FB5D5", "r@ c #E2DDD7", "s@ c #F2AF55", "t@ c #F69614", "u@ c #F69512", "v@ c #F7A02B", "w@ c #FDEED9", "x@ c #E9EEF5", "y@ c #D0DBEB", "z@ c #AABFD3", "A@ c #7194C2", "B@ c #3868AD", "C@ c #255DA3", "D@ c #1C54A1", "E@ c #1A52A1", "F@ c #124C9E", "G@ c #1650A0", "H@ c #104C9E", "I@ c #0E4A9D", "J@ c #104C9D", "K@ c #134D9E", "L@ c #3668AC", "M@ c #4F7AB6", "N@ c #698DC0", "O@ c #98B1D2", "P@ c #C6D3E6", "Q@ c #E0EAED", "R@ c #FAF5ED", "S@ c #FBDDB5", "T@ c #F7A83E", "U@ c #F0930F", "V@ c #EFC582", "W@ c #FCF0E0", "X@ c #FEFAF4", "Y@ c #F7F8F9", "Z@ c #E7F0E9", "`@ c #D0DDE7", " # c #C3D1E6", ".# c #B8C9E1", "+# c #A6BCDA", "@# c #9EB5D5", "## c #92ABCE", "$# c #91ABCD", "%# c #95AED0", "&# c #A3BAD9", "*# c #B5C7E0", "=# c #BDCDE3", "-# c #C6D4E7", ";# c #DAE4EF", "># c #F0F2F4", ",# c #FDF4E8", "'# c #FBD6A4", ")# c #F8AC48", "!# c #F69410", "~# c #F59513", "{# c #F19614", "]# c #809524", "^# c #73B777", "/# c #F8F8F9", "(# c #FDF3E5", "_# c #FAD098", ":# c #F9CA8A", "<# c #FBDAAF", "[# c #FCEAD0", "}# c #FEFCFA", "|# c #FDF3E6", "1# c #FCE6C9", "2# c #FAD19B", "3# c #F8B356", "4# c #F69C21", "5# c #F6930D", "6# c #F6930E", "7# c #BD971F", "8# c #45952E", "9# c #14922E", "0# c #1F9638", "a# c #C9E6CF", "b# c #FEFBF8", "c# c #FCECD5", "d# c #FACC8F", "e# c #F8B254", "f# c #F8AD49", "g# c #F8B964", "h# c #FAC682", "i# c #FAD5A4", "j# c #FBE2C1", "k# c #FDECD5", "l# c #FDEFDB", "m# c #FDF4E7", "n# c #FDF5E9", "o# c #FDF6ED", "p# c #FDF7EE", "q# c #FDF5EB", "r# c #FDF5EA", "s# c #FDF0DF", "t# c #FDEDD9", "u# c #FDEBD2", "v# c #FBDDB6", "w# c #FAD099", "x# c #F9C379", "y# c #F7A435", "z# c #F79A1E", "A# c #F69411", "B# c #F6940F", "C# c #F69615", "D# c #F7A231", "E# c #F9BE6F", "F# c #B7BC8B", "G# c #319939", "H# c #12922E", "I# c #1D9536", "J# c #C7E5CE", "K# c #FEF8F1", "L# c #F9CA8B", "M# c #F8B55B", "N# c #F6A12D", "O# c #F69616", "P# c #F79B20", "Q# c #F79E28", "R# c #F8A536", "S# c #F8A638", "T# c #F8A73C", "U# c #F7AB46", "V# c #F7AE4C", "W# c #F8A83F", "X# c #F8A83E", "Y# c #F6910A", "Z# c #F6920C", "`# c #F69717", " $ c #F69A1E", ".$ c #F8AB46", "+$ c #F9C177", "@$ c #FBDEB6", "#$ c #F3ECDE", "$$ c #B0D7B8", "%$ c #26914D", "&$ c #10912C", "*$ c #49A95D", "=$ c #EDF4EF", "-$ c #FCEAD3", ";$ c #FBDEB5", ">$ c #FAD096", ",$ c #F8C075", "'$ c #F8B761", ")$ c #F8AF4D", "!$ c #F8A940", "~$ c #F7A334", "{$ c #F79D26", "]$ c #F79819", "^$ c #F6991C", "/$ c #F69D26", "($ c #F7A230", "_$ c #F8A83D", ":$ c #F8AB45", "<$ c #F8BE70", "[$ c #FACD8F", "}$ c #FBDAAE", "|$ c #FCE7CC", "1$ c #FDF8F2", "2$ c #F7F8F8", "3$ c #B4CED0", "4$ c #509F79", "5$ c #0E8F2A", "6$ c #11912D", "7$ c #32832C", "8$ c #C7AA94", "9$ c #CBE7D1", "0$ c #B9DBC0", "a$ c #D8EDDC", "b$ c #F4F7F6", "c$ c #FEFDFB", "d$ c #FEFBF7", "e$ c #FEF7EE", "f$ c #FEF6EB", "g$ c #FEF4E8", "h$ c #FEF4E7", "i$ c #FEF5E9", "j$ c #FEF7ED", "k$ c #FEF8F0", "l$ c #FEF9F2", "m$ c #FEFAF5", "n$ c #EBF3EE", "o$ c #CCE6D1", "p$ c #8BC898", "q$ c #3BA351", "r$ c #179036", "s$ c #1B8F2F", "t$ c #586B24", "u$ c #C8250E", "v$ c #E6382A", "w$ c #FCEBE0", "x$ c #F9FCFA", "y$ c #D2E7D6", "z$ c #8CCA99", "A$ c #6BB87C", "B$ c #84B7A9", "C$ c #D7E8DB", "D$ c #E8F4EB", "E$ c #EEF7F0", "F$ c #F8FAF8", "G$ c #F5F9F6", "H$ c #ECF6EE", "I$ c #E6F3E9", "J$ c #CEE3D3", "K$ c #9FCBB5", "L$ c #7AB996", "M$ c #3EA354", "N$ c #23983B", "O$ c #159330", "P$ c #10902C", "Q$ c #14922F", "R$ c #22983B", "S$ c #5AA45D", "T$ c #9E542A", "U$ c #D81B07", "V$ c #E31405", "W$ c #E41F14", "X$ c #F9CBC0", "Y$ c #DEEFE1", "Z$ c #9CCFA7", "`$ c #4FA274", " % c #339C4E", ".% c #319F48", "+% c #42A656", "@% c #64B376", "#% c #7ABD88", "$% c #98CFA3", "%% c #A3D4AD", "&% c #ACC7D2", "*% c #B3D0CD", "=% c #B7DDBF", "-% c #AFC7D6", ";% c #ABCFC5", ">% c #9FD2A9", ",% c #90CA9B", "'% c #79BA86", ")% c #5CB16E", "!% c #3CA451", "~% c #2F9E47", "{% c #1C9636", "]% c #0D8E29", "^% c #0F902B", "/% c #0B8D27", "(% c #1E9738", "_% c #48AA5D", ":% c #8EC799", "<% c #D0E5CE", "[% c #ED746A", "}% c #E3140A", "|% c #E52119", "1% c #F9CFCC", "2% c #CAE2D3", "3% c #9FC5BE", "4% c #72BA81", "5% c #4AA95E", "6% c #339F49", "7% c #24983C", "8% c #16912F", "9% c #0C8D28", "0% c #0B8D26", "a% c #088B22", "b% c #078A23", "c% c #0A8C25", "d% c #0D8F29", "e% c #179331", "f% c #279B40", "g% c #299648", "h% c #3E9F5C", "i% c #62B374", "j% c #8ECA9B", "k% c #BCDFC4", "l% c #E9EFEA", "m% c #FAF6F5", "n% c #F6BBB8", "o% c #E9483F", "p% c #E21005", "q% c #E21304", "r% c #E20E04", "s% c #F0807A", "t% c #F7E6E5", "u% c #FCEDEC", "v% c #FAFBFB", "w% c #EFF7F1", "x% c #E5F3E8", "y% c #DCEDDF", "z% c #CDE2D1", "A% c #B2D8BA", "B% c #9CD1A8", "C% c #8CC998", "D% c #82B6A6", "E% c #7DAAB3", "F% c #7FB0AD", "G% c #88C795", "H% c #9BD0A6", "I% c #ADD7B6", "J% c #C1DBC8", "K% c #D9EADC", "L% c #E1EFE8", "M% c #EBF3F1", "N% c #F6F9F7", "O% c #FDFAFA", "P% c #FDEDE1", "Q% c #F5AEAB", "R% c #EB554D", "S% c #E41E14", "T% c #E21204", "U% c #E21104", "V% c #E41A0F", "W% c #EF7E76", "X% c #FCEAE9", "Y% c #FADCDB", "Z% c #F3A39E", "`% c #F2928A", " & c #F7BEB9", ".& c #FCEDE9", "+& c #FDF6F5", "@& c #FEFBFB", "#& c #FEFEFD", "$& c #FEF8F8", "%& c #FDF3F2", "&& c #FBE6E1", "*& c #F4A7A2", "=& c #EE736A", "-& c #E9462F", ";& c #E3180B", ">& c #E21003", ",& c #E31209", "'& c #E9463B", ")& c #F6B5A7", "!& c #FEFAF8", "~& c #F9CEC0", "{& c #EE7767", "]& c #E84136", "^& c #E9453F", "/& c #EE706A", "(& c #F39A92", "_& c #F9C9B4", ":& c #F8CAC4", "<& c #FAE0DE", "[& c #F9EFEE", "}& c #FBE9E7", "|& c #FAD9D7", "1& c #F7BDBA", "2& c #F5B0AB", "3& c #F18F86", "4& c #EB5E57", "5& c #E7342C", "6& c #E20F03", "7& c #E52918", "8& c #ED6750", "9& c #F6B2AE", "0& c #FEFBF9", "a& c #F6B8B5", "b& c #EF7E78", "c& c #E9514B", "d& c #E7372E", "e& c #E5221A", "f& c #E52116", "g& c #E5261E", "h& c #E73A32", "i& c #E9453D", "j& c #E94841", "k& c #EA4D46", "l& c #EB564F", "m& c #E94842", "n& c #E9433A", "o& c #E7382C", "p& c #E6291C", "q& c #E42214", "r& c #E3140C", "s& c #E31506", "t& c #E20E03", "u& c #E20D02", "v& c #E41B0E", "w& c #E52921", "x& c #E84036", "y& c #F5ADA9", "z& c #FBE6E3", "A& c #FEF9F6", "B& c #FCF3F3", "C& c #FADCDA", "D& c #F8CAC5", "E& c #F4AAA3", "F& c #F0817C", "G& c #EC655F", "H& c #EA4E47", "I& c #E73930", "J& c #E62C22", "K& c #E5261C", "L& c #E41E19", "M& c #E41D17", "N& c #E41A14", "O& c #E41C15", "P& c #E41F18", "Q& c #E5221B", "R& c #E5281C", "S& c #E62E21", "T& c #E94B40", "U& c #EC615A", "V& c #F28E70", "W& c #F1908A", "X& c #F7C5BE", "Y& c #FCE7E6", "Z& c #FBF9F6", "`& c #FBE4E3", " * c #FAD8D6", ".* c #F9D3D1", "+* c #F9CCC9", "@* c #F9D1CE", "#* c #FBE0DE", "$* c #FBEDED", "%* c #4E778B", "&* c #7D7D7C", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . + + + + . . + + + + . . . + + + + . . . + + + + + . . . ", ". . . . . . . . . . . . . . . . . . . + + . . + + . + + . + + . . + + . + + . . + + . . + + . . ", ". . . . . . . . . . . . . . . . . . + + . . . . + . + + . . + + . + + . . + + . + + . . + + . . ", ". . . . . . . . . . . . . . . . . . + + . . . . . . + + . . + + . + + . . + + . + + + + + . . . ", ". . . . . . . . . . . . . . . . . . + + . . . . . . + + . . + + . + + . . + + . + + . . + + . . ", ". . . . . . . . . . . . . . . . . . + + . . . . + . + + . . + + . + + . . + + . + + . . + + . . ", ". . . . . . . . . . . . . . . . . . . + + . . + + . + + . + + . . + + . + + . . + + . . + + . . ", ". . . . . . . . . . . . . . . . . . . . + + + + . . + + + + . . . + + + + . . . + + + + + . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", " ", " ", " ", " ", " ", " ", " ", " @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ @ ", " @ # # $ $ # % & * = # $ - ; ; > $ $ $ $ $ , ' ; > # # # # # ) ' ; % # # # # # # $ $ $ $ $ ! ", " @ # $ # ~ { ] ^ / ( _ : < [ } | 1 2 3 $ $ 4 5 6 7 8 9 % # # 0 a } b c d # # # # $ $ $ $ $ e ", " @ # > f [ g h i j k | l m n o p q r s t $ u n v w x y z A # B C D E F G H # # # $ $ $ $ $ e ", " @ $ I J _ K $ # # > L % M N O $ P Q R S # T U V # > W X Y # Z 6 ` # ...+.# # # $ $ $ $ $ e ", " @ $ @.#.$.# $ # # # # $ M N O $ $ %.&.*.t T U =.# # t -.;.>.Z 6 ` ,.< 5 '.# ).# $ $ $ $ $ e ", " @ !.( ~.$ # $ # # # # $ M N O $ $ $ c {.].T U =.# # # ` ^./.Z (._.:.<.[.> # }.|.1.2.$ $ $ e ", " @ %.3.4.$ # $ # # # # $ M N O $ $ $ /.5.6.T U =.# # # 7.#.8.Z 9.0.a.b.c.).# # d.e.f.g.# $ e ", " @ h./ i.$ # $ # # # # $ M N O $ $ $ j.k.l.T U =.# # # m.n.o.Z (.w p.q.N r.# # # s.t.u.v.$ e ", " @ # 8 w.x.# $ # # # > # M N O $ $ y.z.A.% T U =.# # ) B.C.D.Z (.w # E.F.G.% # # H.I.J.K.L.e ", " @ $ M.J N.O.P.# # Q.R.S.M N O # T._ F U.# T w.V.# : W.F X.# Z (.w Y.7.y Z.).# `. +.+++@+#+e ", " @ # > $+R %+&+o.*+=+;.-+V X ;+>+,+F.'+$ $ )+!+~+8.{+]+^+/+# B [ (+_+:+<+B # # [+}+|+1+@+2+e ", " @ # # > Z 3+] 4+5+6+7+,.8+9+0+a+b+c+# $ $ d+e+f+g+h+i+j+# # k+l+f+m+n+o+# p+q+r+s+1+t+u+v+e ", " @ # w+> $ > x+y+z+A+# $ B+C+D+> $ $ $ $ $ , E+C+F+# # # # # G+C+C+p.H+I+J+K+L+M+++N+O+P+Q+e ", " @ # R+S+T+U+A+# # # # $ $ $ $ $ $ $ $ $ $ $ # # # # # # # # Y.`.V+W+X+Y+Z+`+++ @.@+@@@#@$@e ", " @ # # %@&@*@=@-@;@>@,@# $ $ $ $ $ $ $ $ $ $ # # # # ).'@)@!@~@{@]@^@/@(@t+.+_@:@<@[@}@|@1@e ", " @ $ # $ 3 2@3@4@5@6@7@8@9@0@a@b@c@c@c@c@c@d@e@f@g@h@i@j@k@l@m@l@I.n@++o@p@q@r@s@}@t@u@v@w@e ", " @ $ # $ $ # $ ).x@y@z@A@8@B@C@D@E@J.F@G@t+G@m@H@I@J@G@K@L+}+L@M@N@O@P@Q@R@S@T@u@t@t@U@V@Q+e ", " @ $ W@X@$ # $ # # # # $ $ Y@Z@`@ #.#+#@###$#$#$#%#&#*#=#-#;#>#).# # ,#'#)#}@!#~#t@{#]#^#/#e ", " @ # (#_#:#<#[#X@# # # $ $ $ $ $ $ $ $ # # # # # # # # # # }#|#1#2#3#4#5#u@}@6#u@7#8#9#0#a#e ", " @ # # b#c#d#e#f#g#h#i#j#k#l#(#m#n#o#p#p#q#r#|#s#t#u#v#w#x#e#y#z#A#6#B#u@C#D#E#F#G#H#H#I#J#e ", " @ # $ # $ # K#1@L#M#N#O#P#Q#R#S#T#U#V#V#W#X#R#v@P#O#6#6#6#Y#Z#[@`# $.$+$@$#$$$%$&$H#H#*$=$e ", " @ # # # $ # $ # # # b#-$;$>$,$'$)$!$~${${$]$O#^$/$($_$:$3#<$[$}$|$1$# 2$3$4$5$6$H#H#7$8$$ e ", " @ $ 9$0$a$b$$ # # # # $ $ $ c$d$X@K#e$f$f$g$h$i$f$j$k$l$m$}## # n$o$p$q$r$H#6$6$s$t$u$v$w$e ", " @ $ x$y$z$A$B$$$C$D$E$F$).$ $ $ $ $ $ $ $ $ # # # t G$H$I$J$K$L$M$N$O$P$&$Q$R$S$T$U$V$W$X$e ", " @ # # # $ Y$Z$`$ %.%+%@%#%$%%%&%*%=%=%=%=%-%;%>%,%'%)%!%~%{%]%P$6$^%/%(%_%:%<%[%}%V$V$|%1%e ", " @ # # # $ # # A+C+2%3%4%5%6%7%8%9%0%a%a%a%b%b%c%d%]%^%6$e%f%g%h%i%j%k%l%m%n%o%p%q%V$r%s%# e ", " @ # t%u%$ # $ # # # # v%w%x%y%z%A%B%C%D%E%E%E%E%F%G%H%I%J%K%L%M%N%O%P%Q%R%S%T%q%U%V%W%X%$ e ", " @ # Y%Z%`% &.&+&@&# # $ $ $ $ $ $ $ $ $ $ $ # # # # # # #&$&%&&&*&=&-&;&>&q%q%,&'&)&!&$ $ e ", " @ # $ #&~&{&]&^&/&(&_&:&<&[&# $ $ $ $ $ $ $ # }#}&|&1&2&3&4&5&V%>&q%q%>&6&7&8&9&%&$ $ $ $ e ", " @ # # # $ 0&u%a&b&c&d&e&f&g&h&i&j&k&l&l&m&j&n&o&p&q&r&}%s&t&u&T%v&w&x&=&y&z&A&# $ $ $ $ $ e ", " @ # # $ $ # $ # > B&C&D&E&F&G&H&I&J&K&L&M&N&O&P&Q&R&S&o&T&U&V&W&X&|&Y&c$# # # # $ $ $ $ $ e ", " @ # # # $ # $ # # # # $ $ $ $ # Z&`& * *.*+*+*@* * *#*$*).# # # # # # # # # # # $ $ $ $ $ %* ", " ! e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e e &* ", " ", " ", " ", " ", " ", " ", " "}; ripperX-2.8.0/src/xpms/config.xpm000066400000000000000000000235061233655711300167370ustar00rootroot00000000000000/* XPM */ static char * config_xpm[] = { "48 60 250 2", " c None", ". c #000000", "+ c #FFFFFF", "@ c #8C8D8D", "# c #5F5F5F", "$ c #262626", "% c #8B8C8B", "& c #A2A2A3", "* c #676667", "= c #3E3E3E", "- c #39393A", "; c #393738", "> c #565656", ", c #848685", "' c #717172", ") c #4B4B4D", "! c #141414", "~ c #141413", "{ c #131414", "] c #706F70", "^ c #161617", "/ c #141312", "( c #1E1E1E", "_ c #494B4A", ": c #949595", "< c #797A79", "[ c #242425", "} c #1A1B1A", "| c #1E1F1F", "1 c #181716", "2 c #5C5E5D", "3 c #BFBFBE", "4 c #818181", "5 c #232323", "6 c #161616", "7 c #1C1B1C", "8 c #151516", "9 c #5C5B5C", "0 c #CACACA", "a c #F5F5F5", "b c #FBFCFC", "c c #858484", "d c #8A8A8A", "e c #D3D2D4", "f c #6D6B6B", "g c #151415", "h c #151515", "i c #1D1D1D", "j c #E9E9E9", "k c #F7F8F8", "l c #CDCDCE", "m c #323233", "n c #E2E2E2", "o c #ECECED", "p c #F9FAFA", "q c #F2F2F2", "r c #999898", "s c #504F4F", "t c #1B1A1B", "u c #DEDFDF", "v c #E5E6E6", "w c #727171", "x c #414040", "y c #E1E1E1", "z c #D0D1CF", "A c #CFCDCD", "B c #D8D8D8", "C c #716F70", "D c #131412", "E c #777777", "F c #D2D3D4", "G c #BFBFC0", "H c #888787", "I c #141515", "J c #7A7B7B", "K c #D1D1D1", "L c #CACBCB", "M c #C8C7C7", "N c #C6C5C5", "O c #656565", "P c #757674", "Q c #313031", "R c #DEDDDD", "S c #DADBDA", "T c #858584", "U c #838383", "V c #BFC0C0", "W c #C2C2C2", "X c #C0C1C1", "Y c #C0BFBE", "Z c #343433", "` c #2C2C2C", " . c #444344", ".. c #101111", "+. c #444443", "@. c #9E9F9F", "#. c #797979", "$. c #2F3130", "%. c #8E8E8D", "&. c #D5D5D5", "*. c #CFCFCF", "=. c #CDCCCD", "-. c #C5C5C5", ";. c #C1C2C2", ">. c #BFBDBE", ",. c #AAA9A9", "'. c #191919", "). c #8D8D8D", "!. c #363636", "~. c #111011", "{. c #121312", "]. c #A5A5A5", "^. c #BDBCBC", "/. c #BBBABA", "(. c #9B9B9B", "_. c #181A18", ":. c #B5B5B5", "<. c #6B6C6B", "[. c #C9C9C9", "}. c #B9BAB9", "|. c #B6B6B6", "1. c #B4B4B4", "2. c #7B7A7A", "3. c #B8B9B8", "4. c #B1B2B3", "5. c #AFB0B0", "6. c #ADADAD", "7. c #939292", "8. c #424342", "9. c #949393", "0. c #6D6C6D", "a. c #C6C6C5", "b. c #BDBDBD", "c. c #B5B4B5", "d. c #AEAEAD", "e. c #ACACAC", "f. c #ABAAAA", "g. c #A7A7A7", "h. c #A6A6A6", "i. c #9D9C9D", "j. c #464646", "k. c #605F5F", "l. c #BBBBBB", "m. c #B7B7B6", "n. c #AFAFAF", "o. c #ACACAB", "p. c #A0A0A2", "q. c #9F9F9E", "r. c #9D9D9D", "s. c #979898", "t. c #595959", "u. c #A8A9A7", "v. c #9FA0A2", "w. c #9A9A99", "x. c #969796", "y. c #929092", "z. c #2B2C2C", "A. c #C5C3C4", "B. c #AFB1B1", "C. c #A1A0A2", "D. c #979797", "E. c #525452", "F. c #A4A4A4", "G. c #A8A9A9", "H. c #9B9A9A", "I. c #8F8F91", "J. c #8E8F91", "K. c #8A8889", "L. c #888887", "M. c #858686", "N. c #4E4B4D", "O. c #3F403F", "P. c #7A7A7B", "Q. c #6A6B6B", "R. c #535454", "S. c #515352", "T. c #828181", "U. c #959694", "V. c #575757", "W. c #707171", "X. c #454545", "Y. c #8C8A8A", "Z. c #7E7E7E", "`. c #0F0F0F", " + c #919191", ".+ c #8D8E8F", "++ c #828282", "@+ c #807E7F", "#+ c #878687", "$+ c #414241", "%+ c #7C7E7D", "&+ c #787878", "*+ c #111112", "=+ c #808081", "-+ c #747574", ";+ c #292828", ">+ c #2F2F2F", ",+ c #0B0A0B", "'+ c #777675", ")+ c #727273", "!+ c #6E6F6F", "~+ c #4E4E4E", "{+ c #3B3C3B", "]+ c #403F40", "^+ c #323333", "/+ c #2E2E2E", "(+ c #737473", "_+ c #6B6D6D", ":+ c #5C5C5F", "<+ c #242424", "[+ c #555555", "}+ c #626361", "|+ c #696868", "1+ c #656666", "2+ c #636463", "3+ c #616060", "4+ c #5F5D5F", "5+ c #212122", "6+ c #434242", "7+ c #535352", "8+ c #484849", "9+ c #A8A8A7", "0+ c #9D9F9D", "a+ c #5E5E5F", "b+ c #6A6A69", "c+ c #686767", "d+ c #5E5C5F", "e+ c #5A5B59", "f+ c #4A4B4C", "g+ c #9A999A", "h+ c #5A5A59", "i+ c #545554", "j+ c #515251", "k+ c #4D4E4D", "l+ c #474748", "m+ c #626261", "n+ c #5A5C5D", "o+ c #595758", "p+ c #353435", "q+ c #626463", "r+ c #575556", "s+ c #49494A", "t+ c #B3B1B3", "u+ c #484949", "v+ c #848282", "w+ c #646464", "x+ c #3D3D3D", "y+ c #3F3F3F", "z+ c #696767", "A+ c #515150", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . + + + + . . . . . . . . . . . . . . . + + + + + . . . . . . . . ", ". . . . . . . . . . . . . . . + + . . + + . . . . . . . . . . . . . + + . . . . . . . . . . . . ", ". . . . . . . . . . . . . . + + . . . . + . . + + + . . + . + + . . + + + . + + . . + + . + . . ", ". . . . . . . . . . . . . . + + . . . . . . + + . + + . + + . + + . + + . . + + . + + . + + . . ", ". . . . . . . . . . . . . . + + . . . . . . + + . + + . + + . + + . + + . . + + . + . . + + . . ", ". . . . . . . . . . . . . . + + . . . . + . + + . + + . + + . + + . + + . . + + . + . . + + . . ", ". . . . . . . . . . . . . . . + + . . + + . + + . + + . + + . + + . + + . . + + . + + . + + . . ", ". . . . . . . . . . . . . . . . + + + + . . . + + + . . + + . + + . + + . . + + . . + + + + . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . + + + . . . ", " ", " @ # $ % & * = - ; ; > , ", " ' ) ! ~ { ; ] $ ^ / { ! { { ! ( _ : ", " < [ ! ! ! ! } | { ! ! ! ! ! ! ! ! 1 | 2 ", " 3 4 $ { { ! ! 5 > } ! ! ! ! ! ! ! ! 6 | 7 8 9 ", " 0 a b c ^ ! ! ! ! d + e f g ! ! ! ! h i ( 6 ! ! ] ", " 3 j b k j l m ! ! ! ! n o j p q r s ! t | ^ ! ! ! / c ", " u + p o j v n w ! ! ! x + y z A B o b C } ! ! ! ! ! D } E ", " F G j v n y u H ! ! I J + K A L M N l O ! ! ! ! ! ! ! { 7 E P Q [ r ", " & 2 v n u R S S T U H V v L M N W X Y Z ! ! ! ! ! ! ! ! { ` .} { ..+.@. ", " #.$.%.u R S B &.F z *.=.L M -.;.X >.,.i ! ! ! ! ! ! ! h 7 ( h ! ! ! '.] ", " ).!.~.{.].n B &.F K *.A L M -.W X 3 ^./.(.i ! ! ! ! ! ! _.( ^ ! ! ! ! ! ~ $ r ", " :.G U Q ! <.a B F K z l l [.M -.;.Y >./.}.|.1.c $ g ! 5 2.> t ! ! ! ! ! ! ! ! ! - ", " j p k y f p S F z *.A L M N ;.X 3 ^./.3.1.4.5.6.7.8.m N p 9.t ! ! ! ! ! ! ! ! ! 6 0. ", " + u S a + n K z l L [.a.W X 3 b./.3.c.1.5.d.e.f.g.h.5.p 5.i.j.^ ! ! ! ! ! ! ! ! _.k. ", " 3 b &.B &.n z A =.0 M -.;.V 3 l.}.m.1.4.n.6.o.,.h.& p.q.r.(.s.%.` h ! ! ! ! ! g $ t. ", " *.o F F K *.A L [.N W X 3 ^./.}.:.1.5.n.e.e.u.].& v.@.(.w.x.9.y.< 7 ! ! ! ! _.z.T ", " j y K z *.L [.a.A.;.Y 3 /.}.|.1.B.n.6.f.u.].C.p.@.r.(.D.: 7.y.%.% E.'.! h ( i / #. ", " b.F.*.=.L M N ;.V >.l./.m.1.4.5.6.o.G.g.& C.@.r.H.r x.9.I.J.@ K.L.M.N.( | 6 ! D O. ", " P.! t.1.N A.;.V >.l.}.|.1.5.n.r.Q.R.S.4 p.@.i.w.s.9.7.I.J.% K.H M.T.t.'.! ! ! h 7 @. ", " 2.Q ! ;.G 3 l.}.m.1.4.n.6.U.= !.` [ m V.x.r U.9.I.J.).d L.M.U 0.Z g ! ! ! ! ! D W. ", " X.3 ^./.3.:.1.5.6.o.o.N.Z t ! ! 6 Z <.9.y.J.@ Y.L.M.c 4 Z.Q ! ! ! ! ! ! ! ~ ..`./ < ", " X.l.}.m.1.5.5.6.f.u. +!.[ ! ! ! ! ! w r..+% K.L.M.++@+Z.J ` ! ! ! ! ! ! ! ! ! ! D 2 ", " y.0 c.4.5.6.e.,.g.].#+!.i ! ! ! ! ! $+|.% L.M.U 4 Z.%+< &++.{ ! ! ! ! ! ! ! ! ! h 2 ", " :.v a X 5.n.e.e.u.].C.p.E !.i ! 3.r *+/ ! w.|.T 4 =+%+2.&+P -+V.*+! ! ! ! ! ! ! ! } ;+2 ", " :.a o /.5.e.f.u.g.F.p.@.r.U !.i s d >+| ,+! $+q U %+J #.'+P )+] !+8 ! ! ! ! ! ! ^ 5 !.~+2 ", " 3 p 5.d.e.,.g.].C.v.r.i.r 7.{+]+! 5.^+/+`.! ! + %.2.&+'+(+W.] _+Q.:+>+<+| h g 1 $ {+) E.2 ", " :.+ ^.f.u.h.& p.@.i.H.s.U.y.> [+! }+F.| ,+! ! -.1.'+P w ] _+<.|+1+2+3+4+t./+5+z.6+s 7+8+2 ", " a l 9+F.C.@.0+(.r x.9.y.J.J a+m ! ;+`.,+! ! d g.)+C !+<.b+c+O }+3+d+9 e+m ; 8+E.~+f+[ ). ", " S R C.p.r.(.w.D.9.7.J.%.% L.g+&+! ! ! ! ! ! l.6.] 0.Q.c+1+}+3+d+:+h+V.i+!.8.j+k+l+<+W. ", " 3 q ].r.w.s.x.7. +J.@ d H M.7.F Q ! ! ! ! j+a 4 <.|+* 2+m+k.:+n+o+> R.j+p+8+_ .<+W. ", " + @.r x.9.7.J..+% L.H c 4 @+g.n d+! ! d+R S b+c+O q+3+d+9 t.r+[+E.j+~+/+s+]+5 ). ", " m.Q ! ! ! _ % K.L.T T.4 %+2.#.t+k + + + b.w 1+2+3+# :+h+o+[+R.j+) s+u+z.; ~ ]+ ", " p.c c c 2.[ < #+v+4 Z.%+< &+P (+] 7. +J 1+w+m+k.d+:+o+> i+E.s l+x+]+y+[ ~ { ..8+ ", " c+k+T.@+%+J #.'+-+' ] 0.<.|+O q+m+4+:+e+o+[+7+j+s 8+= Z $ <+'.{ ! ~ `. ", " $+(+%+#.E -+w ] !+Q.|+* w+}+# :+e+o+> R.j+s ~+_ x m } ! ! ! 8 *+/ W. ", " -.B -+&+P -+C ] _+b+z+O 2+3+a+n+t.V.i+E.A+~+f+u++.!.t ! ! ! ! ~.~.W. ", " o l.'+-+W.] _+Q.|+O 2+3+4+d+h+o+[+7+j+s N.u+j. .8.` '.! ! ! ~...W. ", " a (+)+] !+<.b+c+O m+k.d+e+o+[+i+7+s ~+f+u+j. .$+y+!.$ '.*+~.*+)+ ", " 3. .d+_+Q.c+1+2+3+4+:+e+o+[+R.A+s ) _ j. .8.]+= {+; ^+5 1 *+)+ ", " U ` O.w+2+t.= [+h+t.[+R.j+s N._ l+X.+.x ]+x+- ; p+m /+| D. ", " @ ) <+s [ $ .| O.E.A+~+f+8+j. .O.p+/+x+- p+Z $.` 5+%. ", " F.'+` ( 2. D.- +.N._ l+X.8.!.| } ! i - m $.[ | %. ", " k.= l+j. .$+]+]+! ! ! ! 1 ` >+ .C. ", " k.>+ .8.]+x+x+]+! ! ! ! ! $ T ", " b+$ - {+{+- {+]+( ( ! .T ", " .; ; ; ;+i /+c+ ", " "}; ripperX-2.8.0/src/xpms/doall.xpm000066400000000000000000000072361233655711300165670ustar00rootroot00000000000000/* XPM */ static char * doall_xpm[] = { "48 60 38 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #FDFDFD", "# c #E8E8E8", "$ c #999999", "% c #0D0D0D", "& c #1B1B1B", "* c #A6A6A6", "= c #A3A3A3", "- c #121212", "; c #F3F3F3", "> c #4C4C4C", ", c #DBDBDB", "' c #FBFBFB", ") c #F5F5F5", "! c #959595", "~ c #F6F6F6", "{ c #F2F2F2", "] c #EAEAEA", "^ c #494949", "/ c #070707", "( c #8C8C8C", "_ c #FCFCFC", ": c #CDCDCD", "< c #1A1A1A", "[ c #A2A2A2", "} c #474747", "| c #060606", "1 c #F4F4F4", "2 c #303030", "3 c #393939", "4 c #9B9B9B", "5 c #4D4D4D", "6 c #DCDCDC", "7 c #BFBFBF", "8 c #8F8F8F", "9 c #FAFAFA", "................................................", "................................................", "........................+..............+..+.....", "........+@#$%...........+..+...........+..+..+..", "........+.&*=..............+...........+..+..+..", "........+..-;..>,',>....+.+++.....++)!.+..+..~..", "........+..-{..]^/^]....+..+......(~+_.+..+..:..", "........+.<=[..]}|}]....+..@|.....123+.+..+.....", "........+@]4%..5,_65....+..7+.....89++.+..+..+..", "................................................", "................................................", "................................................", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " "}; ripperX-2.8.0/src/xpms/exit.xpm000066400000000000000000000070641233655711300164440ustar00rootroot00000000000000/* XPM */ static char * exit_xpm[] = { "48 60 31 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #717171", "# c #717571", "$ c #797979", "% c #797D79", "& c #868286", "* c #868686", "= c #8E8A8E", "- c #8E8E8E", "; c #969296", "> c #969696", ", c #9E9A9E", "' c #9E9E9E", ") c #867D79", "! c #B6AAAE", "~ c #A6A2A6", "{ c #D7DBDF", "] c #A6A6A6", "^ c #AEAAAE", "/ c #AEAEAE", "( c #B6B2B6", "_ c #B6B6B6", ": c #BEBABE", "< c #BEBEBE", "[ c #C7C3C7", "} c #C7C7C7", "| c #CFCBCF", "1 c #CFCFCF", "2 c #D7D3D7", "................................................", "................................................", "...........................+++++........++.++...", "...........................++..............++...", "...........................++....++..++.++.+++..", "...........................+++++..++++..++.++...", "...........................++......++...++.++...", "...........................++.....++++..++.++...", "...........................++....++..++.++.++...", "...........................+++++.++..++.++..++..", "................................................", "................................................", "................................................", ".@@@@@@@@@@@@###$$$%%%%&&&***====---;;;>>>,,,,'+", ".@@@@@@@@@@@###$$$%%%%&&&***====---;;;>>>,,,,''+", ".@@@...@@@@###$$$%%%%&&&***====---;;;>>>>..)+''+", ".@@.....@@###$$$%%%%&&&***====---;;;>>>>..)!+'~+", ".@@......###$$$%%%%&&&***====---;;;>>>>..)!{+'~+", ".@@.......#$$$%%%%&&&***====---;;;>>>>..)!{++~~+", ".@@@.......$$%%%%&&&***====---;;;>>>>..)!{++~~]+", ".@@@@.......%%%%&&&***====---;;;>>>>..)!{++~~]]+", ".@@@@#.......%%&&&***====---;;;>>>,..)!{++~~]]]+", ".@@@###.......&&&***====---;;;>>>,..)!{++~~]]]]+", ".@@###$$.......&***====---;;;>>>>..)!{++~~]]]]^+", ".@###$$$%.......**====---;;;>>>>..)!{++~~]]]]^^+", ".###$$$%%%.......====---;;;>>>>..)!{++~~]]]]^^^+", ".##$$$%%%%&.......==---;;;>>>>..)!{++~~]]]]^^^/+", ".#$$$%%%%&&&.......---;;;>>>>..)!{++~~]]]]^^^//+", ".$$$%%%%&&&**.......-;;;>>>>..)!{++~~]]]]^^^///+", ".$$%%%%&&&***=.......;;>>>,..)!{++~~]]]]^^^///(+", ".$%%%%&&&***===.......>>>,..)!{++~~]]]]^^^///((+", ".%%%%&&&***====-.......>>..)!{++~~]]]]^^^///(((+", ".%%%&&&***====---.........)!{++~~]]]]^^^///((((+", ".%%&&&***====---;;.......)!{++~~]]]]^^^///((((_+", ".%&&&***====---;;;>.....)!{++~~]]]]^^^///((((__+", ".&&&***====---;;;>>>... {++~~]]]]^^^///((((___+", ".&&***====---;;;>>>>..) +++~]]]]^^^///((((___:+", ".&***====---;;;>>>,..)!{+++++]]]^^^///((((___::+", ".***====---;;;>>>,..)!{+++++++]^^^///((((___:::+", ".**====---;;;>>>>..)!{+++++++++^^///((((___:::<+", ".*====---;;;>>>>..)!{++~~+++++++///((((___:::<<+", ".====---;;;>>>>..)!{++~~]]+++++++/((((___:::<<<+", ".===---;;;>>>>..)!{++~~]]]]+++++++(((___:::<<<<+", ".==---;;;>>>>..)!{++~~]]]]^^+++++++(___:::<<<<[+", ".=---;;;>>>>..)!{++~~]]]]^^^/+++++++__:::<<<<[[+", ".---;;;>>>,..)!{++~~]]]]^^^///+++++++:::<<<<[[[+", ".--;;;>>>,..)!{++~~]]]]^^^///((+++++++:<<<<[[[}+", ".-;;;>>>>..)!{++~~]]]]^^^///((((+++++++<<<[[[}}+", ".;;;>>>>..)!{++~~]]]]^^^///((((__+++++++<[[[}}}+", ".;;>>>>..)!{++~~]]]]^^^///((((___:+++++++[[}}}|+", ".;>>>>..)!{++~~]]]]^^^///((((___:::+++++++}}}||+", ".>>>>..)!{++~~]]]]^^^///((((___:::<<+++++++}|||+", ".>>>..)!{++~~]]]]^^^///((((___:::<<<<+++++++||1+", ".>,..)!{++~~]]]]^^^///((((___:::<<<<[[+++++++11+", ".,,.)!{++~~]]]]^^^///((((___:::<<<<[[[}++++++11+", ".,,)!{++~~]]]]^^^///((((___:::<<<<[[[}}}+++++11+", ".,,++++~~]]]]^^^///((((___:::<<<<[[[}}}||++++22+", ".,''''~~]]]]^^^///((((___:::<<<<[[[}}}|||111122+", ".'''~~~]]]]^^^///((((___:::<<<<[[[}}}|||1111222+", "++++++++++++++++++++++++++++++++++++++++++++++++"}; ripperX-2.8.0/src/xpms/go.xpm000066400000000000000000000076321233655711300161010ustar00rootroot00000000000000/* XPM */ static char * go_xpm[] = { "48 60 55 1", " c None", ". c #000000", "+ c #FFFFFF", "@ c #D3D3D3", "# c #969296", "$ c #868286", "% c #616161", "& c #515151", "* c #282828", "= c #8E8A8E", "- c #696969", "; c #303030", "> c #202020", ", c #414141", "' c #494949", ") c #080808", "! c #383838", "~ c #BEBABE", "{ c #FFFBFF", "] c #EFEBEF", "^ c #DFDBDF", "/ c #595959", "( c #717171", "_ c #9E9A9E", ": c #797979", "< c #E7E3E7", "[ c #101010", "} c #B6B2B6", "| c #515159", "1 c #A6A2A6", "2 c #868A8E", "3 c #797179", "4 c #F7F3F7", "5 c #CFCBCF", "6 c #413841", "7 c #C7C3C7", "8 c #DFD3D7", "9 c #596161", "0 c #181818", "a c #384141", "b c #202828", "c c #283028", "d c #303028", "e c #414941", "f c #494941", "g c #716971", "h c #515149", "i c #202820", "j c #697171", "k c #383830", "l c #494951", "m c #867979", "n c #413838", "o c #302828", "p c #202028", "................................................", "................................................", ".......................++++.........++..++..++..", "......................++..++........++..++..++..", ".....................++....+..+++...++..++..++..", ".....................++......++.++..++..++..++..", ".....................++..+++.++.++..+@..+@..+@..", ".....................++...++.++.++..+@..+@..+@..", "......................++..++.++.++..............", ".......................+++.+..+++...++..++..++..", "................................................", "................................................", " ", " #$%&*= ", " $-&;*.>,%' *# ", " =$&'*).!,,$~{]^=-$/*( ", " _$%&*>.>>:=~< ==$:#-/;>[)[.' ", " $(&,*.[,(:$$$=(}__--|;*>= ^,...;.* ", " $&'*[.,',/-(=_12=/!,;34^]>...>]{^....5,> ", " =.)( _ 1$/'&6*%78~....^{{$...._{{(...={&. ", " _;.9- }5~>..[._{{;...%{{][...,{{][..>{{$._ ", " 8~>%{{{{,..[.,{{$...[]{{%....~{{_...$~~%.$ ", " 5%.,{{{ ....[^{5....${{5....&~ $[....**'- ", " ~$)[{{]>..[.=]{;...>_5=,....)*;&&$$ ", " *.{{$..[.*~~%.....>*,&-$# ", " ~..=_..>[.)**&&$$_ ", " =>>.....)'&($_ ", " 7;>[[.!&,,;*;*0a*&&$$ ", " _50!,$>>b!,//%-(($3-9&,!,;&%$= ", " =^0!${(....(~#&;;'&(($=_ ~1_:,.[*,&-$_ ", " &0;~{][...&{{~....(}_(;,&-2#1}}1_(-!c.>' ", " ,,>^{{$....]{{,...>{{{>...> _$:&%=_}~<}>( ", " &..>,($[...={{~.... {{_....5{{{;..._1$$[; ", " ,))>00[))..[$=~;...,{{][...%{{{_...${{{,. ", " ,:>&,,!;d>>0[[)....._~{$....^{{][..[{{{[* ", " !-*&&'&'''',&'**>>0[[)......${{{$..._{^.; ", " =/,!&'9//'%'':%,,,,!;;**>00[)).>,%...>{ .& ", " $%,,''/&%(=&e:',,&,,,,,,,!;;**>>0[[)..;>.( ", " &:0'''''&%''/-e,/$(/,',,!'!!!!!;;;***>>[,_ ", " '(*''::(%|f,-9,,-&&-g'/-'=/!!!!!;;;;;;;. ", " h-[''''/-($$=-/&,,,,,''!!,:'%(%;;;;;;;i> ", " ;/>''''f,,,,$&%j$$:-/&!!!!!!!';;;;;;;;0' ", " #!,;'''&&&,,,#f,,,,,&%-:::%&'kk;;;;;;;;[- ", " $&!!'''/%$%,'$,,,,!!!!!!!!l%-::(%&,;;;d)= ", " &'*''''%%$&,9-,,&#&,/-!!!!!;;;;!'/-:&d*. ", " ,%*f,,,,,,,,-/,'$((m=%%&,;;;;;;;;;;;d*>* ", " ;/b,,-$$(-/&:&n!!!!,/n/(:!$3!;;;;;;o**[& ", " d&*,,,,,'&%j=/:-/&!!!!!!!!'%%';;;;d***)( ", " _;,;,,,,,,,,,(,,&%%:::%/'!;;;,!;;;;;;**.# ", " $;;;,,,&',,,!-,!!!!!!;'/%(::-/';d*****i) ", " %;>,,,,$%$h!&/!!!!!!;;;;;;;;,l%(::-%;*0; ", " ([[,,,,,'&!!%,!!!!!;;;;;;;;;;d****!,;*[& ", " .[,,,,,!!!!'!!!!;;;;;;;;;;;d*******bp)$ ", " ,[*o!n!!!!!!!!!;;;;;;;;;;;o*******pp>._ ", " _&;*).)[00**!!;;;;;;;;;;d********p>>>> ", " =$&&**..))00>*;;;d*******bp>>>[, ", " $$&&*>..))[0>>**bp>>>>[% ", " _$(&'*>..))[[0>)$ ", " _$-&,*[) ", " "}; ripperX-2.8.0/src/xpms/ripperX-icon.xpm000066400000000000000000000175541233655711300200570ustar00rootroot00000000000000/* XPM */ static char * ripperX_icon_xpm[] = { "48 48 199 2", " c None", ". c #030205", "+ c #330211", "@ c #76064E", "# c #AB08A0", "$ c #7109AE", "% c #520BD5", "& c #0E1AD5", "* c #1478ED", "= c #2E78EC", "- c #944AD5", "; c #F01EC4", "> c #9808A3", ", c #470318", "' c #68032A", ") c #8C0664", "! c #130BDC", "~ c #1798EB", "{ c #3487EB", "] c #4F39E3", "^ c #EF116A", "/ c #EB4D21", "( c #B00C0E", "_ c #8908A5", ": c #6E0BD2", "< c #1168EE", "[ c #1A88EC", "} c #6F39DE", "| c #AB2FCE", "1 c #EB0EC0", "2 c #CE4E0D", "3 c #17030A", "4 c #0E48DF", "5 c #36A7EF", "6 c #504AEB", "7 c #CB3DD6", "8 c #EB2E48", "9 c #EE1D35", "0 c #B01CDF", "a c #D13C4B", "b c #B54D06", "c c #944C08", "d c #3399F2", "e c #4F96F3", "f c #EA3D99", "g c #CE3070", "h c #6E49BA", "i c #D05B11", "j c #B75B05", "k c #B96804", "l c #B87611", "m c #2E1904", "n c #59031D", "o c #320CE3", "p c #6576E3", "q c #F54ECF", "r c #E83C66", "s c #8B3BD1", "t c #D16C10", "u c #D17A11", "v c #593604", "w c #915DD3", "x c #F75BCF", "y c #D13B9A", "z c #EB5C18", "A c #D2871F", "B c #ED7A21", "C c #963B05", "D c #A80875", "E c #51B7F4", "F c #7185F7", "G c #F04D59", "H c #E1961E", "I c #EE8922", "J c #ED6C1E", "K c #067640", "L c #350AA9", "M c #920BD5", "N c #AE0BCC", "O c #739AF0", "P c #966CE7", "Q c #F45CA2", "R c #A84CC1", "S c #F29824", "T c #0F5ADC", "U c #3A48E6", "V c #7317C8", "W c #3059F3", "X c #5AC2EC", "Y c #CD7AD4", "Z c #D16CDE", "` c #8875C7", " . c #F34B98", ".. c #BC4C78", "+. c #17E0E2", "@. c #18A4E0", "#. c #19AFE5", "$. c #5359E3", "%. c #F25B59", "&. c #EB3D33", "*. c #B89C10", "=. c #15C5DF", "-. c #15D5DA", ";. c #4B68E2", ">. c #BAB7F7", ",. c #D196E6", "'. c #F3A739", "). c #F49861", "!. c #AB6AEC", "~. c #F37B9E", "{. c #F77BDA", "]. c #F38768", "^. c #CC0BC7", "/. c #FEEDEC", "(. c #FAC8AC", "_. c #F887E0", ":. c #F999A4", "<. c #F6A867", "[. c #F5C74A", "}. c #F4B83C", "|. c #ED2DA0", "1. c #D36D6A", "2. c #B6892E", "3. c #9E627C", "4. c #40C2E5", "5. c #34E2DA", "6. c #36D6D3", "7. c #5E2AD8", "8. c #8F89FA", "9. c #B99AE2", "0. c #F997E0", "a. c #FAB8AB", "b. c #F9D878", "c. c #F9C876", "d. c #0A181C", "e. c #D4A941", "f. c #D74D6A", "g. c #B48284", "h. c #A5AD6F", "i. c #7DAB87", "j. c #4AD6C4", "k. c #FCD9E7", "l. c #FAA7EA", "m. c #FAA9A1", "n. c #FAD8AB", "o. c #D8B747", "p. c #F06B64", "q. c #D17C6E", "r. c #FAE6AD", "s. c #CFC741", "t. c #F6B96A", "u. c #F9F9B3", "v. c #352C04", "w. c #F1ED34", "x. c #918A07", "y. c #F47B6B", "z. c #F8E875", "A. c #000000", "B. c #000401", "C. c #000100", "D. c #8E6C08", "E. c #FBC9DD", "F. c #75A8F7", "G. c #00D64A", "H. c #F78A9F", "I. c #723104", "J. c #F23BCC", "K. c #3BB7F3", "L. c #000501", "M. c #A2A2FC", "N. c #BDFACA", "O. c #FAB7E9", "P. c #1409AA", "Q. c #000301", "R. c #D9E7A6", "S. c #5009A8", "T. c #000300", "U. c #F4FBEB", "V. c #0E28D4", "W. c #000802", "X. c #2E033C", "Y. c #000C04", "Z. c #001206", "`. c #000702", " + c #000200", ".+ c #000903", "++ c #000803", "@+ c #EC101F", "#+ c #001106", "$+ c #A79496", "%+ c #E5CACD", "&+ c #E7C2C4", "*+ c #F3C3C4", "=+ c #F1BABB", "-+ c #E3A9A7", ";+ c #D49EA0", ">+ c #917E81", ",+ c #000A03", "'+ c #001406", " ", " ", " ", " ", " ", " . . . . . . . . . . . . ", " . . + @ # $ % & * = = - ; > . ", " . . , ' @ ) $ % ! * ~ { ] ; ^ / ( + ", " . ' @ ) _ : & < [ = } | ; 1 : 2 2 3 ", " . . ' @ > _ % 4 ~ 5 6 7 8 9 0 a b b c . ", " . . + . . . . ' @ ) $ % 4 d e - f g h a i b j k l m . ", " . . @ n n . . . ' ) > % o = e p q r s / / b j t l u v . ", " . > > ) @ . . . > : & d e w x y a z i i t A A B B C . ", " . . $ _ # D ) . . ) _ : 5 E F x G a z i t B H I J B ; K . ", " . $ L : M N # ) . . . @ > % = O P Q R z z J I S S J z s y J 3 ", " . T T U V M M # D . . . . . W X Y Z ` J z I S S B G .G r r ... ", " . +.@.#.~ $.: M N # . . . 5 p Z Q J J I S S G x %.%.G .&.*.. ", " . =.=.-.+.-.* ;.: N . . . Z >.,.p z J I '.).!.Z ~.{.~.~.].].I . ", " . 9 @.5 #.=.+.=.@.] N ^.. . . . . /.(.B '.'.Z {.~._.:.:.<.<.[.}.}.. ", " . |.1.2.3.;.4.5.6.5.5.7.. . . . (./.9 8._.9.0.a.(.b.b.b.c.[.}.d. ", " . e.z J z f.1.g.h.i.j.4.. . . . b.k.G l.m.n.n.b.b.b.b.c.[.}.2.. ", " + t B '.o.S p.].].p.1.q./ . . . 3 /.n.r.n.n.n.n.b.b.b.c.c.[.}.. ", " . A S S o.s.).].t.t.].].B /.. . d.2.u.c.n.n.n.n.n.(.(.c.t.t.t.v. ", " . }.'.'.'.<.t.t.c.c.c.c.[.w.p.. 3 . , u.k.<.(.(.(.(.(.(.(.(.t.t.<.. . ", " . x.'.<.[.[.c.c.b.b.b.n.r.[./.B 3 3 . . >.y.(.:.m.a.(.u.(.a.m.t.b.G . ", " . [.[.[.b.b.b.z.b.r.u.r.r.w./.8 . . 5 {.m.m.A.A.A.A.B.m.a.<.<.. A.A.C. ", " . D.[.b.b.b.z.b.n.(.n.u.E.u.8 k. . . ~ 4.F.A.G.G.G.G.G.B.H.I.. A.G.G.G.C. ", " 3 b.b.b.b.b.(.(.m.a.r.u.r.r.J.w.. . . & T ~ K.X A.A.G.G.A.H.. . A.G.G.L. ", " . A c.<.H.M.u.N.r.E.u.r.r.(.n.O.a.. . L P.4 [ 5 E A.G.G.Q.d. C.G.G.C. ", " . y.].:.(.u.u.r.R.n.r.r.(.a.(././.. . S.P.P.T [ K.Q.T.G.G.Q. A.G.C.A. ", " . :.m.R.a.O.a.a.(.n.u.O.(.k.U./. . . . # S.L V.4 [ 5 C.G.G.C. A.G.A. ", " . :.a.m.m.n.r.r.r.n.n.E././././././.. . . ^._ L P.& T * W.A.G.G.A.G.A. ", " + a.a.a.r.r.u.r.n.n.k././././././.. . ^.> S.L & . . A.G.G.G.A. ", " + m.u.(.n.n.a.n.E./././././././.. . J.1 ^._ X.. A.A.G.G.B. ", " 3 r.n.n.n.(.E.E././././././././.. . . . . . ; 1 3 . Y.G.Z.G.G.B. ", " . r.n.a.E.E.k././././././././././.. . . . . `.G.Y.A.G.G. + ", " . J k.n.(./.U./././././././././.. . . A.G.`. A..+G.G.++ ", " . j /.U./././././././././././.. Q.G.A. A.G.G.G.++ ", " . @+k./././././././././././.. #+G.G. + C.A.G.G.B. ", " . . $+%+&+*+=+-+;+>+3 . . . ,+G.G.A. A.G.G.G.A. ", " . . . . . . . . A.G.G.G.G.A. A.G.G.G.G.A. ", " A.'+A.A.A. A.A.A.A.A. ", " ", " ", " ", " ", " ", " "}; ripperX-2.8.0/src/xpms/ripperX.xpm000066400000000000000000000376061233655711300171310ustar00rootroot00000000000000/* XPM */ static char * ripperX_xpm[] = { "133 49 186 2", " c None", ". c #020204", "+ c #2A5284", "@ c #162A44", "# c #427AC4", "$ c #223E64", "% c #3666A4", "& c #264A74", "* c #0A162C", "= c #325E94", "- c #1E365C", "; c #3E72AC", "> c #4A8EDC", ", c #122234", "' c #2A529C", ") c #22428C", "! c #3A6EAC", "~ c #162A64", "{ c #4686CC", "] c #264A94", "^ c #264674", "/ c #0E1E2C", "( c #2E5A9C", "_ c #1A324C", ": c #3666B4", "< c #1E3674", "[ c #1E3E84", "} c #325EAC", "| c #12224C", "1 c #060E14", "2 c #2E5A8C", "3 c #162A54", "4 c #529AE4", "5 c #4682C4", "6 c #264A84", "7 c #3E72C4", "8 c #2A5294", "9 c #427EC4", "0 c #366AA4", "a c #0E1A2C", "b c #223A5C", "c c #2E569C", "d c #22429C", "e c #0E1E3C", "f c #2E5AAC", "g c #366294", "h c #1E3A5C", "i c #5296E4", "j c #3A6EBC", "k c #4A8AD4", "l c #2A4E94", "m c #26427C", "n c #12264C", "o c #0A121C", "p c #162E44", "q c #224264", "r c #5292E4", "s c #122644", "t c #366ABC", "u c #1E3A74", "v c #22427C", "w c #3262B4", "x c #162E54", "y c #2A4E84", "z c #467ED4", "A c #16265C", "B c #060A14", "C c #2A4E7C", "D c #0E162C", "E c #3E76BC", "F c #4E92DC", "G c #2A52AC", "H c #26468C", "I c #1A3264", "J c #4A86CC", "K c #264AA4", "L c #325A9C", "M c #060E24", "N c #569EEC", "O c #3E76C4", "P c #2E568C", "Q c #467EC4", "R c #3A6AAC", "S c #121E3C", "T c #16264C", "U c #020614", "V c #2E5684", "W c #223E74", "X c #3666AC", "Y c #2A4A74", "Z c #325EA4", "` c #1A366C", " . c #122244", ".. c #3E6EB4", "+. c #264684", "@. c #121E2C", "#. c #223E7C", "$. c #0A0E14", "%. c #325A8C", "&. c #569AE4", "*. c #2A4A84", "=. c #3A6A9C", "-. c #0E1A3C", ";. c #2E56AC", ">. c #26469C", ",. c #325AB4", "'. c #3662A4", "). c #1E3A6C", "!. c #3E6EC4", "~. c #1A2E44", "{. c #3A6AB4", "]. c #223A74", "^. c #3662B4", "/. c #1A2E54", "(. c #1A327C", "_. c #4276CC", ":. c #2E527C", "<. c #162A4C", "[. c #427ACC", "}. c #223E6C", "|. c #3A669C", "1. c #264A7C", "2. c #0A1634", "3. c #325E9C", "4. c #1E3664", "5. c #3E72BC", "6. c #4E8EDC", "7. c #12223C", "8. c #2A52A4", "9. c #4682D4", "0. c #2A4EA4", "a. c #2E528C", "b. c #4276B4", "c. c #162644", "d. c #2E52AC", "e. c #2A4AA4", "f. c #060614", "g. c #224294", "h. c #3A6EB4", "i. c #4686D4", "j. c #264A9C", "k. c #26467C", "l. c #2E5AA4", "m. c #1A3254", "n. c #3666BC", "o. c #1E367C", "p. c #325EB4", "q. c #162A5C", "r. c #264A8C", "s. c #427ECC", "t. c #0E1A34", "u. c #2E56A4", "v. c #0E1E44", "w. c #2E5AB4", "x. c #36629C", "y. c #1E3A64", "z. c #3A6EC4", "A. c #4A8ADC", "B. c #122654", "C. c #0A1224", "D. c #22426C", "E. c #1E3A7C", "F. c #224284", "G. c #162E5C", "H. c #2A4E8C", "I. c #0E1634", "J. c #4E92E4", "K. c #264694", "L. c #1A326C", "M. c #4A86D4", "N. c #325AA4", "O. c #3E76CC", "P. c #2E5694", "Q. c #467ECC", "R. c #121E44", "S. c #162654", "T. c #121E34", "U. c #223E84", "V. c #0A0E1C", "W. c #325A94", "X. c #569AEC", "Y. c #3A6AA4", "Z. c #2646A4", "`. c #1A2E4C", " + c #3A6ABC", ".+ c #3662BC", " ", " ", " ", " ", " ", " ", " ", " ", " ", " . . . . . . . . . . . . . . . . . . ", " . a c.c.c.@ . x v v v #.W C.. B < ` L.L.L.A . ", " . *.7 O _.[.. . u.^.w p.p.H . . U.0.0.K K Z.. ", " . X 7 O O.[.. . 4.^.p.p.p.,.B . . < 0.0.0.K K S.. ", " . 7 7 O O.y . . * ^.p.p.,.,.T . . -.G 0.0.e.K L.. ", " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . u.p.p.,.w.F.. B G G 0.0.e.) . ", " . F.f ,.p.p.7.4..+n.n. + +B z.!.7 7 : 1 . . ^ Q.9.9.9.& . %.A.A.6.6.6.g V.. . :.4 4 4 &.V . =.N N N N X.|.o . . , g g J.F 6.6.6.# W.%./ . . - [.[._.O.y c.X !.z.j +7.. . 3 p.p.,.f ;.C.] G G 0.0.g.B ", " . F.f ,.p.p.u.^..+n.n.t 8 . 6 z.7 7 7 c.. . a s.z 9.9.% ~.M.A.A.A.6.6.6.Q V.. . , i i 4 4 b._ 4 4 4 4 4 4 4 J o . . _ i J.J.F 6.6.6.A.A.A.M.M./ . . - [.[._.O 7 X 7 z.z. + +B . . B p.p.,.f ;.j.d.G 0.0.0.C.. ", " . ;.f w.,.p.p.w ^.n.n.n.).. } z.!.7 7 . . @ s.Q.z 9.^ E M.M.A.A.A.6.6.6.$ . . _ i i i i :.J 4 4 4 4 4 4 i i q . . , J.J.F F 6.6.6.A.A.A.M.M.i.P . . a.[.[.O.O 7 7 !.z.z. +Z . . r.,.w.f ;.;.d.G 0.0.t.. ", " . C.;.;.f ,.p.p.w ^..+n.l B . +z.z.7 X . . + [.s.Q.9.5.9.i.M.M.A.A.A.6.6.= . . g r i i i { i i i i i i i i i g . . ; J.F F 6.9 = `.$ Y.M.M.i.9.9.. . h.[._.O 7 7 7 z.z. +} 7.. . <.,.f ;.;.d.G G 0.L.. ", " . n ;.;.f ,.' B . . . . . . 7. +z.z.!.*.. . {.[.s.s.z '.h @ p & M.A.A.A.6.= . . 5 J.J.J.r ; q _ _ :.i i i i r g . , F F 6.6.9 V.. . . . 0 i.9.9.9.. . 1 [._.O.O 7 c.. . . . . . . ,.f ;.;.d.G 0.` . ", " . < ;.;.;.w.<.. . y. + +z.z.c.. . 1 [.[.[.s.'.. . . . . h M.A.A.A.= . . V.6.F F F ; . . . . . q J.J.J.J.g . g 6.6.6.6.$ . . p 9.9.9.z . . @ [._.O 7 ( . . u ;.;.;.d.G K.B ", " . G d.;.;.f C.. . k. + +z.z.a . . c._.[.[.[.^ . . p M.M.A.A.= . . `.6.6.6.6.C . . _ F F F F = . 6.6.6.> A.. . . . . . @ 9.9.z ... . + _.O.O 7 }.. . +.;.;.d.G G t.. ", " . C.G d.;.;.f . . n. + + +z.. . y O._.[.[.@ . . @ i.M.M.M.`.. . = > 6.6.6.`.. . `.6.6.6.6.`.`.6.> A.A.# W.%.%.%.2 P 5.9.z Q.a.. . {.O.O 7 7 c.. . ].f ;.;.d.G 0.` . ", " . t.G G ;.;.u . . * n.n. + +1.. . 7 O O._.[.. . h 9.i.M.M.@.. . A.A.A.A.6.. . $ 6.6.6.6.T.= A.A.A.A.k M.M.M.i.9.9.9.z Q.s.- . . O.O 7 7 7 . . T f ;.;.;.G G 0.0.. ", " . ` 8.G d.;.T . . 3 n.n.t +/.. . a 7 7 O O.3.. . '.9.9.9.i.. . @.k A.A.A.R . . ! A.A.A.A.. R A.A.k M.M.M.i.9.9.9.9.z Q.s.[.a . c.O 7 7 7 P.. . S ,.f ;.;.d.G 8.0.0.t.. ", " . K.0.G G ;.e . . v n.n.n. +7.. . m.7 7 O O D.. . a z 9.9.9.P . . h M.M.M.A.Y . . @.A.A.A.A.W.. A.M.M.M.E p p @ @ @ @ @ @ @ @ a . . D.O 7 7 !.6 . . B ,.f ;.;.;.G G 0.0.e.L.. ", " B 0.0.8.G d.. . u..+n.n.n.. . 6 7 7 7 O c.. . ^ s.Q.z 9.h . . 2 i.M.M.M.~.. . Y A.k k M.b $.M.M.M.i.2 . . . . . . . . . . . . L 7 7 7 z.s . . B ' w.f ;.;.] G.8.0.0.K K . ", " . t.0.0.0.G U.. . B w ^..+n.l . . z.z.7 7 7 . . [.s.s.Q.z 1 . . 9.9.9.i.i.. . M.M.M.M.M.1 ~.i.i.9.9.^ . . 7 7 7 z.z.B . . H ,.f ;.;.] B B 0.0.0.K K R.. ", " . L.K 0.0.8.G.. . S p.w ^..+m . . D z.z.z.7 c . . D.[.[.[.s.a.. . / 9.9.9.9.% . . & i.i.i.i.2 . @ 9.9.9.9.h . . . a . . c.7 7 z.z.} . . W ,.f ;.;.;.-.. . [ 0.K K Z.o.. ", " . o.K e.0.0.-.. . I p.p.^.^.7.. . /. +z.z.z.}.. . . . c._.[.[.[.[.a . . - z z 9.9.^ . . . . @ 9.9.9.9.9./ . @ 9.9.9.z 5.a . . . . . . @ 3.1 . . m.7 z.z.z.k.. . <.,.,.f ;.;.-.. . | e.K K Z.>.U ", " . Z.K K 0.0.. . H p.p.w ^.B . . 8 + +z.z.z.7 7 7 7 O O._._.[.+ . . x.s.Q.Q.z z 9.9.9.9.9.9.9.9.9.P . . / z z Q.Q.s.s.s.[.[.[.[._._.: . . *.z.z.z. +7.. . S ,.,.f ;.;.u . B K K Z.>.>.v.. ", " . I.Z.K K e.K.. . ,.p.p.p.w . . n. + + +z.z.z.!.7 7 7 O O O.{.1 . . [.[.s.s.s.s.Q.Q.Q.z z z z z 5.1 . . s.s.s.s.[.[.[.[.[.[._.O.O y . . z.z.z. + +D . . B p.,.f ;.;.F.. . E.K Z.>.d (.. ", " . B.>.Z.K K L.. . e w.,.p.p.#.. . 7.n.n. + + +j z.z.!.7 7 7 7 O c.. . @ [.[.[.[.[.s.s.s.s.s.s.s.s.s.@ . . ^ [.[.[.[.[.[._._.O.O O 7 c.. a z.j + + +. . ' ,.w.f ;.j.B . .Z.>.>.d d M . ", " . B.>.>.K K q.. . e f ,.,.p.r.. . 4.n.n.n. + + + +z.z.z.7 7 y 1 . . D._.[.[.[.[.[.[.[.[.[.[.[.a.1 . . 1 3.[.[.[._._.O.O O 7 7 y . D + + + +N.. S ,.,.f ;.;.] . f.>.>.d d d ~ . ", " U I.I.I.t.t.. . e e S S S . . H..+n.n.n.7.. . . . . . . . . . L O.O._._.@ . . . . . . . . . . . . c.c.c.c.c.c.c.c.a . . 7.7.7.7.7.B . C.e e e e -.B U I.2.2.2.2.M ", " . . . . . . . . . . . w ^..+n.n.B . . 7 O O O O.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", " . S p.w ^..+l.. . c.7 7 7 7 X . ", " . I p.p.w ^.v . . }.7 7 7 7 y . ", " . S p.p.p.w 3 . . s z.z.!.7 m.. ", " . . . . . . . . . . . . ", " ", " ", " ", " ", " ", " ", " ", " ", " "}; ripperX-2.8.0/src/xpms/ripperX_box.xpm000066400000000000000000001034151233655711300177710ustar00rootroot00000000000000/* XPM */ static char * ripperX_box_xpm[] = { "150 100 257 2", " c None", ". c #040407", "+ c #188852", "@ c #990D0D", "# c #154526", "$ c #51031C", "% c #0A271C", "& c #9C8B4A", "* c #4F4826", "= c #914D3B", "- c #186756", "; c #0E29D9", "> c #272427", ", c #F7C780", "' c #26C035", ") c #4B2532", "! c #224890", "~ c #140AC6", "{ c #273530", "] c #CE4E16", "^ c #942A45", "/ c #320414", "( c #828638", "_ c #33463C", ": c #1CA33A", "< c #C0B224", "[ c #1B6988", "} c #CF6B0B", "| c #4F2BAB", "1 c #CD0E29", "2 c #0A3619", "3 c #672736", "4 c #282458", "5 c #1A889F", "6 c #091519", "7 c #BAF674", "8 c #17572B", "9 c #4F0AA9", "0 c #4A3734", "a c #D5870C", "b c #9108A3", "c c #26151D", "d c #26345B", "e c #D888E4", "f c #2C6763", "g c #2F573D", "h c #C8A8F0", "i c #3088BD", "j c #DC4E98", "k c #CF6BDA", "l c #2E6991", "m c #C8C8FC", "n c #CB2D4A", "o c #171B42", "p c #57BFF1", "q c #19294E", "r c #382859", "s c #6B042C", "t c #104854", "u c #AC0AB7", "v c #2D1D48", "w c #4D6B54", "x c #38272E", "y c #193852", "z c #18A3B5", "A c #18141A", "B c #29DF2E", "C c #482850", "D c #1996B3", "E c #D52CA3", "F c #8B694F", "G c #D15C11", "H c #2D469D", "I c #2C4763", "J c #383856", "K c #0B055F", "L c #361B2A", "M c #19242B", "N c #160910", "O c #187821", "P c #EC6B17", "Q c #CD0BC5", "R c #1A5466", "S c #F0971D", "T c #F8A9A0", "U c #E0CEF0", "V c #CAE294", "W c #1F9643", "X c #4F49D0", "Y c #700ABB", "Z c #1B798F", "` c #4E384F", " . c #F9B9AD", ".. c #F9D8B6", "+. c #262C56", "@. c #F9E5AF", "#. c #19C1C0", "$. c #D196C2", "%. c #181C23", "&. c #253C5E", "*. c #471D34", "=. c #914AC8", "-. c #1C445A", ";. c #F7F9B2", ">. c #282C2C", ",. c #F2A532", "'. c #2A7952", "). c #34A3DB", "!. c #951BE7", "~. c #F6B96B", "{. c #37362D", "]. c #920CD5", "^. c #1D87EB", "/. c #EE7A31", "(. c #1A5C6D", "_. c #74454D", ":. c #0E3BD6", "<. c #193633", "[. c #EB0EC0", "}. c #327992", "|. c #192C31", "1. c #271C26", "2. c #592550", "3. c #3058A9", "4. c #F7D673", "5. c #2B5866", "6. c #F26CC0", "7. c #3CBEDA", "8. c #268845", "9. c #1B4C5E", "0. c #50A670", "a. c #962DC8", "b. c #4F68DA", "c. c #5486EB", "d. c #916CD6", "e. c #9488D8", "f. c #14DBDC", "g. c #4AA5F1", "h. c #B44C06", "i. c #7127DD", "j. c #AE0B49", "k. c #AB4DC8", "l. c #F34DB4", "m. c #6E49AE", "n. c #7369B8", "o. c #A76AC9", "p. c #983C04", "q. c #D23C52", "r. c #D03DAB", "s. c #969A9C", "t. c #AA2DCB", "u. c #6884F4", "v. c #F2E658", "w. c #BA7005", "x. c #EC1031", "y. c #BE8450", "z. c #74BCED", "A. c #330BC6", "B. c #8F1B24", "C. c #525756", "D. c #895B09", "E. c #6D3844", "F. c #6E191F", "G. c #22B038", "H. c #C8F9A9", "I. c #1A598C", "J. c #4F36D0", "K. c #D959A1", "L. c #5756C2", "M. c #71B2F4", "N. c #AE1CDE", "O. c #6E5668", "P. c #5077A8", "Q. c #B31A44", "R. c #905BC3", "S. c #B45CD5", "T. c #EB4E3F", "U. c #6F6909", "V. c #ED5C30", "W. c #F45CC1", "X. c #312C98", "Y. c #F797B8", "Z. c #2B398F", "`. c #EE3CB2", " + c #8C3CD3", ".+ c #B55C0B", "++ c #EE891D", "@+ c #CF7A18", "#+ c #F37BC3", "$+ c #4E1AC4", "%+ c #CB1EA4", "&+ c #AE7BB9", "*+ c #6F39DB", "=+ c #CBD9DC", "-+ c #F12CC7", ";+ c #E82E52", ">+ c #EF1EC2", ",+ c #775AAC", "'+ c #747AB4", ")+ c #ED1D36", "!+ c #26CE2F", "~+ c #CC7AD0", "{+ c #917A9E", "]+ c #32DCD7", "^+ c #3296D3", "/+ c #1AB2B2", "(+ c #711BDE", "_+ c #E83D4D", ":+ c #A96E71", "<+ c #1ACEC7", "[+ c #5095E4", "}+ c #CAB9E7", "|+ c #30A353", "1+ c #F68AB6", "2+ c #B685C9", "3+ c #0E1AD8", "4+ c #39B3EC", "5+ c #B43AB6", "6+ c #B69810", "7+ c #FDECEC", "8+ c #AE405C", "9+ c #7A9A5C", "0+ c #4ECEBC", "a+ c #7AA244", "b+ c #34D1D4", "c+ c #CB1E26", "d+ c #BCFAFC", "e+ c #8C0666", "f+ c #4B055F", "g+ c #534553", "h+ c #6E264F", "i+ c #76064F", "j+ c #17776A", "k+ c #F5A86B", "l+ c #7199EC", "m+ c #FAC8C4", "n+ c #57B2F4", "o+ c #CE6E60", "p+ c #F6996B", "q+ c #8E5D70", "r+ c #6D6B65", "s+ c #1249EA", "t+ c #1269EF", "u+ c #520BD5", "v+ c #F8A8E7", "w+ c #1877EC", "x+ c #F9B8E4", "y+ c #145AEB", "z+ c #CC5AD0", "A+ c #B99CD1", "B+ c #F38769", "C+ c #F9D9E9", "D+ c #F2FBEE", "E+ c #CC4DE0", "F+ c #3667EB", "G+ c #EE6963", "H+ c #2F79EA", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . 6 . . . 6 . . . 6 6 6 . 6 6 6 . 6 6 . . . . 6 6 . . . 6 6 . 6 . 6 . 6 6 . . 6 . 6 6 . 6 . 6 6 6 . 6 6 . 6 . 6 . 6 . 6 . 6 6 6 6 6 . 6 6 6 . 6 6 % 6 %.% %.% M 6 M M %.A M A %.A A 6 N N 6 N A %.> > A M N N A N N c N N N A N N 1.A A A N A 1.1.c N N N A N . . ", ". . K N 6 N N N N N N 6 N 6 N 6 %.6 %.6 6 6 N 6 N 6 6 %.% 6 . % % . 6 . . % 2 2 6 6 6 2 2 2 2 6 6 6 2 6 6 2 2 2 2 2 6 % % % % 6 % % % % % % % %.% % % 2 6 % %.% % 2 % 2 % % % % % # % # % % 6 % 6 2 %.%.<.<.M { <.{.{.{.%.> A %.%.{.%.%.> >.>.> > * M >.0 _ ) * > 0 1.> > > 1.1.1.{.{.1.> > {.0 > C C c . . ", ". N o o A A o v 6 A A A o A %.o M q q |.o 6 q 6 o o |.6 6 y y 6 y 6 y t 6 o 6 t 6 t 6 R R 6 6 %.t % 6 8 % (.2 t % # t % # t 2 |.2 % M # 2 <.2 2 2 % <.<.2 |.# # |.# M # # - <.- - # - # 8 <.8 %.6 . . . . . . . 6 6 6 . . . . . . . N . A A g r+{.{ r+{.w r+x {.) _.O.O.0 _.O.x g+g+{.O.x O.x J ` x ` A N . ", ". . K o o X.c v o 4 o v 4 o o q d d <.M o o y y o y o t A 6 t o R R 6 o (.(.o - o %.- [ j+j+6 % %.j+j+% 2 # # # - <.<.- - R -.y R 8 t R 8 9.# y 8 # R 2 t 2 8 y - <.(.<.<.O O 8 # 8.# # 6 6 6 . 6 6 . . . . N K . K 2 q y y 2 q 6 K / A A A A >.C.r+_ * r+{.0 ` 0 q+:+:+` {+g+g+n.{+0 n.{.,+x =.q+` E.o N . ", ". K o o o o | X.o o A X.X.q q q I y y d y y y q q o M t R R (.o - o |.[ %.q j+j+Z % % % % 5 |.M 5 5 + 5 # + D W j+8 + 5 j+8 j+- (.-.# (.g (.8 # # 9.g - 9.# 9.# '.'.'.# R 8.8.# '.8.- . . . . N / f+f+f+9 9 A.~ ~ s+y+^.D D ^.w+t+A.9 ~ i+$ / . 6 x O.` F 0 g+:+~+` E.g+$.g+&+e.{+{+{+g+{+S.` R.S.` C c N . ", ". . A v v o o v c c X.4 X.H d +.d +.d <.+.y M y M o 9.o o M (.(.(.[ - [ % j+j+Z q Z M M M M D |.D % D 2 W D W 9.R + 5 + - # g - # j+# g - 8 g - - 8 8 f g # f # (.g 8 i '.'.|.N 6 6 . . / / s e+b b Y Y 9 u+A.~ ; y+t+z D w+t+H+F+ +k.=.[.Q b s / . N c 0 0 ` ` 0 2.:+` 0 y.q+2.` A+g+` '+0 ` ` C R.` C N . ", ". . A K o 4 c 4 o c o o Z.o 4 +.&.+.|.d +.y y q y t t M q R R (.- q [ M [ q q |.5 5 M q + D D D D |.<.D # # 8 - + 5 g 9.5 8 + 8 # g - j+(.- g - W f 8 9.(.g 8 8 # 8 |.8 8 2 . . N / $ s e+i+e+b e+Y Y 9 u+~ ~ :.t+w+D D D w+F+y+i.N.>+>+-+-+)+1 @ $ %.. . = 0 0 2.:+0 E.q+` ` 0 &+q+O.>.n.E.` ~+C ,+*.1.N . ", ". . A A c o r v o c X.4 Z.J o J M |.|.&.<.{ > y +.-.-.t R q (.q (.- q q q +.j+|.M 5 |.5 <.<.D z z z D <.z _ 9.: D - W + '.'.+ j+j+j+f j+- O + |+j+8.- 8 '.8 -.f f 6 . 6 . N / $ s s s i+i+e+b Y Y b 9 9 A.~ ; t+w+^.D D ^.^.F+J.i.-+>+-+>+x.T.)+>+1 f+/ . L ` ) = C = q+F g+J J O.g+,+x n.n.` g+` r C N 6 . ", ". N K c A r c o r 4 A o d d M M M <.|.>.>.d y <.# q # t t R d q - q q q [ y +.j+j+j+j+|.M |.<.z z z # # _ # f W '.: D W g + + + f 8 '.8 '.8.8.'.' 8.- 8.- # # % 6 . . / $ $ s $ $ s s i+i+i+b i+b 9 9 u+~ 3+s+t+w+^.^.H+F+F+*+i.a.>+N.>+x.x.x.Y ~ Y 1 p.L N ) F C C = q+C.0 0 O.r C O.J 0 R.C ,+,+r ` A N . ", ". . 6 A o A 4 v 4 4 o o > %.|.|.<.M y |.<.<.d <.<.q -.9.+.y y I.q >.+.|.[ - [ y |.q +.5 { D &.<.z # { z z : z '.W z W D W '.5 '.f j+8.W + 8.8.8.8.8.'.8 6 . . . 6 / $ $ $ $ $ s s s i+i+e+b b Y Y Y u+A.; t+t+t+^.w+w+F+X J. +a.a.N.>+)+x.x.Y u+Q 1 T.] E.*.N L q+>.) C >.{.{.J >.>.n.{.r ,+L.g+L.m.A 4 N . ", ". . N N 4 v 4 r r 1.+.o q M M %.|.|.<.&.|.{ &.&.d <.y t |.9.|.(.R +.- [ &.d &.Z j+Z M 5 &.5 <.{ z z g - z z z z z (.W W z : : + j++ + 8.|+8.|+'.W 8 # . . . / 6 K / / $ $ $ s $ s s i+e+i+e+b Y 9 u+~ 3+:.t+w+^.^.^.H+X J.*+a.t.E -+)+)+[.u u+Q.n ] ] ] h.3 N N g+x >._._.g+x g+x g+C.>.g+J +.J L.r X.6 N . ", ". . N o A A %.%.4 %.r J I I I |.|.|.I |.<.y <.<.y -.d -.|.9.9.(.R (.- Z.&.Z [ Z Z 5 Z Z { -.&.D D z /+f /+/+f '.D '.#./+: D z : 5 8 + + + + 8.O |.. . / / / . 6 / / $ $ s $ s s s i+i+b b Y Y Y u+A.~ ; s+^.^.^.^+H+F+*+ +5+t.E -+)+>+[.Q !.Q.q.h.h.h.h.] p.) . c 1.1.g+> o J 4 > v >.O.L.` 1.4 r > > A N . ", ". . 6 A v 4 > %.>.%.> J M M |.9.%.M M -.% |.<.-.y y -.# d R &.<.R d H I H j+- d I -.Z 5 5 { # D : /+/+8.- #.'.f O z G./+'.z |+|+z + f 8.O j+# 6 . N / $ / N N % / $ $ $ $ s $ s i+i+i+e+b b Y Y u+~ ; :.w+^+^.).g.H+X +r.E `.;+;+)+!.!.N.c+q.q.] ] p.h.h..+p.L A A J * >.>.J >.1.C.M g+d g+` g+M J.d o . . ", ". . N 6 > +.1.J x J _ > M I I |.M I M q d <.y &.-.-.&.&.R R &.R R - [ [ [ 5.[ j+! 5 5 # 5 g 5 z R 8 './+/+/+'.8.8.f #.' W G.8.: z W - 8.8 6 . N $ / / N / / 6 o / $ $ s s s s s i+i+e+b b Y 9 u+A.3+s+y+^.).^+^+b. +=.5+`.-+_+V.%+!.i.Q.q.] ] ] h.h.p.h.h..+.+0 . 1.{.J M > >.g J ` C.d I I H g++.Z.r o N . ", ". . N %.A %.&.J { J M M I &.M I M M &.|.|.M <.&.<.y -.I &.t <.(.(.H I [ [ Z l ! 5.Z 5.# 5 + D g z f /+'./+#.|+|+W /+!+/+#.#./+|+8.: 8 % . . $ $ / N / / / / 6 K / $ $ $ $ s s i+i+e+e+b Y Y Y u+~ y+t+w+^+).H+b.X k.r.r.r.-+;+;+i.m.n _+] ] ] h.h.h.h.h..+.+} _.N %.N > > C.>.>.> d >.{ r P.r J P.d >.4 6 . ", ". . N %.> >.{ > %.&.%.I |.M |.M -.I %.9.q |.<.<.t I # 3.R I R 5.R R I ! [ Z Z ! 5 5.R -.8 (.D W /+'.f 8.8.#.#.8.'.<+|+' ' #.W G.D # . . $ s / / / / / / / / K N / $ s s s s s i+e+b b b Y Y u+~ s+t+^.^+).[+X L.=.E+`.`.E ;+E m.a.n ] ] ] ] h.h.h..+.+.+.+w.w.D.1.. . >.%.>.> M _ g C.+.>.C.4 X +.1.+.o . . ", ". 6 N 6 > d _ M 1.%._ |.|.|.I 9.q |.d |.|.y { &.-.-.I -.9.3.3.(.(.I H - I Z R 3.Z (.5 g D - D z /+'.'.#.'.b+/+'.8.|+/+<+0.G.z # 6 . / i+/ $ / $ / / / / / / 6 / $ $ s $ s i+s e+i+b b Y Y u+~ 3+s+H+^+).c.c.X k.E+r.`.`.q.t.m.n _+] T.G ] h.] .+.+.+.+w.w.w.w.@+0 . >.> I C.> _ > I >.Z.C.&.%.1.I %.4 6 N . ", ". . N 6 %.%.M M %.&.M I |.I I |.M M -.M &.|.|.<.5.5.y l R I (.(.(.[ [ [ I l Z 5.! 5.R f (.z /+'.8.|+<+/+<+<+8.'.b+<+' |+W 8.6 . N i+s $ i+s $ $ / / / / / / o / $ $ s s s s i+e+e+b b Y u+A.A.s+H+^+g.[+c.b.E+l.l.`.q.E t.m.n T.T.] ] G h..+.+} w.w.} w.w.w.a a 0 N >.> %.M %.> d J _ +.I v Z.4 1.4 %.%.. . ", ". 6 A %.%.J _ _ J -._ 5.f 9.M I M y |.I |.|.q y <.y g 5.3.5.R 3.5.[ }.(.[ 5.Z f Z 5.9.5 }.z 5 #.#./+/+<+#.|+|+|+W <+|+- 6 . . i+e+i+i+i+s $ $ $ $ / / / / K % / $ s $ s s i+i+e+b b Y u+A.~ ; F+^+).g.[+,+R.l.l.`.q.q.a.a.;+T.T.T.] G .+G .+} } w.@+@+@+y.@+@+@+E.. N >.> M %.%.%.%.A o 1._ J o M 4 M A . . ", ". . A %.M _ _ |.>._ <.5.g M |.M -.|.I |.y |.|.<.-.9.-.-.R l (.(.3.(.[ 5.f Z l l l l l 5 D W ^+|+/+<+#.7.^+8.^+#.W W (.. . f+u e+i+b i+i+i+s $ $ / / / / / 6 K / $ s s s s i+e+b b b Y u+~ 3+H+i [+g.c.L.S.E+W.j _+r.a.n _+T.V.G ] ] G .+} } } @+@+a 6+a } } G /.p.. N 6 +.%.%.%.%.4 A +.+.1.%.J %.> o A . . ", ". N A M 1.I _ 5.g <._ g 9.R 5.5.|.y 9.|.y <.<.^+}.-.8 R 9.(.(.i }.i l i Z j+j+^+j+5 D z D )./+/+/+/+#.4+b+|+7./+t . . N u b b b b e+e+i+s s $ $ $ / / / / 6 / $ s $ s s i+e+e+b b Y u+A.3+F+^+g.g.[+c.R.S.l.T.`.r.5+q.T.T.T.G G .+G } } } @+a a a a @+P G _+/.T.p.. . %.> 4 >.4 A > d A %.d d d 4 A %.A . . ", ". . 6 %.M _ > >._ <.|.|.|.M |.<.|.|.<.|.|.}.^+W 9.y f 5.R 9.(.^+j+^+l [ }.}.).5 Z i ).4+D z |+)./+/+W /+<+<+7.# . . / b b b b u e+b e+i+i+s $ $ $ / / / / K / $ $ s s s i+e+e+b ].Y u+A.s+[+).[+g.u.R.z+W.l.l.r.n q.T.V.V.G ] G } } } /.a a a a ++/.P P P P } )+@ . . A %.A > %.%.%.%.%.+.d Z.%.> %.o 6 . . ", ". 6 A A M > %._ _ f |.g <.9.5.9.M I f <.<.f <.-.<.# - 9.9.9.8 5.(.(.}.[ j+).Z 5 l f ^+D |+)./+/+8.i ^+/+4+#.- . . Y Y Y Y b b u u e+e+e+i+s s $ / $ / / / 6 $ $ s s s s e+e+b b ].u+A.y+).4+n+z.u.o.S.W.l.T.r.5+q.T.T.V.G G } } P @+++a S S S /.P P P P n E %+x.O . . N %.%.> %.A > A 4 %.J %.4 +.A M N . . ", ". . A A M { M M g >._ |.5.{ 5.|.y l f <.R f <.<.# f g g (.9.R 9.(.}.}.}.}.l [ f 5 5 5 }.).D D }.}.z 8.^+- <.. f+Y f+Y Y b b b u u e+b e+i+i+$ $ $ / / / N K $ $ s s s i+e+b u Y Y A.s+c.4+p n+u.d.z+W.V.=.R.q.T.V.V.G G G P } ++a S S S S ++/.P P S /.r.5+k.>+x.U.. 6 >.>.%.%.4 > 4 A A 4 >.%.> %.%.M N . . ", ". . N |.|.I >.M M |.I |.g -.|.|.5.5.9.M <.5.|.R f |.- g f 5.5.9.-.R 3.R l [ Z l f }.l 5 }.5 }.}.l l l % . . s 9 9 9 u+Y Y u b u u u e+e+e+i+s $ / $ / / N / $ s s s i+e+e+b ].u+A.s+^.g.n+l+n.d.k W.K.j =.] V.V.V.V.V.} P @+++++S S ++++/.P /.++;+r.r.q.8+o+;+x./ N A >.>.>.%.A > 1.1.1.%.%.1.+.%.M A 6 . . ", ". 6 N <.>.I |.M &.|.I M &.M |.M &.|.I M 9.M M R <.I % |.9.-.<.&.I 9.R R R 3.R (.3.[ l 5.l 3.5 5 Z Z 2 . . Y A.A.9 u+Y Y ].].u u u u e+e+e+i+s $ $ / $ / / / $ s s i+e+e+u b Y u+; H+g.n+l+b.d.6.6.l.l.k._+V.V.G V.} P P ++++S S ++S ++P P T.V._+5+ +j r.K.P P x.. N 6 > 1.1.{.{.>.C 1.c > > J x x q N 6 . . ", ". . 6 %.%.&.q C._ M > M I M M I M M |._ |.|.# M # |.M # |.&.<.d y 9.-.9.5.R t I 9.(.-.[ l 5 l }.Z t . t I.Z.Z.X.$+$+Y Y ].u u u u u u e+e+e+i+$ $ $ / / N $ $ s s s i+e+b ].Y A.F+g.p l+o.~+6.6.S.z+j V.V.V.V.G P @+++S S S S S ++/.V.V._+l.T.T.q.r.q.q.V.++E u . . A {.{ M 1.%.x x ) 1.C 1.` +.A 1.A 6 N . ", ". . %.%.&.5.+.9.>.M |.y # &.{ % % |.|.M <.M M &.M { &.M &.M |.y <.I y &.d R &.(.! - [ &.3.5.3.t % . f+y+I.y+y+H J.| (+Y ].].].b u u u j.e+e+s s $ / / / / $ $ s s e+e+u b Y u+F+[+p M.e.~+6.k R.d.T.P P P V.P P ++++S S S S S /.P _+`.T.`.`.T.B+T.`._+`.G+] 8+K . >.{.%.{.%.1.M 0 x 1.0 C %.%.c 1.A o N . . ", ". . %.%.{ I g 9._ I M _ <.-.<.{ -.9.-.9.M M %.<.%.M &.M &.I |.|.d <.<.d &.&.R H I 3.! (.[ R 6 . . y+Z w+^.5 ^.H+3.X i.(+Y ].].u b u u u e+e+s $ $ $ / / / $ s s s i+b b Y u+; c.p M.e.~+k 6.k d.o+P V.V.G P /.S S ,.,.,.S B+/.l.T.l.T.l.l.T.T.T.l._+`._+_+K.|+2 . %.{.x > x c A 1.1.1.x A J 1.+.r > %.N . . ", ". . %.6 M -.g g 5.I %.|.y M # { %.# _ %.<.%.%.%.|.%.>.M d d M |.y &.y y y -.9.R (.I.(.! &.6 . 6 f.D D z z z z D H+F+L.i.Y ].].].u u u u j.e+i+s $ / / / $ $ s s i+e+b b u+~ t+).g.'+d.k k 6.K.V.P V.P P /.++S ,.S S S B+B+T.T.W.L.G+W.W.T.V.T.l.l.`.l._+_+_+6+. N >.1.> M %.{ c 1.1.{.C 1.x C x > A %.A . . ", ". . 6 %.M M # |._ _ |.M %.M %.M M % |.% %.% M <.d %.&.d %.y &.|.+.Z.<.y y y Z.R R 3.R t q 6 % f./+#.#.#.<+#.#./+z ^.H+!.Q u ].].].u u u u e+i+s $ $ / / / $ s s e+b b Y ~ t+^+^+u.R.R.R.j G+/.P V.P P ++S ,.,.,.S p+/.V.W.V.G+G+W.W.G+6.W.W.W.z+l.T.l.++++_+s . . {.M > %.1.{.%.A {.x > x {.C > x %.1.6 N . ", ". . 6 6 %.M M M M -.|.|.9.-.|.# |.M M M |.%.<.|.d %.{ &.d &.%.d +.|.|.<.y d y -.-.y o 6 . $ <+f.#.f.f.f.f.f.#.#./+D y+X *+!.].].].u Q u u j.e+s s $ / / $ s s j.j.u u i.L.z.z.l+R.R.b.*+T.P P P P ++++S ,.S ,.p+p+V.G+S.n.6.6.G+6.6.G+6.6.6.W.G+G+B+T.B+V.x./ . %.> x M _ {.>.1.{.{.%.x x 0 {.* _ >.1.6 . . ", ". . A M { M g g g _ M <.g f |.|.<.M % %.<.%.%.%.%.M %.{ %.%.d M 4 |.|.q 4 <.y y q 6 . . s f.#.z #.#.f.f.f.f.f.<+/+^.w+^.b.J.(+u+].].u Q u j.e+s $ $ / / F.B.Q.%+r.E+k A+}+=+}+$.o+'+^+T.V.V.P /.++S ,.,.,.p+p+G+S.6.k #+6./.#+#+B+#+B+G+#+6.B+B+G+B+S ++S p.. >.M %._ C.* 0 _ > 1._ %.> >.0 0 1.* {.c c . . ", ". . %.6 >._ M g M <.|.M # 9.|._ <.M M <.{ %.d M o d %.d +.q %.%.d M q . . . . . 6 . . j+f.#.z D z #.#.#.<+f.f.<+#.z z ).^.F+J.$+].u Q u Q u e+i+s F.0 C.8+q.K.K.k k 2+}+m C+..x+, 7 _+_+G P ++S ,.,.,.p+/.G+d.#+~+#+#+#+#+B+1+k+B+#+. . . . . . . S k+,.,.c . . . . . . g 1.>.{.%.* {._ 0 M * >.> x c A . . ", ". . 6 %.M M |._ _ g # g |.# _ # { M <.<.y &.&.%.%.A &.%.M +.&.&.o M . % # 2 # 2 . . @ )+8+z D z ).^.z z /+#.f.f.f.<+#.#.).w+F+J.(+].u Q Q Q e+@ e+^ r+9+o+G+#+K.S.R.'+s.s.x+7+7+7+ ./././.++,.,.,.k+B+k ~+#+#+#+#+e 1+1+p+Y.T Y.~.k+# O O O O - % . ,.~.w.6 O - - - - 8 . M >.>.|.* _ > 1.> x * x 1.> 6 N . ", ". . A M %.M { |.> M M |.# &.M <.{ %.&.{ % M M M %.d d %.M d o +.M M . O ' ' !+!+. @ x.n a+0.0.[+P.P.H+^+/+f.f.f.]+f.<+#.#.).H+X i.].Q Q Q Q j.Q.n j o+B+$.1+l.[.Y v h+l n T.T 7+@...~.++@+S ,.k+p+6.&+2+e #+Y.B+1+1+Y.p+ .~.T ~. .~.. : G.G.G.G.8.. ~., { . O W : W : W . w g * {.|.|.M 0 >.* * E.1.c A N . ", ". . 6 A %.>._ _ M M # _ <.M M { %.% <.M _ { { >.1.+.> d c d +.o o o . G.' ' !+!+. ;+;+@+& a+a+( '+n.b.H+4+b+]+]+]+b+b+]+f.<+#.F+X.N.N.Q Q Q %+r.K.1+T l.1 s $ . / % / / K + T. .7+7+~.,.S S p+#+e 2+e.e e $.Y.Y.Y.Y.p+m+, , ., , , . 8 G.G.G.G.G.6 . D.. - : : W : : # . * >.M %.M {.1.M > {.>.0 1.x N . . ", ". . 6 A > >.{ %.%.M <.<.{ %.# { %.%.{ %.%.A %.%.%.>.> %.A +.+.%.1.%.. ' ' ' !+O . E _+o+y.& & :+q+R.m.b.g.7.]+]+]+b+b+b+]+]+]+]+:.i.!.N.%+>+W.Y. .1+1 $ . . . . 6 . . . . x ] , ;.7+, , x.k.e.1+e Y.A+A+h v+Y., ., m+, 4.4., 4.4., . % G.G.G.: G.# . . 2 : W : : W O . {._ * * > 1.x {.) >.>.0 * 0 1.A N . ", ". . N 6 %.%.%.{ {.{ >.%.>.M <.{ <.%.%.%.%.. . . . . A . . . . . . . . . . . . . q._+T.. . . . . . =.. . . . . . . . 0+0+]+]+. . . . . . j . . . . . . . . . . . . . . . . . . . . . . . . . Y.v+h v+ .. . . . . . 4.. . . . . . 4.4., . W G.G.G.G.O . 6 : : : W : O . M %.M {.%.1.) %.1.> 0 ) 0 0 0 %.A . . ", ". . A 6 >.{ <.>.%.{ %.<.>.> |.{ %.%.|.>.. O : G.G.G.2 8 G.G.G.G.' . ' ' ' ' G.6 . V.. O !+!+B B - . 8.B B B B B W 6 . p 0+. O B B B B 8.. W B B B B B : 6 . . . . . % W 8.B B B B B ' 8.8.% . v+v+ .. 8 !+!+!+!+O # : ' ' G.G.2 . , , . # G.G.G.: : % + : : : W W 6 {.{.x 0 A %.x c x x 0 x > ` {.0 1.N . . ", ". . 6 A %.|.>.%.A %.|.%.M A > A %.A >.> . O G.: G.G.: G.' G.' G.W . O ' ' ' ' 2 . /.. % !+B !+B : 2 B B B B B B B !+6 . z.. # B B B B G.8 B B B B B B B !+6 . . . # B B B B B B B B B B B B % . m+4.. 8 !+!+!+' ' G.' ' ' ' ' 6 . , , . 6 G.G.G.: : W : : W : : 6 . { {.0 > x 1.c 1.x 1.{.> {.{.L 1.x 6 N . ", ". . 6 A %.%.%.|.> >.>.A A A %.%.%.A 6 %.. : : G.G.G.G.G.G.G.' G.O . G.' ' ' ' . ++S . # !+!+B B O G.B B B B B B B B - . s.. # B B B B 8.!+B B B B B B B B O . . 2 B B B B B B B B B B B !+B + . 4.... + !+!+!+' ' ' ' ' ' G.: . 4., , ~.. + G.G.: : : G.: : W 2 . > 1.M > M 1.1.1.1.1.1.1.1.1.E.` > 1.> N . ", ". . N %.A A %.{ |.A %.A > A 1.A %.A > . % : : : G.G.G.G.G.G.G.+ 6 . G.' ' ' G.. 6+,.. O !+!+!+!+' B !+B B B B B B B W . y.. |+B B B B B B B B B B B B B B 8.. . G.B B B B !+W # - : B B B !+B . @.4.. G.!+!+' ' ' ' ' ' ' : 2 . , , ~.~.. # G.: G.: : : : : - . {.1.0 _ {.{.{ {.x %.{.1.%.> ` > L {.1.A . . ", ". . A M > >.<.%.>.%.A > %.>.A A %.A A . # : : : G.W 6 . . . . . . 2 G.' ' ' O . ,.< . G.!+!+!+B : 8 # # O B B B B B 8.. V.. !+B B B B G.O 8 8 8.B B B B B : . 2 B B B B !+%.. . . . : B B B !+. 4.. 6 !+!+!+' ' # . . . . . . , ~., ~.~.~.. G.: : : : : : - . 1.0 0 ) 0 > > {.x >.) x 1.x 1.` g+> r >.%.N . ", ". . N A > %.%.{ %.> %.A A A > A 1.A %.. O : G.: : # . N A 1.N A . - G.' ' ' # . S . 6 !+!+!+!+: . . . . . 8 B B B B W . . % B B B B G.. . . N N O B B B B 8.. W B B B B 8 . D+;., . # !+B B B . 4.. # !+!+' ' W . , , , , , ~.~.~.~.~.~.~.. O : G.: : : + 6 1.> 1.> E.{.1._ M 1.0 %.%.{.{.0 x g+>.0 %.A . . ", ". 6 N 6 A 1.>.%.%.%.%.A 1.6 A A 1.L A . : : : G.: % . c A A A . . O ' G.' ' % . ,.. # !+!+!+!+O . k+k+~.. # B B B B 8.. . # B B B B O . . . . . # B B B B W . B B B B B . . . . . . # B !+B G.. ... O !+!+' ' - . , m+, ., , ~.~.~.k+,.~.. O : : G.: : 2 . E.> 1.0 c 1.1.1.` {.> > {.c > > >.g+> %.A A . . ", ". . N A %.%.>.{.%.A A A > A 1.A 1.A . % : : : : : . c A A N . 0 . G.' G.' ' . p+,.. O !+!+!+!+2 . k+~.~.. 2 B B B B # . . : B B B B # . . . . . 8 B B B B # 8 B B B B ' W 8.8.8.+ + G.B B !+O . , . G.!+' ' ' # . , , ., . .~.~.k+~.k+. O G.: : : : : 8 . x 0 > E.0 E.0 0 0 ` {.L ` _ > > 1._ 0 1.>.N . . ", ". . 6 A A A M {.%.> A 1.A 1.L N A A . 2 : : G.: O . c A A . A . % G.' G.' O . ,.k+. ' ' !+!+!+. , ~., , . 8 B !+B B % . . B B B B B . . . . . . - B B B B 2 W B B B B B B B !+B B B B B !+!+8 . m+. !+' ' ' ' . , ., ., , ~. .k+k+k+. # : : : G.: : : : . > x x > _.` L 1.> x > 1.L J ` ` > > > J M A 6 . ", ". . N 6 A > M A > A 1.A A 1.1.1.L c . - : : : : # . 6 N N . @+. # ' G.G.' # . k+. % ' ' ' !+W . 4., , , . : B B !+B . . % B B B B G.. N . . . . G.B B B B . G.B B B B B B B B !+B !+B !+!+!+% , . # ' ' ' ' + . , m+, , ~.T k+~.k+p+. 2 G.: G.: : : : W : % . L _.E.L E.1.> x g+x ` ` J 4 g+E.g+x >.%.%.N . ", ". . N N 6 %.> >.A %.A A A A L A A A . + : : : : 2 . A c . ( S . O G.' G.' 2 . , . 8 ' ' ' ' - . 4.4.4.. % B B B B O . . 8 B B B B O . . . . . % B B B B W . B B B B G.# 2 # # # # # # # # % . m+. - ' ' ' ' O . . .T T , .~., k+. 6 G.: : : : : : : W : - . x = x 0 1.` L > 1.E.` g+M >.J o > ` _ { %.. . ", ". . 6 A A A A A > A 1.A 1.A A 1.L N 6 : W : : : . c N . x ,.~.. : ' G.G.G.. 4.4.. O ' ' ' ' # . , ..v.. O !+!+B B 8 . . 8.B B B !+# . N N . . O B B B B 8 6 B B B B 8.. . . . . . . . . . . .~.. W ' ' ' ' # . T T , .k+, , ~.. 6 W G.: : G.+ 8 : W : : W . ) E.E.x > C ) 1.0 ` 1.` J 0 0 2.0 0 {.{ 6 . . ", ". . N A 1.1.1.A A A 1.A c L c L L . % : : : : O . A . A 6+4.. 6 G.G.G.' W . 4.v.. ' ' ' ' ' . 4.@.v.@.. !+!+!+!+B 6 . . B !+B B B . / N / / . B B B B B 6 # !+B !+B O . #+1+B+Y.p+T .T T T T T . ' ' !+' ' 6 . T ~. ., ~. .p+k+. O G.: : : W 6 6 : W : : W 2 . x 1.1.1.1.C ` 0 3 > 1.x ` 2.> L {.> {.6 . . ", ". . N A N c A %.A c 1.c A L 1.A A . O W W : : 8 . N . * 4.4.. 2 G.G.G.G.O . v.. % ' ' ' ' W . @.@.@.. - !+!+!+!++ . . % B B !+B : . / . . . O B B !+B O . # B B B !+8 . M.~+1+1+B+Y.. . % . T . # ' ' ' ' : . T T .T T T B+p+. O G.: G.: : 2 . . O : W : : O . 1.{.%.>.x 3 1.c 0 > C > E.1.1.x {.> >.6 N . ", ". . N c A N 1.> A x L x A A x L *.. O : W W : 2 . . . ~.4.4.. 8 G.G.G.G.2 . v.. 8 ' ' ' ' - . . . . 2 !+!+!+!+!+% . . 8 B B B !+O . . . . 2 B !+B B B % . 2 B B B B G.% . . . . . . # W 6 . Y.. 8 ' ' ' ' O . T T T k+k+p+m+. # G.G.: : G.2 . E.. # : W W : W 6 c C C C r ) C A c 0 x x 1.> > %.x 1.M %.6 . ", ". . 6 A 1.> x %.A > %.x c c 1.L 1.. W : : : W . . N U.4.4., . + G.G.G.G.6 . 4.. + G.' ' ' ' ' ' ' ' ' !+!+!+!+O . T.. W !+!+!+B B !+B !+B B B B !+B 8.. . % !+B !+!+!+!+!+!+!+!+!+!+!+G.. Y.Y.. O ' ' ' ' 2 . T T p+1+p+ .. 2 G.G.: : : O . ) ) 2.6 W : W W W 2 . 1.C 1.r c x r M 1.` ` %.* 0 > {.{ 1.6 . . ", ". . N A 1.1.x 1.>.> %.A A x c c . % : W W : + . . {.,.4.4.4.. G.G.G.G.G.. 4.4.. ' G.' G.' ' ' ' ' ' ' ' ' !+G.6 . B+. !+!+!+!+!+!+!+!+!+B !+B B B G.6 . u . !+!+!+!+!+!+!+!+!+!+!+!+' O . Y.Y.. ' ' ' G.G.% . Y.p+1+1+B+. 6 : G.: : : O . *.` L E.. O : W W W O . 1.A 1.x x C >.` ) L 1.{.%.M > {.x 1.%.N . ", ". N N > A c A x A L A x ) ) x x . # W : : : - . . D.4.4.4.. 2 : G.G.: O . 4.. 2 G.' G.' ' G.' ' ' ' ' ' ' ' # . 4.. # !+!+!+!+!+!+!+!+!+!+!+!+!+!+# . Q u . O !+!+!+!+!+!+!+!+!+' ' ' # . e.1+% ' ' G.' ' . 1+Y.1+1+/.$ . W G.G.G.: W 6 c 1.^ E.L . 2 : W W W W 6 . 1.%.r x x x 1.>.0 1.+.* { > 0 {.%.%.. . ", ". . A A >.A L L %.L c c c c 3 L . # W W W : 8 . N < 4.4.4.. 2 : G.G.G.+ . Y.. 8 ' G.G.G.' G.' ' ' ' ' ' O 6 . @.m+. - !+!+!+!+!+!+!+!+!+!+!+!++ 6 . -+[.Q . 6 W !+!+!+!+!+!+' ' ' ' O . z.z.l+% G.' G.G.: . Y.1+1+Y./ . 2 G.G.: : G.+ . C v ` C L c 6 W W + W W 8 . A +.+.1.+.1.r {.{ > >.* C.* >.* > %.N . ", ". . 6 > >.{.%.%.x x 1.) ) ) c ) > 6 % 2 % 2 % . U.v.v.v.v.4.. 2 2 2 2 2 . p+. + G.' G.' 2 . . . . . . . . . ....m+. W !+!+!+!+# . . . . . . . . . W.-+[.Q b . . . # # # # 2 # # # % . p n+M.z.. 2 2 2 2 2 6 1+Y.G+$ N M . % 2 2 2 2 2 6 1.C v C r C A 6 2 2 % 2 2 6 x 1.1.>.c x J ` 1.J J M * M >._ >.A N . ", ". . A %.> {.> {.>.0 1.c *.*.A c c c . . . . . A a , , 4.k+k+~.. . . . . ;.;.. G.G.G.' G.6 . ;...@.;.;.@.@.m+....... ' ' ' ' !+6 . x+v+Y.T d+v+1+#+W.`.[.[.u b 9 A.. . . . . . . . . 4+p n+p z.M.. . . . . . x+-+6 . M C 2.. . . . . . C C X.1.v J *.x ) . . . . . . ) o +.4 x 1.%.* %.{.1.%.> M _ 1.> >.. . ", ". . A A >.{.{.{ {.{ x L L c x *.L ) c N . . . / p+p+/.#+#+B+1+, ;.;.H.H.H.. 2 G.G.G.G.: . ....;.;.@.;.@.m+..T ... # ' ' ' ' G.. 7+C+C+m+ .v+h 1+6.W.`.>+[.Q u i+9 ~ K 3+:.:.y+t+^.^+4+7.7.n+p p z.M.z.M.M.e.3+. . M -.| | d d C 2.x r C 2.2.X.r r A 1.*.c 1.A A A c *.x v L >.%.x 1.{.r x > _ _ {.* {.%.6 . ", ". . 6 A %.%.%.{.{.1.%.L c A c c ) x c N N . . h.B+B+1+~.B+Y.p+, ;.;.@.;.@.. 8 G.G.G.G.O . @.@.;.@.m+..m+.. . .m+. - ' ' ' ' O . 7+C+C+m+x+}+v+Y.#+W.l.-+[.Q u b 9 9 ~ K ~ ; s+y+t+^.).4+4+p p p p z.z.M.z.s+. . 6 X.! I -.| d | C C h+C 4 > v c 1.o A c c 1.x L v A c v 1.C C c {.` 0 x ` 1.1.M ` M > A A . ", ". 6 N M c %.1.x > A 1.x A > A A *.*.c c . . . )+#+k+4.V H., Y.T V ., @.@.. 2 G.G.G.G.# . ;...m+...... . . .m+m+. # ' ' ' ' 8 . C+C+m+m+}+v+v+Y.#+6.l.`.[.[.Q u Y 9 9 ~ K 3+; s+y+t+^.).4+4+7.7.p p n+z.y . . o 4 ! I | C &.&.J d C +.> 4 X.v X.c L r c c A L c v L 1.> L x x C { E.> 0 1.1.` ` >.0 x A . . ", ". . N A > %.{.M {.x %.%.x A c c c *.N . . . # T.p+, 4., T ..~. .x+ . . . .x+. . . . . . ..m+@.;.m+ . . .m+m+C+7+7+. . . . . . C+C+C+m+m x+ .v+v+#+W.l.-+>+[.Q u b Y 9 A.~ ~ ~ :.s+t+w+^.z ).4+4+7.z./+% . q q I.| (.5.` -.&.r d X.| >.J 4 X.> v r r c c 4 ) c A 1.c v c C c 1.A ` x 1.1.L x L L > 0 x N N . ", ". . %.1.x 1.%.{.{.x %.c A c x ) c 1.. . . . s v.Y.Y.T T V V , ...v+x+x+T .T ...m+m+..@.;.;...x+x+ .x+C+C+7+D+7+7+7+7+7+7+7+7+C+C+U m+m+x+v+Y.#+6.W.`.>+[.Q Q u Y 9 f+A.~ ~ ; :.s+t+t+^.^+g.4+7.^.. . q [ (.I.r X.X.I 2.2.&.C &.{ +.r J 4 4 X.4 c 2.C A 2.c c *.A *.c x c 1.1.x 1.1.) ) 0 x x 0 > c 1.N . ", ". . N %.> x %.>.{ A 1.x %.A x > A N . . . . 1 T Y.1+T V V .. .m+ . .......@...@.......@.;... . . .m+m+C+7+C+7+7+7+7+7+7+7+7+7+7+=+C+C+m+H.x+v+Y.#+6.l.`.-+[.[.Q u b 9 9 A.K ~ 3+; ; :.y+t+^+^+).t . . 6 X.H d (.d R X.r I ! -.&.X.C d +.>.q +.r r o c c c C L r *.A c c C c 1.L 1.x 1.) 1.3 E.*.` L A c . . ", ". . 6 M > >.x > >.%.A > c 1.c x 1.N . . . . >+B+Y.T .....T ..T T @...@.@.@.@...m+@.@...x+;...x+m+..C+7+7+7+7+7+7+7+7+7+7+7+7+7+7+C+U d+m+x+v+v+1+#+W.l.-+[.[.Q Q b b Y 9 A.~ ~ ~ 3+:.:.y+t+w+6 . . 6 (.H [ [ Z.5.+.9.4 r C -.Z.C r d r 4 4 4 r 4 2.A *.2.v ) A c ) c c ) ) ) 1.) 2.c 1.L L E.L 1.) c A N . ", ". . A A %.>.A 1.%.%.> 1.%.1.x %.%.N . . . 6 v. .T T , @.v+T T .;.@.;.@...@.@.@.....m+ .m+ .m+m+C+C+7+7+7+7+7+7+7+7+7+D+7+7+7+D+7+C+=+7+m m+x+v+#+#+6.l.`.-+[.[.Q u b Y 9 9 A.~ ~ 3+; :.t+q . . A 4 Z [ Z.Z.r r X.I.9.! X.&.| r | y d 4 r M 4 4 o v o v A *.*.c *.A *.) c 1.L 2.3 ^ L 3 h+E.*.) c ) L N . . ", ". N 6 A A >.{.A >.> 1.%.c {.1.x > N . . . N v.~. . .T T v+T ...H.;.@...;.7+@.@.....x+..m+m+C+7+C+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+C+=+m+x+v+v+1+6.6.l.`.-+[.[.Q u b Y 9 f+A.A.~ 3+; ; K . . 2 X.Z Z Z [ (.[ r (.I.4 r r 9.-.y &.&.<.+.|.+.M 4 v *.A A c c c v C *.c ) c c ) 2.1.L 1.2.^ L c 1.) 1.A c N . ", ". . 6 6 %.> %.x %.x 1.%.A 1.> x 1.> . . . / /.T , T T ;. .....@.;.............m+..x+ .m+m+C+7+7+7+D+7+7+D+7+7+7+7+7+7+7+7+7+7+7+D+7+7+C+C+x+x+v+1+#+6.W.`.-+>+[.[.Q b Y Y 9 9 A.~ ~ K . . . % 4 +.r 4 4 [ [ 4 r I.I.R I.X.! X.r &.r &.4 |.4 o M v o v *.*.c c *.A A *.A ) c L 3 3 2.c 3 2.3 x c ) c L N . . ", ". . A A %.x > { >.%.A {.%.> x >.A . . . . / G+T , ;.H.;.;.;.@.@.;.;.m+ . .x+m+..m+m+m+m+C+@.D+7+7+7+7+7+7+7+7+7+7+D+7+7+7+D+7+7+7+C+7+=+C+m+x+v+Y.1+6.W.l.`.>+[.[.Q Q b Y 9 9 A.A.. . . . 6 Z Z r r Z > [ [ (.[ r (.I.X.4 X.4 X.-.y X.4 4 4 4 o v o 1.o A c v A c c v c c c c ) c *.) c 1.1.) ) *.c c / . . ", ". . 6 N 1.>.1.{.%.{.%.1.%.%.> x A . . . . / _+T T H.;.;.;.m+m+..m+....m+ .....x+ .m+C+7+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+7+7+7+7+D+D+7+7+7+C+U x+v+v+1+#+6.l.`.-+>+[.[.Q ].b Y Y K . . . A 5 5 q v 4 Z v 4 Z [ [ [ 4 X.4 X.I.r X.! ! X.y y d o <.v M v v A *.A c A o c *.*.A c c L c L x c L c *.) ) c c A . . ", ". . N 6 %.{.{ { _ %.%.%.%.>.%.1.N . . . . N ++;.;.m+;..., .m+....;...x+ .m+m+m+m+C+C+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+=+7+C+C+m+v+v+1+#+6.W.l.-+>+[.[.Q u u f+. . . t 4 4 D 4 5 4 Z Z v 4 4 [ 4 X.Z.[ v I.R X.4 I.9.9.X.-.y 4 q |.q M o %.v v o c A L c c c A c c c *.A L *.*.3 *.c *.c / N . ", ". . 6 M %.%.> %.%.%.A 1.%.> A 1.6 . . . . N v.;...T ..m+m+..........m+m+m+ .m+C+C+7+7+7+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+7+7+7+7+7+7+7+7+7+C+C+x+x+v+1+#+6.W.l.-+-+[.[.[.b N . . 6 5 v X.4 5 5 +.4 > 5 v Z j+v X.[ [ [ 4 I.v 9.9.X.4 X.X.y y y y o M v 1.M %.A A A c c *.v c c 1.c L L A c c c c *.c *.N c . . ", ". N N %.%.>.%.{ { >.A > > > A A %.N . . . . < ..;., ...@.@..... .m+ .x+m+m+C+..7+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+C+C+m+x+v+Y.#+6.W.l.`.-+>+Q f+. . . . q 5 5 X.D D D 5 5 5 Z Z 4 Z 4 [ o [ v (.I.I.R R v v v ! 4 4 y o |.q 4 M v A v A N A A A A c c *.A *.L L c ) c F.*.*.L c c . . ", ". . 6 N A >.>.1.%.> A A A %.M > q . . . . . U.~.;.m+@....... .m+x+m+..m+C+C+C+7+7+7+7+7+7+7+7+D+7+7+7+7+7+D+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+C+C+x+v+v+1+#+6.W.W.-+i+. . . . . I.5 D +.X.4 D D 5 > 5 5 Z Z v Z [ [ l - [ (.(.R 4 *.R -.4 y y <.y <.o % o M %.o c A A c L L L A c c c c A *.c c 3 *.c c N / . . ", ". . N A %.>.%.>.%.>.>.%.A > A %.> 6 . . . . N v.@.@...m+m+x+x+m+x+x+m+m+C+@.7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+D+D+7+C+C+m+v+v+Y.#+1+W.e+. . . . . R H w+5 5 5 4 X.D D D q o 4 5 Z 4 v j+x v v v C f I.v R 9.v -.1.1.y o <.q L v M > 1.A L N L L L A A c c L A L c c 3 *.*.*.*.c N N . ", ". . 6 6 A A %.>.{.>.>.%.|.%.M A A . . . . . . .+, 7+.. . .m+m+x+m+m+C+C+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+7+7+7+7+7+D+7+7+7+7+D+D+D+7+C+C+m+x+v+x+#+u . . . . . M H 5 H X.5 D 5 5 +.Z.D 5 5 5 o 4 Z Z o 4 v v l v [ 5.C 2.*.R L v c -.y 1.o v |.|.) > v c L A L A c A c v c L L L 1.3 *.h+F.L c c c . . ", ". . N A %.> > >.%.%.A A %.A %.%.o . . . . . . * /...C+ .m+m+m+m+m+7+7+7+D+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+7+7+7+7+7+7+D+D+7+7+C+C+C+6.e+. . . . . y Z Z.Z.Z ^.5 Z 5 +.q +.q D z 5 q 5 5 q v o v v L [ *.l *.3.5.5.L v L -.&.x y c <.|.q > *.*.o c A A N c A L L L c c c *.L L h+L L c / c . . ", ". . 6 A A 1.> >.1.%.>.A q >.o 6 6 N . . . . . . s ,.C+C+.. .m+C+7+7+D+7+7+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+W.e+. . . . . 6 R [ Z.Z.Z Z.Z.Z.5 5 Z.5 D 5 +.q 4 X.5 5 5 4 o Z c v [ [ [ ) 2.v *.*.9.9.t -.L v 1.v v L |.L v L v L c L A L c A *.2.L ^ h+*.L *.L *.*.c N N . ", ". . A N A > > >.A %.A > A |.|.q %.M . . . . . . . @ T.7+7+m+C+..7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+C+-+i+. . . . . . t Z.[ Z.[ Z.Z.Z 5 Z.q Z X.Z.Z.Z.q X.q q D q 5 Z Z Z Z *.v L 2.l f 3.*.v *.1.9.-.%.y y L L <.>.|.*.> c c v c c L A c L 3 L 3 c *.*.3 / *.*.c N . . ", ". . 6 A A A A %.> > 4 |.M 4 >.%.%.6 A . . . . . . / .+B+C+7+7+D+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+G+j.. . . . . 6 6 % t q y d y [ Z.Z Z Z q d 5 ! Z.D H X.4 X.D D D 5 5 5 L }.Z *.l *.*.w f 5.(.R *.L 1.v 1.L L y L +.|.L v M 1.v c A L A c c 3 F.*.^ 3 c c L c *.N N . . ", ". . N 6 %.%.M A >.1.%.%.A %.d o +.q 6 . . . . . . . N @ T.m+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+D+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+G+1 / . . . . . 6 y t y 9.I.+.Z.y (.[ [ Z.Z Z d 5 Z 5 Z.^.Z.Z.5 X.q v 5 5 L v *.*.}.*.Z *.l *.f l 5.*.R 9.c -.-.y y <.*.L L L L c L o L A A c A c 3 3 ^ L 3 c c *.F.L 1./ . . ", ". . 6 A M A A A %.%.%.A %.d %.%.d o o 6 . . . . . . . . s x./.C+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+7+T j @ $ . . . . . . 6 M y &.Z.R R R I.(.Z.[ y [ y [ y Z Z Z.5 Z.D 5 Z.z D X.4 D 5 i 5 *.2.}.2.*.l l 2.^ 5.2.5.5.5.9.L -.# &.L <.<.>.L L v *.%.1.c A L c *.3 c 2.) c 3 c 3 L L L / . . ", ". . N 6 A M A M A > %.M q q %.+.M o %.. . . . . . . . . . N s 1 T.Y.C+7+7+7+7+7+7+7+7+7+7+7+D+7+7+7+7+7+C+7+C+ .G+)+B./ N . . . . . . . o y -.-.! t H 9.y R I.[ ! Z.[ d y [ y Z Z 5 Z.5 Z.D D D 4 X.D 4 v *.5 2.}.}.}.) P.l ^ h+h+5.2.*.*.L *.-.L _ &.c L |.|.L x M o 1.c c A c L c ) *.c 3 c F.c L c N . . ", ". . 6 6 M %.|.+.>.+.q %.|.|.M o %.M o 6 6 . . . . . . . . . . N $ B.c+_+G+Y. .C+7+C+C+7+C+C+C+C+m+T $.G+q.Q.B./ . . . . . . . . . 6 o ! Z.y -.-.H Z.t t Z.! R ! I.[ [ [ [ y d Z.y Z D D 5 X.Z.D 5 4 4 4 o *.i }.) 2.h+2.P.2.w 2.f *.5.*.5.*.I -.-.L &.<.L L L L L c L *.v *.c c *.*.c L 3 c c c *.c c N . . ", ". . N 6 %.d %.|.%.%.> %.%.|.%.o M %.! I y 6 . . . . . . . . . . . . N / $ F.B.Q.c+c+c+c+n n Q.^ 3 F.L N N N . . . . . . . . . o o q &.q q -.y -.t Z.d y ! 9.R [ ! (.[ (.[ y [ Z Z.5 H ! Z.5 Z.4 D o v D 5 5 ) i *.Z *.2.}.h+h+l h+5.f 5.R ) ) L L L -.L 1.1.|.>.c M L L %.1.A c c 3 *.) *.*.L *.*.c N N . . ", ". . 6 A q |.%.o y %.q %.o |.o %.M o y -.+.6 6 . 6 . . . . . . . . . . . . N N N N / N / N / N / N N . . . . . . . . 6 q 6 q o o M q Z.y Z.-.! y H &.! 9.Z.! H ! I.[ Z.(.(.Z [ Z.Z 5 ^.5 Z.Z.Z.5 5 4 4 D D 5 i v L L }.}.P.}.P.^ 2.l w *.5.5.R *.L L -.L L <.<.+.L L M L %.1.L L c c c 3 c 3 L *.*.L c N . . ", ". . N 6 q 6 %.o d 6 %.%.d %.M y %.%.I y -.-.M q 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 . 6 6 A H Z.d o d y Z.&.q ! ! q y ! Z.-.H I.H I.I.I.I.Z.Z.y Z.[ [ [ Z Z 5 5 Z.Z.Z.5 5 v 5 D D D 5 v v L 5 *.2.w P.l l l *.h+5.5.*.) 9.9.) v v { <.<.|.|.|.M x L 1.) c c c 3 *.*.c *.*.*.c N . . ", ". . 6 o %.%.o %.+.%.%.6 q y o M %.% M o M &.|.q 6 M 6 o 6 %.. . . . . . . . . . . . . . . . . . . . . A o 6 o d q q q 3.q &.M M o o Z.Z.H y y y y H H R ! 9.I.H (.I.Z.I.q [ [ ! H w+H H 5 Z.5 5 +.5 5 D 4 r r 5 i 5 }.2.P.^ }.f l w l 2.2.5.5.5.*.9.I ) x L { L > 1.1.*.M 1.1.L L *.*.L L c *.c F.L N N . . ", ". . 6 q q o y o %.o %.%.d &.% &.&.M q d M M -.M y %.%.+.6 M . . . . . . . . . . . . . . . . . . . . q y Z.q q 3.3.q q H q o H Z.M o q q q d 3.H y y 3.-.3.I.I.H H Z.H [ ! Z.3.H Z H Z Z.Z w+Z.+.5 5 5 o 4 v D 1.5 5 5 3 }.}.3 2.h+w f ^ h+f 5.g R *.9.*.-.L y <.|.>.|.1.> > ) 1.1.c ) 3 c *.) c *.N c N . . ", ". . 6 q y d y q %.|.y o y %.y M o &.-.-.M &.M y M o %.M q . . . . . . . . . . . . . . . . . . . 6 o Z.3.q 3.q ! q q q H ! M q d d q q y q q Z.H H y Z.-.3.! -.! H 9.Z.I.[ X.Z.w+[ Z.Z Z Z 5 +.Z 4 5 5 v 5 1.D *.*.5 i 3 *.}.}.h+h+l h+2.(.5.L 5.5.*.x I -.-.<.1.<.<.1.x >.) x 1.L 3 *.L L c *.*.c c c N . . ", ". . 6 q q q %.o q A q d |.o %.y &.I.&.M % M &.9.! q y 6 o 6 6 6 o 6 6 6 o 6 o 6 o 6 6 q 6 6 6 6 q o q q q d F+d +.q H o H o ! q o Z.o o q q Z.q Z.! Z.-.t ! 9.9.! I.I.Z.Z.[ d X.Z.[ :.Z Z 4 5 4 Z Z %.4 5 5 L ^+^+8.i }.i }.P.h+h+2.w 2.l f 5.*.g R I L L # &.<.1.>.|.>.> *.x ) 1.> x ) 3 c ) 3 c *.c N . . ", ". . 6 o o o %.%.%.A q q %.o |.M q 3.q I.H q ! ! M M &.d q o q M d o o 6 o y 6 q 6 o q Z.y o Z.q y q y ! q q 3.3.q 3.q q q o o o %.y o Z.q Z.y H Z.y y y H y Z.y Z.! Z.9.I.I.I.+.Z.(.4 4 ; [ +.o 4 Z v 5 1.5 5 i *.*.5 5 *.}.}.h+h+B.l f *.5.*.*.*.*.L 9.# v # c 1.<.<.|.x >.) >.> x ) ) c ) F.c c c c N . . ", ". . o 6 %.y o o q o M %.q q o M &.y &.-.|.q y M o q y q q Z.d q y y q o q q M q q y o Z.-.M y q M o M q q q ! ! ! q &.M o q y o 6 o M q q o q q o Z.q q y q y y y Z.q q 9.9.d o q 9.R R 4 o I.o o (.o [ [ f [ Z 2.Z - l f *.f L *.5.5.*.L *.*.*.-.L c c y <.c <.<.{ c |.> L > 1.1.1.c c c L *.*.c c c N . . ", ". . o 6 q M o o o 6 6 6 M 6 6 o % q y M q y M o o 6 q o %.o % o o 6 o y y q o o q y 6 o y q q q o 6 o q Z.y M o y d o o 6 q o %.o o o q 6 o q o y o q q q q q y q o q y y o q y o y t y t K -.-.t -.A t R R A 9.c R A R 9.I 9./ I I -.c &.c f+{ c <.<.A A c N |.% A N c M %.L c c c A N c N c N / N N / . . ", ". 6 6 o 6 6 6 6 6 N o 6 6 %.6 o o 6 6 o 6 6 6 6 o o 6 % 6 q o 6 6 M o 6 6 6 6 o 6 6 6 6 6 o o 6 o 6 6 6 o 6 6 6 q 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 o 6 6 6 o 6 6 o 6 o % o 6 o % % o 6 % % % N % 6 K 6 |.N |.y N N <.N <.<.N c <.<.|.|.M % |.N M N %.N %.N % N %.N N N A N N A N N N N N N N N N N c N . . ", ". . . 6 . . . . . . 6 . . . 6 . . . 6 . 6 . . . . 6 6 . . 6 6 6 6 . . 6 . 6 K 6 . . 6 . 6 . 6 . . . . . K . 6 . . 6 . 6 . . . . . . . . . . . . . . 6 . 6 . . 6 . . 6 . 6 . 6 6 6 6 6 6 . 6 6 6 . . . . . 6 6 . 6 6 . . N N N N 6 6 6 6 . 6 . N . . 6 6 . 6 . . 6 . 6 . 6 . N . N 6 N . N N N N N . N N . N ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . c "}; ripperX-2.8.0/src/xpms/s_button_checked.xpm000066400000000000000000000006051233655711300207700ustar00rootroot00000000000000/* XPM */ static char * s_button_checked_xpm[] = { "14 14 5 1", " c None", ". c #010101", "+ c #909890", "@ c #01DB28", "# c #01A807", " ", " ... ", " +.@@. ", " .@#. ", " .@#. ", " .@@.. ", " .. .@#. ", " .@@..@#. ", " .@@.@@. ", " .#@@@#. ", " .#@#. ", " .##. ", " ... ", " "}; ripperX-2.8.0/src/xpms/s_button_unchecked.xpm000066400000000000000000000005701233655711300213340ustar00rootroot00000000000000/* XPM */ static char * s_button_unchecked_xpm[] = { "14 14 4 1", " c None", ". c #3E3E3E", "+ c #959595", "@ c #676767", " ", " ", " ", " ", " ", " .......... ", " .++++++++. ", " .@@@@@@@@. ", " .......... ", " ", " ", " ", " ", " "}; ripperX-2.8.0/src/xpms/s_play_button_disabled.xpm000066400000000000000000000011001233655711300221650ustar00rootroot00000000000000/* XPM */ static char * s_play_button_disabled_xpm[] = { "14 14 17 1", " c None", ". c #AAAAAA", "+ c #ABABAB", "@ c #B1B1B1", "# c #ACACAC", "$ c #B5B5B5", "% c #B4B4B4", "& c #B3B3B3", "* c #AEAEAE", "= c #BDBDBD", "- c #BFBFBF", "; c #BABABA", "> c #C1C1C1", ", c #C7C7C7", "' c #C4C4C4", ") c #B7B7B7", "! c #B2B2B2", " ", " ", " .+@ ", " .#@.. ", " .#$%&.. ", " .*=-;&@.. ", " .*>,'=)@*@ ", " .*>,'=)@*@ ", " .*=-;%!.. ", " .*%!@.. ", " .+*.. ", " ..@ ", " ", " "}; ripperX-2.8.0/src/xpms/s_play_button_enabled.xpm000066400000000000000000000015721233655711300220250ustar00rootroot00000000000000/* XPM */ static char * s_play_button_enabled_xpm[] = { "14 14 38 1", " c None", ". c #010101", "+ c #050505", "@ c #202020", "# c #0A0A0A", "$ c #1C1C1C", "% c #000000", "& c #0B0B0B", "* c #323232", "= c #303030", "- c #282828", "; c #111111", "> c #555555", ", c #606060", "' c #494949", ") c #2B2B2B", "! c #141414", "~ c #666666", "{ c #828282", "] c #727272", "^ c #545454", "/ c #383838", "( c #121212", "_ c #1E1E1E", ": c #656565", "< c #818181", "[ c #565656", "} c #3B3B3B", "| c #212121", "1 c #131313", "2 c #5B5B5B", "3 c #464646", "4 c #2C2C2C", "5 c #262626", "6 c #020202", "7 c #2F2F2F", "8 c #060606", "9 c #151515", " ", " ", " .+@ ", " .#$%% ", " %&*=-%% ", " %;>,')@%% ", " %!~{]^/@(_ ", " %!:<][}|(_ ", " %1^2345%% ", " 6175@%% ", " %89%% ", " %%_ ", " ", " "}; ripperX-2.8.0/src/xpms/scan.xpm000066400000000000000000000223041233655711300164110ustar00rootroot00000000000000/* XPM */ static char * scan_xpm[] = { "48 60 210 2", " c None", ". c #000000", "+ c #FFFFFF", "@ c #5A76D3", "# c #2E50B3", "$ c #3D3BC2", "% c #2E50C2", "& c #6884D3", "* c #4C84BD", "= c #0B008A", "- c #5A84C8", "; c #5A84D3", "> c #2050A1", ", c #0B17A2", "' c #3D50C2", ") c #2E3BA1", "! c #203BA1", "~ c #B7CEF2", "{ c #80A7D8", "] c #80A7DF", "^ c #88A7D8", "/ c #5A76BD", "( c #2E50A1", "_ c #1817A2", ": c #4C50D1", "< c #00176F", "[ c #4C76C8", "} c #4C84C8", "| c #2050D1", "1 c #2063C2", "2 c #0017B7", "3 c #2E63D1", "4 c #80A7E5", "5 c #5A76C8", "6 c #3D63C2", "7 c #20508D", "8 c #0B006F", "9 c #0017A2", "0 c #4C84D3", "a c #2050B3", "b c #2E63C2", "c c #0B30B7", "d c #5A91D3", "e c #88A7DF", "f c #4C76BD", "g c #2E3BB3", "h c #4C76D1", "i c #00178A", "j c #B1CEF2", "k c #80B7E5", "l c #4C91DC", "m c #4C91D3", "n c #80AFEA", "o c #80AFDF", "p c #0B49B7", "q c #6891E5", "r c #80AFE5", "s c #4C63D1", "t c #00006F", "u c #2076D1", "v c #2076E6", "w c #0049C9", "x c #0B49C9", "y c #2076DC", "z c #2E76DC", "A c #5A91DC", "B c #2063B3", "C c #2E508D", "D c #0049A2", "E c #2063D1", "F c #0061C9", "G c #2E76E6", "H c #4C9EDC", "I c #2E76D1", "J c #1817B7", "K c #2E63B3", "L c #00308A", "M c #0030A2", "N c #4C9EEC", "O c #88B7EA", "P c #2E87E6", "Q c #88AFE5", "R c #18008A", "S c #0077D9", "T c #2098F6", "U c #2098E6", "V c #0061D9", "W c #2E98F6", "X c #4CAAE5", "Y c #2063A1", "Z c #0061E5", "` c #2E3B8D", " . c #2076C2", ".. c #4C91C8", "+. c #2087C2", "@. c #0B61D9", "#. c #2EA7EF", "$. c #80AFD8", "%. c #5A91E5", "&. c #4C76B0", "*. c #1800A2", "=. c #00498A", "-. c #80C0E5", ";. c #5AAADC", ">. c #5AB5E5", ",. c #5AC9F2", "'. c #5AC0E5", "). c #80B7DF", "!. c #4CAAEC", "~. c #2050C2", "{. c #B1CEEF", "]. c #2076B3", "^. c #2E87D1", "/. c #0BC0EF", "(. c #3DCDFB", "_. c #0BB0E5", ":. c #189FE5", "<. c #3DCDF6", "[. c #88C0EA", "}. c #0077E5", "|. c #4C91BD", "1. c #0B30A2", "2. c #3D3BB3", "3. c #0B8BB7", "4. c #2E98D1", "5. c #20A7EF", "6. c #80B7EA", "7. c #4C9EE5", "8. c #0B176F", "9. c #4C84B0", "0. c #203BB3", "a. c #2087B3", "b. c #2E87C2", "c. c #2E98DC", "d. c #0B61E5", "e. c #0B49D9", "f. c #B1D3EF", "g. c #0049B7", "h. c #0B61A2", "i. c #4C9ED3", "j. c #4C9EC8", "k. c #18C0F7", "l. c #4CC0E5", "m. c #0B00A2", "n. c #0030B7", "o. c #2E87B3", "p. c #B1D3F2", "q. c #2ED9FB", "r. c #5AAAE5", "s. c #2E76B3", "t. c #68D3F7", "u. c #0BDBFD", "v. c #80C7EA", "w. c #0077EF", "x. c #4C91E5", "y. c #2087D1", "z. c #2076A1", "A. c #2EC2EF", "B. c #3DD9FB", "C. c #3DC2F6", "D. c #5AAAD3", "E. c #2087E6", "F. c #2098EF", "G. c #B1D3F4", "H. c #2063DC", "I. c #2E3BC2", "J. c #5A9ED3", "K. c #4CAAD3", "L. c #008BE5", "M. c #2E76C2", "N. c #4CB5EC", "O. c #20A7F6", "P. c #0049D9", "Q. c #2EA7DC", "R. c #2EA7E6", "S. c #2EA7D1", "T. c #00618A", "U. c #0B8BF7", "V. c #2087DC", "W. c #203B8D", "X. c #2EB5DC", "Y. c #4C76D3", "Z. c #20A7D1", "`. c #0061A2", " + c #B1CEF4", ".+ c #0B61B7", "++ c #5AB5DC", "@+ c #2E98E6", "#+ c #0030C9", "$+ c #0B17B7", "%+ c #0B8BC9", "&+ c #00008A", "*+ c #0B77C9", "=+ c #0077B7", "-+ c #2E98C2", ";+ c #B7D3F4", ">+ c #88AFD8", ",+ c #88AFDF", "'+ c #00306F", ")+ c #5A84BD", "!+ c #B7CEEF", "~+ c #00174F", "{+ c #88A7E5", "]+ c #689ED3", "^+ c #2949C9", "/+ c #0B178A", "(+ c #3D63A1", "_+ c #94AFE5", ":+ c #0B004F", "<+ c #00004F", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . + + + + . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . + + . . + + . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . + + + . . . . . + + + . . + + + . . + . + + . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . + + + + . . + + . + . + . . + + . + + . + + . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . + + + . + + . . . . + + + + . + + . + + . . ", ". . . . . . . . . . . . . . . . . . . . . . . + . . . + + . + + . . . + + . + + . + + . + + . . ", ". . . . . . . . . . . . . . . . . . . . . . . + + . . + + . + + . + . + + . + + . + + . + + . . ", ". . . . . . . . . . . . . . . . . . . . . . . . + + + + . . . + + + . . + + . + + + + . + + . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", " ", " ", " ", " ", " @ # $ % & ", " * = - ; > = # , , ' ; ", " ) ! ~ { ] * ^ { / ( _ ' : ", " < [ } | 1 2 1 3 } 4 > 5 > _ 6 ", " 7 8 > 9 0 / 7 ! a , b c d e f g h : ", " 8 < i } j k l m n o f > % p q r 5 # s ", " / 8 t < a u v w x y z l A o } B c d e C _ 6 ", " 7 8 < i D l k o o } m E F G H r } c I 0 } J K ", " 8 < t L M o o H N H O k } B c P b > , 3 Q * R # ", " 5 < t < M 1 1 S T U V S W X u Y z Z N o a E 0 * , ; ", " f ) ( = 8 g > ` < i L M .u o ] ..} +.@.#.O $.b V %.o % 1 [ &.*.- ", " * g i g } 5 * / { j * i L M =. .-.;.>.,.'.;.).u S !.o l V l $.~.m j } , ", " > = / e {.~ { { * / } i 7 i L M ].^./.(._.:.<.[.$.b }.!.|.1.u j * , } ^ # 2. ", " / i g * j {.f > i a ~.i a > } L B . .3.;. 4._.,.).u 5.6.o w 7.] a | o 5 , @ ", " / 8.5 {.j 9.0.i a * { j { $.] Y L ].B a.b. c.(.[.|.d.X j m e.o f 9 [ {.g # ", " < 5 f.j * 9 a * {.j ..1 m 1 g.1 Y M ].h.i. j.k.l.j .T ).o F l {.a 1 j * m. ", " ( 5 {.j * i } j $.} 1 n. .3 B } f.} ].h.o. p.>.q.r.j l 5.Q {.y m {.> 9 $.^ # 5 ", " 7 = o j * i } j f.0 g.l o ] p...p.} ].B +.s. ,.t.u.k.v.j H w.k j y x.f.[ M 4 {.g a ", " 8 ) j {.! a ] {.a g.0 {.j ).m y.y y.1 z.h.|. r.A.k.B.C.D.j o E.F.G.{.H.l j * 9 } j f I. ", " > e j f i } j } g.m f.j i.F y.u i.o $.s.a. J.3.;.K.k p.j p.!.L.7.f.r V l j [ M r {.g # ", " = { {.* a {.j B E f.j ..w ..j {.j p.b.h. o.M.p.r H H N.W O.7.f.{.l P.o j * 2 $.{.5 I. ", " ) > j {.> a j o n.m j o g.m j p.J.Q.R.S.J. h.T.u S U.F.}.V.k f.j m P.y j {.0 M 4 {.g # ", " W.) {.j > [ {.] 1 } {.m y.j {.;.X.r. J.a.K D u ..j $.j j ] k P.y ] j j ~.Y.{.^ # ) ", " W.> j {.> } j o n...j ].u p.p.Z.>. `.s.].L |. +o r 7.x.E.P.7.r f.j 0 ~.o j * m.* ", " W.) {.{.7 [ j { B ; {.} y.o $..+++ s.|.L |.r u d.@+e.y #+..j j ] a $+* j {.5 # ", " > ] {.[ > j p.B m j p.u ..j K.%+K. s.z...=.o 1 #+m 0 ..o $.j p.} 1 2 } j j 5 , 5 ", " 8 f j 9.&+* {.* 1 o j B 1 o o a.*+++ b.o.K B L } i * j j j j 4 } 0 M ~.* j j e # g ", " 7 5 {.j > a p.j B l f.o D V.).o j.b.=+c.-+).Y L Y L * j } 3 I | n.2 a } $.j {.5 % g ", " / 8./ {.f < / {.} B ] {.} D b k ;+f.>+).,+o L ..> '+> > 9 a b > [ * { j {.{.5 % = ", " ) ( j {.! a o $.a M A p.} D g.y.m k r ..B =.o Y a * < 7 j {.j {.j j e } g , g ", " 8 )+!+{ t B ~ $.a M A o { * B D g. .x .} * i * ! ~+&.{.{+]+5 5 I.# m.( ", " 7 8 $.{.* i B o p.a M I o j p.o |.} ).p.p.a Y * ~+! * g 1.^+# g } ", " W.g $.{.9.t > e j } Y /+1 d o Q j j o } Y f 7 W.&.) ~+/ ", " 7 # - j * t L ; p.j * a L M M 1 B n.M } * t 9./ ~+` ", " 8 g )+~ { W.< - o j {.{ * * > } * r { W.7 { W.` ", " 7 8 )+,+$.f < i > } $.j f.j p.j $.[ < f * 8 9. ", " W.8 (+_+{.{ 9.! 7 /+> # > # > /+< W.{ :+W. ", " ) /+6 ,+j p.j $.f > > > ! > f $./ ~+f ", " / 7 8 ( & >+^ {.{.{.{.{.j {./ <+/ ", " * 8 7 8 > 5 * - * - } g < ` ", " ` W.8 C 8 7 8 ( ) ", " ", " ", " "}; ripperX-2.8.0/src/xpms/stop.xpm000066400000000000000000000236441233655711300164620ustar00rootroot00000000000000/* XPM */ static char * stop_xpm[] = { "48 60 256 2", " c None", ". c #020204", "+ c #768294", "@ c #BEC2D3", "# c #96A2AC", "$ c #BEA2A4", "% c #B28284", "& c #C2B2C4", "* c #D2B6B4", "= c #AE92A7", "- c #89929C", "; c #A4B2BC", "> c #FEFEFC", ", c #D0A298", "' c #564E54", ") c #CCD2E4", "! c #CC9284", "~ c #D2BAB4", "{ c #968291", "] c #ADA6AC", "^ c #966A84", "/ c #DAC2C4", "( c #AE9AAC", "_ c #C6BAB8", ": c #A692A4", "< c #666A6C", "[ c #BEAABC", "} c #D4BAC0", "| c #CEAEAC", "1 c #B5B2B1", "2 c #9EAAB9", "3 c #CA827C", "4 c #B896B2", "5 c #928A8C", "6 c #898289", "7 c #D6CAC4", "8 c #DEBAC6", "9 c #D0C2BE", "0 c #CDB2B8", "a c #B2AAB4", "b c #9B9EA7", "c c #D2AABC", "d c #D2B2BC", "e c #BA9AB7", "f c #AB92B4", "g c #725A5C", "h c #CEBAB4", "i c #7E6E84", "j c #C7AAB2", "k c #B6BABC", "l c #BE8A7C", "m c #9E8A9C", "n c #EAD2BC", "o c #C29AAC", "p c #1E1A1C", "q c #C8A6B0", "r c #BEB2CC", "s c #A3A2AC", "t c #929AA4", "u c #B2B6CC", "v c #262624", "w c #7F8A97", "x c #C5CADC", "y c #DEC2D4", "z c #DABAC4", "A c #D9AA99", "B c #A29ACC", "C c #9E8AB4", "D c #C0A2B9", "E c #DBB2A9", "F c #ACB2B8", "G c #5C5A60", "H c #BAA2B4", "I c #BE7A7C", "J c #C0BAD4", "K c #767A8C", "L c #BAB2B6", "M c #9FAAC8", "N c #8E8A84", "O c #E2CECC", "P c #E0BEC2", "Q c #BAAAAC", "R c #C8AEB6", "S c #CA8A7C", "T c #D8AAA8", "U c #C6C2DC", "V c #B292A8", "W c #96929C", "X c #D2928C", "Y c #DEC2C4", "Z c #AA9ECC", "` c #9E96C4", " . c #706E74", ".. c #CACED4", "+. c #D6AAC4", "@. c #BE9EB9", "#. c #E8DADC", "$. c #DBB6AE", "%. c #9EA2C4", "&. c #C6B2B4", "*. c #D6A294", "=. c #DCBAA0", "-. c #AEA2CC", ";. c #B29AAC", ">. c #D4BEC1", ",. c #DACAD4", "'. c #DAB2CC", "). c #B296B4", "!. c #252224", "~. c #BFA6B7", "{. c #AEB2CC", "]. c #C6BAD8", "^. c #CA8A8F", "/. c #828294", "(. c #AE8AAC", "_. c #DADAD4", ":. c #9D86B1", "<. c #927E8C", "[. c #DAC6C4", "}. c #C0AEBA", "|. c #B2B6BC", "1. c #CA828C", "2. c #BE92A4", "3. c #8E828C", "4. c #D0C6D8", "5. c #CEB6BC", "6. c #B99EBA", "7. c #AA96B8", "8. c #7A5E64", "9. c #827A94", "0. c #624E64", "a. c #D19A91", "b. c #968ABC", "c. c #6A5E64", "d. c #8E7674", "e. c #2E2E2C", "f. c #767274", "g. c #8A6E6C", "h. c #5A565C", "i. c #A69AB4", "j. c #C87E8C", "k. c #E8D2E0", "l. c #B6AACC", "m. c #626E84", "n. c #AAAECA", "o. c #6E5E74", "p. c #868E9C", "q. c #927A9C", "r. c #A69AC7", "s. c #A692B9", "t. c #6A5254", "u. c #CEBACC", "v. c #B6BACC", "w. c #A2A6C4", "x. c #969EBC", "y. c #9696B4", "z. c #DADEEC", "A. c #8A7284", "B. c #8E96A4", "C. c #DECAC4", "D. c #A68A9C", "E. c #C6B6CC", "F. c #2E2A2C", "G. c #A68EAC", "H. c #A6AAC4", "I. c #766A6C", "J. c #EEDAE4", "K. c #D69E94", "L. c #BAB2CC", "M. c #D2CAD4", "N. c #C1B6B7", "O. c #AC96A8", "P. c #CE9694", "Q. c #868694", "R. c #9E9EBC", "S. c #B6A6C4", "T. c #7E6254", "U. c #9A8A9C", "V. c #C68A8C", "W. c #625A54", "X. c #C6B6C4", "Y. c #B29EB7", "Z. c #A69EA4", "`. c #A69ECC", " + c #DBBAB2", ".+ c #8A96A4", "++ c #CEA69C", "@+ c #928694", "#+ c #A2AEBC", "$+ c #765E64", "%+ c #CCBEBA", "&+ c #A08EA4", "*+ c #201E24", "=+ c #C0B6CE", "-+ c #828E9C", ";+ c #D7AE9C", ">+ c #ADB6BB", ",+ c #A2AECC", "'+ c #DAAEA8", ")+ c #C3C6DB", "!+ c #D7AEC7", "~+ c #D9A697", "{+ c #AFA6C9", "]+ c #CE8E91", "^+ c #AB8EA9", "/+ c #D29E8C", "(+ c #BABED4", "_+ c #7A8694", ":+ c #CFAEBC", "<+ c #D3B6BC", "[+ c #A6A6AC", "}+ c #969EA4", "|+ c #A08EB4", "1+ c #C2BED4", "2+ c #92969C", "3+ c #EADEDC", "4+ c #9DA6C4", "5+ c #D6CED4", "6+ c #DDB6CC", "7+ c #7F8694", "8+ c #BAAECC", "9+ c #9EA2A8", "0+ c #B2A6B4", "a+ c #9A7E88", "b+ c #6A6E7C", "c+ c #8E8E94", "d+ c #BEA6AC", "e+ c #A6969C", "f+ c #262A2C", "g+ c #DEC6CC", "h+ c #DABEC2", "i+ c #BAB6B4", "j+ c #BAAEB4", "k+ c #CA8E84", "l+ c #B296AC", "m+ c #D2968F", "n+ c #C6BED4", "o+ c #CA8690", "p+ c #A696BB", "q+ c #DECEC1", "r+ c #A68EA4", "s+ c #D2D2E4", "t+ c #EACECC", "u+ c #2A2224", "v+ c #CA867C", "w+ c #B2AEB4", "x+ c #DEC6C4", "y+ c #BEC2DC", "z+ c #CE9294", "A+ c #AC9ABC", "B+ c #B2B2BC", "C+ c #968A9C", "D+ c #868294", "E+ c #C6AABC", "F+ c #C6A6BC", "G+ c #E0BECC", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . > > > > . . > > . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . > > . . > > . > > . . . . . . . . . . . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . > > > . . . . > > > . . > > > . . > . > > . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . > > > > . . > > . . > > . > > . > > . > > . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . > > > . > > . . > > . > > . > > . . > . . ", ". . . . . . . . . . . . . . . . . . . . . . . . > . . . > > . > > . . > > . > > . > > . . > . . ", ". . . . . . . . . . . . . . . . . . . . . . . . > > . . > > . > > . . > > . > > . > > . > > . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . > > > > . . . > > . . > > > . . > > > > . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . > > . . . . . ", ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . > > . . . . . ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " . . . . . . . . . . ", " . . . A.^+= ^+G.:.C |+:.i . . . ", " . . g.| <+D 6.e V ^+:.C s.Y.& & = c.. . ", " . . 8.++E $.h+E+@.6.V r+:.C 7.S.E.~.( &+C+G . . ", " . . % , ;+E $. +<+D 6.4 ^+:.|+A+}.}.Y.&+C+{ a+3.. . ", " . p I S ! /+;+$.$. +F+6.4 ^+C |+Y.X.H : U.{ <.6 Q.c+*+. ", " . u+V.^.o+3 k+/+;+$.$.<+D e = C s.}.[ O.U.a+3.D+7+7+7+w v . ", " . . k+m+m+]+^.1.v+a.A =. +~.6.O.|+7.}.;.m { 6 /.7+7+_+w w - . . ", " . l ~+*.K.m+X ]+^.j.! A =.* @.l+|+S.;.D.@+7+7+_+_+w -+- - B.2+. ", " . T.'+A A A ~+*.a.z+]+o+j.;+n ,.,.4.4.}.W 7++ _+w p..+B.t }+b b .. ", " . , $.E E '+'+T A ~+a.P.T P $ W.*+*+' 9+@ # -+.+t }+b 9+s s s s Z.. ", " . t.8 8 8 8 8 +$.$.E '+P t+I.. . . . < ..B+[+] ] ] ] ] ] ] ] ] h.. ", " . 2.G+G+G+G+G+q+q+q+q+q+3+N . . . . 6 5+}.j+Q Q Q Q Q Q Q Q e+. ", " . ~ C.C.C.C.x+x+x+Y Y h+J.!.. . !.#.0 0 0 &.&.R R }.}.}.d+. ", " . / x+x+x+Y Y P 8 z z 6+k.3.. . . . 5 #./ >.} } <+5.5.5.0 0 R . ", " . h+Y Y P 8 8 G+8 8 8 6+y k. .. . . . f.3+O / / g+/ / >.} } } <+5.. ", " . :+P G+G+G+8 8 8 '.!+!+R u.M.0+h.!.*+G F _.7 / / / / / [.[./ / h+>.0 . ", " . o G+G+G+8 6+'.!+!+0 R ~.i.6.].s+z.) ) x k 1 %+>./ / / / / [./ / / $ . ", " . $+8 8 '.'.!+!+<+:+j 6.p+7.r.{+y+@ H.M ,+#+|.L _ >./ / [.[.[.[./ [.g . ", " . c '.!++.} d :+j e f 7.).-.L.)+@ n.w.M ,+>+|.i+N.9 / / / [.[.[.h . ", " . ^ +.!+<+d R D 4 f i.7.`.l.J )+)+n.%.M M 2 >+B+L N.%+9 [./ / [.d.. ", " . j d 0 j D 4 ).p+7.` -.8+1+)+@ n.%.w.M M ; |.B+1 N.%+9 [.[.R . ", " . . q q @.4 4 s.7.7.r.l.=+)+)+@ {.4+w.4+M 2 >+|.B+L N._ 9 %+. . ", " . F.4 4 4 f p+7.B {+8+J x )+@ {.w.4+w.M M ; >+B+w+L N.N.e.. ", " . !.(.f p+p+` `.l.=+n+x )+@ u w.4+w.4+4+M F >+B+w+a f+. ", " . . q.p+7.B {+8+=+U x )+@ u w.%.w.4+4+4+#+>+|.s . . ", " . . 0.b.Z l.r ].)+x )+@ u H.%.4+4+4+4+M 2 b+. . ", " . . o.A+=+n+)+x )+@ v.H.%.%.w.4+x.m.. . ", " . . . 9.n.(+@ @ v.H.R.y.K . . . ", " . . . . . . . . . . ", " ", " ", " ", " ", " ", " ", " ", " ", " "}; ripperX-2.8.0/watch000066400000000000000000000001151233655711300142060ustar00rootroot00000000000000version=2 ftp://heanet.dl.sourceforge.net/r/ri/ripperx/ripperX-(.*)\.tar\.gz