diff --git a/recipes/wip/files/mc b/recipes/wip/files/mc new file mode 120000 index 0000000000..505818a9c2 --- /dev/null +++ b/recipes/wip/files/mc @@ -0,0 +1 @@ +../../../local/recipes/tui/mc \ No newline at end of file diff --git a/recipes/wip/files/mc/recipe.toml b/recipes/wip/files/mc/recipe.toml deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/recipes/wip/files/mc/source/ABOUT-NLS b/recipes/wip/files/mc/source/ABOUT-NLS deleted file mode 100644 index b1de1b6832..0000000000 --- a/recipes/wip/files/mc/source/ABOUT-NLS +++ /dev/null @@ -1,1282 +0,0 @@ -1 Notes on the Free Translation Project -*************************************** - -Free software is going international! The Free Translation Project is -a way to get maintainers of free software, translators, and users all -together, so that free software will gradually become able to speak many -languages. A few packages already provide translations for their -messages. - - If you found this `ABOUT-NLS' file inside a distribution, you may -assume that the distributed package does use GNU `gettext' internally, -itself available at your nearest GNU archive site. But you do _not_ -need to install GNU `gettext' prior to configuring, installing or using -this package with messages translated. - - Installers will find here some useful hints. These notes also -explain how users should proceed for getting the programs to use the -available translations. They tell how people wanting to contribute and -work on translations can contact the appropriate team. - -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. - diff --git a/recipes/wip/files/mc/source/AUTHORS b/recipes/wip/files/mc/source/AUTHORS deleted file mode 100644 index b64143aac1..0000000000 --- a/recipes/wip/files/mc/source/AUTHORS +++ /dev/null @@ -1,138 +0,0 @@ -THE E-MAIL ADDRESSES LISTED HERE SHOULD NOT BE USED TO SEND QUESTIONS TO -THE DEVELOPERS. ALL QUESTIONS ABOUT THE PROJECT SHOULD BE SENT TO THE -MAILING LISTS, AS DESCRIBED IN THE README FILE. - - -Authors of GNU Midnight Commander: -================================== -Andrej Borsenkow -Andrew Borodin -Andrew V. Samoilov -Ching Hui -Dugan Porter -Enrico Weigelt -Fred Leeflang -Jakub Jelinek -Janne Kukonlehto -Ilia Maslakov -Mauricio Plaza -Miguel de Icaza -Mikhail S. Pobolovets -Norbert Warmuth -Patrick Winnertz -Paul Sheer -Pavel Machek -Pavel Roskin -Radek Doulik -Roland Illig -Stan. S. Krupoderov -Sergei Trofimovich -Slava Zanko -Yury V. Zaytsev - -Contributors: -============= - -Adam Byrtek - -Adam Tla/lka - -Alexander Serkov - Console saving on FreeBSD. - -Alessandro Rubini - Mouse support. - -AleÅ¡ Janda - Shadows of dialog windows and menus. - -Alexander Dong - OS/2 port. - -Alex I. Tkachenko - SCO UNIX support. - -Andreas Mohr - Find a lot of memory leaks. - A lot of code cleanups. - -Andrzej Zaborowski - Polish translation. - -Anton Chumak - Russian translation. - Ukrainian translation. - -Antonio Palama, DOS port - DOS port. - -broly - Support of PCRE2 - -Dmitry Koterov - s3 extfs bugfixes and improvements - -Egmont Koblinger - Support of 256 colors - Support of True Color (16 millions colors) - Support of italic text - Support of extended mouse clicks beyond 223 column - Support of bracketed paste mode of xterm - (http://invisible-island.net/xterm/ctlseqs/ctlseqs.html#Bracketed%20Paste%20Mode) - Rewritten viewer - -Erwin van Eijk - -Gerd Knorr - -Ilya Rybkin - -Jakob Kemi - s3 extfs - -Jean-Daniel Luiset - -John Davis - Wrote S-Lang library and answered questions about it. - -Jon Stevens - -Juan Francisco Grigera - Win32 port. - -Juan Jose Ciarlante - -Leonard den Ottolander - Reworking and pushing downstream (security) patches for 4.6.0. - Vfs/extfs quoting fixes - -Marcelo Roccasalva - -Massimo Fontanelli - -Mooffie - New high-level mouse API - extfs helpers tester - -Oliver Lange - modarin256: set of 256-color skins - -Pavel Shirshov - Committing downstream (security) patches for 4.6.0. - -Sergey Ya. Korshunoff - -Thomas Pundt - -Timur Bakeyev - -Tomasz Cholewo - -Torben Fjerdingstad - -Vadim Sinolitis - -Walery Studennikov - Charset conversion support. - -Wim Osterholt diff --git a/recipes/wip/files/mc/source/COPYING b/recipes/wip/files/mc/source/COPYING deleted file mode 100644 index 5056c63560..0000000000 --- a/recipes/wip/files/mc/source/COPYING +++ /dev/null @@ -1,641 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - - Everyone is permitted to copy and distribute verbatim copies of this -license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for software and -other kinds of works. - - The licenses for most software and other practical works are designed to -take away your freedom to share and change the works. By contrast, the GNU -General Public License is intended to guarantee your freedom to share and change -all versions of a program--to make sure it remains free software for all its -users. We, the Free Software Foundation, use the GNU General Public License for -most of our software; it applies also to any other work released this way by its -authors. 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 them 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 prevent others from denying you these -rights or asking you to surrender the rights. Therefore, you have certain -responsibilities if you distribute copies of the software, or if you modify it: -responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether gratis or -for a fee, you must pass on to the recipients the same freedoms that you -received. 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. - - Developers that use the GNU GPL protect your rights with two steps: (1) -assert copyright on the software, and (2) offer you this License giving you -legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains that -there is no warranty for this free software. For both users' and authors' sake, -the GPL requires that modified versions be marked as changed, so that their -problems will not be attributed erroneously to authors of previous versions. - - Some devices are designed to deny users access to install or run modified -versions of the software inside them, although the manufacturer can do so. This -is fundamentally incompatible with the aim of protecting users' freedom to -change the software. The systematic pattern of such abuse occurs in the area of -products for individuals to use, which is precisely where it is most -unacceptable. Therefore, we have designed this version of the GPL to prohibit -the practice for those products. If such problems arise substantially in other -domains, we stand ready to extend this provision to those domains in future -versions of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. States -should not allow patents to restrict development and use of software on -general-purpose computers, but in those that do, we wish to avoid the special -danger that patents applied to a free program could make it effectively -proprietary. To prevent this, the GPL assures that patents cannot be used to -render the program non-free. - - The precise terms and conditions for copying, distribution and modification -follow. - - TERMS AND CONDITIONS - -0. Definitions. ---------------- - - “This License†refers to version 3 of the GNU General Public License. - - “Copyright†also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - “The Program†refers to any copyrightable work licensed under this License. -Each licensee is addressed as “youâ€. “Licensees†and “recipients†may be -individuals or organizations. - - To “modify†a work means to copy from or adapt all or part of the work in a -fashion requiring copyright permission, other than the making of an exact copy. -The resulting work is called a “modified version†of the earlier work or a work -“based on†the earlier work. - - A “covered work†means either the unmodified Program or a work based on the -Program. - - To “propagate†a work means to do anything with it that, without permission, -would make you directly or secondarily liable for infringement under applicable -copyright law, except executing it on a computer or modifying a private copy. -Propagation includes copying, distribution (with or without modification), -making available to the public, and in some countries other activities as well. - - To “convey†a work means any kind of propagation that enables other parties -to make or receive copies. Mere interaction with a user through a computer -network, with no transfer of a copy, is not conveying. - - An interactive user interface displays “Appropriate Legal Notices†to the -extent that it includes a convenient and prominently visible feature that (1) -displays an appropriate copyright notice, and (2) tells the user that there is -no warranty for the work (except to the extent that warranties are provided), -that licensees may convey the work under this License, and how to view a copy of -this License. If the interface presents a list of user commands or options, such -as a menu, a prominent item in the list meets this criterion. - - -1. Source Code. ---------------- - - The “source code†for a work means the preferred form of the work for making -modifications to it. “Object code†means any non-source form of a work. - - A “Standard Interface†means an interface that either is an official -standard defined by a recognized standards body, or, in the case of interfaces -specified for a particular programming language, one that is widely used among -developers working in that language. - - The “System Libraries†of an executable work include anything, other than -the work as a whole, that (a) is included in the normal form of packaging a -Major Component, but which is not part of that Major Component, and (b) serves -only to enable use of the work with that Major Component, or to implement a -Standard Interface for which an implementation is available to the public in -source code form. A “Major Componentâ€, in this context, means a major essential -component (kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to produce the -work, or an object code interpreter used to run it. - - The “Corresponding Source†for a work in object code form means all the -source code needed to generate, install, and (for an executable work) run the -object code and to modify the work, including scripts to control those -activities. However, it does not include the work's System Libraries, or -general-purpose tools or generally available free programs which are used -unmodified in performing those activities but which are not part of the work. -For example, Corresponding Source includes interface definition files associated -with source files for the work, and the source code for shared libraries and -dynamically linked subprograms that the work is specifically designed to -require, such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users can regenerate -automatically from other parts of the Corresponding Source. - - The Corresponding Source for a work in source code form is that same work. - -2. Basic Permissions. ---------------------- - - All rights granted under this License are granted for the term of copyright -on the Program, and are irrevocable provided the stated conditions are met. This -License explicitly affirms your unlimited permission to run the unmodified -Program. The output from running a covered work is covered by this License only -if the output, given its content, constitutes a covered work. This License -acknowledges your rights of fair use or other equivalent, as provided by -copyright law. - - You may make, run and propagate covered works that you do not convey, -without conditions so long as your license otherwise remains in force. You may -convey covered works to others for the sole purpose of having them make -modifications exclusively for you, or provide you with facilities for running -those works, provided that you comply with the terms of this License in -conveying all material for which you do not control copyright. Those thus making -or running the covered works for you must do so exclusively on your behalf, -under your direction and control, on terms that prohibit them from making any -copies of your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under the -conditions stated below. Sublicensing is not allowed; section 10 makes it -unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. --------------------------------------------------------------- - - No covered work shall be deemed part of an effective technological measure -under any applicable law fulfilling obligations under article 11 of the WIPO -copyright treaty adopted on 20 December 1996, or similar laws prohibiting or -restricting circumvention of such measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention is -effected by exercising rights under this License with respect to the covered -work, and you disclaim any intention to limit operation or modification of the -work as a means of enforcing, against the work's users, your or third parties' -legal rights to forbid circumvention of technological measures. - - -4. Conveying Verbatim Copies. ------------------------------ - - You may convey 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; keep intact all notices stating that -this License and any non-permissive terms added in accord with section 7 apply -to the code; keep intact all notices of the absence of any warranty; and give -all recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, and you -may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. --------------------------------------- - - You may convey a work based on the Program, or the modifications to produce -it from the Program, in the form of source code under the terms of section 4, -provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified it, and - giving a relevant date. - b) The work must carry prominent notices stating that it is released under - this License and any conditions added under section 7. This requirement - modifies the requirement in section 4 to “keep intact all noticesâ€. - c) You must license the entire work, as a whole, under this License to - anyone who comes into possession of a copy. This License will therefore - apply, along with any applicable section 7 additional terms, to the whole - of the work, and all its parts, regardless of how they are packaged. This - License gives no permission to license the work in any other way, but it - does not invalidate such permission if you have separately received it. - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your work need - not make them do so. - - A compilation of a covered work with other separate and independent works, -which are not by their nature extensions of the covered work, and which are not -combined with it such as to form a larger program, in or on a volume of a -storage or distribution medium, is called an “aggregate†if the compilation and -its resulting copyright are not used to limit the access or legal rights of the -compilation's users beyond what the individual works permit. Inclusion of a -covered work in an aggregate does not cause this License to apply to the other -parts of the aggregate. - -6. Conveying Non-Source Forms. ------------------------------- - - You may convey a covered work in object code form under the terms of -sections 4 and 5, provided that you also convey the machine-readable -Corresponding Source under the terms of this License, in one of these ways: - - a) Convey the object code in, or embodied in, a physical product (including - a physical distribution medium), accompanied by the Corresponding Source - fixed on a durable physical medium customarily used for software - interchange. - b) Convey the object code in, or embodied in, a physical product (including - a physical distribution medium), accompanied by a written offer, valid - for at least three years and valid for as long as you offer spare parts - or customer support for that product model, to give anyone who possesses - the object code either (1) a copy of the Corresponding Source for all the - software in the product that is covered by this License, on a durable - physical medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this conveying of - source, or (2) access to copy the Corresponding Source from a network - server at no charge. - c) Convey individual copies of the object code with a copy of the written - offer to provide the Corresponding Source. This alternative is allowed - only occasionally and noncommercially, and only if you received the - object code with such an offer, in accord with subsection 6b. - d) Convey the object code by offering access from a designated place (gratis - or for a charge), and offer equivalent access to the Corresponding Source - in the same way through the same place at no further charge. You need not - require recipients to copy the Corresponding Source along with the object - code. If the place to copy the object code is a network server, the - Corresponding Source may be on a different server (operated by you or a - third party) that supports equivalent copying facilities, provided you - maintain clear directions next to the object code saying where to find - the Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is available - for as long as needed to satisfy these requirements. - e) Convey the object code using peer-to-peer transmission, provided you - inform other peers where the object code and Corresponding Source of the - work are being offered to the general public at no charge under - subsection 6d. - - A separable portion of the object code, whose source code is excluded from -the Corresponding Source as a System Library, need not be included in conveying -the object code work. - - A “User Product†is either (1) a “consumer productâ€, which means any -tangible personal property which is normally used for personal, family, or -household purposes, or (2) anything designed or sold for incorporation into a -dwelling. In determining whether a product is a consumer product, doubtful cases -shall be resolved in favor of coverage. For a particular product received by a -particular user, “normally used†refers to a typical or common use of that class -of product, regardless of the status of the particular user or of the way in -which the particular user actually uses, or expects or is expected to use, the -product. A product is a consumer product regardless of whether the product has -substantial commercial, industrial or non-consumer uses, unless such uses -represent the only significant mode of use of the product. - - “Installation Information†for a User Product means any methods, procedures, -authorization keys, or other information required to install and execute -modified versions of a covered work in that User Product from a modified version -of its Corresponding Source. The information must suffice to ensure that the -continued functioning of the modified object code is in no case prevented or -interfered with solely because modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as part of a -transaction in which the right of possession and use of the User Product is -transferred to the recipient in perpetuity or for a fixed term (regardless of -how the transaction is characterized), the Corresponding Source conveyed under -this section must be accompanied by the Installation Information. But this -requirement does not apply if neither you nor any third party retains the -ability to install modified object code on the User Product (for example, the -work has been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates for a -work that has been modified or installed by the recipient, or for the User -Product in which it has been modified or installed. Access to a network may be -denied when the modification itself materially and adversely affects the -operation of the network or violates the rules and protocols for communication -across the network. - - Corresponding Source conveyed, and Installation Information provided, in -accord with this section must be in a format that is publicly documented (and -with an implementation available to the public in source code form), and must -require no special password or key for unpacking, reading or copying. - -7. Additional Terms. --------------------- - - “Additional permissions†are terms that supplement the terms of this License -by making exceptions from one or more of its conditions. Additional permissions -that are applicable to the entire Program shall be treated as though they were -included in this License, to the extent that they are valid under applicable -law. If additional permissions apply only to part of the Program, that part may -be used separately under those permissions, but the entire Program remains -governed by this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option remove any -additional permissions from that copy, or from any part of it. (Additional -permissions may be written to require their own removal in certain cases when -you modify the work.) You may place additional permissions on material, added by -you to a covered work, for which you have or can give appropriate copyright -permission. - - Notwithstanding any other provision of this License, for material you add to -a covered work, you may (if authorized by the copyright holders of that -material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the terms of - sections 15 and 16 of this License; or - b) Requiring preservation of specified reasonable legal notices or author - attributions in that material or in the Appropriate Legal Notices - displayed by works containing it; or - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in reasonable - ways as different from the original version; or - d) Limiting the use for publicity purposes of names of licensors or authors - of the material; or - e) Declining to grant rights under trademark law for use of some trade - names, trademarks, or service marks; or - f) Requiring indemnification of licensors and authors of that material by - anyone who conveys the material (or modified versions of it) with - contractual assumptions of liability to the recipient, for any liability - that these contractual assumptions directly impose on those licensors and - authors. - - All other non-permissive additional terms are considered “further -restrictions†within the meaning of section 10. If the Program as you received -it, or any part of it, contains a notice stating that it is governed by this -License along with a term that is a further restriction, you may remove that -term. If a license document contains a further restriction but permits -relicensing or conveying under this License, you may add to a covered work -material governed by the terms of that license document, provided that the -further restriction does not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you must -place, in the relevant source files, a statement of the additional terms that -apply to those files, or a notice indicating where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the form of -a separately written license, or stated as exceptions; the above requirements -apply either way. - -8. Termination. ---------------- - - You may not propagate or modify a covered work except as expressly provided -under this License. Any attempt otherwise to propagate or modify it is void, and -will automatically terminate your rights under this License (including any -patent licenses granted under the third paragraph of section 11). - - However, if you cease all violation of this License, then your license from -a particular copyright holder is reinstated (a) provisionally, unless and until -the copyright holder explicitly and finally terminates your license, and (b) -permanently, if the copyright holder fails to notify you of the violation by -some reasonable means prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is reinstated -permanently if the copyright holder notifies you of the violation by some -reasonable means, this is the first time you have received notice of violation -of this License (for any work) from that copyright holder, and you cure the -violation prior to 30 days after your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under this -License. If your rights have been terminated and not permanently reinstated, you -do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. ---------------------------------------------- - - You are not required to accept this License in order to receive or run a -copy of the Program. Ancillary propagation of a covered work occurring solely as -a consequence of using peer-to-peer transmission to receive a copy likewise does -not require acceptance. However, nothing other than this License grants you -permission to propagate or modify any covered work. These actions infringe -copyright if you do not accept this License. Therefore, by modifying or -propagating a covered work, you indicate your acceptance of this License to -do so. - -10. Automatic Licensing of Downstream Recipients. -------------------------------------------------- - - Each time you convey a covered work, the recipient automatically receives a -license from the original licensors, to run, modify and propagate that work, -subject to this License. You are not responsible for enforcing compliance by -third parties with this License. - - An “entity transaction†is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered work results -from an entity transaction, each party to that transaction who receives a copy -of the work also receives whatever licenses to the work the party's predecessor -in interest had or could give under the previous paragraph, plus a right to -possession of the Corresponding Source of the work from the predecessor in -interest, if the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the rights -granted or affirmed under this License. For example, you may not impose a -license fee, royalty, or other charge for exercise of rights granted under this -License, and you may not initiate litigation (including a cross-claim or -counterclaim in a lawsuit) alleging that any patent claim is infringed by -making, using, selling, offering for sale, or importing the Program or any -portion of it. - -11. Patents. ------------- - - A “contributor†is a copyright holder who authorizes use under this License -of the Program or a work on which the Program is based. The work thus licensed -is called the contributor's “contributor versionâ€. - - A contributor's “essential patent claims†are all patent claims owned or -controlled by the contributor, whether already acquired or hereafter acquired, -that would be infringed by some manner, permitted by this License, of making, -using, or selling its contributor version, but do not include claims that would -be infringed only as a consequence of further modification of the contributor -version. For purposes of this definition, “control†includes the right to grant -patent sublicenses in a manner consistent with the requirements of this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free patent -license under the contributor's essential patent claims, to make, use, sell, -offer for sale, import and otherwise run, modify and propagate the contents of -its contributor version. - - In the following three paragraphs, a “patent license†is any express -agreement or commitment, however denominated, not to enforce a patent (such as -an express permission to practice a patent or covenant not to sue for patent -infringement). To “grant†such a patent license to a party means to make such an -agreement or commitment not to enforce a patent against the party. - - If you convey a covered work, knowingly relying on a patent license, and the -Corresponding Source of the work is not available for anyone to copy, free of -charge and under the terms of this License, through a publicly available network -server or other readily accessible means, then you must either (1) cause the -Corresponding Source to be so available, or (2) arrange to deprive yourself of -the benefit of the patent license for this particular work, or (3) arrange, in a -manner consistent with the requirements of this License, to extend the patent -license to downstream recipients. “Knowingly relying†means you have actual -knowledge that, but for the patent license, your conveying the covered work in a -country, or your recipient's use of the covered work in a country, would -infringe one or more identifiable patents in that country that you have reason -to believe are valid. - - If, pursuant to or in connection with a single transaction or arrangement, -you convey, or propagate by procuring conveyance of, a covered work, and grant a -patent license to some of the parties receiving the covered work authorizing -them to use, propagate, modify or convey a specific copy of the covered work, -then the patent license you grant is automatically extended to all recipients of -the covered work and works based on it. - - A patent license is “discriminatory†if it does not include within the scope -of its coverage, prohibits the exercise of, or is conditioned on the -non-exercise of one or more of the rights that are specifically granted under -this License. You may not convey a covered work if you are a party to an -arrangement with a third party that is in the business of distributing software, -under which you make payment to the third party based on the extent of your -activity of conveying the work, and under which the third party grants, to any -of the parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work conveyed by you -(or copies made from those copies), or (b) primarily for and in connection with -specific products or compilations that contain the covered work, unless you -entered into that arrangement, or that patent license was granted, prior to -28 March 2007. - - Nothing in this License shall be construed as excluding or limiting any -implied license or other defenses to infringement that may otherwise be -available to you under applicable patent law. - -12. No Surrender of Others' Freedom. ------------------------------------- - - If 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 convey a covered work so -as to satisfy simultaneously your obligations under this License and any other -pertinent obligations, then as a consequence you may not convey it at all. For -example, if you agree to terms that obligate you to collect a royalty for -further conveying from those to whom you convey the Program, the only way you -could satisfy both those terms and this License would be to refrain entirely -from conveying the Program. - -13. Use with the GNU Affero General Public License. ---------------------------------------------------- - - Notwithstanding any other provision of this License, you have permission to -link or combine any covered work with a work licensed under version 3 of the GNU -Affero General Public License into a single combined work, and to convey the -resulting work. The terms of this License will continue to apply to the part -which is the covered work, but the special requirements of the GNU Affero -General Public License, section 13, concerning interaction through a network -will apply to the combination as such. - -14. Revised Versions of this License. -------------------------------------- - - The Free Software Foundation may publish revised and/or new versions of the -GNU 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 that a certain numbered version of the GNU General Public License -“or any later version†applies to it, you have the option of following the terms -and conditions either of that numbered version or of any later version published -by the Free Software Foundation. If the Program does not specify a version -number of the GNU General Public License, you may choose any version ever -published by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future versions of -the GNU General Public License can be used, that proxy's public statement of -acceptance of a version permanently authorizes you to choose that version for -the Program. - - Later license versions may give you additional or different permissions. -However, no additional obligations are imposed on any author or copyright holder -as a result of your choosing to follow a later version. - -15. Disclaimer of Warranty. ---------------------------- - - 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. - -16. Limitation of Liability. ----------------------------- - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL -ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. - -17. Interpretation of Sections 15 and 16. ------------------------------------------ - - If the disclaimer of warranty and limitation of liability provided above -cannot be given local legal effect according to their terms, reviewing courts -shall apply local law that most closely approximates an absolute waiver of all -civil liability in connection with the Program, unless a warranty or assumption -of liability accompanies a copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest possible -use to the public, the best way to achieve this is to make it free software -which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest to -attach them to the start of each source file to most effectively state the -exclusion of warranty; and each file should have at least the “copyright†line -and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - - -Also add information on how to contact you by electronic and paper mail. - - - If the program does terminal interaction, make it output a short notice -like this when it starts in an interactive mode: - - Copyright (C) - This program 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, your program's commands might be -different; for a GUI interface, you would use an “about boxâ€. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a “copyright disclaimer†for the program, if necessary. For more -information on this, and how to apply and follow the GNU GPL, see -. - - The GNU 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 Lesser General Public -License instead of this License. But first, please read -. diff --git a/recipes/wip/files/mc/source/ChangeLog b/recipes/wip/files/mc/source/ChangeLog deleted file mode 100644 index 6f6cbda99b..0000000000 --- a/recipes/wip/files/mc/source/ChangeLog +++ /dev/null @@ -1,3 +0,0 @@ -For the major changes since the last release please see doc/NEWS. For -the detailed commit log please refer to the output of 'git log' against -a checked out copy of the repository. diff --git a/recipes/wip/files/mc/source/INSTALL b/recipes/wip/files/mc/source/INSTALL deleted file mode 100644 index 8fc9bef907..0000000000 --- a/recipes/wip/files/mc/source/INSTALL +++ /dev/null @@ -1,273 +0,0 @@ -Build requirements for GNU Midnight Commander ---------------------------------------------- - -- glibc or uClibc or musl - - https://www.gnu.org/software/libc/ - - https://uclibc.org - - https://www.musl-libc.org -- gcc or clang - - https://gcc.gnu.org - - https://clang.llvm.org -- make - - https://www.gnu.org/software/make/ -- autoconf >= 2.64 - - https://www.gnu.org/software/autoconf/ -- automake >= 1.14 - - https://www.gnu.org/software/automake/ -- libtool - - https://www.gnu.org/software/libtool/ -- pkg-config (optional) - - https://pkg-config.freedesktop.org/wiki/ -- glib2 >= 2.32 - - https://www.gtk.org -- slang2 or ncurses screen library - - https://www.jedsoft.org/slang/ - - https://invisible-island.net/ncurses/ncurses.html -- gettext >= 0.18.2 - - https://www.gnu.org/software/gettext/ -- pcre or pcre2 (as an alternative to glib-regexp) - - https://www.pcre.org -- gpm (general purpose mouse daemon as an alternative to xterm mouse) - - https://www.nico.schottelius.org/software/gpm/ -- libssh2 >= 1.2.8 (required only for sftp vfs) - - https://libssh2.org -- libaspell (spell checking support in the internal editor) - - http://aspell.net -- ext2fs >= 1.42.4 (support for ext{2,3,4}fs extended attributes) - - https://e2fsprogs.sourceforge.net - - -Installation instructions for GNU Midnight Commander ----------------------------------------------------- - -Midnight Commander is written in a portable manner and uses GNU Autoconf -for configuration, so it is expected to compile without changes on many -other operating systems. - -If you are installing from an official tarball, it already contains -pre-bootstrapped autotools build system (specifically the `configure' -script). In the case that you are installing from a version control -checkout, you need to bootstrap the build system yourself first using -the `autogen.sh' script. Note that to do this you would need to install -the autotools suite first and not only direct mc build dependencies. - -The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation, and creates -the makefiles. It also creates a file `config.status' that you can run -in the future to recreate the current configuration. - -To compile this package: - -1. Configure the package for your system. - -Normally, you just `cd' to the directory containing the package's source -code and type `./configure'. - -To compile the package in a different directory than the one containing -the source code, you must use a version of `make' supporting the `VPATH' -variable, such as GNU `make'. Change to the directory where you want -the object files and executables to go and run the `configure' script -with the full path. If for some reason `configure' cannot find the -source code directory, run `configure' with the option `--srcdir=DIR', -where DIR is the directory that contains the source code. - -By default, `make install' will install the package's files in -`/usr/local/bin', `/usr/local/man', etc. You can specify an -installation prefix other than `/usr/local' by giving `configure' the -option `--prefix=PATH'. - -If compiled on GNU/Linux, Midnight Commander detects if you have the gpm -library installed. If you installed the gpm mouse library in a -non-standard place, you will need to use the --with-gpm-mouse flag with -the directory base where you installed the gpm package. - -`configure' recognizes the following options (the list may be -incomplete, use `configure --help' to get the full list): - -`--help' - Print a summary of the options to `configure' and exit. - -`--quiet' -`--silent' - Do not print messages saying which checks are being made. - -`--version' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--without-edit' - Configure GNU Midnight Commander to be compiled without the - built-in file editor. The built-in editor is compiled in by - default. - -`--enable-aspell[=prefix]' - This option adds spell check support to the internal editor using - libaspell and optionally sets path to libaspell installation prefix - [default=/usr]. Disabled by default. - -`--without-gpm-mouse' - Use this flag to disable gpm mouse support (e.g. if you want to - use mouse only on X terminals). - -`--with-glib-static' - Force linking against glib statically. This option is intended for - building binaries for distribution purposes and may not work on - some operating systems. - -`--with-subshell[=optional]', `--without-subshell' - The subshell support is by default turned on, you can disable - this by using the --without-subshell option. If you pass the - =optional parameter, then the subshell support is turned off by - default. To turn it on, specify the `-U' option to the program. - -`--without-x' - By default, the Midnight Commander tries to connect to the X Window - System events to query the status of the keyboard modifiers, such - as Control, Shift and Alt, when invoked in a terminal emulator - under X11. This is necessary (but not always sufficient) to - recognize some optional but handy key combinations like Ctrl-Home - and Shift-Cursor keys. Use `--without-x' if the dependency on - X11 libraries is not desired. - -`--disable-largefile' - This option disables support for large files (2 gigabytes and more) - on the systems where file operations use 32-bit offsets by default, - but support for 64-bit offsets is available. May be useful for - slow processors and embedded systems. - -`--enable-charset' - This option adds support for selecting character set of the text in - the internal viewer and editor and converting it on the fly. The - implementation of this option is currently incomplete. - -`--disable-background' - This option disables support for background operations. Background - operations allow to perform some tasks such as copying files in a - separate background process. Any messages from the background - process are forwarded to the foreground process. More advanced - dialogs cannot be forwarded yet, so the background process uses the - default. Background code is known to be less stable than the rest - of the code, so you may want to disable it at the compile time. - -`--with-homedir' - This option allow users to place user config directories in any - place. By default value is 'XDG', this mean, mc will respect XDG - standards. If other value is specified, this will used as directory - name (relative to $HOME if path is relative, or as is if path is - absolute). - -VFS options: -- - - - - - - -`--disable-vfs' - This option disables the Virtual File System switch code in the - Midnight Commander and uses the standard file system calls for - file access. If you specify this option, you won't get the - transparent access to archives and remote directories. - -`--enable-vfs-cpio' - (on by default) - Support for cpio filesystem - -`--enable-vfs-tar' - (on by default) - Support for tar filesystem - -`--enable-vfs-ftp' - (on by default) - Support for FTP vfs - -`--enable-vfs-shell' - (on by default) - Support for SHELL vfs - -`--enable-vfs-sftp' - (auto) - Support for SFTP vfs - -`--enable-vfs-extfs' - (on by default) - Support for extfs - -`--enable-vfs-sfs` - (on by default) - Support for sfs - -`--enable-vfs-undelfs' - (off by default) - Support for ext2 undelete filesystem. - On systems that use the ext2 or ext3 file system and have the - libext2fs library available, this option adds support for - recovering deleted files (the undel virtual file system). - -Screen library: -- - - - - - - - - -You may also tell configure which screen library you want to use with -the Midnight Commander. The configure script will use S-Lang as -default, and prefers an already installed S-Lang library over the -included one, but you can override this by using the following flag -(please note that since S-Lang is default, it is tested better than -ncurses): - -`--with-screen={slang|ncurses}' - Choose the library used to manage interaction with the terminal. - `slang' means S-Lang library already installed on the system, - `ncurses' means ncurses library already installed on the system. - The S-Lang library is used by default if found. - -`--with-ncurses-includes=[DIR]' - Set path to ncurses includes [default=/usr/include]; make - sense only if --with-screen=ncurses is used; - for /usr/local/include/ncurses specify /usr/local/include. - -`--with-ncurses-libs=[DIR]' - Set path to ncurses library [default=/usr/lib]; make sense - only if --with-screen=ncurses is used. - -On systems that require unusual options for compilation or linking that -the package's `configure' script does not know about, you can give -`configure' initial values for variables by placing them in the command -line: - -./configure CC='gcc -traditional' LIBS=-lposix - -2. Type `make' to compile the package. - -3. Type `make install' to install programs, data files, and the -documentation. - -If you're on a GNU/Linux system, this will install the `cons.saver' -utility, which allows the Midnight Commander to save and restore the -console contents. This utility can be installed setuid root, but it's -only needed on systems where users cannot access /dev/vcsaN, where N is -the virtual console number, on which the uses is logged on. - - -Terminal database ------------------ - -There are many incomplete terminal databases out there, however, a -complete terminfo is bundled with ncurses. (It is simple to generate -the termcap database using the infocmp utility in ncurses). - -If you want to run mc on xterm/color_xterm/ansi_xterm (not rxvt), then -you might read contrib/README.xterm for further information. - - -Porting -------- - -Some less widespread UNIX systems like AIX or Solaris often come with their own -implementations of make and relevant parts of the toolchain necessary to build -mc. While autotools abstract a lot of platform specific issues, you might -encounter unresolved problems while using the native toolchain. - -Often, GNU tools are shipped as a part of an additional software collection -(/opt/freeware on AIX, or OpenCSW on Solaris). These tools are usually prefixed -with the letter `g', e.g. `gmake' instead of `make'. If you are not really -interested in building with the native toolchain, try to override tools causing -problems like this: - -./configure MAKE=gmake AR=gar -gmake diff --git a/recipes/wip/files/mc/source/Makefile.am b/recipes/wip/files/mc/source/Makefile.am deleted file mode 100644 index 7ae729c1a0..0000000000 --- a/recipes/wip/files/mc/source/Makefile.am +++ /dev/null @@ -1,136 +0,0 @@ -## Process this file with automake to create Makefile.in. -AUTOMAKE_OPTIONS = 1.14 - -SUBDIRS = po lib src doc contrib misc - -if HAVE_TESTS - SUBDIRS += tests -endif - -EXTRA_DIST = - -dist_noinst_SCRIPTS = \ - build-glib2.sh \ - version.sh - -dist_noinst_HEADERS = $(top_srcdir)/mc-version.h - -ACLOCAL_AMFLAGS = -I m4 - -CONFIG_STATUS_DEPENDENCIES = $(top_srcdir)/mc-version.h - -.PHONY: update-version \ - cppcheck \ - cppcheck-error \ - cppcheck-information \ - cppcheck-performance \ - cppcheck-portability \ - cppcheck-style \ - cppcheck-warning \ - cppcheck-all - - -update-version: - @if test -x $(top_srcdir)/version.sh; then \ - $(top_srcdir)/version.sh "$(top_srcdir)" 2>&1 >/dev/null; \ - else \ - if test ! -e $(top_srcdir)/mc-version.h; then \ - echo "File not found: $(top_srcdir)/version.sh"; \ - exit 1; \ - fi; \ - fi - -$(top_srcdir)/mc-version.h: update-version - -CPPCHECK_CMD = cppcheck \ - --inline-suppr \ - --error-exitcode=0 \ - -j 4 \ - --force \ - -I $(top_srcdir)/lib \ - --language=c \ - --std=c99 - -CPPCHECK_DIRS = \ - "$(top_srcdir)/lib" \ - "$(top_srcdir)/src" - -CPPCHECK_OUT_PREFIX = $(top_builddir)/cppcheck- - -CPPCHECK_OUT_EXT = log.txt - -CPPCHECK_SED_FILTER = \ - -e '/is reassigned a value before the old one has been used./d' \ - -e '/ Unmatched suppression: /d' \ - -e "/Skipping configuration '.*' since the value of '.*' is unknown./d" - -cppcheck: - $(CPPCHECK_CMD) --enable=all $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)all.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)all.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)all.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)all.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-all: cppcheck - -cppcheck-information: - $(CPPCHECK_CMD) --enable=information $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)information.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)information.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)information.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)all.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-performance: - $(CPPCHECK_CMD) --enable=performance $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)performance.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)performance.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)performance.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)performance.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-portability: - $(CPPCHECK_CMD) --enable=portability $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)portability.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)portability.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)portability.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)portability.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-style: - $(CPPCHECK_CMD) --enable=style $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)style.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)style.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)style.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)style.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-warning: - $(CPPCHECK_CMD) --enable=warning $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)warning.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)warning.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)warning.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)warning.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-unusedFunction: - $(CPPCHECK_CMD) --enable=unusedFunction $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)unusedFunction.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)unusedFunction.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)unusedFunction.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)unusedFunction.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-missingInclude: - $(CPPCHECK_CMD) --enable=missingInclude $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)missingInclude.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)missingInclude.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)missingInclude.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)missingInclude.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-split-all: \ - cppcheck-information \ - cppcheck-performance \ - cppcheck-portability \ - cppcheck-style \ - cppcheck-warning \ - cppcheck-unusedFunction \ - cppcheck-missingInclude - -INDENT_CMD = $(INDENT) \ - --gnu-style \ - --format-first-column-comments \ - --indent-level4 \ - --brace-indent0 \ - --line-length100 \ - --no-tabs \ - --blank-lines-after-procedures - -INDENT_DIRS = \ - "$(top_srcdir)/lib" \ - "$(top_srcdir)/src" \ - "$(top_srcdir)/tests" - -indent: - for directory in $(INDENT_DIRS); do \ - find "$${directory}" -name '*.[ch]' -print0 | \ - xargs -0 $(INDENT_CMD); \ - done diff --git a/recipes/wip/files/mc/source/Makefile.in b/recipes/wip/files/mc/source/Makefile.in deleted file mode 100644 index 8eda0b67e1..0000000000 --- a/recipes/wip/files/mc/source/Makefile.in +++ /dev/null @@ -1,1101 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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@ -@HAVE_TESTS_TRUE@am__append_1 = tests -subdir = . -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ - $(am__configure_deps) $(dist_noinst_SCRIPTS) \ - $(dist_noinst_HEADERS) $(am__DIST_COMMON) -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 = tests/src/vfs/extfs/helpers-list/data/config.sh -CONFIG_CLEAN_VPATH_FILES = -SCRIPTS = $(dist_noinst_SCRIPTS) -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 -HEADERS = $(dist_noinst_HEADERS) -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 distdir-am 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)` -DIST_SUBDIRS = po lib src doc contrib misc tests -am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ - $(top_srcdir)/config/compile $(top_srcdir)/config/config.guess \ - $(top_srcdir)/config/config.rpath \ - $(top_srcdir)/config/config.sub \ - $(top_srcdir)/config/install-sh $(top_srcdir)/config/ltmain.sh \ - $(top_srcdir)/config/missing \ - $(top_srcdir)/tests/src/vfs/extfs/helpers-list/data/config.sh.in \ - ABOUT-NLS AUTHORS COPYING ChangeLog INSTALL NEWS README \ - config/compile config/config.guess config/config.rpath \ - config/config.sub config/install-sh config/ltmain.sh \ - config/missing -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 -GZIP_ENV = --best -DIST_TARGETS = dist-gzip -# Exists only to be overridden by the user if desired. -AM_DISTCHECK_DVI_TARGET = dvi -distuninstallcheck_listfiles = find . -type f -print -am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ - | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' -distcleancheck_listfiles = find . -type f -print -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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 = 1.14 -SUBDIRS = po lib src doc contrib misc $(am__append_1) -EXTRA_DIST = -dist_noinst_SCRIPTS = \ - build-glib2.sh \ - version.sh - -dist_noinst_HEADERS = $(top_srcdir)/mc-version.h -ACLOCAL_AMFLAGS = -I m4 -CONFIG_STATUS_DEPENDENCIES = $(top_srcdir)/mc-version.h -CPPCHECK_CMD = cppcheck \ - --inline-suppr \ - --error-exitcode=0 \ - -j 4 \ - --force \ - -I $(top_srcdir)/lib \ - --language=c \ - --std=c99 - -CPPCHECK_DIRS = \ - "$(top_srcdir)/lib" \ - "$(top_srcdir)/src" - -CPPCHECK_OUT_PREFIX = $(top_builddir)/cppcheck- -CPPCHECK_OUT_EXT = log.txt -CPPCHECK_SED_FILTER = \ - -e '/is reassigned a value before the old one has been used./d' \ - -e '/ Unmatched suppression: /d' \ - -e "/Skipping configuration '.*' since the value of '.*' is unknown./d" - -INDENT_CMD = $(INDENT) \ - --gnu-style \ - --format-first-column-comments \ - --indent-level4 \ - --brace-indent0 \ - --line-length100 \ - --no-tabs \ - --blank-lines-after-procedures - -INDENT_DIRS = \ - "$(top_srcdir)/lib" \ - "$(top_srcdir)/src" \ - "$(top_srcdir)/tests" - -all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive - -.SUFFIXES: -am--refresh: Makefile - @: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ - $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ - && exit 0; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu 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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - $(SHELL) ./config.status --recheck - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - $(am__cd) $(srcdir) && $(AUTOCONF) -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) -$(am__aclocal_m4_deps): - -config.h: stamp-h1 - @test -f $@ || rm -f stamp-h1 - @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 - -stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status - @rm -f stamp-h1 - cd $(top_builddir) && $(SHELL) ./config.status config.h -$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) - rm -f stamp-h1 - touch $@ - -distclean-hdr: - -rm -f config.h stamp-h1 -tests/src/vfs/extfs/helpers-list/data/config.sh: $(top_builddir)/config.status $(top_srcdir)/tests/src/vfs/extfs/helpers-list/data/config.sh.in - cd $(top_builddir) && $(SHELL) ./config.status $@ - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -distclean-libtool: - -rm -f libtool config.lt - -# 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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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) | eval GZIP= gzip $(GZIP_ENV) -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-zstd: distdir - tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst - $(am__post_remove_distdir) - -dist-tarZ: distdir - @echo WARNING: "Support for distribution archives compressed with" \ - "legacy program 'compress' is deprecated." >&2 - @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z - $(am__post_remove_distdir) - -dist-shar: distdir - @echo WARNING: "Support for shar distribution archives is" \ - "deprecated." >&2 - @echo WARNING: "It will be removed altogether in Automake 2.0" >&2 - shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -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*) \ - eval GZIP= gzip $(GZIP_ENV) -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*) \ - eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\ - *.zip*) \ - unzip $(distdir).zip ;;\ - *.tar.zst*) \ - zstd -dc $(distdir).tar.zst | $(am__untar) ;;\ - esac - chmod -R a-w $(distdir) - chmod u+w $(distdir) - mkdir $(distdir)/_build $(distdir)/_build/sub $(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/sub \ - && ../../configure \ - $(AM_DISTCHECK_CONFIGURE_FLAGS) \ - $(DISTCHECK_CONFIGURE_FLAGS) \ - --srcdir=../.. --prefix="$$dc_install_base" \ - && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ - && $(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 $(SCRIPTS) $(HEADERS) config.h -installdirs: installdirs-recursive -installdirs-am: -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 clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f $(am__CONFIG_DISTCLEAN_FILES) - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-hdr \ - distclean-libtool distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: - -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-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 mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: - -.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 \ - clean-libtool cscope cscopelist-am ctags ctags-am dist \ - dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \ - dist-xz dist-zip dist-zstd distcheck distclean \ - distclean-generic distclean-hdr distclean-libtool \ - 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-pdf \ - install-pdf-am install-ps install-ps-am install-strip \ - installcheck installcheck-am installdirs installdirs-am \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -.PHONY: update-version \ - cppcheck \ - cppcheck-error \ - cppcheck-information \ - cppcheck-performance \ - cppcheck-portability \ - cppcheck-style \ - cppcheck-warning \ - cppcheck-all - -update-version: - @if test -x $(top_srcdir)/version.sh; then \ - $(top_srcdir)/version.sh "$(top_srcdir)" 2>&1 >/dev/null; \ - else \ - if test ! -e $(top_srcdir)/mc-version.h; then \ - echo "File not found: $(top_srcdir)/version.sh"; \ - exit 1; \ - fi; \ - fi - -$(top_srcdir)/mc-version.h: update-version - -cppcheck: - $(CPPCHECK_CMD) --enable=all $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)all.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)all.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)all.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)all.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-all: cppcheck - -cppcheck-information: - $(CPPCHECK_CMD) --enable=information $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)information.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)information.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)information.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)all.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-performance: - $(CPPCHECK_CMD) --enable=performance $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)performance.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)performance.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)performance.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)performance.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-portability: - $(CPPCHECK_CMD) --enable=portability $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)portability.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)portability.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)portability.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)portability.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-style: - $(CPPCHECK_CMD) --enable=style $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)style.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)style.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)style.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)style.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-warning: - $(CPPCHECK_CMD) --enable=warning $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)warning.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)warning.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)warning.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)warning.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-unusedFunction: - $(CPPCHECK_CMD) --enable=unusedFunction $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)unusedFunction.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)unusedFunction.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)unusedFunction.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)unusedFunction.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-missingInclude: - $(CPPCHECK_CMD) --enable=missingInclude $(CPPCHECK_DIRS) 2>$(CPPCHECK_OUT_PREFIX)missingInclude.$(CPPCHECK_OUT_EXT).tmp; - $(SED) $(CPPCHECK_SED_FILTER) $(CPPCHECK_OUT_PREFIX)missingInclude.$(CPPCHECK_OUT_EXT).tmp > $(CPPCHECK_OUT_PREFIX)missingInclude.$(CPPCHECK_OUT_EXT) - rm -f $(CPPCHECK_OUT_PREFIX)missingInclude.$(CPPCHECK_OUT_EXT).tmp - -cppcheck-split-all: \ - cppcheck-information \ - cppcheck-performance \ - cppcheck-portability \ - cppcheck-style \ - cppcheck-warning \ - cppcheck-unusedFunction \ - cppcheck-missingInclude - -indent: - for directory in $(INDENT_DIRS); do \ - find "$${directory}" -name '*.[ch]' -print0 | \ - xargs -0 $(INDENT_CMD); \ - done - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/NEWS b/recipes/wip/files/mc/source/NEWS deleted file mode 100644 index 741f2663f0..0000000000 --- a/recipes/wip/files/mc/source/NEWS +++ /dev/null @@ -1,1772 +0,0 @@ -Version 4.8.33 - -Starting with this release, we will be using language features that require a C99 compiler to build. - -- Core - - * Minimal version of Automake is 1.14 (#4604) - * Upgrade C standard to C99 (#4604) - * Support ksh variants as subshell (#3748) - * Improve fish 4.0 shell support (#4597) - * Add support for bash PROMPT_COMMAND being an array (#4599) - * Don't override ENV variable for ash/dash subshell (#4605) - * Don't disable verbose mode if tty baudrate can't be reliably determined (#2452) - * New keymap for vim users (#4588) - -- VFS - - * extfs vfs: chmod/chown inside extfs (e.g. zip archive) silently fails (#4629) - * Add embedded torrent viewer/vfs (#3100) - -- Misc - - * Code cleanup (#4572, #4593, #4595, #4598) - * Adjust mc-wrappers to work with the new MC_TMPDIR creation logic (#4575) - * Prefer console players for sound, images and video in non-graphical sessions (#4479, #4596) - * Support `TERM=xterm-clear` for FreeBSD users (#2633) - * mc.ext.ini: - - Support for Rust crates file format (#4609) - - Support for OpenEmbedded ipk archives (#4626) - * ext.d: select browser at runtime (#4615) - * Move CI from Travis to GitHub Actions (#4170, #3738, #4602) - -- Fixes - - * Segfault if filter makes file panel empty (#4600) - * Segfault in built-in help when going to the previous topic (#4627) - * Incorrect handling of ext2 attributes of a directory (#4590) - * Failed copy/move operations make ETA inaccurate (#3205, #4613, #4623) - * Hotlist: use after free (#4621) - * mc.ext.ini: typo for apt view command line (#4583) - * mcedit: visual glitches if built with aspell, but libraries not installed (#4576) - * mcedit: segfault on new file creation (#4580) - * mcedit: PageDown skips lines in edit window (#4617) - * mcedit: cursor jumps during PageDown in edit window (#4618) - * mvciew: false-positive regex search of BOL (#4587) - * mcdiff: segmentation fault on empty files merge (#4608) - * tar vfs: double free (#4616) - * sftpfs vfs: use after free (#4620) - * tests: fix charset-related code on non-glibc platforms (Alpine, Illumos) (#3972, #4495) - * tests: use weak symbols instead of symbol duplication to support non-GNU linkers / macOS (#4584, #3542) - - -Version 4.8.32 - -- Core - - * Tell the current directory to the terminal using OSC 7 sequence (so it can open new tabs there) (#3088) - * Preserve ext2fs attributes on copy/move operations (#4532) - * Change name of temporary directory: make it unique for each run (#4535) - * Hide password in file operation progress dialog (#4541) - * Support reget in file move operation (#4563) - * Implement nanosecond precision timestamps on non-Linux (macOS, BSD, AIX, Solaris) (#4563) - * Remove remaining mmap code to simplify maintenance (#3960) - -- VFS - - * extfs: support unrar-7 (#4518) - -- Editor - - * Improve syntax highlighting: - - C and C++ (MidnightCommander/mc#195, #4556) - -- Diff viewer - - * Add man page mcdiff.1 (#4224) - -- Misc - - * Code cleanup (#4524) - * New skins - - xoria256-thin, xoria256root-thin (#4530) - - modarcon16-defbg-thin, modarcon16-thin, modarcon16root-defbg-thin, modarcon16root-thin (#4530) - - modarin256-defbg-thin, modarin256-thin, modarin256root-defbg-thin, modarin256root-thin (#4530) - - julia256root (#4536) - * mc.ext.ini: clarify escaping of spaces and parenthesis (#4502) - -- Fixes - - * External editor does not work with arguments in $EDITOR (#4533) - * fish shell: strings " cd (printf '%b' ... " in history (#4521) - * Redundant back slashes for autocomplete (#4292) - * subshell: call execl with argv[0] that is not an actual path to Bash (#4549) - * mcedit: php.syntax: comment highlight from start of light only (#4519) - * mcedit: wrong replacement using regular expressions with begin or end of line (#4525, #4526) - * mcedit: losing column position when navigating up/down (MidnightCommander/mc#194) - * mcedit: macro deletes text (#4540) - * mcedit: macros are applied to the pasted text (#4562) - * extfs: iso9660: xorriso is slow to open an ISO image (#3570, #4567) - * extfs: u7z: wrong add of nested directories to archive (#4559) - * extfs: segfault on enter to deleted archive (#4560) - * tar: segfault on copy files from archive (#4561) - * man: typo (#4550) - - -Version 4.8.31 - -- Core - - * Minimal version of GLib is 2.32.0. - -- VFS - - * fish: drop support of native FISH server and protocol. Rename VFS to shell (#4232) - * extfs; - - uc1541 extfs: update up to 3.6 version (#4511) - - s3+: port to Python3 (#4324) - * Support for LZO/LZOP compression format (#4509) - -- Misc - - * Code clean up (#4490) - * Skins: add color for non-printable characters in editor (#4433) - -- Fixes - - * FTBFS on FreeBSD with ext2fs attribute support (#4493) - * Broken stickchars (-a) mode (#4498) - * Wrong timestamp after resuming of file copy operation (#4499) - * Editor: wrong deletion of marked column (#3761) - * Diff viewer: segfault when display of line numbers is enabled (#4500) - * Tar VFS: broken handling of hard links (#4494) - * Sftp VFS: failure establishing SSH session due hashed host names in ~/.ssh/known_hosts (#4506) - * Shell VFS: incorrect file names with cyrillic or diacritic symbols (#4507) - * mc.ext.ini: incorrect description of of how multiple sections and keys with same names are processed (#4497) - * mc.ext.ini: unescaped backslash \ is treated as invalid escape sequence in glib-2.77.3 and glib-2.79 (#4502) - * mc.ext.ini: file "Makefile.zip" is handled as Makefile not as zip-arhive (#4419) - - -Version 4.8.30 - -- Core - - * Support PCRE2 as search engine (via ----with-search-engine=pcre2) (#4450) - * Implement panelization buffers for both file panels (#4370) - -- VFS - - * tar: support extended headers (including long file names and sparse files) (#1952, #2201) - * extfs helpers: replace "perl -w" with "use warnings" (MidnightCommander/mc#174) - * extfs/patchfs: be more specific in error message (#4485) - -- Editor - - * Add syntax highlighting: - - Jenkinsfiles (#4469) - - B language (#4470) - * Improve syntax highlighting: - - ECMAScript (MidnightCommander/mc#172) - - ECMAScript in TypeScript (MidnightCommander/mc#172) - - use diff syntax highlighting for git commit messages (COMMIT_EDITMSG) (MidnightCommander/mc#85) - -- Misc - - * Code cleanup (#4426, #4438) - * Filehighlight: - - recognize vsix files as zip files (MidnightCommander/mc#171) - * Skin updates: - - julia256 (#4441, #4445) - -- Fixes - - * Usage of 'sed' in build system/makefiles is not portable (#4459, #4466) - * Unportable '$<' in Makefiles (#4460) - * FTBFS if ncurses used without --with-ncurses-includes= configure parameter (#4462) - * Ncurses library is duplicated in MCLIBS (#4463, #4465) - * FTBFS without ext2fs attributes support (#4464) - * Wrong sort order after swapping panels (#4432) - * Incorrect time delimiter in the copy/move progress window (#4437) - * Incorrect redraw of overlapped file panels (#4408) - * Subshell/Command line prompt is empty/missing (#3121) - * Find file: relative ignore directory is applied to the start search directory (#4235) - * Diff viewer: options are not applied on second run (#4486) - * mc.ext.ini: 'Edit' command from 'Default' section is ignored (#4434) - * mc.ext.ini: .md files are not recognized as Markdown ones by extension (#4444) - * mcedit: off-by-one error in paragraph formatting (#4446) - * ftp: incomplete file listing: block and character devices, pipes, sockets are missed (#4472) - * Various typos in the source code (MidnightCommander/mc#177, MidnightCommander/mc#178) - - -Version 4.8.29 - -- Core - - * Add more options for panel filter (#1373): - - "Files only" (#4209) - - "Case sensitive" (#4334) - - "Using shell patterns" - * Continue copy after interrupt (#4409) - * Restore menu accelerator for "Sort order": back to "S"; change menu accelerator for "SFTP link" to "N" (#4373) - * Add support for cross-compilation with PERL path different between --build and --host (#4399) - * Bootstrap with autotools providing direct support for Apple M1 - * Port mc.ext to INI format and rename to mc.ext.ini (#4141, #3742, #3191) - - Implement compound (AND) conditions (Type/Shell and Type/Regex pairs) to disambiguate overloaded extensions - - There is no fallback to previous mc.ext format - -- Editor - - * Change location of all user's syntax related stuff to ~/.local/share/mc/syntax/ directory (#4413) - * syntax/Syntax: document location of syntax files (#4320) - * Improvements of syntax highlighting: - - YAML: improve multiline blocks highliting (#4059) - * New syntax highlighting: - - Privoxy (https://www.privoxy.org) actions files (#4384) - - TOML (Tom's Obvious Minimal Language) (#4412) - -- Misc - - * Code cleanup (#4357, #4397, #4425) - * sqlite3 view: use 'immutable=1' URI parameter to prevent leaving wal/shm files after viewing sqlite database (#4369) - * Support of contour terminal emulator (https://github.com/contour-terminal/contour) (#4396) - * mc.ext.ini: clarify regex for makefiles (#4419) - * Remove empty hints translations by setting 5% threshold (#3608) - -- Fixes - - * Fail to build with only SFTP network VFS is enabled (#4420) - * Crash on quick view of archives (#4398) - * Wrong description of --enable-configure-args option (#4400) - * Wrong version sort (#4374) - * No subshell if subshell is initializing more than 1 second (#3121) - * Filter keyboard shortcut only affects left panel (#4383) - * File type check does not work with special character in filename (#4377) - * Select files keeping the right mouse button pressed doesn't select all files (#4381) - * Cannot scroll panel listing upwards using mouse (#4119) - * "Directory Compare" doesn't correct work with panelization (#3220) - * Wrong decompressing of zip files in quick view panel (#4404) - * mc.ext: 'include' keyword (for command class def) have no effect if it was defined before 'Include' keyword (for command def) (#2773) - * mcedit: infinite loop when deleting a macro (#4391) - * mcviewer: segfault when switching from raw to parsed mode and back (#4401) - * Broken handling of zip archives (#4368) - * FISH subshell: commands don't work after window resize (#4372) - * FTP VFS: doesn't reconnect to server after timeout (#3670) - * FISH VFS: cannot remove non-empty directory (#4364) - * EXTFS VFS: segfault if archive contains file(s) in the parent directory (#4422, #4427) - * Tests: variable redeclaration in filevercmp_test5 (#4358) - - -Version 4.8.28 - -- VFS - - * Remove SMB support (#1) - -- Editor - - * Add syntax highlighting: - - Ngspice/SPICE (http://ngspice.sourceforge.net/) (#4316, #4319) - - DOT/Graphviz (https://graphviz.org/doc/info/lang.html) (#4322) - -- Viewer - - * Support file/dir macros from mc.ect for standalone viewer (#4150) - -- Misc - - * Minimal version of "check" utility is 0.9.10. - * Code cleanup (#4270, #4330) - * Support Shift+Fn keys for KiTTY (#4325) - * Filehighlight: - - graphical formats: avif, jp2, jxl, heic, heif, psb, psd (#4328) - - Markdown (#4351) - -- Fixes - - * FTBFS with ncurses build with --disable-widec (#4200) - * There is no exit on Ubuntu PPC64 big endian (#3887) - * Segfault on change panel mode (#4323) - * Accelerator conflict in Left/Right menu (#4284) - * move a lot of files across filesystems is slow (#4287) - * mc.ext: wrong order of rules: general matches are made before more specific ones (#4273) - * mc.ext: compressed man pages are shown unformatted (#4272) - * ext.d/misc.sh: invoking /bin/cat on systems that have no /bin/cat (like NixOS) (#4298) - * mcedit: errors in syntax definitions (#4286) - * VFS: FISH: when uploading a symbolic link, it creates both the link and its target (#4281) - * VFS: SFTP: timestamps are not preserved for uploaded symlink (#4285) - * VFS: EXTFS: incorrect test of isoinfo (#4326) - * Typo in skin files (#3146) - - -Version 4.8.27 - -- Core - - * Minimal version of Autoconf is 2.64 (#3603) - * Minimal version of Automake is 1.12 (#3986) - * Minimal version of Gettext is 0.18.2 (#3603) - * Minimal version of libssh2 is 1.2.8 (#4259) - * Reimplement version detection (#3603, #4249) - * Significantly reduce rebuilt time after version change (#2252, #4266) - * Drop automatic migration of configuration from ~/.mc to XDG-based directories (#3682) - * zsh: support custom configuration file: ~/.local/share/mc/.zshrc (#4203) - * Widgets: implement WST_VISIBLE state to show/hide widgets (#2919) - * "Find File": add "Follow symlinks" option (#2020) - -- VFS - - * extfs: support unrar-6 (#4154) - * extfs: support official 7z binary (7zz) (#4239) - * ftpfs: apply file list parser from lftp project (#2841, #3174) - -- Editor - - * Word completion: get candidates from all open files (#4160) - * etags: get rid of hardcoded list length and window width (#4132) - * Update syntax files: - - Python (#4140) - * Add syntax highlighting: - - Verilog and SystemVerilog header files (#4215) - - JSON (#4250) - - openrc-run scripts (#4246) - -- Misc - - * Code clean up (#4179, #4173, #4269) - * Filehighlight of c++ and h++ files as sources (#4194) - * Filehighlight of JSON files as documents (#4250) - * Support of alacritty terminal emulator (https://github.com/alacritty/alacritty) (#4248) - * Support of foot terminal emulator (https://codeberg.org/dnkl/foot) (#4251) - * Support of (alt+)shift+arrow keys in st terminal emulator (st.suckless.org) (#4267) - * Mouse support in screen: don't check $DISPLAY variable (#4233) - * mc.ext: support fb2 e-books (#4167) - * ext.d: use mediainfo to view info about various media files (#4167) - * Remove OS/distro-specific package-related stuff from source tree (#4217) - -- Fixes - - * FTBFS against NCurses on OS X 10.9.5 (#4181) - * Segfault on dialog before panels get visible (#4244) - * Crash if shadow is out of screen (build against NCurses) (#4192) - * Crash in search (#4222) - * Crash on startup with enabled subshell in FreeBSD (workaround) (#4213) - * Hang on start randomly with zsh as subshell (#4198) - * If command line is invisible it's partially displayed (#4182) - * Broken handling of zip archives (#4180, #4183) - * Broken handling of jar files as zip archives (#4223) - * Timestamps of symlinks, sockets, fifos, etc are not preserved after copy/move (#3985) - * %view action in the user menu doesn't work on no-exec filesystem (#4242) - * Hardlinks are not colored by file type or extension (#3375) - * mcedit: silent macro makes terminal disrupted (#4171) - * mcedit: disrupting of TAGS file path (#4207) - * vfs: unable to browse compressed tar archives (#4191) - * sftpfs vfs: CVE-2021-36370: server fingerprint isn't verified (discovered by AUT-milCERT during an audit of open source software) (#4259) - * ftpfs vfs: month of file is always January (#4260) - * Tests: log files are written by libcheck and automake simultaneously (#3986) - - -Version 4.8.26 - -- Core - - * Support file names of any length (#4145) - * Implement persistent command line buffer for subshell (bash >= 4, zsh and fish are supported) (#4114, #4124, #4126) - * Implement shadows of dialog windows and menus (#4102) - * Allow running clipboard commands if DISPLAY is not set (#4133) - * Add support of "alacritty", "tmux", and "tmux-256color" terminals (#4149) - -- VFS - - * Support wim archive format (using wimtools (https://wimlib.net/)) (#4100) - * Support pak archive format (using unar (https://theunarchiver.com/)) (#4130) - -- Editor - - * Add Swift syntax highlighting (MidnightCommander/mc#159) - -- Misc - - * Code cleanup (#4103, #4127, #4131) - * ext.d/sound.sh: replace xmms with audacious (part of #4127) - * mc.ext: improve handling of compressed content (#4128, #2117) - * mc.ext: add support for OpenDocument flax xml formats: fodt, fods, fodp, fodg (#4157) - * Filehighlight fodg, fodp, fods, fodt, odg files as documents - * modarcon16 skin: make consistent with whitespaces (#4158) - -- Fixes - - * 0000 permissions are not preserved on copy/move file (#4155) - * Chattr dialog doesn't work with mouse (#4104) - * Wrong copy ETA displaying if "Follow links" option is set (#4101) - * C-i ("change panel" shortcut) has no effect (#4107) - * C-l ("refresh screen") and A-` ("switch screens") shortcuts have no effect (#4142, #4153) - * Cancel of history or completion window marks input lines as modified (#4152) - * Unexpected subshell execution at panel switch (#2110) - * Lock up after pressing Tab in subshell (#2269) - * tcsh: error: "The Commander can't change to the directory" (#4120) - * vfs: extfs: cannot handle files with name started with dash or space (#4077) - * vfs: hang on accessing files within a nested VFS for first 60 seconds (#4147) - * vfs: lose content of the current directory on a mounted CIFS share (on Linux >= 5.1) (#3987) - - -Version 4.8.25 - -- Core - - * Minimal version of GLib is 2.30.0 - * Avoid subshell warning for standalone mcedit/mcview/mcdiffview run from mc (#4056) - * Implement chattr command (change ext{2,3,4}fs extended attributes). Default shortcut is "C-x e" (#3847) - * Implement a WGroup widget -- a base class for widgets which contain other widgets (#2919, #4075) - * Implement key bindings for radiobuttons (#212) - -- VFS - - * RPM VFS improvements: - - Support weak dependency tags: ENHANCES, SUGGESTS, RECOMMENDS, SUPPLEMENTS (#4091) - -- Editor - - * Improvements of syntax highlighting: - - php (#4060) - - tcl: add shebangs with wish and tclsh (#4062) - - Cobol (#1987) - - Verilog/SystemVerilog (#4087) - * New syntax highlighting: - - Kotlin (#4088) - - ino (Arduino IDE and a number of other IDEs) (#4098) - -- Misc - - * Code cleanup (#4050, #4085) - * Add support for opus audio (#4061) - * mc-wrapper: don't cd to the same directory (#3355) - * Improve archive support: more binaries to view archive content (#4086) - - lha: jlha, lhasa - - arj: 7za - - cab: 7za - - zip; 7z - - zipx: 7za - - iso: 7za - * Clean up in video.sh handler (#4045) - - RealPlayer is a proprietary application which can't be installed in most distros and has long been abandoned. - - gtv hasn't been developed since 2003. - - xanim barely plays anything. - * Various fixups and updates of man page - -- Fixes - - * FTBFS on OSes w/o O_CLOEXEC (#4052) - * FTBFS with glib2 >= 2.63.3 (#4053) - * Undefined "__linux__" macro on non-Linux systems (#4058) - * Mouse is not handled with ncurses-6 (#3954) - * Mouse is not handled with S-Lang on some old terminal emulators (#4063) - * Terminal size is always 80x24 in subshell on Solaris 11.4 SPARC (#4099) - * Double clicking on empty area of file panel executes last item (#3722) - * Garbage in input line history (#4064) - * Speed of file copy is not displayed for single file (#4081) - * mcedit: blank screen with invisible error (#4057) - * mcedit: broken syntax highlighting for shell scripts (#4054) - * VFS: broken browsing of .deb packages (#4055) - * mc.lib installed twice (#4070) - - -Version 4.8.24 - -- Core - - * Drop bundled gettext (#3629) - * Implement the file edit and view history. Default shortcut is alt-shift-e (#2733) - * Enable subshell in standalone mceditor, mcviewer, and mcdiffviewer (#3380) - * Refactoring of SIGWINCH handling (#117, #4019) - * Prevent run/open files with double right click (#4016) - * Improve support of Windows 1251 encoding on Solaris (#3992) - * Support binary reproducible builds (via --disable-configure-args configure option) (#4031) - -- VFS - - * sftpfs: support keyboard interactive authentication (#3921) - * uc1541 extfs: update up to 3.3 version (#3936) - -- Editor - - * Syntax: - - add yabasic (Yet Another BASIC) syntax highlighting (#4005) - - improve YAML syntax highlighting (#4010) - - add "https://" to Debian sources.list syntax (#4018) - - add .desktop files (#4022) - - improve RPM spec file syntax highlighting (#4037) - - improve Debian sources.list syntax highlighting (#4041) - -- Misc - - * Code cleanup (#3997, #4030, #4038, #4039) - * menu.mc: handle symbolic links to compressed archives (#4009) - * File highlighting updates (#4015) - - part - partial files, e.g. used by many download managers ([temp]) - - apk - Android packages, deb - Debian packages ([archive]) - - ts - MPEG-TS streams ([media]) - * New skins: - - julia256: a dark skin with calm colors and good contrast. - -- Fixes - - * Compile failure on AIX 7.2 (#4033) - * Compile failure on OS X 10.9 (#4035) - * Enter key works as Down one in menu (#4006) - * Menubar: incorrect mouse click coordinate (#4013) - * Rotating dash generates way too much output (#3859) - * Totals aren't computed before move of a single directory (#4027) - * Editor: unusable dynamic paragraphing (#3996) - * VFS: iso9660 does not report listing errors (#3993) - * VFS: extfs: nested archives are not removed from temporary directory (#4000) - - -Version 4.8.23 - -- Core - - * Modify "File exists" query dialog (#3935): - - change layout - - rename "Update" button to "If older" - - add new "If smaller" button": overwrite file with smaller one - - add "Don't overwrite with zero length file" checkbox - * Speed up of large directory structures delete (#3958) - * Support key binding for menu (#212) - -- Editor - - * Expanded syntax highlighting rules (#3975): - - expanded file name regexp for sh.syntax - - use ini.syntax for systemd configuration files - * Syntax updates: - - shell (#3981) - - ebuild (#3988) - - RPM spec (#3991) - -- Viewer - - * Quick one-off backwards search with N. New action SearchOppositeContinue for key bind (default is shift-n) (#3452) - -- Misc - - * Code cleanup (#3955) - * Use Geeqie (a fork of GQview) as main image viewer, fallback to GQview (#3962) - * File highlighting updates (#3966) - - .go, .s: highlight as source - - .m4v: highlighting as media - * New skins: - - featured-plus: featured skin with alternative directory and file select/mark colors (#3973) - -- Fixes - - * Compilation fail on AIX (#3960) - * Incorrect file version sort (#3965, #3905) - * Garbage in the hardlink error creation message window (#3990) - * Cannot shell, or FTP, or SFTP link when the file panel is tree, or info, or quick view (#3948) - * Failed gpm connect attempt ... for vc /dev/tty0 (#3208, #3614) - * Incorrect include/editor order in mc.ext (#3965) - * mcedit: incorrect C/C++ syntax highlighting in some cases (#3487) - * Unknown type name 'sighandler_t' on Illumos (#3971) - - -Version 4.8.22 - -- Core - - * Support BTRFS's file clone operation (#1983) - * Find file: show pattern and content in the results window title (#3453) - * Find file: remember state (empty or not) of Content field (#3924) - * Improve support IBM i (#3927) - * Improve handling of hard link creation errors (#3678) - * Support user-defined prompt in the Fish subshell (#3944) - -- VFS - - * sftp: preserve atime and mtime (#3917) - -- Editor - - * man page cleanup (#3918) - * syntax: - - PHP - highlight keyword 'null' (#3920) - - Meson - initial implementation (#3940) - -- Misc - - * ext.d: use MPV as a fallback for mplayer -identify (#3919) - * ext.d: improve recognition of MS Office formats (#3929) - * Code cleanup (#3915) - * Cleanup hint files - -- Fixes - - * Won't compile for Apple (#3930) - * "Cannot create target file" when target has backslash space in the name (#3923) - * Quiet single file overwrite (#3908) - * Show error message for each not-installed program when view documents in MS Word and Excel formats (#3926) - * Crash when trying some sftp connections (#3937) - * Crash when return to filemanager from subshell (#3943) - - -Version 4.8.21 - -- Core - - * Cancel Chmod/Chown/Advanced chown operation for large group of files when operation is not permitted (#3850) - * Mouse support in the "Advanced chown" dialog window (#3148) - * File highlighting by extension is case insensitive by default (#1620) - * Safe file overwrite (#3913) - -- VFS - - * Support zstd compression format (#3906) - -- Editor - - * Syntax: - - Rust support (#3884) - - JavaScript modules support (#3890) - - Improve Markdown support (#3893) - -- Misc - - * Add JavaScript module support to `filehighlight.ini` (MidnightCommander/mc#132) - * Add Excel xlsx file format support to `mc.ext.in` (MidnightCommander/mc#135) - * i18n of argument type names in --help blocks (#3879) - * Code cleanup: (#3857, #3914) - -- Fixes - - * Fail to link to ncurses built as two libraries: ncurses+tinfo (#3880) - * Garbage in displaying of summary of file sizes for selected files (#3883) - * "Compute totals" unnecessarily done for moves (#3149, #3908) - * mc.ext: allow Java class files to be viewed even if JAD isn't on PATH (MidnightCommander/mc#134) - * mcedit: broken extended key mode (#3897) - * mcedit doesn't save all opened files (#3898) - * extfs: sftps: -31 SFTP Protocol Error when transferring file (#3406) - * extfs: rpm: truncated script content in the viewer (#3865) - * extfs: rpm helper misses CONFLICTS field (#3789) - - -Version 4.8.20 - -- Core - - * Rename key bindings: - - [main].PanelListingSwitch -> [panel].CycleListingFormat - - [main].PanelListingChange -> [main].SetupListingFormat - * Speed up of UTF-8 normalization for frequent cases (#3616) - -- VFS - - * extfs helpers tester: - - diff of failed tests is now included in output to ease bug reporting (#3784) - -- Editor - - * Syntax: - - ES2015 support (#3793) - - TypeScript support (#3794) - - Ada 95 updates (#3804) - - Apache Hive QL support (#3828) - - SQL & PHP keyword updates (MidnightCommander/mc#129) - - Simplification of case insensitive file name patterns in /usr/share/mc/syntax/Syntax file (#3829) - - Markdown (initial support) (#3864) - - Protocol Buffers and gRPC support (#3868) - * Add %c (cursor offset from BOF) support for user menu macros (#3867) - -- Misc - - * Unify curses initialization for various curses implementations (#3697) - * Highlight txz extension as archive like tgz, etc. (#3782) - * Add new media extensions to `filehighlight.ini` (#3834) - -- Fixes - - * Wrong --help message for mcview, mcedit and mcdiff (#3805) - * Compression from menu broken due to bad quoting (#3840) - * `--with-homedir` gives "yes" as config directory (#3836) - * External panelize: opening a file with an absolute path fails (#2942) - * Filter isn't cleared when entering empty string (#3813) - * Panelization is not kept while switching panel listing mode (#3810) - * Cannot tab out of a QuickView panel (#3815) - * Cannot use the F10 key in a QuickView panel (#3816) - * Wrong INPUT_COMPLETE_CD flag handling in the QuickDialog engine (#3870) - * mcview: file interpreted as latin1 instead of utf8 (#3783) - * mcview: incomplete read of filtering data (#3817) - * mcview: search doesn't grow file as much as needed (#3819, #3855) - * mcview: goto doesn't grow file as much as needed (#3826) - * mcview: quick view panel: crash on slow startup while switching panel mode (#3846) - * mcedit: fix broken encoding into UTF-8 for 8-bit displays (#3843) - * mcedit: incorrect %f macro substitution in the user menu (#3861) - * man pages: wrong paths of mc.hint and mc.hlp (#3806) - * subshell: fix broken tcsh 6.20+ cd escaping (#3852) - * VFS: incremental tar doesn't contain empty directories (#2297) - * VFS: incremental tar: wrong directories owner for tar --numeric-owner -g (#3709) - * VFS: timestamps not being preserved due to uninitialized struct stat st_[acm]tim.tv_nsec (#3821) - * VFS: ftp: can't retrieve password from .netrc when user is in URL (#3869) - * VFS: tests: locale issue causing helpers using 'sort' to fail (#3787) - * VFS: tests: unportable 'echo' use causing one rpm helper test to fail (#3786) - * Spelling errors in the manual page (#3839) - - -Version 4.8.19 - -- Core - - * Replace $MC_HOME with $MC_PROFILE_ROOT (#3684) - * Allow rebind TAB key to change panel (#3672) - * Support for True Color (16 millions colors) (#3145) - * Color aliases in skin files (#3711) - -- VFS - - * Support timestamps with nanosecond precision for copy/move operations (#3575) - * Introduce EXTFS helpers tester (#3730, #3744, #3752, #3753, #3751) - * Teach u7z to parse archive listings w/o sizes and/or dates (#2707) - * Teach rpm helper about transaction scripts (#3750) - * Fix hp48, uace & uarc extfs which used an obsolete date format (#3729, #3747) - -- Editor - - * Syntax: - - updates of HTML and ebuild highlighting - - highlight *.t (Perl test) files as Perl scripts - - disassociate .cl file extension from LISP syntax (#3691) - * Add syntax highlighting: - - OpenCL (#3690) - - OpenShadingLanguage (#3762) - - R - - YAML (#3293) - -- Misc - - * Code cleanup (#3693, #3703, #3721, #3763) - * Add true color skins: 'Four seasons' (#3724) - * Activate `--enable-tests` by default if `check` is found (#3708) - * Added new skin: YADT (MidnightCommander/mc#115) - -- Fixes - - * Segfault on switching left panel to Info (#3700) - * Broken compatibility with ncurses (#3697) - * Setting MC_HOME makes mc ignore ~/.bashrc (#3684) - * mc_tmpdir() use a buffer of only 64 characters (#3736) - * Some bugs in the parsing of hexadecimal search patterns (#3694) - * Hexadecimal search fails on binary data (#3589) - * Broken file list resorting on double click on panel header line (#3715) - * Wrong dialog resizing and positioning (#3714, #3723) - * Widget's 'disabled' status is not toggled immediately (#3716) - * Last item of 'Options/Layout/Horizontal' radiobuttons remains highlighted (#3717) - * 'Options/Layout/Equal split' checkbox gets reverted (#3718) - * Panels: cannot show more than one "column" in user defined listing mode (#3757) - * Mix of MSG_NOTIFY and MSG_FOCUS messages (#3731) - * skins: 'window-state-char' and 'window-close-char' are parsed as colors (#3710) - * Pressing and in the hotlist dialog doesn't refresh it (#3775) - * mcview: an error message about bad regexp isn't shown (#3720) - * mcedit: fix etags filenames parsing (#3698) - * mcedit: fix mouse active area for maximize / close buttons (#3774) - * mcedit: frames (MDI interface) don't reflect the focus state (#3766) - * mcedit: frames (MDI interface) sometimes obscure the buttonbar (#3760) - * mcedit doesn't show search error messages when searching backwards (#3735) - * help viewer: tab characters handled incorrectly (#3754) - * VFS: incorrect zoo archive listing (#3696) - * VFS: segfault in VFSs not setting block size in stat (#3749) - - -Version 4.8.18 - -- Core - - * Alt-Enter, Ctrl-Enter and Ctrl-Shift-Enter shortcuts are bindable in file manager (#3075) - * Internals: - - Refactoring of widget subsystem (#2919, #3632) - -- Editor - - * Add syntax highlighting: - - GLSL (#3683) - - CUDA (#3686) - -- Misc - - * Code cleanup (#3641, #3652) - -- Fixes - - * Build failure on FreeBSD (#3643) - * Incompatibility with NetBSD curses (#3665) - * Memory leaks (#3637) - * Subshell output lost on window resize under tmux, GNU screen (#3639) - * --with-subshell=optional does not work (#3642) - * Backward search is not interruptible (#3648) - * "Output lines" has no effect (#3655) - * Wrong handling of mouse clicks in long listing mode (#3661) - * Panelize resets marks on marked files in many cases (#3663) - * Cannot change directory in the active panel in some cases (#3669) - * Filtered View doesn't work (#3646, #3660) - * mcedit: don't kill bookmarks when open file from "Find File" dialog (#3668) - * man pages use "the MC" instead of "MC" (#3644) - - -Version 4.8.17 - -- Core - - * Minimal version of Gettext is 0.18.1 (#1885) - * Optimization of copy/move operations (use adaptive buffer as in coreutils) (#2193) - * Recognize csh as tcsh (#2742) - * Centered scrolling of file panel (#3130) - * Internals: - - Switch to new high-level mouse API (#3571) - -- VFS - - * FISH helpers: remove executable bit (#3610) - -- Editor - - * Improvements of syntax highlighting: - - F90 (#3618) - - Java (MidnightCommander/mc#95) - -- Misc - - * Code cleanup (#3598, #3607) - * Install mc.keymap as a symlink to mc.default.keymap (#3609) - * File highlight: add more common file formats - -- Fixes - - * Segfault due to incorrect value of SHELL environment variable (#3606) - * Segfault when copying files under FreeBSD 9.3 (#3617) - * Segfault when entering into some cpio archives (#3621) - * Subshell output lost on window resize under tmux, GNU screen (#3639) - * Subshell cursor position lost after window resizing (#3640) - * Listbox no longer scrolls when dragging outside widget (#3559) - * VFS: extfs: incorrect date parsing in unzip (#3622) - * VFS: extfs: buffer overflow (#3605) - * VFS: patchfs: syntax error (#3620) - * VFS: fish: mistakes in ls Perl helper (#3611) - - -Version 4.8.16 - -- Core - - * Support for ash + bugfixes for bash, fish (#2742) - * Find file: empty file name matches any file name (#3593) - * Find file: empty value of "Content" is used instead of "Search for content" checkbox to disable search for content (#3594) - * Listbox: don't wraparound on mouse scroll (#3554) - * Internals: - - Listbox: various fixups (#3569: #3562, #3563, #3565, #3161) - - Split MSG_ACTION into MSG_ACTION and MSG_NOTIFY (#3566) - -- VFS - - * Support lzip compression format (#2673, #1541) - * Support lz4 compression format (#3523) - * patchfs: support xz compression (#3443) - * Update uc1541 version (#3527) - * Add mc.ext patterns for initramfs / initrd (#3115) - -- Editor - - * Add golang syntax (MidnightCommander/mc#84) - * Update Puppet syntax (MidnightCommander/mc#86) - -- Misc - - * Code cleanup (#3555, #3547, #3587) - * Better subshell documentation (#3556) - * Fixes to the English man pages by Denys Vlasenko - -- Fixes - - * Insufficient quoting in `mc.menu` (#2947) - * Broken ./configure --without-internal-edit (#3601) - * Memory leaks (#3547, #3561, #3567, #3572) - * No preallocation if appending during file copy (#3577) - * Cannot set mini-format for "brief" listing type (#3588) - * Info panel: incorrect inode information in some cases (#3214) - * Info panel: wrong device name with symbolic link (#3412) - * Info panel: buffer overflow (#3582) - * Regression: match filename, not full path in mc.ext (#3578) - * Broken case insensitive search in non-unicode locale (#3491) - * Error message prefixed with no sense "0:" (#3269) - * mcedit: buffer overflow (#3579) - * mcedit: "Lower case selection" command in User Menu (#3586) - * mcedit: close on ctrl-g (#3557) - * mcview: "Not found" result isn't reported in some cases (#3543) - * VFS: isofs doesn't show .dotfiles (#3537) - * VFS: isofs: cannot copy file from iso when Joliet without RockRidge is used (#2851) - * VFS: extfs/unzip: enter into zip file fails with "inconsistent extfs archive" (#3433) - * VFS: SFTP: various bugs (#3581) - * VFS: FISH: provide major/minor info for block/char devices (#3599) - * Bashism in gitfs+ extfs helper (#3379) - * Non-portable invocation of man (#3509) - * mc-wrapper leaves MC_USER set (#3550) - * Broken silent opening of files in background (#3574) - * Run `identify` on JPEGs even if `exif` is not installed (#3568) - - -Version 4.8.15 - -- Core - - * Minimal version of GLib is 2.26.0 - * Use the PATH environment variable to search for the executable when opening pipe (#3444) - * Support more than 2 (up to 9) columns in file panel in brief mode (#3212) - * Clarify file sorting in "Unsorted" mode (#3496) - * WGroupbox: respect dialog's colors (#3468) - * Highlight find file's result in internal viewer (#3530) - -- VFS - - * s3 extfs vfs: bugfixes and improvements (#3470, #3502) - -- Editor - - * Add hidden option to choose full or base file name in the status line (#3445) - * Improvements of syntax highlighting: - - Lua (#3471) - - PKGBUILD (#3484) - -- Misc - - * Text alignment in Info panel (#3155) - * Select of menu file edit: change default button to "User" (#3493) - * Recognize .gmo files as well as .mo ones (#3422) - * Fix mc.pot comment tripping up Transifex and unportable inplace sed (#3479) - * A lot of code clean up (#3420, #3424, #3426, #3427, #3428, #3429, #3430, #3431, #3434, #3435, #3437, #3463, #3464, #3465, #3466, #3467, #3494, #3495, #3539) - * Documentation updates: - - Spanish man and help: Diff Viewer section and minor fixes (#3477) - - VFS garbage collection (#3472) - -- Fixes - - * Various memory leaks (#3438, #3439, #3440, #3457, #3458, #3459, #3460, #3461, #3462, #3475, #3520, #3521, #3522) - * Linux kernel-specific segfault on startup (#3441) - * Lost of Panelize contents in some cases (#3032, #3489, #3498, #3507) - * Wrong highlight of search result in case of "Regular expression" and "Whole words" (#3524) - * "Whole words" search works only in Normal mode (#3525) - * View find results doesn't jump to match line if file is too short to scroll page (#3530) - * SFTP VFS: segfault (#3456) - * Segfault in "Find file" due to invalid UTF-8 sequences (#3449) - * Bash variable 'PROMPT_COMMAND' in pantheon-terminal (#3534) - - -Version 4.8.14 - -- Core - - * Minimal version of GLib is 2.14.0 - * Add new panel binding "SelectExt" to select/unselect files with the same extension as the current file (#3228) - * Speed up of directory size calculation (#3247) - * Support of italic text (#3065) - -- Editor - - * New syntax highlighting support: - - puppet (#3266) - -- Viewer - - * Rewrite mcview's rendering and scrolling (#3250, #3256) - - no more partial lines at the top and failure to scroll when Up or Down is pressed; - - better handling of CJK characters; - - handle combining accents; - - improved nroff support; - - more conventional scrolling behavior at the end of the file. - * Use VIEW_SELECTED_COLOR in plain mode (#3405) - * In QuickView panel, don't pass any chars to command line to avoid unexpected command execution (#3253) - -- Misc - - * Code cleanup (#3265, #3262) - * Bind poedit to Edit action for .po files (#3287) - * Better grammar mcedit user menu (#3246) - -- Fixes - - * Fail to build against musl libc (#3267) - * Error compiling with glib 2.20.3 (#3333) - * Overwrite of the PROMPT_COMMAND bash variable (#2027) - * contrib/*.?sh are not recreated after rerun of configure (#3181) - * File rename handles zero-length substitutions incorrectly (#2952) - * Lose files on "Skip" when "Cannot preallocate space for target file" (#3297) - * Info panel can't obtain file system statistics on Solaris (#3277) - * "Shell patterns" broken beyond repair (#2309) - * File selection by patterns uses bytes instead of unicode characters (#2743) - * Copy files doesn't work as expected, when copying to a directory with the special symbol in its name (#3235) - * Wrong order of old_colors table items (#3404) - * Input line: Alt+Backspace on one-letter word erases too much (#3390) - * "Directory scanning" window is too narrow (#3162) - * No Help for User Menu (#3409) - * mcedit: paste from clipboard does not work (#3339) - * mcviewer: hang when viewing broken man page (#2966) - * mcview hex: incorrect highlight when search string not found (#3263) - * mcview hex edit: UTF-8 chars are not updated (#3259) - * mcview hex edit: can't enter certain UTF-8 characters (#3260) - * mcview hex edit: CJK overflow (#3261) - * mcedit: status line doesn't show full path to file (#3285) - * Freeze when copying from one FTP location to another (#358) - - -Version 4.8.13 - -- Core - - * New engine of user-friendly interruption of long-time operations (#2136) - -- Editor - - * Improvements of syntax highlighting: - - CMake (#3216) - - PHP (#3230) - * Translate language names in the spelling assistant dialogue (#3233) - -- Viewer - - * Add separate normal(default) colour pair for viewer (#3204) - * Dealing with utf-8 man pages in view/open (#1539) - * "Goto line" is 1-based now (#3245) - -- Misc - - * Code cleanup (#3189, #3223, #3242) - * Add new skins: gray-green-purple256 and gray-orange-blue256 (#3190) - -- Fixes - - * First Backspace/Delete is ignored after mouse click in an input widget (#3225) - * Recursive find file doesn't work on Samba share (#3097) - * Recursive find file doesn't work on Windows NFS share (#3202) - * Incorrect file counter in move operation (#3196, #3209) - * "Directory scanning" window is too narrow (#3162) - * Colon is not recognized inside escape seq in prompt (#3241) - * Quick view doesn't grab focus on mouse click (#3251) - * fish subshell: overridden prompt (#3232, #3237) - * mcviewer: broken switch between raw and parse modes (#3219) - * mcviewer: incorrect percentage in mcview hex mode (#3258) - * RAR VFS incorrectly recognizes UnRAR version (#3240) - * viewbold and viewselected are missing from some skins (#3244) - * Incorrect encoding name for manual page (#3239) - * "User menu -> View manual page" doesn't do coloring (#3243) - - -Version 4.8.12 - -- Core - - * Speed up of file find (#2290) - * If cwd is a symlink it is kept at startup (#3093) - * Improve support of Zsh (#3121, #3124, #3125, #3177) - * Launch external editor/viewer without passing line number (#3117) - * Exit without confirmation by default (#3132) - * Simple user-friendly skin selector (#2165, #3178) - * Use Joliet and RockRidge in ISO9660 image view action (#3187) - -- VFS - - * Use .zip extension as preferred way to recognize ZIP archives (#2857) - -- Editor - - * Configurable selection reset on CK_Store (#3111) - -- Misc - - * Code cleanup (#3113, #3151) - * Adjust script permissions to installed ones (#2274) - * Fix name of FSF in add source files (#3167) - * Skin cleanups (#3180, #3184) - * Do not consider "String not found" message as error (#3179) - -- Fixes - - * Broken build with NCurses (#3114) - * Incorrect tilde expansion in copy/rename/move dialog (#3131) - * Advanced chown: Escape on user list accepts value (#3150) - * Toggling hidden files using mouse doesn't update the other panel (#3156) - * Question mark in delete confirmation is on its own line (#3123) - * Popup dialogs wander upwards upon resize (#3173) - * Keypad '*' doesn't work with numlock off (#3133) - * Some inconsistencies in "Learn keys" UI (#3134) - * Unconventional behavior of "Display bits" dialog (#3152) - * Shift-Fn keys don't work in 256-color mode of tmux (#2978) - * mcedit: format paragraph produces inconsistent wrapping (#3119) - * mcedit: file out-of-date check on saving is botched (#3142) - * mcedit: 1st line is shifted after paragraph format (#1666) - * mcedit: trailing newline check applied too early when exiting (#3140) - * Inconsistency of the arrow's direction in the panel header line across skins (#3157) - * Possible segfault while passing messages to widgets (#3116) - * Possible segfault when freeing a VFS (#3116) - * Segfault in cpio VFS while reading corrupted RPM (#3116) - * Segfault in sftpfs VFS when trying to view a file (#3176) - * Incorrect handling of filenames with unrar v5 (#3073) - * FISH VFS: remote panel confused by filenames with '%' (#2983) - * iso9660: xorriso shows only one depth (#3122) - * Nicedark skin looks bad on black-on-white terminals (#3154) - * Incorrect definition of "topmiddle" and "bottommiddle" characters (#3183) - - -Version 4.8.11 - -- Core - - * Live update of panels size when editing layout (#3060) - * Support "Compute totals" option in move file operation (#2075) - -- VFS - - * rpm extfs - - show dependency version (#2812) - - support tar payload (#3064) - - improve support for EPOCH tag (#1588) - - add support for PREINPROG/POSTINPROG/PREUNPROG/POSTUNPROG, VERIFYSCRIPTPROG and TRIGGERSCRIPTS/TRIGGERSCRIPTPROG tags (#1588) - -- Editor - - * Support "bracketed paste mode" of xterm (#2661) - * Clarify Java syntax highlighting (#3057) - -- Misc - - * Print warnings about unknown '--with-' / '--enable-' configure options (#3029) - * Code cleanup and refactoring (#3051, #3066) - -- Fixes - - * FTBFS on GNU Hurd (#3053, #3071) - * Segfault while moving files (#3059, #3105) - * Broken handling of mc command line arguments (#3047) - * Copy/move doesn't work if num_history_items_recorded=0 (#3076) - * No subdir path completion in current dir, if stub is not starting with './' (#3018) - * Deprecated "find -perm +xxx" syntax is used (#3089) - * Home, End, Shift-Fn keys don't work in tmux (#2978) - * Improper [en|dis]abling of layout dialog split adjustment buttons (#3061) - * Bogus strings in 'Confirmation' config dialog (#2271) - * "Configure options" first entry not highlighted (#3084) - * "Setup saved to ~/.config/mc/ini" message is misleading (#3096) - * F3 doesn't work on .so files in FreeBSD 9.x (#3101) - * Typo in mc.lib: "less=%filename +%linenog" instead of "+%lineno" (part of #3044) - * Wrong order of filename and line number for external editor (part of #3044) - * mcedit: tabs are lost when text is pasted (#1797 as part of #2661) - * mcedit: question on large file treats Escape as Yes (#3107) - * Broken case-sensitive search in editor/viewer/diffviewer (#3069) - * Changes to files in nested .zip archives are lost (#3070) - * Incorrect handling of filenames with spaces with unrar v5 (#3073) - * iso9660 VFS: filenames truncating in ISO file listing (#3091) - * vfs_path_from_str_flags() doesn't support VPF_STRIP_HOME (#3098) - * Bright colors are used as background colors in 16-color skins (#3050) - * Various defects in documentation (#3052, #3092) - - -Version 4.8.10 - -- Core - - * Do not link GModule if it is not required (save space on embedded systems) (#2995) - * Behavior of the 'Right' key in the 'Directory hotlist' was changed: now 'Right' key is used only to enter into the group (#3045) - -- Misc - - * Code cleanup (#3035) - -- Fixes - - * Build failure on Cygwin (#3041) - * Broken NCurses detection (#3043) - * Broken handling of mc command line arguments (#3047) - * Cannot enter into zip archive in tar one (#3034) - * Cannot open some jar files - * mcedit: file descriptor leak (#3040) - * mcedit: paragraph format doesn't respect multibyte characters (#2713) - * Crash after entering a wrong SFTP password (#3036) - - -Version 4.8.9 - -- VFS - - * extfs: support unrar-5 (#3015) - * extfs: use xorriso (if exists) for writing into ISO images (#3027) - -- Editor - - * Support unlimited file size (#1743) - -- Misc - - * Lot of code cleanups (#2990, #2071, #2164, #2998, #3003, #3005, #3022) - * Display additional info while viewing (by F3) *.iso files (#2006) - * New skins: - - modarin256: set of 256-color skins from Oliver Lange (#2737) - -- Fixes - - * Fail to link if system lib does not contain strverscmp (#2992) - * Segfault when mc's temporary directory doesn't belong to the correct user (#3021) - * Race condition when creating temporary directory (#3025) - * Mouse doesn't work in screen and tmux (#3011) - * Incorrect file size in copy/move overwrite query dialog (#3000) - * Garbage in subshell prompt (#3001) - * Incorrect WLabel redraw after text change (#2991) - * Find File: "All charsets" options don't work (#3026) - * When an unknown key is pressed, it is interpreted as garbage (#2988) - * Segfault on creating new file in external editor (#3020) - * Rotating dash is not removed when mc finishes reading the directory (#2163) - * mcedit: word completion failed if word to be completed is begun from begin of file (#2245) - * mcview: broken switch between raw and parse modes (#2968) - * Hex viewer: continue search doesn't work (#2706) - * sftpfs: broken SSH aliases (#2923) - - -Version 4.8.8 - -- Core - - * Make copy/move progress dialog window wider up to 2/3 of screen width (#2076) - * Ask file name before create new file in editor (#2585) - * Support newer extended mouse protocol SGR-1006 instead of URXVT-1015 (#2956) - * Allow skip directory scanning before file operation. Print directory count and size in addition to directory name (#2101) - * Add jump support to target line in some external editors and viewers (#2206) - -- Editor - - * Update syntax highlighting: - - Jal programming language (#2855) - - gplink configuration files (.lkr extension) (#2855) - - Makefile with .mak extension (#2896) - - ZSH configuration files (#2950) - - Fortran (#2962) - -- Misc - - * Code cleanup (#2944, #2954) - * Report real compiler in MC_CHECK_ONE_CFLAG instead of 'gcc' - * Hints files now translated via Transifex (#2980) - -- Fixes - - * Segfault in file operation due to unhandled regexp error (#2493) - * Tab completion vs. spaces and escaping (#55)\ - * Special chars are not escaped in autocompletion of filenames (#2626) - * Buttons in the 'Directory hotlist' window are placed incorrectly (#2958) - * Mouse doesn't select text in subshell in native console (#2964) - * Mouse click below non-droppeddown menubar activates menu box (#2971) - * Insufficient quoting and wrong message in user menu (#2947) - * mcedit: floating point exception (division by zero) (#2953) - * mcedit: broken autocompletion (#2957) - * mcview: broken magic mode (#2976) - * Broken opening of .war archives (#2974) - - -Version 4.8.7 - -- Core - - * Minimal GLib version is 2.12.0 - * Implementation of suspend/resume in copy/move file operations (#2111) - * Start of widget subsystem reimplementation (#2919) - -- VFS - - * uc1541 extfs plug-in updated up to version 2.5 (#2935) - -- Editor - - * Reset selection after text paste (only in non-persistent selection mode) (#2660) - * Don't indent blank lines (#303). - * Add .psgi as Perl syntax highlighting (#2912) - * Place cursor after inserted chars (#319) - * Add option in ini file to save spelling language (spell_language=NONE for disable aspell support) (#2914) - -- Misc - - * Code cleanup (#2888, #1950) - * Minimal "check" utility version is 0.9.8 - * Remove the empty contrib/dist/debian/ since it maintained separately in Debian (#2871) - * mc.ext updates: - - add support of SVG images (#2895) - - add support of .asm file extension (#2892) - - add support of .hh file extension (#2892) - - all file extension for source files now are case insensitive (#2892) - - add support of JNG and MNG images (#2893) - - add support of Gnumeric's spreadsheets (#2894) - - add support of .war archives (#2891) - - make a choice between arj and unarj archivers (#2890) - - make a choice between 7z and 7za archivers (#2890) - - add support of ape, aac and wvm4a media formats (#2767) - - add support of cbr and cbz comic books (#2739) - - add support of epub e-book format (#2739) - - add support of PAR archives (#2739) - - use libreoffice instead of ooffice, if found, to open ODT files (#2723) - - use dvicat if dvi2tty not found to view DVI files (#1686) - - use 'see' utility as default pdf viewer, if found (#1686) - - use 'see' utility to view images in console (#1686) - * Highlight OGV files as media (#2934) - * Added new translations: - - Persian (fa) - - Croatian (hr) - -- Fixes - - * Build failure on Cygwin (#2917) - * Fail to check ncurses library if --with-ncurses-inc and --with-ncurses-libs options are used (#2926) - * Crash on Solaris while trying to copy a file (#2906) - * CVE-2012-4463: Does not sanitize MC_EXT_SELECTED variable properly (#2913) - * Attributes of existing directories are never preserved when copying (#2924) - * Broken path completion on paths starting with ~/ (#2898) - * Terminal settings are not changed when window is resized (#2198) - * Enter into symlink to compressed patch shows empty patch (#2910) - * Test failure on Cygwin due to incorrect linkage flag (#2918) - * Non-portable test (#2883) - - -Version 4.8.6 - -- Fixes - - * mcedit: two-columns extra offset of cursor after tab character (#2881) - * diffviewer: cannot open file if name contains '$' (#2873) - - -Version 4.8.5 - -- Core - - * Implemented case-insensitive patterns in mc.ext bindings (#2250) - -- Editor - - * Code refactoring and cleanup (#1977) - -- Diff viewer - - * Bidirectional merge (F5 merge left-to-right, F15 - merge right-to-left) (#2863) - -- Misc - - * Syntax highlighting news and updates: - - update assembler.syntax: x86 AMD64 registers highlighting (#2542) - - new cmake.syntax: preliminary and incomplete syntax file for CMakeLists.txt files (#2084) - - new dlink.syntax: syntax highlighting for D-Link switches command set (#2649) - - update properties.syntax: more nice look-and-feel (#1869) - * mc.ext enhancement (#2103): - - use chm_http text-mode handler for CHM files - - play sounds only from videos in text mode - - use pdftotext -layout -nopgbrk switches - - try to use elinks before links for HTML - - soffice2html text-mode handler for SXW files - - wvHtml text-mode handler for doc files - - xlhtml text-mode handler for XLS files - - ppthtml text-mode handler for PPT/PPS files - - open=view+pager fallback (noX) for PostScript, PDF, OD[PST] and DVI - - standardized $DISPLAY checks - * File extension support: - - SQLite database files (#2103) - - compiled Java files (*.class) (#2103) - - m4a for MP4 containers with audio data in the Advanced Audio Coding (AAC) or its own Apple Lossless (ALE, ALAC) formats (#2869) - - .ogm extension was deprecated in favor of .ogv (#2664) - -- Fixes - - * Bad EXTHELPERSDIR substitution if --prefix is not set (#2849) - * Partially broken loading of user-defined keymap file (#2848) - * Enter on directory named '~' goes to the home one (#2874) - * Cannot Copy/Move files with filename encoding change (#2791) - * Cannot view compressed files named like log.1.gz (with digit in name) (#2852) - * Panel is not refreshed if panel history is called using mouse (#2854) - * Duplicate entities in panel with 'tree view' mode (#2835) - * Broken synchronization with filelist and tree panels (#2862) - * Standalone mcedit doesn't load saved file position (#2853) - * mcedit segfaults when aspell (en) dictionary is not installed (#2856) - * mcedit segfaults after "Back from declaration" call (#2859) - * mcedit: unable to save changes in "Safe save" mode(#2832) - * Segfault when viewing HTML files with "mc -v" (#2858) - * Broken 'Enter' action on a rpm file containing space character in filename (#2838) - * extfs: uc1541 broken handling (#2864) - * mc.ext: OGV format handled as audio (#2869) - - -Version 4.8.4 - -- Core - - * Use xdg-open by default in mc.ext.in if present to open files, fallback on current scheme otherwise (#2118) - * Improve of mouse event handling in dialogs (#2817) - * Show extended info about compiled-in paths for internal/external macros in the "mc -F" output (2495) - -- VFS - - * Added SFTP support (#1535) - -- Editor - - * Multieditor: allow edit many files in one mcedit window (#2261, #2839) - * Aspell support for spell check (#2788) - -- Viewer - - * Handle CK_FileNext/CK_FilePrev actions inside mcviewer (#2814) - -- Misc - - * Tweak and cleanup of code in case of --disable-charset option usage (#2827) - * File extension support: - - .gem - rubygems (#2797) - - .cpio.xz - compressed cpio archives (#2798) - - .webm - WebM video (#2746) - - .lib - gputils artifacts (#2751) - -- Fixes - - * Build failure on FreeBSD 6 (#2808) - * src/filemanager/filegui.c does not compile on Solaris due to missing macros (#2825) - * Loss of data on copy to full partition (#2829) - * Crash at Chown command (#2784) - * Crash when creating relative symlink (#2787) - * Misinterpretation of dirs as command line arguments (#2783, #2805) - * Number of panelized files was limited to 127 (#2813) - * CK_History removes CK_HistoryNext entries (#2313) - * URL with port was stored wrong in history (#2833) - * Can't find 00 (zeroes) in patterns in hex search (#2795) - * Hotkey conflicts in 'Search' dialog (#2843) - * Error message when entering into compressed tar and cpio archives (#2785) - * Garbage directory listing in ftpfs (#2800) - * Incomplete sand256 skin (#2807) - * mcedit scripts are installed as data files (#1437) - * Fails to build from source with --enable-tests (#2786) - * Tests failure on PowerPC,S390,S390x (#2804) - * Fail to compile if --without-vfs configure option specified (#2834) - * do_panel_cd: FTBFS with --enable-tests on [kfreebsd-i386,kfreebsd-amd64,ia64,armhf] (#2803) - - -Version 4.8.3 - -- Misc - - * Code cleanup (#2780) - -- Fixes - - * Broken support of XDG_* shell variables (#1851) - * Segmentation fault while background copying (#2663) - * MC ignores second directory argument (#2762) - * Interpretation of LANG variable needs to be case insensitive (#2386) - * Cannot copy zero-length files with "Preallocate space" option (#2755) - * Problem in the Copy operation with unchecked the "Preserve attributes" option (#2278) - * * Cursor position reset after update when panel is panelized, but doesn't (#2766) - * File selection reset after exit from the archive in the root (#2776) - * Hotlist: broken newly added entries if old-style path is present (#2753) - * Can't rebind Fx keys in the file manager (#2384) - * "justified" menu alignment (#2756) - * The last (or single) word of hyperlinks in the interactive help don't act on mouse clicks (#2763) - * 'cd' command is not working in shell link (#2758) - * mc hangs on switching screens (#2608) - * Case sensitive search with SEARCH_TYPE_PCRE is broken (#2764) - * mcedit can't run w/o file as parameter (#2754) - * mcedit can't record input char (#2757) - * mcedit: save file on top of existing directory changes dir's permissions (#2761) - * Unable to edit gzipped files (#2759) - * mcedit hangs up on replace with regexp contains '^' or '$' (#1868) - * Segfault after open incorrect archive (#2775) - * mcdiff crashes if one panel is not in the listing mode (#2769) - * The password for vfs sessions remains in input history (#2760) - * Showing directory sizes is broken in VFS'es (#2765) - * Stale symlinks in vfs (#2777) - * Active VFS directories list contain incorrect current path (#2779) - * Date not set properly in manpage (#2692) - * Empty texinfo rule in mc.ext (#2774) - * Test failure if 'HOME' contains trailing slashes (#2768) - - -Version 4.8.2 - -- Core - - * Added new flag -X (--no-x11) to allow don't use X11 to get the state of modifiers Alt, Ctrl, Shift (#86) - * Support of '~' as home dir in 'Start at:' field in 'Find File' dialog (#2694) - * Support of '~' as home dir in hotlists (#2747) - * Learn of 'Back Tab' is possible now in 'Learn keys' dialog (#2628) - * Optional '0x' prefix for hexadecimal search (#2705) - * Dynamically resize panels (#2465) - * New bindings (ScrollLeft, ScrollRight) for scroll long filenames in panels (#2731) - -- VFS - - * Internal VFS reorganization (#2695) - -- Editor - - * Added as.syntax (#2708) - -- Viewer - - * Added action bindings for backward search (#2105) - -- Misc - - * Added hotkeys for all radio/check-buttons in search/replace dialogs (#2704) - * New file bindings: - - .m4v, .ts - video (#2702) - - djv - DjVu? (#2645) - * Simplify mc.menu - remove LZMA|LZ and change p7 to 7z (#2703) - * Updated list of known browsers: gnome-moz-remote mozilla firefox konqueror opera (#2725) - * Added MC_HOME environment variable to set up home directory of MC (as part of #2738) - * Lot of code cleanup (#2740) - -- Fixes - - * Compile failure of 4.8.1 on xBSD because "Undefined symbols: _posix_fallocate" (#2689) - * MC deletes the wrong file because of forced panel reload before file operation (#2736) - * Cannot chdir to directory if directory name contains the dollar sign (#2451) - * Incorrect panel size after change panel split type (#2521) - * Wrong total bytes counter for subdirs in copy/move dialog (#2503) - * Display corruption in panels after window shrink (#2684) - * Command line is unaccessible from tree panel (#2714) - * Extra confirmation before delete an empty hotlist group (#1576) - * Can't open an edit zero-length file from VFS in mcedit (#2710) - * mcedit crashes when ~/.config is a file (#2738) - * mcedit: reset selection after END/HOME/PgDn/PgUp (#2726) - * 'make check' fails on arm and alpha (-z muldefs) (#2732) - - -Version 4.8.1 - -- Core - - * Use posix_fallocate64() when copying files/moving to a new mount point (#2610) - * Faster startup (#2637) - * Support of extended mouse clicks beyond 223 (#2662) - -- VFS - - * Added exit point ("..") at the top of file list (after external panelization) (#275, #278) - -- Editor - - * Lex/Flex sources (extension .l) handled by yxx.syntax file. Yacc/Bison syntax completed with all symbols (#1647) - * Updated syntax files: - - lua - -- Misc - - * Updated skins: - - sand256 (#2640) - - xoria256 (#2641) - * Added ability to move MC config files to specified place instead of multiple places in $HOME (#2636) - * Added configure option --with-homedir (default value: XDG) (#2636) - * Respect traditional placement of user preferences on Mac OS X (#2658 as part of #2636) - * A few useful additions to filehighlight.ini (#2646) - -- Fixes - - * Doesn't compile when using --disable-nls (#2639) - * Can't compile on OpenIndiana (Solaris) (#2643) - * Moving content of bindings to mc.ext during 4.7 -> 4.8 upgrade breaks mc - * Free space on filesystems >2TB is not displayed properly (#2338) - * Not all errors are skipped after "Ignore all" choose (#71) - * Input field in password mode is fully masked with asterisks (#2653) - * In "Copy File" dialog the "preserve Attributes" checkbox is always unchecked for filesystems mounted with FUSE (#2254) - * Command line cursor misplaced after a resize in viewer/editor (#2678) - * Save of some learned keys is broken (#2676) - * Editor sometimes shows two dots instead of letter (#2372) - * Editor: word completion should ignore the current word (#2614) - * Viewer sometimes shows two dots instead of letter (#1730) - * Viewer shows two dialogs when searcj hot found (#2677) - * Cannot navigate over spftp servers (#2634) - * mc adds spaces at the beginning of all files/dirs on ftp servers (#2635) - * VFS: broken SMB (#2652) - * man page lies about mc.keymap (#2675) - * mc does not preserve file mtime when copying over ssh (#2625) - - -Version 4.8.0 - -- Misc - * Code cleanup (#2620) - * License version updated to GPL3+ (#1551) - * Added new translation: - - Interlingua - -- Fixes - * Viewer: cursor position is not restored in hex mode (#2543) - * fish: broken panels drawing after entering password (#2611) - * fish: content of modified file is appended instead of overwritten in the remote host (#2632) - * extfs: broken navigation in archives if current path is encoded (#2621) - * extfs: strange error message when opening a 7z file if p7zip is not installed (#2598) - - -Version 4.8.0-pre2 - -- Core - - * Added -g/--oldmouse option to support of NORMAL/BUTTON_EVENT mouse type (useful for screen/tmux) (#2601) - -- VFS - - * New extfs plugin: gitfs (#2467) - * patchfs enhancement: join several hunks of the same file into one VFS entry (#2573) - -- Misc - - * mc.ext: use "include" for $EDITOR entries (#1689) - * New file bindings: - - .3gp - video (#2583) - -- Fixes - - * Cannot compile 4.8.0-pre1 and 4.7.5.3 on Solaris (#2587) - * Recent autoconf displays warnings about missing AC_LANG_SOURCE (#2589) - * Duplication of variable declarations (#2576) - * Incorrect TTY layer initialization (#2601) - * Wrong Backspace key behavior in QuickSearch mode if BS key is mapped to CdParentSmart action (#2522) - * M-o works unexpectedly on symlink shortcuts (#2590) - * Panelize doesn't honour current sorting (#2175) - * Hintbar jumps to the top of the screen and overwrites main menu (#2593) - * File size column is bogus for widths above 9 (#2580) - * Hex search: incorrect length usage in hexadecimal search (#2579) - * Editor: Incorrect Pascal syntax highlighting (#2531) - * Editor: mouse clicks are ignored on the bottom line (#2591) - * Editor: extended keybingings are broken (#2586) - * Viewer: Fixed search finds bold/underlined strings twice and highlight search results (#265) - * Broken listing in ExtFS VFS module (#81) - * File name length is limited in tar archive (#2201) - * Crash when copying symlink over ssh (#2582) - * Broken panels recode (#2595) - * ftp failures - leading white space in file name (#2594) - * FISH hangs while copiyng a lot of small files (#2605) - - -Version 4.8.0-pre1 - -WARNING: Configuration files was moved from your $HOME/.mc directory into -XDG_CONFIG_* directories to respect FDO standard -(http://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html). -To get more information, see ticket #1851. - -WARNING: VFS paths now handled as vfsprefix1://vfsdata/vfsprefix2://vfsdata -(see #2361). Also, 'bindings' user file was renamed to 'mc.ext', so you need -search in this file all - - Open=file.ext#vfsprefix - -and replace them to - - Open=file.ext/vfsprefix:// - -After this you should rename your 'bindings' file to 'mc.ext'. -Old-style paths are handled just in 'Directory hotlist' dialog, but you couldn't -mix URL-like and old style path elements in one path string. Support of old-style -paths will be removed in next major release (probably in 4.9, who knows...) - -WARNING: keybinding names was renamed to provide some unification (see #2511). -The correspondence of old and new keybinging names are described in doc/keybind-migration.txt -file and in doc/keybindMigration web page. - -Be aware. - -- Core - - * Added 256 colours support (#2169, #2173, #2475) - * Changed default text in filtered view (alt-!) to input command line (if not empty) - or stay old behaviour (current file under cursor) (#2266) - * Added simple swap mode that means the swap of panel locations, in addition to current swap - of panel content (#2368) - * Configuration files now moved to directory specified in XDG_CONFIG_HOME environment variable (#1851) - * Panel options are read now from [Panels] section only. [Midnight-Commander] section is not read (#2305) - * "Show mini info" checkbox was moved from the "Layout" dialog window to the "Panel options" one (#2305) - * Select files by shift-left/right in file panel (#2534) - * Added support of skip all errors on multi-file/dir operation (#71) - * 'Find Files' improvements: - - support relative ignored directories (#2275); - - handle of ignored directories in dialog window (#2275); - - "Search for content" checkbox is enabled by default (#2462) - * Added hardlinks detection for filehighlight (#2478) - * Unification of keybind names (#2511): - - most of keybinding names are changes to unify that names. Table of old and new names - is available in doc/keybind-migration.txt; - - improve of key rebinding: previously, to rebind some keys, used must redefine the entire section - where that bindings are placed in user keymap file. New merge algorithm doesn't require that - and allows rebind only wanted keys; - - added --nokeymap command line option to disable external keymaps - * Sources in 'lib' directory now independent to sources in 'src' one (#2501) - * Added configure parameter --enable-mclib for build libmc.so shared library (#2501) - * Added new engine for universal event system (as part of #2501) - * Optimized loading and saving of configurations and histories (#2541, #2545) - * Reimplemented i18n support in 'Chmod' dialog window (#2557) - -- VFS - - * VFS structure changes (as part of #2501): - - moved from lib/vfs/mc-vfs to lib/vfs; - - split VFS-modules by directories and moved to src/vfs; - - lib/vfs/vfs-impl.h was merged into lib/vfs/vfs.h - * VFS now used URL-like paths (#2361) - -- Editor - - * New engine of the editor macro (#323) - * Multiply repeat of the recorded actions (#323) - * Call external scripts from the editor (#323, #2512) - * Added REDO action (#25) - * Group UNDO by action (#27) - * Selection is not reset after execute user menu (#2463) - * Vertical selection is not reset after copy/move (#2504) - * More intuitive word left/right action (now the cursor stop beside EOL/BOL) (#2483) - * Duble-click marks the current word. Added action MarkWord to mark word, MarkLine - to mark current line (#2499) - * Regexp search&replace: support escape sequences in replacement string (#1882) - -- Misc - - * Minor enhancement in mc.ext: - * added -C key to nm utility in View action for static libraries (#2485) - * New file bindings: - - .torrent: view using ctorrent (#2562); - - .mts: handle as videofile (#2566) - * Added new entries in cedit.menu: "Sort selection", "Upper case", "Lower case" - * New skins: - - Xoria256 (#2469) - - mc-4.6 (#2524) - * Updated skins: - * Nice dark (#1791) - * Added support for check unit test framework (http://check.sourceforge.net) (as part of #2501) - * Added -F/--datadir-info option to show extended information about used data dirs (#2495) - * Added --configure-options to easy update & reconfigure existing mc (#2495) - * Language-specific man pages and hint and help files are not installed - if mc is built with --disable-nls option (#2514) - * Added new translation: - - Esperanto - * Code cleanup (#2481, #2515, #2518, #2560, #2570) - -- Fixes - - * Build failure on DragonFly BSD (#2516) - * Broken Del & Backspace in dialogs (in locale CP866) (#1634) - * Screen and input corruption under xterm in non-UTF locales (#1668) - * Alt-Backspace shortcut doesn't work (#2455) - * Broken command autocompletion (#2458) - * Swap panels doesn't respect sort options (#2368) - * File list format of panel is initialized incorrectly after switch back from quick view - or info mode to file list one (#2390) - * Main menu is not drawn correctly after change of it visibility and activity (#2466) - * MC switches to left panel after call of command history using mouse (#2459) - * Find file: don't check content regexp if search for content is not used (#2464) - * Find file: broken lynx-like navigation in panelization of search result (#2491) - * Dialog trims leading spaces in input field (#2544) - * Panelize content is lost when doing F5/F6/F8 on a file on the other panel (#2312) - * Color of panel header cannot be set in the command line (#2170) - * ctrl-g key closes file panels (#2520) - * Incorrect files mark by mouse (#2556) - * Editor: incorrect restore selection after UNDO (#2456) - * Editor: segfault after getting the previous char in utf8 (#2484) - * Editor: incorrect detection of the word boundary (added '{', '}' as end of word) (#2500) - * Bold and selected colors of viewer cannot be set in the command line (#2489) - * Viewer: fixed incorrect starting offset for 'search again' (#2294) - * Viewer: fixed problems while displaying UTF-8 manual pages (#1629) - * Diff viewer: quick left/right movements don't work in non-default key maps (#2509) - * AI_ADDRCONFIG is not optional for RFC 3493 non-compliant systems (#2401) - * FTP directories containing @ result severe security risks (eg. deletion of homedir) (#2220) - * Builtin ftp client can't download files with apostrophe in a file name (#2251) - * Unable to show FTP listing if password contains # (#2360) - * FTP: fixed access to file names starting with space (#81) - * Bashisms in extfs (#2569) - * Browsing *.deb files is broken with latest Perl (#2552) - * isoinfo adds ";1" to the end of file name when Joliet without Rock Ridge is used (#2471) - * patchfs incorrectly works with filenames containing spaces (#2572) - * cd to ~ processed incorrectly in the command line if more than one space is separating - the "cd" and "~" (#2120) diff --git a/recipes/wip/files/mc/source/README b/recipes/wip/files/mc/source/README deleted file mode 100644 index 5b71024383..0000000000 --- a/recipes/wip/files/mc/source/README +++ /dev/null @@ -1,185 +0,0 @@ -Contents --------- - -* Introduction -* Dependencies -* Features -* Mini-documentation -* Where to get more information -* Reporting problems - - -Introduction ------------- - -GNU Midnight Commander (also referred to as MC) is a user shell with -text-mode full-screen interface. It can be run on the OS console, -in xterm and other terminal emulators. - -GNU Midnight Commander allows you to manage files while making the most of -your screen and giving you a clear representation of the filesystem, yet -it's simple enough to be run over a telnet or ssh session. - -GNU Midnight Commander is released under the GNU General Public -License version 3 or any later version. A copy of the file is -included with this distribution package. - - -Dependencies ------------- - -Please read the file INSTALL for installation instructions -and full list of dependencies. - - -Features --------- - -GNU Midnight Commander was conceived as a free clone of John Socha's -Norton Commander (TM). It also takes the best from more recent software -with similar interfaces. GNU Midnight Commander comes with mouse support -on xterm and optionally on the Linux console. - -Some features are specific to the POSIX environment MC runs on, some are -familiar to the users of similar software for other operating systems. -The features include: - - * Built in Virtual File System: manipulate remote file systems - through the FTP and SFTP protocols or over secure shell, browse - contents of tar, ar, rpm, zip, cpio, lha and rar archives just - like local files. - - * Almost all operations work with the virtual file system, - enabling you to do complex tasks, like viewing files in - archives on an FTP server. - - * Mouse support on most terminal emulators for X Window System - as well as on the Linux console. - - * Learn Keys: GNU Midnight Commander may be configured at run - time to support any kind of input keys for a given terminal, - making its operation possible even on most weird terminals. - - * Text and hex editors are available for you to use (hex editor - is a part of the viewer). - - * Hotlist allows you to keep a list of common visited locations, - including remote sites and directories inside archives. - - * Command completion: By pressing Alt-Tab in any place where a - filename or an executable are expected, GNU Midnight Commander - will complete the name for you. If you press Alt-Tab for the - second time, you get a list box with all possible completions. - - * Subshell support: Run your commands by a real shell - interpreter. GNU Midnight Commander interacts with bash, - tcsh and zsh to provide you with all of the facilities - available in your preferred shell. - - * Find file command can search for the file contents. - - * Background operations allow you to copy or move files from - any virtual file system while you do other tasks (i.e., you - can do background FTP copies). - - * FTP proxy is supported. - - * Linux file recovery: If you are using Linux, you can recover - deleted files from an ext2 or ext3 partition with the undelete - file system. This is a low level file recovery function that - can recover files deleted by any program on Linux. - - * External panelization: You can run any arbitrary external - command and GNU Midnight Commander will display the output - generated as a file listing that can be manipulated as a - regular directory. - - * Emacs-like key bindings are used in all widgets. - - * Context dependent actions (open, view, edit) are available. - - * The built-in file viewer, together with the context dependent - actions is used to format man pages on the fly, coloring mail - messages and more. - - * The built-in editor supports syntax highlighting and external - actions, such as spell checking and formatting. - - -Mini-documentation ------------------- - -These are hints for the text mode edition: - -* Use the F-Keys for invoking the commands in the function key bar. - If your terminal doesn't support F-keys, you can use the - sequence to invoke the corresponding F-digit key. - -* Tab changes the current panel. - -* All input lines have emacs-like key-bindings (command history is - accessed through the M-p and M-n keys). - -* The panels accept C-n, C-p for browsing the panel (like in Emacs). - -* M-Enter copies the currently selected file name to the input line. - -* M-Tab completes the current word (or tries to). - -* The Virtual File System is a cute addition to the project, you may - browse in tar and compressed tar files as well as browsing remote - machines with the shell file system. - -* Please read the manual page. - -You can access the whole documentation online with the F1 key, -although it's not as nice as the groff printed manual page :-) - - -Where to get more information ------------------------------ - -There is a webpage for GNU Midnight Commander at - -* https://www.midnight-commander.org - -This page also has current information about mailing lists and some -useful advices how to report bugs. - -You can download the latest version of GNU Midnight Commander from - -* https://www.midnight-commander.org/downloads/ - -The Midnight Commander distribution is placed at: - -* http://ftp.osuosl.org/pub/midnightcommander/ -* ftp://ftp.osuosl.org/pub/midnightcommander/ - -Reporting problems ------------------- - -You can report bug on our site, please read - -https://www.midnight-commander.org/wiki/doc/reportDefects - -Also you can use mc mailing lists to discuss problems. - -There are two mailing lists: - - - mc@lists.midnight-commander.org - - mc-devel@lists.midnight-commander.org - -Use mc-devel@ if you are prepared for a more technical discussion -with the developers of the package, otherwise use mc@. - -Include the output of "mc --version", the operating system and the -distribution (if applicable) you are using, the compiler and the -configure flags used to compile the program (if you know them). - -If the program crashed and produced a core dump, please provide a -stack trace of the program. - -You can do this by running gdb like this: - -gdb mc core -(gdb) where diff --git a/recipes/wip/files/mc/source/acinclude.m4 b/recipes/wip/files/mc/source/acinclude.m4 deleted file mode 100644 index 18bae9628f..0000000000 --- a/recipes/wip/files/mc/source/acinclude.m4 +++ /dev/null @@ -1,33 +0,0 @@ -m4_include([m4.include/gnulib/mc-gnulib-common.m4]) -m4_include([m4.include/gnulib/mode_t.m4]) -m4_include([m4.include/gnulib/stat-size.m4]) -m4_include([m4.include/gnulib/fstypename.m4]) -m4_include([m4.include/gnulib/fsusage.m4]) -m4_include([m4.include/gnulib/mountlist.m4]) -m4_include([m4.include/gnulib/windows-stat-inodes.m4]) -m4_include([m4.include/gnulib/sys_types_h.m4]) -m4_include([m4.include/ax_path_lib_pcre.m4]) -m4_include([m4.include/ax_check_pcre2.m4]) -m4_include([m4.include/dx_doxygen.m4]) -m4_include([m4.include/ax_require_defined.m4]) -m4_include([m4.include/ax_check_compile_flag.m4]) -m4_include([m4.include/ax_append_flag.m4]) -m4_include([m4.include/ax_append_compile_flags.m4]) -m4_include([m4.include/mc-cflags.m4]) -m4_include([m4.include/mc-stdckdint.m4]) -m4_include([m4.include/ax_gcc_func_attribute.m4]) -m4_include([m4.include/mc-check-search-type.m4]) -m4_include([m4.include/mc-get-fs-info.m4]) -m4_include([m4.include/mc-with-x.m4]) -m4_include([m4.include/mc-use-termcap.m4]) -m4_include([m4.include/mc-with-screen.m4]) -m4_include([m4.include/mc-with-internal-edit.m4]) -m4_include([m4.include/mc-subshell.m4]) -m4_include([m4.include/mc-background.m4]) -m4_include([m4.include/mc-ext2fs-attr.m4]) -m4_include([m4.include/mc-glib.m4]) -m4_include([m4.include/mc-vfs.m4]) -m4_include([m4.include/mc-version.m4]) -m4_include([m4.include/mc-tests.m4]) -m4_include([m4.include/mc-i18n.m4]) -m4_include([m4.include/mc-assert.m4]) diff --git a/recipes/wip/files/mc/source/aclocal.m4 b/recipes/wip/files/mc/source/aclocal.m4 deleted file mode 100644 index e0b3a228e0..0000000000 --- a/recipes/wip/files/mc/source/aclocal.m4 +++ /dev/null @@ -1,1555 +0,0 @@ -# generated automatically by aclocal 1.16.5 -*- Autoconf -*- - -# Copyright (C) 1996-2021 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.72],, -[m4_warning([this file was generated for autoconf 2.72. -You have another version of autoconf. It may work, but is not guaranteed to. -If you have problems, you may need to regenerate the build system entirely. -To do so, use the procedure documented by the package, typically 'autoreconf'.])]) - -# pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*- -# serial 12 (pkg-config-0.29.2) - -dnl Copyright © 2004 Scott James Remnant . -dnl Copyright © 2012-2015 Dan Nicholson -dnl -dnl This program is free software; you can redistribute it and/or modify -dnl it under the terms of the GNU General Public License as published by -dnl the Free Software Foundation; either version 2 of the License, or -dnl (at your option) any later version. -dnl -dnl This program is distributed in the hope that it will be useful, but -dnl WITHOUT ANY WARRANTY; without even the implied warranty of -dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -dnl General Public License for more details. -dnl -dnl You should have received a copy of the GNU General Public License -dnl along with this program; if not, write to the Free Software -dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA -dnl 02111-1307, USA. -dnl -dnl As a special exception to the GNU General Public License, if you -dnl distribute this file as part of a program that contains a -dnl configuration script generated by Autoconf, you may include it under -dnl the same distribution terms that you use for the rest of that -dnl program. - -dnl PKG_PREREQ(MIN-VERSION) -dnl ----------------------- -dnl Since: 0.29 -dnl -dnl Verify that the version of the pkg-config macros are at least -dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's -dnl installed version of pkg-config, this checks the developer's version -dnl of pkg.m4 when generating configure. -dnl -dnl To ensure that this macro is defined, also add: -dnl m4_ifndef([PKG_PREREQ], -dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])]) -dnl -dnl See the "Since" comment for each macro you use to see what version -dnl of the macros you require. -m4_defun([PKG_PREREQ], -[m4_define([PKG_MACROS_VERSION], [0.29.2]) -m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, - [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) -])dnl PKG_PREREQ - -dnl PKG_PROG_PKG_CONFIG([MIN-VERSION], [ACTION-IF-NOT-FOUND]) -dnl --------------------------------------------------------- -dnl Since: 0.16 -dnl -dnl Search for the pkg-config tool and set the PKG_CONFIG variable to -dnl first found in the path. Checks that the version of pkg-config found -dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is -dnl used since that's the first version where most current features of -dnl pkg-config existed. -dnl -dnl If pkg-config is not found or older than specified, it will result -dnl in an empty PKG_CONFIG variable. To avoid widespread issues with -dnl scripts not checking it, ACTION-IF-NOT-FOUND defaults to aborting. -dnl You can specify [PKG_CONFIG=false] as an action instead, which would -dnl result in pkg-config tests failing, but no bogus error messages. -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 -if test -z "$PKG_CONFIG"; then - m4_default([$2], [AC_MSG_ERROR([pkg-config not found])]) -fi[]dnl -])dnl PKG_PROG_PKG_CONFIG - -dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -dnl ------------------------------------------------------------------- -dnl Since: 0.18 -dnl -dnl Check to see whether a particular set of modules exists. Similar to -dnl PKG_CHECK_MODULES(), but does not set variables or print errors. -dnl -dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -dnl only at the first occurrence in configure.ac, so if the first place -dnl it's called might be skipped (such as if it is within an "if", you -dnl 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]) - -dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) -dnl --------------------------------------------- -dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting -dnl pkg_failed based on the result. -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 -])dnl _PKG_CONFIG - -dnl _PKG_SHORT_ERRORS_SUPPORTED -dnl --------------------------- -dnl Internal check to see if pkg-config supports short errors. -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 -])dnl _PKG_SHORT_ERRORS_SUPPORTED - - -dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -dnl [ACTION-IF-NOT-FOUND]) -dnl -------------------------------------------------------------- -dnl Since: 0.4.0 -dnl -dnl Note that if there is a possibility the first call to -dnl PKG_CHECK_MODULES might not happen, you should be sure to include an -dnl 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 $2]) - -_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 -])dnl PKG_CHECK_MODULES - - -dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], -dnl [ACTION-IF-NOT-FOUND]) -dnl --------------------------------------------------------------------- -dnl Since: 0.29 -dnl -dnl Checks for existence of MODULES and gathers its build flags with -dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags -dnl and VARIABLE-PREFIX_LIBS from --libs. -dnl -dnl Note that if there is a possibility the first call to -dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to -dnl include an explicit call to PKG_PROG_PKG_CONFIG in your -dnl configure.ac. -AC_DEFUN([PKG_CHECK_MODULES_STATIC], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -_save_PKG_CONFIG=$PKG_CONFIG -PKG_CONFIG="$PKG_CONFIG --static" -PKG_CHECK_MODULES($@) -PKG_CONFIG=$_save_PKG_CONFIG[]dnl -])dnl PKG_CHECK_MODULES_STATIC - - -dnl PKG_INSTALLDIR([DIRECTORY]) -dnl ------------------------- -dnl Since: 0.27 -dnl -dnl Substitutes the variable pkgconfigdir as the location where a module -dnl should install pkg-config .pc files. By default the directory is -dnl $libdir/pkgconfig, but the default can be changed by passing -dnl DIRECTORY. The user can override through the --with-pkgconfigdir -dnl parameter. -AC_DEFUN([PKG_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([pkgconfigdir], - [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],, - [with_pkgconfigdir=]pkg_default) -AC_SUBST([pkgconfigdir], [$with_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -])dnl PKG_INSTALLDIR - - -dnl PKG_NOARCH_INSTALLDIR([DIRECTORY]) -dnl -------------------------------- -dnl Since: 0.27 -dnl -dnl Substitutes the variable noarch_pkgconfigdir as the location where a -dnl module should install arch-independent pkg-config .pc files. By -dnl default the directory is $datadir/pkgconfig, but the default can be -dnl changed by passing DIRECTORY. The user can override through the -dnl --with-noarch-pkgconfigdir parameter. -AC_DEFUN([PKG_NOARCH_INSTALLDIR], -[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])]) -m4_pushdef([pkg_description], - [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@]) -AC_ARG_WITH([noarch-pkgconfigdir], - [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],, - [with_noarch_pkgconfigdir=]pkg_default) -AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir]) -m4_popdef([pkg_default]) -m4_popdef([pkg_description]) -])dnl PKG_NOARCH_INSTALLDIR - - -dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE, -dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) -dnl ------------------------------------------- -dnl Since: 0.28 -dnl -dnl Retrieves the value of the pkg-config variable for the given module. -AC_DEFUN([PKG_CHECK_VAR], -[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl -AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl - -_PKG_CONFIG([$1], [variable="][$3]["], [$2]) -AS_VAR_COPY([$1], [pkg_cv_][$1]) - -AS_VAR_IF([$1], [""], [$5], [$4])dnl -])dnl PKG_CHECK_VAR - -dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES, -dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND], -dnl [DESCRIPTION], [DEFAULT]) -dnl ------------------------------------------ -dnl -dnl Prepare a "--with-" configure option using the lowercase -dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and -dnl PKG_CHECK_MODULES in a single macro. -AC_DEFUN([PKG_WITH_MODULES], -[ -m4_pushdef([with_arg], m4_tolower([$1])) - -m4_pushdef([description], - [m4_default([$5], [build with ]with_arg[ support])]) - -m4_pushdef([def_arg], [m4_default([$6], [auto])]) -m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes]) -m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no]) - -m4_case(def_arg, - [yes],[m4_pushdef([with_without], [--without-]with_arg)], - [m4_pushdef([with_without],[--with-]with_arg)]) - -AC_ARG_WITH(with_arg, - AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),, - [AS_TR_SH([with_]with_arg)=def_arg]) - -AS_CASE([$AS_TR_SH([with_]with_arg)], - [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)], - [auto],[PKG_CHECK_MODULES([$1],[$2], - [m4_n([def_action_if_found]) $3], - [m4_n([def_action_if_not_found]) $4])]) - -m4_popdef([with_arg]) -m4_popdef([description]) -m4_popdef([def_arg]) - -])dnl PKG_WITH_MODULES - -dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES, -dnl [DESCRIPTION], [DEFAULT]) -dnl ----------------------------------------------- -dnl -dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES -dnl check._[VARIABLE-PREFIX] is exported as make variable. -AC_DEFUN([PKG_HAVE_WITH_MODULES], -[ -PKG_WITH_MODULES([$1],[$2],,,[$3],[$4]) - -AM_CONDITIONAL([HAVE_][$1], - [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"]) -])dnl PKG_HAVE_WITH_MODULES - -dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES, -dnl [DESCRIPTION], [DEFAULT]) -dnl ------------------------------------------------------ -dnl -dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after -dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make -dnl and preprocessor variable. -AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES], -[ -PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4]) - -AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], - [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) -])dnl PKG_HAVE_DEFINE_WITH_MODULES - -# Copyright (C) 2002-2021 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.16' -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.16.5], [], - [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.16.5])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-2021 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], -[AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -# Expand $ac_aux_dir to an absolute path. -am_aux_dir=`cd "$ac_aux_dir" && pwd` -]) - -# AM_CONDITIONAL -*- Autoconf -*- - -# Copyright (C) 1997-2021 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-2021 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-2021 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. - # TODO: see whether this extra hack can be removed once we start - # requiring Autoconf 2.70 or later. - AS_CASE([$CONFIG_FILES], - [*\'*], [eval set x "$CONFIG_FILES"], - [*], [set x $CONFIG_FILES]) - shift - # Used to flag and report bootstrapping failures. - am_rc=0 - for am_mf - do - # Strip MF so we end up with the name of the file. - am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile which includes - # dependency-tracking related rules and includes. - # Grep'ing the whole file directly is not great: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ - || continue - am_dirpart=`AS_DIRNAME(["$am_mf"])` - am_filepart=`AS_BASENAME(["$am_mf"])` - AM_RUN_LOG([cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles]) || am_rc=$? - done - if test $am_rc -ne 0; then - AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments - for automatic dependency tracking. If GNU make was not used, consider - re-running the configure script with MAKE="gmake" (or whatever is - necessary). You can also try re-running configure with the - '--disable-dependency-tracking' option to at least be able to build - the package (albeit without support for automatic dependency tracking).]) - fi - AS_UNSET([am_dirpart]) - AS_UNSET([am_filepart]) - AS_UNSET([am_mf]) - AS_UNSET([am_rc]) - rm -f conftest-deps.mk -} -])# _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. -# This creates each '.Po' and '.Plo' makefile fragment that we'll 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" MAKE="${MAKE-make}"])]) - -# Do all the work for Automake. -*- Autoconf -*- - -# Copyright (C) 1996-2021 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. - -dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O. -m4_define([AC_PROG_CC], -m4_defn([AC_PROG_CC]) -[_AM_PROG_CC_C_O -]) - -# 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 -m4_ifdef([_$0_ALREADY_INIT], - [m4_fatal([$0 expanded multiple times -]m4_defn([_$0_ALREADY_INIT]))], - [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])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_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([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 (and possibly the TAP driver). 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 -]) -# Variables for tags utilities; see am/tags.am -if test -z "$CTAGS"; then - CTAGS=ctags -fi -AC_SUBST([CTAGS]) -if test -z "$ETAGS"; then - ETAGS=etags -fi -AC_SUBST([ETAGS]) -if test -z "$CSCOPE"; then - CSCOPE=cscope -fi -AC_SUBST([CSCOPE]) - -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 - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - AC_MSG_ERROR([Your 'rm' program is bad, sorry.]) - fi -fi -dnl The trailing newline in this macro's definition is deliberate, for -dnl backward compatibility and to allow trailing 'dnl'-style comments -dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841. -]) - -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-2021 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+set}" != 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-2021 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])]) - -# Add --enable-maintainer-mode option to configure. -*- Autoconf -*- -# From Jim Meyering - -# Copyright (C) 1996-2021 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_MAINTAINER_MODE([DEFAULT-MODE]) -# ---------------------------------- -# Control maintainer-specific portions of Makefiles. -# Default is to disable them, unless 'enable' is passed literally. -# For symmetry, 'disable' may be passed as well. Anyway, the user -# can override the default with the --enable/--disable switch. -AC_DEFUN([AM_MAINTAINER_MODE], -[m4_case(m4_default([$1], [disable]), - [enable], [m4_define([am_maintainer_other], [disable])], - [disable], [m4_define([am_maintainer_other], [enable])], - [m4_define([am_maintainer_other], [enable]) - m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) -AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) - dnl maintainer-mode's default is 'disable' unless 'enable' is passed - AC_ARG_ENABLE([maintainer-mode], - [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode], - am_maintainer_other[ make rules and dependencies not useful - (and sometimes confusing) to the casual installer])], - [USE_MAINTAINER_MODE=$enableval], - [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) - AC_MSG_RESULT([$USE_MAINTAINER_MODE]) - AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) - MAINT=$MAINTAINER_MODE_TRUE - AC_SUBST([MAINT])dnl -] -) - -# Check to see how 'make' treats includes. -*- Autoconf -*- - -# Copyright (C) 2001-2021 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 whether make has an 'include' directive that can support all -# the idioms we need for our automatic dependency tracking code. -AC_DEFUN([AM_MAKE_INCLUDE], -[AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive]) -cat > confinc.mk << 'END' -am__doit: - @echo this is the am__doit target >confinc.out -.PHONY: am__doit -END -am__include="#" -am__quote= -# BSD make does it like this. -echo '.include "confinc.mk" # ignored' > confmf.BSD -# Other make implementations (GNU, Solaris 10, AIX) do it like this. -echo 'include confinc.mk # ignored' > confmf.GNU -_am_result=no -for s in GNU BSD; do - AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out]) - AS_CASE([$?:`cat confinc.out 2>/dev/null`], - ['0:this is the am__doit target'], - [AS_CASE([$s], - [BSD], [am__include='.include' am__quote='"'], - [am__include='include' am__quote=''])]) - if test "$am__include" != "#"; then - _am_result="yes ($s style)" - break - fi -done -rm -f confinc.* confmf.* -AC_MSG_RESULT([${_am_result}]) -AC_SUBST([am__include])]) -AC_SUBST([am__quote])]) - -# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- - -# Copyright (C) 1997-2021 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 - MISSING="\${SHELL} '$am_aux_dir/missing'" -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 -]) - -# Helper functions for option handling. -*- Autoconf -*- - -# Copyright (C) 2001-2021 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])]) - -# Copyright (C) 1999-2021 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_CC_C_O -# --------------- -# Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC -# to automatically call this. -AC_DEFUN([_AM_PROG_CC_C_O], -[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl -AC_REQUIRE_AUX_FILE([compile])dnl -AC_LANG_PUSH([C])dnl -AC_CACHE_CHECK( - [whether $CC understands -c and -o together], - [am_cv_prog_cc_c_o], - [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])]) - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i]) -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -AC_LANG_POP([C])]) - -# For backward compatibility. -AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) - -# Copyright (C) 2001-2021 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_RUN_LOG(COMMAND) -# ------------------- -# Run COMMAND, save the exit status in ac_status, and log it. -# (This has been adapted from Autoconf's _AC_RUN_LOG macro.) -AC_DEFUN([AM_RUN_LOG], -[{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD - ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - (exit $ac_status); }]) - -# Check to make sure that the build environment is sane. -*- Autoconf -*- - -# Copyright (C) 1996-2021 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-2021 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-2021 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-2021 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-2021 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 - -m4_include([m4/gettext.m4]) -m4_include([m4/iconv.m4]) -m4_include([m4/intlmacosx.m4]) -m4_include([m4/lib-ld.m4]) -m4_include([m4/lib-link.m4]) -m4_include([m4/lib-prefix.m4]) -m4_include([m4/libtool.m4]) -m4_include([m4/longlong.m4]) -m4_include([m4/ltoptions.m4]) -m4_include([m4/ltsugar.m4]) -m4_include([m4/ltversion.m4]) -m4_include([m4/lt~obsolete.m4]) -m4_include([m4/nls.m4]) -m4_include([m4/po.m4]) -m4_include([m4/progtest.m4]) -m4_include([acinclude.m4]) diff --git a/recipes/wip/files/mc/source/build-glib2.sh b/recipes/wip/files/mc/source/build-glib2.sh deleted file mode 100755 index 6e20893e0a..0000000000 --- a/recipes/wip/files/mc/source/build-glib2.sh +++ /dev/null @@ -1,130 +0,0 @@ -#! /bin/sh - -# Download and build glib 2.x statically with all dependencies and then -# compile GNU Midnight Commander against it. -# Copyright (C) 2003 Pavel Roskin -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. - -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -# -# This script is incomplete! It doesn't download libiconv. This is OK -# for glibc-based systems, but probably not for others. This limitation -# is known. Please don't report it. - - -: ${MC_TOPDIR=`pwd`} -: ${WORK_TOPDIR=$MC_TOPDIR/build_glib2} -: ${TMP_INSTDIR=$WORK_TOPDIR/tmp-inst} -: ${GLIB_VERSION=2.30.0} -: ${PKGC_VERSION=0.23} -: ${GETTEXT_VERSION=0.17} - -GLIB_DIR="glib-$GLIB_VERSION" -GLIB_TARBALL="glib-$GLIB_VERSION.tar.bz2" -GLIB_URL="https://download.gnome.org/sources/glib/2.30/$GLIB_TARBALL" - -PKGC_DIR="pkg-config-$PKGC_VERSION" -PKGC_TARBALL="pkg-config-$PKGC_VERSION.tar.gz" -PKGC_URL="http://pkgconfig.freedesktop.org/releases/$PKGC_TARBALL" - -GETTEXT_DIR="gettext-$GETTEXT_VERSION/gettext-runtime" -GETTEXT_TARBALL="gettext-$GETTEXT_VERSION.tar.gz" -GETTEXT_URL="ftp://ftp.gnu.org/gnu/gettext/$GETTEXT_TARBALL" - -get_file() { - curl --remote-name "$1" || \ - wget --passive-ftp "$1" || \ - wget "$1" || \ - ftp "$1" &1 - exit 1 -fi - -if test -f $MC_TOPDIR/configure; then : ; else - $MC_TOPDIR/autogen.sh --help >/dev/null || exit 1 -fi - -rm -rf "$TMP_INSTDIR" -PATH="$TMP_INSTDIR/bin:$PATH" -export PATH - -# Compile gettext -cd "$WORK_TOPDIR" -if gzip -vt "$GETTEXT_TARBALL"; then : ; else - get_file "$GETTEXT_URL" -fi - -rm -rf "$GETTEXT_DIR" -gzip -cd "$GETTEXT_TARBALL" | tar xf - -cd "$GETTEXT_DIR" -if test -f src/gettext.c; then : ; else - echo "gettext source is incomplete" 2>&1 - exit 1 -fi - -./configure --disable-shared --disable-nls --prefix="$TMP_INSTDIR" || exit 1 -make all || exit 1 -make install || exit 1 - -# Compile pkgconfig -cd "$WORK_TOPDIR" -if gzip -vt "$PKGC_TARBALL"; then : ; else - get_file "$PKGC_URL" -fi - -rm -rf "$PKGC_DIR" -gzip -cd "$PKGC_TARBALL" | tar xf - -cd "$PKGC_DIR" -if test -f pkg.c; then : ; else - echo "pkgconfig source is incomplete" 2>&1 - exit 1 -fi - -./configure --disable-shared --prefix="$TMP_INSTDIR" || exit 1 -make all || exit 1 -make install || exit 1 - -# Compile glib -cd "$WORK_TOPDIR" -if gzip -vt "$GLIB_TARBALL"; then : ; else - get_file "$GLIB_URL" || exit 1 -fi - -rm -rf "$GLIB_DIR" -gzip -cd "$GLIB_TARBALL" | tar xf - -cd "$GLIB_DIR" -if test -f glib/glist.c; then : ; else - echo "glib source is incomplete" 2>&1 - exit 1 -fi - -./configure --disable-shared --prefix="$TMP_INSTDIR" \ - PKG_CONFIG="$TMP_INSTDIR/bin/pkg-config" \ - CPPFLAGS="-I$TMP_INSTDIR/include" \ - LDFLAGS="-L$TMP_INSTDIR/lib" || exit 1 -make all || exit 1 -make install || exit 1 - -cd "$MC_TOPDIR" -./configure PKG_CONFIG="$TMP_INSTDIR/bin/pkg-config" $@ || exit 1 -make clean || exit 1 -make || exit 1 - -echo "GNU Midnight Commander has been successfully compiled" diff --git a/recipes/wip/files/mc/source/config.h.in b/recipes/wip/files/mc/source/config.h.in deleted file mode 100644 index 684c8cd098..0000000000 --- a/recipes/wip/files/mc/source/config.h.in +++ /dev/null @@ -1,722 +0,0 @@ -/* config.h.in. Generated from configure.ac by autoheader. */ - -/* Define to enable background file operations */ -#undef ENABLE_BACKGROUND - -/* Define to enable showing configure arguments in help */ -#undef ENABLE_CONFIGURE_ARGS - -/* Define to enable support for ext2fs attributes */ -#undef ENABLE_EXT2FS_ATTR - -/* Define to 1 if translation of program messages to the user's native - language is requested. */ -#undef ENABLE_NLS - -/* Define to enable subshell support */ -#undef ENABLE_SUBSHELL - -/* Define to enable VFS support */ -#undef ENABLE_VFS - -/* Support for cpio filesystem */ -#undef ENABLE_VFS_CPIO - -/* Support for extfs */ -#undef ENABLE_VFS_EXTFS - -/* Support for FTP (classic) */ -#undef ENABLE_VFS_FTP - -/* Define to enable network VFSes support */ -#undef ENABLE_VFS_NET - -/* Support for sfs */ -#undef ENABLE_VFS_SFS - -/* Support for SFTP filesystem */ -#undef ENABLE_VFS_SFTP - -/* Support for SHELL vfs */ -#undef ENABLE_VFS_SHELL - -/* Support for tar filesystem */ -#undef ENABLE_VFS_TAR - -/* Support for ext2 undelfs */ -#undef ENABLE_VFS_UNDELFS - -/* Define if the file command accepts the -b option */ -#undef FILE_B - -/* Define if the file command accepts the -L option */ -#undef FILE_L - -/* Define if file command accepts the -S option */ -#undef FILE_S - -/* Define to disable assertions */ -#undef G_DISABLE_ASSERT - -/* Define to 1 if you have the header file. */ -#undef HAVE_ARPA_INET_H - -/* Define to enable aspell support */ -#undef HAVE_ASPELL - -/* Define to 1 if you have the header file. */ -#undef HAVE_ASPELL_H - -/* Define to 1 if you have the Mac OS X function CFLocaleCopyCurrent in the - CoreFoundation framework. */ -#undef HAVE_CFLOCALECOPYCURRENT - -/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in - the CoreFoundation framework. */ -#undef HAVE_CFPREFERENCESCOPYAPPVALUE - -/* Define to enable charset selection and conversion */ -#undef HAVE_CHARSET - -/* Define to 1 if you have the header file. */ -#undef HAVE_CURSES_H - -/* Define if the GNU dcgettext() function is already present or preinstalled. - */ -#undef HAVE_DCGETTEXT - -/* Define to 1 if you have the declaration of 'environ', and to 0 if you - don't. */ -#undef HAVE_DECL_ENVIRON - -/* Define to 1 if you have the header file. */ -#undef HAVE_DLFCN_H - -/* Define to 1 if you have the 'endmntent' function. */ -#undef HAVE_ENDMNTENT - -/* Define if ncursesw has ESCDELAY variable */ -#undef HAVE_ESCDELAY - -/* Define to 1 if you have the header file. */ -#undef HAVE_FCNTL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_FS_INFO_H - -/* Define to 1 if you have the 'fs_stat_dev' function. */ -#undef HAVE_FS_STAT_DEV - -/* Define to 1 if the system has the `fallthrough' function attribute */ -#undef HAVE_FUNC_ATTRIBUTE_FALLTHROUGH - -/* Define to 1 if the system has the `unused' function attribute */ -#undef HAVE_FUNC_ATTRIBUTE_UNUSED - -/* Define to 1 if the system has the `weak' function attribute */ -#undef HAVE_FUNC_ATTRIBUTE_WEAK - -/* Define to 1 if you have the 'getmntent' function. */ -#undef HAVE_GETMNTENT - -/* Define to 1 if you have the 'getpt' function. */ -#undef HAVE_GETPT - -/* Define if the GNU gettext() function is already present or preinstalled. */ -#undef HAVE_GETTEXT - -/* Defined if gmodule functionality is supported */ -#undef HAVE_GMODULE - -/* Define to 1 if you have the header file. */ -#undef HAVE_GNU_LIBC_VERSION_H - -/* Define to 1 if you have the 'grantpt' function. */ -#undef HAVE_GRANTPT - -/* Define to 1 if you have the 'hasmntopt' function. */ -#undef HAVE_HASMNTOPT - -/* Define if you have the iconv() function and it works. */ -#undef HAVE_ICONV - -/* Define if the list of mounted filesystems can be determined */ -#undef HAVE_INFOMOUNT_LIST - -/* Define to 1 if you have the header file. */ -#undef HAVE_INTTYPES_H - -/* Define to enable gpm mouse support on Linux */ -#undef HAVE_LIBGPM - -/* Define to 1 if you have the 'pcre' library (-lpcre). */ -#undef HAVE_LIBPCRE - -/* Define to 1 if you have the 'pt' library (-lpt). */ -#undef HAVE_LIBPT - -/* Define to 1 if you have the header file. */ -#undef HAVE_LIBUTIL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_LIMITS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_LINUX_FS_H - -/* Define to 1 if you have the 'listmntent' function. */ -#undef HAVE_LISTMNTENT - -/* Define to 1 if you have the header file. */ -#undef HAVE_MALLOC_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MINIX_CONFIG_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_MNTENT_H - -/* Define to use ncurses library for screen management */ -#undef HAVE_NCURSES - -/* Define to 1 if you have the header file. */ -#undef HAVE_NCURSESW_CURSES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NCURSES_CURSES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NCURSES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NCURSES_NCURSES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NCURSES_TERM_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NETINET_IN_H - -/* Define to 1 if you have the 'next_dev' function. */ -#undef HAVE_NEXT_DEV - -/* Define to 1 if you have the header file. */ -#undef HAVE_NFS_NFS_CLIENT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_NFS_VFS_H - -/* Define to 1 if you have the 'openpty' function. */ -#undef HAVE_OPENPTY - -/* Define to 1 if you have the header file. */ -#undef HAVE_OS_H - -/* Define to 1 if you have `PCRE2' library (-lpcre2-8) */ -#undef HAVE_PCRE2 - -/* Define if you have a working posix_fallocate() */ -#undef HAVE_POSIX_FALLOCATE - -/* Define to 1 if you have the 'posix_openpt' function. */ -#undef HAVE_POSIX_OPENPT - -/* Define to 1 if you have the header file. */ -#undef HAVE_PTY_H - -/* Define to 1 if you have the 'realpath' function. */ -#undef HAVE_REALPATH - -/* Define to 1 if you have the 'resizeterm' function. */ -#undef HAVE_RESIZETERM - -/* Define to 1 if you have the 'setlocale' function. */ -#undef HAVE_SETLOCALE - -/* Define to 1 if you have the 'setmntent' function. */ -#undef HAVE_SETMNTENT - -/* Define to 1 if the system has the type 'sighandler_t'. */ -#undef HAVE_SIGHANDLER_T - -/* Define to use S-Lang library for screen management */ -#undef HAVE_SLANG - -/* Define to 1 if the system has the type 'socklen_t'. */ -#undef HAVE_SOCKLEN_T - -/* Define to 1 if you have the 'statlstat' function. */ -#undef HAVE_STATLSTAT - -/* Define to 1 if you have the 'statvfs' function. */ -#undef HAVE_STATVFS - -/* Define to 1 if you have the header file. */ -#undef HAVE_STDCKDINT_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_STDIO_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 'strncasecmp' function. */ -#undef HAVE_STRNCASECMP - -/* Define to 1 if you have the header file. */ -#undef HAVE_STROPTS_H - -/* Define to 1 if 'f_fstypename' is a member of 'struct fsstat'. */ -#undef HAVE_STRUCT_FSSTAT_F_FSTYPENAME - -/* Define to 1 if 'l_linger' is a member of 'struct linger'. */ -#undef HAVE_STRUCT_LINGER_L_LINGER - -/* Define to 1 if 'f_frsize' is a member of 'struct statfs'. */ -#undef HAVE_STRUCT_STATFS_F_FRSIZE - -/* Define to 1 if 'f_fstypename' is a member of 'struct statfs'. */ -#undef HAVE_STRUCT_STATFS_F_FSTYPENAME - -/* Define to 1 if 'f_namelen' is a member of 'struct statfs'. */ -#undef HAVE_STRUCT_STATFS_F_NAMELEN - -/* Define to 1 if 'f_type' is a member of 'struct statfs'. */ -#undef HAVE_STRUCT_STATFS_F_TYPE - -/* Define to 1 if 'f_basetype' is a member of 'struct statvfs'. */ -#undef HAVE_STRUCT_STATVFS_F_BASETYPE - -/* Define to 1 if 'f_fstypename' is a member of 'struct statvfs'. */ -#undef HAVE_STRUCT_STATVFS_F_FSTYPENAME - -/* Define to 1 if 'f_namemax' is a member of 'struct statvfs'. */ -#undef HAVE_STRUCT_STATVFS_F_NAMEMAX - -/* Define to 1 if 'f_type' is a member of 'struct statvfs'. */ -#undef HAVE_STRUCT_STATVFS_F_TYPE - -/* Define to 1 if 'st_blksize' is a member of 'struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_BLKSIZE - -/* Define to 1 if 'st_blocks' is a member of 'struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_BLOCKS - -/* Define to 1 if 'st_mtim' is a member of 'struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_MTIM - -/* Define to 1 if 'st_mtimensec' is a member of 'struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_MTIMENSEC - -/* Define to 1 if 'st_mtimespec' is a member of 'struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_MTIMESPEC - -/* Define to 1 if 'st_rdev' is a member of 'struct stat'. */ -#undef HAVE_STRUCT_STAT_ST_RDEV - -/* Define to 1 if you have the 'strverscmp' function. */ -#undef HAVE_STRVERSCMP - -/* Define to 1 if your 'struct stat' has 'st_blocks'. Deprecated, use - 'HAVE_STRUCT_STAT_ST_BLOCKS' instead. */ -#undef HAVE_ST_BLOCKS - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_FS_S5PARAM_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_FS_TYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_IOCTL_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_MNTENT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_MOUNT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_PARAM_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_SELECT_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_STATFS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STATVFS_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_STAT_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_TYPES_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_UCRED_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_SYS_VFS_H - -/* Build with unit tests. */ -#undef HAVE_TESTS - -/* Define to enable getting events from X Window System */ -#undef HAVE_TEXTMODE_X11_SUPPORT - -/* Define to 1 if the system has the type 'uintmax_t'. */ -#undef HAVE_UINTMAX_T - -/* Define to 1 if you have the header file. */ -#undef HAVE_UNISTD_H - -/* Define to 1 if the system has the type 'unsigned long long int'. */ -#undef HAVE_UNSIGNED_LONG_LONG_INT - -/* Define to 1 if you have the header file. */ -#undef HAVE_UTIL_H - -/* Define to 1 if you have the 'utimensat' function. */ -#undef HAVE_UTIMENSAT - -/* Define to 1 if you have the header file. */ -#undef HAVE_UTIME_H - -/* Define to 1 if you have the header file. */ -#undef HAVE_WCHAR_H - -/* Define if compiling for AIX */ -#undef IS_AIX - -/* Define to the sub-directory where libtool stores uninstalled libraries. */ -#undef LT_OBJDIR - -/* Define to 1 if 'major', 'minor', and 'makedev' are declared in . - */ -#undef MAJOR_IN_MKDEV - -/* Define to 1 if 'major', 'minor', and 'makedev' are declared in - . */ -#undef MAJOR_IN_SYSMACROS - -/* MC configure arguments */ -#undef MC_CONFIGURE_ARGS - -/* Define if (like SVR2) there is no specific function for reading the list of - mounted file systems, and your system has these header files: - and . (SVR3) */ -#undef MOUNTED_FREAD_FSTYP - -/* Define if there are functions named next_dev and fs_stat_dev for reading - the list of mounted file systems. (BeOS) */ -#undef MOUNTED_FS_STAT_DEV - -/* Define if there is a function named getextmntent for reading the list of - mounted file systems. (Solaris) */ -#undef MOUNTED_GETEXTMNTENT - -/* Define if there is a function named getfsstat for reading the list of - mounted file systems. (DEC Alpha running OSF/1) */ -#undef MOUNTED_GETFSSTAT - -/* Define if there is a function named getmntent for reading the list of - mounted file systems, and that function takes a single argument. (4.3BSD, - SunOS, HP-UX, Irix) */ -#undef MOUNTED_GETMNTENT1 - -/* Define if there is a function named getmntent for reading the list of - mounted file systems, and that function takes two arguments. (SVR4) */ -#undef MOUNTED_GETMNTENT2 - -/* Define if there is a function named getmntinfo for reading the list of - mounted file systems and it returns an array of 'struct statfs'. (4.4BSD, - Darwin) */ -#undef MOUNTED_GETMNTINFO - -/* Define if there is a function named getmntinfo for reading the list of - mounted file systems and it returns an array of 'struct statvfs'. (NetBSD - 3.0) */ -#undef MOUNTED_GETMNTINFO2 - -/* Define if we are on interix, and ought to use statvfs plus some special - knowledge on where mounted file systems can be found. (Interix) */ -#undef MOUNTED_INTERIX_STATVFS - -/* Define if there is a function named mntctl that can be used to read the - list of mounted file systems, and there is a system header file that - declares 'struct vmount'. (AIX) */ -#undef MOUNTED_VMOUNT - -/* 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 the type that is the result of default argument promotions of - type mode_t. */ -#undef PROMOTED_MODE_T - -/* read(1) can return 0 for a non-closed fd */ -#undef PTY_ZEROREAD - -/* Define to select 'glib-regexp' search type */ -#undef SEARCH_TYPE_GLIB - -/* Define to select 'pcre2' or 'pcre' search type */ -#undef SEARCH_TYPE_PCRE - -/* Some systems declare sig_atomic_t as volatile, some others -- no. This - define will have value `sig_atomic_t' or `volatile sig_atomic_t' - accordingly. */ -#undef SIG_ATOMIC_VOLATILE_T - -/* The size of 'long', as computed by sizeof. */ -#undef SIZEOF_LONG - -/* The size of 'off_t', as computed by sizeof. */ -#undef SIZEOF_OFF_T - -/* The size of 'uintmax_t', as computed by sizeof. */ -#undef SIZEOF_UINTMAX_T - -/* Define if the block counts reported by statfs may be truncated to 2GB and - the correct values may be stored in the f_spare array. (SunOS 4.1.2, 4.1.3, - and 4.1.3_U1 are reported to have this problem. SunOS 4.1.1 seems not to be - affected.) */ -#undef STATFS_TRUNCATES_BLOCK_COUNTS - -/* Define if statfs takes 2 args and struct statfs has a field named f_bsize. - (4.3BSD, SunOS 4, HP-UX) */ -#undef STAT_STATFS2_BSIZE - -/* Define if statfs takes 2 args and struct statfs has a field named f_frsize. - (glibc/Linux > 2.6) */ -#undef STAT_STATFS2_FRSIZE - -/* Define if statfs takes 2 args and struct statfs has a field named f_fsize. - (4.4BSD, NetBSD) */ -#undef STAT_STATFS2_FSIZE - -/* Define if statfs takes 3 args. (DEC Alpha running OSF/1) */ -#undef STAT_STATFS3_OSF1 - -/* Define if statfs takes 4 args. (SVR3, old Irix) */ -#undef STAT_STATFS4 - -/* Define if there is a function named statvfs. (SVR4) */ -#undef STAT_STATVFS - -/* Define if statvfs64 should be preferred over statvfs. */ -#undef STAT_STATVFS64 - -/* Define to 1 if all of the C89 standard headers exist (not just the ones - required in a freestanding environment). This macro is provided for - backward compatibility; new code need not use it. */ -#undef STDC_HEADERS - -/* Define to 1 if the f_fsid member of struct statfs is an integer. */ -#undef STRUCT_STATFS_F_FSID_IS_INTEGER - -/* Define to 1 if the f_fsid member of struct statvfs is an integer. */ -#undef STRUCT_STATVFS_F_FSID_IS_INTEGER - -/* Define to make subshell support optional */ -#undef SUBSHELL_OPTIONAL - -/* Define to enable diff viewer */ -#undef USE_DIFF_VIEW - -/* Define if the file command accepts the -z option */ -#undef USE_FILE_CMD - -/* Define to enable internal editor */ -#undef USE_INTERNAL_EDIT - -/* Use maintainer mode */ -#undef USE_MAINTAINER_MODE - -/* Define to use ncurses for screen management */ -#undef USE_NCURSES - -/* Define to use ncursesw for screen management */ -#undef USE_NCURSESW - -/* Enable extensions on AIX, Interix, z/OS. */ -#ifndef _ALL_SOURCE -# undef _ALL_SOURCE -#endif -/* Enable general extensions on macOS. */ -#ifndef _DARWIN_C_SOURCE -# undef _DARWIN_C_SOURCE -#endif -/* Enable general extensions on Solaris. */ -#ifndef __EXTENSIONS__ -# undef __EXTENSIONS__ -#endif -/* Enable GNU extensions on systems that have them. */ -#ifndef _GNU_SOURCE -# undef _GNU_SOURCE -#endif -/* Enable X/Open compliant socket functions that do not require linking - with -lxnet on HP-UX 11.11. */ -#ifndef _HPUX_ALT_XOPEN_SOCKET_API -# undef _HPUX_ALT_XOPEN_SOCKET_API -#endif -/* Identify the host operating system as Minix. - This macro does not affect the system headers' behavior. - A future release of Autoconf may stop defining this macro. */ -#ifndef _MINIX -# undef _MINIX -#endif -/* Enable general extensions on NetBSD. - Enable NetBSD compatibility extensions on Minix. */ -#ifndef _NETBSD_SOURCE -# undef _NETBSD_SOURCE -#endif -/* Enable OpenBSD compatibility extensions on NetBSD. - Oddly enough, this does nothing on OpenBSD. */ -#ifndef _OPENBSD_SOURCE -# undef _OPENBSD_SOURCE -#endif -/* Define to 1 if needed for POSIX-compatible behavior. */ -#ifndef _POSIX_SOURCE -# undef _POSIX_SOURCE -#endif -/* Define to 2 if needed for POSIX-compatible behavior. */ -#ifndef _POSIX_1_SOURCE -# undef _POSIX_1_SOURCE -#endif -/* Enable POSIX-compatible threading on Solaris. */ -#ifndef _POSIX_PTHREAD_SEMANTICS -# undef _POSIX_PTHREAD_SEMANTICS -#endif -/* Enable extensions specified by ISO/IEC TS 18661-5:2014. */ -#ifndef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ -# undef __STDC_WANT_IEC_60559_ATTRIBS_EXT__ -#endif -/* Enable extensions specified by ISO/IEC TS 18661-1:2014. */ -#ifndef __STDC_WANT_IEC_60559_BFP_EXT__ -# undef __STDC_WANT_IEC_60559_BFP_EXT__ -#endif -/* Enable extensions specified by ISO/IEC TS 18661-2:2015. */ -#ifndef __STDC_WANT_IEC_60559_DFP_EXT__ -# undef __STDC_WANT_IEC_60559_DFP_EXT__ -#endif -/* Enable extensions specified by C23 Annex F. */ -#ifndef __STDC_WANT_IEC_60559_EXT__ -# undef __STDC_WANT_IEC_60559_EXT__ -#endif -/* Enable extensions specified by ISO/IEC TS 18661-4:2015. */ -#ifndef __STDC_WANT_IEC_60559_FUNCS_EXT__ -# undef __STDC_WANT_IEC_60559_FUNCS_EXT__ -#endif -/* Enable extensions specified by C23 Annex H and ISO/IEC TS 18661-3:2015. */ -#ifndef __STDC_WANT_IEC_60559_TYPES_EXT__ -# undef __STDC_WANT_IEC_60559_TYPES_EXT__ -#endif -/* Enable extensions specified by ISO/IEC TR 24731-2:2010. */ -#ifndef __STDC_WANT_LIB_EXT2__ -# undef __STDC_WANT_LIB_EXT2__ -#endif -/* Enable extensions specified by ISO/IEC 24747:2009. */ -#ifndef __STDC_WANT_MATH_SPEC_FUNCS__ -# undef __STDC_WANT_MATH_SPEC_FUNCS__ -#endif -/* Enable extensions on HP NonStop. */ -#ifndef _TANDEM_SOURCE -# undef _TANDEM_SOURCE -#endif -/* Enable X/Open extensions. Define to 500 only if necessary - to make mbstate_t available. */ -#ifndef _XOPEN_SOURCE -# undef _XOPEN_SOURCE -#endif - - -/* Define to use termcap database */ -#undef USE_TERMCAP - -/* Define to 1 if the X Window System is missing or not being used. */ -#undef X_DISPLAY_MISSING - -/* Number of bits in a file offset, on hosts where this is settable. */ -#undef _FILE_OFFSET_BITS - -/* Define to 1 on platforms where this makes off_t a 64-bit type. */ -#undef _LARGE_FILES - -/* Number of bits in time_t, on hosts where this is settable. */ -#undef _TIME_BITS - -/* Define to 1 on platforms where this makes time_t a 64-bit type. */ -#undef __MINGW_USE_VC2005_COMPAT - -/* Define to 'unsigned long long int' if does not define. */ -#undef dev_t - -/* Define as 'int' if doesn't define. */ -#undef gid_t - -/* Define to 'unsigned long long int' if does not define. */ -#undef ino_t - -/* Define to 'unsigned int' if does not define. */ -#undef major_t - -/* Define to 'unsigned int' if does not define. */ -#undef minor_t - -/* Define to 'int' if does not define. */ -#undef mode_t - -/* Define to 'unsigned int' if does not define. */ -#undef nlink_t - -/* Define to 'long int' if does not define. */ -#undef off_t - -/* Define as a signed integer type capable of holding a process identifier. */ -#undef pid_t - -/* Define to 'int' if does not define. */ -#undef sig_atomic_t - -/* Define as 'int' if doesn't define. */ -#undef uid_t - -/* Define to the widest unsigned integer type if and - do not define. */ -#undef uintmax_t diff --git a/recipes/wip/files/mc/source/config/compile b/recipes/wip/files/mc/source/config/compile deleted file mode 100755 index df363c8fbf..0000000000 --- a/recipes/wip/files/mc/source/config/compile +++ /dev/null @@ -1,348 +0,0 @@ -#! /bin/sh -# Wrapper for compilers which do not understand '-c -o'. - -scriptversion=2018-03-07.03; # UTC - -# Copyright (C) 1999-2021 Free Software Foundation, Inc. -# Written by Tom Tromey . -# -# 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. - -# This file is maintained in Automake, please report -# bugs to or send patches to -# . - -nl=' -' - -# We need space, tab and new line, in precisely that order. Quoting is -# there to prevent tools from complaining about whitespace usage. -IFS=" "" $nl" - -file_conv= - -# func_file_conv build_file lazy -# Convert a $build file to $host form and store it in $file -# Currently only supports Windows hosts. If the determined conversion -# type is listed in (the comma separated) LAZY, no conversion will -# take place. -func_file_conv () -{ - file=$1 - case $file in - / | /[!/]*) # absolute file, and not a UNC file - if test -z "$file_conv"; then - # lazily determine how to convert abs files - case `uname -s` in - MINGW*) - file_conv=mingw - ;; - CYGWIN* | MSYS*) - file_conv=cygwin - ;; - *) - file_conv=wine - ;; - esac - fi - case $file_conv/,$2, in - *,$file_conv,*) - ;; - mingw/*) - file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` - ;; - cygwin/* | msys/*) - file=`cygpath -m "$file" || echo "$file"` - ;; - wine/*) - file=`winepath -w "$file" || echo "$file"` - ;; - esac - ;; - esac -} - -# func_cl_dashL linkdir -# Make cl look for libraries in LINKDIR -func_cl_dashL () -{ - func_file_conv "$1" - if test -z "$lib_path"; then - lib_path=$file - else - lib_path="$lib_path;$file" - fi - linker_opts="$linker_opts -LIBPATH:$file" -} - -# func_cl_dashl library -# Do a library search-path lookup for cl -func_cl_dashl () -{ - lib=$1 - found=no - save_IFS=$IFS - IFS=';' - for dir in $lib_path $LIB - do - IFS=$save_IFS - if $shared && test -f "$dir/$lib.dll.lib"; then - found=yes - lib=$dir/$lib.dll.lib - break - fi - if test -f "$dir/$lib.lib"; then - found=yes - lib=$dir/$lib.lib - break - fi - if test -f "$dir/lib$lib.a"; then - found=yes - lib=$dir/lib$lib.a - break - fi - done - IFS=$save_IFS - - if test "$found" != yes; then - lib=$lib.lib - fi -} - -# func_cl_wrapper cl arg... -# Adjust compile command to suit cl -func_cl_wrapper () -{ - # Assume a capable shell - lib_path= - shared=: - linker_opts= - for arg - do - if test -n "$eat"; then - eat= - else - case $1 in - -o) - # configure might choose to run compile as 'compile cc -o foo foo.c'. - eat=1 - case $2 in - *.o | *.[oO][bB][jJ]) - func_file_conv "$2" - set x "$@" -Fo"$file" - shift - ;; - *) - func_file_conv "$2" - set x "$@" -Fe"$file" - shift - ;; - esac - ;; - -I) - eat=1 - func_file_conv "$2" mingw - set x "$@" -I"$file" - shift - ;; - -I*) - func_file_conv "${1#-I}" mingw - set x "$@" -I"$file" - shift - ;; - -l) - eat=1 - func_cl_dashl "$2" - set x "$@" "$lib" - shift - ;; - -l*) - func_cl_dashl "${1#-l}" - set x "$@" "$lib" - shift - ;; - -L) - eat=1 - func_cl_dashL "$2" - ;; - -L*) - func_cl_dashL "${1#-L}" - ;; - -static) - shared=false - ;; - -Wl,*) - arg=${1#-Wl,} - save_ifs="$IFS"; IFS=',' - for flag in $arg; do - IFS="$save_ifs" - linker_opts="$linker_opts $flag" - done - IFS="$save_ifs" - ;; - -Xlinker) - eat=1 - linker_opts="$linker_opts $2" - ;; - -*) - set x "$@" "$1" - shift - ;; - *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) - func_file_conv "$1" - set x "$@" -Tp"$file" - shift - ;; - *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO]) - func_file_conv "$1" mingw - set x "$@" "$file" - shift - ;; - *) - set x "$@" "$1" - shift - ;; - esac - fi - shift - done - if test -n "$linker_opts"; then - linker_opts="-link$linker_opts" - fi - exec "$@" $linker_opts - exit 1 -} - -eat= - -case $1 in - '') - echo "$0: No command. Try '$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: compile [--help] [--version] PROGRAM [ARGS] - -Wrapper for compilers which do not understand '-c -o'. -Remove '-o dest.o' from ARGS, run PROGRAM with the remaining -arguments, and rename the output as expected. - -If you are trying to build a whole package this is not the -right script to run: please start by reading the file 'INSTALL'. - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "compile $scriptversion" - exit $? - ;; - cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \ - icl | *[/\\]icl | icl.exe | *[/\\]icl.exe ) - func_cl_wrapper "$@" # Doesn't return... - ;; -esac - -ofile= -cfile= - -for arg -do - if test -n "$eat"; then - eat= - else - case $1 in - -o) - # configure might choose to run compile as 'compile cc -o foo foo.c'. - # So we strip '-o arg' only if arg is an object. - eat=1 - case $2 in - *.o | *.obj) - ofile=$2 - ;; - *) - set x "$@" -o "$2" - shift - ;; - esac - ;; - *.c) - cfile=$1 - set x "$@" "$1" - shift - ;; - *) - set x "$@" "$1" - shift - ;; - esac - fi - shift -done - -if test -z "$ofile" || test -z "$cfile"; then - # If no '-o' option was seen then we might have been invoked from a - # pattern rule where we don't need one. That is ok -- this is a - # normal compilation that the losing compiler can handle. If no - # '.c' file was seen then we are probably linking. That is also - # ok. - exec "$@" -fi - -# Name of file we expect compiler to create. -cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'` - -# Create the lock directory. -# Note: use '[/\\:.-]' here to ensure that we don't use the same name -# that we are using for the .o file. Also, base the name on the expected -# object file name, since that is what matters with a parallel build. -lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d -while true; do - if mkdir "$lockdir" >/dev/null 2>&1; then - break - fi - sleep 1 -done -# FIXME: race condition here if user kills between mkdir and trap. -trap "rmdir '$lockdir'; exit 1" 1 2 15 - -# Run the compile. -"$@" -ret=$? - -if test -f "$cofile"; then - test "$cofile" = "$ofile" || mv "$cofile" "$ofile" -elif test -f "${cofile}bj"; then - test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile" -fi - -rmdir "$lockdir" -exit $ret - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC0" -# time-stamp-end: "; # UTC" -# End: diff --git a/recipes/wip/files/mc/source/config/config.guess b/recipes/wip/files/mc/source/config/config.guess deleted file mode 100755 index f9c22a043a..0000000000 --- a/recipes/wip/files/mc/source/config/config.guess +++ /dev/null @@ -1,1812 +0,0 @@ -#!/usr/bin/sh -# Attempt to guess a canonical system name. -# Copyright 1992-2024 Free Software Foundation, Inc. - -# shellcheck disable=SC2006,SC2268 # see below for rationale - -timestamp='2024-01-01' - -# 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 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, see . -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that -# program. This Exception is an additional permission under section 7 -# of the GNU General Public License, version 3 ("GPLv3"). -# -# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. -# -# You can get the latest version of this script from: -# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess -# -# Please send patches to . - - -# The "shellcheck disable" line above the timestamp inhibits complaints -# about features and limitations of the classic Bourne shell that were -# superseded or lifted in POSIX. However, this script identifies a wide -# variety of pre-POSIX systems that do not have POSIX shells at all, and -# even some reasonably current systems (Solaris 10 as case-in-point) still -# have a pre-POSIX /bin/sh. - - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] - -Output the configuration name of the system '$me' is run on. - -Options: - -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 1992-2024 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 - -# Just in case it came from the environment. -GUESS= - -# 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. - -tmp= -# shellcheck disable=SC2172 -trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15 - -set_cc_for_build() { - # prevent multiple calls if $tmp is already set - test "$tmp" && return 0 - : "${TMPDIR=/tmp}" - # shellcheck disable=SC2039,SC3028 - { 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" 2>/dev/null) ; } || - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } || - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } - dummy=$tmp/dummy - case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in - ,,) echo "int x;" > "$dummy.c" - for driver in cc gcc c89 c99 ; do - if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then - CC_FOR_BUILD=$driver - 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 -} - -# 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 ; 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 - -case $UNAME_SYSTEM in -Linux|GNU|GNU/*) - LIBC=unknown - - set_cc_for_build - cat <<-EOF > "$dummy.c" - #if defined(__ANDROID__) - LIBC=android - #else - #include - #if defined(__UCLIBC__) - LIBC=uclibc - #elif defined(__dietlibc__) - LIBC=dietlibc - #elif defined(__GLIBC__) - LIBC=gnu - #elif defined(__LLVM_LIBC__) - LIBC=llvm - #else - #include - /* First heuristic to detect musl libc. */ - #ifdef __DEFINED_va_list - LIBC=musl - #endif - #endif - #endif - EOF - cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` - eval "$cc_set_libc" - - # Second heuristic to detect musl libc. - if [ "$LIBC" = unknown ] && - command -v ldd >/dev/null && - ldd --version 2>&1 | grep -q ^musl; then - LIBC=musl - fi - - # If the system lacks a compiler, then just pick glibc. - # We could probably try harder. - if [ "$LIBC" = unknown ]; then - LIBC=gnu - fi - ;; -esac - -# 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 tuples: *-*-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". - UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ - /sbin/sysctl -n hw.machine_arch 2>/dev/null || \ - /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \ - echo unknown)` - case $UNAME_MACHINE_ARCH in - aarch64eb) machine=aarch64_be-unknown ;; - armeb) machine=armeb-unknown ;; - arm*) machine=arm-unknown ;; - sh3el) machine=shl-unknown ;; - sh3eb) machine=sh-unknown ;; - sh5el) machine=sh5le-unknown ;; - earmv*) - arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` - endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` - machine=${arch}${endian}-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) and ABI. - case $UNAME_MACHINE_ARCH in - earm*) - os=netbsdelf - ;; - arm*|i386|m68k|ns32k|sh3*|sparc|vax) - 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 - # Determine ABI tags. - case $UNAME_MACHINE_ARCH in - earm*) - expr='s/^earmv[0-9]/-eabi/;s/eb$//' - abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` - ;; - 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/[-_].*//' | cut -d. -f1,2` - ;; - esac - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: - # contains redundant information, the shorter form: - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. - GUESS=$machine-${os}${release}${abi-} - ;; - *:Bitrig:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` - GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE - ;; - *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` - GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE - ;; - *:SecBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'` - GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE - ;; - *:LibertyBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` - GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE - ;; - *:MidnightBSD:*:*) - GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE - ;; - *:ekkoBSD:*:*) - GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE - ;; - *:SolidBSD:*:*) - GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE - ;; - *:OS108:*:*) - GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE - ;; - macppc:MirBSD:*:*) - GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE - ;; - *:MirBSD:*:*) - GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE - ;; - *:Sortix:*:*) - GUESS=$UNAME_MACHINE-unknown-sortix - ;; - *:Twizzler:*:*) - GUESS=$UNAME_MACHINE-unknown-twizzler - ;; - *:Redox:*:*) - GUESS=$UNAME_MACHINE-unknown-redox - ;; - mips:OSF1:*.*) - GUESS=mips-dec-osf1 - ;; - alpha:OSF1:*:*) - # Reset EXIT trap before exiting to avoid spurious non-zero exit code. - trap '' 0 - 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. - OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` - GUESS=$UNAME_MACHINE-dec-osf$OSF_REL - ;; - Amiga*:UNIX_System_V:4.0:*) - GUESS=m68k-unknown-sysv4 - ;; - *:[Aa]miga[Oo][Ss]:*:*) - GUESS=$UNAME_MACHINE-unknown-amigaos - ;; - *:[Mm]orph[Oo][Ss]:*:*) - GUESS=$UNAME_MACHINE-unknown-morphos - ;; - *:OS/390:*:*) - GUESS=i370-ibm-openedition - ;; - *:z/VM:*:*) - GUESS=s390-ibm-zvmoe - ;; - *:OS400:*:*) - GUESS=powerpc-ibm-os400 - ;; - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) - GUESS=arm-acorn-riscix$UNAME_RELEASE - ;; - arm*:riscos:*:*|arm*:RISCOS:*:*) - GUESS=arm-unknown-riscos - ;; - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) - GUESS=hppa1.1-hitachi-hiuxmpp - ;; - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - case `(/bin/universe) 2>/dev/null` in - att) GUESS=pyramid-pyramid-sysv3 ;; - *) GUESS=pyramid-pyramid-bsd ;; - esac - ;; - NILE*:*:*:dcosx) - GUESS=pyramid-pyramid-svr4 - ;; - DRS?6000:unix:4.0:6*) - GUESS=sparc-icl-nx6 - ;; - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in - sparc) GUESS=sparc-icl-nx7 ;; - esac - ;; - s390x:SunOS:*:*) - SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` - GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL - ;; - sun4H:SunOS:5.*:*) - SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` - GUESS=sparc-hal-solaris2$SUN_REL - ;; - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` - GUESS=sparc-sun-solaris2$SUN_REL - ;; - i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) - GUESS=i386-pc-auroraux$UNAME_RELEASE - ;; - i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - 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 test "$CC_FOR_BUILD" != no_compiler_found; then - if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \ - grep IS_64BIT_ARCH >/dev/null - then - SUN_ARCH=x86_64 - fi - fi - SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` - GUESS=$SUN_ARCH-pc-solaris2$SUN_REL - ;; - 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. - SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` - GUESS=sparc-sun-solaris3$SUN_REL - ;; - 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'. - SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'` - GUESS=sparc-sun-sunos$SUN_REL - ;; - sun3*:SunOS:*:*) - GUESS=m68k-sun-sunos$UNAME_RELEASE - ;; - 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) - GUESS=m68k-sun-sunos$UNAME_RELEASE - ;; - sun4) - GUESS=sparc-sun-sunos$UNAME_RELEASE - ;; - esac - ;; - aushp:SunOS:*:*) - GUESS=sparc-auspex-sunos$UNAME_RELEASE - ;; - # 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:*:*) - GUESS=m68k-atari-mint$UNAME_RELEASE - ;; - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) - GUESS=m68k-atari-mint$UNAME_RELEASE - ;; - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - GUESS=m68k-atari-mint$UNAME_RELEASE - ;; - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - GUESS=m68k-milan-mint$UNAME_RELEASE - ;; - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - GUESS=m68k-hades-mint$UNAME_RELEASE - ;; - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - GUESS=m68k-unknown-mint$UNAME_RELEASE - ;; - m68k:machten:*:*) - GUESS=m68k-apple-machten$UNAME_RELEASE - ;; - powerpc:machten:*:*) - GUESS=powerpc-apple-machten$UNAME_RELEASE - ;; - RISC*:Mach:*:*) - GUESS=mips-dec-mach_bsd4.3 - ;; - RISC*:ULTRIX:*:*) - GUESS=mips-dec-ultrix$UNAME_RELEASE - ;; - VAX*:ULTRIX*:*:*) - GUESS=vax-dec-ultrix$UNAME_RELEASE - ;; - 2020:CLIX:*:* | 2430:CLIX:*:*) - GUESS=clipper-intergraph-clix$UNAME_RELEASE - ;; - mips:*:*:UMIPS | mips:*:*:RISCos) - 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; } - GUESS=mips-mips-riscos$UNAME_RELEASE - ;; - Motorola:PowerMAX_OS:*:*) - GUESS=powerpc-motorola-powermax - ;; - Motorola:*:4.3:PL8-*) - GUESS=powerpc-harris-powermax - ;; - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) - GUESS=powerpc-harris-powermax - ;; - Night_Hawk:Power_UNIX:*:*) - GUESS=powerpc-harris-powerunix - ;; - m88k:CX/UX:7*:*) - GUESS=m88k-harris-cxux7 - ;; - m88k:*:4*:R4*) - GUESS=m88k-motorola-sysv4 - ;; - m88k:*:3*:R3*) - GUESS=m88k-motorola-sysv3 - ;; - AViiON:dgux:*:*) - # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 - then - if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ - test "$TARGET_BINARY_INTERFACE"x = x - then - GUESS=m88k-dg-dgux$UNAME_RELEASE - else - GUESS=m88k-dg-dguxbcs$UNAME_RELEASE - fi - else - GUESS=i586-dg-dgux$UNAME_RELEASE - fi - ;; - M88*:DolphinOS:*:*) # DolphinOS (SVR3) - GUESS=m88k-dolphin-sysv3 - ;; - M88*:*:R3*:*) - # Delta 88k system running SVR3 - GUESS=m88k-motorola-sysv3 - ;; - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) - GUESS=m88k-tektronix-sysv3 - ;; - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) - GUESS=m68k-tektronix-bsd - ;; - *:IRIX*:*:*) - IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'` - GUESS=mips-sgi-irix$IRIX_REL - ;; - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. - GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id - ;; # Note that: echo "'`uname -s`'" gives 'AIX ' - i*86:AIX:*:*) - GUESS=i386-ibm-aix - ;; - ia64:AIX:*:*) - if test -x /usr/bin/oslevel ; then - IBM_REV=`/usr/bin/oslevel` - else - IBM_REV=$UNAME_VERSION.$UNAME_RELEASE - fi - GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV - ;; - *:AIX:2:3) - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then - 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 - GUESS=$SYSTEM_NAME - else - GUESS=rs6000-ibm-aix3.2.5 - fi - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then - GUESS=rs6000-ibm-aix3.2.4 - else - GUESS=rs6000-ibm-aix3.2 - fi - ;; - *:AIX:*:[4567]) - 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 test -x /usr/bin/lslpp ; then - IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \ - awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` - else - IBM_REV=$UNAME_VERSION.$UNAME_RELEASE - fi - GUESS=$IBM_ARCH-ibm-aix$IBM_REV - ;; - *:AIX:*:*) - GUESS=rs6000-ibm-aix - ;; - ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) - GUESS=romp-ibm-bsd4.4 - ;; - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and - GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to - ;; # report: romp-ibm BSD 4.3 - *:BOSX:*:*) - GUESS=rs6000-bull-bosx - ;; - DPX/2?00:B.O.S.:*:*) - GUESS=m68k-bull-sysv3 - ;; - 9000/[34]??:4.3bsd:1.*:*) - GUESS=m68k-hp-bsd - ;; - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) - GUESS=m68k-hp-bsd4.4 - ;; - 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 test -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 test "$HP_ARCH" = ""; then - 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 test "$HP_ARCH" = hppa2.0w - then - 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 - GUESS=$HP_ARCH-hp-hpux$HPUX_REV - ;; - ia64:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'` - GUESS=ia64-hp-hpux$HPUX_REV - ;; - 3050*:HI-UX:*:*) - 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; } - GUESS=unknown-hitachi-hiuxwe2 - ;; - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) - GUESS=hppa1.1-hp-bsd - ;; - 9000/8??:4.3bsd:*:*) - GUESS=hppa1.0-hp-bsd - ;; - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) - GUESS=hppa1.0-hp-mpeix - ;; - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) - GUESS=hppa1.1-hp-osf - ;; - hp8??:OSF1:*:*) - GUESS=hppa1.0-hp-osf - ;; - i*86:OSF1:*:*) - if test -x /usr/sbin/sysversion ; then - GUESS=$UNAME_MACHINE-unknown-osf1mk - else - GUESS=$UNAME_MACHINE-unknown-osf1 - fi - ;; - parisc*:Lites*:*:*) - GUESS=hppa1.1-hp-lites - ;; - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) - GUESS=c1-convex-bsd - ;; - 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*:*) - GUESS=c34-convex-bsd - ;; - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) - GUESS=c38-convex-bsd - ;; - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) - GUESS=c4-convex-bsd - ;; - CRAY*Y-MP:*:*:*) - CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` - GUESS=ymp-cray-unicos$CRAY_REL - ;; - 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:*:*:*) - CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` - GUESS=t90-cray-unicos$CRAY_REL - ;; - CRAY*T3E:*:*:*) - CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` - GUESS=alphaev5-cray-unicosmk$CRAY_REL - ;; - CRAY*SV1:*:*:*) - CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` - GUESS=sv1-cray-unicos$CRAY_REL - ;; - *:UNICOS/mp:*:*) - CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'` - GUESS=craynv-cray-unicosmp$CRAY_REL - ;; - 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/ /_/'` - GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} - ;; - 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/ /_/'` - GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL} - ;; - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) - GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE - ;; - sparc*:BSD/OS:*:*) - GUESS=sparc-unknown-bsdi$UNAME_RELEASE - ;; - *:BSD/OS:*:*) - GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE - ;; - arm:FreeBSD:*:*) - UNAME_PROCESSOR=`uname -p` - set_cc_for_build - if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_PCS_VFP - then - FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` - GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi - else - FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` - GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf - fi - ;; - *:FreeBSD:*:*) - UNAME_PROCESSOR=`uname -p` - case $UNAME_PROCESSOR in - amd64) - UNAME_PROCESSOR=x86_64 ;; - i386) - UNAME_PROCESSOR=i586 ;; - esac - FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` - GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL - ;; - i*:CYGWIN*:*) - GUESS=$UNAME_MACHINE-pc-cygwin - ;; - *:MINGW64*:*) - GUESS=$UNAME_MACHINE-pc-mingw64 - ;; - *:MINGW*:*) - GUESS=$UNAME_MACHINE-pc-mingw32 - ;; - *:MSYS*:*) - GUESS=$UNAME_MACHINE-pc-msys - ;; - i*:PW*:*) - GUESS=$UNAME_MACHINE-pc-pw32 - ;; - *:SerenityOS:*:*) - GUESS=$UNAME_MACHINE-pc-serenity - ;; - *:Interix*:*) - case $UNAME_MACHINE in - x86) - GUESS=i586-pc-interix$UNAME_RELEASE - ;; - authenticamd | genuineintel | EM64T) - GUESS=x86_64-unknown-interix$UNAME_RELEASE - ;; - IA64) - GUESS=ia64-unknown-interix$UNAME_RELEASE - ;; - esac ;; - i*:UWIN*:*) - GUESS=$UNAME_MACHINE-pc-uwin - ;; - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - GUESS=x86_64-pc-cygwin - ;; - prep*:SunOS:5.*:*) - SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'` - GUESS=powerpcle-unknown-solaris2$SUN_REL - ;; - *:GNU:*:*) - # the GNU system - GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'` - GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'` - GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL - ;; - *:GNU/*:*:*) - # other systems with GNU libc and userland - GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"` - GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` - GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC - ;; - x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*) - GUESS="$UNAME_MACHINE-pc-managarm-mlibc" - ;; - *:[Mm]anagarm:*:*) - GUESS="$UNAME_MACHINE-unknown-managarm-mlibc" - ;; - *:Minix:*:*) - GUESS=$UNAME_MACHINE-unknown-minix - ;; - aarch64:Linux:*:*) - set_cc_for_build - CPU=$UNAME_MACHINE - LIBCABI=$LIBC - if test "$CC_FOR_BUILD" != no_compiler_found; then - ABI=64 - sed 's/^ //' << EOF > "$dummy.c" - #ifdef __ARM_EABI__ - #ifdef __ARM_PCS_VFP - ABI=eabihf - #else - ABI=eabi - #endif - #endif -EOF - cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` - eval "$cc_set_abi" - case $ABI in - eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;; - esac - fi - GUESS=$CPU-unknown-linux-$LIBCABI - ;; - aarch64_be:Linux:*:*) - UNAME_MACHINE=aarch64_be - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` 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=gnulibc1 ; fi - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - arm*:Linux:*:*) - set_cc_for_build - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_EABI__ - then - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - else - if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ - | grep -q __ARM_PCS_VFP - then - GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi - else - GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf - fi - fi - ;; - avr32*:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - cris:Linux:*:*) - GUESS=$UNAME_MACHINE-axis-linux-$LIBC - ;; - crisv32:Linux:*:*) - GUESS=$UNAME_MACHINE-axis-linux-$LIBC - ;; - e2k:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - frv:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - hexagon:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - i*86:Linux:*:*) - GUESS=$UNAME_MACHINE-pc-linux-$LIBC - ;; - ia64:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - k1om:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - kvx:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - kvx:cos:*:*) - GUESS=$UNAME_MACHINE-unknown-cos - ;; - kvx:mbr:*:*) - GUESS=$UNAME_MACHINE-unknown-mbr - ;; - loongarch32:Linux:*:* | loongarch64:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - m32r*:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - m68*:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - mips:Linux:*:* | mips64:Linux:*:*) - set_cc_for_build - IS_GLIBC=0 - test x"${LIBC}" = xgnu && IS_GLIBC=1 - sed 's/^ //' << EOF > "$dummy.c" - #undef CPU - #undef mips - #undef mipsel - #undef mips64 - #undef mips64el - #if ${IS_GLIBC} && defined(_ABI64) - LIBCABI=gnuabi64 - #else - #if ${IS_GLIBC} && defined(_ABIN32) - LIBCABI=gnuabin32 - #else - LIBCABI=${LIBC} - #endif - #endif - - #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 - CPU=mipsisa64r6 - #else - #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6 - CPU=mipsisa32r6 - #else - #if defined(__mips64) - CPU=mips64 - #else - CPU=mips - #endif - #endif - #endif - - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) - MIPS_ENDIAN=el - #else - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - MIPS_ENDIAN= - #else - MIPS_ENDIAN= - #endif - #endif -EOF - cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'` - eval "$cc_set_vars" - test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } - ;; - mips64el:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - openrisc*:Linux:*:*) - GUESS=or1k-unknown-linux-$LIBC - ;; - or32:Linux:*:* | or1k*:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - padre:Linux:*:*) - GUESS=sparc-unknown-linux-$LIBC - ;; - parisc64:Linux:*:* | hppa64:Linux:*:*) - GUESS=hppa64-unknown-linux-$LIBC - ;; - parisc:Linux:*:* | hppa:Linux:*:*) - # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in - PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;; - PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;; - *) GUESS=hppa-unknown-linux-$LIBC ;; - esac - ;; - ppc64:Linux:*:*) - GUESS=powerpc64-unknown-linux-$LIBC - ;; - ppc:Linux:*:*) - GUESS=powerpc-unknown-linux-$LIBC - ;; - ppc64le:Linux:*:*) - GUESS=powerpc64le-unknown-linux-$LIBC - ;; - ppcle:Linux:*:*) - GUESS=powerpcle-unknown-linux-$LIBC - ;; - riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - s390:Linux:*:* | s390x:Linux:*:*) - GUESS=$UNAME_MACHINE-ibm-linux-$LIBC - ;; - sh64*:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - sh*:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - sparc:Linux:*:* | sparc64:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - tile*:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - vax:Linux:*:*) - GUESS=$UNAME_MACHINE-dec-linux-$LIBC - ;; - x86_64:Linux:*:*) - set_cc_for_build - CPU=$UNAME_MACHINE - LIBCABI=$LIBC - if test "$CC_FOR_BUILD" != no_compiler_found; then - ABI=64 - sed 's/^ //' << EOF > "$dummy.c" - #ifdef __i386__ - ABI=x86 - #else - #ifdef __ILP32__ - ABI=x32 - #endif - #endif -EOF - cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'` - eval "$cc_set_abi" - case $ABI in - x86) CPU=i686 ;; - x32) LIBCABI=${LIBC}x32 ;; - esac - fi - GUESS=$CPU-pc-linux-$LIBCABI - ;; - xtensa*:Linux:*:*) - GUESS=$UNAME_MACHINE-unknown-linux-$LIBC - ;; - 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. - GUESS=i386-sequent-sysv4 - ;; - 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. - GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION - ;; - i*86:OS/2:*:*) - # If we were able to find 'uname', then EMX Unix compatibility - # is probably installed. - GUESS=$UNAME_MACHINE-pc-os2-emx - ;; - i*86:XTS-300:*:STOP) - GUESS=$UNAME_MACHINE-unknown-stop - ;; - i*86:atheos:*:*) - GUESS=$UNAME_MACHINE-unknown-atheos - ;; - i*86:syllable:*:*) - GUESS=$UNAME_MACHINE-pc-syllable - ;; - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) - GUESS=i386-unknown-lynxos$UNAME_RELEASE - ;; - i*86:*DOS:*:*) - GUESS=$UNAME_MACHINE-pc-msdosdjgpp - ;; - i*86:*:4.*:*) - UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then - GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL - else - GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL - fi - ;; - 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 - GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} - ;; - 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 - GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL - else - GUESS=$UNAME_MACHINE-pc-sysv32 - fi - ;; - 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 configure will decide that - # this is a cross-build. - GUESS=i586-pc-msdosdjgpp - ;; - Intel:Mach:3*:*) - GUESS=i386-pc-mach3 - ;; - paragon:*:*:*) - GUESS=i860-intel-osf1 - ;; - i860:*:4.*:*) # i860-SVR4 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then - GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4 - else # Add other i860-SVR4 vendors below as they are discovered. - GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4 - fi - ;; - mini*:CTIX:SYS*5:*) - # "miniframe" - GUESS=m68010-convergent-sysv - ;; - mc68k:UNIX:SYSTEM5:3.51m) - GUESS=m68k-convergent-sysv - ;; - M680?0:D-NIX:5.3:*) - GUESS=m68k-diab-dnix - ;; - 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*:*) - GUESS=m68k-unknown-lynxos$UNAME_RELEASE - ;; - mc68030:UNIX_System_V:4.*:*) - GUESS=m68k-atari-sysv4 - ;; - TSUNAMI:LynxOS:2.*:*) - GUESS=sparc-unknown-lynxos$UNAME_RELEASE - ;; - rs6000:LynxOS:2.*:*) - GUESS=rs6000-unknown-lynxos$UNAME_RELEASE - ;; - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) - GUESS=powerpc-unknown-lynxos$UNAME_RELEASE - ;; - SM[BE]S:UNIX_SV:*:*) - GUESS=mips-dde-sysv$UNAME_RELEASE - ;; - RM*:ReliantUNIX-*:*:*) - GUESS=mips-sni-sysv4 - ;; - RM*:SINIX-*:*:*) - GUESS=mips-sni-sysv4 - ;; - *:SINIX-*:*:*) - if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` - GUESS=$UNAME_MACHINE-sni-sysv4 - else - GUESS=ns32k-sni-sysv - fi - ;; - PENTIUM:*:4.0*:*) # Unisys 'ClearPath HMP IX 4000' SVR4/MP effort - # says - GUESS=i586-unisys-sysv4 - ;; - *:UNIX_System_V:4*:FTX*) - # From Gerald Hewes . - # How about differentiating between stratus architectures? -djm - GUESS=hppa1.1-stratus-sysv4 - ;; - *:*:*:FTX*) - # From seanf@swdc.stratus.com. - GUESS=i860-stratus-sysv4 - ;; - i*86:VOS:*:*) - # From Paul.Green@stratus.com. - GUESS=$UNAME_MACHINE-stratus-vos - ;; - *:VOS:*:*) - # From Paul.Green@stratus.com. - GUESS=hppa1.1-stratus-vos - ;; - mc68*:A/UX:*:*) - GUESS=m68k-apple-aux$UNAME_RELEASE - ;; - news*:NEWS-OS:6*:*) - GUESS=mips-sony-newsos6 - ;; - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if test -d /usr/nec; then - GUESS=mips-nec-sysv$UNAME_RELEASE - else - GUESS=mips-unknown-sysv$UNAME_RELEASE - fi - ;; - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. - GUESS=powerpc-be-beos - ;; - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. - GUESS=powerpc-apple-beos - ;; - BePC:BeOS:*:*) # BeOS running on Intel PC compatible. - GUESS=i586-pc-beos - ;; - BePC:Haiku:*:*) # Haiku running on Intel PC compatible. - GUESS=i586-pc-haiku - ;; - ppc:Haiku:*:*) # Haiku running on Apple PowerPC - GUESS=powerpc-apple-haiku - ;; - *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat) - GUESS=$UNAME_MACHINE-unknown-haiku - ;; - SX-4:SUPER-UX:*:*) - GUESS=sx4-nec-superux$UNAME_RELEASE - ;; - SX-5:SUPER-UX:*:*) - GUESS=sx5-nec-superux$UNAME_RELEASE - ;; - SX-6:SUPER-UX:*:*) - GUESS=sx6-nec-superux$UNAME_RELEASE - ;; - SX-7:SUPER-UX:*:*) - GUESS=sx7-nec-superux$UNAME_RELEASE - ;; - SX-8:SUPER-UX:*:*) - GUESS=sx8-nec-superux$UNAME_RELEASE - ;; - SX-8R:SUPER-UX:*:*) - GUESS=sx8r-nec-superux$UNAME_RELEASE - ;; - SX-ACE:SUPER-UX:*:*) - GUESS=sxace-nec-superux$UNAME_RELEASE - ;; - Power*:Rhapsody:*:*) - GUESS=powerpc-apple-rhapsody$UNAME_RELEASE - ;; - *:Rhapsody:*:*) - GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE - ;; - arm64:Darwin:*:*) - GUESS=aarch64-apple-darwin$UNAME_RELEASE - ;; - *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` - case $UNAME_PROCESSOR in - unknown) UNAME_PROCESSOR=powerpc ;; - esac - if command -v xcode-select > /dev/null 2> /dev/null && \ - ! xcode-select --print-path > /dev/null 2> /dev/null ; then - # Avoid executing cc if there is no toolchain installed as - # cc will be a stub that puts up a graphical alert - # prompting the user to install developer tools. - CC_FOR_BUILD=no_compiler_found - else - set_cc_for_build - fi - if test "$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 - case $UNAME_PROCESSOR in - i386) UNAME_PROCESSOR=x86_64 ;; - powerpc) UNAME_PROCESSOR=powerpc64 ;; - esac - fi - # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc - if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ - (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ - grep IS_PPC >/dev/null - then - UNAME_PROCESSOR=powerpc - fi - elif test "$UNAME_PROCESSOR" = i386 ; then - # uname -m returns i386 or x86_64 - UNAME_PROCESSOR=$UNAME_MACHINE - fi - GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE - ;; - *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` - if test "$UNAME_PROCESSOR" = x86; then - UNAME_PROCESSOR=i386 - UNAME_MACHINE=pc - fi - GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE - ;; - *:QNX:*:4*) - GUESS=i386-pc-qnx - ;; - NEO-*:NONSTOP_KERNEL:*:*) - GUESS=neo-tandem-nsk$UNAME_RELEASE - ;; - NSE-*:NONSTOP_KERNEL:*:*) - GUESS=nse-tandem-nsk$UNAME_RELEASE - ;; - NSR-*:NONSTOP_KERNEL:*:*) - GUESS=nsr-tandem-nsk$UNAME_RELEASE - ;; - NSV-*:NONSTOP_KERNEL:*:*) - GUESS=nsv-tandem-nsk$UNAME_RELEASE - ;; - NSX-*:NONSTOP_KERNEL:*:*) - GUESS=nsx-tandem-nsk$UNAME_RELEASE - ;; - *:NonStop-UX:*:*) - GUESS=mips-compaq-nonstopux - ;; - BS2000:POSIX*:*:*) - GUESS=bs2000-siemens-sysv - ;; - DS/*:UNIX_System_V:*:*) - GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE - ;; - *: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 - elif test "x${cputype-}" != x; then - UNAME_MACHINE=$cputype - fi - GUESS=$UNAME_MACHINE-unknown-plan9 - ;; - *:TOPS-10:*:*) - GUESS=pdp10-unknown-tops10 - ;; - *:TENEX:*:*) - GUESS=pdp10-unknown-tenex - ;; - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) - GUESS=pdp10-dec-tops20 - ;; - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) - GUESS=pdp10-xkl-tops20 - ;; - *:TOPS-20:*:*) - GUESS=pdp10-unknown-tops20 - ;; - *:ITS:*:*) - GUESS=pdp10-unknown-its - ;; - SEI:*:*:SEIUX) - GUESS=mips-sei-seiux$UNAME_RELEASE - ;; - *:DragonFly:*:*) - DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'` - GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL - ;; - *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` - case $UNAME_MACHINE in - A*) GUESS=alpha-dec-vms ;; - I*) GUESS=ia64-dec-vms ;; - V*) GUESS=vax-dec-vms ;; - esac ;; - *:XENIX:*:SysV) - GUESS=i386-pc-xenix - ;; - i*86:skyos:*:*) - SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'` - GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL - ;; - i*86:rdos:*:*) - GUESS=$UNAME_MACHINE-pc-rdos - ;; - i*86:Fiwix:*:*) - GUESS=$UNAME_MACHINE-pc-fiwix - ;; - *:AROS:*:*) - GUESS=$UNAME_MACHINE-unknown-aros - ;; - x86_64:VMkernel:*:*) - GUESS=$UNAME_MACHINE-unknown-esx - ;; - amd64:Isilon\ OneFS:*:*) - GUESS=x86_64-unknown-onefs - ;; - *:Unleashed:*:*) - GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE - ;; - *:Ironclad:*:*) - GUESS=$UNAME_MACHINE-unknown-ironclad - ;; -esac - -# Do we have a guess based on uname results? -if test "x$GUESS" != x; then - echo "$GUESS" - exit -fi - -# No uname command or uname output not recognized. -set_cc_for_build -cat > "$dummy.c" < -#include -#endif -#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) -#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) -#include -#if defined(_SIZE_T_) || defined(SIGLOST) -#include -#endif -#endif -#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 (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 -#if defined(_SIZE_T_) || defined(SIGLOST) - struct utsname un; - uname (&un); - printf ("vax-dec-ultrix%s\n", un.release); exit (0); -#else - printf ("vax-dec-ultrix\n"); exit (0); -#endif -#endif -#endif -#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__) -#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__) -#if defined(_SIZE_T_) || defined(SIGLOST) - struct utsname *un; - uname (&un); - printf ("mips-dec-ultrix%s\n", un.release); exit (0); -#else - printf ("mips-dec-ultrix\n"); exit (0); -#endif -#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; } - -echo "$0: unable to guess system type" >&2 - -case $UNAME_MACHINE:$UNAME_SYSTEM in - mips:Linux | mips64:Linux) - # If we got here on MIPS GNU/Linux, output extra information. - cat >&2 <&2 <&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 -fi - -exit 1 - -# Local variables: -# eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/recipes/wip/files/mc/source/config/config.rpath b/recipes/wip/files/mc/source/config/config.rpath deleted file mode 100755 index c38b914d6b..0000000000 --- a/recipes/wip/files/mc/source/config/config.rpath +++ /dev/null @@ -1,690 +0,0 @@ -#! /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-2013 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,' - ;; - mingw* | cygwin* | pw32* | os2* | cegcc*) - ;; - hpux9* | hpux10* | hpux11*) - wl='-Wl,' - ;; - irix5* | irix6* | nonstopux*) - wl='-Wl,' - ;; - linux* | k*bsd*-gnu | kopensolaris*-gnu) - case $cc_basename in - ecc*) - wl='-Wl,' - ;; - icc* | ifort*) - wl='-Wl,' - ;; - lf95*) - wl='-Wl,' - ;; - nagfor*) - wl='-Wl,-Wl,,' - ;; - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) - wl='-Wl,' - ;; - ccc*) - wl='-Wl,' - ;; - xl* | bgxl* | bgf* | mpixl*) - wl='-Wl,' - ;; - como) - wl='-lopt=' - ;; - *) - case `$CC -V 2>&1 | sed 5q` in - *Sun\ F* | *Sun*Fortran*) - wl= - ;; - *Sun\ C*) - wl='-Wl,' - ;; - esac - ;; - esac - ;; - newsos6) - ;; - *nto* | *qnx*) - ;; - osf3* | osf4* | osf5*) - wl='-Wl,' - ;; - rdos*) - ;; - solaris*) - case $cc_basename in - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) - wl='-Qoption ld ' - ;; - *) - wl='-Wl,' - ;; - esac - ;; - 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*) - case "$host_cpu" in - powerpc) - ;; - m68k) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - 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 - ;; - haiku*) - ;; - interix[3-9]*) - hardcode_direct=no - hardcode_libdir_flag_spec='${wl}-rpath,$libdir' - ;; - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-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*) - case "$host_cpu" in - powerpc) - ;; - m68k) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - 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 { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then - : - else - ld_shlibs=no - fi - ;; - dgux*) - hardcode_libdir_flag_spec='-L$libdir' - ;; - 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=: - ;; - *nto* | *qnx*) - ;; - 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*) - case "$host_cpu" in - powerpc*) - library_names_spec='$libname$shrext' ;; - m68k) - library_names_spec='$libname.a' ;; - esac - ;; - 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' - ;; - 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' - ;; - haiku*) - 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 | kopensolaris*-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' - ;; - tpf*) - 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=/' <. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that -# program. This Exception is an additional permission under section 7 -# of the GNU General Public License, version 3 ("GPLv3"). - - -# Please send patches to . -# -# 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: -# https://git.savannah.gnu.org/cgit/config.git/plain/config.sub - -# 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. - -# The "shellcheck disable" line above the timestamp inhibits complaints -# about features and limitations of the classic Bourne shell that were -# superseded or lifted in POSIX. However, this script identifies a wide -# variety of pre-POSIX systems that do not have POSIX shells at all, and -# even some reasonably current systems (Solaris 10 as case-in-point) still -# have a pre-POSIX /bin/sh. - -me=`echo "$0" | sed -e 's,.*/,,'` - -usage="\ -Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS - -Canonicalize a configuration name. - -Options: - -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 1992-2024 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 ;; - - *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 - -# Split fields of configuration type -# shellcheck disable=SC2162 -saved_IFS=$IFS -IFS="-" read field1 field2 field3 field4 <&2 - exit 1 - ;; - *-*-*-*) - basic_machine=$field1-$field2 - basic_os=$field3-$field4 - ;; - *-*-*) - # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two - # parts - maybe_os=$field2-$field3 - case $maybe_os in - nto-qnx* | linux-* | uclinux-uclibc* \ - | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \ - | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \ - | storm-chaos* | os2-emx* | rtmk-nova* | managarm-* \ - | windows-* ) - basic_machine=$field1 - basic_os=$maybe_os - ;; - android-linux) - basic_machine=$field1-unknown - basic_os=linux-android - ;; - *) - basic_machine=$field1-$field2 - basic_os=$field3 - ;; - esac - ;; - *-*) - # A lone config we happen to match not fitting any pattern - case $field1-$field2 in - decstation-3100) - basic_machine=mips-dec - basic_os= - ;; - *-*) - # Second component is usually, but not always the OS - case $field2 in - # Prevent following clause from handling this valid os - sun*os*) - basic_machine=$field1 - basic_os=$field2 - ;; - zephyr*) - basic_machine=$field1-unknown - basic_os=$field2 - ;; - # Manufacturers - dec* | mips* | sequent* | encore* | pc533* | 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* | sim | cisco \ - | oki | wec | wrs | winbond) - basic_machine=$field1-$field2 - basic_os= - ;; - *) - basic_machine=$field1 - basic_os=$field2 - ;; - esac - ;; - esac - ;; - *) - # Convert single-component short-hands not valid as part of - # multi-component configurations. - case $field1 in - 386bsd) - basic_machine=i386-pc - basic_os=bsd - ;; - a29khif) - basic_machine=a29k-amd - basic_os=udi - ;; - adobe68k) - basic_machine=m68010-adobe - basic_os=scout - ;; - alliant) - basic_machine=fx80-alliant - basic_os= - ;; - altos | altos3068) - basic_machine=m68k-altos - basic_os= - ;; - am29k) - basic_machine=a29k-none - basic_os=bsd - ;; - amdahl) - basic_machine=580-amdahl - basic_os=sysv - ;; - amiga) - basic_machine=m68k-unknown - basic_os= - ;; - amigaos | amigados) - basic_machine=m68k-unknown - basic_os=amigaos - ;; - amigaunix | amix) - basic_machine=m68k-unknown - basic_os=sysv4 - ;; - apollo68) - basic_machine=m68k-apollo - basic_os=sysv - ;; - apollo68bsd) - basic_machine=m68k-apollo - basic_os=bsd - ;; - aros) - basic_machine=i386-pc - basic_os=aros - ;; - aux) - basic_machine=m68k-apple - basic_os=aux - ;; - balance) - basic_machine=ns32k-sequent - basic_os=dynix - ;; - blackfin) - basic_machine=bfin-unknown - basic_os=linux - ;; - cegcc) - basic_machine=arm-unknown - basic_os=cegcc - ;; - convex-c1) - basic_machine=c1-convex - basic_os=bsd - ;; - convex-c2) - basic_machine=c2-convex - basic_os=bsd - ;; - convex-c32) - basic_machine=c32-convex - basic_os=bsd - ;; - convex-c34) - basic_machine=c34-convex - basic_os=bsd - ;; - convex-c38) - basic_machine=c38-convex - basic_os=bsd - ;; - cray) - basic_machine=j90-cray - basic_os=unicos - ;; - crds | unos) - basic_machine=m68k-crds - basic_os= - ;; - da30) - basic_machine=m68k-da30 - basic_os= - ;; - decstation | pmax | pmin | dec3100 | decstatn) - basic_machine=mips-dec - basic_os= - ;; - delta88) - basic_machine=m88k-motorola - basic_os=sysv3 - ;; - dicos) - basic_machine=i686-pc - basic_os=dicos - ;; - djgpp) - basic_machine=i586-pc - basic_os=msdosdjgpp - ;; - ebmon29k) - basic_machine=a29k-amd - basic_os=ebmon - ;; - es1800 | OSE68k | ose68k | ose | OSE) - basic_machine=m68k-ericsson - basic_os=ose - ;; - gmicro) - basic_machine=tron-gmicro - basic_os=sysv - ;; - go32) - basic_machine=i386-pc - basic_os=go32 - ;; - h8300hms) - basic_machine=h8300-hitachi - basic_os=hms - ;; - h8300xray) - basic_machine=h8300-hitachi - basic_os=xray - ;; - h8500hms) - basic_machine=h8500-hitachi - basic_os=hms - ;; - harris) - basic_machine=m88k-harris - basic_os=sysv3 - ;; - hp300 | hp300hpux) - basic_machine=m68k-hp - basic_os=hpux - ;; - hp300bsd) - basic_machine=m68k-hp - basic_os=bsd - ;; - hppaosf) - basic_machine=hppa1.1-hp - basic_os=osf - ;; - hppro) - basic_machine=hppa1.1-hp - basic_os=proelf - ;; - i386mach) - basic_machine=i386-mach - basic_os=mach - ;; - isi68 | isi) - basic_machine=m68k-isi - basic_os=sysv - ;; - m68knommu) - basic_machine=m68k-unknown - basic_os=linux - ;; - magnum | m3230) - basic_machine=mips-mips - basic_os=sysv - ;; - merlin) - basic_machine=ns32k-utek - basic_os=sysv - ;; - mingw64) - basic_machine=x86_64-pc - basic_os=mingw64 - ;; - mingw32) - basic_machine=i686-pc - basic_os=mingw32 - ;; - mingw32ce) - basic_machine=arm-unknown - basic_os=mingw32ce - ;; - monitor) - basic_machine=m68k-rom68k - basic_os=coff - ;; - morphos) - basic_machine=powerpc-unknown - basic_os=morphos - ;; - moxiebox) - basic_machine=moxie-unknown - basic_os=moxiebox - ;; - msdos) - basic_machine=i386-pc - basic_os=msdos - ;; - msys) - basic_machine=i686-pc - basic_os=msys - ;; - mvs) - basic_machine=i370-ibm - basic_os=mvs - ;; - nacl) - basic_machine=le32-unknown - basic_os=nacl - ;; - ncr3000) - basic_machine=i486-ncr - basic_os=sysv4 - ;; - netbsd386) - basic_machine=i386-pc - basic_os=netbsd - ;; - netwinder) - basic_machine=armv4l-rebel - basic_os=linux - ;; - news | news700 | news800 | news900) - basic_machine=m68k-sony - basic_os=newsos - ;; - news1000) - basic_machine=m68030-sony - basic_os=newsos - ;; - necv70) - basic_machine=v70-nec - basic_os=sysv - ;; - nh3000) - basic_machine=m68k-harris - basic_os=cxux - ;; - nh[45]000) - basic_machine=m88k-harris - basic_os=cxux - ;; - nindy960) - basic_machine=i960-intel - basic_os=nindy - ;; - mon960) - basic_machine=i960-intel - basic_os=mon960 - ;; - nonstopux) - basic_machine=mips-compaq - basic_os=nonstopux - ;; - os400) - basic_machine=powerpc-ibm - basic_os=os400 - ;; - OSE68000 | ose68000) - basic_machine=m68000-ericsson - basic_os=ose - ;; - os68k) - basic_machine=m68k-none - basic_os=os68k - ;; - paragon) - basic_machine=i860-intel - basic_os=osf - ;; - parisc) - basic_machine=hppa-unknown - basic_os=linux - ;; - psp) - basic_machine=mipsallegrexel-sony - basic_os=psp - ;; - pw32) - basic_machine=i586-unknown - basic_os=pw32 - ;; - rdos | rdos64) - basic_machine=x86_64-pc - basic_os=rdos - ;; - rdos32) - basic_machine=i386-pc - basic_os=rdos - ;; - rom68k) - basic_machine=m68k-rom68k - basic_os=coff - ;; - sa29200) - basic_machine=a29k-amd - basic_os=udi - ;; - sei) - basic_machine=mips-sei - basic_os=seiux - ;; - sequent) - basic_machine=i386-sequent - basic_os= - ;; - sps7) - basic_machine=m68k-bull - basic_os=sysv2 - ;; - st2000) - basic_machine=m68k-tandem - basic_os= - ;; - stratus) - basic_machine=i860-stratus - basic_os=sysv4 - ;; - sun2) - basic_machine=m68000-sun - basic_os= - ;; - sun2os3) - basic_machine=m68000-sun - basic_os=sunos3 - ;; - sun2os4) - basic_machine=m68000-sun - basic_os=sunos4 - ;; - sun3) - basic_machine=m68k-sun - basic_os= - ;; - sun3os3) - basic_machine=m68k-sun - basic_os=sunos3 - ;; - sun3os4) - basic_machine=m68k-sun - basic_os=sunos4 - ;; - sun4) - basic_machine=sparc-sun - basic_os= - ;; - sun4os3) - basic_machine=sparc-sun - basic_os=sunos3 - ;; - sun4os4) - basic_machine=sparc-sun - basic_os=sunos4 - ;; - sun4sol2) - basic_machine=sparc-sun - basic_os=solaris2 - ;; - sun386 | sun386i | roadrunner) - basic_machine=i386-sun - basic_os= - ;; - sv1) - basic_machine=sv1-cray - basic_os=unicos - ;; - symmetry) - basic_machine=i386-sequent - basic_os=dynix - ;; - t3e) - basic_machine=alphaev5-cray - basic_os=unicos - ;; - t90) - basic_machine=t90-cray - basic_os=unicos - ;; - toad1) - basic_machine=pdp10-xkl - basic_os=tops20 - ;; - tpf) - basic_machine=s390x-ibm - basic_os=tpf - ;; - udi29k) - basic_machine=a29k-amd - basic_os=udi - ;; - ultra3) - basic_machine=a29k-nyu - basic_os=sym1 - ;; - v810 | necv810) - basic_machine=v810-nec - basic_os=none - ;; - vaxv) - basic_machine=vax-dec - basic_os=sysv - ;; - vms) - basic_machine=vax-dec - basic_os=vms - ;; - vsta) - basic_machine=i386-pc - basic_os=vsta - ;; - vxworks960) - basic_machine=i960-wrs - basic_os=vxworks - ;; - vxworks68) - basic_machine=m68k-wrs - basic_os=vxworks - ;; - vxworks29k) - basic_machine=a29k-wrs - basic_os=vxworks - ;; - xbox) - basic_machine=i686-pc - basic_os=mingw32 - ;; - ymp) - basic_machine=ymp-cray - basic_os=unicos - ;; - *) - basic_machine=$1 - basic_os= - ;; - esac - ;; -esac - -# Decode 1-component or ad-hoc basic machines -case $basic_machine in - # 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) - cpu=hppa1.1 - vendor=winbond - ;; - op50n) - cpu=hppa1.1 - vendor=oki - ;; - op60c) - cpu=hppa1.1 - vendor=oki - ;; - ibm*) - cpu=i370 - vendor=ibm - ;; - orion105) - cpu=clipper - vendor=highlevel - ;; - mac | mpw | mac-mpw) - cpu=m68k - vendor=apple - ;; - pmac | pmac-mpw) - cpu=powerpc - vendor=apple - ;; - - # Recognize the various machine names and aliases which stand - # for a CPU type and a company and sometimes even an OS. - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) - cpu=m68000 - vendor=att - ;; - 3b*) - cpu=we32k - vendor=att - ;; - bluegene*) - cpu=powerpc - vendor=ibm - basic_os=cnk - ;; - decsystem10* | dec10*) - cpu=pdp10 - vendor=dec - basic_os=tops10 - ;; - decsystem20* | dec20*) - cpu=pdp10 - vendor=dec - basic_os=tops20 - ;; - delta | 3300 | motorola-3300 | motorola-delta \ - | 3300-motorola | delta-motorola) - cpu=m68k - vendor=motorola - ;; - dpx2*) - cpu=m68k - vendor=bull - basic_os=sysv3 - ;; - encore | umax | mmax) - cpu=ns32k - vendor=encore - ;; - elxsi) - cpu=elxsi - vendor=elxsi - basic_os=${basic_os:-bsd} - ;; - fx2800) - cpu=i860 - vendor=alliant - ;; - genix) - cpu=ns32k - vendor=ns - ;; - h3050r* | hiux*) - cpu=hppa1.1 - vendor=hitachi - basic_os=hiuxwe2 - ;; - hp3k9[0-9][0-9] | hp9[0-9][0-9]) - cpu=hppa1.0 - vendor=hp - ;; - hp9k2[0-9][0-9] | hp9k31[0-9]) - cpu=m68000 - vendor=hp - ;; - hp9k3[2-9][0-9]) - cpu=m68k - vendor=hp - ;; - hp9k6[0-9][0-9] | hp6[0-9][0-9]) - cpu=hppa1.0 - vendor=hp - ;; - hp9k7[0-79][0-9] | hp7[0-79][0-9]) - cpu=hppa1.1 - vendor=hp - ;; - hp9k78[0-9] | hp78[0-9]) - # FIXME: really hppa2.0-hp - cpu=hppa1.1 - vendor=hp - ;; - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) - # FIXME: really hppa2.0-hp - cpu=hppa1.1 - vendor=hp - ;; - hp9k8[0-9][13679] | hp8[0-9][13679]) - cpu=hppa1.1 - vendor=hp - ;; - hp9k8[0-9][0-9] | hp8[0-9][0-9]) - cpu=hppa1.0 - vendor=hp - ;; - i*86v32) - cpu=`echo "$1" | sed -e 's/86.*/86/'` - vendor=pc - basic_os=sysv32 - ;; - i*86v4*) - cpu=`echo "$1" | sed -e 's/86.*/86/'` - vendor=pc - basic_os=sysv4 - ;; - i*86v) - cpu=`echo "$1" | sed -e 's/86.*/86/'` - vendor=pc - basic_os=sysv - ;; - i*86sol2) - cpu=`echo "$1" | sed -e 's/86.*/86/'` - vendor=pc - basic_os=solaris2 - ;; - j90 | j90-cray) - cpu=j90 - vendor=cray - basic_os=${basic_os:-unicos} - ;; - iris | iris4d) - cpu=mips - vendor=sgi - case $basic_os in - irix*) - ;; - *) - basic_os=irix4 - ;; - esac - ;; - miniframe) - cpu=m68000 - vendor=convergent - ;; - *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*) - cpu=m68k - vendor=atari - basic_os=mint - ;; - news-3600 | risc-news) - cpu=mips - vendor=sony - basic_os=newsos - ;; - next | m*-next) - cpu=m68k - vendor=next - case $basic_os in - openstep*) - ;; - nextstep*) - ;; - ns2*) - basic_os=nextstep2 - ;; - *) - basic_os=nextstep3 - ;; - esac - ;; - np1) - cpu=np1 - vendor=gould - ;; - op50n-* | op60c-*) - cpu=hppa1.1 - vendor=oki - basic_os=proelf - ;; - pa-hitachi) - cpu=hppa1.1 - vendor=hitachi - basic_os=hiuxwe2 - ;; - pbd) - cpu=sparc - vendor=tti - ;; - pbb) - cpu=m68k - vendor=tti - ;; - pc532) - cpu=ns32k - vendor=pc532 - ;; - pn) - cpu=pn - vendor=gould - ;; - power) - cpu=power - vendor=ibm - ;; - ps2) - cpu=i386 - vendor=ibm - ;; - rm[46]00) - cpu=mips - vendor=siemens - ;; - rtpc | rtpc-*) - cpu=romp - vendor=ibm - ;; - sde) - cpu=mipsisa32 - vendor=sde - basic_os=${basic_os:-elf} - ;; - simso-wrs) - cpu=sparclite - vendor=wrs - basic_os=vxworks - ;; - tower | tower-32) - cpu=m68k - vendor=ncr - ;; - vpp*|vx|vx-*) - cpu=f301 - vendor=fujitsu - ;; - w65) - cpu=w65 - vendor=wdc - ;; - w89k-*) - cpu=hppa1.1 - vendor=winbond - basic_os=proelf - ;; - none) - cpu=none - vendor=none - ;; - leon|leon[3-9]) - cpu=sparc - vendor=$basic_machine - ;; - leon-*|leon[3-9]-*) - cpu=sparc - vendor=`echo "$basic_machine" | sed 's/-.*//'` - ;; - - *-*) - # shellcheck disable=SC2162 - saved_IFS=$IFS - IFS="-" read cpu vendor <&2 - exit 1 - ;; - esac - ;; -esac - -# Here we canonicalize certain aliases for manufacturers. -case $vendor in - digital*) - vendor=dec - ;; - commodore*) - vendor=cbm - ;; - *) - ;; -esac - -# Decode manufacturer-specific aliases for certain operating systems. - -if test x"$basic_os" != x -then - -# First recognize some ad-hoc cases, or perhaps split kernel-os, or else just -# set os. -obj= -case $basic_os in - gnu/linux*) - kernel=linux - os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'` - ;; - os2-emx) - kernel=os2 - os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'` - ;; - nto-qnx*) - kernel=nto - os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'` - ;; - *-*) - # shellcheck disable=SC2162 - saved_IFS=$IFS - IFS="-" read kernel os <&2 - fi - ;; - *) - echo "Invalid configuration '$1': OS '$os' not recognized" 1>&2 - exit 1 - ;; -esac - -case $obj in - aout* | coff* | elf* | pe*) - ;; - '') - # empty is fine - ;; - *) - echo "Invalid configuration '$1': Machine code format '$obj' not recognized" 1>&2 - exit 1 - ;; -esac - -# Here we handle the constraint that a (synthetic) cpu and os are -# valid only in combination with each other and nowhere else. -case $cpu-$os in - # The "javascript-unknown-ghcjs" triple is used by GHC; we - # accept it here in order to tolerate that, but reject any - # variations. - javascript-ghcjs) - ;; - javascript-* | *-ghcjs) - echo "Invalid configuration '$1': cpu '$cpu' is not valid with os '$os$obj'" 1>&2 - exit 1 - ;; -esac - -# As a final step for OS-related things, validate the OS-kernel combination -# (given a valid OS), if there is a kernel. -case $kernel-$os-$obj in - linux-gnu*- | linux-android*- | linux-dietlibc*- | linux-llvm*- \ - | linux-mlibc*- | linux-musl*- | linux-newlib*- \ - | linux-relibc*- | linux-uclibc*- ) - ;; - uclinux-uclibc*- ) - ;; - managarm-mlibc*- | managarm-kernel*- ) - ;; - windows*-msvc*-) - ;; - -dietlibc*- | -llvm*- | -mlibc*- | -musl*- | -newlib*- | -relibc*- \ - | -uclibc*- ) - # These are just libc implementations, not actual OSes, and thus - # require a kernel. - echo "Invalid configuration '$1': libc '$os' needs explicit kernel." 1>&2 - exit 1 - ;; - -kernel*- ) - echo "Invalid configuration '$1': '$os' needs explicit kernel." 1>&2 - exit 1 - ;; - *-kernel*- ) - echo "Invalid configuration '$1': '$kernel' does not support '$os'." 1>&2 - exit 1 - ;; - *-msvc*- ) - echo "Invalid configuration '$1': '$os' needs 'windows'." 1>&2 - exit 1 - ;; - kfreebsd*-gnu*- | kopensolaris*-gnu*-) - ;; - vxworks-simlinux- | vxworks-simwindows- | vxworks-spe-) - ;; - nto-qnx*-) - ;; - os2-emx-) - ;; - *-eabi*- | *-gnueabi*-) - ;; - none--*) - # None (no kernel, i.e. freestanding / bare metal), - # can be paired with an machine code file format - ;; - -*-) - # Blank kernel with real OS is always fine. - ;; - --*) - # Blank kernel and OS with real machine code file format is always fine. - ;; - *-*-*) - echo "Invalid configuration '$1': Kernel '$kernel' not known to work with OS '$os'." 1>&2 - exit 1 - ;; -esac - -# Here we handle the case where we know the os, and the CPU type, but not the -# manufacturer. We pick the logical manufacturer. -case $vendor in - unknown) - case $cpu-$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 - ;; - *-clix*) - vendor=intergraph - ;; - *-mvs* | *-opened*) - vendor=ibm - ;; - *-os400*) - vendor=ibm - ;; - s390-* | s390x-*) - 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 - ;; -esac - -echo "$cpu-$vendor${kernel:+-$kernel}${os:+-$os}${obj:+-$obj}" -exit - -# Local variables: -# eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-start: "timestamp='" -# time-stamp-format: "%:y-%02m-%02d" -# time-stamp-end: "'" -# End: diff --git a/recipes/wip/files/mc/source/config/depcomp b/recipes/wip/files/mc/source/config/depcomp deleted file mode 100755 index 715e34311e..0000000000 --- a/recipes/wip/files/mc/source/config/depcomp +++ /dev/null @@ -1,791 +0,0 @@ -#! /bin/sh -# depcomp - compile a program generating dependencies as side-effects - -scriptversion=2018-03-07.03; # UTC - -# Copyright (C) 1999-2021 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 outputting dependencies. - libtool Whether libtool is used (yes/no). - -Report bugs to . -EOF - exit $? - ;; - -v | --v*) - echo "depcomp $scriptversion" - exit $? - ;; -esac - -# Get the directory component of the given path, and save it in the -# global variables '$dir'. Note that this directory component will -# be either empty or ending with a '/' character. This is deliberate. -set_dir_from () -{ - case $1 in - */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; - *) dir=;; - esac -} - -# Get the suffix-stripped basename of the given path, and save it the -# global variable '$base'. -set_base_from () -{ - base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` -} - -# If no dependency file was actually created by the compiler invocation, -# we still have to create a dummy depfile, to avoid errors with the -# Makefile "include basename.Plo" scheme. -make_dummy_depfile () -{ - echo "#dummy" > "$depfile" -} - -# Factor out some common post-processing of the generated depfile. -# Requires the auxiliary global variable '$tmpdepfile' to be set. -aix_post_process_depfile () -{ - # If the compiler actually managed to produce a dependency file, - # post-process it. - if test -f "$tmpdepfile"; then - # Each line is of the form 'foo.o: dependency.h'. - # Do two passes, one to just change these to - # $object: dependency.h - # and one to simply output - # dependency.h: - # which is needed to avoid the deleted-header problem. - { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" - sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" - } > "$depfile" - rm -f "$tmpdepfile" - else - make_dummy_depfile - fi -} - -# A tabulation character. -tab=' ' -# A newline character. -nl=' -' -# Character ranges might be problematic outside the C locale. -# These definitions help. -upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ -lower=abcdefghijklmnopqrstuvwxyz -digits=0123456789 -alpha=${upper}${lower} - -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" - -# Avoid interferences from the environment. -gccflag= dashmflag= - -# Some modes work just like other modes, but use different flags. We -# parameterize here, but still list the modes in the big case below, -# to make depend.m4 easier to write. Note that we *cannot* use a case -# here, because this file can only contain one case statement. -if test "$depmode" = hp; then - # HP compiler uses -M and no extra arg. - gccflag=-M - depmode=gcc -fi - -if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout -fi - -cygpath_u="cygpath -u -f -" -if test "$depmode" = msvcmsys; then - # This is just like msvisualcpp but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvisualcpp -fi - -if test "$depmode" = msvc7msys; then - # This is just like msvc7 but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u='sed s,\\\\,/,g' - depmode=msvc7 -fi - -if test "$depmode" = xlc; then - # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. - gccflag=-qmakedep=gcc,-MF - depmode=gcc -fi - -case "$depmode" in -gcc3) -## gcc 3 implements dependency tracking that does exactly what -## we want. Yay! Note: for some reason libtool 1.4 doesn't like -## it if -MD -MP comes after the -MF stuff. Hmm. -## Unfortunately, FreeBSD c89 acceptance of flags depends upon -## the command line argument order; so add the flags where they -## appear in depend2.am. Note that the slowdown incurred here -## affects only configure: in makefiles, %FASTDEP% shortcuts this. - for arg - do - case $arg in - -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; - *) set fnord "$@" "$arg" ;; - esac - shift # fnord - shift # $arg - done - "$@" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - mv "$tmpdepfile" "$depfile" - ;; - -gcc) -## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. -## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. -## (see the conditional assignment to $gccflag above). -## 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). Also, it might not be -## supported by the other compilers which use the 'gcc' depmode. -## - 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 -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # 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. -## Some versions of gcc put a space before the ':'. On the theory -## that the space means something, we add a space to the output as -## well. hp depmode also adds that space, but also prefixes the VPATH -## to the object. Take care to not repeat it in the output. -## Some versions of the HPUX 10.20 sed can't process this invocation -## correctly. Breaking it into two sed invocations is a workaround. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -hp) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -sgi) - if test "$libtool" = yes; then - "$@" "-Wp,-MDupdate,$tmpdepfile" - else - "$@" -MDupdate "$tmpdepfile" - fi - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - - if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files - echo "$object : \\" > "$depfile" - # Clip off the initial element (the dependent). Don't try to be - # clever and replace this with sed code, as IRIX sed won't handle - # lines with more than a fixed number of characters (4096 in - # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; - # the IRIX cc adds comments like '#:fec' to the end of the - # dependency line. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \ - | tr "$nl" ' ' >> "$depfile" - echo >> "$depfile" - # The second pass generates a dummy entry for each header file. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ - >> "$depfile" - else - make_dummy_depfile - fi - rm -f "$tmpdepfile" - ;; - -xlc) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -aix) - # The C for AIX Compiler uses -M and outputs the dependencies - # in a .u file. In older versions, this file always lives in the - # current directory. Also, the AIX compiler puts '$object:' at the - # start of each line; $object doesn't have directory information. - # Version 6 uses the directory in both cases. - set_dir_from "$object" - set_base_from "$object" - 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 -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - aix_post_process_depfile - ;; - -tcc) - # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26 - # FIXME: That version still under development at the moment of writing. - # Make that this statement remains true also for stable, released - # versions. - # It will wrap lines (doesn't matter whether long or short) with a - # trailing '\', as in: - # - # foo.o : \ - # foo.c \ - # foo.h \ - # - # It will put a trailing '\' even on the last line, and will use leading - # spaces rather than leading tabs (at least since its commit 0394caf7 - # "Emit spaces for -MD"). - "$@" -MD -MF "$tmpdepfile" - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'. - # We have to change lines of the first kind to '$object: \'. - sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile" - # And for each line of the second kind, we have to emit a 'dep.h:' - # dummy dependency, to avoid the deleted-header problem. - sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile" - rm -f "$tmpdepfile" - ;; - -## The order of this option in the case statement is important, since the -## shell code in configure will try each of these formats in the order -## listed in this file. A plain '-MD' option would be understood by many -## compilers, so we must ensure this comes after the gcc and icc options. -pgcc) - # Portland's C compiler understands '-MD'. - # Will always output deps to 'file.d' where file is the root name of the - # source file under compilation, even if file resides in a subdirectory. - # The object file name does not affect the name of the '.d' file. - # pgcc 10.2 will output - # foo.o: sub/foo.c sub/foo.h - # and will wrap long lines using '\' : - # foo.o: sub/foo.c ... \ - # sub/foo.h ... \ - # ... - set_dir_from "$object" - # Use the source, not the object, to determine the base name, since - # that's sadly what pgcc will do too. - set_base_from "$source" - tmpdepfile=$base.d - - # For projects that build the same source file twice into different object - # files, the pgcc approach of using the *source* file root name can cause - # problems in parallel builds. Use a locking strategy to avoid stomping on - # the same $tmpdepfile. - lockdir=$base.d-lock - trap " - echo '$0: caught signal, cleaning up...' >&2 - rmdir '$lockdir' - exit 1 - " 1 2 13 15 - numtries=100 - i=$numtries - while test $i -gt 0; do - # mkdir is a portable test-and-set. - if mkdir "$lockdir" 2>/dev/null; then - # This process acquired the lock. - "$@" -MD - stat=$? - # Release the lock. - rmdir "$lockdir" - break - else - # If the lock is being held by a different process, wait - # until the winning process is done or we timeout. - while test -d "$lockdir" && test $i -gt 0; do - sleep 1 - i=`expr $i - 1` - done - fi - i=`expr $i - 1` - done - trap - 1 2 13 15 - if test $i -le 0; then - echo "$0: failed to acquire lock after $numtries attempts" >&2 - echo "$0: check lockdir '$lockdir'" >&2 - exit 1 - fi - - if test $stat -ne 0; then - 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. - set_dir_from "$object" - set_base_from "$object" - 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 -ne 0; then - 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,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile" - # Add 'dependent.h:' lines. - sed -ne '2,${ - s/^ *// - s/ \\*$// - s/$/:/ - p - }' "$tmpdepfile" >> "$depfile" - else - make_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. - set_dir_from "$object" - set_base_from "$object" - - if test "$libtool" = yes; then - # Libtool 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$base.o.d # libtool 1.5 - tmpdepfile2=$dir.libs/$base.o.d # Likewise. - tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504 - "$@" -Wc,-MD - else - tmpdepfile1=$dir$base.d - tmpdepfile2=$dir$base.d - tmpdepfile3=$dir$base.d - "$@" -MD - fi - - stat=$? - if test $stat -ne 0; then - rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - exit $stat - fi - - for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" - do - test -f "$tmpdepfile" && break - done - # Same post-processing that is required for AIX mode. - aix_post_process_depfile - ;; - -msvc7) - if test "$libtool" = yes; then - showIncludes=-Wc,-showIncludes - else - showIncludes=-showIncludes - fi - "$@" $showIncludes > "$tmpdepfile" - stat=$? - grep -v '^Note: including file: ' "$tmpdepfile" - if test $stat -ne 0; then - rm -f "$tmpdepfile" - exit $stat - fi - rm -f "$depfile" - echo "$object : \\" > "$depfile" - # The first sed program below extracts the file names and escapes - # backslashes for cygpath. The second sed program outputs the file - # name when reading, but also accumulates all include files in the - # hold buffer in order to output them again at the end. This only - # works with sed implementations that can handle large buffers. - sed < "$tmpdepfile" -n ' -/^Note: including file: *\(.*\)/ { - s//\1/ - s/\\/\\\\/g - p -}' | $cygpath_u | sort -u | sed -n ' -s/ /\\ /g -s/\(.*\)/'"$tab"'\1 \\/p -s/.\(.*\) \\/\1:/ -H -$ { - s/.*/'"$tab"'/ - G - p -}' >> "$depfile" - echo >> "$depfile" # make sure the fragment doesn't end with a backslash - rm -f "$tmpdepfile" - ;; - -msvc7msys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -#nosideeffect) - # This comment above is used by automake to tell side-effect - # dependency tracking mechanisms from slower ones. - -dashmstdout) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout, regardless of -o. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove '-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - test -z "$dashmflag" && dashmflag=-M - # Require at least two characters before searching for ':' - # in the target name. This is to cope with DOS-style filenames: - # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise. - "$@" $dashmflag | - sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile" - rm -f "$depfile" - cat < "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process this sed invocation - # correctly. Breaking it into two sed invocations is a workaround. - tr ' ' "$nl" < "$tmpdepfile" \ - | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -dashXmstdout) - # This case only exists to satisfy depend.m4. It is never actually - # run, as this mode is specially recognized in the preamble. - exit 1 - ;; - -makedepend) - "$@" || exit $? - # Remove any Libtool call - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - # X makedepend - shift - cleared=no eat=no - for arg - do - case $cleared in - no) - set ""; shift - cleared=yes ;; - esac - if test $eat = yes; then - eat=no - continue - fi - case "$arg" in - -D*|-I*) - set fnord "$@" "$arg"; shift ;; - # Strip any option that makedepend may not understand. Remove - # the object too, otherwise makedepend will parse it as a source file. - -arch) - eat=yes ;; - -*|$object) - ;; - *) - set fnord "$@" "$arg"; shift ;; - esac - done - obj_suffix=`echo "$object" | sed 's/^.*\././'` - touch "$tmpdepfile" - ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" - rm -f "$depfile" - # makedepend may prepend the VPATH from the source file name to the object. - # No need to regex-escape $object, excess matching of '.' is harmless. - sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile" - # Some versions of the HPUX 10.20 sed can't process the last invocation - # correctly. Breaking it into two sed invocations is a workaround. - sed '1,2d' "$tmpdepfile" \ - | tr ' ' "$nl" \ - | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \ - | sed -e 's/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" "$tmpdepfile".bak - ;; - -cpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - # Remove '-o $object'. - IFS=" " - for arg - do - case $arg in - -o) - shift - ;; - $object) - shift - ;; - *) - set fnord "$@" "$arg" - shift # fnord - shift # $arg - ;; - esac - done - - "$@" -E \ - | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ - | sed '$ s: \\$::' > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - cat < "$tmpdepfile" >> "$depfile" - sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvisualcpp) - # Important note: in order to support this mode, a compiler *must* - # always write the preprocessed file to stdout. - "$@" || exit $? - - # Remove the call to Libtool. - if test "$libtool" = yes; then - while test "X$1" != 'X--mode=compile'; do - shift - done - shift - fi - - IFS=" " - for arg - do - case "$arg" in - -o) - shift - ;; - $object) - shift - ;; - "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") - set fnord "$@" - shift - shift - ;; - *) - set fnord "$@" "$arg" - shift - shift - ;; - esac - done - "$@" -E 2>/dev/null | - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile" - rm -f "$depfile" - echo "$object : \\" > "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile" - echo "$tab" >> "$depfile" - sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile" - rm -f "$tmpdepfile" - ;; - -msvcmsys) - # This case exists only to let depend.m4 do its work. It works by - # looking at the text of this script. This case will never be run, - # since it is checked for above. - exit 1 - ;; - -none) - exec "$@" - ;; - -*) - echo "Unknown depmode $depmode" 1>&2 - exit 1 - ;; -esac - -exit 0 - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC0" -# time-stamp-end: "; # UTC" -# End: diff --git a/recipes/wip/files/mc/source/config/install-sh b/recipes/wip/files/mc/source/config/install-sh deleted file mode 100755 index 73cbd673ad..0000000000 --- a/recipes/wip/files/mc/source/config/install-sh +++ /dev/null @@ -1,541 +0,0 @@ -#!/usr/bin/sh -# install - install a program, script, or datafile - -scriptversion=2023-11-23.18; # 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. - -tab=' ' -nl=' -' -IFS=" $tab$nl" - -# Set DOITPROG to "echo" to test this script. - -doit=${DOITPROG-} -doit_exec=${doit:-exec} - -# 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_mkdir= - -# Desired mode of installed file. -mode=0755 - -# Create dirs (including intermediate dirs) using mode 755. -# This is like GNU 'install' as of coreutils 8.32 (2020). -mkdir_umask=22 - -backupsuffix= -chgrpcmd= -chmodcmd=$chmodprog -chowncmd= -mvcmd=$mvprog -rmcmd="$rmprog -f" -stripcmd= - -src= -dst= -dir_arg= -dst_arg= - -copy_on_change=false -is_target_a_directory=possibly - -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 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. - -p pass -p to $cpprog. - -s $stripprog installed files. - -S SUFFIX attempt to back up existing files, with suffix SUFFIX. - -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 - -By default, rm is invoked with -f; when overridden with RMPROG, -it's up to you to specify -f if you want it. - -If -S is not specified, no backups are attempted. - -Report bugs to . -GNU Automake home page: . -General help using GNU software: ." - -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 - *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*) - echo "$0: invalid mode: $mode" >&2 - exit 1;; - esac - shift;; - - -o) chowncmd="$chownprog $2" - shift;; - - -p) cpprog="$cpprog -p";; - - -s) stripcmd=$stripprog;; - - -S) backupsuffix="$2" - shift;; - - -t) - is_target_a_directory=always - dst_arg=$2 - # Protect names problematic for 'test' and other utilities. - case $dst_arg in - -* | [=\(\)!]) dst_arg=./$dst_arg;; - esac - shift;; - - -T) is_target_a_directory=never;; - - --version) echo "$0 $scriptversion"; exit $?;; - - --) shift - break;; - - -*) echo "$0: invalid option: $1" >&2 - exit 1;; - - *) break;; - esac - shift -done - -# We allow the use of options -d and -T together, by making -d -# take the precedence; this is for compatibility with GNU install. - -if test -n "$dir_arg"; then - if test -n "$dst_arg"; then - echo "$0: target directory not allowed when installing a directory." >&2 - exit 1 - fi -fi - -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 - # Protect names problematic for 'test' and other utilities. - case $dst_arg in - -* | [=\(\)!]) dst_arg=./$dst_arg;; - esac - 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 - if test $# -gt 1 || test "$is_target_a_directory" = always; then - if test ! -d "$dst_arg"; then - echo "$0: $dst_arg: Is not a directory." >&2 - exit 1 - fi - fi -fi - -if test -z "$dir_arg"; then - do_exit='(exit $ret); exit $ret' - trap "ret=129; $do_exit" 1 - trap "ret=130; $do_exit" 2 - trap "ret=141; $do_exit" 13 - trap "ret=143; $do_exit" 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 problematic for 'test' and other utilities. - case $src in - -* | [=\(\)!]) src=./$src;; - esac - - if test -n "$dir_arg"; then - dst=$src - dstdir=$dst - test -d "$dstdir" - dstdir_status=$? - # Don't chown directories that already exist. - if test $dstdir_status = 0; then - chowncmd="" - fi - else - - # Waiting for this to be detected by the "$cpprog $src $dsttmp" command - # might cause directories to be created, which would be especially bad - # if $src (and thus $dsttmp) contains '*'. - if test ! -f "$src" && test ! -d "$src"; then - echo "$0: $src does not exist." >&2 - exit 1 - fi - - if test -z "$dst_arg"; then - echo "$0: no destination specified." >&2 - exit 1 - fi - dst=$dst_arg - - # If destination is a directory, append the input filename. - if test -d "$dst"; then - if test "$is_target_a_directory" = never; then - echo "$0: $dst_arg: Is a directory" >&2 - exit 1 - fi - dstdir=$dst - dstbase=`basename "$src"` - case $dst in - */) dst=$dst$dstbase;; - *) dst=$dst/$dstbase;; - esac - dstdir_status=0 - else - dstdir=`dirname "$dst"` - test -d "$dstdir" - dstdir_status=$? - fi - fi - - case $dstdir in - */) dstdirslash=$dstdir;; - *) dstdirslash=$dstdir/;; - esac - - obsolete_mkdir_used=false - - if test $dstdir_status != 0; then - case $posix_mkdir in - '') - # 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 - # The $RANDOM variable is not portable (e.g., dash). Use it - # here however when possible just to lower collision chance. - tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$ - - trap ' - ret=$? - rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null - exit $ret - ' 0 - - # Because "mkdir -p" follows existing symlinks and we likely work - # directly in world-writeable /tmp, make sure that the '$tmpdir' - # directory is successfully created first before we actually test - # 'mkdir -p'. - if (umask $mkdir_umask && - $mkdirprog $mkdir_mode "$tmpdir" && - exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/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-writable bit of parent directory when it shouldn't. - # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. - test_tmpdir="$tmpdir/a" - ls_ld_tmpdir=`ls -ld "$test_tmpdir"` - case $ls_ld_tmpdir in - d????-?r-*) different_mode=700;; - d????-?--*) different_mode=755;; - *) false;; - esac && - $mkdirprog -m$different_mode -p -- "$test_tmpdir" && { - ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"` - test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1" - } - } - then posix_mkdir=: - fi - rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" - else - # Remove any dirs left behind by ancient mkdir implementations. - rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null - fi - trap '' 0;; - esac - - if - $posix_mkdir && ( - umask $mkdir_umask && - $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir" - ) - then : - else - - # 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 - - oIFS=$IFS - IFS=/ - set -f - set fnord $dstdir - shift - set +f - IFS=$oIFS - - prefixes= - - for d - do - test X"$d" = X && 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=${dstdirslash}_inst.$$_ - rmtmp=${dstdirslash}_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 && - { test -z "$stripcmd" || { - # Create $dsttmp read-write so that cp doesn't create it read-only, - # which would cause strip to fail. - if test -z "$doit"; then - : >"$dsttmp" # No need to fork-exec 'touch'. - else - $doit touch "$dsttmp" - fi - } - } && - $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` && - set -f && - set X $old && old=:$2:$4:$5:$6 && - set X $new && new=:$2:$4:$5:$6 && - set +f && - test "$old" = "$new" && - $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1 - then - rm -f "$dsttmp" - else - # If $backupsuffix is set, and the file being installed - # already exists, attempt a backup. Don't worry if it fails, - # e.g., if mv doesn't support -f. - if test -n "$backupsuffix" && test -f "$dst"; then - $doit $mvcmd -f "$dst" "$dst$backupsuffix" 2>/dev/null - fi - - # 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 "$dst" 2>/dev/null || - { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && - { $doit $rmcmd "$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 'before-save-hook 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC0" -# time-stamp-end: "; # UTC" -# End: diff --git a/recipes/wip/files/mc/source/config/ltmain.sh b/recipes/wip/files/mc/source/config/ltmain.sh deleted file mode 100644 index 49fcad1365..0000000000 --- a/recipes/wip/files/mc/source/config/ltmain.sh +++ /dev/null @@ -1,11429 +0,0 @@ -#! /usr/bin/env sh -## DO NOT EDIT - This file generated from ./build-aux/ltmain.in -## by inline-source v2019-02-19.15 - -# libtool (GNU libtool) 2.4.7 -# Provide generalized library-building support services. -# Written by Gordon Matzigkeit , 1996 - -# Copyright (C) 1996-2019, 2021-2022 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - - -PROGRAM=libtool -PACKAGE=libtool -VERSION=2.4.7 -package_revision=2.4.7 - - -## ------ ## -## Usage. ## -## ------ ## - -# Run './libtool --help' for help with using this script from the -# command line. - - -## ------------------------------- ## -## User overridable command paths. ## -## ------------------------------- ## - -# After configure completes, it has a better idea of some of the -# shell tools we need than the defaults used by the functions shared -# with bootstrap, so set those here where they can still be over- -# ridden by the user, but otherwise take precedence. - -: ${AUTOCONF="autoconf"} -: ${AUTOMAKE="automake"} - - -## -------------------------- ## -## Source external libraries. ## -## -------------------------- ## - -# Much of our low-level functionality needs to be sourced from external -# libraries, which are installed to $pkgauxdir. - -# Set a version string for this script. -scriptversion=2019-02-19.15; # UTC - -# General shell script boiler plate, and helper functions. -# Written by Gary V. Vaughan, 2004 - -# This is free software. There is NO warranty; not even for -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# -# Copyright (C) 2004-2019, 2021 Bootstrap Authors -# -# This file is dual licensed under the terms of the MIT license -# , and GPL version 2 or later -# . You must apply one of -# these licenses when using or redistributing this software or any of -# the files within it. See the URLs above, or the file `LICENSE` -# included in the Bootstrap distribution for the full license texts. - -# Please report bugs or propose patches to: -# - - -## ------ ## -## Usage. ## -## ------ ## - -# Evaluate this file near the top of your script to gain access to -# the functions and variables defined here: -# -# . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh -# -# If you need to override any of the default environment variable -# settings, do that before evaluating this file. - - -## -------------------- ## -## Shell normalisation. ## -## -------------------- ## - -# Some shells need a little help to be as Bourne compatible as possible. -# Before doing anything else, make sure all that help has been provided! - -DUALCASE=1; export DUALCASE # for MKS sh -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : - emulate sh - NULLCMD=: - # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which - # is contrary to our usage. Disable this feature. - alias -g '${1+"$@"}'='"$@"' - setopt NO_GLOB_SUBST -else - case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac -fi - -# NLS nuisances: We save the old values in case they are required later. -_G_user_locale= -_G_safe_locale= -for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES -do - eval "if test set = \"\${$_G_var+set}\"; then - save_$_G_var=\$$_G_var - $_G_var=C - export $_G_var - _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\" - _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" - fi" -done -# These NLS vars are set unconditionally (bootstrap issue #24). Unset those -# in case the environment reset is needed later and the $save_* variant is not -# defined (see the code above). -LC_ALL=C -LANGUAGE=C -export LANGUAGE LC_ALL - -# Make sure IFS has a sensible default -sp=' ' -nl=' -' -IFS="$sp $nl" - -# There are apparently some retarded systems that use ';' as a PATH separator! -if test "${PATH_SEPARATOR+set}" != set; then - PATH_SEPARATOR=: - (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { - (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || - PATH_SEPARATOR=';' - } -fi - - -# func_unset VAR -# -------------- -# Portably unset VAR. -# In some shells, an 'unset VAR' statement leaves a non-zero return -# status if VAR is already unset, which might be problematic if the -# statement is used at the end of a function (thus poisoning its return -# value) or when 'set -e' is active (causing even a spurious abort of -# the script in this case). -func_unset () -{ - { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; } -} - - -# Make sure CDPATH doesn't cause `cd` commands to output the target dir. -func_unset CDPATH - -# Make sure ${,E,F}GREP behave sanely. -func_unset GREP_OPTIONS - - -## ------------------------- ## -## Locate command utilities. ## -## ------------------------- ## - - -# func_executable_p FILE -# ---------------------- -# Check that FILE is an executable regular file. -func_executable_p () -{ - test -f "$1" && test -x "$1" -} - - -# func_path_progs PROGS_LIST CHECK_FUNC [PATH] -# -------------------------------------------- -# Search for either a program that responds to --version with output -# containing "GNU", or else returned by CHECK_FUNC otherwise, by -# trying all the directories in PATH with each of the elements of -# PROGS_LIST. -# -# CHECK_FUNC should accept the path to a candidate program, and -# set $func_check_prog_result if it truncates its output less than -# $_G_path_prog_max characters. -func_path_progs () -{ - _G_progs_list=$1 - _G_check_func=$2 - _G_PATH=${3-"$PATH"} - - _G_path_prog_max=0 - _G_path_prog_found=false - _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:} - for _G_dir in $_G_PATH; do - IFS=$_G_save_IFS - test -z "$_G_dir" && _G_dir=. - for _G_prog_name in $_G_progs_list; do - for _exeext in '' .EXE; do - _G_path_prog=$_G_dir/$_G_prog_name$_exeext - func_executable_p "$_G_path_prog" || continue - case `"$_G_path_prog" --version 2>&1` in - *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;; - *) $_G_check_func $_G_path_prog - func_path_progs_result=$func_check_prog_result - ;; - esac - $_G_path_prog_found && break 3 - done - done - done - IFS=$_G_save_IFS - test -z "$func_path_progs_result" && { - echo "no acceptable sed could be found in \$PATH" >&2 - exit 1 - } -} - - -# We want to be able to use the functions in this file before configure -# has figured out where the best binaries are kept, which means we have -# to search for them ourselves - except when the results are already set -# where we skip the searches. - -# Unless the user overrides by setting SED, search the path for either GNU -# sed, or the sed that truncates its output the least. -test -z "$SED" && { - _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for _G_i in 1 2 3 4 5 6 7; do - _G_sed_script=$_G_sed_script$nl$_G_sed_script - done - echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed - _G_sed_script= - - func_check_prog_sed () - { - _G_path_prog=$1 - - _G_count=0 - printf 0123456789 >conftest.in - while : - do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo '' >> conftest.nl - "$_G_path_prog" -f conftest.sed conftest.out 2>/dev/null || break - diff conftest.out conftest.nl >/dev/null 2>&1 || break - _G_count=`expr $_G_count + 1` - if test "$_G_count" -gt "$_G_path_prog_max"; then - # Best one so far, save it but keep looking for a better one - func_check_prog_result=$_G_path_prog - _G_path_prog_max=$_G_count - fi - # 10*(2^10) chars as input seems more than enough - test 10 -lt "$_G_count" && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out - } - - func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin" - rm -f conftest.sed - SED=$func_path_progs_result -} - - -# Unless the user overrides by setting GREP, search the path for either GNU -# grep, or the grep that truncates its output the least. -test -z "$GREP" && { - func_check_prog_grep () - { - _G_path_prog=$1 - - _G_count=0 - _G_path_prog_max=0 - printf 0123456789 >conftest.in - while : - do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo 'GREP' >> conftest.nl - "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' conftest.out 2>/dev/null || break - diff conftest.out conftest.nl >/dev/null 2>&1 || break - _G_count=`expr $_G_count + 1` - if test "$_G_count" -gt "$_G_path_prog_max"; then - # Best one so far, save it but keep looking for a better one - func_check_prog_result=$_G_path_prog - _G_path_prog_max=$_G_count - fi - # 10*(2^10) chars as input seems more than enough - test 10 -lt "$_G_count" && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out - } - - func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin" - GREP=$func_path_progs_result -} - - -## ------------------------------- ## -## User overridable command paths. ## -## ------------------------------- ## - -# All uppercase variable names are used for environment variables. These -# variables can be overridden by the user before calling a script that -# uses them if a suitable command of that name is not already available -# in the command search PATH. - -: ${CP="cp -f"} -: ${ECHO="printf %s\n"} -: ${EGREP="$GREP -E"} -: ${FGREP="$GREP -F"} -: ${LN_S="ln -s"} -: ${MAKE="make"} -: ${MKDIR="mkdir"} -: ${MV="mv -f"} -: ${RM="rm -f"} -: ${SHELL="${CONFIG_SHELL-/bin/sh}"} - - -## -------------------- ## -## Useful sed snippets. ## -## -------------------- ## - -sed_dirname='s|/[^/]*$||' -sed_basename='s|^.*/||' - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -sed_quote_subst='s|\([`"$\\]\)|\\\1|g' - -# Same as above, but do not quote variable references. -sed_double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Sed substitution that turns a string into a regex matching for the -# string literally. -sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g' - -# Sed substitution that converts a w32 file name or path -# that contains forward slashes, into one that contains -# (escaped) backslashes. A very naive implementation. -sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' - -# Re-'\' parameter expansions in output of sed_double_quote_subst that -# were '\'-ed in input to the same. If an odd number of '\' preceded a -# '$' in input to sed_double_quote_subst, that '$' was protected from -# expansion. Since each input '\' is now two '\'s, look for any number -# of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'. -_G_bs='\\' -_G_bs2='\\\\' -_G_bs4='\\\\\\\\' -_G_dollar='\$' -sed_double_backslash="\ - s/$_G_bs4/&\\ -/g - s/^$_G_bs2$_G_dollar/$_G_bs&/ - s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g - s/\n//g" - -# require_check_ifs_backslash -# --------------------------- -# Check if we can use backslash as IFS='\' separator, and set -# $check_ifs_backshlash_broken to ':' or 'false'. -require_check_ifs_backslash=func_require_check_ifs_backslash -func_require_check_ifs_backslash () -{ - _G_save_IFS=$IFS - IFS='\' - _G_check_ifs_backshlash='a\\b' - for _G_i in $_G_check_ifs_backshlash - do - case $_G_i in - a) - check_ifs_backshlash_broken=false - ;; - '') - break - ;; - *) - check_ifs_backshlash_broken=: - break - ;; - esac - done - IFS=$_G_save_IFS - require_check_ifs_backslash=: -} - - -## ----------------- ## -## Global variables. ## -## ----------------- ## - -# Except for the global variables explicitly listed below, the following -# functions in the '^func_' namespace, and the '^require_' namespace -# variables initialised in the 'Resource management' section, sourcing -# this file will not pollute your global namespace with anything -# else. There's no portable way to scope variables in Bourne shell -# though, so actually running these functions will sometimes place -# results into a variable named after the function, and often use -# temporary variables in the '^_G_' namespace. If you are careful to -# avoid using those namespaces casually in your sourcing script, things -# should continue to work as you expect. And, of course, you can freely -# overwrite any of the functions or variables defined here before -# calling anything to customize them. - -EXIT_SUCCESS=0 -EXIT_FAILURE=1 -EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. -EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. - -# Allow overriding, eg assuming that you follow the convention of -# putting '$debug_cmd' at the start of all your functions, you can get -# bash to show function call trace with: -# -# debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name -debug_cmd=${debug_cmd-":"} -exit_cmd=: - -# By convention, finish your script with: -# -# exit $exit_status -# -# so that you can set exit_status to non-zero if you want to indicate -# something went wrong during execution without actually bailing out at -# the point of failure. -exit_status=$EXIT_SUCCESS - -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh -# is ksh but when the shell is invoked as "sh" and the current value of -# the _XPG environment variable is not equal to 1 (one), the special -# positional parameter $0, within a function call, is the name of the -# function. -progpath=$0 - -# The name of this program. -progname=`$ECHO "$progpath" |$SED "$sed_basename"` - -# Make sure we have an absolute progpath for reexecution: -case $progpath in - [\\/]*|[A-Za-z]:\\*) ;; - *[\\/]*) - progdir=`$ECHO "$progpath" |$SED "$sed_dirname"` - progdir=`cd "$progdir" && pwd` - progpath=$progdir/$progname - ;; - *) - _G_IFS=$IFS - IFS=${PATH_SEPARATOR-:} - for progdir in $PATH; do - IFS=$_G_IFS - test -x "$progdir/$progname" && break - done - IFS=$_G_IFS - test -n "$progdir" || progdir=`pwd` - progpath=$progdir/$progname - ;; -esac - - -## ----------------- ## -## Standard options. ## -## ----------------- ## - -# The following options affect the operation of the functions defined -# below, and should be set appropriately depending on run-time para- -# meters passed on the command line. - -opt_dry_run=false -opt_quiet=false -opt_verbose=false - -# Categories 'all' and 'none' are always available. Append any others -# you will pass as the first argument to func_warning from your own -# code. -warning_categories= - -# By default, display warnings according to 'opt_warning_types'. Set -# 'warning_func' to ':' to elide all warnings, or func_fatal_error to -# treat the next displayed warning as a fatal error. -warning_func=func_warn_and_continue - -# Set to 'all' to display all warnings, 'none' to suppress all -# warnings, or a space delimited list of some subset of -# 'warning_categories' to display only the listed warnings. -opt_warning_types=all - - -## -------------------- ## -## Resource management. ## -## -------------------- ## - -# This section contains definitions for functions that each ensure a -# particular resource (a file, or a non-empty configuration variable for -# example) is available, and if appropriate to extract default values -# from pertinent package files. Call them using their associated -# 'require_*' variable to ensure that they are executed, at most, once. -# -# It's entirely deliberate that calling these functions can set -# variables that don't obey the namespace limitations obeyed by the rest -# of this file, in order that that they be as useful as possible to -# callers. - - -# require_term_colors -# ------------------- -# Allow display of bold text on terminals that support it. -require_term_colors=func_require_term_colors -func_require_term_colors () -{ - $debug_cmd - - test -t 1 && { - # COLORTERM and USE_ANSI_COLORS environment variables take - # precedence, because most terminfo databases neglect to describe - # whether color sequences are supported. - test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"} - - if test 1 = "$USE_ANSI_COLORS"; then - # Standard ANSI escape sequences - tc_reset='' - tc_bold=''; tc_standout='' - tc_red=''; tc_green='' - tc_blue=''; tc_cyan='' - else - # Otherwise trust the terminfo database after all. - test -n "`tput sgr0 2>/dev/null`" && { - tc_reset=`tput sgr0` - test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold` - tc_standout=$tc_bold - test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso` - test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1` - test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2` - test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4` - test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5` - } - fi - } - - require_term_colors=: -} - - -## ----------------- ## -## Function library. ## -## ----------------- ## - -# This section contains a variety of useful functions to call in your -# scripts. Take note of the portable wrappers for features provided by -# some modern shells, which will fall back to slower equivalents on -# less featureful shells. - - -# func_append VAR VALUE -# --------------------- -# Append VALUE onto the existing contents of VAR. - - # We should try to minimise forks, especially on Windows where they are - # unreasonably slow, so skip the feature probes when bash or zsh are - # being used: - if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then - : ${_G_HAVE_ARITH_OP="yes"} - : ${_G_HAVE_XSI_OPS="yes"} - # The += operator was introduced in bash 3.1 - case $BASH_VERSION in - [12].* | 3.0 | 3.0*) ;; - *) - : ${_G_HAVE_PLUSEQ_OP="yes"} - ;; - esac - fi - - # _G_HAVE_PLUSEQ_OP - # Can be empty, in which case the shell is probed, "yes" if += is - # useable or anything else if it does not work. - test -z "$_G_HAVE_PLUSEQ_OP" \ - && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \ - && _G_HAVE_PLUSEQ_OP=yes - -if test yes = "$_G_HAVE_PLUSEQ_OP" -then - # This is an XSI compatible shell, allowing a faster implementation... - eval 'func_append () - { - $debug_cmd - - eval "$1+=\$2" - }' -else - # ...otherwise fall back to using expr, which is often a shell builtin. - func_append () - { - $debug_cmd - - eval "$1=\$$1\$2" - } -fi - - -# func_append_quoted VAR VALUE -# ---------------------------- -# Quote VALUE and append to the end of shell variable VAR, separated -# by a space. -if test yes = "$_G_HAVE_PLUSEQ_OP"; then - eval 'func_append_quoted () - { - $debug_cmd - - func_quote_arg pretty "$2" - eval "$1+=\\ \$func_quote_arg_result" - }' -else - func_append_quoted () - { - $debug_cmd - - func_quote_arg pretty "$2" - eval "$1=\$$1\\ \$func_quote_arg_result" - } -fi - - -# func_append_uniq VAR VALUE -# -------------------------- -# Append unique VALUE onto the existing contents of VAR, assuming -# entries are delimited by the first character of VALUE. For example: -# -# func_append_uniq options " --another-option option-argument" -# -# will only append to $options if " --another-option option-argument " -# is not already present somewhere in $options already (note spaces at -# each end implied by leading space in second argument). -func_append_uniq () -{ - $debug_cmd - - eval _G_current_value='`$ECHO $'$1'`' - _G_delim=`expr "$2" : '\(.\)'` - - case $_G_delim$_G_current_value$_G_delim in - *"$2$_G_delim"*) ;; - *) func_append "$@" ;; - esac -} - - -# func_arith TERM... -# ------------------ -# Set func_arith_result to the result of evaluating TERMs. - test -z "$_G_HAVE_ARITH_OP" \ - && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \ - && _G_HAVE_ARITH_OP=yes - -if test yes = "$_G_HAVE_ARITH_OP"; then - eval 'func_arith () - { - $debug_cmd - - func_arith_result=$(( $* )) - }' -else - func_arith () - { - $debug_cmd - - func_arith_result=`expr "$@"` - } -fi - - -# func_basename FILE -# ------------------ -# Set func_basename_result to FILE with everything up to and including -# the last / stripped. -if test yes = "$_G_HAVE_XSI_OPS"; then - # If this shell supports suffix pattern removal, then use it to avoid - # forking. Hide the definitions single quotes in case the shell chokes - # on unsupported syntax... - _b='func_basename_result=${1##*/}' - _d='case $1 in - */*) func_dirname_result=${1%/*}$2 ;; - * ) func_dirname_result=$3 ;; - esac' - -else - # ...otherwise fall back to using sed. - _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`' - _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"` - if test "X$func_dirname_result" = "X$1"; then - func_dirname_result=$3 - else - func_append func_dirname_result "$2" - fi' -fi - -eval 'func_basename () -{ - $debug_cmd - - '"$_b"' -}' - - -# func_dirname FILE APPEND NONDIR_REPLACEMENT -# ------------------------------------------- -# Compute the dirname of FILE. If nonempty, add APPEND to the result, -# otherwise set result to NONDIR_REPLACEMENT. -eval 'func_dirname () -{ - $debug_cmd - - '"$_d"' -}' - - -# func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT -# -------------------------------------------------------- -# Perform func_basename and func_dirname in a single function -# call: -# dirname: Compute the dirname of FILE. If nonempty, -# add APPEND to the result, otherwise set result -# to NONDIR_REPLACEMENT. -# value returned in "$func_dirname_result" -# basename: Compute filename of FILE. -# value retuned in "$func_basename_result" -# For efficiency, we do not delegate to the functions above but instead -# duplicate the functionality here. -eval 'func_dirname_and_basename () -{ - $debug_cmd - - '"$_b"' - '"$_d"' -}' - - -# func_echo ARG... -# ---------------- -# Echo program name prefixed message. -func_echo () -{ - $debug_cmd - - _G_message=$* - - func_echo_IFS=$IFS - IFS=$nl - for _G_line in $_G_message; do - IFS=$func_echo_IFS - $ECHO "$progname: $_G_line" - done - IFS=$func_echo_IFS -} - - -# func_echo_all ARG... -# -------------------- -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "$*" -} - - -# func_echo_infix_1 INFIX ARG... -# ------------------------------ -# Echo program name, followed by INFIX on the first line, with any -# additional lines not showing INFIX. -func_echo_infix_1 () -{ - $debug_cmd - - $require_term_colors - - _G_infix=$1; shift - _G_indent=$_G_infix - _G_prefix="$progname: $_G_infix: " - _G_message=$* - - # Strip color escape sequences before counting printable length - for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan" - do - test -n "$_G_tc" && { - _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"` - _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"` - } - done - _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes - - func_echo_infix_1_IFS=$IFS - IFS=$nl - for _G_line in $_G_message; do - IFS=$func_echo_infix_1_IFS - $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2 - _G_prefix=$_G_indent - done - IFS=$func_echo_infix_1_IFS -} - - -# func_error ARG... -# ----------------- -# Echo program name prefixed message to standard error. -func_error () -{ - $debug_cmd - - $require_term_colors - - func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2 -} - - -# func_fatal_error ARG... -# ----------------------- -# Echo program name prefixed message to standard error, and exit. -func_fatal_error () -{ - $debug_cmd - - func_error "$*" - exit $EXIT_FAILURE -} - - -# func_grep EXPRESSION FILENAME -# ----------------------------- -# Check whether EXPRESSION matches any line of FILENAME, without output. -func_grep () -{ - $debug_cmd - - $GREP "$1" "$2" >/dev/null 2>&1 -} - - -# func_len STRING -# --------------- -# Set func_len_result to the length of STRING. STRING may not -# start with a hyphen. - test -z "$_G_HAVE_XSI_OPS" \ - && (eval 'x=a/b/c; - test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ - && _G_HAVE_XSI_OPS=yes - -if test yes = "$_G_HAVE_XSI_OPS"; then - eval 'func_len () - { - $debug_cmd - - func_len_result=${#1} - }' -else - func_len () - { - $debug_cmd - - func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` - } -fi - - -# func_mkdir_p DIRECTORY-PATH -# --------------------------- -# Make sure the entire path to DIRECTORY-PATH is available. -func_mkdir_p () -{ - $debug_cmd - - _G_directory_path=$1 - _G_dir_list= - - if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then - - # Protect directory names starting with '-' - case $_G_directory_path in - -*) _G_directory_path=./$_G_directory_path ;; - esac - - # While some portion of DIR does not yet exist... - while test ! -d "$_G_directory_path"; do - # ...make a list in topmost first order. Use a colon delimited - # list incase some portion of path contains whitespace. - _G_dir_list=$_G_directory_path:$_G_dir_list - - # If the last portion added has no slash in it, the list is done - case $_G_directory_path in */*) ;; *) break ;; esac - - # ...otherwise throw away the child directory and loop - _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"` - done - _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'` - - func_mkdir_p_IFS=$IFS; IFS=: - for _G_dir in $_G_dir_list; do - IFS=$func_mkdir_p_IFS - # mkdir can fail with a 'File exist' error if two processes - # try to create one of the directories concurrently. Don't - # stop in that case! - $MKDIR "$_G_dir" 2>/dev/null || : - done - IFS=$func_mkdir_p_IFS - - # Bail out if we (or some other process) failed to create a directory. - test -d "$_G_directory_path" || \ - func_fatal_error "Failed to create '$1'" - fi -} - - -# func_mktempdir [BASENAME] -# ------------------------- -# Make a temporary directory that won't clash with other running -# libtool processes, and avoids race conditions if possible. If -# given, BASENAME is the basename for that directory. -func_mktempdir () -{ - $debug_cmd - - _G_template=${TMPDIR-/tmp}/${1-$progname} - - if test : = "$opt_dry_run"; then - # Return a directory name, but don't create it in dry-run mode - _G_tmpdir=$_G_template-$$ - else - - # If mktemp works, use that first and foremost - _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null` - - if test ! -d "$_G_tmpdir"; then - # Failing that, at least try and use $RANDOM to avoid a race - _G_tmpdir=$_G_template-${RANDOM-0}$$ - - func_mktempdir_umask=`umask` - umask 0077 - $MKDIR "$_G_tmpdir" - umask $func_mktempdir_umask - fi - - # If we're not in dry-run mode, bomb out on failure - test -d "$_G_tmpdir" || \ - func_fatal_error "cannot create temporary directory '$_G_tmpdir'" - fi - - $ECHO "$_G_tmpdir" -} - - -# func_normal_abspath PATH -# ------------------------ -# Remove doubled-up and trailing slashes, "." path components, -# and cancel out any ".." path components in PATH after making -# it an absolute path. -func_normal_abspath () -{ - $debug_cmd - - # These SED scripts presuppose an absolute path with a trailing slash. - _G_pathcar='s|^/\([^/]*\).*$|\1|' - _G_pathcdr='s|^/[^/]*||' - _G_removedotparts=':dotsl - s|/\./|/|g - t dotsl - s|/\.$|/|' - _G_collapseslashes='s|/\{1,\}|/|g' - _G_finalslash='s|/*$|/|' - - # Start from root dir and reassemble the path. - func_normal_abspath_result= - func_normal_abspath_tpath=$1 - func_normal_abspath_altnamespace= - case $func_normal_abspath_tpath in - "") - # Empty path, that just means $cwd. - func_stripname '' '/' "`pwd`" - func_normal_abspath_result=$func_stripname_result - return - ;; - # The next three entries are used to spot a run of precisely - # two leading slashes without using negated character classes; - # we take advantage of case's first-match behaviour. - ///*) - # Unusual form of absolute path, do nothing. - ;; - //*) - # Not necessarily an ordinary path; POSIX reserves leading '//' - # and for example Cygwin uses it to access remote file shares - # over CIFS/SMB, so we conserve a leading double slash if found. - func_normal_abspath_altnamespace=/ - ;; - /*) - # Absolute path, do nothing. - ;; - *) - # Relative path, prepend $cwd. - func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath - ;; - esac - - # Cancel out all the simple stuff to save iterations. We also want - # the path to end with a slash for ease of parsing, so make sure - # there is one (and only one) here. - func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ - -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"` - while :; do - # Processed it all yet? - if test / = "$func_normal_abspath_tpath"; then - # If we ascended to the root using ".." the result may be empty now. - if test -z "$func_normal_abspath_result"; then - func_normal_abspath_result=/ - fi - break - fi - func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \ - -e "$_G_pathcar"` - func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \ - -e "$_G_pathcdr"` - # Figure out what to do with it - case $func_normal_abspath_tcomponent in - "") - # Trailing empty path component, ignore it. - ;; - ..) - # Parent dir; strip last assembled component from result. - func_dirname "$func_normal_abspath_result" - func_normal_abspath_result=$func_dirname_result - ;; - *) - # Actual path component, append it. - func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent" - ;; - esac - done - # Restore leading double-slash if one was found on entry. - func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result -} - - -# func_notquiet ARG... -# -------------------- -# Echo program name prefixed message only when not in quiet mode. -func_notquiet () -{ - $debug_cmd - - $opt_quiet || func_echo ${1+"$@"} - - # A bug in bash halts the script if the last line of a function - # fails when set -e is in force, so we need another command to - # work around that: - : -} - - -# func_relative_path SRCDIR DSTDIR -# -------------------------------- -# Set func_relative_path_result to the relative path from SRCDIR to DSTDIR. -func_relative_path () -{ - $debug_cmd - - func_relative_path_result= - func_normal_abspath "$1" - func_relative_path_tlibdir=$func_normal_abspath_result - func_normal_abspath "$2" - func_relative_path_tbindir=$func_normal_abspath_result - - # Ascend the tree starting from libdir - while :; do - # check if we have found a prefix of bindir - case $func_relative_path_tbindir in - $func_relative_path_tlibdir) - # found an exact match - func_relative_path_tcancelled= - break - ;; - $func_relative_path_tlibdir*) - # found a matching prefix - func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir" - func_relative_path_tcancelled=$func_stripname_result - if test -z "$func_relative_path_result"; then - func_relative_path_result=. - fi - break - ;; - *) - func_dirname $func_relative_path_tlibdir - func_relative_path_tlibdir=$func_dirname_result - if test -z "$func_relative_path_tlibdir"; then - # Have to descend all the way to the root! - func_relative_path_result=../$func_relative_path_result - func_relative_path_tcancelled=$func_relative_path_tbindir - break - fi - func_relative_path_result=../$func_relative_path_result - ;; - esac - done - - # Now calculate path; take care to avoid doubling-up slashes. - func_stripname '' '/' "$func_relative_path_result" - func_relative_path_result=$func_stripname_result - func_stripname '/' '/' "$func_relative_path_tcancelled" - if test -n "$func_stripname_result"; then - func_append func_relative_path_result "/$func_stripname_result" - fi - - # Normalisation. If bindir is libdir, return '.' else relative path. - if test -n "$func_relative_path_result"; then - func_stripname './' '' "$func_relative_path_result" - func_relative_path_result=$func_stripname_result - fi - - test -n "$func_relative_path_result" || func_relative_path_result=. - - : -} - - -# func_quote_portable EVAL ARG -# ---------------------------- -# Internal function to portably implement func_quote_arg. Note that we still -# keep attention to performance here so we as much as possible try to avoid -# calling sed binary (so far O(N) complexity as long as func_append is O(1)). -func_quote_portable () -{ - $debug_cmd - - $require_check_ifs_backslash - - func_quote_portable_result=$2 - - # one-time-loop (easy break) - while true - do - if $1; then - func_quote_portable_result=`$ECHO "$2" | $SED \ - -e "$sed_double_quote_subst" -e "$sed_double_backslash"` - break - fi - - # Quote for eval. - case $func_quote_portable_result in - *[\\\`\"\$]*) - # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string - # contains the shell wildcard characters. - case $check_ifs_backshlash_broken$func_quote_portable_result in - :*|*[\[\*\?]*) - func_quote_portable_result=`$ECHO "$func_quote_portable_result" \ - | $SED "$sed_quote_subst"` - break - ;; - esac - - func_quote_portable_old_IFS=$IFS - for _G_char in '\' '`' '"' '$' - do - # STATE($1) PREV($2) SEPARATOR($3) - set start "" "" - func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy - IFS=$_G_char - for _G_part in $func_quote_portable_result - do - case $1 in - quote) - func_append func_quote_portable_result "$3$2" - set quote "$_G_part" "\\$_G_char" - ;; - start) - set first "" "" - func_quote_portable_result= - ;; - first) - set quote "$_G_part" "" - ;; - esac - done - done - IFS=$func_quote_portable_old_IFS - ;; - *) ;; - esac - break - done - - func_quote_portable_unquoted_result=$func_quote_portable_result - case $func_quote_portable_result in - # double-quote args containing shell metacharacters to delay - # word splitting, command substitution and variable expansion - # for a subsequent eval. - # many bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - func_quote_portable_result=\"$func_quote_portable_result\" - ;; - esac -} - - -# func_quotefast_eval ARG -# ----------------------- -# Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG', -# but optimized for speed. Result is stored in $func_quotefast_eval. -if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then - printf -v _GL_test_printf_tilde %q '~' - if test '\~' = "$_GL_test_printf_tilde"; then - func_quotefast_eval () - { - printf -v func_quotefast_eval_result %q "$1" - } - else - # Broken older Bash implementations. Make those faster too if possible. - func_quotefast_eval () - { - case $1 in - '~'*) - func_quote_portable false "$1" - func_quotefast_eval_result=$func_quote_portable_result - ;; - *) - printf -v func_quotefast_eval_result %q "$1" - ;; - esac - } - fi -else - func_quotefast_eval () - { - func_quote_portable false "$1" - func_quotefast_eval_result=$func_quote_portable_result - } -fi - - -# func_quote_arg MODEs ARG -# ------------------------ -# Quote one ARG to be evaled later. MODEs argument may contain zero or more -# specifiers listed below separated by ',' character. This function returns two -# values: -# i) func_quote_arg_result -# double-quoted (when needed), suitable for a subsequent eval -# ii) func_quote_arg_unquoted_result -# has all characters that are still active within double -# quotes backslashified. Available only if 'unquoted' is specified. -# -# Available modes: -# ---------------- -# 'eval' (default) -# - escape shell special characters -# 'expand' -# - the same as 'eval'; but do not quote variable references -# 'pretty' -# - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might -# be used later in func_quote to get output like: 'echo "a b"' instead -# of 'echo a\ b'. This is slower than default on some shells. -# 'unquoted' -# - produce also $func_quote_arg_unquoted_result which does not contain -# wrapping double-quotes. -# -# Examples for 'func_quote_arg pretty,unquoted string': -# -# string | *_result | *_unquoted_result -# ------------+-----------------------+------------------- -# " | \" | \" -# a b | "a b" | a b -# "a b" | "\"a b\"" | \"a b\" -# * | "*" | * -# z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\" -# -# Examples for 'func_quote_arg pretty,unquoted,expand string': -# -# string | *_result | *_unquoted_result -# --------------+---------------------+-------------------- -# z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\" -func_quote_arg () -{ - _G_quote_expand=false - case ,$1, in - *,expand,*) - _G_quote_expand=: - ;; - esac - - case ,$1, in - *,pretty,*|*,expand,*|*,unquoted,*) - func_quote_portable $_G_quote_expand "$2" - func_quote_arg_result=$func_quote_portable_result - func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result - ;; - *) - # Faster quote-for-eval for some shells. - func_quotefast_eval "$2" - func_quote_arg_result=$func_quotefast_eval_result - ;; - esac -} - - -# func_quote MODEs ARGs... -# ------------------------ -# Quote all ARGs to be evaled later and join them into single command. See -# func_quote_arg's description for more info. -func_quote () -{ - $debug_cmd - _G_func_quote_mode=$1 ; shift - func_quote_result= - while test 0 -lt $#; do - func_quote_arg "$_G_func_quote_mode" "$1" - if test -n "$func_quote_result"; then - func_append func_quote_result " $func_quote_arg_result" - else - func_append func_quote_result "$func_quote_arg_result" - fi - shift - done -} - - -# func_stripname PREFIX SUFFIX NAME -# --------------------------------- -# strip PREFIX and SUFFIX from NAME, and store in func_stripname_result. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -if test yes = "$_G_HAVE_XSI_OPS"; then - eval 'func_stripname () - { - $debug_cmd - - # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are - # positional parameters, so assign one to ordinary variable first. - func_stripname_result=$3 - func_stripname_result=${func_stripname_result#"$1"} - func_stripname_result=${func_stripname_result%"$2"} - }' -else - func_stripname () - { - $debug_cmd - - case $2 in - .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;; - *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;; - esac - } -fi - - -# func_show_eval CMD [FAIL_EXP] -# ----------------------------- -# Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP -# is given, then evaluate it. -func_show_eval () -{ - $debug_cmd - - _G_cmd=$1 - _G_fail_exp=${2-':'} - - func_quote_arg pretty,expand "$_G_cmd" - eval "func_notquiet $func_quote_arg_result" - - $opt_dry_run || { - eval "$_G_cmd" - _G_status=$? - if test 0 -ne "$_G_status"; then - eval "(exit $_G_status); $_G_fail_exp" - fi - } -} - - -# func_show_eval_locale CMD [FAIL_EXP] -# ------------------------------------ -# Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is -# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP -# is given, then evaluate it. Use the saved locale for evaluation. -func_show_eval_locale () -{ - $debug_cmd - - _G_cmd=$1 - _G_fail_exp=${2-':'} - - $opt_quiet || { - func_quote_arg expand,pretty "$_G_cmd" - eval "func_echo $func_quote_arg_result" - } - - $opt_dry_run || { - eval "$_G_user_locale - $_G_cmd" - _G_status=$? - eval "$_G_safe_locale" - if test 0 -ne "$_G_status"; then - eval "(exit $_G_status); $_G_fail_exp" - fi - } -} - - -# func_tr_sh -# ---------- -# Turn $1 into a string suitable for a shell variable name. -# Result is stored in $func_tr_sh_result. All characters -# not in the set a-zA-Z0-9_ are replaced with '_'. Further, -# if $1 begins with a digit, a '_' is prepended as well. -func_tr_sh () -{ - $debug_cmd - - case $1 in - [0-9]* | *[!a-zA-Z0-9_]*) - func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'` - ;; - * ) - func_tr_sh_result=$1 - ;; - esac -} - - -# func_verbose ARG... -# ------------------- -# Echo program name prefixed message in verbose mode only. -func_verbose () -{ - $debug_cmd - - $opt_verbose && func_echo "$*" - - : -} - - -# func_warn_and_continue ARG... -# ----------------------------- -# Echo program name prefixed warning message to standard error. -func_warn_and_continue () -{ - $debug_cmd - - $require_term_colors - - func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2 -} - - -# func_warning CATEGORY ARG... -# ---------------------------- -# Echo program name prefixed warning message to standard error. Warning -# messages can be filtered according to CATEGORY, where this function -# elides messages where CATEGORY is not listed in the global variable -# 'opt_warning_types'. -func_warning () -{ - $debug_cmd - - # CATEGORY must be in the warning_categories list! - case " $warning_categories " in - *" $1 "*) ;; - *) func_internal_error "invalid warning category '$1'" ;; - esac - - _G_category=$1 - shift - - case " $opt_warning_types " in - *" $_G_category "*) $warning_func ${1+"$@"} ;; - esac -} - - -# func_sort_ver VER1 VER2 -# ----------------------- -# 'sort -V' is not generally available. -# Note this deviates from the version comparison in automake -# in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a -# but this should suffice as we won't be specifying old -# version formats or redundant trailing .0 in bootstrap.conf. -# If we did want full compatibility then we should probably -# use m4_version_compare from autoconf. -func_sort_ver () -{ - $debug_cmd - - printf '%s\n%s\n' "$1" "$2" \ - | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n -} - -# func_lt_ver PREV CURR -# --------------------- -# Return true if PREV and CURR are in the correct order according to -# func_sort_ver, otherwise false. Use it like this: -# -# func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..." -func_lt_ver () -{ - $debug_cmd - - test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q` -} - - -# Local variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" -# time-stamp-time-zone: "UTC" -# End: -#! /bin/sh - -# A portable, pluggable option parser for Bourne shell. -# Written by Gary V. Vaughan, 2010 - -# This is free software. There is NO warranty; not even for -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# -# Copyright (C) 2010-2019, 2021 Bootstrap Authors -# -# This file is dual licensed under the terms of the MIT license -# , and GPL version 2 or later -# . You must apply one of -# these licenses when using or redistributing this software or any of -# the files within it. See the URLs above, or the file `LICENSE` -# included in the Bootstrap distribution for the full license texts. - -# Please report bugs or propose patches to: -# - -# Set a version string for this script. -scriptversion=2019-02-19.15; # UTC - - -## ------ ## -## Usage. ## -## ------ ## - -# This file is a library for parsing options in your shell scripts along -# with assorted other useful supporting features that you can make use -# of too. -# -# For the simplest scripts you might need only: -# -# #!/bin/sh -# . relative/path/to/funclib.sh -# . relative/path/to/options-parser -# scriptversion=1.0 -# func_options ${1+"$@"} -# eval set dummy "$func_options_result"; shift -# ...rest of your script... -# -# In order for the '--version' option to work, you will need to have a -# suitably formatted comment like the one at the top of this file -# starting with '# Written by ' and ending with '# Copyright'. -# -# For '-h' and '--help' to work, you will also need a one line -# description of your script's purpose in a comment directly above the -# '# Written by ' line, like the one at the top of this file. -# -# The default options also support '--debug', which will turn on shell -# execution tracing (see the comment above debug_cmd below for another -# use), and '--verbose' and the func_verbose function to allow your script -# to display verbose messages only when your user has specified -# '--verbose'. -# -# After sourcing this file, you can plug in processing for additional -# options by amending the variables from the 'Configuration' section -# below, and following the instructions in the 'Option parsing' -# section further down. - -## -------------- ## -## Configuration. ## -## -------------- ## - -# You should override these variables in your script after sourcing this -# file so that they reflect the customisations you have added to the -# option parser. - -# The usage line for option parsing errors and the start of '-h' and -# '--help' output messages. You can embed shell variables for delayed -# expansion at the time the message is displayed, but you will need to -# quote other shell meta-characters carefully to prevent them being -# expanded when the contents are evaled. -usage='$progpath [OPTION]...' - -# Short help message in response to '-h' and '--help'. Add to this or -# override it after sourcing this library to reflect the full set of -# options your script accepts. -usage_message="\ - --debug enable verbose shell tracing - -W, --warnings=CATEGORY - report the warnings falling in CATEGORY [all] - -v, --verbose verbosely report processing - --version print version information and exit - -h, --help print short or long help message and exit -" - -# Additional text appended to 'usage_message' in response to '--help'. -long_help_message=" -Warning categories include: - 'all' show all warnings - 'none' turn off all the warnings - 'error' warnings are treated as fatal errors" - -# Help message printed before fatal option parsing errors. -fatal_help="Try '\$progname --help' for more information." - - - -## ------------------------- ## -## Hook function management. ## -## ------------------------- ## - -# This section contains functions for adding, removing, and running hooks -# in the main code. A hook is just a list of function names that can be -# run in order later on. - -# func_hookable FUNC_NAME -# ----------------------- -# Declare that FUNC_NAME will run hooks added with -# 'func_add_hook FUNC_NAME ...'. -func_hookable () -{ - $debug_cmd - - func_append hookable_fns " $1" -} - - -# func_add_hook FUNC_NAME HOOK_FUNC -# --------------------------------- -# Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must -# first have been declared "hookable" by a call to 'func_hookable'. -func_add_hook () -{ - $debug_cmd - - case " $hookable_fns " in - *" $1 "*) ;; - *) func_fatal_error "'$1' does not accept hook functions." ;; - esac - - eval func_append ${1}_hooks '" $2"' -} - - -# func_remove_hook FUNC_NAME HOOK_FUNC -# ------------------------------------ -# Remove HOOK_FUNC from the list of hook functions to be called by -# FUNC_NAME. -func_remove_hook () -{ - $debug_cmd - - eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`' -} - - -# func_propagate_result FUNC_NAME_A FUNC_NAME_B -# --------------------------------------------- -# If the *_result variable of FUNC_NAME_A _is set_, assign its value to -# *_result variable of FUNC_NAME_B. -func_propagate_result () -{ - $debug_cmd - - func_propagate_result_result=: - if eval "test \"\${${1}_result+set}\" = set" - then - eval "${2}_result=\$${1}_result" - else - func_propagate_result_result=false - fi -} - - -# func_run_hooks FUNC_NAME [ARG]... -# --------------------------------- -# Run all hook functions registered to FUNC_NAME. -# It's assumed that the list of hook functions contains nothing more -# than a whitespace-delimited list of legal shell function names, and -# no effort is wasted trying to catch shell meta-characters or preserve -# whitespace. -func_run_hooks () -{ - $debug_cmd - - case " $hookable_fns " in - *" $1 "*) ;; - *) func_fatal_error "'$1' does not support hook functions." ;; - esac - - eval _G_hook_fns=\$$1_hooks; shift - - for _G_hook in $_G_hook_fns; do - func_unset "${_G_hook}_result" - eval $_G_hook '${1+"$@"}' - func_propagate_result $_G_hook func_run_hooks - if $func_propagate_result_result; then - eval set dummy "$func_run_hooks_result"; shift - fi - done -} - - - -## --------------- ## -## Option parsing. ## -## --------------- ## - -# In order to add your own option parsing hooks, you must accept the -# full positional parameter list from your hook function. You may remove -# or edit any options that you action, and then pass back the remaining -# unprocessed options in '_result', escaped -# suitably for 'eval'. -# -# The '_result' variable is automatically unset -# before your hook gets called; for best performance, only set the -# *_result variable when necessary (i.e. don't call the 'func_quote' -# function unnecessarily because it can be an expensive operation on some -# machines). -# -# Like this: -# -# my_options_prep () -# { -# $debug_cmd -# -# # Extend the existing usage message. -# usage_message=$usage_message' -# -s, --silent don'\''t print informational messages -# ' -# # No change in '$@' (ignored completely by this hook). Leave -# # my_options_prep_result variable intact. -# } -# func_add_hook func_options_prep my_options_prep -# -# -# my_silent_option () -# { -# $debug_cmd -# -# args_changed=false -# -# # Note that, for efficiency, we parse as many options as we can -# # recognise in a loop before passing the remainder back to the -# # caller on the first unrecognised argument we encounter. -# while test $# -gt 0; do -# opt=$1; shift -# case $opt in -# --silent|-s) opt_silent=: -# args_changed=: -# ;; -# # Separate non-argument short options: -# -s*) func_split_short_opt "$_G_opt" -# set dummy "$func_split_short_opt_name" \ -# "-$func_split_short_opt_arg" ${1+"$@"} -# shift -# args_changed=: -# ;; -# *) # Make sure the first unrecognised option "$_G_opt" -# # is added back to "$@" in case we need it later, -# # if $args_changed was set to 'true'. -# set dummy "$_G_opt" ${1+"$@"}; shift; break ;; -# esac -# done -# -# # Only call 'func_quote' here if we processed at least one argument. -# if $args_changed; then -# func_quote eval ${1+"$@"} -# my_silent_option_result=$func_quote_result -# fi -# } -# func_add_hook func_parse_options my_silent_option -# -# -# my_option_validation () -# { -# $debug_cmd -# -# $opt_silent && $opt_verbose && func_fatal_help "\ -# '--silent' and '--verbose' options are mutually exclusive." -# } -# func_add_hook func_validate_options my_option_validation -# -# You'll also need to manually amend $usage_message to reflect the extra -# options you parse. It's preferable to append if you can, so that -# multiple option parsing hooks can be added safely. - - -# func_options_finish [ARG]... -# ---------------------------- -# Finishing the option parse loop (call 'func_options' hooks ATM). -func_options_finish () -{ - $debug_cmd - - func_run_hooks func_options ${1+"$@"} - func_propagate_result func_run_hooks func_options_finish -} - - -# func_options [ARG]... -# --------------------- -# All the functions called inside func_options are hookable. See the -# individual implementations for details. -func_hookable func_options -func_options () -{ - $debug_cmd - - _G_options_quoted=false - - for my_func in options_prep parse_options validate_options options_finish - do - func_unset func_${my_func}_result - func_unset func_run_hooks_result - eval func_$my_func '${1+"$@"}' - func_propagate_result func_$my_func func_options - if $func_propagate_result_result; then - eval set dummy "$func_options_result"; shift - _G_options_quoted=: - fi - done - - $_G_options_quoted || { - # As we (func_options) are top-level options-parser function and - # nobody quoted "$@" for us yet, we need to do it explicitly for - # caller. - func_quote eval ${1+"$@"} - func_options_result=$func_quote_result - } -} - - -# func_options_prep [ARG]... -# -------------------------- -# All initialisations required before starting the option parse loop. -# Note that when calling hook functions, we pass through the list of -# positional parameters. If a hook function modifies that list, and -# needs to propagate that back to rest of this script, then the complete -# modified list must be put in 'func_run_hooks_result' before returning. -func_hookable func_options_prep -func_options_prep () -{ - $debug_cmd - - # Option defaults: - opt_verbose=false - opt_warning_types= - - func_run_hooks func_options_prep ${1+"$@"} - func_propagate_result func_run_hooks func_options_prep -} - - -# func_parse_options [ARG]... -# --------------------------- -# The main option parsing loop. -func_hookable func_parse_options -func_parse_options () -{ - $debug_cmd - - _G_parse_options_requote=false - # this just eases exit handling - while test $# -gt 0; do - # Defer to hook functions for initial option parsing, so they - # get priority in the event of reusing an option name. - func_run_hooks func_parse_options ${1+"$@"} - func_propagate_result func_run_hooks func_parse_options - if $func_propagate_result_result; then - eval set dummy "$func_parse_options_result"; shift - # Even though we may have changed "$@", we passed the "$@" array - # down into the hook and it quoted it for us (because we are in - # this if-branch). No need to quote it again. - _G_parse_options_requote=false - fi - - # Break out of the loop if we already parsed every option. - test $# -gt 0 || break - - # We expect that one of the options parsed in this function matches - # and thus we remove _G_opt from "$@" and need to re-quote. - _G_match_parse_options=: - _G_opt=$1 - shift - case $_G_opt in - --debug|-x) debug_cmd='set -x' - func_echo "enabling shell trace mode" >&2 - $debug_cmd - ;; - - --no-warnings|--no-warning|--no-warn) - set dummy --warnings none ${1+"$@"} - shift - ;; - - --warnings|--warning|-W) - if test $# = 0 && func_missing_arg $_G_opt; then - _G_parse_options_requote=: - break - fi - case " $warning_categories $1" in - *" $1 "*) - # trailing space prevents matching last $1 above - func_append_uniq opt_warning_types " $1" - ;; - *all) - opt_warning_types=$warning_categories - ;; - *none) - opt_warning_types=none - warning_func=: - ;; - *error) - opt_warning_types=$warning_categories - warning_func=func_fatal_error - ;; - *) - func_fatal_error \ - "unsupported warning category: '$1'" - ;; - esac - shift - ;; - - --verbose|-v) opt_verbose=: ;; - --version) func_version ;; - -\?|-h) func_usage ;; - --help) func_help ;; - - # Separate optargs to long options (plugins may need this): - --*=*) func_split_equals "$_G_opt" - set dummy "$func_split_equals_lhs" \ - "$func_split_equals_rhs" ${1+"$@"} - shift - ;; - - # Separate optargs to short options: - -W*) - func_split_short_opt "$_G_opt" - set dummy "$func_split_short_opt_name" \ - "$func_split_short_opt_arg" ${1+"$@"} - shift - ;; - - # Separate non-argument short options: - -\?*|-h*|-v*|-x*) - func_split_short_opt "$_G_opt" - set dummy "$func_split_short_opt_name" \ - "-$func_split_short_opt_arg" ${1+"$@"} - shift - ;; - - --) _G_parse_options_requote=: ; break ;; - -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; - *) set dummy "$_G_opt" ${1+"$@"}; shift - _G_match_parse_options=false - break - ;; - esac - - if $_G_match_parse_options; then - _G_parse_options_requote=: - fi - done - - if $_G_parse_options_requote; then - # save modified positional parameters for caller - func_quote eval ${1+"$@"} - func_parse_options_result=$func_quote_result - fi -} - - -# func_validate_options [ARG]... -# ------------------------------ -# Perform any sanity checks on option settings and/or unconsumed -# arguments. -func_hookable func_validate_options -func_validate_options () -{ - $debug_cmd - - # Display all warnings if -W was not given. - test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" - - func_run_hooks func_validate_options ${1+"$@"} - func_propagate_result func_run_hooks func_validate_options - - # Bail if the options were screwed! - $exit_cmd $EXIT_FAILURE -} - - - -## ----------------- ## -## Helper functions. ## -## ----------------- ## - -# This section contains the helper functions used by the rest of the -# hookable option parser framework in ascii-betical order. - - -# func_fatal_help ARG... -# ---------------------- -# Echo program name prefixed message to standard error, followed by -# a help hint, and exit. -func_fatal_help () -{ - $debug_cmd - - eval \$ECHO \""Usage: $usage"\" - eval \$ECHO \""$fatal_help"\" - func_error ${1+"$@"} - exit $EXIT_FAILURE -} - - -# func_help -# --------- -# Echo long help message to standard output and exit. -func_help () -{ - $debug_cmd - - func_usage_message - $ECHO "$long_help_message" - exit 0 -} - - -# func_missing_arg ARGNAME -# ------------------------ -# Echo program name prefixed message to standard error and set global -# exit_cmd. -func_missing_arg () -{ - $debug_cmd - - func_error "Missing argument for '$1'." - exit_cmd=exit -} - - -# func_split_equals STRING -# ------------------------ -# Set func_split_equals_lhs and func_split_equals_rhs shell variables -# after splitting STRING at the '=' sign. -test -z "$_G_HAVE_XSI_OPS" \ - && (eval 'x=a/b/c; - test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ - && _G_HAVE_XSI_OPS=yes - -if test yes = "$_G_HAVE_XSI_OPS" -then - # This is an XSI compatible shell, allowing a faster implementation... - eval 'func_split_equals () - { - $debug_cmd - - func_split_equals_lhs=${1%%=*} - func_split_equals_rhs=${1#*=} - if test "x$func_split_equals_lhs" = "x$1"; then - func_split_equals_rhs= - fi - }' -else - # ...otherwise fall back to using expr, which is often a shell builtin. - func_split_equals () - { - $debug_cmd - - func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` - func_split_equals_rhs= - test "x$func_split_equals_lhs=" = "x$1" \ - || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` - } -fi #func_split_equals - - -# func_split_short_opt SHORTOPT -# ----------------------------- -# Set func_split_short_opt_name and func_split_short_opt_arg shell -# variables after splitting SHORTOPT after the 2nd character. -if test yes = "$_G_HAVE_XSI_OPS" -then - # This is an XSI compatible shell, allowing a faster implementation... - eval 'func_split_short_opt () - { - $debug_cmd - - func_split_short_opt_arg=${1#??} - func_split_short_opt_name=${1%"$func_split_short_opt_arg"} - }' -else - # ...otherwise fall back to using expr, which is often a shell builtin. - func_split_short_opt () - { - $debug_cmd - - func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'` - func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` - } -fi #func_split_short_opt - - -# func_usage -# ---------- -# Echo short help message to standard output and exit. -func_usage () -{ - $debug_cmd - - func_usage_message - $ECHO "Run '$progname --help |${PAGER-more}' for full usage" - exit 0 -} - - -# func_usage_message -# ------------------ -# Echo short help message to standard output. -func_usage_message () -{ - $debug_cmd - - eval \$ECHO \""Usage: $usage"\" - echo - $SED -n 's|^# || - /^Written by/{ - x;p;x - } - h - /^Written by/q' < "$progpath" - echo - eval \$ECHO \""$usage_message"\" -} - - -# func_version -# ------------ -# Echo version message to standard output and exit. -# The version message is extracted from the calling file's header -# comments, with leading '# ' stripped: -# 1. First display the progname and version -# 2. Followed by the header comment line matching /^# Written by / -# 3. Then a blank line followed by the first following line matching -# /^# Copyright / -# 4. Immediately followed by any lines between the previous matches, -# except lines preceding the intervening completely blank line. -# For example, see the header comments of this file. -func_version () -{ - $debug_cmd - - printf '%s\n' "$progname $scriptversion" - $SED -n ' - /^# Written by /!b - s|^# ||; p; n - - :fwd2blnk - /./ { - n - b fwd2blnk - } - p; n - - :holdwrnt - s|^# || - s|^# *$|| - /^Copyright /!{ - /./H - n - b holdwrnt - } - - s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| - G - s|\(\n\)\n*|\1|g - p; q' < "$progpath" - - exit $? -} - - -# Local variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC" -# time-stamp-time-zone: "UTC" -# End: - -# Set a version string. -scriptversion='(GNU libtool) 2.4.7' - - -# func_echo ARG... -# ---------------- -# Libtool also displays the current mode in messages, so override -# funclib.sh func_echo with this custom definition. -func_echo () -{ - $debug_cmd - - _G_message=$* - - func_echo_IFS=$IFS - IFS=$nl - for _G_line in $_G_message; do - IFS=$func_echo_IFS - $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line" - done - IFS=$func_echo_IFS -} - - -# func_warning ARG... -# ------------------- -# Libtool warnings are not categorized, so override funclib.sh -# func_warning with this simpler definition. -func_warning () -{ - $debug_cmd - - $warning_func ${1+"$@"} -} - - -## ---------------- ## -## Options parsing. ## -## ---------------- ## - -# Hook in the functions to make sure our own options are parsed during -# the option parsing loop. - -usage='$progpath [OPTION]... [MODE-ARG]...' - -# Short help message in response to '-h'. -usage_message="Options: - --config show all configuration variables - --debug enable verbose shell tracing - -n, --dry-run display commands without modifying any files - --features display basic configuration information and exit - --mode=MODE use operation mode MODE - --no-warnings equivalent to '-Wnone' - --preserve-dup-deps don't remove duplicate dependency libraries - --quiet, --silent don't print informational messages - --tag=TAG use configuration variables from tag TAG - -v, --verbose print more informational messages than default - --version print version information - -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all] - -h, --help, --help-all print short, long, or detailed help message -" - -# Additional text appended to 'usage_message' in response to '--help'. -func_help () -{ - $debug_cmd - - func_usage_message - $ECHO "$long_help_message - -MODE must be one of the following: - - clean remove files from the build directory - compile compile a source file into a libtool object - execute automatically set library path, then run a program - finish complete the installation of libtool libraries - install install libraries or executables - link create a library or an executable - uninstall remove libraries from an installed directory - -MODE-ARGS vary depending on the MODE. When passed as first option, -'--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that. -Try '$progname --help --mode=MODE' for a more detailed description of MODE. - -When reporting a bug, please describe a test case to reproduce it and -include the following information: - - host-triplet: $host - shell: $SHELL - compiler: $LTCC - compiler flags: $LTCFLAGS - linker: $LD (gnu? $with_gnu_ld) - version: $progname (GNU libtool) 2.4.7 - automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` - autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` - -Report bugs to . -GNU libtool home page: . -General help using GNU software: ." - exit 0 -} - - -# func_lo2o OBJECT-NAME -# --------------------- -# Transform OBJECT-NAME from a '.lo' suffix to the platform specific -# object suffix. - -lo2o=s/\\.lo\$/.$objext/ -o2lo=s/\\.$objext\$/.lo/ - -if test yes = "$_G_HAVE_XSI_OPS"; then - eval 'func_lo2o () - { - case $1 in - *.lo) func_lo2o_result=${1%.lo}.$objext ;; - * ) func_lo2o_result=$1 ;; - esac - }' - - # func_xform LIBOBJ-OR-SOURCE - # --------------------------- - # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise) - # suffix to a '.lo' libtool-object suffix. - eval 'func_xform () - { - func_xform_result=${1%.*}.lo - }' -else - # ...otherwise fall back to using sed. - func_lo2o () - { - func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"` - } - - func_xform () - { - func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'` - } -fi - - -# func_fatal_configuration ARG... -# ------------------------------- -# Echo program name prefixed message to standard error, followed by -# a configuration failure hint, and exit. -func_fatal_configuration () -{ - func_fatal_error ${1+"$@"} \ - "See the $PACKAGE documentation for more information." \ - "Fatal configuration error." -} - - -# func_config -# ----------- -# Display the configuration for all the tags in this script. -func_config () -{ - re_begincf='^# ### BEGIN LIBTOOL' - re_endcf='^# ### END LIBTOOL' - - # Default configuration. - $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath" - - # Now print the configurations for the tags. - for tagname in $taglist; do - $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" - done - - exit $? -} - - -# func_features -# ------------- -# Display the features supported by this script. -func_features () -{ - echo "host: $host" - if test yes = "$build_libtool_libs"; then - echo "enable shared libraries" - else - echo "disable shared libraries" - fi - if test yes = "$build_old_libs"; then - echo "enable static libraries" - else - echo "disable static libraries" - fi - - exit $? -} - - -# func_enable_tag TAGNAME -# ----------------------- -# Verify that TAGNAME is valid, and either flag an error and exit, or -# enable the TAGNAME tag. We also add TAGNAME to the global $taglist -# variable here. -func_enable_tag () -{ - # Global variable: - tagname=$1 - - re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$" - re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$" - sed_extractcf=/$re_begincf/,/$re_endcf/p - - # Validate tagname. - case $tagname in - *[!-_A-Za-z0-9,/]*) - func_fatal_error "invalid tag name: $tagname" - ;; - esac - - # Don't test for the "default" C tag, as we know it's - # there but not specially marked. - case $tagname in - CC) ;; - *) - if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then - taglist="$taglist $tagname" - - # Evaluate the configuration. Be careful to quote the path - # and the sed script, to avoid splitting on whitespace, but - # also don't use non-portable quotes within backquotes within - # quotes we have to do it in 2 steps: - extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"` - eval "$extractedcf" - else - func_error "ignoring unknown tag $tagname" - fi - ;; - esac -} - - -# func_check_version_match -# ------------------------ -# Ensure that we are using m4 macros, and libtool script from the same -# release of libtool. -func_check_version_match () -{ - if test "$package_revision" != "$macro_revision"; then - if test "$VERSION" != "$macro_version"; then - if test -z "$macro_version"; then - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from an older release. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, but the -$progname: definition of this LT_INIT comes from $PACKAGE $macro_version. -$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION -$progname: and run autoconf again. -_LT_EOF - fi - else - cat >&2 <<_LT_EOF -$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision, -$progname: but the definition of this LT_INIT comes from revision $macro_revision. -$progname: You should recreate aclocal.m4 with macros from revision $package_revision -$progname: of $PACKAGE $VERSION and run autoconf again. -_LT_EOF - fi - - exit $EXIT_MISMATCH - fi -} - - -# libtool_options_prep [ARG]... -# ----------------------------- -# Preparation for options parsed by libtool. -libtool_options_prep () -{ - $debug_mode - - # Option defaults: - opt_config=false - opt_dlopen= - opt_dry_run=false - opt_help=false - opt_mode= - opt_preserve_dup_deps=false - opt_quiet=false - - nonopt= - preserve_args= - - _G_rc_lt_options_prep=: - - # Shorthand for --mode=foo, only valid as the first argument - case $1 in - clean|clea|cle|cl) - shift; set dummy --mode clean ${1+"$@"}; shift - ;; - compile|compil|compi|comp|com|co|c) - shift; set dummy --mode compile ${1+"$@"}; shift - ;; - execute|execut|execu|exec|exe|ex|e) - shift; set dummy --mode execute ${1+"$@"}; shift - ;; - finish|finis|fini|fin|fi|f) - shift; set dummy --mode finish ${1+"$@"}; shift - ;; - install|instal|insta|inst|ins|in|i) - shift; set dummy --mode install ${1+"$@"}; shift - ;; - link|lin|li|l) - shift; set dummy --mode link ${1+"$@"}; shift - ;; - uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) - shift; set dummy --mode uninstall ${1+"$@"}; shift - ;; - *) - _G_rc_lt_options_prep=false - ;; - esac - - if $_G_rc_lt_options_prep; then - # Pass back the list of options. - func_quote eval ${1+"$@"} - libtool_options_prep_result=$func_quote_result - fi -} -func_add_hook func_options_prep libtool_options_prep - - -# libtool_parse_options [ARG]... -# --------------------------------- -# Provide handling for libtool specific options. -libtool_parse_options () -{ - $debug_cmd - - _G_rc_lt_parse_options=false - - # Perform our own loop to consume as many options as possible in - # each iteration. - while test $# -gt 0; do - _G_match_lt_parse_options=: - _G_opt=$1 - shift - case $_G_opt in - --dry-run|--dryrun|-n) - opt_dry_run=: - ;; - - --config) func_config ;; - - --dlopen|-dlopen) - opt_dlopen="${opt_dlopen+$opt_dlopen -}$1" - shift - ;; - - --preserve-dup-deps) - opt_preserve_dup_deps=: ;; - - --features) func_features ;; - - --finish) set dummy --mode finish ${1+"$@"}; shift ;; - - --help) opt_help=: ;; - - --help-all) opt_help=': help-all' ;; - - --mode) test $# = 0 && func_missing_arg $_G_opt && break - opt_mode=$1 - case $1 in - # Valid mode arguments: - clean|compile|execute|finish|install|link|relink|uninstall) ;; - - # Catch anything else as an error - *) func_error "invalid argument for $_G_opt" - exit_cmd=exit - break - ;; - esac - shift - ;; - - --no-silent|--no-quiet) - opt_quiet=false - func_append preserve_args " $_G_opt" - ;; - - --no-warnings|--no-warning|--no-warn) - opt_warning=false - func_append preserve_args " $_G_opt" - ;; - - --no-verbose) - opt_verbose=false - func_append preserve_args " $_G_opt" - ;; - - --silent|--quiet) - opt_quiet=: - opt_verbose=false - func_append preserve_args " $_G_opt" - ;; - - --tag) test $# = 0 && func_missing_arg $_G_opt && break - opt_tag=$1 - func_append preserve_args " $_G_opt $1" - func_enable_tag "$1" - shift - ;; - - --verbose|-v) opt_quiet=false - opt_verbose=: - func_append preserve_args " $_G_opt" - ;; - - # An option not handled by this hook function: - *) set dummy "$_G_opt" ${1+"$@"} ; shift - _G_match_lt_parse_options=false - break - ;; - esac - $_G_match_lt_parse_options && _G_rc_lt_parse_options=: - done - - if $_G_rc_lt_parse_options; then - # save modified positional parameters for caller - func_quote eval ${1+"$@"} - libtool_parse_options_result=$func_quote_result - fi -} -func_add_hook func_parse_options libtool_parse_options - - - -# libtool_validate_options [ARG]... -# --------------------------------- -# Perform any sanity checks on option settings and/or unconsumed -# arguments. -libtool_validate_options () -{ - # save first non-option argument - if test 0 -lt $#; then - nonopt=$1 - shift - fi - - # preserve --debug - test : = "$debug_cmd" || func_append preserve_args " --debug" - - # Keeping compiler generated duplicates in $postdeps and $predeps is not - # harmful, and is necessary in a majority of systems that use it to satisfy - # symbol dependencies. - opt_duplicate_compiler_generated_deps=: - - $opt_help || { - # Sanity checks first: - func_check_version_match - - test yes != "$build_libtool_libs" \ - && test yes != "$build_old_libs" \ - && func_fatal_configuration "not configured to build any kind of library" - - # Darwin sucks - eval std_shrext=\"$shrext_cmds\" - - # Only execute mode is allowed to have -dlopen flags. - if test -n "$opt_dlopen" && test execute != "$opt_mode"; then - func_error "unrecognized option '-dlopen'" - $ECHO "$help" 1>&2 - exit $EXIT_FAILURE - fi - - # Change the help message to a mode-specific one. - generic_help=$help - help="Try '$progname --help --mode=$opt_mode' for more information." - } - - # Pass back the unparsed argument list - func_quote eval ${1+"$@"} - libtool_validate_options_result=$func_quote_result -} -func_add_hook func_validate_options libtool_validate_options - - -# Process options as early as possible so that --help and --version -# can return quickly. -func_options ${1+"$@"} -eval set dummy "$func_options_result"; shift - - - -## ----------- ## -## Main. ## -## ----------- ## - -magic='%%%MAGIC variable%%%' -magic_exe='%%%MAGIC EXE variable%%%' - -# Global variables. -extracted_archives= -extracted_serial=0 - -# If this variable is set in any of the actions, the command in it -# will be execed at the end. This prevents here-documents from being -# left over by shells. -exec_cmd= - - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' -} - -# func_generated_by_libtool -# True iff stdin has been generated by Libtool. This function is only -# a basic sanity check; it will hardly flush out determined imposters. -func_generated_by_libtool_p () -{ - $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 -} - -# func_lalib_p file -# True iff FILE is a libtool '.la' library or '.lo' object file. -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_lalib_p () -{ - test -f "$1" && - $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p -} - -# func_lalib_unsafe_p file -# True iff FILE is a libtool '.la' library or '.lo' object file. -# This function implements the same check as func_lalib_p without -# resorting to external programs. To this end, it redirects stdin and -# closes it afterwards, without saving the original file descriptor. -# As a safety measure, use it only where a negative result would be -# fatal anyway. Works if 'file' does not exist. -func_lalib_unsafe_p () -{ - lalib_p=no - if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then - for lalib_p_l in 1 2 3 4 - do - read lalib_p_line - case $lalib_p_line in - \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;; - esac - done - exec 0<&5 5<&- - fi - test yes = "$lalib_p" -} - -# func_ltwrapper_script_p file -# True iff FILE is a libtool wrapper script -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_script_p () -{ - test -f "$1" && - $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p -} - -# func_ltwrapper_executable_p file -# True iff FILE is a libtool wrapper executable -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_executable_p () -{ - func_ltwrapper_exec_suffix= - case $1 in - *.exe) ;; - *) func_ltwrapper_exec_suffix=.exe ;; - esac - $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 -} - -# func_ltwrapper_scriptname file -# Assumes file is an ltwrapper_executable -# uses $file to determine the appropriate filename for a -# temporary ltwrapper_script. -func_ltwrapper_scriptname () -{ - func_dirname_and_basename "$1" "" "." - func_stripname '' '.exe' "$func_basename_result" - func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper -} - -# func_ltwrapper_p file -# True iff FILE is a libtool wrapper script or wrapper executable -# This function is only a basic sanity check; it will hardly flush out -# determined imposters. -func_ltwrapper_p () -{ - func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" -} - - -# func_execute_cmds commands fail_cmd -# Execute tilde-delimited COMMANDS. -# If FAIL_CMD is given, eval that upon failure. -# FAIL_CMD may read-access the current command in variable CMD! -func_execute_cmds () -{ - $debug_cmd - - save_ifs=$IFS; IFS='~' - for cmd in $1; do - IFS=$sp$nl - eval cmd=\"$cmd\" - IFS=$save_ifs - func_show_eval "$cmd" "${2-:}" - done - IFS=$save_ifs -} - - -# func_source file -# Source FILE, adding directory component if necessary. -# Note that it is not necessary on cygwin/mingw to append a dot to -# FILE even if both FILE and FILE.exe exist: automatic-append-.exe -# behavior happens only for exec(3), not for open(2)! Also, sourcing -# 'FILE.' does not work on cygwin managed mounts. -func_source () -{ - $debug_cmd - - case $1 in - */* | *\\*) . "$1" ;; - *) . "./$1" ;; - esac -} - - -# func_resolve_sysroot PATH -# Replace a leading = in PATH with a sysroot. Store the result into -# func_resolve_sysroot_result -func_resolve_sysroot () -{ - func_resolve_sysroot_result=$1 - case $func_resolve_sysroot_result in - =*) - func_stripname '=' '' "$func_resolve_sysroot_result" - func_resolve_sysroot_result=$lt_sysroot$func_stripname_result - ;; - esac -} - -# func_replace_sysroot PATH -# If PATH begins with the sysroot, replace it with = and -# store the result into func_replace_sysroot_result. -func_replace_sysroot () -{ - case $lt_sysroot:$1 in - ?*:"$lt_sysroot"*) - func_stripname "$lt_sysroot" '' "$1" - func_replace_sysroot_result='='$func_stripname_result - ;; - *) - # Including no sysroot. - func_replace_sysroot_result=$1 - ;; - esac -} - -# func_infer_tag arg -# Infer tagged configuration to use if any are available and -# if one wasn't chosen via the "--tag" command line option. -# Only attempt this if the compiler in the base compile -# command doesn't match the default compiler. -# arg is usually of the form 'gcc ...' -func_infer_tag () -{ - $debug_cmd - - if test -n "$available_tags" && test -z "$tagname"; then - CC_quoted= - for arg in $CC; do - func_append_quoted CC_quoted "$arg" - done - CC_expanded=`func_echo_all $CC` - CC_quoted_expanded=`func_echo_all $CC_quoted` - case $@ in - # Blanks in the command may have been stripped by the calling shell, - # but not from the CC environment variable when configure was run. - " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ - " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;; - # Blanks at the start of $base_compile will cause this to fail - # if we don't check for them as well. - *) - for z in $available_tags; do - if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then - # Evaluate the configuration. - eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" - CC_quoted= - for arg in $CC; do - # Double-quote args containing other shell metacharacters. - func_append_quoted CC_quoted "$arg" - done - CC_expanded=`func_echo_all $CC` - CC_quoted_expanded=`func_echo_all $CC_quoted` - case "$@ " in - " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \ - " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) - # The compiler in the base compile command matches - # the one in the tagged configuration. - # Assume this is the tagged configuration we want. - tagname=$z - break - ;; - esac - fi - done - # If $tagname still isn't set, then no tagged configuration - # was found and let the user know that the "--tag" command - # line option must be used. - if test -z "$tagname"; then - func_echo "unable to infer tagged configuration" - func_fatal_error "specify a tag with '--tag'" -# else -# func_verbose "using $tagname tagged configuration" - fi - ;; - esac - fi -} - - - -# func_write_libtool_object output_name pic_name nonpic_name -# Create a libtool object file (analogous to a ".la" file), -# but don't create it if we're doing a dry run. -func_write_libtool_object () -{ - write_libobj=$1 - if test yes = "$build_libtool_libs"; then - write_lobj=\'$2\' - else - write_lobj=none - fi - - if test yes = "$build_old_libs"; then - write_oldobj=\'$3\' - else - write_oldobj=none - fi - - $opt_dry_run || { - cat >${write_libobj}T </dev/null` - if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then - func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | - $SED -e "$sed_naive_backslashify"` - else - func_convert_core_file_wine_to_w32_result= - fi - fi -} -# end: func_convert_core_file_wine_to_w32 - - -# func_convert_core_path_wine_to_w32 ARG -# Helper function used by path conversion functions when $build is *nix, and -# $host is mingw, cygwin, or some other w32 environment. Relies on a correctly -# configured wine environment available, with the winepath program in $build's -# $PATH. Assumes ARG has no leading or trailing path separator characters. -# -# ARG is path to be converted from $build format to win32. -# Result is available in $func_convert_core_path_wine_to_w32_result. -# Unconvertible file (directory) names in ARG are skipped; if no directory names -# are convertible, then the result may be empty. -func_convert_core_path_wine_to_w32 () -{ - $debug_cmd - - # unfortunately, winepath doesn't convert paths, only file names - func_convert_core_path_wine_to_w32_result= - if test -n "$1"; then - oldIFS=$IFS - IFS=: - for func_convert_core_path_wine_to_w32_f in $1; do - IFS=$oldIFS - func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" - if test -n "$func_convert_core_file_wine_to_w32_result"; then - if test -z "$func_convert_core_path_wine_to_w32_result"; then - func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result - else - func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" - fi - fi - done - IFS=$oldIFS - fi -} -# end: func_convert_core_path_wine_to_w32 - - -# func_cygpath ARGS... -# Wrapper around calling the cygpath program via LT_CYGPATH. This is used when -# when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) -# $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or -# (2), returns the Cygwin file name or path in func_cygpath_result (input -# file name or path is assumed to be in w32 format, as previously converted -# from $build's *nix or MSYS format). In case (3), returns the w32 file name -# or path in func_cygpath_result (input file name or path is assumed to be in -# Cygwin format). Returns an empty string on error. -# -# ARGS are passed to cygpath, with the last one being the file name or path to -# be converted. -# -# Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH -# environment variable; do not put it in $PATH. -func_cygpath () -{ - $debug_cmd - - if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then - func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` - if test "$?" -ne 0; then - # on failure, ensure result is empty - func_cygpath_result= - fi - else - func_cygpath_result= - func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'" - fi -} -#end: func_cygpath - - -# func_convert_core_msys_to_w32 ARG -# Convert file name or path ARG from MSYS format to w32 format. Return -# result in func_convert_core_msys_to_w32_result. -func_convert_core_msys_to_w32 () -{ - $debug_cmd - - # awkward: cmd appends spaces to result - func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | - $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"` -} -#end: func_convert_core_msys_to_w32 - - -# func_convert_file_check ARG1 ARG2 -# Verify that ARG1 (a file name in $build format) was converted to $host -# format in ARG2. Otherwise, emit an error message, but continue (resetting -# func_to_host_file_result to ARG1). -func_convert_file_check () -{ - $debug_cmd - - if test -z "$2" && test -n "$1"; then - func_error "Could not determine host file name corresponding to" - func_error " '$1'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback: - func_to_host_file_result=$1 - fi -} -# end func_convert_file_check - - -# func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH -# Verify that FROM_PATH (a path in $build format) was converted to $host -# format in TO_PATH. Otherwise, emit an error message, but continue, resetting -# func_to_host_file_result to a simplistic fallback value (see below). -func_convert_path_check () -{ - $debug_cmd - - if test -z "$4" && test -n "$3"; then - func_error "Could not determine the host path corresponding to" - func_error " '$3'" - func_error "Continuing, but uninstalled executables may not work." - # Fallback. This is a deliberately simplistic "conversion" and - # should not be "improved". See libtool.info. - if test "x$1" != "x$2"; then - lt_replace_pathsep_chars="s|$1|$2|g" - func_to_host_path_result=`echo "$3" | - $SED -e "$lt_replace_pathsep_chars"` - else - func_to_host_path_result=$3 - fi - fi -} -# end func_convert_path_check - - -# func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG -# Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT -# and appending REPL if ORIG matches BACKPAT. -func_convert_path_front_back_pathsep () -{ - $debug_cmd - - case $4 in - $1 ) func_to_host_path_result=$3$func_to_host_path_result - ;; - esac - case $4 in - $2 ) func_append func_to_host_path_result "$3" - ;; - esac -} -# end func_convert_path_front_back_pathsep - - -################################################## -# $build to $host FILE NAME CONVERSION FUNCTIONS # -################################################## -# invoked via '$to_host_file_cmd ARG' -# -# In each case, ARG is the path to be converted from $build to $host format. -# Result will be available in $func_to_host_file_result. - - -# func_to_host_file ARG -# Converts the file name ARG from $build format to $host format. Return result -# in func_to_host_file_result. -func_to_host_file () -{ - $debug_cmd - - $to_host_file_cmd "$1" -} -# end func_to_host_file - - -# func_to_tool_file ARG LAZY -# converts the file name ARG from $build format to toolchain format. Return -# result in func_to_tool_file_result. If the conversion in use is listed -# in (the comma separated) LAZY, no conversion takes place. -func_to_tool_file () -{ - $debug_cmd - - case ,$2, in - *,"$to_tool_file_cmd",*) - func_to_tool_file_result=$1 - ;; - *) - $to_tool_file_cmd "$1" - func_to_tool_file_result=$func_to_host_file_result - ;; - esac -} -# end func_to_tool_file - - -# func_convert_file_noop ARG -# Copy ARG to func_to_host_file_result. -func_convert_file_noop () -{ - func_to_host_file_result=$1 -} -# end func_convert_file_noop - - -# func_convert_file_msys_to_w32 ARG -# Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic -# conversion to w32 is not available inside the cwrapper. Returns result in -# func_to_host_file_result. -func_convert_file_msys_to_w32 () -{ - $debug_cmd - - func_to_host_file_result=$1 - if test -n "$1"; then - func_convert_core_msys_to_w32 "$1" - func_to_host_file_result=$func_convert_core_msys_to_w32_result - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_msys_to_w32 - - -# func_convert_file_cygwin_to_w32 ARG -# Convert file name ARG from Cygwin to w32 format. Returns result in -# func_to_host_file_result. -func_convert_file_cygwin_to_w32 () -{ - $debug_cmd - - func_to_host_file_result=$1 - if test -n "$1"; then - # because $build is cygwin, we call "the" cygpath in $PATH; no need to use - # LT_CYGPATH in this case. - func_to_host_file_result=`cygpath -m "$1"` - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_cygwin_to_w32 - - -# func_convert_file_nix_to_w32 ARG -# Convert file name ARG from *nix to w32 format. Requires a wine environment -# and a working winepath. Returns result in func_to_host_file_result. -func_convert_file_nix_to_w32 () -{ - $debug_cmd - - func_to_host_file_result=$1 - if test -n "$1"; then - func_convert_core_file_wine_to_w32 "$1" - func_to_host_file_result=$func_convert_core_file_wine_to_w32_result - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_nix_to_w32 - - -# func_convert_file_msys_to_cygwin ARG -# Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. -# Returns result in func_to_host_file_result. -func_convert_file_msys_to_cygwin () -{ - $debug_cmd - - func_to_host_file_result=$1 - if test -n "$1"; then - func_convert_core_msys_to_w32 "$1" - func_cygpath -u "$func_convert_core_msys_to_w32_result" - func_to_host_file_result=$func_cygpath_result - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_msys_to_cygwin - - -# func_convert_file_nix_to_cygwin ARG -# Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed -# in a wine environment, working winepath, and LT_CYGPATH set. Returns result -# in func_to_host_file_result. -func_convert_file_nix_to_cygwin () -{ - $debug_cmd - - func_to_host_file_result=$1 - if test -n "$1"; then - # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. - func_convert_core_file_wine_to_w32 "$1" - func_cygpath -u "$func_convert_core_file_wine_to_w32_result" - func_to_host_file_result=$func_cygpath_result - fi - func_convert_file_check "$1" "$func_to_host_file_result" -} -# end func_convert_file_nix_to_cygwin - - -############################################# -# $build to $host PATH CONVERSION FUNCTIONS # -############################################# -# invoked via '$to_host_path_cmd ARG' -# -# In each case, ARG is the path to be converted from $build to $host format. -# The result will be available in $func_to_host_path_result. -# -# Path separators are also converted from $build format to $host format. If -# ARG begins or ends with a path separator character, it is preserved (but -# converted to $host format) on output. -# -# All path conversion functions are named using the following convention: -# file name conversion function : func_convert_file_X_to_Y () -# path conversion function : func_convert_path_X_to_Y () -# where, for any given $build/$host combination the 'X_to_Y' value is the -# same. If conversion functions are added for new $build/$host combinations, -# the two new functions must follow this pattern, or func_init_to_host_path_cmd -# will break. - - -# func_init_to_host_path_cmd -# Ensures that function "pointer" variable $to_host_path_cmd is set to the -# appropriate value, based on the value of $to_host_file_cmd. -to_host_path_cmd= -func_init_to_host_path_cmd () -{ - $debug_cmd - - if test -z "$to_host_path_cmd"; then - func_stripname 'func_convert_file_' '' "$to_host_file_cmd" - to_host_path_cmd=func_convert_path_$func_stripname_result - fi -} - - -# func_to_host_path ARG -# Converts the path ARG from $build format to $host format. Return result -# in func_to_host_path_result. -func_to_host_path () -{ - $debug_cmd - - func_init_to_host_path_cmd - $to_host_path_cmd "$1" -} -# end func_to_host_path - - -# func_convert_path_noop ARG -# Copy ARG to func_to_host_path_result. -func_convert_path_noop () -{ - func_to_host_path_result=$1 -} -# end func_convert_path_noop - - -# func_convert_path_msys_to_w32 ARG -# Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic -# conversion to w32 is not available inside the cwrapper. Returns result in -# func_to_host_path_result. -func_convert_path_msys_to_w32 () -{ - $debug_cmd - - func_to_host_path_result=$1 - if test -n "$1"; then - # Remove leading and trailing path separator characters from ARG. MSYS - # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; - # and winepath ignores them completely. - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" - func_to_host_path_result=$func_convert_core_msys_to_w32_result - func_convert_path_check : ";" \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" - fi -} -# end func_convert_path_msys_to_w32 - - -# func_convert_path_cygwin_to_w32 ARG -# Convert path ARG from Cygwin to w32 format. Returns result in -# func_to_host_file_result. -func_convert_path_cygwin_to_w32 () -{ - $debug_cmd - - func_to_host_path_result=$1 - if test -n "$1"; then - # See func_convert_path_msys_to_w32: - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` - func_convert_path_check : ";" \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" - fi -} -# end func_convert_path_cygwin_to_w32 - - -# func_convert_path_nix_to_w32 ARG -# Convert path ARG from *nix to w32 format. Requires a wine environment and -# a working winepath. Returns result in func_to_host_file_result. -func_convert_path_nix_to_w32 () -{ - $debug_cmd - - func_to_host_path_result=$1 - if test -n "$1"; then - # See func_convert_path_msys_to_w32: - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" - func_to_host_path_result=$func_convert_core_path_wine_to_w32_result - func_convert_path_check : ";" \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" - fi -} -# end func_convert_path_nix_to_w32 - - -# func_convert_path_msys_to_cygwin ARG -# Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. -# Returns result in func_to_host_file_result. -func_convert_path_msys_to_cygwin () -{ - $debug_cmd - - func_to_host_path_result=$1 - if test -n "$1"; then - # See func_convert_path_msys_to_w32: - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" - func_cygpath -u -p "$func_convert_core_msys_to_w32_result" - func_to_host_path_result=$func_cygpath_result - func_convert_path_check : : \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" : "$1" - fi -} -# end func_convert_path_msys_to_cygwin - - -# func_convert_path_nix_to_cygwin ARG -# Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a -# a wine environment, working winepath, and LT_CYGPATH set. Returns result in -# func_to_host_file_result. -func_convert_path_nix_to_cygwin () -{ - $debug_cmd - - func_to_host_path_result=$1 - if test -n "$1"; then - # Remove leading and trailing path separator characters from - # ARG. msys behavior is inconsistent here, cygpath turns them - # into '.;' and ';.', and winepath ignores them completely. - func_stripname : : "$1" - func_to_host_path_tmp1=$func_stripname_result - func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" - func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" - func_to_host_path_result=$func_cygpath_result - func_convert_path_check : : \ - "$func_to_host_path_tmp1" "$func_to_host_path_result" - func_convert_path_front_back_pathsep ":*" "*:" : "$1" - fi -} -# end func_convert_path_nix_to_cygwin - - -# func_dll_def_p FILE -# True iff FILE is a Windows DLL '.def' file. -# Keep in sync with _LT_DLL_DEF_P in libtool.m4 -func_dll_def_p () -{ - $debug_cmd - - func_dll_def_p_tmp=`$SED -n \ - -e 's/^[ ]*//' \ - -e '/^\(;.*\)*$/d' \ - -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \ - -e q \ - "$1"` - test DEF = "$func_dll_def_p_tmp" -} - - -# func_mode_compile arg... -func_mode_compile () -{ - $debug_cmd - - # Get the compilation command and the source file. - base_compile= - srcfile=$nonopt # always keep a non-empty value in "srcfile" - suppress_opt=yes - suppress_output= - arg_mode=normal - libobj= - later= - pie_flag= - - for arg - do - case $arg_mode in - arg ) - # do not "continue". Instead, add this to base_compile - lastarg=$arg - arg_mode=normal - ;; - - target ) - libobj=$arg - arg_mode=normal - continue - ;; - - normal ) - # Accept any command-line options. - case $arg in - -o) - test -n "$libobj" && \ - func_fatal_error "you cannot specify '-o' more than once" - arg_mode=target - continue - ;; - - -pie | -fpie | -fPIE) - func_append pie_flag " $arg" - continue - ;; - - -shared | -static | -prefer-pic | -prefer-non-pic) - func_append later " $arg" - continue - ;; - - -no-suppress) - suppress_opt=no - continue - ;; - - -Xcompiler) - arg_mode=arg # the next one goes into the "base_compile" arg list - continue # The current "srcfile" will either be retained or - ;; # replaced later. I would guess that would be a bug. - - -Wc,*) - func_stripname '-Wc,' '' "$arg" - args=$func_stripname_result - lastarg= - save_ifs=$IFS; IFS=, - for arg in $args; do - IFS=$save_ifs - func_append_quoted lastarg "$arg" - done - IFS=$save_ifs - func_stripname ' ' '' "$lastarg" - lastarg=$func_stripname_result - - # Add the arguments to base_compile. - func_append base_compile " $lastarg" - continue - ;; - - *) - # Accept the current argument as the source file. - # The previous "srcfile" becomes the current argument. - # - lastarg=$srcfile - srcfile=$arg - ;; - esac # case $arg - ;; - esac # case $arg_mode - - # Aesthetically quote the previous argument. - func_append_quoted base_compile "$lastarg" - done # for arg - - case $arg_mode in - arg) - func_fatal_error "you must specify an argument for -Xcompile" - ;; - target) - func_fatal_error "you must specify a target with '-o'" - ;; - *) - # Get the name of the library object. - test -z "$libobj" && { - func_basename "$srcfile" - libobj=$func_basename_result - } - ;; - esac - - # Recognize several different file suffixes. - # If the user specifies -o file.o, it is replaced with file.lo - case $libobj in - *.[cCFSifmso] | \ - *.ada | *.adb | *.ads | *.asm | \ - *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \ - *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup) - func_xform "$libobj" - libobj=$func_xform_result - ;; - esac - - case $libobj in - *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;; - *) - func_fatal_error "cannot determine name of library object from '$libobj'" - ;; - esac - - func_infer_tag $base_compile - - for arg in $later; do - case $arg in - -shared) - test yes = "$build_libtool_libs" \ - || func_fatal_configuration "cannot build a shared library" - build_old_libs=no - continue - ;; - - -static) - build_libtool_libs=no - build_old_libs=yes - continue - ;; - - -prefer-pic) - pic_mode=yes - continue - ;; - - -prefer-non-pic) - pic_mode=no - continue - ;; - esac - done - - func_quote_arg pretty "$libobj" - test "X$libobj" != "X$func_quote_arg_result" \ - && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ - && func_warning "libobj name '$libobj' may not contain shell special characters." - func_dirname_and_basename "$obj" "/" "" - objname=$func_basename_result - xdir=$func_dirname_result - lobj=$xdir$objdir/$objname - - test -z "$base_compile" && \ - func_fatal_help "you must specify a compilation command" - - # Delete any leftover library objects. - if test yes = "$build_old_libs"; then - removelist="$obj $lobj $libobj ${libobj}T" - else - removelist="$lobj $libobj ${libobj}T" - fi - - # On Cygwin there's no "real" PIC flag so we must build both object types - case $host_os in - cygwin* | mingw* | pw32* | os2* | cegcc*) - pic_mode=default - ;; - esac - if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then - # non-PIC code in shared libraries is not supported - pic_mode=default - fi - - # Calculate the filename of the output object if compiler does - # not support -o with -c - if test no = "$compiler_c_o"; then - output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext - lockfile=$output_obj.lock - else - output_obj= - need_locks=no - lockfile= - fi - - # Lock this critical section if it is needed - # We use this script file to make the link, it avoids creating a new file - if test yes = "$need_locks"; then - until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do - func_echo "Waiting for $lockfile to be removed" - sleep 2 - done - elif test warn = "$need_locks"; then - if test -f "$lockfile"; then - $ECHO "\ -*** ERROR, $lockfile exists and contains: -`cat $lockfile 2>/dev/null` - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support '-c' and '-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - func_append removelist " $output_obj" - $ECHO "$srcfile" > "$lockfile" - fi - - $opt_dry_run || $RM $removelist - func_append removelist " $lockfile" - trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 - - func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 - srcfile=$func_to_tool_file_result - func_quote_arg pretty "$srcfile" - qsrcfile=$func_quote_arg_result - - # Only build a PIC object if we are building libtool libraries. - if test yes = "$build_libtool_libs"; then - # Without this assignment, base_compile gets emptied. - fbsd_hideous_sh_bug=$base_compile - - if test no != "$pic_mode"; then - command="$base_compile $qsrcfile $pic_flag" - else - # Don't build PIC code - command="$base_compile $qsrcfile" - fi - - func_mkdir_p "$xdir$objdir" - - if test -z "$output_obj"; then - # Place PIC objects in $objdir - func_append command " -o $lobj" - fi - - func_show_eval_locale "$command" \ - 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' - - if test warn = "$need_locks" && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $ECHO "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support '-c' and '-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed, then go on to compile the next one - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then - func_show_eval '$MV "$output_obj" "$lobj"' \ - 'error=$?; $opt_dry_run || $RM $removelist; exit $error' - fi - - # Allow error messages only from the first compilation. - if test yes = "$suppress_opt"; then - suppress_output=' >/dev/null 2>&1' - fi - fi - - # Only build a position-dependent object if we build old libraries. - if test yes = "$build_old_libs"; then - if test yes != "$pic_mode"; then - # Don't build PIC code - command="$base_compile $qsrcfile$pie_flag" - else - command="$base_compile $qsrcfile $pic_flag" - fi - if test yes = "$compiler_c_o"; then - func_append command " -o $obj" - fi - - # Suppress compiler output if we already did a PIC compilation. - func_append command "$suppress_output" - func_show_eval_locale "$command" \ - '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' - - if test warn = "$need_locks" && - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then - $ECHO "\ -*** ERROR, $lockfile contains: -`cat $lockfile 2>/dev/null` - -but it should contain: -$srcfile - -This indicates that another process is trying to use the same -temporary object file, and libtool could not work around it because -your compiler does not support '-c' and '-o' together. If you -repeat this compilation, it may succeed, by chance, but you had better -avoid parallel builds (make -j) in this platform, or get a better -compiler." - - $opt_dry_run || $RM $removelist - exit $EXIT_FAILURE - fi - - # Just move the object if needed - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then - func_show_eval '$MV "$output_obj" "$obj"' \ - 'error=$?; $opt_dry_run || $RM $removelist; exit $error' - fi - fi - - $opt_dry_run || { - func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" - - # Unlock the critical section if it was locked - if test no != "$need_locks"; then - removelist=$lockfile - $RM "$lockfile" - fi - } - - exit $EXIT_SUCCESS -} - -$opt_help || { - test compile = "$opt_mode" && func_mode_compile ${1+"$@"} -} - -func_mode_help () -{ - # We need to display help for each of the modes. - case $opt_mode in - "") - # Generic help is extracted from the usage comments - # at the start of this file. - func_help - ;; - - clean) - $ECHO \ -"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE... - -Remove files from the build directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed -to RM. - -If FILE is a libtool library, object or program, all the files associated -with it are deleted. Otherwise, only FILE itself is deleted using RM." - ;; - - compile) - $ECHO \ -"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE - -Compile a source file into a libtool library object. - -This mode accepts the following additional options: - - -o OUTPUT-FILE set the output file name to OUTPUT-FILE - -no-suppress do not suppress compiler output for multiple passes - -prefer-pic try to build PIC objects only - -prefer-non-pic try to build non-PIC objects only - -shared do not build a '.o' file suitable for static linking - -static only build a '.o' file suitable for static linking - -Wc,FLAG - -Xcompiler FLAG pass FLAG directly to the compiler - -COMPILE-COMMAND is a command to be used in creating a 'standard' object file -from the given SOURCEFILE. - -The output file name is determined by removing the directory component from -SOURCEFILE, then substituting the C source code suffix '.c' with the -library object suffix, '.lo'." - ;; - - execute) - $ECHO \ -"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]... - -Automatically set library path, then run a program. - -This mode accepts the following additional options: - - -dlopen FILE add the directory containing FILE to the library path - -This mode sets the library path environment variable according to '-dlopen' -flags. - -If any of the ARGS are libtool executable wrappers, then they are translated -into their corresponding uninstalled binary, and any of their required library -directories are added to the library path. - -Then, COMMAND is executed, with ARGS as arguments." - ;; - - finish) - $ECHO \ -"Usage: $progname [OPTION]... --mode=finish [LIBDIR]... - -Complete the installation of libtool libraries. - -Each LIBDIR is a directory that contains libtool libraries. - -The commands that this mode executes may require superuser privileges. Use -the '--dry-run' option if you just want to see what would be executed." - ;; - - install) - $ECHO \ -"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND... - -Install executables or libraries. - -INSTALL-COMMAND is the installation command. The first component should be -either the 'install' or 'cp' program. - -The following components of INSTALL-COMMAND are treated specially: - - -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation - -The rest of the components are interpreted as arguments to that command (only -BSD-compatible install options are recognized)." - ;; - - link) - $ECHO \ -"Usage: $progname [OPTION]... --mode=link LINK-COMMAND... - -Link object files or libraries together to form another library, or to -create an executable program. - -LINK-COMMAND is a command using the C compiler that you would use to create -a program from several object files. - -The following components of LINK-COMMAND are treated specially: - - -all-static do not do any dynamic linking at all - -avoid-version do not add a version suffix if possible - -bindir BINDIR specify path to binaries directory (for systems where - libraries must be found in the PATH setting at runtime) - -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) - -export-symbols SYMFILE - try to export only the symbols listed in SYMFILE - -export-symbols-regex REGEX - try to export only the symbols matching REGEX - -LLIBDIR search LIBDIR for required installed libraries - -lNAME OUTPUT-FILE requires the installed library libNAME - -module build a library that can dlopened - -no-fast-install disable the fast-install mode - -no-install link a not-installable executable - -no-undefined declare that a library does not refer to external symbols - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects - -objectlist FILE use a list of object files found in FILE to specify objects - -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes) - -precious-files-regex REGEX - don't remove output files matching REGEX - -release RELEASE specify package release information - -rpath LIBDIR the created library will eventually be installed in LIBDIR - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries - -shared only do dynamic linking of libtool libraries - -shrext SUFFIX override the standard shared library file extension - -static do not do any dynamic linking of uninstalled libtool libraries - -static-libtool-libs - do not do any dynamic linking of libtool libraries - -version-info CURRENT[:REVISION[:AGE]] - specify library version info [each variable defaults to 0] - -weak LIBNAME declare that the target provides the LIBNAME interface - -Wc,FLAG - -Xcompiler FLAG pass linker-specific FLAG directly to the compiler - -Wa,FLAG - -Xassembler FLAG pass linker-specific FLAG directly to the assembler - -Wl,FLAG - -Xlinker FLAG pass linker-specific FLAG directly to the linker - -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) - -All other options (arguments beginning with '-') are ignored. - -Every other argument is treated as a filename. Files ending in '.la' are -treated as uninstalled libtool libraries, other files are standard or library -object files. - -If the OUTPUT-FILE ends in '.la', then a libtool library is created, -only library objects ('.lo' files) may be specified, and '-rpath' is -required, except when creating a convenience library. - -If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created -using 'ar' and 'ranlib', or on Windows using 'lib'. - -If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file -is created, otherwise an executable program is created." - ;; - - uninstall) - $ECHO \ -"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... - -Remove libraries from an installation directory. - -RM is the name of the program to use to delete files associated with each FILE -(typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed -to RM. - -If FILE is a libtool library, all the files associated with it are deleted. -Otherwise, only FILE itself is deleted using RM." - ;; - - *) - func_fatal_help "invalid operation mode '$opt_mode'" - ;; - esac - - echo - $ECHO "Try '$progname --help' for more information about other modes." -} - -# Now that we've collected a possible --mode arg, show help if necessary -if $opt_help; then - if test : = "$opt_help"; then - func_mode_help - else - { - func_help noexit - for opt_mode in compile link execute install finish uninstall clean; do - func_mode_help - done - } | $SED -n '1p; 2,$s/^Usage:/ or: /p' - { - func_help noexit - for opt_mode in compile link execute install finish uninstall clean; do - echo - func_mode_help - done - } | - $SED '1d - /^When reporting/,/^Report/{ - H - d - } - $x - /information about other modes/d - /more detailed .*MODE/d - s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/' - fi - exit $? -fi - - -# func_mode_execute arg... -func_mode_execute () -{ - $debug_cmd - - # The first argument is the command name. - cmd=$nonopt - test -z "$cmd" && \ - func_fatal_help "you must specify a COMMAND" - - # Handle -dlopen flags immediately. - for file in $opt_dlopen; do - test -f "$file" \ - || func_fatal_help "'$file' is not a file" - - dir= - case $file in - *.la) - func_resolve_sysroot "$file" - file=$func_resolve_sysroot_result - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$file" \ - || func_fatal_help "'$lib' is not a valid libtool archive" - - # Read the libtool library. - dlname= - library_names= - func_source "$file" - - # Skip this library if it cannot be dlopened. - if test -z "$dlname"; then - # Warn if it was a shared library. - test -n "$library_names" && \ - func_warning "'$file' was not linked with '-export-dynamic'" - continue - fi - - func_dirname "$file" "" "." - dir=$func_dirname_result - - if test -f "$dir/$objdir/$dlname"; then - func_append dir "/$objdir" - else - if test ! -f "$dir/$dlname"; then - func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'" - fi - fi - ;; - - *.lo) - # Just add the directory containing the .lo file. - func_dirname "$file" "" "." - dir=$func_dirname_result - ;; - - *) - func_warning "'-dlopen' is ignored for non-libtool libraries and objects" - continue - ;; - esac - - # Get the absolute pathname. - absdir=`cd "$dir" && pwd` - test -n "$absdir" && dir=$absdir - - # Now add the directory to shlibpath_var. - if eval "test -z \"\$$shlibpath_var\""; then - eval "$shlibpath_var=\"\$dir\"" - else - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" - fi - done - - # This variable tells wrapper scripts just to set shlibpath_var - # rather than running their programs. - libtool_execute_magic=$magic - - # Check if any of the arguments is a wrapper script. - args= - for file - do - case $file in - -* | *.la | *.lo ) ;; - *) - # Do a test to see if this is really a libtool program. - if func_ltwrapper_script_p "$file"; then - func_source "$file" - # Transform arg to wrapped name. - file=$progdir/$program - elif func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - func_source "$func_ltwrapper_scriptname_result" - # Transform arg to wrapped name. - file=$progdir/$program - fi - ;; - esac - # Quote arguments (to preserve shell metacharacters). - func_append_quoted args "$file" - done - - if $opt_dry_run; then - # Display what would be done. - if test -n "$shlibpath_var"; then - eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\"" - echo "export $shlibpath_var" - fi - $ECHO "$cmd$args" - exit $EXIT_SUCCESS - else - if test -n "$shlibpath_var"; then - # Export the shlibpath_var. - eval "export $shlibpath_var" - fi - - # Restore saved environment variables - for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES - do - eval "if test \"\${save_$lt_var+set}\" = set; then - $lt_var=\$save_$lt_var; export $lt_var - else - $lt_unset $lt_var - fi" - done - - # Now prepare to actually exec the command. - exec_cmd=\$cmd$args - fi -} - -test execute = "$opt_mode" && func_mode_execute ${1+"$@"} - - -# func_mode_finish arg... -func_mode_finish () -{ - $debug_cmd - - libs= - libdirs= - admincmds= - - for opt in "$nonopt" ${1+"$@"} - do - if test -d "$opt"; then - func_append libdirs " $opt" - - elif test -f "$opt"; then - if func_lalib_unsafe_p "$opt"; then - func_append libs " $opt" - else - func_warning "'$opt' is not a valid libtool archive" - fi - - else - func_fatal_error "invalid argument '$opt'" - fi - done - - if test -n "$libs"; then - if test -n "$lt_sysroot"; then - sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` - sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" - else - sysroot_cmd= - fi - - # Remove sysroot references - if $opt_dry_run; then - for lib in $libs; do - echo "removing references to $lt_sysroot and '=' prefixes from $lib" - done - else - tmpdir=`func_mktempdir` - for lib in $libs; do - $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ - > $tmpdir/tmp-la - mv -f $tmpdir/tmp-la $lib - done - ${RM}r "$tmpdir" - fi - fi - - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - for libdir in $libdirs; do - if test -n "$finish_cmds"; then - # Do each command in the finish commands. - func_execute_cmds "$finish_cmds" 'admincmds="$admincmds -'"$cmd"'"' - fi - if test -n "$finish_eval"; then - # Do the single finish_eval. - eval cmds=\"$finish_eval\" - $opt_dry_run || eval "$cmds" || func_append admincmds " - $cmds" - fi - done - fi - - # Exit here if they wanted silent mode. - $opt_quiet && exit $EXIT_SUCCESS - - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then - echo "----------------------------------------------------------------------" - echo "Libraries have been installed in:" - for libdir in $libdirs; do - $ECHO " $libdir" - done - echo - echo "If you ever happen to want to link against installed libraries" - echo "in a given directory, LIBDIR, you must either use libtool, and" - echo "specify the full pathname of the library, or use the '-LLIBDIR'" - echo "flag during linking and do at least one of the following:" - if test -n "$shlibpath_var"; then - echo " - add LIBDIR to the '$shlibpath_var' environment variable" - echo " during execution" - fi - if test -n "$runpath_var"; then - echo " - add LIBDIR to the '$runpath_var' environment variable" - echo " during linking" - fi - if test -n "$hardcode_libdir_flag_spec"; then - libdir=LIBDIR - eval flag=\"$hardcode_libdir_flag_spec\" - - $ECHO " - use the '$flag' linker flag" - fi - if test -n "$admincmds"; then - $ECHO " - have your system administrator run these commands:$admincmds" - fi - if test -f /etc/ld.so.conf; then - echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'" - fi - echo - - echo "See any operating system documentation about shared libraries for" - case $host in - solaris2.[6789]|solaris2.1[0-9]) - echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" - echo "pages." - ;; - *) - echo "more information, such as the ld(1) and ld.so(8) manual pages." - ;; - esac - echo "----------------------------------------------------------------------" - fi - exit $EXIT_SUCCESS -} - -test finish = "$opt_mode" && func_mode_finish ${1+"$@"} - - -# func_mode_install arg... -func_mode_install () -{ - $debug_cmd - - # There may be an optional sh(1) argument at the beginning of - # install_prog (especially on Windows NT). - if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" || - # Allow the use of GNU shtool's install command. - case $nonopt in *shtool*) :;; *) false;; esac - then - # Aesthetically quote it. - func_quote_arg pretty "$nonopt" - install_prog="$func_quote_arg_result " - arg=$1 - shift - else - install_prog= - arg=$nonopt - fi - - # The real first argument should be the name of the installation program. - # Aesthetically quote it. - func_quote_arg pretty "$arg" - func_append install_prog "$func_quote_arg_result" - install_shared_prog=$install_prog - case " $install_prog " in - *[\\\ /]cp\ *) install_cp=: ;; - *) install_cp=false ;; - esac - - # We need to accept at least all the BSD install flags. - dest= - files= - opts= - prev= - install_type= - isdir=false - stripme= - no_mode=: - for arg - do - arg2= - if test -n "$dest"; then - func_append files " $dest" - dest=$arg - continue - fi - - case $arg in - -d) isdir=: ;; - -f) - if $install_cp; then :; else - prev=$arg - fi - ;; - -g | -m | -o) - prev=$arg - ;; - -s) - stripme=" -s" - continue - ;; - -*) - ;; - *) - # If the previous option needed an argument, then skip it. - if test -n "$prev"; then - if test X-m = "X$prev" && test -n "$install_override_mode"; then - arg2=$install_override_mode - no_mode=false - fi - prev= - else - dest=$arg - continue - fi - ;; - esac - - # Aesthetically quote the argument. - func_quote_arg pretty "$arg" - func_append install_prog " $func_quote_arg_result" - if test -n "$arg2"; then - func_quote_arg pretty "$arg2" - fi - func_append install_shared_prog " $func_quote_arg_result" - done - - test -z "$install_prog" && \ - func_fatal_help "you must specify an install program" - - test -n "$prev" && \ - func_fatal_help "the '$prev' option requires an argument" - - if test -n "$install_override_mode" && $no_mode; then - if $install_cp; then :; else - func_quote_arg pretty "$install_override_mode" - func_append install_shared_prog " -m $func_quote_arg_result" - fi - fi - - if test -z "$files"; then - if test -z "$dest"; then - func_fatal_help "no file or destination specified" - else - func_fatal_help "you must specify a destination" - fi - fi - - # Strip any trailing slash from the destination. - func_stripname '' '/' "$dest" - dest=$func_stripname_result - - # Check to see that the destination is a directory. - test -d "$dest" && isdir=: - if $isdir; then - destdir=$dest - destname= - else - func_dirname_and_basename "$dest" "" "." - destdir=$func_dirname_result - destname=$func_basename_result - - # Not a directory, so check to see that there is only one file specified. - set dummy $files; shift - test "$#" -gt 1 && \ - func_fatal_help "'$dest' is not a directory" - fi - case $destdir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - for file in $files; do - case $file in - *.lo) ;; - *) - func_fatal_help "'$destdir' must be an absolute directory name" - ;; - esac - done - ;; - esac - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic=$magic - - staticlibs= - future_libdirs= - current_libdirs= - for file in $files; do - - # Do each installation. - case $file in - *.$libext) - # Do the static libraries later. - func_append staticlibs " $file" - ;; - - *.la) - func_resolve_sysroot "$file" - file=$func_resolve_sysroot_result - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$file" \ - || func_fatal_help "'$file' is not a valid libtool archive" - - library_names= - old_library= - relink_command= - func_source "$file" - - # Add the libdir to current_libdirs if it is the destination. - if test "X$destdir" = "X$libdir"; then - case "$current_libdirs " in - *" $libdir "*) ;; - *) func_append current_libdirs " $libdir" ;; - esac - else - # Note the libdir as a future libdir. - case "$future_libdirs " in - *" $libdir "*) ;; - *) func_append future_libdirs " $libdir" ;; - esac - fi - - func_dirname "$file" "/" "" - dir=$func_dirname_result - func_append dir "$objdir" - - if test -n "$relink_command"; then - # Determine the prefix the user has applied to our future dir. - inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"` - - # Don't allow the user to place us outside of our expected - # location b/c this prevents finding dependent libraries that - # are installed to the same prefix. - # At present, this check doesn't affect windows .dll's that - # are installed into $libdir/../bin (currently, that works fine) - # but it's something to keep an eye on. - test "$inst_prefix_dir" = "$destdir" && \ - func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir" - - if test -n "$inst_prefix_dir"; then - # Stick the inst_prefix_dir data into the link command. - relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"` - else - relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"` - fi - - func_warning "relinking '$file'" - func_show_eval "$relink_command" \ - 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"' - fi - - # See the names of the shared library. - set dummy $library_names; shift - if test -n "$1"; then - realname=$1 - shift - - srcname=$realname - test -n "$relink_command" && srcname=${realname}T - - # Install the shared library and build the symlinks. - func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \ - 'exit $?' - tstripme=$stripme - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - case $realname in - *.dll.a) - tstripme= - ;; - esac - ;; - os2*) - case $realname in - *_dll.a) - tstripme= - ;; - esac - ;; - esac - if test -n "$tstripme" && test -n "$striplib"; then - func_show_eval "$striplib $destdir/$realname" 'exit $?' - fi - - if test "$#" -gt 0; then - # Delete the old symlinks, and create new ones. - # Try 'ln -sf' first, because the 'ln' binary might depend on - # the symlink we replace! Solaris /bin/ln does not understand -f, - # so we also need to try rm && ln -s. - for linkname - do - test "$linkname" != "$realname" \ - && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })" - done - fi - - # Do each command in the postinstall commands. - lib=$destdir/$realname - func_execute_cmds "$postinstall_cmds" 'exit $?' - fi - - # Install the pseudo-library for information purposes. - func_basename "$file" - name=$func_basename_result - instname=$dir/${name}i - func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' - - # Maybe install the static library, too. - test -n "$old_library" && func_append staticlibs " $dir/$old_library" - ;; - - *.lo) - # Install (i.e. copy) a libtool object. - - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile=$destdir/$destname - else - func_basename "$file" - destfile=$func_basename_result - destfile=$destdir/$destfile - fi - - # Deduce the name of the destination old-style object file. - case $destfile in - *.lo) - func_lo2o "$destfile" - staticdest=$func_lo2o_result - ;; - *.$objext) - staticdest=$destfile - destfile= - ;; - *) - func_fatal_help "cannot copy a libtool object to '$destfile'" - ;; - esac - - # Install the libtool object if requested. - test -n "$destfile" && \ - func_show_eval "$install_prog $file $destfile" 'exit $?' - - # Install the old object if enabled. - if test yes = "$build_old_libs"; then - # Deduce the name of the old-style object file. - func_lo2o "$file" - staticobj=$func_lo2o_result - func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' - fi - exit $EXIT_SUCCESS - ;; - - *) - # Figure out destination file name, if it wasn't already specified. - if test -n "$destname"; then - destfile=$destdir/$destname - else - func_basename "$file" - destfile=$func_basename_result - destfile=$destdir/$destfile - fi - - # If the file is missing, and there is a .exe on the end, strip it - # because it is most likely a libtool script we actually want to - # install - stripped_ext= - case $file in - *.exe) - if test ! -f "$file"; then - func_stripname '' '.exe' "$file" - file=$func_stripname_result - stripped_ext=.exe - fi - ;; - esac - - # Do a test to see if this is really a libtool program. - case $host in - *cygwin* | *mingw*) - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - wrapper=$func_ltwrapper_scriptname_result - else - func_stripname '' '.exe' "$file" - wrapper=$func_stripname_result - fi - ;; - *) - wrapper=$file - ;; - esac - if func_ltwrapper_script_p "$wrapper"; then - notinst_deplibs= - relink_command= - - func_source "$wrapper" - - # Check the variables that should have been set. - test -z "$generated_by_libtool_version" && \ - func_fatal_error "invalid libtool wrapper script '$wrapper'" - - finalize=: - for lib in $notinst_deplibs; do - # Check to see that each library is installed. - libdir= - if test -f "$lib"; then - func_source "$lib" - fi - libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'` - if test -n "$libdir" && test ! -f "$libfile"; then - func_warning "'$lib' has not been installed in '$libdir'" - finalize=false - fi - done - - relink_command= - func_source "$wrapper" - - outputname= - if test no = "$fast_install" && test -n "$relink_command"; then - $opt_dry_run || { - if $finalize; then - tmpdir=`func_mktempdir` - func_basename "$file$stripped_ext" - file=$func_basename_result - outputname=$tmpdir/$file - # Replace the output file specification. - relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` - - $opt_quiet || { - func_quote_arg expand,pretty "$relink_command" - eval "func_echo $func_quote_arg_result" - } - if eval "$relink_command"; then : - else - func_error "error: relink '$file' with the above command before installing it" - $opt_dry_run || ${RM}r "$tmpdir" - continue - fi - file=$outputname - else - func_warning "cannot relink '$file'" - fi - } - else - # Install the binary that we compiled earlier. - file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"` - fi - fi - - # remove .exe since cygwin /usr/bin/install will append another - # one anyway - case $install_prog,$host in - */usr/bin/install*,*cygwin*) - case $file:$destfile in - *.exe:*.exe) - # this is ok - ;; - *.exe:*) - destfile=$destfile.exe - ;; - *:*.exe) - func_stripname '' '.exe' "$destfile" - destfile=$func_stripname_result - ;; - esac - ;; - esac - func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' - $opt_dry_run || if test -n "$outputname"; then - ${RM}r "$tmpdir" - fi - ;; - esac - done - - for file in $staticlibs; do - func_basename "$file" - name=$func_basename_result - - # Set up the ranlib parameters. - oldlib=$destdir/$name - func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 - tool_oldlib=$func_to_tool_file_result - - func_show_eval "$install_prog \$file \$oldlib" 'exit $?' - - if test -n "$stripme" && test -n "$old_striplib"; then - func_show_eval "$old_striplib $tool_oldlib" 'exit $?' - fi - - # Do each command in the postinstall commands. - func_execute_cmds "$old_postinstall_cmds" 'exit $?' - done - - test -n "$future_libdirs" && \ - func_warning "remember to run '$progname --finish$future_libdirs'" - - if test -n "$current_libdirs"; then - # Maybe just do a dry run. - $opt_dry_run && current_libdirs=" -n$current_libdirs" - exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs' - else - exit $EXIT_SUCCESS - fi -} - -test install = "$opt_mode" && func_mode_install ${1+"$@"} - - -# func_generate_dlsyms outputname originator pic_p -# Extract symbols from dlprefiles and create ${outputname}S.o with -# a dlpreopen symbol table. -func_generate_dlsyms () -{ - $debug_cmd - - my_outputname=$1 - my_originator=$2 - my_pic_p=${3-false} - my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'` - my_dlsyms= - - if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then - if test -n "$NM" && test -n "$global_symbol_pipe"; then - my_dlsyms=${my_outputname}S.c - else - func_error "not configured to extract global symbols from dlpreopened files" - fi - fi - - if test -n "$my_dlsyms"; then - case $my_dlsyms in - "") ;; - *.c) - # Discover the nlist of each of the dlfiles. - nlist=$output_objdir/$my_outputname.nm - - func_show_eval "$RM $nlist ${nlist}S ${nlist}T" - - # Parse the name list into a source file. - func_verbose "creating $output_objdir/$my_dlsyms" - - $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ -/* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */ -/* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */ - -#ifdef __cplusplus -extern \"C\" { -#endif - -#if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4)) -#pragma GCC diagnostic ignored \"-Wstrict-prototypes\" -#endif - -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE -/* DATA imports from DLLs on WIN32 can't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT_DLSYM_CONST -#elif defined __osf__ -/* This system does not cope well with relocations in const data. */ -# define LT_DLSYM_CONST -#else -# define LT_DLSYM_CONST const -#endif - -#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) - -/* External symbol declarations for the compiler. */\ -" - - if test yes = "$dlself"; then - func_verbose "generating symbol list for '$output'" - - $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" - - # Add our own program objects to the symbol list. - progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` - for progfile in $progfiles; do - func_to_tool_file "$progfile" func_convert_file_msys_to_w32 - func_verbose "extracting global C symbols from '$func_to_tool_file_result'" - $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" - done - - if test -n "$exclude_expsyms"; then - $opt_dry_run || { - eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - } - fi - - if test -n "$export_symbols_regex"; then - $opt_dry_run || { - eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - } - fi - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - export_symbols=$output_objdir/$outputname.exp - $opt_dry_run || { - $RM $export_symbols - eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' - case $host in - *cygwin* | *mingw* | *cegcc* ) - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"' - ;; - esac - } - else - $opt_dry_run || { - eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"' - eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T' - eval '$MV "$nlist"T "$nlist"' - case $host in - *cygwin* | *mingw* | *cegcc* ) - eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' - eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' - ;; - esac - } - fi - fi - - for dlprefile in $dlprefiles; do - func_verbose "extracting global C symbols from '$dlprefile'" - func_basename "$dlprefile" - name=$func_basename_result - case $host in - *cygwin* | *mingw* | *cegcc* ) - # if an import library, we need to obtain dlname - if func_win32_import_lib_p "$dlprefile"; then - func_tr_sh "$dlprefile" - eval "curr_lafile=\$libfile_$func_tr_sh_result" - dlprefile_dlbasename= - if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then - # Use subshell, to avoid clobbering current variable values - dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` - if test -n "$dlprefile_dlname"; then - func_basename "$dlprefile_dlname" - dlprefile_dlbasename=$func_basename_result - else - # no lafile. user explicitly requested -dlpreopen . - $sharedlib_from_linklib_cmd "$dlprefile" - dlprefile_dlbasename=$sharedlib_from_linklib_result - fi - fi - $opt_dry_run || { - if test -n "$dlprefile_dlbasename"; then - eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' - else - func_warning "Could not compute DLL name from $name" - eval '$ECHO ": $name " >> "$nlist"' - fi - func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 - eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | - $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" - } - else # not an import lib - $opt_dry_run || { - eval '$ECHO ": $name " >> "$nlist"' - func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 - eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" - } - fi - ;; - *) - $opt_dry_run || { - eval '$ECHO ": $name " >> "$nlist"' - func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 - eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" - } - ;; - esac - done - - $opt_dry_run || { - # Make sure we have at least an empty file. - test -f "$nlist" || : > "$nlist" - - if test -n "$exclude_expsyms"; then - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T - $MV "$nlist"T "$nlist" - fi - - # Try sorting and uniquifying the output. - if $GREP -v "^: " < "$nlist" | - if sort -k 3 /dev/null 2>&1; then - sort -k 3 - else - sort +2 - fi | - uniq > "$nlist"S; then - : - else - $GREP -v "^: " < "$nlist" > "$nlist"S - fi - - if test -f "$nlist"S; then - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"' - else - echo '/* NONE */' >> "$output_objdir/$my_dlsyms" - fi - - func_show_eval '$RM "${nlist}I"' - if test -n "$global_symbol_to_import"; then - eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I' - fi - - echo >> "$output_objdir/$my_dlsyms" "\ - -/* The mapping between symbol names and symbols. */ -typedef struct { - const char *name; - void *address; -} lt_dlsymlist; -extern LT_DLSYM_CONST lt_dlsymlist -lt_${my_prefix}_LTX_preloaded_symbols[];\ -" - - if test -s "$nlist"I; then - echo >> "$output_objdir/$my_dlsyms" "\ -static void lt_syminit(void) -{ - LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols; - for (; symbol->name; ++symbol) - {" - $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms" - echo >> "$output_objdir/$my_dlsyms" "\ - } -}" - fi - echo >> "$output_objdir/$my_dlsyms" "\ -LT_DLSYM_CONST lt_dlsymlist -lt_${my_prefix}_LTX_preloaded_symbols[] = -{ {\"$my_originator\", (void *) 0}," - - if test -s "$nlist"I; then - echo >> "$output_objdir/$my_dlsyms" "\ - {\"@INIT@\", (void *) <_syminit}," - fi - - case $need_lib_prefix in - no) - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms" - ;; - *) - eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms" - ;; - esac - echo >> "$output_objdir/$my_dlsyms" "\ - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt_${my_prefix}_LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif\ -" - } # !$opt_dry_run - - pic_flag_for_symtable= - case "$compile_command " in - *" -static "*) ;; - *) - case $host in - # compiling the symbol table file with pic_flag works around - # a FreeBSD bug that causes programs to crash when -lm is - # linked before any other PIC object. But we must not use - # pic_flag when linking with -static. The problem exists in - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. - *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) - pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;; - *-*-hpux*) - pic_flag_for_symtable=" $pic_flag" ;; - *) - $my_pic_p && pic_flag_for_symtable=" $pic_flag" - ;; - esac - ;; - esac - symtab_cflags= - for arg in $LTCFLAGS; do - case $arg in - -pie | -fpie | -fPIE) ;; - *) func_append symtab_cflags " $arg" ;; - esac - done - - # Now compile the dynamic symbol file. - func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' - - # Clean up the generated files. - func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"' - - # Transform the symbol file into the correct name. - symfileobj=$output_objdir/${my_outputname}S.$objext - case $host in - *cygwin* | *mingw* | *cegcc* ) - if test -f "$output_objdir/$my_outputname.def"; then - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"` - else - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` - fi - ;; - *) - compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"` - ;; - esac - ;; - *) - func_fatal_error "unknown suffix for '$my_dlsyms'" - ;; - esac - else - # We keep going just in case the user didn't refer to - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe - # really was required. - - # Nullify the symbol file. - compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"` - finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"` - fi -} - -# func_cygming_gnu_implib_p ARG -# This predicate returns with zero status (TRUE) if -# ARG is a GNU/binutils-style import library. Returns -# with nonzero status (FALSE) otherwise. -func_cygming_gnu_implib_p () -{ - $debug_cmd - - func_to_tool_file "$1" func_convert_file_msys_to_w32 - func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` - test -n "$func_cygming_gnu_implib_tmp" -} - -# func_cygming_ms_implib_p ARG -# This predicate returns with zero status (TRUE) if -# ARG is an MS-style import library. Returns -# with nonzero status (FALSE) otherwise. -func_cygming_ms_implib_p () -{ - $debug_cmd - - func_to_tool_file "$1" func_convert_file_msys_to_w32 - func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` - test -n "$func_cygming_ms_implib_tmp" -} - -# func_win32_libid arg -# return the library type of file 'arg' -# -# Need a lot of goo to handle *both* DLLs and import libs -# Has to be a shell function in order to 'eat' the argument -# that is supplied when $file_magic_command is called. -# Despite the name, also deal with 64 bit binaries. -func_win32_libid () -{ - $debug_cmd - - win32_libid_type=unknown - win32_fileres=`file -L $1 2>/dev/null` - case $win32_fileres in - *ar\ archive\ import\ library*) # definitely import - win32_libid_type="x86 archive import" - ;; - *ar\ archive*) # could be an import, or static - # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | - $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then - case $nm_interface in - "MS dumpbin") - if func_cygming_ms_implib_p "$1" || - func_cygming_gnu_implib_p "$1" - then - win32_nmres=import - else - win32_nmres= - fi - ;; - *) - func_to_tool_file "$1" func_convert_file_msys_to_w32 - win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | - $SED -n -e ' - 1,100{ - / I /{ - s|.*|import| - p - q - } - }'` - ;; - esac - case $win32_nmres in - import*) win32_libid_type="x86 archive import";; - *) win32_libid_type="x86 archive static";; - esac - fi - ;; - *DLL*) - win32_libid_type="x86 DLL" - ;; - *executable*) # but shell scripts are "executable" too... - case $win32_fileres in - *MS\ Windows\ PE\ Intel*) - win32_libid_type="x86 DLL" - ;; - esac - ;; - esac - $ECHO "$win32_libid_type" -} - -# func_cygming_dll_for_implib ARG -# -# Platform-specific function to extract the -# name of the DLL associated with the specified -# import library ARG. -# Invoked by eval'ing the libtool variable -# $sharedlib_from_linklib_cmd -# Result is available in the variable -# $sharedlib_from_linklib_result -func_cygming_dll_for_implib () -{ - $debug_cmd - - sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` -} - -# func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs -# -# The is the core of a fallback implementation of a -# platform-specific function to extract the name of the -# DLL associated with the specified import library LIBNAME. -# -# SECTION_NAME is either .idata$6 or .idata$7, depending -# on the platform and compiler that created the implib. -# -# Echos the name of the DLL associated with the -# specified import library. -func_cygming_dll_for_implib_fallback_core () -{ - $debug_cmd - - match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` - $OBJDUMP -s --section "$1" "$2" 2>/dev/null | - $SED '/^Contents of section '"$match_literal"':/{ - # Place marker at beginning of archive member dllname section - s/.*/====MARK====/ - p - d - } - # These lines can sometimes be longer than 43 characters, but - # are always uninteresting - /:[ ]*file format pe[i]\{,1\}-/d - /^In archive [^:]*:/d - # Ensure marker is printed - /^====MARK====/p - # Remove all lines with less than 43 characters - /^.\{43\}/!d - # From remaining lines, remove first 43 characters - s/^.\{43\}//' | - $SED -n ' - # Join marker and all lines until next marker into a single line - /^====MARK====/ b para - H - $ b para - b - :para - x - s/\n//g - # Remove the marker - s/^====MARK====// - # Remove trailing dots and whitespace - s/[\. \t]*$// - # Print - /./p' | - # we now have a list, one entry per line, of the stringified - # contents of the appropriate section of all members of the - # archive that possess that section. Heuristic: eliminate - # all those that have a first or second character that is - # a '.' (that is, objdump's representation of an unprintable - # character.) This should work for all archives with less than - # 0x302f exports -- but will fail for DLLs whose name actually - # begins with a literal '.' or a single character followed by - # a '.'. - # - # Of those that remain, print the first one. - $SED -e '/^\./d;/^.\./d;q' -} - -# func_cygming_dll_for_implib_fallback ARG -# Platform-specific function to extract the -# name of the DLL associated with the specified -# import library ARG. -# -# This fallback implementation is for use when $DLLTOOL -# does not support the --identify-strict option. -# Invoked by eval'ing the libtool variable -# $sharedlib_from_linklib_cmd -# Result is available in the variable -# $sharedlib_from_linklib_result -func_cygming_dll_for_implib_fallback () -{ - $debug_cmd - - if func_cygming_gnu_implib_p "$1"; then - # binutils import library - sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` - elif func_cygming_ms_implib_p "$1"; then - # ms-generated import library - sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` - else - # unknown - sharedlib_from_linklib_result= - fi -} - - -# func_extract_an_archive dir oldlib -func_extract_an_archive () -{ - $debug_cmd - - f_ex_an_ar_dir=$1; shift - f_ex_an_ar_oldlib=$1 - if test yes = "$lock_old_archive_extraction"; then - lockfile=$f_ex_an_ar_oldlib.lock - until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do - func_echo "Waiting for $lockfile to be removed" - sleep 2 - done - fi - func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \ - 'stat=$?; rm -f "$lockfile"; exit $stat' - if test yes = "$lock_old_archive_extraction"; then - $opt_dry_run || rm -f "$lockfile" - fi - if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then - : - else - func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" - fi -} - - -# func_extract_archives gentop oldlib ... -func_extract_archives () -{ - $debug_cmd - - my_gentop=$1; shift - my_oldlibs=${1+"$@"} - my_oldobjs= - my_xlib= - my_xabs= - my_xdir= - - for my_xlib in $my_oldlibs; do - # Extract the objects. - case $my_xlib in - [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;; - *) my_xabs=`pwd`"/$my_xlib" ;; - esac - func_basename "$my_xlib" - my_xlib=$func_basename_result - my_xlib_u=$my_xlib - while :; do - case " $extracted_archives " in - *" $my_xlib_u "*) - func_arith $extracted_serial + 1 - extracted_serial=$func_arith_result - my_xlib_u=lt$extracted_serial-$my_xlib ;; - *) break ;; - esac - done - extracted_archives="$extracted_archives $my_xlib_u" - my_xdir=$my_gentop/$my_xlib_u - - func_mkdir_p "$my_xdir" - - case $host in - *-darwin*) - func_verbose "Extracting $my_xabs" - # Do not bother doing anything if just a dry run - $opt_dry_run || { - darwin_orig_dir=`pwd` - cd $my_xdir || exit $? - darwin_archive=$my_xabs - darwin_curdir=`pwd` - func_basename "$darwin_archive" - darwin_base_archive=$func_basename_result - darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true` - if test -n "$darwin_arches"; then - darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` - darwin_arch= - func_verbose "$darwin_base_archive has multiple architectures $darwin_arches" - for darwin_arch in $darwin_arches; do - func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch" - $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive" - cd "unfat-$$/$darwin_base_archive-$darwin_arch" - func_extract_an_archive "`pwd`" "$darwin_base_archive" - cd "$darwin_curdir" - $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" - done # $darwin_arches - ## Okay now we've a bunch of thin objects, gotta fatten them up :) - darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u` - darwin_file= - darwin_files= - for darwin_file in $darwin_filelist; do - darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP` - $LIPO -create -output "$darwin_file" $darwin_files - done # $darwin_filelist - $RM -rf unfat-$$ - cd "$darwin_orig_dir" - else - cd $darwin_orig_dir - func_extract_an_archive "$my_xdir" "$my_xabs" - fi # $darwin_arches - } # !$opt_dry_run - ;; - *) - func_extract_an_archive "$my_xdir" "$my_xabs" - ;; - esac - my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP` - done - - func_extract_archives_result=$my_oldobjs -} - - -# func_emit_wrapper [arg=no] -# -# Emit a libtool wrapper script on stdout. -# Don't directly open a file because we may want to -# incorporate the script contents within a cygwin/mingw -# wrapper executable. Must ONLY be called from within -# func_mode_link because it depends on a number of variables -# set therein. -# -# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR -# variable will take. If 'yes', then the emitted script -# will assume that the directory where it is stored is -# the $objdir directory. This is a cygwin/mingw-specific -# behavior. -func_emit_wrapper () -{ - func_emit_wrapper_arg1=${1-no} - - $ECHO "\ -#! $SHELL - -# $output - temporary wrapper script for $objdir/$outputname -# Generated by $PROGRAM (GNU $PACKAGE) $VERSION -# -# The $output program cannot be directly executed until all the libtool -# libraries that it depends on are installed. -# -# This wrapper script should never be moved out of the build directory. -# If it is, it will not operate correctly. - -# Sed substitution that helps us do robust quoting. It backslashifies -# metacharacters that are still active within double-quoted strings. -sed_quote_subst='$sed_quote_subst' - -# Be Bourne compatible -if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then - emulate sh - NULLCMD=: - # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which - # is contrary to our usage. Disable this feature. - alias -g '\${1+\"\$@\"}'='\"\$@\"' - setopt NO_GLOB_SUBST -else - case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac -fi -BIN_SH=xpg4; export BIN_SH # for Tru64 -DUALCASE=1; export DUALCASE # for MKS sh - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -relink_command=\"$relink_command\" - -# This environment variable determines our operation mode. -if test \"\$libtool_install_magic\" = \"$magic\"; then - # install mode needs the following variables: - generated_by_libtool_version='$macro_version' - notinst_deplibs='$notinst_deplibs' -else - # When we are sourced in execute mode, \$file and \$ECHO are already set. - if test \"\$libtool_execute_magic\" != \"$magic\"; then - file=\"\$0\"" - - func_quote_arg pretty "$ECHO" - qECHO=$func_quote_arg_result - $ECHO "\ - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$1 -_LTECHO_EOF' -} - ECHO=$qECHO - fi - -# Very basic option parsing. These options are (a) specific to -# the libtool wrapper, (b) are identical between the wrapper -# /script/ and the wrapper /executable/ that is used only on -# windows platforms, and (c) all begin with the string "--lt-" -# (application programs are unlikely to have options that match -# this pattern). -# -# There are only two supported options: --lt-debug and -# --lt-dump-script. There is, deliberately, no --lt-help. -# -# The first argument to this parsing function should be the -# script's $0 value, followed by "$@". -lt_option_debug= -func_parse_lt_options () -{ - lt_script_arg0=\$0 - shift - for lt_opt - do - case \"\$lt_opt\" in - --lt-debug) lt_option_debug=1 ;; - --lt-dump-script) - lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\` - test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=. - lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\` - cat \"\$lt_dump_D/\$lt_dump_F\" - exit 0 - ;; - --lt-*) - \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2 - exit 1 - ;; - esac - done - - # Print the debug banner immediately: - if test -n \"\$lt_option_debug\"; then - echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2 - fi -} - -# Used when --lt-debug. Prints its arguments to stdout -# (redirection is the responsibility of the caller) -func_lt_dump_args () -{ - lt_dump_args_N=1; - for lt_arg - do - \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\" - lt_dump_args_N=\`expr \$lt_dump_args_N + 1\` - done -} - -# Core function for launching the target application -func_exec_program_core () -{ -" - case $host in - # Backslashes separate directories on plain windows - *-*-mingw | *-*-os2* | *-cegcc*) - $ECHO "\ - if test -n \"\$lt_option_debug\"; then - \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2 - func_lt_dump_args \${1+\"\$@\"} 1>&2 - fi - exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} -" - ;; - - *) - $ECHO "\ - if test -n \"\$lt_option_debug\"; then - \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2 - func_lt_dump_args \${1+\"\$@\"} 1>&2 - fi - exec \"\$progdir/\$program\" \${1+\"\$@\"} -" - ;; - esac - $ECHO "\ - \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 - exit 1 -} - -# A function to encapsulate launching the target application -# Strips options in the --lt-* namespace from \$@ and -# launches target application with the remaining arguments. -func_exec_program () -{ - case \" \$* \" in - *\\ --lt-*) - for lt_wr_arg - do - case \$lt_wr_arg in - --lt-*) ;; - *) set x \"\$@\" \"\$lt_wr_arg\"; shift;; - esac - shift - done ;; - esac - func_exec_program_core \${1+\"\$@\"} -} - - # Parse options - func_parse_lt_options \"\$0\" \${1+\"\$@\"} - - # Find the directory that this script lives in. - thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\` - test \"x\$thisdir\" = \"x\$file\" && thisdir=. - - # Follow symbolic links until we get to the real thisdir. - file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\` - while test -n \"\$file\"; do - destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\` - - # If there was a directory component, then change thisdir. - if test \"x\$destdir\" != \"x\$file\"; then - case \"\$destdir\" in - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; - *) thisdir=\"\$thisdir/\$destdir\" ;; - esac - fi - - file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\` - file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\` - done - - # Usually 'no', except on cygwin/mingw when embedded into - # the cwrapper. - WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1 - if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then - # special case for '.' - if test \"\$thisdir\" = \".\"; then - thisdir=\`pwd\` - fi - # remove .libs from thisdir - case \"\$thisdir\" in - *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;; - $objdir ) thisdir=. ;; - esac - fi - - # Try to get the absolute directory name. - absdir=\`cd \"\$thisdir\" && pwd\` - test -n \"\$absdir\" && thisdir=\"\$absdir\" -" - - if test yes = "$fast_install"; then - $ECHO "\ - program=lt-'$outputname'$exeext - progdir=\"\$thisdir/$objdir\" - - if test ! -f \"\$progdir/\$program\" || - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\ - test \"X\$file\" != \"X\$progdir/\$program\"; }; then - - file=\"\$\$-\$program\" - - if test ! -d \"\$progdir\"; then - $MKDIR \"\$progdir\" - else - $RM \"\$progdir/\$file\" - fi" - - $ECHO "\ - - # relink executable if necessary - if test -n \"\$relink_command\"; then - if relink_command_output=\`eval \$relink_command 2>&1\`; then : - else - \$ECHO \"\$relink_command_output\" >&2 - $RM \"\$progdir/\$file\" - exit 1 - fi - fi - - $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || - { $RM \"\$progdir/\$program\"; - $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } - $RM \"\$progdir/\$file\" - fi" - else - $ECHO "\ - program='$outputname' - progdir=\"\$thisdir/$objdir\" -" - fi - - $ECHO "\ - - if test -f \"\$progdir/\$program\"; then" - - # fixup the dll searchpath if we need to. - # - # Fix the DLL searchpath if we need to. Do this before prepending - # to shlibpath, because on Windows, both are PATH and uninstalled - # libraries must come first. - if test -n "$dllsearchpath"; then - $ECHO "\ - # Add the dll search path components to the executable PATH - PATH=$dllsearchpath:\$PATH -" - fi - - # Export our shlibpath_var if we have one. - if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then - $ECHO "\ - # Add our own library path to $shlibpath_var - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" - - # Some systems cannot cope with colon-terminated $shlibpath_var - # The second colon is a workaround for a bug in BeOS R4 sed - $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` - - export $shlibpath_var -" - fi - - $ECHO "\ - if test \"\$libtool_execute_magic\" != \"$magic\"; then - # Run the actual program with our arguments. - func_exec_program \${1+\"\$@\"} - fi - else - # The program doesn't exist. - \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2 - \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 - \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 - exit 1 - fi -fi\ -" -} - - -# func_emit_cwrapperexe_src -# emit the source code for a wrapper executable on stdout -# Must ONLY be called from within func_mode_link because -# it depends on a number of variable set therein. -func_emit_cwrapperexe_src () -{ - cat < -#include -#ifdef _MSC_VER -# include -# include -# include -#else -# include -# include -# ifdef __CYGWIN__ -# include -# endif -#endif -#include -#include -#include -#include -#include -#include -#include -#include - -#define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0) - -/* declarations of non-ANSI functions */ -#if defined __MINGW32__ -# ifdef __STRICT_ANSI__ -int _putenv (const char *); -# endif -#elif defined __CYGWIN__ -# ifdef __STRICT_ANSI__ -char *realpath (const char *, char *); -int putenv (char *); -int setenv (const char *, const char *, int); -# endif -/* #elif defined other_platform || defined ... */ -#endif - -/* portability defines, excluding path handling macros */ -#if defined _MSC_VER -# define setmode _setmode -# define stat _stat -# define chmod _chmod -# define getcwd _getcwd -# define putenv _putenv -# define S_IXUSR _S_IEXEC -#elif defined __MINGW32__ -# define setmode _setmode -# define stat _stat -# define chmod _chmod -# define getcwd _getcwd -# define putenv _putenv -#elif defined __CYGWIN__ -# define HAVE_SETENV -# define FOPEN_WB "wb" -/* #elif defined other platforms ... */ -#endif - -#if defined PATH_MAX -# define LT_PATHMAX PATH_MAX -#elif defined MAXPATHLEN -# define LT_PATHMAX MAXPATHLEN -#else -# define LT_PATHMAX 1024 -#endif - -#ifndef S_IXOTH -# define S_IXOTH 0 -#endif -#ifndef S_IXGRP -# define S_IXGRP 0 -#endif - -/* path handling portability macros */ -#ifndef DIR_SEPARATOR -# define DIR_SEPARATOR '/' -# define PATH_SEPARATOR ':' -#endif - -#if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \ - defined __OS2__ -# define HAVE_DOS_BASED_FILE_SYSTEM -# define FOPEN_WB "wb" -# ifndef DIR_SEPARATOR_2 -# define DIR_SEPARATOR_2 '\\' -# endif -# ifndef PATH_SEPARATOR_2 -# define PATH_SEPARATOR_2 ';' -# endif -#endif - -#ifndef DIR_SEPARATOR_2 -# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR) -#else /* DIR_SEPARATOR_2 */ -# define IS_DIR_SEPARATOR(ch) \ - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2)) -#endif /* DIR_SEPARATOR_2 */ - -#ifndef PATH_SEPARATOR_2 -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR) -#else /* PATH_SEPARATOR_2 */ -# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2) -#endif /* PATH_SEPARATOR_2 */ - -#ifndef FOPEN_WB -# define FOPEN_WB "w" -#endif -#ifndef _O_BINARY -# define _O_BINARY 0 -#endif - -#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))) -#define XFREE(stale) do { \ - if (stale) { free (stale); stale = 0; } \ -} while (0) - -#if defined LT_DEBUGWRAPPER -static int lt_debug = 1; -#else -static int lt_debug = 0; -#endif - -const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */ - -void *xmalloc (size_t num); -char *xstrdup (const char *string); -const char *base_name (const char *name); -char *find_executable (const char *wrapper); -char *chase_symlinks (const char *pathspec); -int make_executable (const char *path); -int check_executable (const char *path); -char *strendzap (char *str, const char *pat); -void lt_debugprintf (const char *file, int line, const char *fmt, ...); -void lt_fatal (const char *file, int line, const char *message, ...); -static const char *nonnull (const char *s); -static const char *nonempty (const char *s); -void lt_setenv (const char *name, const char *value); -char *lt_extend_str (const char *orig_value, const char *add, int to_end); -void lt_update_exe_path (const char *name, const char *value); -void lt_update_lib_path (const char *name, const char *value); -char **prepare_spawn (char **argv); -void lt_dump_script (FILE *f); -EOF - - cat <= 0) - && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) - return 1; - else - return 0; -} - -int -make_executable (const char *path) -{ - int rval = 0; - struct stat st; - - lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n", - nonempty (path)); - if ((!path) || (!*path)) - return 0; - - if (stat (path, &st) >= 0) - { - rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); - } - return rval; -} - -/* Searches for the full path of the wrapper. Returns - newly allocated full path name if found, NULL otherwise - Does not chase symlinks, even on platforms that support them. -*/ -char * -find_executable (const char *wrapper) -{ - int has_slash = 0; - const char *p; - const char *p_next; - /* static buffer for getcwd */ - char tmp[LT_PATHMAX + 1]; - size_t tmp_len; - char *concat_name; - - lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n", - nonempty (wrapper)); - - if ((wrapper == NULL) || (*wrapper == '\0')) - return NULL; - - /* Absolute path? */ -#if defined HAVE_DOS_BASED_FILE_SYSTEM - if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':') - { - concat_name = xstrdup (wrapper); - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } - else - { -#endif - if (IS_DIR_SEPARATOR (wrapper[0])) - { - concat_name = xstrdup (wrapper); - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } -#if defined HAVE_DOS_BASED_FILE_SYSTEM - } -#endif - - for (p = wrapper; *p; p++) - if (*p == '/') - { - has_slash = 1; - break; - } - if (!has_slash) - { - /* no slashes; search PATH */ - const char *path = getenv ("PATH"); - if (path != NULL) - { - for (p = path; *p; p = p_next) - { - const char *q; - size_t p_len; - for (q = p; *q; q++) - if (IS_PATH_SEPARATOR (*q)) - break; - p_len = (size_t) (q - p); - p_next = (*q == '\0' ? q : q + 1); - if (p_len == 0) - { - /* empty path: current directory */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", - nonnull (strerror (errno))); - tmp_len = strlen (tmp); - concat_name = - XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - } - else - { - concat_name = - XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, p, p_len); - concat_name[p_len] = '/'; - strcpy (concat_name + p_len + 1, wrapper); - } - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - } - } - /* not found in PATH; assume curdir */ - } - /* Relative path | not found in path: prepend cwd */ - if (getcwd (tmp, LT_PATHMAX) == NULL) - lt_fatal (__FILE__, __LINE__, "getcwd failed: %s", - nonnull (strerror (errno))); - tmp_len = strlen (tmp); - concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); - memcpy (concat_name, tmp, tmp_len); - concat_name[tmp_len] = '/'; - strcpy (concat_name + tmp_len + 1, wrapper); - - if (check_executable (concat_name)) - return concat_name; - XFREE (concat_name); - return NULL; -} - -char * -chase_symlinks (const char *pathspec) -{ -#ifndef S_ISLNK - return xstrdup (pathspec); -#else - char buf[LT_PATHMAX]; - struct stat s; - char *tmp_pathspec = xstrdup (pathspec); - char *p; - int has_symlinks = 0; - while (strlen (tmp_pathspec) && !has_symlinks) - { - lt_debugprintf (__FILE__, __LINE__, - "checking path component for symlinks: %s\n", - tmp_pathspec); - if (lstat (tmp_pathspec, &s) == 0) - { - if (S_ISLNK (s.st_mode) != 0) - { - has_symlinks = 1; - break; - } - - /* search backwards for last DIR_SEPARATOR */ - p = tmp_pathspec + strlen (tmp_pathspec) - 1; - while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) - p--; - if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) - { - /* no more DIR_SEPARATORS left */ - break; - } - *p = '\0'; - } - else - { - lt_fatal (__FILE__, __LINE__, - "error accessing file \"%s\": %s", - tmp_pathspec, nonnull (strerror (errno))); - } - } - XFREE (tmp_pathspec); - - if (!has_symlinks) - { - return xstrdup (pathspec); - } - - tmp_pathspec = realpath (pathspec, buf); - if (tmp_pathspec == 0) - { - lt_fatal (__FILE__, __LINE__, - "could not follow symlinks for %s", pathspec); - } - return xstrdup (tmp_pathspec); -#endif -} - -char * -strendzap (char *str, const char *pat) -{ - size_t len, patlen; - - assert (str != NULL); - assert (pat != NULL); - - len = strlen (str); - patlen = strlen (pat); - - if (patlen <= len) - { - str += len - patlen; - if (STREQ (str, pat)) - *str = '\0'; - } - return str; -} - -void -lt_debugprintf (const char *file, int line, const char *fmt, ...) -{ - va_list args; - if (lt_debug) - { - (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line); - va_start (args, fmt); - (void) vfprintf (stderr, fmt, args); - va_end (args); - } -} - -static void -lt_error_core (int exit_status, const char *file, - int line, const char *mode, - const char *message, va_list ap) -{ - fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode); - vfprintf (stderr, message, ap); - fprintf (stderr, ".\n"); - - if (exit_status >= 0) - exit (exit_status); -} - -void -lt_fatal (const char *file, int line, const char *message, ...) -{ - va_list ap; - va_start (ap, message); - lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap); - va_end (ap); -} - -static const char * -nonnull (const char *s) -{ - return s ? s : "(null)"; -} - -static const char * -nonempty (const char *s) -{ - return (s && !*s) ? "(empty)" : nonnull (s); -} - -void -lt_setenv (const char *name, const char *value) -{ - lt_debugprintf (__FILE__, __LINE__, - "(lt_setenv) setting '%s' to '%s'\n", - nonnull (name), nonnull (value)); - { -#ifdef HAVE_SETENV - /* always make a copy, for consistency with !HAVE_SETENV */ - char *str = xstrdup (value); - setenv (name, str, 1); -#else - size_t len = strlen (name) + 1 + strlen (value) + 1; - char *str = XMALLOC (char, len); - sprintf (str, "%s=%s", name, value); - if (putenv (str) != EXIT_SUCCESS) - { - XFREE (str); - } -#endif - } -} - -char * -lt_extend_str (const char *orig_value, const char *add, int to_end) -{ - char *new_value; - if (orig_value && *orig_value) - { - size_t orig_value_len = strlen (orig_value); - size_t add_len = strlen (add); - new_value = XMALLOC (char, add_len + orig_value_len + 1); - if (to_end) - { - strcpy (new_value, orig_value); - strcpy (new_value + orig_value_len, add); - } - else - { - strcpy (new_value, add); - strcpy (new_value + add_len, orig_value); - } - } - else - { - new_value = xstrdup (add); - } - return new_value; -} - -void -lt_update_exe_path (const char *name, const char *value) -{ - lt_debugprintf (__FILE__, __LINE__, - "(lt_update_exe_path) modifying '%s' by prepending '%s'\n", - nonnull (name), nonnull (value)); - - if (name && *name && value && *value) - { - char *new_value = lt_extend_str (getenv (name), value, 0); - /* some systems can't cope with a ':'-terminated path #' */ - size_t len = strlen (new_value); - while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1])) - { - new_value[--len] = '\0'; - } - lt_setenv (name, new_value); - XFREE (new_value); - } -} - -void -lt_update_lib_path (const char *name, const char *value) -{ - lt_debugprintf (__FILE__, __LINE__, - "(lt_update_lib_path) modifying '%s' by prepending '%s'\n", - nonnull (name), nonnull (value)); - - if (name && *name && value && *value) - { - char *new_value = lt_extend_str (getenv (name), value, 0); - lt_setenv (name, new_value); - XFREE (new_value); - } -} - -EOF - case $host_os in - mingw*) - cat <<"EOF" - -/* Prepares an argument vector before calling spawn(). - Note that spawn() does not by itself call the command interpreter - (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") : - ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); - GetVersionEx(&v); - v.dwPlatformId == VER_PLATFORM_WIN32_NT; - }) ? "cmd.exe" : "command.com"). - Instead it simply concatenates the arguments, separated by ' ', and calls - CreateProcess(). We must quote the arguments since Win32 CreateProcess() - interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a - special way: - - Space and tab are interpreted as delimiters. They are not treated as - delimiters if they are surrounded by double quotes: "...". - - Unescaped double quotes are removed from the input. Their only effect is - that within double quotes, space and tab are treated like normal - characters. - - Backslashes not followed by double quotes are not special. - - But 2*n+1 backslashes followed by a double quote become - n backslashes followed by a double quote (n >= 0): - \" -> " - \\\" -> \" - \\\\\" -> \\" - */ -#define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" -#define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037" -char ** -prepare_spawn (char **argv) -{ - size_t argc; - char **new_argv; - size_t i; - - /* Count number of arguments. */ - for (argc = 0; argv[argc] != NULL; argc++) - ; - - /* Allocate new argument vector. */ - new_argv = XMALLOC (char *, argc + 1); - - /* Put quoted arguments into the new argument vector. */ - for (i = 0; i < argc; i++) - { - const char *string = argv[i]; - - if (string[0] == '\0') - new_argv[i] = xstrdup ("\"\""); - else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL) - { - int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL); - size_t length; - unsigned int backslashes; - const char *s; - char *quoted_string; - char *p; - - length = 0; - backslashes = 0; - if (quote_around) - length++; - for (s = string; *s != '\0'; s++) - { - char c = *s; - if (c == '"') - length += backslashes + 1; - length++; - if (c == '\\') - backslashes++; - else - backslashes = 0; - } - if (quote_around) - length += backslashes + 1; - - quoted_string = XMALLOC (char, length + 1); - - p = quoted_string; - backslashes = 0; - if (quote_around) - *p++ = '"'; - for (s = string; *s != '\0'; s++) - { - char c = *s; - if (c == '"') - { - unsigned int j; - for (j = backslashes + 1; j > 0; j--) - *p++ = '\\'; - } - *p++ = c; - if (c == '\\') - backslashes++; - else - backslashes = 0; - } - if (quote_around) - { - unsigned int j; - for (j = backslashes; j > 0; j--) - *p++ = '\\'; - *p++ = '"'; - } - *p = '\0'; - - new_argv[i] = quoted_string; - } - else - new_argv[i] = (char *) string; - } - new_argv[argc] = NULL; - - return new_argv; -} -EOF - ;; - esac - - cat <<"EOF" -void lt_dump_script (FILE* f) -{ -EOF - func_emit_wrapper yes | - $SED -n -e ' -s/^\(.\{79\}\)\(..*\)/\1\ -\2/ -h -s/\([\\"]\)/\\\1/g -s/$/\\n/ -s/\([^\n]*\).*/ fputs ("\1", f);/p -g -D' - cat <<"EOF" -} -EOF -} -# end: func_emit_cwrapperexe_src - -# func_win32_import_lib_p ARG -# True if ARG is an import lib, as indicated by $file_magic_cmd -func_win32_import_lib_p () -{ - $debug_cmd - - case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in - *import*) : ;; - *) false ;; - esac -} - -# func_suncc_cstd_abi -# !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!! -# Several compiler flags select an ABI that is incompatible with the -# Cstd library. Avoid specifying it if any are in CXXFLAGS. -func_suncc_cstd_abi () -{ - $debug_cmd - - case " $compile_command " in - *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*) - suncc_use_cstd_abi=no - ;; - *) - suncc_use_cstd_abi=yes - ;; - esac -} - -# func_mode_link arg... -func_mode_link () -{ - $debug_cmd - - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - # It is impossible to link a dll without this setting, and - # we shouldn't force the makefile maintainer to figure out - # what system we are compiling for in order to pass an extra - # flag for every libtool invocation. - # allow_undefined=no - - # FIXME: Unfortunately, there are problems with the above when trying - # to make a dll that has undefined symbols, in which case not - # even a static library is built. For now, we need to specify - # -no-undefined on the libtool link line when we can be certain - # that all symbols are satisfied, otherwise we get a static library. - allow_undefined=yes - ;; - *) - allow_undefined=yes - ;; - esac - libtool_args=$nonopt - base_compile="$nonopt $@" - compile_command=$nonopt - finalize_command=$nonopt - - compile_rpath= - finalize_rpath= - compile_shlibpath= - finalize_shlibpath= - convenience= - old_convenience= - deplibs= - old_deplibs= - compiler_flags= - linker_flags= - dllsearchpath= - lib_search_path=`pwd` - inst_prefix_dir= - new_inherited_linker_flags= - - avoid_version=no - bindir= - dlfiles= - dlprefiles= - dlself=no - export_dynamic=no - export_symbols= - export_symbols_regex= - generated= - libobjs= - ltlibs= - module=no - no_install=no - objs= - os2dllname= - non_pic_objects= - precious_files_regex= - prefer_static_libs=no - preload=false - prev= - prevarg= - release= - rpath= - xrpath= - perm_rpath= - temp_rpath= - thread_safe=no - vinfo= - vinfo_number=no - weak_libs= - single_module=$wl-single_module - func_infer_tag $base_compile - - # We need to know -static, to get the right output filenames. - for arg - do - case $arg in - -shared) - test yes != "$build_libtool_libs" \ - && func_fatal_configuration "cannot build a shared library" - build_old_libs=no - break - ;; - -all-static | -static | -static-libtool-libs) - case $arg in - -all-static) - if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then - func_warning "complete static linking is impossible in this configuration" - fi - if test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - -static) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=built - ;; - -static-libtool-libs) - if test -z "$pic_flag" && test -n "$link_static_flag"; then - dlopen_self=$dlopen_self_static - fi - prefer_static_libs=yes - ;; - esac - build_libtool_libs=no - build_old_libs=yes - break - ;; - esac - done - - # See if our shared archives depend on static archives. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes - - # Go through the arguments, transforming them on the way. - while test "$#" -gt 0; do - arg=$1 - shift - func_quote_arg pretty,unquoted "$arg" - qarg=$func_quote_arg_unquoted_result - func_append libtool_args " $func_quote_arg_result" - - # If the previous option needs an argument, assign it. - if test -n "$prev"; then - case $prev in - output) - func_append compile_command " @OUTPUT@" - func_append finalize_command " @OUTPUT@" - ;; - esac - - case $prev in - bindir) - bindir=$arg - prev= - continue - ;; - dlfiles|dlprefiles) - $preload || { - # Add the symbol object into the linking commands. - func_append compile_command " @SYMFILE@" - func_append finalize_command " @SYMFILE@" - preload=: - } - case $arg in - *.la | *.lo) ;; # We handle these cases below. - force) - if test no = "$dlself"; then - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - self) - if test dlprefiles = "$prev"; then - dlself=yes - elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then - dlself=yes - else - dlself=needless - export_dynamic=yes - fi - prev= - continue - ;; - *) - if test dlfiles = "$prev"; then - func_append dlfiles " $arg" - else - func_append dlprefiles " $arg" - fi - prev= - continue - ;; - esac - ;; - expsyms) - export_symbols=$arg - test -f "$arg" \ - || func_fatal_error "symbol file '$arg' does not exist" - prev= - continue - ;; - expsyms_regex) - export_symbols_regex=$arg - prev= - continue - ;; - framework) - case $host in - *-*-darwin*) - case "$deplibs " in - *" $qarg.ltframework "*) ;; - *) func_append deplibs " $qarg.ltframework" # this is fixed later - ;; - esac - ;; - esac - prev= - continue - ;; - inst_prefix) - inst_prefix_dir=$arg - prev= - continue - ;; - mllvm) - # Clang does not use LLVM to link, so we can simply discard any - # '-mllvm $arg' options when doing the link step. - prev= - continue - ;; - objectlist) - if test -f "$arg"; then - save_arg=$arg - moreargs= - for fil in `cat "$save_arg"` - do -# func_append moreargs " $fil" - arg=$fil - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if func_lalib_unsafe_p "$arg"; then - pic_object= - non_pic_object= - - # Read the .lo file - func_source "$arg" - - if test -z "$pic_object" || - test -z "$non_pic_object" || - test none = "$pic_object" && - test none = "$non_pic_object"; then - func_fatal_error "cannot find name of object for '$arg'" - fi - - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir=$func_dirname_result - - if test none != "$pic_object"; then - # Prepend the subdirectory the object is found in. - pic_object=$xdir$pic_object - - if test dlfiles = "$prev"; then - if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then - func_append dlfiles " $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test dlprefiles = "$prev"; then - # Preload the old-style object. - func_append dlprefiles " $pic_object" - prev= - fi - - # A PIC object. - func_append libobjs " $pic_object" - arg=$pic_object - fi - - # Non-PIC object. - if test none != "$non_pic_object"; then - # Prepend the subdirectory the object is found in. - non_pic_object=$xdir$non_pic_object - - # A standard non-PIC object - func_append non_pic_objects " $non_pic_object" - if test -z "$pic_object" || test none = "$pic_object"; then - arg=$non_pic_object - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object=$pic_object - func_append non_pic_objects " $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if $opt_dry_run; then - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir=$func_dirname_result - - func_lo2o "$arg" - pic_object=$xdir$objdir/$func_lo2o_result - non_pic_object=$xdir$func_lo2o_result - func_append libobjs " $pic_object" - func_append non_pic_objects " $non_pic_object" - else - func_fatal_error "'$arg' is not a valid libtool object" - fi - fi - done - else - func_fatal_error "link input file '$arg' does not exist" - fi - arg=$save_arg - prev= - continue - ;; - os2dllname) - os2dllname=$arg - prev= - continue - ;; - precious_regex) - precious_files_regex=$arg - prev= - continue - ;; - release) - release=-$arg - prev= - continue - ;; - rpath | xrpath) - # We need an absolute path. - case $arg in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - func_fatal_error "only absolute run-paths are allowed" - ;; - esac - if test rpath = "$prev"; then - case "$rpath " in - *" $arg "*) ;; - *) func_append rpath " $arg" ;; - esac - else - case "$xrpath " in - *" $arg "*) ;; - *) func_append xrpath " $arg" ;; - esac - fi - prev= - continue - ;; - shrext) - shrext_cmds=$arg - prev= - continue - ;; - weak) - func_append weak_libs " $arg" - prev= - continue - ;; - xassembler) - func_append compiler_flags " -Xassembler $qarg" - prev= - func_append compile_command " -Xassembler $qarg" - func_append finalize_command " -Xassembler $qarg" - continue - ;; - xcclinker) - func_append linker_flags " $qarg" - func_append compiler_flags " $qarg" - prev= - func_append compile_command " $qarg" - func_append finalize_command " $qarg" - continue - ;; - xcompiler) - func_append compiler_flags " $qarg" - prev= - func_append compile_command " $qarg" - func_append finalize_command " $qarg" - continue - ;; - xlinker) - func_append linker_flags " $qarg" - func_append compiler_flags " $wl$qarg" - prev= - func_append compile_command " $wl$qarg" - func_append finalize_command " $wl$qarg" - continue - ;; - *) - eval "$prev=\"\$arg\"" - prev= - continue - ;; - esac - fi # test -n "$prev" - - prevarg=$arg - - case $arg in - -all-static) - if test -n "$link_static_flag"; then - # See comment for -static flag below, for more details. - func_append compile_command " $link_static_flag" - func_append finalize_command " $link_static_flag" - fi - continue - ;; - - -allow-undefined) - # FIXME: remove this flag sometime in the future. - func_fatal_error "'-allow-undefined' must not be used because it is the default" - ;; - - -avoid-version) - avoid_version=yes - continue - ;; - - -bindir) - prev=bindir - continue - ;; - - -dlopen) - prev=dlfiles - continue - ;; - - -dlpreopen) - prev=dlprefiles - continue - ;; - - -export-dynamic) - export_dynamic=yes - continue - ;; - - -export-symbols | -export-symbols-regex) - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then - func_fatal_error "more than one -exported-symbols argument is not allowed" - fi - if test X-export-symbols = "X$arg"; then - prev=expsyms - else - prev=expsyms_regex - fi - continue - ;; - - -framework) - prev=framework - continue - ;; - - -inst-prefix-dir) - prev=inst_prefix - continue - ;; - - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* - # so, if we see these flags be careful not to treat them like -L - -L[A-Z][A-Z]*:*) - case $with_gcc/$host in - no/*-*-irix* | /*-*-irix*) - func_append compile_command " $arg" - func_append finalize_command " $arg" - ;; - esac - continue - ;; - - -L*) - func_stripname "-L" '' "$arg" - if test -z "$func_stripname_result"; then - if test "$#" -gt 0; then - func_fatal_error "require no space between '-L' and '$1'" - else - func_fatal_error "need path for '-L' option" - fi - fi - func_resolve_sysroot "$func_stripname_result" - dir=$func_resolve_sysroot_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - *) - absdir=`cd "$dir" && pwd` - test -z "$absdir" && \ - func_fatal_error "cannot determine absolute directory name of '$dir'" - dir=$absdir - ;; - esac - case "$deplibs " in - *" -L$dir "* | *" $arg "*) - # Will only happen for absolute or sysroot arguments - ;; - *) - # Preserve sysroot, but never include relative directories - case $dir in - [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; - *) func_append deplibs " -L$dir" ;; - esac - func_append lib_search_path " $dir" - ;; - esac - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$dir:"*) ;; - ::) dllsearchpath=$dir;; - *) func_append dllsearchpath ":$dir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - ::) dllsearchpath=$testbindir;; - *) func_append dllsearchpath ":$testbindir";; - esac - ;; - esac - continue - ;; - - -l*) - if test X-lc = "X$arg" || test X-lm = "X$arg"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*) - # These systems don't actually have a C or math library (as such) - continue - ;; - *-*-os2*) - # These systems don't actually have a C library (as such) - test X-lc = "X$arg" && continue - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) - # Do not include libc due to us having libc/libc_r. - test X-lc = "X$arg" && continue - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C and math libraries are in the System framework - func_append deplibs " System.ltframework" - continue - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - test X-lc = "X$arg" && continue - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - test X-lc = "X$arg" && continue - ;; - esac - elif test X-lc_r = "X$arg"; then - case $host in - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) - # Do not include libc_r directly, use -pthread flag. - continue - ;; - esac - fi - func_append deplibs " $arg" - continue - ;; - - -mllvm) - prev=mllvm - continue - ;; - - -module) - module=yes - continue - ;; - - # Tru64 UNIX uses -model [arg] to determine the layout of C++ - # classes, name mangling, and exception handling. - # Darwin uses the -arch flag to determine output architecture. - -model|-arch|-isysroot|--sysroot) - func_append compiler_flags " $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - prev=xcompiler - continue - ;; - # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199. - -pthread) - case $host in - *solaris2*) ;; - *) - case "$new_inherited_linker_flags " in - *" $arg "*) ;; - * ) func_append new_inherited_linker_flags " $arg" ;; - esac - ;; - esac - continue - ;; - -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \ - |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) - func_append compiler_flags " $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - case "$new_inherited_linker_flags " in - *" $arg "*) ;; - * ) func_append new_inherited_linker_flags " $arg" ;; - esac - continue - ;; - - -multi_module) - single_module=$wl-multi_module - continue - ;; - - -no-fast-install) - fast_install=no - continue - ;; - - -no-install) - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*) - # The PATH hackery in wrapper scripts is required on Windows - # and Darwin in order for the loader to find any dlls it needs. - func_warning "'-no-install' is ignored for $host" - func_warning "assuming '-no-fast-install' instead" - fast_install=no - ;; - *) no_install=yes ;; - esac - continue - ;; - - -no-undefined) - allow_undefined=no - continue - ;; - - -objectlist) - prev=objectlist - continue - ;; - - -os2dllname) - prev=os2dllname - continue - ;; - - -o) prev=output ;; - - -precious-files-regex) - prev=precious_regex - continue - ;; - - -release) - prev=release - continue - ;; - - -rpath) - prev=rpath - continue - ;; - - -R) - prev=xrpath - continue - ;; - - -R*) - func_stripname '-R' '' "$arg" - dir=$func_stripname_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) ;; - =*) - func_stripname '=' '' "$dir" - dir=$lt_sysroot$func_stripname_result - ;; - *) - func_fatal_error "only absolute run-paths are allowed" - ;; - esac - case "$xrpath " in - *" $dir "*) ;; - *) func_append xrpath " $dir" ;; - esac - continue - ;; - - -shared) - # The effects of -shared are defined in a previous loop. - continue - ;; - - -shrext) - prev=shrext - continue - ;; - - -static | -static-libtool-libs) - # The effects of -static are defined in a previous loop. - # We used to do the same as -all-static on platforms that - # didn't have a PIC flag, but the assumption that the effects - # would be equivalent was wrong. It would break on at least - # Digital Unix and AIX. - continue - ;; - - -thread-safe) - thread_safe=yes - continue - ;; - - -version-info) - prev=vinfo - continue - ;; - - -version-number) - prev=vinfo - vinfo_number=yes - continue - ;; - - -weak) - prev=weak - continue - ;; - - -Wc,*) - func_stripname '-Wc,' '' "$arg" - args=$func_stripname_result - arg= - save_ifs=$IFS; IFS=, - for flag in $args; do - IFS=$save_ifs - func_quote_arg pretty "$flag" - func_append arg " $func_quote_arg_result" - func_append compiler_flags " $func_quote_arg_result" - done - IFS=$save_ifs - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Wl,*) - func_stripname '-Wl,' '' "$arg" - args=$func_stripname_result - arg= - save_ifs=$IFS; IFS=, - for flag in $args; do - IFS=$save_ifs - func_quote_arg pretty "$flag" - func_append arg " $wl$func_quote_arg_result" - func_append compiler_flags " $wl$func_quote_arg_result" - func_append linker_flags " $func_quote_arg_result" - done - IFS=$save_ifs - func_stripname ' ' '' "$arg" - arg=$func_stripname_result - ;; - - -Xassembler) - prev=xassembler - continue - ;; - - -Xcompiler) - prev=xcompiler - continue - ;; - - -Xlinker) - prev=xlinker - continue - ;; - - -XCClinker) - prev=xcclinker - continue - ;; - - # -msg_* for osf cc - -msg_*) - func_quote_arg pretty "$arg" - arg=$func_quote_arg_result - ;; - - # Flags to be passed through unchanged, with rationale: - # -64, -mips[0-9] enable 64-bit mode for the SGI compiler - # -r[0-9][0-9]* specify processor for the SGI compiler - # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler - # +DA*, +DD* enable 64-bit mode for the HP compiler - # -q* compiler args for the IBM compiler - # -m*, -t[45]*, -txscale* architecture-specific flags for GCC - # -F/path path to uninstalled frameworks, gcc on darwin - # -p, -pg, --coverage, -fprofile-* profiling flags for GCC - # -fstack-protector* stack protector flags for GCC - # @file GCC response files - # -tp=* Portland pgcc target processor selection - # --sysroot=* for sysroot support - # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization - # -specs=* GCC specs files - # -stdlib=* select c++ std lib with clang - # -fsanitize=* Clang/GCC memory and address sanitizer - # -fuse-ld=* Linker select flags for GCC - # -Wa,* Pass flags directly to the assembler - -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ - -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ - -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ - -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*) - func_quote_arg pretty "$arg" - arg=$func_quote_arg_result - func_append compile_command " $arg" - func_append finalize_command " $arg" - func_append compiler_flags " $arg" - continue - ;; - - -Z*) - if test os2 = "`expr $host : '.*\(os2\)'`"; then - # OS/2 uses -Zxxx to specify OS/2-specific options - compiler_flags="$compiler_flags $arg" - func_append compile_command " $arg" - func_append finalize_command " $arg" - case $arg in - -Zlinker | -Zstack) - prev=xcompiler - ;; - esac - continue - else - # Otherwise treat like 'Some other compiler flag' below - func_quote_arg pretty "$arg" - arg=$func_quote_arg_result - fi - ;; - - # Some other compiler flag. - -* | +*) - func_quote_arg pretty "$arg" - arg=$func_quote_arg_result - ;; - - *.$objext) - # A standard object. - func_append objs " $arg" - ;; - - *.lo) - # A libtool-controlled object. - - # Check to see that this really is a libtool object. - if func_lalib_unsafe_p "$arg"; then - pic_object= - non_pic_object= - - # Read the .lo file - func_source "$arg" - - if test -z "$pic_object" || - test -z "$non_pic_object" || - test none = "$pic_object" && - test none = "$non_pic_object"; then - func_fatal_error "cannot find name of object for '$arg'" - fi - - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir=$func_dirname_result - - test none = "$pic_object" || { - # Prepend the subdirectory the object is found in. - pic_object=$xdir$pic_object - - if test dlfiles = "$prev"; then - if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then - func_append dlfiles " $pic_object" - prev= - continue - else - # If libtool objects are unsupported, then we need to preload. - prev=dlprefiles - fi - fi - - # CHECK ME: I think I busted this. -Ossama - if test dlprefiles = "$prev"; then - # Preload the old-style object. - func_append dlprefiles " $pic_object" - prev= - fi - - # A PIC object. - func_append libobjs " $pic_object" - arg=$pic_object - } - - # Non-PIC object. - if test none != "$non_pic_object"; then - # Prepend the subdirectory the object is found in. - non_pic_object=$xdir$non_pic_object - - # A standard non-PIC object - func_append non_pic_objects " $non_pic_object" - if test -z "$pic_object" || test none = "$pic_object"; then - arg=$non_pic_object - fi - else - # If the PIC object exists, use it instead. - # $xdir was prepended to $pic_object above. - non_pic_object=$pic_object - func_append non_pic_objects " $non_pic_object" - fi - else - # Only an error if not doing a dry-run. - if $opt_dry_run; then - # Extract subdirectory from the argument. - func_dirname "$arg" "/" "" - xdir=$func_dirname_result - - func_lo2o "$arg" - pic_object=$xdir$objdir/$func_lo2o_result - non_pic_object=$xdir$func_lo2o_result - func_append libobjs " $pic_object" - func_append non_pic_objects " $non_pic_object" - else - func_fatal_error "'$arg' is not a valid libtool object" - fi - fi - ;; - - *.$libext) - # An archive. - func_append deplibs " $arg" - func_append old_deplibs " $arg" - continue - ;; - - *.la) - # A libtool-controlled library. - - func_resolve_sysroot "$arg" - if test dlfiles = "$prev"; then - # This library was specified with -dlopen. - func_append dlfiles " $func_resolve_sysroot_result" - prev= - elif test dlprefiles = "$prev"; then - # The library was specified with -dlpreopen. - func_append dlprefiles " $func_resolve_sysroot_result" - prev= - else - func_append deplibs " $func_resolve_sysroot_result" - fi - continue - ;; - - # Some other compiler argument. - *) - # Unknown arguments in both finalize_command and compile_command need - # to be aesthetically quoted because they are evaled later. - func_quote_arg pretty "$arg" - arg=$func_quote_arg_result - ;; - esac # arg - - # Now actually substitute the argument into the commands. - if test -n "$arg"; then - func_append compile_command " $arg" - func_append finalize_command " $arg" - fi - done # argument parsing loop - - test -n "$prev" && \ - func_fatal_help "the '$prevarg' option requires an argument" - - if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then - eval arg=\"$export_dynamic_flag_spec\" - func_append compile_command " $arg" - func_append finalize_command " $arg" - fi - - oldlibs= - # calculate the name of the file, without its directory - func_basename "$output" - outputname=$func_basename_result - libobjs_save=$libobjs - - if test -n "$shlibpath_var"; then - # get the directories listed in $shlibpath_var - eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\` - else - shlib_search_path= - fi - eval sys_lib_search_path=\"$sys_lib_search_path_spec\" - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" - - # Definition is injected by LT_CONFIG during libtool generation. - func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH" - - func_dirname "$output" "/" "" - output_objdir=$func_dirname_result$objdir - func_to_tool_file "$output_objdir/" - tool_output_objdir=$func_to_tool_file_result - # Create the object directory. - func_mkdir_p "$output_objdir" - - # Determine the type of output - case $output in - "") - func_fatal_help "you must specify an output file" - ;; - *.$libext) linkmode=oldlib ;; - *.lo | *.$objext) linkmode=obj ;; - *.la) linkmode=lib ;; - *) linkmode=prog ;; # Anything else should be a program. - esac - - specialdeplibs= - - libs= - # Find all interdependent deplibs by searching for libraries - # that are linked more than once (e.g. -la -lb -la) - for deplib in $deplibs; do - if $opt_preserve_dup_deps; then - case "$libs " in - *" $deplib "*) func_append specialdeplibs " $deplib" ;; - esac - fi - func_append libs " $deplib" - done - - if test lib = "$linkmode"; then - libs="$predeps $libs $compiler_lib_search_path $postdeps" - - # Compute libraries that are listed more than once in $predeps - # $postdeps and mark them as special (i.e., whose duplicates are - # not to be eliminated). - pre_post_deps= - if $opt_duplicate_compiler_generated_deps; then - for pre_post_dep in $predeps $postdeps; do - case "$pre_post_deps " in - *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; - esac - func_append pre_post_deps " $pre_post_dep" - done - fi - pre_post_deps= - fi - - deplibs= - newdependency_libs= - newlib_search_path= - need_relink=no # whether we're linking any uninstalled libtool libraries - notinst_deplibs= # not-installed libtool libraries - notinst_path= # paths that contain not-installed libtool libraries - - case $linkmode in - lib) - passes="conv dlpreopen link" - for file in $dlfiles $dlprefiles; do - case $file in - *.la) ;; - *) - func_fatal_help "libraries can '-dlopen' only libtool libraries: $file" - ;; - esac - done - ;; - prog) - compile_deplibs= - finalize_deplibs= - alldeplibs=false - newdlfiles= - newdlprefiles= - passes="conv scan dlopen dlpreopen link" - ;; - *) passes="conv" - ;; - esac - - for pass in $passes; do - # The preopen pass in lib mode reverses $deplibs; put it back here - # so that -L comes before libs that need it for instance... - if test lib,link = "$linkmode,$pass"; then - ## FIXME: Find the place where the list is rebuilt in the wrong - ## order, and fix it there properly - tmp_deplibs= - for deplib in $deplibs; do - tmp_deplibs="$deplib $tmp_deplibs" - done - deplibs=$tmp_deplibs - fi - - if test lib,link = "$linkmode,$pass" || - test prog,scan = "$linkmode,$pass"; then - libs=$deplibs - deplibs= - fi - if test prog = "$linkmode"; then - case $pass in - dlopen) libs=$dlfiles ;; - dlpreopen) libs=$dlprefiles ;; - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; - esac - fi - if test lib,dlpreopen = "$linkmode,$pass"; then - # Collect and forward deplibs of preopened libtool libs - for lib in $dlprefiles; do - # Ignore non-libtool-libs - dependency_libs= - func_resolve_sysroot "$lib" - case $lib in - *.la) func_source "$func_resolve_sysroot_result" ;; - esac - - # Collect preopened libtool deplibs, except any this library - # has declared as weak libs - for deplib in $dependency_libs; do - func_basename "$deplib" - deplib_base=$func_basename_result - case " $weak_libs " in - *" $deplib_base "*) ;; - *) func_append deplibs " $deplib" ;; - esac - done - done - libs=$dlprefiles - fi - if test dlopen = "$pass"; then - # Collect dlpreopened libraries - save_deplibs=$deplibs - deplibs= - fi - - for deplib in $libs; do - lib= - found=false - case $deplib in - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ - |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) - if test prog,link = "$linkmode,$pass"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - func_append compiler_flags " $deplib" - if test lib = "$linkmode"; then - case "$new_inherited_linker_flags " in - *" $deplib "*) ;; - * ) func_append new_inherited_linker_flags " $deplib" ;; - esac - fi - fi - continue - ;; - -l*) - if test lib != "$linkmode" && test prog != "$linkmode"; then - func_warning "'-l' is ignored for archives/objects" - continue - fi - func_stripname '-l' '' "$deplib" - name=$func_stripname_result - if test lib = "$linkmode"; then - searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path" - else - searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path" - fi - for searchdir in $searchdirs; do - for search_ext in .la $std_shrext .so .a; do - # Search the libtool library - lib=$searchdir/lib$name$search_ext - if test -f "$lib"; then - if test .la = "$search_ext"; then - found=: - else - found=false - fi - break 2 - fi - done - done - if $found; then - # deplib is a libtool library - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib, - # We need to do some special things here, and not later. - if test yes = "$allow_libtool_libs_with_static_runtimes"; then - case " $predeps $postdeps " in - *" $deplib "*) - if func_lalib_p "$lib"; then - library_names= - old_library= - func_source "$lib" - for l in $old_library $library_names; do - ll=$l - done - if test "X$ll" = "X$old_library"; then # only static version available - found=false - func_dirname "$lib" "" "." - ladir=$func_dirname_result - lib=$ladir/$old_library - if test prog,link = "$linkmode,$pass"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" - fi - continue - fi - fi - ;; - *) ;; - esac - fi - else - # deplib doesn't seem to be a libtool library - if test prog,link = "$linkmode,$pass"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs" - fi - continue - fi - ;; # -l - *.ltframework) - if test prog,link = "$linkmode,$pass"; then - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - deplibs="$deplib $deplibs" - if test lib = "$linkmode"; then - case "$new_inherited_linker_flags " in - *" $deplib "*) ;; - * ) func_append new_inherited_linker_flags " $deplib" ;; - esac - fi - fi - continue - ;; - -L*) - case $linkmode in - lib) - deplibs="$deplib $deplibs" - test conv = "$pass" && continue - newdependency_libs="$deplib $newdependency_libs" - func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - func_append newlib_search_path " $func_resolve_sysroot_result" - ;; - prog) - if test conv = "$pass"; then - deplibs="$deplib $deplibs" - continue - fi - if test scan = "$pass"; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - func_append newlib_search_path " $func_resolve_sysroot_result" - ;; - *) - func_warning "'-L' is ignored for archives/objects" - ;; - esac # linkmode - continue - ;; # -L - -R*) - if test link = "$pass"; then - func_stripname '-R' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - dir=$func_resolve_sysroot_result - # Make sure the xrpath contains only unique directories. - case "$xrpath " in - *" $dir "*) ;; - *) func_append xrpath " $dir" ;; - esac - fi - deplibs="$deplib $deplibs" - continue - ;; - *.la) - func_resolve_sysroot "$deplib" - lib=$func_resolve_sysroot_result - ;; - *.$libext) - if test conv = "$pass"; then - deplibs="$deplib $deplibs" - continue - fi - case $linkmode in - lib) - # Linking convenience modules into shared libraries is allowed, - # but linking other static libraries is non-portable. - case " $dlpreconveniencelibs " in - *" $deplib "*) ;; - *) - valid_a_lib=false - case $deplibs_check_method in - match_pattern*) - set dummy $deplibs_check_method; shift - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \ - | $EGREP "$match_pattern_regex" > /dev/null; then - valid_a_lib=: - fi - ;; - pass_all) - valid_a_lib=: - ;; - esac - if $valid_a_lib; then - echo - $ECHO "*** Warning: Linking the shared library $output against the" - $ECHO "*** static library $deplib is not portable!" - deplibs="$deplib $deplibs" - else - echo - $ECHO "*** Warning: Trying to link with static lib archive $deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because the file extensions .$libext of this argument makes me believe" - echo "*** that it is just a static archive that I should not use here." - fi - ;; - esac - continue - ;; - prog) - if test link != "$pass"; then - deplibs="$deplib $deplibs" - else - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - fi - continue - ;; - esac # linkmode - ;; # *.$libext - *.lo | *.$objext) - if test conv = "$pass"; then - deplibs="$deplib $deplibs" - elif test prog = "$linkmode"; then - if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then - # If there is no dlopen support or we're linking statically, - # we need to preload. - func_append newdlprefiles " $deplib" - compile_deplibs="$deplib $compile_deplibs" - finalize_deplibs="$deplib $finalize_deplibs" - else - func_append newdlfiles " $deplib" - fi - fi - continue - ;; - %DEPLIBS%) - alldeplibs=: - continue - ;; - esac # case $deplib - - $found || test -f "$lib" \ - || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'" - - # Check to see that this really is a libtool archive. - func_lalib_unsafe_p "$lib" \ - || func_fatal_error "'$lib' is not a valid libtool archive" - - func_dirname "$lib" "" "." - ladir=$func_dirname_result - - dlname= - dlopen= - dlpreopen= - libdir= - library_names= - old_library= - inherited_linker_flags= - # If the library was installed with an old release of libtool, - # it will not redefine variables installed, or shouldnotlink - installed=yes - shouldnotlink=no - avoidtemprpath= - - - # Read the .la file - func_source "$lib" - - # Convert "-framework foo" to "foo.ltframework" - if test -n "$inherited_linker_flags"; then - tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'` - for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do - case " $new_inherited_linker_flags " in - *" $tmp_inherited_linker_flag "*) ;; - *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; - esac - done - fi - dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - if test lib,link = "$linkmode,$pass" || - test prog,scan = "$linkmode,$pass" || - { test prog != "$linkmode" && test lib != "$linkmode"; }; then - test -n "$dlopen" && func_append dlfiles " $dlopen" - test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" - fi - - if test conv = "$pass"; then - # Only check for convenience libraries - deplibs="$lib $deplibs" - if test -z "$libdir"; then - if test -z "$old_library"; then - func_fatal_error "cannot find name of link library for '$lib'" - fi - # It is a libtool convenience library, so add in its objects. - func_append convenience " $ladir/$objdir/$old_library" - func_append old_convenience " $ladir/$objdir/$old_library" - elif test prog != "$linkmode" && test lib != "$linkmode"; then - func_fatal_error "'$lib' is not a convenience library" - fi - tmp_libs= - for deplib in $dependency_libs; do - deplibs="$deplib $deplibs" - if $opt_preserve_dup_deps; then - case "$tmp_libs " in - *" $deplib "*) func_append specialdeplibs " $deplib" ;; - esac - fi - func_append tmp_libs " $deplib" - done - continue - fi # $pass = conv - - - # Get the name of the library we link against. - linklib= - if test -n "$old_library" && - { test yes = "$prefer_static_libs" || - test built,no = "$prefer_static_libs,$installed"; }; then - linklib=$old_library - else - for l in $old_library $library_names; do - linklib=$l - done - fi - if test -z "$linklib"; then - func_fatal_error "cannot find name of link library for '$lib'" - fi - - # This library was specified with -dlopen. - if test dlopen = "$pass"; then - test -z "$libdir" \ - && func_fatal_error "cannot -dlopen a convenience library: '$lib'" - if test -z "$dlname" || - test yes != "$dlopen_support" || - test no = "$build_libtool_libs" - then - # If there is no dlname, no dlopen support or we're linking - # statically, we need to preload. We also need to preload any - # dependent libraries so libltdl's deplib preloader doesn't - # bomb out in the load deplibs phase. - func_append dlprefiles " $lib $dependency_libs" - else - func_append newdlfiles " $lib" - fi - continue - fi # $pass = dlopen - - # We need an absolute path. - case $ladir in - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;; - *) - abs_ladir=`cd "$ladir" && pwd` - if test -z "$abs_ladir"; then - func_warning "cannot determine absolute directory name of '$ladir'" - func_warning "passing it literally to the linker, although it might fail" - abs_ladir=$ladir - fi - ;; - esac - func_basename "$lib" - laname=$func_basename_result - - # Find the relevant object directory and library name. - if test yes = "$installed"; then - if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then - func_warning "library '$lib' was moved." - dir=$ladir - absdir=$abs_ladir - libdir=$abs_ladir - else - dir=$lt_sysroot$libdir - absdir=$lt_sysroot$libdir - fi - test yes = "$hardcode_automatic" && avoidtemprpath=yes - else - if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then - dir=$ladir - absdir=$abs_ladir - # Remove this search path later - func_append notinst_path " $abs_ladir" - else - dir=$ladir/$objdir - absdir=$abs_ladir/$objdir - # Remove this search path later - func_append notinst_path " $abs_ladir" - fi - fi # $installed = yes - func_stripname 'lib' '.la' "$laname" - name=$func_stripname_result - - # This library was specified with -dlpreopen. - if test dlpreopen = "$pass"; then - if test -z "$libdir" && test prog = "$linkmode"; then - func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'" - fi - case $host in - # special handling for platforms with PE-DLLs. - *cygwin* | *mingw* | *cegcc* ) - # Linker will automatically link against shared library if both - # static and shared are present. Therefore, ensure we extract - # symbols from the import library if a shared library is present - # (otherwise, the dlopen module name will be incorrect). We do - # this by putting the import library name into $newdlprefiles. - # We recover the dlopen module name by 'saving' the la file - # name in a special purpose variable, and (later) extracting the - # dlname from the la file. - if test -n "$dlname"; then - func_tr_sh "$dir/$linklib" - eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" - func_append newdlprefiles " $dir/$linklib" - else - func_append newdlprefiles " $dir/$old_library" - # Keep a list of preopened convenience libraries to check - # that they are being used correctly in the link pass. - test -z "$libdir" && \ - func_append dlpreconveniencelibs " $dir/$old_library" - fi - ;; - * ) - # Prefer using a static library (so that no silly _DYNAMIC symbols - # are required to link). - if test -n "$old_library"; then - func_append newdlprefiles " $dir/$old_library" - # Keep a list of preopened convenience libraries to check - # that they are being used correctly in the link pass. - test -z "$libdir" && \ - func_append dlpreconveniencelibs " $dir/$old_library" - # Otherwise, use the dlname, so that lt_dlopen finds it. - elif test -n "$dlname"; then - func_append newdlprefiles " $dir/$dlname" - else - func_append newdlprefiles " $dir/$linklib" - fi - ;; - esac - fi # $pass = dlpreopen - - if test -z "$libdir"; then - # Link the convenience library - if test lib = "$linkmode"; then - deplibs="$dir/$old_library $deplibs" - elif test prog,link = "$linkmode,$pass"; then - compile_deplibs="$dir/$old_library $compile_deplibs" - finalize_deplibs="$dir/$old_library $finalize_deplibs" - else - deplibs="$lib $deplibs" # used for prog,scan pass - fi - continue - fi - - - if test prog = "$linkmode" && test link != "$pass"; then - func_append newlib_search_path " $ladir" - deplibs="$lib $deplibs" - - linkalldeplibs=false - if test no != "$link_all_deplibs" || test -z "$library_names" || - test no = "$build_libtool_libs"; then - linkalldeplibs=: - fi - - tmp_libs= - for deplib in $dependency_libs; do - case $deplib in - -L*) func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result" - func_append newlib_search_path " $func_resolve_sysroot_result" - ;; - esac - # Need to link against all dependency_libs? - if $linkalldeplibs; then - deplibs="$deplib $deplibs" - else - # Need to hardcode shared library paths - # or/and link against static libraries - newdependency_libs="$deplib $newdependency_libs" - fi - if $opt_preserve_dup_deps; then - case "$tmp_libs " in - *" $deplib "*) func_append specialdeplibs " $deplib" ;; - esac - fi - func_append tmp_libs " $deplib" - done # for deplib - continue - fi # $linkmode = prog... - - if test prog,link = "$linkmode,$pass"; then - if test -n "$library_names" && - { { test no = "$prefer_static_libs" || - test built,yes = "$prefer_static_libs,$installed"; } || - test -z "$old_library"; }; then - # We need to hardcode the library path - if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then - # Make sure the rpath contains only unique directories. - case $temp_rpath: in - *"$absdir:"*) ;; - *) func_append temp_rpath "$absdir:" ;; - esac - fi - - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) func_append compile_rpath " $absdir" ;; - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - ;; - esac - fi # $linkmode,$pass = prog,link... - - if $alldeplibs && - { test pass_all = "$deplibs_check_method" || - { test yes = "$build_libtool_libs" && - test -n "$library_names"; }; }; then - # We only need to search for static libraries - continue - fi - fi - - link_static=no # Whether the deplib will be linked statically - use_static_libs=$prefer_static_libs - if test built = "$use_static_libs" && test yes = "$installed"; then - use_static_libs=no - fi - if test -n "$library_names" && - { test no = "$use_static_libs" || test -z "$old_library"; }; then - case $host in - *cygwin* | *mingw* | *cegcc* | *os2*) - # No point in relinking DLLs because paths are not encoded - func_append notinst_deplibs " $lib" - need_relink=no - ;; - *) - if test no = "$installed"; then - func_append notinst_deplibs " $lib" - need_relink=yes - fi - ;; - esac - # This is a shared library - - # Warn about portability, can't link against -module's on some - # systems (darwin). Don't bleat about dlopened modules though! - dlopenmodule= - for dlpremoduletest in $dlprefiles; do - if test "X$dlpremoduletest" = "X$lib"; then - dlopenmodule=$dlpremoduletest - break - fi - done - if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then - echo - if test prog = "$linkmode"; then - $ECHO "*** Warning: Linking the executable $output against the loadable module" - else - $ECHO "*** Warning: Linking the shared library $output against the loadable module" - fi - $ECHO "*** $linklib is not portable!" - fi - if test lib = "$linkmode" && - test yes = "$hardcode_into_libs"; then - # Hardcode the library path. - # Skip directories that are in the system default run-time - # search path. - case " $sys_lib_dlsearch_path " in - *" $absdir "*) ;; - *) - case "$compile_rpath " in - *" $absdir "*) ;; - *) func_append compile_rpath " $absdir" ;; - esac - ;; - esac - case " $sys_lib_dlsearch_path " in - *" $libdir "*) ;; - *) - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - ;; - esac - fi - - if test -n "$old_archive_from_expsyms_cmds"; then - # figure out the soname - set dummy $library_names - shift - realname=$1 - shift - libname=`eval "\\$ECHO \"$libname_spec\""` - # use dlname if we got it. it's perfectly good, no? - if test -n "$dlname"; then - soname=$dlname - elif test -n "$soname_spec"; then - # bleh windows - case $host in - *cygwin* | mingw* | *cegcc* | *os2*) - func_arith $current - $age - major=$func_arith_result - versuffix=-$major - ;; - esac - eval soname=\"$soname_spec\" - else - soname=$realname - fi - - # Make a new name for the extract_expsyms_cmds to use - soroot=$soname - func_basename "$soroot" - soname=$func_basename_result - func_stripname 'lib' '.dll' "$soname" - newlib=libimp-$func_stripname_result.a - - # If the library has no export list, then create one now - if test -f "$output_objdir/$soname-def"; then : - else - func_verbose "extracting exported symbol list from '$soname'" - func_execute_cmds "$extract_expsyms_cmds" 'exit $?' - fi - - # Create $newlib - if test -f "$output_objdir/$newlib"; then :; else - func_verbose "generating import library for '$soname'" - func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' - fi - # make sure the library variables are pointing to the new library - dir=$output_objdir - linklib=$newlib - fi # test -n "$old_archive_from_expsyms_cmds" - - if test prog = "$linkmode" || test relink != "$opt_mode"; then - add_shlibpath= - add_dir= - add= - lib_linked=yes - case $hardcode_action in - immediate | unsupported) - if test no = "$hardcode_direct"; then - add=$dir/$linklib - case $host in - *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;; - *-*-sysv4*uw2*) add_dir=-L$dir ;; - *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ - *-*-unixware7*) add_dir=-L$dir ;; - *-*-darwin* ) - # if the lib is a (non-dlopened) module then we cannot - # link against it, someone is ignoring the earlier warnings - if /usr/bin/file -L $add 2> /dev/null | - $GREP ": [^:]* bundle" >/dev/null; then - if test "X$dlopenmodule" != "X$lib"; then - $ECHO "*** Warning: lib $linklib is a module, not a shared library" - if test -z "$old_library"; then - echo - echo "*** And there doesn't seem to be a static archive available" - echo "*** The link will probably fail, sorry" - else - add=$dir/$old_library - fi - elif test -n "$old_library"; then - add=$dir/$old_library - fi - fi - esac - elif test no = "$hardcode_minus_L"; then - case $host in - *-*-sunos*) add_shlibpath=$dir ;; - esac - add_dir=-L$dir - add=-l$name - elif test no = "$hardcode_shlibpath_var"; then - add_shlibpath=$dir - add=-l$name - else - lib_linked=no - fi - ;; - relink) - if test yes = "$hardcode_direct" && - test no = "$hardcode_direct_absolute"; then - add=$dir/$linklib - elif test yes = "$hardcode_minus_L"; then - add_dir=-L$absdir - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - func_append add_dir " -L$inst_prefix_dir$libdir" - ;; - esac - fi - add=-l$name - elif test yes = "$hardcode_shlibpath_var"; then - add_shlibpath=$dir - add=-l$name - else - lib_linked=no - fi - ;; - *) lib_linked=no ;; - esac - - if test yes != "$lib_linked"; then - func_fatal_configuration "unsupported hardcode properties" - fi - - if test -n "$add_shlibpath"; then - case :$compile_shlibpath: in - *":$add_shlibpath:"*) ;; - *) func_append compile_shlibpath "$add_shlibpath:" ;; - esac - fi - if test prog = "$linkmode"; then - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" - test -n "$add" && compile_deplibs="$add $compile_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - if test yes != "$hardcode_direct" && - test yes != "$hardcode_minus_L" && - test yes = "$hardcode_shlibpath_var"; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) func_append finalize_shlibpath "$libdir:" ;; - esac - fi - fi - fi - - if test prog = "$linkmode" || test relink = "$opt_mode"; then - add_shlibpath= - add_dir= - add= - # Finalize command for both is simple: just hardcode it. - if test yes = "$hardcode_direct" && - test no = "$hardcode_direct_absolute"; then - add=$libdir/$linklib - elif test yes = "$hardcode_minus_L"; then - add_dir=-L$libdir - add=-l$name - elif test yes = "$hardcode_shlibpath_var"; then - case :$finalize_shlibpath: in - *":$libdir:"*) ;; - *) func_append finalize_shlibpath "$libdir:" ;; - esac - add=-l$name - elif test yes = "$hardcode_automatic"; then - if test -n "$inst_prefix_dir" && - test -f "$inst_prefix_dir$libdir/$linklib"; then - add=$inst_prefix_dir$libdir/$linklib - else - add=$libdir/$linklib - fi - else - # We cannot seem to hardcode it, guess we'll fake it. - add_dir=-L$libdir - # Try looking first in the location we're being installed to. - if test -n "$inst_prefix_dir"; then - case $libdir in - [\\/]*) - func_append add_dir " -L$inst_prefix_dir$libdir" - ;; - esac - fi - add=-l$name - fi - - if test prog = "$linkmode"; then - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" - test -n "$add" && finalize_deplibs="$add $finalize_deplibs" - else - test -n "$add_dir" && deplibs="$add_dir $deplibs" - test -n "$add" && deplibs="$add $deplibs" - fi - fi - elif test prog = "$linkmode"; then - # Here we assume that one of hardcode_direct or hardcode_minus_L - # is not unsupported. This is valid on all known static and - # shared platforms. - if test unsupported != "$hardcode_direct"; then - test -n "$old_library" && linklib=$old_library - compile_deplibs="$dir/$linklib $compile_deplibs" - finalize_deplibs="$dir/$linklib $finalize_deplibs" - else - compile_deplibs="-l$name -L$dir $compile_deplibs" - finalize_deplibs="-l$name -L$dir $finalize_deplibs" - fi - elif test yes = "$build_libtool_libs"; then - # Not a shared library - if test pass_all != "$deplibs_check_method"; then - # We're trying link a shared library against a static one - # but the system doesn't support it. - - # Just print a warning and add the library to dependency_libs so - # that the program can be linked against the static library. - echo - $ECHO "*** Warning: This system cannot link to static lib archive $lib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have." - if test yes = "$module"; then - echo "*** But as you try to build a module library, libtool will still create " - echo "*** a static module, that should work as long as the dlopening application" - echo "*** is linked with the -dlopen flag to resolve symbols at runtime." - if test -z "$global_symbol_pipe"; then - echo - echo "*** However, this would only work if libtool was able to extract symbol" - echo "*** lists from a program, using 'nm' or equivalent, but libtool could" - echo "*** not find such a program. So, this module is probably useless." - echo "*** 'nm' from GNU binutils and a full rebuild may help." - fi - if test no = "$build_old_libs"; then - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - else - deplibs="$dir/$old_library $deplibs" - link_static=yes - fi - fi # link shared/static library? - - if test lib = "$linkmode"; then - if test -n "$dependency_libs" && - { test yes != "$hardcode_into_libs" || - test yes = "$build_old_libs" || - test yes = "$link_static"; }; then - # Extract -R from dependency_libs - temp_deplibs= - for libdir in $dependency_libs; do - case $libdir in - -R*) func_stripname '-R' '' "$libdir" - temp_xrpath=$func_stripname_result - case " $xrpath " in - *" $temp_xrpath "*) ;; - *) func_append xrpath " $temp_xrpath";; - esac;; - *) func_append temp_deplibs " $libdir";; - esac - done - dependency_libs=$temp_deplibs - fi - - func_append newlib_search_path " $absdir" - # Link against this library - test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs" - # ... and its dependency_libs - tmp_libs= - for deplib in $dependency_libs; do - newdependency_libs="$deplib $newdependency_libs" - case $deplib in - -L*) func_stripname '-L' '' "$deplib" - func_resolve_sysroot "$func_stripname_result";; - *) func_resolve_sysroot "$deplib" ;; - esac - if $opt_preserve_dup_deps; then - case "$tmp_libs " in - *" $func_resolve_sysroot_result "*) - func_append specialdeplibs " $func_resolve_sysroot_result" ;; - esac - fi - func_append tmp_libs " $func_resolve_sysroot_result" - done - - if test no != "$link_all_deplibs"; then - # Add the search paths of all dependency libraries - for deplib in $dependency_libs; do - path= - case $deplib in - -L*) path=$deplib ;; - *.la) - func_resolve_sysroot "$deplib" - deplib=$func_resolve_sysroot_result - func_dirname "$deplib" "" "." - dir=$func_dirname_result - # We need an absolute path. - case $dir in - [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;; - *) - absdir=`cd "$dir" && pwd` - if test -z "$absdir"; then - func_warning "cannot determine absolute directory name of '$dir'" - absdir=$dir - fi - ;; - esac - if $GREP "^installed=no" $deplib > /dev/null; then - case $host in - *-*-darwin*) - depdepl= - eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib` - if test -n "$deplibrary_names"; then - for tmp in $deplibrary_names; do - depdepl=$tmp - done - if test -f "$absdir/$objdir/$depdepl"; then - depdepl=$absdir/$objdir/$depdepl - darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` - if test -z "$darwin_install_name"; then - darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` - fi - func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl" - func_append linker_flags " -dylib_file $darwin_install_name:$depdepl" - path= - fi - fi - ;; - *) - path=-L$absdir/$objdir - ;; - esac - else - eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` - test -z "$libdir" && \ - func_fatal_error "'$deplib' is not a valid libtool archive" - test "$absdir" != "$libdir" && \ - func_warning "'$deplib' seems to be moved" - - path=-L$absdir - fi - ;; - esac - case " $deplibs " in - *" $path "*) ;; - *) deplibs="$path $deplibs" ;; - esac - done - fi # link_all_deplibs != no - fi # linkmode = lib - done # for deplib in $libs - if test link = "$pass"; then - if test prog = "$linkmode"; then - compile_deplibs="$new_inherited_linker_flags $compile_deplibs" - finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs" - else - compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - fi - fi - dependency_libs=$newdependency_libs - if test dlpreopen = "$pass"; then - # Link the dlpreopened libraries before other libraries - for deplib in $save_deplibs; do - deplibs="$deplib $deplibs" - done - fi - if test dlopen != "$pass"; then - test conv = "$pass" || { - # Make sure lib_search_path contains only unique directories. - lib_search_path= - for dir in $newlib_search_path; do - case "$lib_search_path " in - *" $dir "*) ;; - *) func_append lib_search_path " $dir" ;; - esac - done - newlib_search_path= - } - - if test prog,link = "$linkmode,$pass"; then - vars="compile_deplibs finalize_deplibs" - else - vars=deplibs - fi - for var in $vars dependency_libs; do - # Add libraries to $var in reverse order - eval tmp_libs=\"\$$var\" - new_libs= - for deplib in $tmp_libs; do - # FIXME: Pedantically, this is the right thing to do, so - # that some nasty dependency loop isn't accidentally - # broken: - #new_libs="$deplib $new_libs" - # Pragmatically, this seems to cause very few problems in - # practice: - case $deplib in - -L*) new_libs="$deplib $new_libs" ;; - -R*) ;; - *) - # And here is the reason: when a library appears more - # than once as an explicit dependence of a library, or - # is implicitly linked in more than once by the - # compiler, it is considered special, and multiple - # occurrences thereof are not removed. Compare this - # with having the same library being listed as a - # dependency of multiple other libraries: in this case, - # we know (pedantically, we assume) the library does not - # need to be listed more than once, so we keep only the - # last copy. This is not always right, but it is rare - # enough that we require users that really mean to play - # such unportable linking tricks to link the library - # using -Wl,-lname, so that libtool does not consider it - # for duplicate removal. - case " $specialdeplibs " in - *" $deplib "*) new_libs="$deplib $new_libs" ;; - *) - case " $new_libs " in - *" $deplib "*) ;; - *) new_libs="$deplib $new_libs" ;; - esac - ;; - esac - ;; - esac - done - tmp_libs= - for deplib in $new_libs; do - case $deplib in - -L*) - case " $tmp_libs " in - *" $deplib "*) ;; - *) func_append tmp_libs " $deplib" ;; - esac - ;; - *) func_append tmp_libs " $deplib" ;; - esac - done - eval $var=\"$tmp_libs\" - done # for var - fi - - # Add Sun CC postdeps if required: - test CXX = "$tagname" && { - case $host_os in - linux*) - case `$CC -V 2>&1 | $SED 5q` in - *Sun\ C*) # Sun C++ 5.9 - func_suncc_cstd_abi - - if test no != "$suncc_use_cstd_abi"; then - func_append postdeps ' -library=Cstd -library=Crun' - fi - ;; - esac - ;; - - solaris*) - func_cc_basename "$CC" - case $func_cc_basename_result in - CC* | sunCC*) - func_suncc_cstd_abi - - if test no != "$suncc_use_cstd_abi"; then - func_append postdeps ' -library=Cstd -library=Crun' - fi - ;; - esac - ;; - esac - } - - # Last step: remove runtime libs from dependency_libs - # (they stay in deplibs) - tmp_libs= - for i in $dependency_libs; do - case " $predeps $postdeps $compiler_lib_search_path " in - *" $i "*) - i= - ;; - esac - if test -n "$i"; then - func_append tmp_libs " $i" - fi - done - dependency_libs=$tmp_libs - done # for pass - if test prog = "$linkmode"; then - dlfiles=$newdlfiles - fi - if test prog = "$linkmode" || test lib = "$linkmode"; then - dlprefiles=$newdlprefiles - fi - - case $linkmode in - oldlib) - if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then - func_warning "'-dlopen' is ignored for archives" - fi - - case " $deplibs" in - *\ -l* | *\ -L*) - func_warning "'-l' and '-L' are ignored for archives" ;; - esac - - test -n "$rpath" && \ - func_warning "'-rpath' is ignored for archives" - - test -n "$xrpath" && \ - func_warning "'-R' is ignored for archives" - - test -n "$vinfo" && \ - func_warning "'-version-info/-version-number' is ignored for archives" - - test -n "$release" && \ - func_warning "'-release' is ignored for archives" - - test -n "$export_symbols$export_symbols_regex" && \ - func_warning "'-export-symbols' is ignored for archives" - - # Now set the variables for building old libraries. - build_libtool_libs=no - oldlibs=$output - func_append objs "$old_deplibs" - ;; - - lib) - # Make sure we only generate libraries of the form 'libNAME.la'. - case $outputname in - lib*) - func_stripname 'lib' '.la' "$outputname" - name=$func_stripname_result - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - ;; - *) - test no = "$module" \ - && func_fatal_help "libtool library '$output' must begin with 'lib'" - - if test no != "$need_lib_prefix"; then - # Add the "lib" prefix for modules if required - func_stripname '' '.la' "$outputname" - name=$func_stripname_result - eval shared_ext=\"$shrext_cmds\" - eval libname=\"$libname_spec\" - else - func_stripname '' '.la' "$outputname" - libname=$func_stripname_result - fi - ;; - esac - - if test -n "$objs"; then - if test pass_all != "$deplibs_check_method"; then - func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs" - else - echo - $ECHO "*** Warning: Linking the shared library $output against the non-libtool" - $ECHO "*** objects $objs is not portable!" - func_append libobjs " $objs" - fi - fi - - test no = "$dlself" \ - || func_warning "'-dlopen self' is ignored for libtool libraries" - - set dummy $rpath - shift - test 1 -lt "$#" \ - && func_warning "ignoring multiple '-rpath's for a libtool library" - - install_libdir=$1 - - oldlibs= - if test -z "$rpath"; then - if test yes = "$build_libtool_libs"; then - # Building a libtool convenience library. - # Some compilers have problems with a '.al' extension so - # convenience libraries should have the same extension an - # archive normally would. - oldlibs="$output_objdir/$libname.$libext $oldlibs" - build_libtool_libs=convenience - build_old_libs=yes - fi - - test -n "$vinfo" && \ - func_warning "'-version-info/-version-number' is ignored for convenience libraries" - - test -n "$release" && \ - func_warning "'-release' is ignored for convenience libraries" - else - - # Parse the version information argument. - save_ifs=$IFS; IFS=: - set dummy $vinfo 0 0 0 - shift - IFS=$save_ifs - - test -n "$7" && \ - func_fatal_help "too many parameters to '-version-info'" - - # convert absolute version numbers to libtool ages - # this retains compatibility with .la files and attempts - # to make the code below a bit more comprehensible - - case $vinfo_number in - yes) - number_major=$1 - number_minor=$2 - number_revision=$3 - # - # There are really only two kinds -- those that - # use the current revision as the major version - # and those that subtract age and use age as - # a minor version. But, then there is irix - # that has an extra 1 added just for fun - # - case $version_type in - # correct linux to gnu/linux during the next big refactor - darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none) - func_arith $number_major + $number_minor - current=$func_arith_result - age=$number_minor - revision=$number_revision - ;; - freebsd-aout|qnx|sunos) - current=$number_major - revision=$number_minor - age=0 - ;; - irix|nonstopux) - func_arith $number_major + $number_minor - current=$func_arith_result - age=$number_minor - revision=$number_minor - lt_irix_increment=no - ;; - esac - ;; - no) - current=$1 - revision=$2 - age=$3 - ;; - esac - - # Check that each of the things are valid numbers. - case $current in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "CURRENT '$current' must be a nonnegative integer" - func_fatal_error "'$vinfo' is not valid version information" - ;; - esac - - case $revision in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "REVISION '$revision' must be a nonnegative integer" - func_fatal_error "'$vinfo' is not valid version information" - ;; - esac - - case $age in - 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;; - *) - func_error "AGE '$age' must be a nonnegative integer" - func_fatal_error "'$vinfo' is not valid version information" - ;; - esac - - if test "$age" -gt "$current"; then - func_error "AGE '$age' is greater than the current interface number '$current'" - func_fatal_error "'$vinfo' is not valid version information" - fi - - # Calculate the version variables. - major= - versuffix= - verstring= - case $version_type in - none) ;; - - darwin) - # Like Linux, but with the current version available in - # verstring for coding it into the library header - func_arith $current - $age - major=.$func_arith_result - versuffix=$major.$age.$revision - # Darwin ld doesn't like 0 for these options... - func_arith $current + 1 - minor_current=$func_arith_result - xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" - # On Darwin other compilers - case $CC in - nagfor*) - verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision" - ;; - *) - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" - ;; - esac - ;; - - freebsd-aout) - major=.$current - versuffix=.$current.$revision - ;; - - freebsd-elf | midnightbsd-elf) - func_arith $current - $age - major=.$func_arith_result - versuffix=$major.$age.$revision - ;; - - irix | nonstopux) - if test no = "$lt_irix_increment"; then - func_arith $current - $age - else - func_arith $current - $age + 1 - fi - major=$func_arith_result - - case $version_type in - nonstopux) verstring_prefix=nonstopux ;; - *) verstring_prefix=sgi ;; - esac - verstring=$verstring_prefix$major.$revision - - # Add in all the interfaces that we are compatible with. - loop=$revision - while test 0 -ne "$loop"; do - func_arith $revision - $loop - iface=$func_arith_result - func_arith $loop - 1 - loop=$func_arith_result - verstring=$verstring_prefix$major.$iface:$verstring - done - - # Before this point, $major must not contain '.'. - major=.$major - versuffix=$major.$revision - ;; - - linux) # correct to gnu/linux during the next big refactor - func_arith $current - $age - major=.$func_arith_result - versuffix=$major.$age.$revision - ;; - - osf) - func_arith $current - $age - major=.$func_arith_result - versuffix=.$current.$age.$revision - verstring=$current.$age.$revision - - # Add in all the interfaces that we are compatible with. - loop=$age - while test 0 -ne "$loop"; do - func_arith $current - $loop - iface=$func_arith_result - func_arith $loop - 1 - loop=$func_arith_result - verstring=$verstring:$iface.0 - done - - # Make executables depend on our current version. - func_append verstring ":$current.0" - ;; - - qnx) - major=.$current - versuffix=.$current - ;; - - sco) - major=.$current - versuffix=.$current - ;; - - sunos) - major=.$current - versuffix=.$current.$revision - ;; - - windows) - # Use '-' rather than '.', since we only want one - # extension on DOS 8.3 file systems. - func_arith $current - $age - major=$func_arith_result - versuffix=-$major - ;; - - *) - func_fatal_configuration "unknown library version type '$version_type'" - ;; - esac - - # Clear the version info if we defaulted, and they specified a release. - if test -z "$vinfo" && test -n "$release"; then - major= - case $version_type in - darwin) - # we can't check for "0.0" in archive_cmds due to quoting - # problems, so we reset it completely - verstring= - ;; - *) - verstring=0.0 - ;; - esac - if test no = "$need_version"; then - versuffix= - else - versuffix=.0.0 - fi - fi - - # Remove version info from name if versioning should be avoided - if test yes,no = "$avoid_version,$need_version"; then - major= - versuffix= - verstring= - fi - - # Check to see if the archive will have undefined symbols. - if test yes = "$allow_undefined"; then - if test unsupported = "$allow_undefined_flag"; then - if test yes = "$build_old_libs"; then - func_warning "undefined symbols not allowed in $host shared libraries; building static only" - build_libtool_libs=no - else - func_fatal_error "can't build $host shared library unless -no-undefined is specified" - fi - fi - else - # Don't allow undefined symbols. - allow_undefined_flag=$no_undefined_flag - fi - - fi - - func_generate_dlsyms "$libname" "$libname" : - func_append libobjs " $symfileobj" - test " " = "$libobjs" && libobjs= - - if test relink != "$opt_mode"; then - # Remove our outputs, but don't remove object files since they - # may have been created when compiling PIC objects. - removelist= - tempremovelist=`$ECHO "$output_objdir/*"` - for p in $tempremovelist; do - case $p in - *.$objext | *.gcno) - ;; - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*) - if test -n "$precious_files_regex"; then - if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 - then - continue - fi - fi - func_append removelist " $p" - ;; - *) ;; - esac - done - test -n "$removelist" && \ - func_show_eval "${RM}r \$removelist" - fi - - # Now set the variables for building old libraries. - if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then - func_append oldlibs " $output_objdir/$libname.$libext" - - # Transform .lo files to .o files. - oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP` - fi - - # Eliminate all temporary directories. - #for path in $notinst_path; do - # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"` - # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"` - # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"` - #done - - if test -n "$xrpath"; then - # If the user specified any rpath flags, then add them. - temp_xrpath= - for libdir in $xrpath; do - func_replace_sysroot "$libdir" - func_append temp_xrpath " -R$func_replace_sysroot_result" - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - done - if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then - dependency_libs="$temp_xrpath $dependency_libs" - fi - fi - - # Make sure dlfiles contains only unique files that won't be dlpreopened - old_dlfiles=$dlfiles - dlfiles= - for lib in $old_dlfiles; do - case " $dlprefiles $dlfiles " in - *" $lib "*) ;; - *) func_append dlfiles " $lib" ;; - esac - done - - # Make sure dlprefiles contains only unique files - old_dlprefiles=$dlprefiles - dlprefiles= - for lib in $old_dlprefiles; do - case "$dlprefiles " in - *" $lib "*) ;; - *) func_append dlprefiles " $lib" ;; - esac - done - - if test yes = "$build_libtool_libs"; then - if test -n "$rpath"; then - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*) - # these systems don't actually have a c library (as such)! - ;; - *-*-rhapsody* | *-*-darwin1.[012]) - # Rhapsody C library is in the System framework - func_append deplibs " System.ltframework" - ;; - *-*-netbsd*) - # Don't link with libc until the a.out ld.so is fixed. - ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*) - # Do not include libc due to us having libc/libc_r. - ;; - *-*-sco3.2v5* | *-*-sco5v6*) - # Causes problems with __ctype - ;; - *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) - # Compiler inserts libc in the correct place for threads to work - ;; - *) - # Add libc to deplibs on all other systems if necessary. - if test yes = "$build_libtool_need_lc"; then - func_append deplibs " -lc" - fi - ;; - esac - fi - - # Transform deplibs into only deplibs that can be linked in shared. - name_save=$name - libname_save=$libname - release_save=$release - versuffix_save=$versuffix - major_save=$major - # I'm not sure if I'm treating the release correctly. I think - # release should show up in the -l (ie -lgmp5) so we don't want to - # add it in twice. Is that correct? - release= - versuffix= - major= - newdeplibs= - droppeddeps=no - case $deplibs_check_method in - pass_all) - # Don't check for shared/static. Everything works. - # This might be a little naive. We might want to check - # whether the library exists or not. But this is on - # osf3 & osf4 and I'm not really sure... Just - # implementing what was already the behavior. - newdeplibs=$deplibs - ;; - test_compile) - # This code stresses the "libraries are programs" paradigm to its - # limits. Maybe even breaks it. We compile a program, linking it - # against the deplibs as a proxy for the library. Then we can check - # whether they linked in statically or dynamically with ldd. - $opt_dry_run || $RM conftest.c - cat > conftest.c </dev/null` - $nocaseglob - else - potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` - fi - for potent_lib in $potential_libs; do - # Follow soft links. - if ls -lLd "$potent_lib" 2>/dev/null | - $GREP " -> " >/dev/null; then - continue - fi - # The statement above tries to avoid entering an - # endless loop below, in case of cyclic links. - # We might still enter an endless loop, since a link - # loop can be closed while we follow links, - # but so what? - potlib=$potent_lib - while test -h "$potlib" 2>/dev/null; do - potliblink=`ls -ld $potlib | $SED 's/.* -> //'` - case $potliblink in - [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;; - *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";; - esac - done - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | - $SED -e 10q | - $EGREP "$file_magic_regex" > /dev/null; then - func_append newdeplibs " $a_deplib" - a_deplib= - break 2 - fi - done - done - fi - if test -n "$a_deplib"; then - droppeddeps=yes - echo - $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib"; then - $ECHO "*** with $libname but no candidates were found. (...for file magic test)" - else - $ECHO "*** with $libname and none of the candidates passed a file format test" - $ECHO "*** using a file magic. Last file checked: $potlib" - fi - fi - ;; - *) - # Add a -L argument. - func_append newdeplibs " $a_deplib" - ;; - esac - done # Gone through all deplibs. - ;; - match_pattern*) - set dummy $deplibs_check_method; shift - match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"` - for a_deplib in $deplibs; do - case $a_deplib in - -l*) - func_stripname -l '' "$a_deplib" - name=$func_stripname_result - if test yes = "$allow_libtool_libs_with_static_runtimes"; then - case " $predeps $postdeps " in - *" $a_deplib "*) - func_append newdeplibs " $a_deplib" - a_deplib= - ;; - esac - fi - if test -n "$a_deplib"; then - libname=`eval "\\$ECHO \"$libname_spec\""` - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do - potential_libs=`ls $i/$libname[.-]* 2>/dev/null` - for potent_lib in $potential_libs; do - potlib=$potent_lib # see symlink-check above in file_magic test - if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ - $EGREP "$match_pattern_regex" > /dev/null; then - func_append newdeplibs " $a_deplib" - a_deplib= - break 2 - fi - done - done - fi - if test -n "$a_deplib"; then - droppeddeps=yes - echo - $ECHO "*** Warning: linker path does not have real file for library $a_deplib." - echo "*** I have the capability to make that library automatically link in when" - echo "*** you link to this library. But I can only do this if you have a" - echo "*** shared version of the library, which you do not appear to have" - echo "*** because I did check the linker path looking for a file starting" - if test -z "$potlib"; then - $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)" - else - $ECHO "*** with $libname and none of the candidates passed a file format test" - $ECHO "*** using a regex pattern. Last file checked: $potlib" - fi - fi - ;; - *) - # Add a -L argument. - func_append newdeplibs " $a_deplib" - ;; - esac - done # Gone through all deplibs. - ;; - none | unknown | *) - newdeplibs= - tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'` - if test yes = "$allow_libtool_libs_with_static_runtimes"; then - for i in $predeps $postdeps; do - # can't use Xsed below, because $i might contain '/' - tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"` - done - fi - case $tmp_deplibs in - *[!\ \ ]*) - echo - if test none = "$deplibs_check_method"; then - echo "*** Warning: inter-library dependencies are not supported in this platform." - else - echo "*** Warning: inter-library dependencies are not known to be supported." - fi - echo "*** All declared inter-library dependencies are being dropped." - droppeddeps=yes - ;; - esac - ;; - esac - versuffix=$versuffix_save - major=$major_save - release=$release_save - libname=$libname_save - name=$name_save - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library with the System framework - newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'` - ;; - esac - - if test yes = "$droppeddeps"; then - if test yes = "$module"; then - echo - echo "*** Warning: libtool could not satisfy all declared inter-library" - $ECHO "*** dependencies of module $libname. Therefore, libtool will create" - echo "*** a static module, that should work as long as the dlopening" - echo "*** application is linked with the -dlopen flag." - if test -z "$global_symbol_pipe"; then - echo - echo "*** However, this would only work if libtool was able to extract symbol" - echo "*** lists from a program, using 'nm' or equivalent, but libtool could" - echo "*** not find such a program. So, this module is probably useless." - echo "*** 'nm' from GNU binutils and a full rebuild may help." - fi - if test no = "$build_old_libs"; then - oldlibs=$output_objdir/$libname.$libext - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - else - echo "*** The inter-library dependencies that have been dropped here will be" - echo "*** automatically added whenever a program is linked with this library" - echo "*** or is declared to -dlopen it." - - if test no = "$allow_undefined"; then - echo - echo "*** Since this library must not contain undefined symbols," - echo "*** because either the platform does not support them or" - echo "*** it was explicitly requested with -no-undefined," - echo "*** libtool will only create a static version of it." - if test no = "$build_old_libs"; then - oldlibs=$output_objdir/$libname.$libext - build_libtool_libs=module - build_old_libs=yes - else - build_libtool_libs=no - fi - fi - fi - fi - # Done checking deplibs! - deplibs=$newdeplibs - fi - # Time to change all our "foo.ltframework" stuff back to "-framework foo" - case $host in - *-*-darwin*) - newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - ;; - esac - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $deplibs " in - *" -L$path/$objdir "*) - func_append new_libs " -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) func_append new_libs " $deplib" ;; - esac - ;; - *) func_append new_libs " $deplib" ;; - esac - done - deplibs=$new_libs - - # All the library-specific variables (install_libdir is set above). - library_names= - old_library= - dlname= - - # Test again, we may have decided not to build it any more - if test yes = "$build_libtool_libs"; then - # Remove $wl instances when linking with ld. - # FIXME: should test the right _cmds variable. - case $archive_cmds in - *\$LD\ *) wl= ;; - esac - if test yes = "$hardcode_into_libs"; then - # Hardcode the library paths - hardcode_libdirs= - dep_rpath= - rpath=$finalize_rpath - test relink = "$opt_mode" || rpath=$compile_rpath$rpath - for libdir in $rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - func_replace_sysroot "$libdir" - libdir=$func_replace_sysroot_result - if test -z "$hardcode_libdirs"; then - hardcode_libdirs=$libdir - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - func_append dep_rpath " $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) func_append perm_rpath " $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir=$hardcode_libdirs - eval "dep_rpath=\"$hardcode_libdir_flag_spec\"" - fi - if test -n "$runpath_var" && test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - func_append rpath "$dir:" - done - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" - fi - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" - fi - - shlibpath=$finalize_shlibpath - test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath - if test -n "$shlibpath"; then - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" - fi - - # Get the real and link names of the library. - eval shared_ext=\"$shrext_cmds\" - eval library_names=\"$library_names_spec\" - set dummy $library_names - shift - realname=$1 - shift - - if test -n "$soname_spec"; then - eval soname=\"$soname_spec\" - else - soname=$realname - fi - if test -z "$dlname"; then - dlname=$soname - fi - - lib=$output_objdir/$realname - linknames= - for link - do - func_append linknames " $link" - done - - # Use standard objects if they are pic - test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP` - test "X$libobjs" = "X " && libobjs= - - delfiles= - if test -n "$export_symbols" && test -n "$include_expsyms"; then - $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" - export_symbols=$output_objdir/$libname.uexp - func_append delfiles " $export_symbols" - fi - - orig_export_symbols= - case $host_os in - cygwin* | mingw* | cegcc*) - if test -n "$export_symbols" && test -z "$export_symbols_regex"; then - # exporting using user supplied symfile - func_dll_def_p "$export_symbols" || { - # and it's NOT already a .def file. Must figure out - # which of the given symbols are data symbols and tag - # them as such. So, trigger use of export_symbols_cmds. - # export_symbols gets reassigned inside the "prepare - # the list of exported symbols" if statement, so the - # include_expsyms logic still works. - orig_export_symbols=$export_symbols - export_symbols= - always_export_symbols=yes - } - fi - ;; - esac - - # Prepare the list of exported symbols - if test -z "$export_symbols"; then - if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then - func_verbose "generating symbol list for '$libname.la'" - export_symbols=$output_objdir/$libname.exp - $opt_dry_run || $RM $export_symbols - cmds=$export_symbols_cmds - save_ifs=$IFS; IFS='~' - for cmd1 in $cmds; do - IFS=$save_ifs - # Take the normal branch if the nm_file_list_spec branch - # doesn't work or if tool conversion is not needed. - case $nm_file_list_spec~$to_tool_file_cmd in - *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) - try_normal_branch=yes - eval cmd=\"$cmd1\" - func_len " $cmd" - len=$func_len_result - ;; - *) - try_normal_branch=no - ;; - esac - if test yes = "$try_normal_branch" \ - && { test "$len" -lt "$max_cmd_len" \ - || test "$max_cmd_len" -le -1; } - then - func_show_eval "$cmd" 'exit $?' - skipped_export=false - elif test -n "$nm_file_list_spec"; then - func_basename "$output" - output_la=$func_basename_result - save_libobjs=$libobjs - save_output=$output - output=$output_objdir/$output_la.nm - func_to_tool_file "$output" - libobjs=$nm_file_list_spec$func_to_tool_file_result - func_append delfiles " $output" - func_verbose "creating $NM input file list: $output" - for obj in $save_libobjs; do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" - done > "$output" - eval cmd=\"$cmd1\" - func_show_eval "$cmd" 'exit $?' - output=$save_output - libobjs=$save_libobjs - skipped_export=false - else - # The command line is too long to execute in one step. - func_verbose "using reloadable object file for export list..." - skipped_export=: - # Break out early, otherwise skipped_export may be - # set to false by a later but shorter cmd. - break - fi - done - IFS=$save_ifs - if test -n "$export_symbols_regex" && test : != "$skipped_export"; then - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - func_show_eval '$MV "${export_symbols}T" "$export_symbols"' - fi - fi - fi - - if test -n "$export_symbols" && test -n "$include_expsyms"; then - tmp_export_symbols=$export_symbols - test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols - $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' - fi - - if test : != "$skipped_export" && test -n "$orig_export_symbols"; then - # The given exports_symbols file has to be filtered, so filter it. - func_verbose "filter symbol list for '$libname.la' to tag DATA exports" - # FIXME: $output_objdir/$libname.filter potentially contains lots of - # 's' commands, which not all seds can handle. GNU sed should be fine - # though. Also, the filter scales superlinearly with the number of - # global variables. join(1) would be nice here, but unfortunately - # isn't a blessed tool. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - func_append delfiles " $export_symbols $output_objdir/$libname.filter" - export_symbols=$output_objdir/$libname.def - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols - fi - - tmp_deplibs= - for test_deplib in $deplibs; do - case " $convenience " in - *" $test_deplib "*) ;; - *) - func_append tmp_deplibs " $test_deplib" - ;; - esac - done - deplibs=$tmp_deplibs - - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec" && - test yes = "$compiler_needs_object" && - test -z "$libobjs"; then - # extract the archives, so we have objects to list. - # TODO: could optimize this to just extract one archive. - whole_archive_flag_spec= - fi - if test -n "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - test "X$libobjs" = "X " && libobjs= - else - gentop=$output_objdir/${outputname}x - func_append generated " $gentop" - - func_extract_archives $gentop $convenience - func_append libobjs " $func_extract_archives_result" - test "X$libobjs" = "X " && libobjs= - fi - fi - - if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then - eval flag=\"$thread_safe_flag_spec\" - func_append linker_flags " $flag" - fi - - # Make a backup of the uninstalled library when relinking - if test relink = "$opt_mode"; then - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? - fi - - # Do each of the archive commands. - if test yes = "$module" && test -n "$module_cmds"; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - eval test_cmds=\"$module_expsym_cmds\" - cmds=$module_expsym_cmds - else - eval test_cmds=\"$module_cmds\" - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - eval test_cmds=\"$archive_expsym_cmds\" - cmds=$archive_expsym_cmds - else - eval test_cmds=\"$archive_cmds\" - cmds=$archive_cmds - fi - fi - - if test : != "$skipped_export" && - func_len " $test_cmds" && - len=$func_len_result && - test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - : - else - # The command line is too long to link in one step, link piecewise - # or, if using GNU ld and skipped_export is not :, use a linker - # script. - - # Save the value of $output and $libobjs because we want to - # use them later. If we have whole_archive_flag_spec, we - # want to use save_libobjs as it was before - # whole_archive_flag_spec was expanded, because we can't - # assume the linker understands whole_archive_flag_spec. - # This may have to be revisited, in case too many - # convenience libraries get linked in and end up exceeding - # the spec. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then - save_libobjs=$libobjs - fi - save_output=$output - func_basename "$output" - output_la=$func_basename_result - - # Clear the reloadable object creation command queue and - # initialize k to one. - test_cmds= - concat_cmds= - objlist= - last_robj= - k=1 - - if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then - output=$output_objdir/$output_la.lnkscript - func_verbose "creating GNU ld script: $output" - echo 'INPUT (' > $output - for obj in $save_libobjs - do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" >> $output - done - echo ')' >> $output - func_append delfiles " $output" - func_to_tool_file "$output" - output=$func_to_tool_file_result - elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then - output=$output_objdir/$output_la.lnk - func_verbose "creating linker input file list: $output" - : > $output - set x $save_libobjs - shift - firstobj= - if test yes = "$compiler_needs_object"; then - firstobj="$1 " - shift - fi - for obj - do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" >> $output - done - func_append delfiles " $output" - func_to_tool_file "$output" - output=$firstobj\"$file_list_spec$func_to_tool_file_result\" - else - if test -n "$save_libobjs"; then - func_verbose "creating reloadable object files..." - output=$output_objdir/$output_la-$k.$objext - eval test_cmds=\"$reload_cmds\" - func_len " $test_cmds" - len0=$func_len_result - len=$len0 - - # Loop over the list of objects to be linked. - for obj in $save_libobjs - do - func_len " $obj" - func_arith $len + $func_len_result - len=$func_arith_result - if test -z "$objlist" || - test "$len" -lt "$max_cmd_len"; then - func_append objlist " $obj" - else - # The command $test_cmds is almost too long, add a - # command to the queue. - if test 1 -eq "$k"; then - # The first file doesn't have a previous command to add. - reload_objs=$objlist - eval concat_cmds=\"$reload_cmds\" - else - # All subsequent reloadable object files will link in - # the last one created. - reload_objs="$objlist $last_robj" - eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\" - fi - last_robj=$output_objdir/$output_la-$k.$objext - func_arith $k + 1 - k=$func_arith_result - output=$output_objdir/$output_la-$k.$objext - objlist=" $obj" - func_len " $last_robj" - func_arith $len0 + $func_len_result - len=$func_arith_result - fi - done - # Handle the remaining objects by creating one last - # reloadable object file. All subsequent reloadable object - # files will link in the last one created. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - reload_objs="$objlist $last_robj" - eval concat_cmds=\"\$concat_cmds$reload_cmds\" - if test -n "$last_robj"; then - eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" - fi - func_append delfiles " $output" - - else - output= - fi - - ${skipped_export-false} && { - func_verbose "generating symbol list for '$libname.la'" - export_symbols=$output_objdir/$libname.exp - $opt_dry_run || $RM $export_symbols - libobjs=$output - # Append the command to create the export file. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\" - if test -n "$last_robj"; then - eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\" - fi - } - - test -n "$save_libobjs" && - func_verbose "creating a temporary reloadable object file: $output" - - # Loop through the commands generated above and execute them. - save_ifs=$IFS; IFS='~' - for cmd in $concat_cmds; do - IFS=$save_ifs - $opt_quiet || { - func_quote_arg expand,pretty "$cmd" - eval "func_echo $func_quote_arg_result" - } - $opt_dry_run || eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test relink = "$opt_mode"; then - ( cd "$output_objdir" && \ - $RM "${realname}T" && \ - $MV "${realname}U" "$realname" ) - fi - - exit $lt_exit - } - done - IFS=$save_ifs - - if test -n "$export_symbols_regex" && ${skipped_export-false}; then - func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' - func_show_eval '$MV "${export_symbols}T" "$export_symbols"' - fi - fi - - ${skipped_export-false} && { - if test -n "$export_symbols" && test -n "$include_expsyms"; then - tmp_export_symbols=$export_symbols - test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols - $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"' - fi - - if test -n "$orig_export_symbols"; then - # The given exports_symbols file has to be filtered, so filter it. - func_verbose "filter symbol list for '$libname.la' to tag DATA exports" - # FIXME: $output_objdir/$libname.filter potentially contains lots of - # 's' commands, which not all seds can handle. GNU sed should be fine - # though. Also, the filter scales superlinearly with the number of - # global variables. join(1) would be nice here, but unfortunately - # isn't a blessed tool. - $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter - func_append delfiles " $export_symbols $output_objdir/$libname.filter" - export_symbols=$output_objdir/$libname.def - $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols - fi - } - - libobjs=$output - # Restore the value of output. - output=$save_output - - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then - eval libobjs=\"\$libobjs $whole_archive_flag_spec\" - test "X$libobjs" = "X " && libobjs= - fi - # Expand the library linking commands again to reset the - # value of $libobjs for piecewise linking. - - # Do each of the archive commands. - if test yes = "$module" && test -n "$module_cmds"; then - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then - cmds=$module_expsym_cmds - else - cmds=$module_cmds - fi - else - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then - cmds=$archive_expsym_cmds - else - cmds=$archive_cmds - fi - fi - fi - - if test -n "$delfiles"; then - # Append the command to remove temporary files to $cmds. - eval cmds=\"\$cmds~\$RM $delfiles\" - fi - - # Add any objects from preloaded convenience libraries - if test -n "$dlprefiles"; then - gentop=$output_objdir/${outputname}x - func_append generated " $gentop" - - func_extract_archives $gentop $dlprefiles - func_append libobjs " $func_extract_archives_result" - test "X$libobjs" = "X " && libobjs= - fi - - save_ifs=$IFS; IFS='~' - for cmd in $cmds; do - IFS=$sp$nl - eval cmd=\"$cmd\" - IFS=$save_ifs - $opt_quiet || { - func_quote_arg expand,pretty "$cmd" - eval "func_echo $func_quote_arg_result" - } - $opt_dry_run || eval "$cmd" || { - lt_exit=$? - - # Restore the uninstalled library and exit - if test relink = "$opt_mode"; then - ( cd "$output_objdir" && \ - $RM "${realname}T" && \ - $MV "${realname}U" "$realname" ) - fi - - exit $lt_exit - } - done - IFS=$save_ifs - - # Restore the uninstalled library and exit - if test relink = "$opt_mode"; then - $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? - - if test -n "$convenience"; then - if test -z "$whole_archive_flag_spec"; then - func_show_eval '${RM}r "$gentop"' - fi - fi - - exit $EXIT_SUCCESS - fi - - # Create links to the real library. - for linkname in $linknames; do - if test "$realname" != "$linkname"; then - func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?' - fi - done - - # If -module or -export-dynamic was specified, set the dlname. - if test yes = "$module" || test yes = "$export_dynamic"; then - # On all known operating systems, these are identical. - dlname=$soname - fi - fi - ;; - - obj) - if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then - func_warning "'-dlopen' is ignored for objects" - fi - - case " $deplibs" in - *\ -l* | *\ -L*) - func_warning "'-l' and '-L' are ignored for objects" ;; - esac - - test -n "$rpath" && \ - func_warning "'-rpath' is ignored for objects" - - test -n "$xrpath" && \ - func_warning "'-R' is ignored for objects" - - test -n "$vinfo" && \ - func_warning "'-version-info' is ignored for objects" - - test -n "$release" && \ - func_warning "'-release' is ignored for objects" - - case $output in - *.lo) - test -n "$objs$old_deplibs" && \ - func_fatal_error "cannot build library object '$output' from non-libtool objects" - - libobj=$output - func_lo2o "$libobj" - obj=$func_lo2o_result - ;; - *) - libobj= - obj=$output - ;; - esac - - # Delete the old objects. - $opt_dry_run || $RM $obj $libobj - - # Objects from convenience libraries. This assumes - # single-version convenience libraries. Whenever we create - # different ones for PIC/non-PIC, this we'll have to duplicate - # the extraction. - reload_conv_objs= - gentop= - # if reload_cmds runs $LD directly, get rid of -Wl from - # whole_archive_flag_spec and hope we can get by with turning comma - # into space. - case $reload_cmds in - *\$LD[\ \$]*) wl= ;; - esac - if test -n "$convenience"; then - if test -n "$whole_archive_flag_spec"; then - eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\" - test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` - reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags - else - gentop=$output_objdir/${obj}x - func_append generated " $gentop" - - func_extract_archives $gentop $convenience - reload_conv_objs="$reload_objs $func_extract_archives_result" - fi - fi - - # If we're not building shared, we need to use non_pic_objs - test yes = "$build_libtool_libs" || libobjs=$non_pic_objects - - # Create the old-style object. - reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs - - output=$obj - func_execute_cmds "$reload_cmds" 'exit $?' - - # Exit if we aren't doing a library object file. - if test -z "$libobj"; then - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - exit $EXIT_SUCCESS - fi - - test yes = "$build_libtool_libs" || { - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - # Create an invalid libtool object if no PIC, so that we don't - # accidentally link it into a program. - # $show "echo timestamp > $libobj" - # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? - exit $EXIT_SUCCESS - } - - if test -n "$pic_flag" || test default != "$pic_mode"; then - # Only do commands if we really have different PIC objects. - reload_objs="$libobjs $reload_conv_objs" - output=$libobj - func_execute_cmds "$reload_cmds" 'exit $?' - fi - - if test -n "$gentop"; then - func_show_eval '${RM}r "$gentop"' - fi - - exit $EXIT_SUCCESS - ;; - - prog) - case $host in - *cygwin*) func_stripname '' '.exe' "$output" - output=$func_stripname_result.exe;; - esac - test -n "$vinfo" && \ - func_warning "'-version-info' is ignored for programs" - - test -n "$release" && \ - func_warning "'-release' is ignored for programs" - - $preload \ - && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \ - && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support." - - case $host in - *-*-rhapsody* | *-*-darwin1.[012]) - # On Rhapsody replace the C library is the System framework - compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'` - finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'` - ;; - esac - - case $host in - *-*-darwin*) - # Don't allow lazy linking, it breaks C++ global constructors - # But is supposedly fixed on 10.4 or later (yay!). - if test CXX = "$tagname"; then - case ${MACOSX_DEPLOYMENT_TARGET-10.0} in - 10.[0123]) - func_append compile_command " $wl-bind_at_load" - func_append finalize_command " $wl-bind_at_load" - ;; - esac - fi - # Time to change all our "foo.ltframework" stuff back to "-framework foo" - compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'` - ;; - esac - - - # move library search paths that coincide with paths to not yet - # installed libraries to the beginning of the library search list - new_libs= - for path in $notinst_path; do - case " $new_libs " in - *" -L$path/$objdir "*) ;; - *) - case " $compile_deplibs " in - *" -L$path/$objdir "*) - func_append new_libs " -L$path/$objdir" ;; - esac - ;; - esac - done - for deplib in $compile_deplibs; do - case $deplib in - -L*) - case " $new_libs " in - *" $deplib "*) ;; - *) func_append new_libs " $deplib" ;; - esac - ;; - *) func_append new_libs " $deplib" ;; - esac - done - compile_deplibs=$new_libs - - - func_append compile_command " $compile_deplibs" - func_append finalize_command " $finalize_deplibs" - - if test -n "$rpath$xrpath"; then - # If the user specified any rpath flags, then add them. - for libdir in $rpath $xrpath; do - # This is the magic to use -rpath. - case "$finalize_rpath " in - *" $libdir "*) ;; - *) func_append finalize_rpath " $libdir" ;; - esac - done - fi - - # Now hardcode the library paths - rpath= - hardcode_libdirs= - for libdir in $compile_rpath $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs=$libdir - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - func_append rpath " $flag" - fi - elif test -n "$runpath_var"; then - case "$perm_rpath " in - *" $libdir "*) ;; - *) func_append perm_rpath " $libdir" ;; - esac - fi - case $host in - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) - testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'` - case :$dllsearchpath: in - *":$libdir:"*) ;; - ::) dllsearchpath=$libdir;; - *) func_append dllsearchpath ":$libdir";; - esac - case :$dllsearchpath: in - *":$testbindir:"*) ;; - ::) dllsearchpath=$testbindir;; - *) func_append dllsearchpath ":$testbindir";; - esac - ;; - esac - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir=$hardcode_libdirs - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - compile_rpath=$rpath - - rpath= - hardcode_libdirs= - for libdir in $finalize_rpath; do - if test -n "$hardcode_libdir_flag_spec"; then - if test -n "$hardcode_libdir_separator"; then - if test -z "$hardcode_libdirs"; then - hardcode_libdirs=$libdir - else - # Just accumulate the unique libdirs. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) - ;; - *) - func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" - ;; - esac - fi - else - eval flag=\"$hardcode_libdir_flag_spec\" - func_append rpath " $flag" - fi - elif test -n "$runpath_var"; then - case "$finalize_perm_rpath " in - *" $libdir "*) ;; - *) func_append finalize_perm_rpath " $libdir" ;; - esac - fi - done - # Substitute the hardcoded libdirs into the rpath. - if test -n "$hardcode_libdir_separator" && - test -n "$hardcode_libdirs"; then - libdir=$hardcode_libdirs - eval rpath=\" $hardcode_libdir_flag_spec\" - fi - finalize_rpath=$rpath - - if test -n "$libobjs" && test yes = "$build_old_libs"; then - # Transform all the library objects into standard objects. - compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP` - finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP` - fi - - func_generate_dlsyms "$outputname" "@PROGRAM@" false - - # template prelinking step - if test -n "$prelink_cmds"; then - func_execute_cmds "$prelink_cmds" 'exit $?' - fi - - wrappers_required=: - case $host in - *cegcc* | *mingw32ce*) - # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway. - wrappers_required=false - ;; - *cygwin* | *mingw* ) - test yes = "$build_libtool_libs" || wrappers_required=false - ;; - *) - if test no = "$need_relink" || test yes != "$build_libtool_libs"; then - wrappers_required=false - fi - ;; - esac - $wrappers_required || { - # Replace the output file specification. - compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'` - link_command=$compile_command$compile_rpath - - # We have no uninstalled library dependencies, so finalize right now. - exit_status=0 - func_show_eval "$link_command" 'exit_status=$?' - - if test -n "$postlink_cmds"; then - func_to_tool_file "$output" - postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` - func_execute_cmds "$postlink_cmds" 'exit $?' - fi - - # Delete the generated files. - if test -f "$output_objdir/${outputname}S.$objext"; then - func_show_eval '$RM "$output_objdir/${outputname}S.$objext"' - fi - - exit $exit_status - } - - if test -n "$compile_shlibpath$finalize_shlibpath"; then - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" - fi - if test -n "$finalize_shlibpath"; then - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" - fi - - compile_var= - finalize_var= - if test -n "$runpath_var"; then - if test -n "$perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $perm_rpath; do - func_append rpath "$dir:" - done - compile_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - if test -n "$finalize_perm_rpath"; then - # We should set the runpath_var. - rpath= - for dir in $finalize_perm_rpath; do - func_append rpath "$dir:" - done - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " - fi - fi - - if test yes = "$no_install"; then - # We don't need to create a wrapper script. - link_command=$compile_var$compile_command$compile_rpath - # Replace the output file specification. - link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'` - # Delete the old output file. - $opt_dry_run || $RM $output - # Link the executable and exit - func_show_eval "$link_command" 'exit $?' - - if test -n "$postlink_cmds"; then - func_to_tool_file "$output" - postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` - func_execute_cmds "$postlink_cmds" 'exit $?' - fi - - exit $EXIT_SUCCESS - fi - - case $hardcode_action,$fast_install in - relink,*) - # Fast installation is not supported - link_command=$compile_var$compile_command$compile_rpath - relink_command=$finalize_var$finalize_command$finalize_rpath - - func_warning "this platform does not like uninstalled shared libraries" - func_warning "'$output' will be relinked during installation" - ;; - *,yes) - link_command=$finalize_var$compile_command$finalize_rpath - relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'` - ;; - *,no) - link_command=$compile_var$compile_command$compile_rpath - relink_command=$finalize_var$finalize_command$finalize_rpath - ;; - *,needless) - link_command=$finalize_var$compile_command$finalize_rpath - relink_command= - ;; - esac - - # Replace the output file specification. - link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` - - # Delete the old output files. - $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname - - func_show_eval "$link_command" 'exit $?' - - if test -n "$postlink_cmds"; then - func_to_tool_file "$output_objdir/$outputname" - postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` - func_execute_cmds "$postlink_cmds" 'exit $?' - fi - - # Now create the wrapper script. - func_verbose "creating $output" - - # Quote the relink command for shipping. - if test -n "$relink_command"; then - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - func_quote_arg pretty "$var_value" - relink_command="$var=$func_quote_arg_result; export $var; $relink_command" - fi - done - func_quote eval cd "`pwd`" - func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)" - relink_command=$func_quote_arg_unquoted_result - fi - - # Only actually do things if not in dry run mode. - $opt_dry_run || { - # win32 will think the script is a binary if it has - # a .exe suffix, so we strip it off here. - case $output in - *.exe) func_stripname '' '.exe' "$output" - output=$func_stripname_result ;; - esac - # test for cygwin because mv fails w/o .exe extensions - case $host in - *cygwin*) - exeext=.exe - func_stripname '' '.exe' "$outputname" - outputname=$func_stripname_result ;; - *) exeext= ;; - esac - case $host in - *cygwin* | *mingw* ) - func_dirname_and_basename "$output" "" "." - output_name=$func_basename_result - output_path=$func_dirname_result - cwrappersource=$output_path/$objdir/lt-$output_name.c - cwrapper=$output_path/$output_name.exe - $RM $cwrappersource $cwrapper - trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 - - func_emit_cwrapperexe_src > $cwrappersource - - # The wrapper executable is built using the $host compiler, - # because it contains $host paths and files. If cross- - # compiling, it, like the target executable, must be - # executed on the $host or under an emulation environment. - $opt_dry_run || { - $LTCC $LTCFLAGS -o $cwrapper $cwrappersource - $STRIP $cwrapper - } - - # Now, create the wrapper script for func_source use: - func_ltwrapper_scriptname $cwrapper - $RM $func_ltwrapper_scriptname_result - trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15 - $opt_dry_run || { - # note: this script will not be executed, so do not chmod. - if test "x$build" = "x$host"; then - $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result - else - func_emit_wrapper no > $func_ltwrapper_scriptname_result - fi - } - ;; - * ) - $RM $output - trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 - - func_emit_wrapper no > $output - chmod +x $output - ;; - esac - } - exit $EXIT_SUCCESS - ;; - esac - - # See if we need to build an old-fashioned archive. - for oldlib in $oldlibs; do - - case $build_libtool_libs in - convenience) - oldobjs="$libobjs_save $symfileobj" - addlibs=$convenience - build_libtool_libs=no - ;; - module) - oldobjs=$libobjs_save - addlibs=$old_convenience - build_libtool_libs=no - ;; - *) - oldobjs="$old_deplibs $non_pic_objects" - $preload && test -f "$symfileobj" \ - && func_append oldobjs " $symfileobj" - addlibs=$old_convenience - ;; - esac - - if test -n "$addlibs"; then - gentop=$output_objdir/${outputname}x - func_append generated " $gentop" - - func_extract_archives $gentop $addlibs - func_append oldobjs " $func_extract_archives_result" - fi - - # Do each command in the archive commands. - if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then - cmds=$old_archive_from_new_cmds - else - - # Add any objects from preloaded convenience libraries - if test -n "$dlprefiles"; then - gentop=$output_objdir/${outputname}x - func_append generated " $gentop" - - func_extract_archives $gentop $dlprefiles - func_append oldobjs " $func_extract_archives_result" - fi - - # POSIX demands no paths to be encoded in archives. We have - # to avoid creating archives with duplicate basenames if we - # might have to extract them afterwards, e.g., when creating a - # static archive out of a convenience library, or when linking - # the entirety of a libtool archive into another (currently - # not supported by libtool). - if (for obj in $oldobjs - do - func_basename "$obj" - $ECHO "$func_basename_result" - done | sort | sort -uc >/dev/null 2>&1); then - : - else - echo "copying selected object files to avoid basename conflicts..." - gentop=$output_objdir/${outputname}x - func_append generated " $gentop" - func_mkdir_p "$gentop" - save_oldobjs=$oldobjs - oldobjs= - counter=1 - for obj in $save_oldobjs - do - func_basename "$obj" - objbase=$func_basename_result - case " $oldobjs " in - " ") oldobjs=$obj ;; - *[\ /]"$objbase "*) - while :; do - # Make sure we don't pick an alternate name that also - # overlaps. - newobj=lt$counter-$objbase - func_arith $counter + 1 - counter=$func_arith_result - case " $oldobjs " in - *[\ /]"$newobj "*) ;; - *) if test ! -f "$gentop/$newobj"; then break; fi ;; - esac - done - func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" - func_append oldobjs " $gentop/$newobj" - ;; - *) func_append oldobjs " $obj" ;; - esac - done - fi - func_to_tool_file "$oldlib" func_convert_file_msys_to_w32 - tool_oldlib=$func_to_tool_file_result - eval cmds=\"$old_archive_cmds\" - - func_len " $cmds" - len=$func_len_result - if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then - cmds=$old_archive_cmds - elif test -n "$archiver_list_spec"; then - func_verbose "using command file archive linking..." - for obj in $oldobjs - do - func_to_tool_file "$obj" - $ECHO "$func_to_tool_file_result" - done > $output_objdir/$libname.libcmd - func_to_tool_file "$output_objdir/$libname.libcmd" - oldobjs=" $archiver_list_spec$func_to_tool_file_result" - cmds=$old_archive_cmds - else - # the command line is too long to link in one step, link in parts - func_verbose "using piecewise archive linking..." - save_RANLIB=$RANLIB - RANLIB=: - objlist= - concat_cmds= - save_oldobjs=$oldobjs - oldobjs= - # Is there a better way of finding the last object in the list? - for obj in $save_oldobjs - do - last_oldobj=$obj - done - eval test_cmds=\"$old_archive_cmds\" - func_len " $test_cmds" - len0=$func_len_result - len=$len0 - for obj in $save_oldobjs - do - func_len " $obj" - func_arith $len + $func_len_result - len=$func_arith_result - func_append objlist " $obj" - if test "$len" -lt "$max_cmd_len"; then - : - else - # the above command should be used before it gets too long - oldobjs=$objlist - if test "$obj" = "$last_oldobj"; then - RANLIB=$save_RANLIB - fi - test -z "$concat_cmds" || concat_cmds=$concat_cmds~ - eval concat_cmds=\"\$concat_cmds$old_archive_cmds\" - objlist= - len=$len0 - fi - done - RANLIB=$save_RANLIB - oldobjs=$objlist - if test -z "$oldobjs"; then - eval cmds=\"\$concat_cmds\" - else - eval cmds=\"\$concat_cmds~\$old_archive_cmds\" - fi - fi - fi - func_execute_cmds "$cmds" 'exit $?' - done - - test -n "$generated" && \ - func_show_eval "${RM}r$generated" - - # Now create the libtool archive. - case $output in - *.la) - old_library= - test yes = "$build_old_libs" && old_library=$libname.$libext - func_verbose "creating $output" - - # Preserve any variables that may affect compiler behavior - for var in $variables_saved_for_relink; do - if eval test -z \"\${$var+set}\"; then - relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command" - elif eval var_value=\$$var; test -z "$var_value"; then - relink_command="$var=; export $var; $relink_command" - else - func_quote_arg pretty,unquoted "$var_value" - relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command" - fi - done - # Quote the link command for shipping. - func_quote eval cd "`pwd`" - relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - func_quote_arg pretty,unquoted "$relink_command" - relink_command=$func_quote_arg_unquoted_result - if test yes = "$hardcode_automatic"; then - relink_command= - fi - - # Only create the output if not a dry run. - $opt_dry_run || { - for installed in no yes; do - if test yes = "$installed"; then - if test -z "$install_libdir"; then - break - fi - output=$output_objdir/${outputname}i - # Replace all uninstalled libtool libraries with the installed ones - newdependency_libs= - for deplib in $dependency_libs; do - case $deplib in - *.la) - func_basename "$deplib" - name=$func_basename_result - func_resolve_sysroot "$deplib" - eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result` - test -z "$libdir" && \ - func_fatal_error "'$deplib' is not a valid libtool archive" - func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" - ;; - -L*) - func_stripname -L '' "$deplib" - func_replace_sysroot "$func_stripname_result" - func_append newdependency_libs " -L$func_replace_sysroot_result" - ;; - -R*) - func_stripname -R '' "$deplib" - func_replace_sysroot "$func_stripname_result" - func_append newdependency_libs " -R$func_replace_sysroot_result" - ;; - *) func_append newdependency_libs " $deplib" ;; - esac - done - dependency_libs=$newdependency_libs - newdlfiles= - - for lib in $dlfiles; do - case $lib in - *.la) - func_basename "$lib" - name=$func_basename_result - eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - test -z "$libdir" && \ - func_fatal_error "'$lib' is not a valid libtool archive" - func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" - ;; - *) func_append newdlfiles " $lib" ;; - esac - done - dlfiles=$newdlfiles - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - *.la) - # Only pass preopened files to the pseudo-archive (for - # eventual linking with the app. that links it) if we - # didn't already link the preopened objects directly into - # the library: - func_basename "$lib" - name=$func_basename_result - eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib` - test -z "$libdir" && \ - func_fatal_error "'$lib' is not a valid libtool archive" - func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" - ;; - esac - done - dlprefiles=$newdlprefiles - else - newdlfiles= - for lib in $dlfiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; - *) abs=`pwd`"/$lib" ;; - esac - func_append newdlfiles " $abs" - done - dlfiles=$newdlfiles - newdlprefiles= - for lib in $dlprefiles; do - case $lib in - [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;; - *) abs=`pwd`"/$lib" ;; - esac - func_append newdlprefiles " $abs" - done - dlprefiles=$newdlprefiles - fi - $RM $output - # place dlname in correct position for cygwin - # In fact, it would be nice if we could use this code for all target - # systems that can't hard-code library paths into their executables - # and that have no shared library path variable independent of PATH, - # but it turns out we can't easily determine that from inspecting - # libtool variables, so we have to hard-code the OSs to which it - # applies here; at the moment, that means platforms that use the PE - # object format with DLL files. See the long comment at the top of - # tests/bindir.at for full details. - tdlname=$dlname - case $host,$output,$installed,$module,$dlname in - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) - # If a -bindir argument was supplied, place the dll there. - if test -n "$bindir"; then - func_relative_path "$install_libdir" "$bindir" - tdlname=$func_relative_path_result/$dlname - else - # Otherwise fall back on heuristic. - tdlname=../bin/$dlname - fi - ;; - esac - $ECHO > $output "\ -# $outputname - a libtool library file -# Generated by $PROGRAM (GNU $PACKAGE) $VERSION -# -# Please DO NOT delete this file! -# It is necessary for linking the library. - -# The name that we can dlopen(3). -dlname='$tdlname' - -# Names of this library. -library_names='$library_names' - -# The name of the static archive. -old_library='$old_library' - -# Linker flags that cannot go in dependency_libs. -inherited_linker_flags='$new_inherited_linker_flags' - -# Libraries that this one depends upon. -dependency_libs='$dependency_libs' - -# Names of additional weak libraries provided by this library -weak_library_names='$weak_libs' - -# Version information for $libname. -current=$current -age=$age -revision=$revision - -# Is this an already installed library? -installed=$installed - -# Should we warn about portability when linking against -modules? -shouldnotlink=$module - -# Files to dlopen/dlpreopen -dlopen='$dlfiles' -dlpreopen='$dlprefiles' - -# Directory that this library needs to be installed in: -libdir='$install_libdir'" - if test no,yes = "$installed,$need_relink"; then - $ECHO >> $output "\ -relink_command=\"$relink_command\"" - fi - done - } - - # Do a symbolic link so that the libtool archive can be found in - # LD_LIBRARY_PATH before the program is installed. - func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?' - ;; - esac - exit $EXIT_SUCCESS -} - -if test link = "$opt_mode" || test relink = "$opt_mode"; then - func_mode_link ${1+"$@"} -fi - - -# func_mode_uninstall arg... -func_mode_uninstall () -{ - $debug_cmd - - RM=$nonopt - files= - rmforce=false - exit_status=0 - - # This variable tells wrapper scripts just to set variables rather - # than running their programs. - libtool_install_magic=$magic - - for arg - do - case $arg in - -f) func_append RM " $arg"; rmforce=: ;; - -*) func_append RM " $arg" ;; - *) func_append files " $arg" ;; - esac - done - - test -z "$RM" && \ - func_fatal_help "you must specify an RM program" - - rmdirs= - - for file in $files; do - func_dirname "$file" "" "." - dir=$func_dirname_result - if test . = "$dir"; then - odir=$objdir - else - odir=$dir/$objdir - fi - func_basename "$file" - name=$func_basename_result - test uninstall = "$opt_mode" && odir=$dir - - # Remember odir for removal later, being careful to avoid duplicates - if test clean = "$opt_mode"; then - case " $rmdirs " in - *" $odir "*) ;; - *) func_append rmdirs " $odir" ;; - esac - fi - - # Don't error if the file doesn't exist and rm -f was used. - if { test -L "$file"; } >/dev/null 2>&1 || - { test -h "$file"; } >/dev/null 2>&1 || - test -f "$file"; then - : - elif test -d "$file"; then - exit_status=1 - continue - elif $rmforce; then - continue - fi - - rmfiles=$file - - case $name in - *.la) - # Possibly a libtool archive, so verify it. - if func_lalib_p "$file"; then - func_source $dir/$name - - # Delete the libtool libraries and symlinks. - for n in $library_names; do - func_append rmfiles " $odir/$n" - done - test -n "$old_library" && func_append rmfiles " $odir/$old_library" - - case $opt_mode in - clean) - case " $library_names " in - *" $dlname "*) ;; - *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; - esac - test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" - ;; - uninstall) - if test -n "$library_names"; then - # Do each command in the postuninstall commands. - func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' - fi - - if test -n "$old_library"; then - # Do each command in the old_postuninstall commands. - func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' - fi - # FIXME: should reinstall the best remaining shared library. - ;; - esac - fi - ;; - - *.lo) - # Possibly a libtool object, so verify it. - if func_lalib_p "$file"; then - - # Read the .lo file - func_source $dir/$name - - # Add PIC object to the list of files to remove. - if test -n "$pic_object" && test none != "$pic_object"; then - func_append rmfiles " $dir/$pic_object" - fi - - # Add non-PIC object to the list of files to remove. - if test -n "$non_pic_object" && test none != "$non_pic_object"; then - func_append rmfiles " $dir/$non_pic_object" - fi - fi - ;; - - *) - if test clean = "$opt_mode"; then - noexename=$name - case $file in - *.exe) - func_stripname '' '.exe' "$file" - file=$func_stripname_result - func_stripname '' '.exe' "$name" - noexename=$func_stripname_result - # $file with .exe has already been added to rmfiles, - # add $file without .exe - func_append rmfiles " $file" - ;; - esac - # Do a test to see if this is a libtool program. - if func_ltwrapper_p "$file"; then - if func_ltwrapper_executable_p "$file"; then - func_ltwrapper_scriptname "$file" - relink_command= - func_source $func_ltwrapper_scriptname_result - func_append rmfiles " $func_ltwrapper_scriptname_result" - else - relink_command= - func_source $dir/$noexename - fi - - # note $name still contains .exe if it was in $file originally - # as does the version of $file that was added into $rmfiles - func_append rmfiles " $odir/$name $odir/${name}S.$objext" - if test yes = "$fast_install" && test -n "$relink_command"; then - func_append rmfiles " $odir/lt-$name" - fi - if test "X$noexename" != "X$name"; then - func_append rmfiles " $odir/lt-$noexename.c" - fi - fi - fi - ;; - esac - func_show_eval "$RM $rmfiles" 'exit_status=1' - done - - # Try to remove the $objdir's in the directories where we deleted files - for dir in $rmdirs; do - if test -d "$dir"; then - func_show_eval "rmdir $dir >/dev/null 2>&1" - fi - done - - exit $exit_status -} - -if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then - func_mode_uninstall ${1+"$@"} -fi - -test -z "$opt_mode" && { - help=$generic_help - func_fatal_help "you must specify a MODE" -} - -test -z "$exec_cmd" && \ - func_fatal_help "invalid operation mode '$opt_mode'" - -if test -n "$exec_cmd"; then - eval exec "$exec_cmd" - exit $EXIT_FAILURE -fi - -exit $exit_status - - -# The TAGs below are defined such that we never get into a situation -# where we disable both kinds of libraries. Given conflicting -# choices, we go for a static library, that is the most portable, -# since we can't tell whether shared libraries were disabled because -# the user asked for that or because the platform doesn't support -# them. This is particularly important on AIX, because we don't -# support having both static and shared libraries enabled at the same -# time on that platform, so we default to a shared-only configuration. -# If a disable-shared tag is given, we'll fallback to a static-only -# configuration. But we'll never go from static-only to shared-only. - -# ### BEGIN LIBTOOL TAG CONFIG: disable-shared -build_libtool_libs=no -build_old_libs=yes -# ### END LIBTOOL TAG CONFIG: disable-shared - -# ### BEGIN LIBTOOL TAG CONFIG: disable-static -build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac` -# ### END LIBTOOL TAG CONFIG: disable-static - -# Local Variables: -# mode:shell-script -# sh-indentation:2 -# End: diff --git a/recipes/wip/files/mc/source/config/missing b/recipes/wip/files/mc/source/config/missing deleted file mode 100755 index 1fe1611f18..0000000000 --- a/recipes/wip/files/mc/source/config/missing +++ /dev/null @@ -1,215 +0,0 @@ -#! /bin/sh -# Common wrapper for a few potentially missing GNU programs. - -scriptversion=2018-03-07.03; # UTC - -# Copyright (C) 1996-2021 Free Software Foundation, Inc. -# Originally written 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 - -case $1 in - - --is-lightweight) - # Used by our autoconf macros to check whether the available missing - # script is modern enough. - exit 0 - ;; - - --run) - # Back-compat with the calling convention used by older automake. - shift - ;; - - -h|--h|--he|--hel|--help) - echo "\ -$0 [OPTION]... PROGRAM [ARGUMENT]... - -Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due -to PROGRAM being missing or too old. - -Options: - -h, --help display this help and exit - -v, --version output version information and exit - -Supported PROGRAM values: - aclocal autoconf autoheader autom4te automake makeinfo - bison yacc flex lex help2man - -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 - -# Run the given program, remember its exit status. -"$@"; st=$? - -# If it succeeded, we are done. -test $st -eq 0 && exit 0 - -# Also exit now if we it failed (or wasn't found), and '--version' was -# passed; such an option is passed most likely to detect whether the -# program is present and works. -case $2 in --version|--help) exit $st;; esac - -# Exit code 63 means version mismatch. This often happens when the user -# tries to use an ancient version of a tool on a file that requires a -# minimum version. -if test $st -eq 63; then - msg="probably too old" -elif test $st -eq 127; then - # Program was missing. - msg="missing on your system" -else - # Program was found and executed, but failed. Give up. - exit $st -fi - -perl_URL=https://www.perl.org/ -flex_URL=https://github.com/westes/flex -gnu_software_URL=https://www.gnu.org/software - -program_details () -{ - case $1 in - aclocal|automake) - echo "The '$1' program is part of the GNU Automake package:" - echo "<$gnu_software_URL/automake>" - echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:" - echo "<$gnu_software_URL/autoconf>" - echo "<$gnu_software_URL/m4/>" - echo "<$perl_URL>" - ;; - autoconf|autom4te|autoheader) - echo "The '$1' program is part of the GNU Autoconf package:" - echo "<$gnu_software_URL/autoconf/>" - echo "It also requires GNU m4 and Perl in order to run:" - echo "<$gnu_software_URL/m4/>" - echo "<$perl_URL>" - ;; - esac -} - -give_advice () -{ - # Normalize program name to check for. - normalized_program=`echo "$1" | sed ' - s/^gnu-//; t - s/^gnu//; t - s/^g//; t'` - - printf '%s\n' "'$1' is $msg." - - configure_deps="'configure.ac' or m4 files included by 'configure.ac'" - case $normalized_program in - autoconf*) - echo "You should only need it if you modified 'configure.ac'," - echo "or m4 files included by it." - program_details 'autoconf' - ;; - autoheader*) - echo "You should only need it if you modified 'acconfig.h' or" - echo "$configure_deps." - program_details 'autoheader' - ;; - automake*) - echo "You should only need it if you modified 'Makefile.am' or" - echo "$configure_deps." - program_details 'automake' - ;; - aclocal*) - echo "You should only need it if you modified 'acinclude.m4' or" - echo "$configure_deps." - program_details 'aclocal' - ;; - autom4te*) - echo "You might have modified some maintainer files that require" - echo "the 'autom4te' program to be rebuilt." - program_details 'autom4te' - ;; - bison*|yacc*) - echo "You should only need it if you modified a '.y' file." - echo "You may want to install the GNU Bison package:" - echo "<$gnu_software_URL/bison/>" - ;; - lex*|flex*) - echo "You should only need it if you modified a '.l' file." - echo "You may want to install the Fast Lexical Analyzer package:" - echo "<$flex_URL>" - ;; - help2man*) - echo "You should only need it if you modified a dependency" \ - "of a man page." - echo "You may want to install the GNU Help2man package:" - echo "<$gnu_software_URL/help2man/>" - ;; - makeinfo*) - echo "You should only need it if you modified a '.texi' file, or" - echo "any other file indirectly affecting the aspect of the manual." - echo "You might want to install the Texinfo package:" - echo "<$gnu_software_URL/texinfo/>" - echo "The spurious makeinfo call might also be the consequence of" - echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might" - echo "want to install GNU make:" - echo "<$gnu_software_URL/make/>" - ;; - *) - echo "You might have modified some files without having the proper" - echo "tools for further handling them. Check the 'README' file, it" - echo "often tells you about the needed prerequisites for installing" - echo "this package. You may also peek at any GNU archive site, in" - echo "case some other package contains this missing '$1' program." - ;; - esac -} - -give_advice "$1" | sed -e '1s/^/WARNING: /' \ - -e '2,$s/^/ /' >&2 - -# Propagate the correct exit status (expected to be 127 for a program -# not found, 63 for a program that failed due to version mismatch). -exit $st - -# Local variables: -# eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC0" -# time-stamp-end: "; # UTC" -# End: diff --git a/recipes/wip/files/mc/source/config/test-driver b/recipes/wip/files/mc/source/config/test-driver deleted file mode 100755 index be73b80adf..0000000000 --- a/recipes/wip/files/mc/source/config/test-driver +++ /dev/null @@ -1,153 +0,0 @@ -#! /bin/sh -# test-driver - basic testsuite driver script. - -scriptversion=2018-03-07.03; # UTC - -# Copyright (C) 2011-2021 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. - -# This file is maintained in Automake, please report -# bugs to or send patches to -# . - -# Make unconditional expansion of undefined variables an error. This -# helps a lot in preventing typo-related bugs. -set -u - -usage_error () -{ - echo "$0: $*" >&2 - print_usage >&2 - exit 2 -} - -print_usage () -{ - cat <"$log_file" -"$@" >>"$log_file" 2>&1 -estatus=$? - -if test $enable_hard_errors = no && test $estatus -eq 99; then - tweaked_estatus=1 -else - tweaked_estatus=$estatus -fi - -case $tweaked_estatus:$expect_failure in - 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; - 0:*) col=$grn res=PASS recheck=no gcopy=no;; - 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; - 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; - *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; - *:*) col=$red res=FAIL recheck=yes gcopy=yes;; -esac - -# Report the test outcome and exit status in the logs, so that one can -# know whether the test passed or failed simply by looking at the '.log' -# file, without the need of also peaking into the corresponding '.trs' -# file (automake bug#11814). -echo "$res $test_name (exit status: $estatus)" >>"$log_file" - -# Report outcome to console. -echo "${col}${res}${std}: $test_name" - -# Register the test result, and other relevant metadata. -echo ":test-result: $res" > $trs_file -echo ":global-test-result: $res" >> $trs_file -echo ":recheck: $recheck" >> $trs_file -echo ":copy-in-global-log: $gcopy" >> $trs_file - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC0" -# time-stamp-end: "; # UTC" -# End: diff --git a/recipes/wip/files/mc/source/configure b/recipes/wip/files/mc/source/configure deleted file mode 100755 index e6740c692f..0000000000 --- a/recipes/wip/files/mc/source/configure +++ /dev/null @@ -1,34081 +0,0 @@ -#! /bin/sh -# Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.72 for GNU Midnight Commander 4.8.33-pre1-git. -# -# Report bugs to . -# -# -# Copyright (C) 1992-1996, 1998-2017, 2020-2023 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 ${ZSH_VERSION+y} && (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 e in #( - e) case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac ;; -esac -fi - - - -# Reset variables that may have inherited troublesome values from -# the environment. - -# IFS needs to be set, to space, tab, and newline, in precisely that order. -# (If _AS_PATH_WALK were called with IFS unset, it would have the -# side effect of setting IFS to empty, thus disabling word splitting.) -# Quoting is to prevent editors from complaining about space-tab. -as_nl=' -' -export as_nl -IFS=" "" $as_nl" - -PS1='$ ' -PS2='> ' -PS4='+ ' - -# Ensure predictable behavior from utilities with locale-dependent output. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# We cannot yet rely on "unset" to work, but we need these variables -# to be unset--not just set to an empty or harmless value--now, to -# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct -# also avoids known problems related to "unset" and subshell syntax -# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). -for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH -do eval test \${$as_var+y} \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done - -# Ensure that fds 0, 1, and 2 are open. -if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi -if (exec 3>&2) ; then :; else exec 2>/dev/null; fi - -# The user is always right. -if ${PATH_SEPARATOR+false} :; 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 - - -# 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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 - printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - - -# 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'. -printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 -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 \${ZSH_VERSION+y} && (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 e in #( - e) case \`(set -o) 2>/dev/null\` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac ;; -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 case e in #( - e) exitcode=1; echo positional parameters were not saved. ;; -esac -fi -test x\$exitcode = x0 || exit 1 -blah=\$(echo \$(echo blah)) -test x\"\$blah\" = xblah || exit 1 -test -x / || exit 1" - as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO - as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO - eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && - test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 - - test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO - ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO - PATH=/empty FPATH=/empty; export PATH FPATH - test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ - || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1" - if (eval "$as_required") 2>/dev/null -then : - as_have_required=yes -else case e in #( - e) as_have_required=no ;; -esac -fi - if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null -then : - -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null -then : - CONFIG_SHELL=$as_shell as_have_required=yes - if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null -then : - break 2 -fi -fi - done;; - esac - as_found=false -done -IFS=$as_save_IFS -if $as_found -then : - -else case e in #( - e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && - as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null -then : - CONFIG_SHELL=$SHELL as_have_required=yes -fi ;; -esac -fi - - - 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'. -printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 -exit 255 -fi - - if test x$as_have_required = xno -then : - printf "%s\n" "$0: This script requires a shell more modern than all" - printf "%s\n" "$0: the shells that I found on your system." - if test ${ZSH_VERSION+y} ; then - printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" - printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." - else - printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and -$0: https://www.midnight-commander.org/wiki/NewTicket about -$0: your system, including any error possibly output before -$0: this message. Then install a modern shell, or manually -$0: run the script under such a shell if you do have one." - fi - exit 1 -fi ;; -esac -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=`printf "%s\n" "$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 || -printf "%s\n" 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 case e in #( - e) as_fn_append () - { - eval $1=\$$1\$2 - } ;; -esac -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 case e in #( - e) as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } ;; -esac -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 - printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - printf "%s\n" "$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 || -printf "%s\n" 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 ' - t clear - :clear - 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" || - { printf "%s\n" "$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 -} - - -# Determine whether it's possible to make 'echo' print without a newline. -# These variables are no longer used directly by Autoconf, but are AC_SUBSTed -# for compatibility with existing Makefiles. -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 - -# For backward compatibility with old third-party macros, we provide -# the shell variables $as_echo and $as_echo_n. New code should use -# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. -as_echo='printf %s\n' -as_echo_n='printf %s' - -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_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" -as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated - -# Sed expression to map a string onto a valid variable name. -as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" -as_tr_sh="eval sed '$as_sed_sh'" # deprecated - -SHELL=${CONFIG_SHELL-/bin/sh} - - -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='GNU Midnight Commander' -PACKAGE_TARNAME='mc' -PACKAGE_VERSION='4.8.33-pre1-git' -PACKAGE_STRING='GNU Midnight Commander 4.8.33-pre1-git' -PACKAGE_BUGREPORT='https://www.midnight-commander.org/wiki/NewTicket' -PACKAGE_URL='https://www.midnight-commander.org/' - -ac_unique_file="src/main.c" -# Factoring default headers for most tests. -ac_includes_default="\ -#include -#ifdef HAVE_STDIO_H -# include -#endif -#ifdef HAVE_STDLIB_H -# include -#endif -#ifdef HAVE_STRING_H -# include -#endif -#ifdef HAVE_INTTYPES_H -# include -#endif -#ifdef HAVE_STDINT_H -# include -#endif -#ifdef HAVE_STRINGS_H -# include -#endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif -#ifdef HAVE_SYS_STAT_H -# include -#endif -#ifdef HAVE_UNISTD_H -# include -#endif" - -ac_header_c_list= -gt_needs= -enable_year2038=no -ac_subst_vars='am__EXEEXT_FALSE -am__EXEEXT_TRUE -LTLIBOBJS -HAVE_GMODULE_FALSE -HAVE_GMODULE_TRUE -CONS_SAVER_FALSE -CONS_SAVER_TRUE -CHARSET_FALSE -CHARSET_TRUE -USE_DIFF_FALSE -USE_DIFF_TRUE -USE_ASPELL_FALSE -USE_ASPELL_TRUE -USE_INTERNAL_EDIT_FALSE -USE_INTERNAL_EDIT_TRUE -USE_SCREEN_SLANG_FALSE -USE_SCREEN_SLANG_TRUE -USE_MAINTAINER_MODE_FALSE -USE_MAINTAINER_MODE_TRUE -USE_NLS_FALSE -USE_NLS_TRUE -MCLIBS -DOXYGEN_PAPER_SIZE -DX_COND_latex_FALSE -DX_COND_latex_TRUE -DX_COND_pdf_FALSE -DX_COND_pdf_TRUE -DX_PDFLATEX -DX_FLAG_pdf -DX_COND_ps_FALSE -DX_COND_ps_TRUE -DX_EGREP -DX_DVIPS -DX_MAKEINDEX -DX_LATEX -DX_FLAG_ps -DX_COND_html_FALSE -DX_COND_html_TRUE -DX_FLAG_html -DX_COND_chi_FALSE -DX_COND_chi_TRUE -DX_FLAG_chi -DX_COND_chm_FALSE -DX_COND_chm_TRUE -DX_HHC -DX_FLAG_chm -DX_COND_xml_FALSE -DX_COND_xml_TRUE -DX_FLAG_xml -DX_COND_rtf_FALSE -DX_COND_rtf_TRUE -DX_FLAG_rtf -DX_COND_man_FALSE -DX_COND_man_TRUE -DX_FLAG_man -DX_COND_dot_FALSE -DX_COND_dot_TRUE -DX_DOT -DX_FLAG_dot -DX_COND_doc_FALSE -DX_COND_doc_TRUE -DX_PERL -DX_DOXYGEN -DX_FLAG_doc -DX_ENV -DX_DOCDIR -DX_CONFIG -DX_PROJECT -DOC_LINGUAS -MAN_DATE -EXTFSHELPERSDIR -EXTHELPERSDIR -ENABLE_VFS_NET_FALSE -ENABLE_VFS_NET_TRUE -ENABLE_VFS_FALSE -ENABLE_VFS_TRUE -ENABLE_VFS_UNDELFS_FALSE -ENABLE_VFS_UNDELFS_TRUE -COM_ERR_LIBS -COM_ERR_CFLAGS -ENABLE_VFS_TAR_FALSE -ENABLE_VFS_TAR_TRUE -ENABLE_VFS_SFTP_FALSE -ENABLE_VFS_SFTP_TRUE -LIBSSH_LIBS -LIBSSH_CFLAGS -ENABLE_VFS_SFS_FALSE -ENABLE_VFS_SFS_TRUE -ENABLE_VFS_FTP_FALSE -ENABLE_VFS_FTP_TRUE -ENABLE_VFS_SHELL_FALSE -ENABLE_VFS_SHELL_TRUE -ENABLE_VFS_EXTFS_FALSE -ENABLE_VFS_EXTFS_TRUE -HAVE_ZIPINFO -UNZIP -ZIP -ENABLE_VFS_CPIO_FALSE -ENABLE_VFS_CPIO_TRUE -ENABLE_EXT2FS_ATTR_FALSE -ENABLE_EXT2FS_ATTR_TRUE -E2P_LIBS -E2P_CFLAGS -EXT2FS_LIBS -EXT2FS_CFLAGS -ENABLE_BACKGROUND_FALSE -ENABLE_BACKGROUND_TRUE -ENABLE_SUBSHELL_FALSE -ENABLE_SUBSHELL_TRUE -ENABLE_MCLIB_FALSE -ENABLE_MCLIB_TRUE -LIBMC_RELEASE -LIBMC_VERSION -RUBY -PYTHON -PERL_FOR_BUILD -PERL -ENCODING_CP866 -ENCODING_CP1251 -POSUB -LTLIBINTL -LIBINTL -INTLLIBS -LTLIBICONV -LIBICONV -INTL_MACOSX_LIBS -XGETTEXT_EXTRA_OPTIONS -MSGMERGE -XGETTEXT_015 -XGETTEXT -GMSGFMT_015 -MSGFMT_015 -GMSGFMT -MSGFMT -GETTEXT_MACRO_VERSION -USE_NLS -LIBOBJS -GL_GENERATE_STDCKDINT_H_FALSE -GL_GENERATE_STDCKDINT_H_TRUE -STDCKDINT_H -HAVE_TEXTMODE_X11_SUPPORT_FALSE -HAVE_TEXTMODE_X11_SUPPORT_TRUE -X_EXTRA_LIBS -X_LIBS -X_PRE_LIBS -X_CFLAGS -XMKMF -PCRE_CFLAGS -PCRE_LIBS -CPP -SLANG_LIBS -SLANG_CFLAGS -GMODULE_LIBS -GMODULE_CFLAGS -GLIB_LIBS -GLIB_CFLAGS -HAVE_TESTS_FALSE -HAVE_TESTS_TRUE -CHECK_LIBS -CHECK_CFLAGS -ac_ct_INDENT -INDENT -HAVE_FILECMD -MAN_FLAGS -MANDOC -HAVE_nroff -PKG_CONFIG_LIBDIR -PKG_CONFIG_PATH -PKG_CONFIG -LT_SYS_LIBRARY_PATH -OTOOL64 -OTOOL -LIPO -NMEDIT -DSYMUTIL -MANIFEST_TOOL -RANLIB -DLLTOOL -OBJDUMP -FILECMD -LN_S -NM -ac_ct_DUMPBIN -DUMPBIN -LD -FGREP -EGREP -GREP -SED -LIBTOOL -ac_ct_AR -AR -am__fastdepCC_FALSE -am__fastdepCC_TRUE -CCDEPMODE -am__nodep -AMDEPBACKSLASH -AMDEP_FALSE -AMDEP_TRUE -am__include -DEPDIR -OBJEXT -EXEEXT -ac_ct_CC -CPPFLAGS -LDFLAGS -CFLAGS -CC -host_os -host_vendor -host_cpu -host -build_os -build_vendor -build_cpu -build -MAINT -MAINTAINER_MODE_FALSE -MAINTAINER_MODE_TRUE -MAN_VERSION -AM_BACKSLASH -AM_DEFAULT_VERBOSITY -AM_DEFAULT_V -AM_V -CSCOPE -ETAGS -CTAGS -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 -runstatedir -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 -am__quote' -ac_subst_files='' -ac_user_opts=' -enable_option_checking -enable_silent_rules -enable_maintainer_mode -enable_dependency_tracking -enable_werror -enable_shared -enable_static -with_pic -enable_fast_install -with_aix_soname -with_gnu_ld -with_sysroot -enable_libtool_lock -enable_tests -with_glib_static -with_screen -with_ncurses_includes -with_ncurses_libs -with_search_engine -with_pcre -with_pcre2 -with_x -enable_largefile -enable_nls -enable_rpath -with_libiconv_prefix -with_libintl_prefix -enable_charset -with_gpm_mouse -enable_mclib -enable_assert -with_internal_edit -enable_aspell -with_diff_viewer -with_subshell -enable_background -enable_vfs -enable_vfs_cpio -enable_vfs_extfs -enable_vfs_shell -enable_vfs_ftp -enable_vfs_sfs -enable_vfs_sftp -enable_vfs_tar -enable_vfs_undelfs -enable_doxygen_doc -enable_doxygen_dot -enable_doxygen_man -enable_doxygen_rtf -enable_doxygen_xml -enable_doxygen_chm -enable_doxygen_chi -enable_doxygen_html -enable_doxygen_ps -enable_doxygen_pdf -enable_configure_args -enable_year2038 -' - ac_precious_vars='build_alias -host_alias -target_alias -CC -CFLAGS -LDFLAGS -LIBS -CPPFLAGS -LT_SYS_LIBRARY_PATH -PKG_CONFIG -PKG_CONFIG_PATH -PKG_CONFIG_LIBDIR -CHECK_CFLAGS -CHECK_LIBS -GLIB_CFLAGS -GLIB_LIBS -GMODULE_CFLAGS -GMODULE_LIBS -SLANG_CFLAGS -SLANG_LIBS -CPP -XMKMF -EXT2FS_CFLAGS -EXT2FS_LIBS -E2P_CFLAGS -E2P_LIBS -LIBSSH_CFLAGS -LIBSSH_LIBS -COM_ERR_CFLAGS -COM_ERR_LIBS -DOXYGEN_PAPER_SIZE' - - -# 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' -runstatedir='${localstatedir}/run' -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 - - 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=`printf "%s\n" "$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=`printf "%s\n" "$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 ;; - - -runstatedir | --runstatedir | --runstatedi | --runstated \ - | --runstate | --runstat | --runsta | --runst | --runs \ - | --run | --ru | --r) - ac_prev=runstatedir ;; - -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ - | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ - | --run=* | --ru=* | --r=*) - runstatedir=$ac_optarg ;; - - -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=`printf "%s\n" "$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=`printf "%s\n" "$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. - printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 - expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && - printf "%s\n" "$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" ;; - *) printf "%s\n" "$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 runstatedir -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 || -printf "%s\n" 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 GNU Midnight Commander 4.8.33-pre1-git 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] - --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] - --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/mc] - --htmldir=DIR html documentation [DOCDIR] - --dvidir=DIR dvi documentation [DOCDIR] - --pdfdir=DIR pdf documentation [DOCDIR] - --psdir=DIR ps documentation [DOCDIR] -_ACEOF - - cat <<\_ACEOF - -Program names: - --program-prefix=PREFIX prepend PREFIX to installed program names - --program-suffix=SUFFIX append SUFFIX to installed program names - --program-transform-name=PROGRAM run sed PROGRAM on installed program names - -X features: - --x-includes=DIR X include files are in DIR - --x-libraries=DIR X library files are in DIR - -System types: - --build=BUILD configure for building on BUILD [guessed] - --host=HOST cross-compile to build programs to run on HOST [BUILD] -_ACEOF -fi - -if test -n "$ac_init_help"; then - case $ac_init_help in - short | recursive ) echo "Configuration of GNU Midnight Commander 4.8.33-pre1-git:";; - 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-maintainer-mode - enable make rules and dependencies not useful (and - sometimes confusing) to the casual installer - --enable-dependency-tracking - do not reject slow dependency extractors - --disable-dependency-tracking - speeds up one-time build - --enable-werror Handle all compiler warnings as errors - --enable-shared[=PKGS] build shared libraries [default=yes] - --enable-static[=PKGS] build static libraries [default=yes] - --enable-fast-install[=PKGS] - optimize for fast installation [default=yes] - --disable-libtool-lock avoid locking (might break parallel builds) - --enable-tests Enable unit tests (see - http://libcheck.github.io/check/) [auto] - - --disable-largefile omit support for large files - --disable-nls do not use Native Language Support - --disable-rpath do not hardcode runtime library paths - --enable-charset Support for charset selection and conversion [yes] - --enable-mclib Compile shared library libmc.so [no] - --enable-assert turn on assertions [yes] - --enable-aspell[=prefix] - Enable aspell support for internal editor [no] and - optionally set path to aspell installation prefix - [default=/usr] - --enable-background Support for background file operations [yes] - --disable-vfs Disable VFS - --enable-vfs-cpio Support for cpio filesystem [yes] - --enable-vfs-extfs Support for extfs filesystem [yes] - --enable-vfs-shell Support for SHELL filesystem [yes] - --enable-vfs-ftp Support for FTP filesystem [yes] - --enable-vfs-sfs Support for sfs filesystem [yes] - --enable-vfs-sftp Support for SFTP filesystem [auto] - --enable-vfs-tar Support for tar filesystem [yes] - --enable-vfs-undelfs Support for ext2 undelete filesystem [no] - --disable-doxygen-doc don't generate any doxygen documentation - --disable-doxygen-dot don't generate graphics for doxygen documentation - --enable-doxygen-man generate doxygen manual pages - --enable-doxygen-rtf generate doxygen RTF documentation - --enable-doxygen-xml generate doxygen XML documentation - --enable-doxygen-chm generate doxygen compressed HTML help documentation - --enable-doxygen-chi generate doxygen separate compressed HTML help index - file - --disable-doxygen-html don't generate doxygen plain HTML documentation - --enable-doxygen-ps generate doxygen PostScript documentation - --enable-doxygen-pdf generate doxygen PDF documentation - --enable-configure-args Embed ./configure arguments into binaries - --enable-year2038 support timestamps after 2038 - -Optional Packages: - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) - --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use - both] - --with-aix-soname=aix|svr4|both - shared library versioning (aka "SONAME") variant to - provide on AIX, [default=aix]. - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-sysroot[=DIR] Search for dependent libraries within DIR (or the - compiler's sysroot if not specified). - --with-glib-static Link glib statically [no] - --with-screen=[LIB] Compile with screen library: slang or ncurses [slang - if found] - --with-ncurses-includes=[DIR] - set path to ncurses includes [default=/usr/include]; - make sense only if --with-screen=ncurses; for - /usr/local/include/ncurses specify - /usr/local/include - --with-ncurses-libs=[DIR] - set path to ncurses library [default=/usr/lib]; make - sense only if --with-screen=ncurses - --with-search-engine=type - Select low-level search engine [glib|pcre|pcre2] - - --with-pcre[=prefix] compile xmlpcre part (via libpcre check) - --with-pcre2=DIR root directory path of PCRE2 installation [defaults to - /usr/local or /usr if not found in /usr/local] - --without-pcre2 to disable PCRE2 usage completely - --with-x use the X Window System - --with-gnu-ld assume the C compiler uses GNU ld [default=no] - --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib - --without-libiconv-prefix don't search for libiconv in includedir and libdir - --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib - --without-libintl-prefix don't search for libintl in includedir and libdir - --with-gpm-mouse Compile with gpm mouse support (Linux only) [yes if - found] - --with-internal-edit Enable internal editor [yes] - --with-diff-viewer Compile with diff viewer [yes] - --with-subshell Compile in concurrent subshell [yes] - --with-subshell=optional Don't run concurrent shell by default [no] - -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 - LT_SYS_LIBRARY_PATH - User-defined run-time library search path. - PKG_CONFIG path to pkg-config utility - PKG_CONFIG_PATH - directories to add to pkg-config's search path - PKG_CONFIG_LIBDIR - path overriding pkg-config's built-in search path - CHECK_CFLAGS - C compiler flags for CHECK, overriding pkg-config - CHECK_LIBS linker flags for CHECK, overriding pkg-config - GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config - GLIB_LIBS linker flags for GLIB, overriding pkg-config - GMODULE_CFLAGS - C compiler flags for GMODULE, overriding pkg-config - GMODULE_LIBS - linker flags for GMODULE, overriding pkg-config - SLANG_CFLAGS - C compiler flags for SLANG, overriding pkg-config - SLANG_LIBS linker flags for SLANG, overriding pkg-config - CPP C preprocessor - XMKMF Path to xmkmf, Makefile generator for X Window System - EXT2FS_CFLAGS - C compiler flags for EXT2FS, overriding pkg-config - EXT2FS_LIBS linker flags for EXT2FS, overriding pkg-config - E2P_CFLAGS C compiler flags for E2P, overriding pkg-config - E2P_LIBS linker flags for E2P, overriding pkg-config - LIBSSH_CFLAGS - C compiler flags for LIBSSH, overriding pkg-config - LIBSSH_LIBS linker flags for LIBSSH, overriding pkg-config - COM_ERR_CFLAGS - C compiler flags for COM_ERR, overriding pkg-config - COM_ERR_LIBS - linker flags for COM_ERR, overriding pkg-config - DOXYGEN_PAPER_SIZE - a4wide (default), a4, letter, legal or executive - -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 . -GNU Midnight Commander home page: . -General help using GNU software: . -_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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`printf "%s\n" "$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 configure.gnu first; this name is used for a wrapper for - # Metaconfig's "Configure" on case-insensitive file systems. - 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 - printf "%s\n" "$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 -GNU Midnight Commander configure 4.8.33-pre1-git -generated by GNU Autoconf 2.72 - -Copyright (C) 2023 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 conftest.beam - 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\"" -printf "%s\n" "$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 - printf "%s\n" "$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 case e in #( - e) printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 ;; -esac -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_compile - -# ac_fn_c_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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -printf %s "checking for $2... " >&6; } -if eval test \${$3+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 case e in #( - e) eval "$3=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -eval ac_res=\$$3 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_header_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.beam 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\"" -printf "%s\n" "$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 - printf "%s\n" "$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 case e in #( - e) printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 ;; -esac -fi - # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information - # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would - # interfere with the next link command; also delete a directory that is - # left behind by Apple's compiler. We do this before executing the actions. - rm -rf conftest.dSYM conftest_ipa8_conftest.oo - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_link - -# ac_fn_c_check_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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -printf %s "checking for $2... " >&6; } -if eval test \${$3+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 (void); below. */ - -#include -#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 (void); -/* 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 (void) -{ -return $2 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - eval "$3=yes" -else case e in #( - e) eval "$3=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext ;; -esac -fi -eval ac_res=\$$3 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_func - -# 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 -printf %s "checking for $2... " >&6; } -if eval test \${$3+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) eval "$3=no" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main (void) -{ -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 (void) -{ -if (sizeof (($2))) - return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - -else case e in #( - e) eval "$3=yes" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -eval ac_res=\$$3 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_type - -# 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\"" -printf "%s\n" "$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 - printf "%s\n" "$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 case e in #( - e) printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 ;; -esac -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_cpp - -# ac_fn_c_try_run LINENO -# ---------------------- -# Try to run 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\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - printf "%s\n" "$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\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; } -then : - ac_retval=0 -else case e in #( - e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 - printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=$ac_status ;; -esac -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_compute_int LINENO EXPR VAR INCLUDES -# -------------------------------------------- -# Tries to find the compile-time value of EXPR in a program that includes -# INCLUDES, setting VAR accordingly. Returns whether the value could be -# computed -ac_fn_c_compute_int () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - if test "$cross_compiling" = yes; then - # Depending upon the size, compute the lo and hi bounds. -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main (void) -{ -static int test_array [1 - 2 * !(($2) >= 0)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_lo=0 ac_mid=0 - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main (void) -{ -static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_hi=$ac_mid; break -else case e in #( - e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val - if test $ac_lo -le $ac_mid; then - ac_lo= ac_hi= - break - fi - as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - done -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main (void) -{ -static int test_array [1 - 2 * !(($2) < 0)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_hi=-1 ac_mid=-1 - while :; do - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main (void) -{ -static int test_array [1 - 2 * !(($2) >= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_lo=$ac_mid; break -else case e in #( - e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val - if test $ac_mid -le $ac_hi; then - ac_lo= ac_hi= - break - fi - as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - done -else case e in #( - e) ac_lo= ac_hi= ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -# Binary search between lo and hi bounds. -while test "x$ac_lo" != "x$ac_hi"; do - as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main (void) -{ -static int test_array [1 - 2 * !(($2) <= $ac_mid)]; -test_array [0] = 0; -return test_array [0]; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_hi=$ac_mid -else case e in #( - e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -done -case $ac_lo in #(( -?*) eval "$3=\$ac_lo"; ac_retval=0 ;; -'') ac_retval=1 ;; -esac - else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -static long int longval (void) { return $2; } -static unsigned long int ulongval (void) { return $2; } -#include -#include -int -main (void) -{ - - FILE *f = fopen ("conftest.val", "w"); - if (! f) - return 1; - if (($2) < 0) - { - long int i = longval (); - if (i != ($2)) - return 1; - fprintf (f, "%ld", i); - } - else - { - unsigned long int i = ulongval (); - if (i != ($2)) - return 1; - fprintf (f, "%lu", i); - } - /* Do not output a trailing newline, as this causes \r\n confusion - on some platforms. */ - return ferror (f) || fclose (f) != 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_run "$LINENO" -then : - echo >>conftest.val; read $3 &5 -printf %s "checking for $2.$3... " >&6; } -if eval test \${$4+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$5 -int -main (void) -{ -static $2 ac_aggr; -if (ac_aggr.$3) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$4=yes" -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$5 -int -main (void) -{ -static $2 ac_aggr; -if (sizeof ac_aggr.$3) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$4=yes" -else case e in #( - e) eval "$4=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -eval ac_res=\$$4 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_c_check_member - -# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR -# ------------------------------------------------------------------ -# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR -# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. -ac_fn_check_decl () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - as_decl_name=`echo $2|sed 's/ *(.*//'` - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 -printf %s "checking whether $as_decl_name is declared... " >&6; } -if eval test \${$3+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` - eval ac_save_FLAGS=\$$6 - as_fn_append $6 " $5" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$4 -int -main (void) -{ -#ifndef $as_decl_name -#ifdef __cplusplus - (void) $as_decl_use; -#else - (void) $as_decl_name; -#endif -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$3=yes" -else case e in #( - e) eval "$3=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - eval $6=\$ac_save_FLAGS - ;; -esac -fi -eval ac_res=\$$3 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - -} # ac_fn_check_decl -ac_configure_args_raw= -for ac_arg -do - case $ac_arg in - *\'*) - ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; - esac - as_fn_append ac_configure_args_raw " '$ac_arg'" -done - -case $ac_configure_args_raw in - *$as_nl*) - ac_safe_unquote= ;; - *) - ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. - ac_unsafe_a="$ac_unsafe_z#~" - ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" - ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; -esac - -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 GNU Midnight Commander $as_me 4.8.33-pre1-git, which was -generated by GNU Autoconf 2.72. Invocation command line was - - $ $0$ac_configure_args_raw - -_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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - printf "%s\n" "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=`printf "%s\n" "$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=$? - # Sanitize IFS. - IFS=" "" $as_nl" - # Save into config.log some information that might help in debugging. - { - echo - - printf "%s\n" "## ---------------- ## -## 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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -printf "%s\n" "$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 - - printf "%s\n" "## ----------------- ## -## Output variables. ## -## ----------------- ##" - echo - for ac_var in $ac_subst_vars - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - printf "%s\n" "$ac_var='\''$ac_val'\''" - done | sort - echo - - if test -n "$ac_subst_files"; then - printf "%s\n" "## ------------------- ## -## File substitutions. ## -## ------------------- ##" - echo - for ac_var in $ac_subst_files - do - eval ac_val=\$$ac_var - case $ac_val in - *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; - esac - printf "%s\n" "$ac_var='\''$ac_val'\''" - done | sort - echo - fi - - if test -s confdefs.h; then - printf "%s\n" "## ----------- ## -## confdefs.h. ## -## ----------- ##" - echo - cat confdefs.h - echo - fi - test "$ac_signal" != 0 && - printf "%s\n" "$as_me: caught signal $ac_signal" - printf "%s\n" "$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 - -printf "%s\n" "/* confdefs.h */" > confdefs.h - -# Predefined preprocessor variables. - -printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h - -printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h - -printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h - -printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h - -printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h - -printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h - - -# Let the site file select an alternate cache file if it wants to. -# Prefer an explicitly selected file to automatically selected ones. -if test -n "$CONFIG_SITE"; then - ac_site_files="$CONFIG_SITE" -elif test "x$prefix" != xNONE; then - ac_site_files="$prefix/share/config.site $prefix/etc/config.site" -else - ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" -fi - -for ac_site_file in $ac_site_files -do - case $ac_site_file in #( - */*) : - ;; #( - *) : - ac_site_file=./$ac_site_file ;; -esac - if test -f "$ac_site_file" && test -r "$ac_site_file"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 -printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} - sed 's/^/| /' "$ac_site_file" >&5 - . "$ac_site_file" \ - || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 -printf "%s\n" "$as_me: loading cache $cache_file" >&6;} - case $cache_file in - [\\/]* | ?:[\\/]* ) . "$cache_file";; - *) . "./$cache_file";; - esac - fi -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 -printf "%s\n" "$as_me: creating cache $cache_file" >&6;} - >$cache_file -fi - -as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" -# Test code for whether the C compiler supports C89 (global declarations) -ac_c_conftest_c89_globals=' -/* Does the compiler advertise C89 conformance? - Do not test the value of __STDC__, because some compilers set it to 0 - while being otherwise adequately conformant. */ -#if !defined __STDC__ -# error "Compiler does not advertise C89 conformance" -#endif - -#include -#include -struct stat; -/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ -struct buf { int x; }; -struct buf * (*rcsopen) (struct buf *, struct stat *, int); -static char *e (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; -} - -/* C89 style stringification. */ -#define noexpand_stringify(a) #a -const char *stringified = noexpand_stringify(arbitrary+token=sequence); - -/* C89 style token pasting. Exercises some of the corner cases that - e.g. old MSVC gets wrong, but not very hard. */ -#define noexpand_concat(a,b) a##b -#define expand_concat(a,b) noexpand_concat(a,b) -extern int vA; -extern int vbee; -#define aye A -#define bee B -int *pvA = &expand_concat(v,aye); -int *pvbee = &noexpand_concat(v,bee); - -/* 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 do not provoke an error unfortunately, instead are silently treated - as an "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 is necessary to write \x00 == 0 to get something - that is 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 **, int *(*)(struct buf *, struct stat *, int), - int, int);' - -# Test code for whether the C compiler supports C89 (body of main). -ac_c_conftest_c89_main=' -ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); -' - -# Test code for whether the C compiler supports C99 (global declarations) -ac_c_conftest_c99_globals=' -/* Does the compiler advertise C99 conformance? */ -#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L -# error "Compiler does not advertise C99 conformance" -#endif - -// See if C++-style comments work. - -#include -extern int puts (const char *); -extern int printf (const char *, ...); -extern int dprintf (int, const char *, ...); -extern void *malloc (size_t); -extern void free (void *); - -// Check varargs macros. These examples are taken from C99 6.10.3.5. -// dprintf is used instead of fprintf to avoid needing to declare -// FILE and stderr. -#define debug(...) dprintf (2, __VA_ARGS__) -#define showlist(...) puts (#__VA_ARGS__) -#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) -static void -test_varargs_macros (void) -{ - int x = 1234; - int y = 5678; - debug ("Flag"); - debug ("X = %d\n", x); - showlist (The first, second, and third items.); - report (x>y, "x is %d but y is %d", x, y); -} - -// Check long long types. -#define BIG64 18446744073709551615ull -#define BIG32 4294967295ul -#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) -#if !BIG_OK - #error "your preprocessor is broken" -#endif -#if BIG_OK -#else - #error "your preprocessor is broken" -#endif -static long long int bignum = -9223372036854775807LL; -static unsigned long long int ubignum = BIG64; - -struct incomplete_array -{ - int datasize; - double data[]; -}; - -struct named_init { - int number; - const wchar_t *name; - double average; -}; - -typedef const char *ccp; - -static inline int -test_restrict (ccp restrict text) -{ - // Iterate through items via the restricted pointer. - // Also check for declarations in for loops. - for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) - continue; - return 0; -} - -// Check varargs and va_copy. -static bool -test_varargs (const char *format, ...) -{ - va_list args; - va_start (args, format); - va_list args_copy; - va_copy (args_copy, args); - - const char *str = ""; - int number = 0; - float fnumber = 0; - - while (*format) - { - switch (*format++) - { - case '\''s'\'': // string - str = va_arg (args_copy, const char *); - break; - case '\''d'\'': // int - number = va_arg (args_copy, int); - break; - case '\''f'\'': // float - fnumber = va_arg (args_copy, double); - break; - default: - break; - } - } - va_end (args_copy); - va_end (args); - - return *str && number && fnumber; -} -' - -# Test code for whether the C compiler supports C99 (body of main). -ac_c_conftest_c99_main=' - // Check bool. - _Bool success = false; - success |= (argc != 0); - - // Check restrict. - if (test_restrict ("String literal") == 0) - success = true; - char *restrict newvar = "Another string"; - - // Check varargs. - success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); - test_varargs_macros (); - - // Check flexible array members. - struct incomplete_array *ia = - malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); - ia->datasize = 10; - for (int i = 0; i < ia->datasize; ++i) - ia->data[i] = i * 1.234; - // Work around memory leak warnings. - free (ia); - - // Check named initializers. - struct named_init ni = { - .number = 34, - .name = L"Test wide string", - .average = 543.34343, - }; - - ni.number = 58; - - int dynamic_array[ni.number]; - dynamic_array[0] = argv[0][0]; - dynamic_array[ni.number - 1] = 543; - - // work around unused variable warnings - ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' - || dynamic_array[ni.number - 1] != 543); -' - -# Test code for whether the C compiler supports C11 (global declarations) -ac_c_conftest_c11_globals=' -/* Does the compiler advertise C11 conformance? */ -#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L -# error "Compiler does not advertise C11 conformance" -#endif - -// Check _Alignas. -char _Alignas (double) aligned_as_double; -char _Alignas (0) no_special_alignment; -extern char aligned_as_int; -char _Alignas (0) _Alignas (int) aligned_as_int; - -// Check _Alignof. -enum -{ - int_alignment = _Alignof (int), - int_array_alignment = _Alignof (int[100]), - char_alignment = _Alignof (char) -}; -_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); - -// Check _Noreturn. -int _Noreturn does_not_return (void) { for (;;) continue; } - -// Check _Static_assert. -struct test_static_assert -{ - int x; - _Static_assert (sizeof (int) <= sizeof (long int), - "_Static_assert does not work in struct"); - long int y; -}; - -// Check UTF-8 literals. -#define u8 syntax error! -char const utf8_literal[] = u8"happens to be ASCII" "another string"; - -// Check duplicate typedefs. -typedef long *long_ptr; -typedef long int *long_ptr; -typedef long_ptr long_ptr; - -// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. -struct anonymous -{ - union { - struct { int i; int j; }; - struct { int k; long int l; } w; - }; - int m; -} v1; -' - -# Test code for whether the C compiler supports C11 (body of main). -ac_c_conftest_c11_main=' - _Static_assert ((offsetof (struct anonymous, i) - == offsetof (struct anonymous, w.k)), - "Anonymous union alignment botch"); - v1.i = 2; - v1.w.k = 5; - ok |= v1.i != 5; -' - -# Test code for whether the C compiler supports C11 (complete). -ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} -${ac_c_conftest_c99_globals} -${ac_c_conftest_c11_globals} - -int -main (int argc, char **argv) -{ - int ok = 0; - ${ac_c_conftest_c89_main} - ${ac_c_conftest_c99_main} - ${ac_c_conftest_c11_main} - return ok; -} -" - -# Test code for whether the C compiler supports C99 (complete). -ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} -${ac_c_conftest_c99_globals} - -int -main (int argc, char **argv) -{ - int ok = 0; - ${ac_c_conftest_c89_main} - ${ac_c_conftest_c99_main} - return ok; -} -" - -# Test code for whether the C compiler supports C89 (complete). -ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} - -int -main (int argc, char **argv) -{ - int ok = 0; - ${ac_c_conftest_c89_main} - return ok; -} -" - -as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" -as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" -as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" -as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" -as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" -as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" -as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" -as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" -as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H" -as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H" -as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H" -as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" -as_fn_append ac_header_c_list " sys/statvfs.h sys_statvfs_h HAVE_SYS_STATVFS_H" -as_fn_append ac_header_c_list " sys/vfs.h sys_vfs_h HAVE_SYS_VFS_H" -as_fn_append ac_header_c_list " sys/fs_types.h sys_fs_types_h HAVE_SYS_FS_TYPES_H" -as_fn_append ac_header_c_list " OS.h OS_h HAVE_OS_H" -as_fn_append ac_header_c_list " netinet/in.h netinet_in_h HAVE_NETINET_IN_H" -gt_needs="$gt_needs need-ngettext" - -# Auxiliary files required by this configure script. -ac_aux_files="config.rpath ltmain.sh compile config.guess config.sub missing install-sh" - -# Locations in which to look for auxiliary files. -ac_aux_dir_candidates="${srcdir}/config" - -# Search for a directory containing all of the required auxiliary files, -# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. -# If we don't find one directory that contains all the files we need, -# we report the set of missing files from the *first* directory in -# $ac_aux_dir_candidates and give up. -ac_missing_aux_files="" -ac_first_candidate=: -printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -as_found=false -for as_dir in $ac_aux_dir_candidates -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - as_found=: - - printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 - ac_aux_dir_found=yes - ac_install_sh= - for ac_aux in $ac_aux_files - do - # As a special case, if "install-sh" is required, that requirement - # can be satisfied by any of "install-sh", "install.sh", or "shtool", - # and $ac_install_sh is set appropriately for whichever one is found. - if test x"$ac_aux" = x"install-sh" - then - if test -f "${as_dir}install-sh"; then - printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 - ac_install_sh="${as_dir}install-sh -c" - elif test -f "${as_dir}install.sh"; then - printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 - ac_install_sh="${as_dir}install.sh -c" - elif test -f "${as_dir}shtool"; then - printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 - ac_install_sh="${as_dir}shtool install -c" - else - ac_aux_dir_found=no - if $ac_first_candidate; then - ac_missing_aux_files="${ac_missing_aux_files} install-sh" - else - break - fi - fi - else - if test -f "${as_dir}${ac_aux}"; then - printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 - else - ac_aux_dir_found=no - if $ac_first_candidate; then - ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" - else - break - fi - fi - fi - done - if test "$ac_aux_dir_found" = yes; then - ac_aux_dir="$as_dir" - break - fi - ac_first_candidate=false - - as_found=false -done -IFS=$as_save_IFS -if $as_found -then : - -else case e in #( - e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; -esac -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. -if test -f "${ac_aux_dir}config.guess"; then - ac_config_guess="$SHELL ${ac_aux_dir}config.guess" -fi -if test -f "${ac_aux_dir}config.sub"; then - ac_config_sub="$SHELL ${ac_aux_dir}config.sub" -fi -if test -f "$ac_aux_dir/configure"; then - ac_configure="$SHELL ${ac_aux_dir}configure" -fi - -# Check that the precious variables saved in the cache have kept the same -# value. -ac_cache_corrupted=false -for ac_var in $ac_precious_vars; do - eval ac_old_set=\$ac_cv_env_${ac_var}_set - eval ac_new_set=\$ac_env_${ac_var}_set - eval ac_old_val=\$ac_cv_env_${ac_var}_value - eval ac_new_val=\$ac_env_${ac_var}_value - case $ac_old_set,$ac_new_set in - set,) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 -printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} - ac_cache_corrupted=: ;; - ,set) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 -printf "%s\n" "$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 -printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} - ac_cache_corrupted=: - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 -printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} - eval $ac_var=\$ac_old_val - fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 -printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 -printf "%s\n" "$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=`printf "%s\n" "$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 -printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} - as_fn_error $? "run '${MAKE-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_config_headers="$ac_config_headers config.h" - - -am__api_version='1.16' - - - - # 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. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 -printf %s "checking for a BSD-compatible install... " >&6; } -if test -z "$INSTALL"; then -if test ${ac_cv_path_install+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - # Account for fact that we put trailing slashes in our PATH walk. -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 - ;; -esac -fi - if test ${ac_cv_path_install+y}; 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -printf "%s\n" "$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' - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -printf %s "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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "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=`printf "%s\n" "$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 - MISSING="\${SHELL} '$am_aux_dir/missing'" -fi -# Use eval to expand $SHELL -if eval "$MISSING --is-lightweight"; then - am_missing_run="$MISSING " -else - am_missing_run= - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 -printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;} -fi - -if test x"${install_sh+set}" != 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_STRIP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -printf "%s\n" "$STRIP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_STRIP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -printf "%s\n" "$ac_ct_STRIP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$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" - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 -printf %s "checking for a race-free mkdir -p... " >&6; } -if test -z "$MKDIR_P"; then - if test ${ac_cv_path_mkdir+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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 ('*'coreutils) '* | \ - *'BusyBox '* | \ - '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 - ;; -esac -fi - - test -d ./--version && rmdir ./--version - if test ${ac_cv_path_mkdir+y}; then - MKDIR_P="$ac_cv_path_mkdir -p" - else - # As a last resort, use plain mkdir -p, - # in the hope it doesn't have the bugs of ancient mkdir. - MKDIR_P='mkdir -p' - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -printf "%s\n" "$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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_AWK+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -AWK=$ac_cv_prog_AWK -if test -n "$AWK"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 -printf "%s\n" "$AWK" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$AWK" && break -done - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } -set x ${MAKE-make} -ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` -if eval test \${ac_cv_prog_make_${ac_make}_set+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 ;; -esac -fi -if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - SET_MAKE= -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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+y} -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} -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -printf %s "checking whether $am_make supports nested variables... " >&6; } -if test ${am_cv_make_support_nested_variables+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if printf "%s\n" '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 ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -printf "%s\n" "$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='mc' - VERSION='4.8.33-pre1-git' - - -# 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 (and possibly the TAP driver). 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 -' - - - - - -# Variables for tags utilities; see am/tags.am -if test -z "$CTAGS"; then - CTAGS=ctags -fi - -if test -z "$ETAGS"; then - ETAGS=etags -fi - -if test -z "$CSCOPE"; then - CSCOPE=cscope -fi - - - -# POSIX will say in a future version that running "rm -f" with no argument -# is OK; and we want to be able to make that assumption in our Makefile -# recipes. So use an aggressive probe to check that the usage we want is -# actually supported "in the wild" to an acceptable degree. -# See automake bug#10828. -# To make any issue more visible, cause the running configure to be aborted -# by default if the 'rm' program in use doesn't match our expectations; the -# user can still override this though. -if rm -f && rm -fr && rm -rf; then : OK; else - cat >&2 <<'END' -Oops! - -Your 'rm' program seems unable to run without file operands specified -on the command line, even when the '-f' option is present. This is contrary -to the behaviour of most rm programs out there, and not conforming with -the upcoming POSIX standard: - -Please tell bug-automake@gnu.org about your system, including the value -of your $PATH and any error possibly output before this message. This -can help us improve future automake versions. - -END - if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then - echo 'Configuration will proceed anyway, since you have set the' >&2 - echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 - echo >&2 - else - cat >&2 <<'END' -Aborting the configuration process, to ensure you take notice of the issue. - -You can download and install GNU coreutils to get an 'rm' implementation -that behaves properly: . - -If you want to complete the configuration process using your problematic -'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM -to "yes", and re-run configure. - -END - as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 - fi -fi - - -printf "%s\n" "#define PACKAGE \"mc\"" >>confdefs.h - - -# Check whether --enable-silent-rules was given. -if test ${enable_silent_rules+y} -then : - enableval=$enable_silent_rules; -fi - -case $enable_silent_rules in # ((( - yes) AM_DEFAULT_VERBOSITY=0;; - no) AM_DEFAULT_VERBOSITY=1;; - *) AM_DEFAULT_VERBOSITY=0;; -esac -am_make=${MAKE-make} -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 -printf %s "checking whether $am_make supports nested variables... " >&6; } -if test ${am_cv_make_support_nested_variables+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if printf "%s\n" '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 ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 -printf "%s\n" "$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 -f ${srcdir}/mc-version.h; then - VERSION=$(grep '^#define MC_CURRENT_VERSION' ${srcdir}/mc-version.h | ${SED-sed} 's/.*"\(.*\)"$/\1/') - else - VERSION="unknown" - fi - - MAN_VERSION=`echo $VERSION | sed 's/^\([^\-]*\).*/\1/'` - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 -printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } - # Check whether --enable-maintainer-mode was given. -if test ${enable_maintainer_mode+y} -then : - enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval -else case e in #( - e) USE_MAINTAINER_MODE=no ;; -esac -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 -printf "%s\n" "$USE_MAINTAINER_MODE" >&6; } - if test $USE_MAINTAINER_MODE = yes; then - MAINTAINER_MODE_TRUE= - MAINTAINER_MODE_FALSE='#' -else - MAINTAINER_MODE_TRUE='#' - MAINTAINER_MODE_FALSE= -fi - - MAINT=$MAINTAINER_MODE_TRUE - - - - - - # 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 - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 -printf %s "checking build system type... " >&6; } -if test ${ac_cv_build+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -printf "%s\n" "$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 - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 -printf %s "checking host system type... " >&6; } -if test ${ac_cv_host+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -printf "%s\n" "$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 - - - - - - - - - - - - -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 -printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; } -cat > confinc.mk << 'END' -am__doit: - @echo this is the am__doit target >confinc.out -.PHONY: am__doit -END -am__include="#" -am__quote= -# BSD make does it like this. -echo '.include "confinc.mk" # ignored' > confmf.BSD -# Other make implementations (GNU, Solaris 10, AIX) do it like this. -echo 'include confinc.mk # ignored' > confmf.GNU -_am_result=no -for s in GNU BSD; do - { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 - (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } - case $?:`cat confinc.out 2>/dev/null` in #( - '0:this is the am__doit target') : - case $s in #( - BSD) : - am__include='.include' am__quote='"' ;; #( - *) : - am__include='include' am__quote='' ;; -esac ;; #( - *) : - ;; -esac - if test "$am__include" != "#"; then - _am_result="yes ($s style)" - break - fi -done -rm -f confinc.* confmf.* -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 -printf "%s\n" "${_am_result}" >&6; } - -# Check whether --enable-dependency-tracking was given. -if test ${enable_dependency_tracking+y} -then : - enableval=$enable_dependency_tracking; -fi - -if test "x$enable_dependency_tracking" != xno; then - am_depcomp="$ac_aux_dir/depcomp" - AMDEPBACKSLASH='\' - am__nodep='_no' -fi - if test "x$enable_dependency_tracking" != xno; then - AMDEP_TRUE= - AMDEP_FALSE='#' -else - AMDEP_TRUE='#' - AMDEP_FALSE= -fi - - -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" - fi -fi -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. -set dummy ${ac_tool_prefix}clang; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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}clang" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "clang", so it can be a program name with args. -set dummy clang; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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="clang" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -fi - - -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$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. -printf "%s\n" "$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 -version; 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\"" -printf "%s\n" "$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 - printf "%s\n" "$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 (void) -{ - - ; - 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. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 -printf %s "checking whether the C compiler works... " >&6; } -ac_link_default=`printf "%s\n" "$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\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_link_default") 2>&5 - ac_status=$? - printf "%s\n" "$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+y} && 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 case e in #( - e) ac_file='' ;; -esac -fi -if test -z "$ac_file" -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$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 case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 -printf %s "checking for C compiler default output file name... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 -printf "%s\n" "$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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 -printf %s "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\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - printf "%s\n" "$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 case e in #( - e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$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; } ;; -esac -fi -rm -f conftest conftest$ac_cv_exeext -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -printf "%s\n" "$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 (void) -{ -FILE *f = fopen ("conftest.out", "w"); - if (!f) - return 1; - 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. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 -printf %s "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\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_link") 2>&5 - ac_status=$? - printf "%s\n" "$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\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_try") 2>&5 - ac_status=$? - printf "%s\n" "$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 - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} -as_fn_error 77 "cannot run C compiled programs. -If you meant to cross compile, use '--host'. -See 'config.log' for more details" "$LINENO" 5; } - fi - fi -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -printf "%s\n" "$cross_compiling" >&6; } - -rm -f conftest.$ac_ext conftest$ac_cv_exeext \ - conftest.o conftest.obj conftest.out -ac_clean_files=$ac_clean_files_save -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 -printf %s "checking for suffix of object files... " >&6; } -if test ${ac_cv_objext+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - 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\"" -printf "%s\n" "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>&5 - ac_status=$? - printf "%s\n" "$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 case e in #( - e) printf "%s\n" "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - -{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$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; } ;; -esac -fi -rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 -printf "%s\n" "$ac_cv_objext" >&6; } -OBJEXT=$ac_cv_objext -ac_objext=$OBJEXT -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 -printf %s "checking whether the compiler supports GNU C... " >&6; } -if test ${ac_cv_c_compiler_gnu+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_compiler_gnu=yes -else case e in #( - e) ac_compiler_gnu=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+y} -ac_save_CFLAGS=$CFLAGS -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -printf %s "checking whether $CC accepts -g... " >&6; } -if test ${ac_cv_prog_cc_g+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_g=yes -else case e in #( - e) CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - -else case e in #( - e) ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - 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.beam conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -printf "%s\n" "$ac_cv_prog_cc_g" >&6; } -if test $ac_test_CFLAGS; 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 -ac_prog_cc_stdc=no -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 -printf %s "checking for $CC option to enable C11 features... " >&6; } -if test ${ac_cv_prog_cc_c11+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_prog_cc_c11=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c11_program -_ACEOF -for ac_arg in '' -std=gnu11 -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_c11=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - test "x$ac_cv_prog_cc_c11" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC ;; -esac -fi - -if test "x$ac_cv_prog_cc_c11" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else case e in #( - e) if test "x$ac_cv_prog_cc_c11" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 -printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" ;; -esac -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 ;; -esac -fi -fi -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 -printf %s "checking for $CC option to enable C99 features... " >&6; } -if test ${ac_cv_prog_cc_c99+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c99_program -_ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_c99=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC ;; -esac -fi - -if test "x$ac_cv_prog_cc_c99" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else case e in #( - e) if test "x$ac_cv_prog_cc_c99" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" ;; -esac -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 ;; -esac -fi -fi -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 -printf %s "checking for $CC option to enable C89 features... " >&6; } -if test ${ac_cv_prog_cc_c89+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c89_program -_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 conftest.beam - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC ;; -esac -fi - -if test "x$ac_cv_prog_cc_c89" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else case e in #( - e) if test "x$ac_cv_prog_cc_c89" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" ;; -esac -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 ;; -esac -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 - - - 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -printf %s "checking whether $CC understands -c and -o together... " >&6; } -if test ${am_cv_prog_cc_c_o+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -depcc="$CC" am_compiler_list= - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -printf %s "checking dependency style of $depcc... " >&6; } -if test ${am_cv_CC_dependencies_compiler_type+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -printf "%s\n" "$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_header= ac_cache= -for ac_item in $ac_header_c_list -do - if test $ac_cache; then - ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" - if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then - printf "%s\n" "#define $ac_item 1" >> confdefs.h - fi - ac_header= ac_cache= - elif test $ac_header; then - ac_cache=$ac_item - else - ac_header=$ac_item - fi -done - - - - - - - - -if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes -then : - -printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h - -fi - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 -printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; } -if test ${ac_cv_safe_to_define___extensions__+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -# define __EXTENSIONS__ 1 - $ac_includes_default -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_safe_to_define___extensions__=yes -else case e in #( - e) ac_cv_safe_to_define___extensions__=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 -printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; } - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5 -printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; } -if test ${ac_cv_should_define__xopen_source+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_should_define__xopen_source=no - if test $ac_cv_header_wchar_h = yes -then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #include - mbstate_t x; -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #define _XOPEN_SOURCE 500 - #include - mbstate_t x; -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_should_define__xopen_source=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -fi ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5 -printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; } - - printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h - - printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h - - printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h - - printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h - - printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h - - printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h - - printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h - - printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h - - printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h - - printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h - - printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h - - printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h - - printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h - - printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h - - printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h - - printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h - - if test $ac_cv_header_minix_config_h = yes -then : - MINIX=yes - printf "%s\n" "#define _MINIX 1" >>confdefs.h - - printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h - - printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h - -else case e in #( - e) MINIX= ;; -esac -fi - if test $ac_cv_safe_to_define___extensions__ = yes -then : - printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h - -fi - if test $ac_cv_should_define__xopen_source = yes -then : - printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h - -fi - - - - -if test -n "$ac_tool_prefix"; then - for ac_prog in ar gar - 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_AR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_AR="$ac_tool_prefix$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -printf "%s\n" "$AR" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$AR" && break - done -fi -if test -z "$AR"; then - ac_ct_AR=$AR - for ac_prog in ar gar -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_AR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_AR="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -printf "%s\n" "$ac_ct_AR" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$ac_ct_AR" && break -done - - if test "x$ac_ct_AR" = x; then - AR="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - 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 -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" - fi -fi -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. -set dummy ${ac_tool_prefix}clang; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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}clang" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "clang", so it can be a program name with args. -set dummy clang; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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="clang" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -fi - - -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$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. -printf "%s\n" "$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 -version; 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\"" -printf "%s\n" "$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 - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 -printf %s "checking whether the compiler supports GNU C... " >&6; } -if test ${ac_cv_c_compiler_gnu+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_compiler_gnu=yes -else case e in #( - e) ac_compiler_gnu=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+y} -ac_save_CFLAGS=$CFLAGS -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -printf %s "checking whether $CC accepts -g... " >&6; } -if test ${ac_cv_prog_cc_g+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_g=yes -else case e in #( - e) CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - -else case e in #( - e) ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - 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.beam conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -printf "%s\n" "$ac_cv_prog_cc_g" >&6; } -if test $ac_test_CFLAGS; 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 -ac_prog_cc_stdc=no -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 -printf %s "checking for $CC option to enable C11 features... " >&6; } -if test ${ac_cv_prog_cc_c11+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_prog_cc_c11=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c11_program -_ACEOF -for ac_arg in '' -std=gnu11 -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_c11=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - test "x$ac_cv_prog_cc_c11" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC ;; -esac -fi - -if test "x$ac_cv_prog_cc_c11" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else case e in #( - e) if test "x$ac_cv_prog_cc_c11" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 -printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" ;; -esac -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 ;; -esac -fi -fi -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 -printf %s "checking for $CC option to enable C99 features... " >&6; } -if test ${ac_cv_prog_cc_c99+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c99_program -_ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_c99=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC ;; -esac -fi - -if test "x$ac_cv_prog_cc_c99" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else case e in #( - e) if test "x$ac_cv_prog_cc_c99" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" ;; -esac -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 ;; -esac -fi -fi -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 -printf %s "checking for $CC option to enable C89 features... " >&6; } -if test ${ac_cv_prog_cc_c89+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c89_program -_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 conftest.beam - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC ;; -esac -fi - -if test "x$ac_cv_prog_cc_c89" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else case e in #( - e) if test "x$ac_cv_prog_cc_c89" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" ;; -esac -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 ;; -esac -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 - - - 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -printf %s "checking whether $CC understands -c and -o together... " >&6; } -if test ${am_cv_prog_cc_c_o+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -depcc="$CC" am_compiler_list= - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -printf %s "checking dependency style of $depcc... " >&6; } -if test ${am_cv_CC_dependencies_compiler_type+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -printf "%s\n" "$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_PROG_CC doesn't try enabling C99 in autoconf 2.69 and below, but -# AC_PROG_CC_C99 is deprecated in newer ones. In autoconf 2.70+ both -# will try enabling features up to C11. -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. -set dummy ${ac_tool_prefix}gcc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}gcc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "gcc", so it can be a program name with args. -set dummy gcc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_CC="gcc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. -set dummy ${ac_tool_prefix}cc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_CC="${ac_tool_prefix}cc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - fi -fi -if test -z "$CC"; then - # Extract the first word of "cc", so it can be a program name with args. -set dummy cc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$CC"; then - ac_cv_prog_CC="$CC" # Let the user override the test. -else - ac_prog_rejected=no -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then - ac_prog_rejected=yes - continue - fi - ac_cv_prog_CC="cc" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -if test $ac_prog_rejected = yes; then - # We found a bogon in the path, so make sure we never use it. - set dummy $ac_cv_prog_CC - shift - if test $# != 0; then - # We chose a different compiler from the bogus one. - # However, it has the same basename, so the bogon will be chosen - # first if we set CC to just the basename; use the full file name. - shift - ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" - fi -fi -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - for ac_prog in cl.exe - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$CC" && break - done -fi -if test -z "$CC"; then - ac_ct_CC=$CC - for ac_prog in cl.exe -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -fi - -fi -if test -z "$CC"; then - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. -set dummy ${ac_tool_prefix}clang; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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}clang" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -CC=$ac_cv_prog_CC -if test -n "$CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 -printf "%s\n" "$CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_CC"; then - ac_ct_CC=$CC - # Extract the first word of "clang", so it can be a program name with args. -set dummy clang; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_CC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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="clang" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_CC=$ac_cv_prog_ac_ct_CC -if test -n "$ac_ct_CC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 -printf "%s\n" "$ac_ct_CC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_CC" = x; then - CC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - CC=$ac_ct_CC - fi -else - CC="$ac_cv_prog_CC" -fi - -fi - - -test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$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. -printf "%s\n" "$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 -version; 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\"" -printf "%s\n" "$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 - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 -printf %s "checking whether the compiler supports GNU C... " >&6; } -if test ${ac_cv_c_compiler_gnu+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ -#ifndef __GNUC__ - choke me -#endif - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_compiler_gnu=yes -else case e in #( - e) ac_compiler_gnu=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -ac_cv_c_compiler_gnu=$ac_compiler_gnu - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 -printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -if test $ac_compiler_gnu = yes; then - GCC=yes -else - GCC= -fi -ac_test_CFLAGS=${CFLAGS+y} -ac_save_CFLAGS=$CFLAGS -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 -printf %s "checking whether $CC accepts -g... " >&6; } -if test ${ac_cv_prog_cc_g+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_g=yes -else case e in #( - e) CFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - -else case e in #( - e) ac_c_werror_flag=$ac_save_c_werror_flag - CFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - 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.beam conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ac_c_werror_flag=$ac_save_c_werror_flag ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 -printf "%s\n" "$ac_cv_prog_cc_g" >&6; } -if test $ac_test_CFLAGS; 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 -ac_prog_cc_stdc=no -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 -printf %s "checking for $CC option to enable C11 features... " >&6; } -if test ${ac_cv_prog_cc_c11+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_prog_cc_c11=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c11_program -_ACEOF -for ac_arg in '' -std=gnu11 -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_c11=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - test "x$ac_cv_prog_cc_c11" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC ;; -esac -fi - -if test "x$ac_cv_prog_cc_c11" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else case e in #( - e) if test "x$ac_cv_prog_cc_c11" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 -printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } - CC="$CC $ac_cv_prog_cc_c11" ;; -esac -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 - ac_prog_cc_stdc=c11 ;; -esac -fi -fi -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 -printf %s "checking for $CC option to enable C99 features... " >&6; } -if test ${ac_cv_prog_cc_c99+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_prog_cc_c99=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c99_program -_ACEOF -for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= -do - CC="$ac_save_CC $ac_arg" - if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_prog_cc_c99=$ac_arg -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam - test "x$ac_cv_prog_cc_c99" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC ;; -esac -fi - -if test "x$ac_cv_prog_cc_c99" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else case e in #( - e) if test "x$ac_cv_prog_cc_c99" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 -printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } - CC="$CC $ac_cv_prog_cc_c99" ;; -esac -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 - ac_prog_cc_stdc=c99 ;; -esac -fi -fi -if test x$ac_prog_cc_stdc = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 -printf %s "checking for $CC option to enable C89 features... " >&6; } -if test ${ac_cv_prog_cc_c89+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_prog_cc_c89=no -ac_save_CC=$CC -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$ac_c_conftest_c89_program -_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 conftest.beam - test "x$ac_cv_prog_cc_c89" != "xno" && break -done -rm -f conftest.$ac_ext -CC=$ac_save_CC ;; -esac -fi - -if test "x$ac_cv_prog_cc_c89" = xno -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 -printf "%s\n" "unsupported" >&6; } -else case e in #( - e) if test "x$ac_cv_prog_cc_c89" = x -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 -printf "%s\n" "none needed" >&6; } -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 -printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } - CC="$CC $ac_cv_prog_cc_c89" ;; -esac -fi - ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 - ac_prog_cc_stdc=c89 ;; -esac -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 - - - 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 -printf %s "checking whether $CC understands -c and -o together... " >&6; } -if test ${am_cv_prog_cc_c_o+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF - # Make sure it works both with $CC and with simple cc. - # Following AC_PROG_CC_C_O, we do the test twice because some - # compilers refuse to overwrite an existing .o file with -o, - # though they will create one. - am_cv_prog_cc_c_o=yes - for am_i in 1 2; do - if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 - ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } \ - && test -f conftest2.$ac_objext; then - : OK - else - am_cv_prog_cc_c_o=no - break - fi - done - rm -f core conftest* - unset am_i ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 -printf "%s\n" "$am_cv_prog_cc_c_o" >&6; } -if test "$am_cv_prog_cc_c_o" != yes; then - # Losing compiler, so override with the script. - # FIXME: It is wrong to rewrite CC. - # But if we don't then we get into trouble of one sort or another. - # A longer-term fix would be to have automake use am__CC in this case, - # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" - CC="$am_aux_dir/compile $CC" -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -depcc="$CC" am_compiler_list= - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -printf %s "checking dependency style of $depcc... " >&6; } -if test ${am_cv_CC_dependencies_compiler_type+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 -printf "%s\n" "$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=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 - - - mc_configured_cflags="" - - case "$CC" in - gcc*) - - - - -for flag in -fdiagnostics-show-option; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - ;; - *) - ;; - esac - - - - - -for flag in -Wall; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wextra; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - - -for flag in -Wattributes; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wimplicit-function-declaration; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wimplicit-int; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wno-declaration-after-statement; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wno-long-long; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wno-vla; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wincompatible-pointer-types; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wint-conversion; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - - -for flag in -Wbad-function-cast; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wconditional-uninitialized; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wfloat-conversion; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wfloat-equal; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wformat-security; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wformat-signedness; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wimplicit-fallthrough; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wmissing-declarations; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wmissing-format-attribute; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wmissing-prototypes; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wmissing-variable-declarations; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wnested-externs; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wpointer-arith; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wredundant-decls; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wshadow; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wstrict-prototypes; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wswitch-default; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wundef; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wunreachable-code; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wunused-result; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - -for flag in -Wwrite-strings; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - - - -for flag in -Wno-cast-function-type; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - - - - -for flag in -Wno-assign-enum; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags_$EXTRA_OPTION_$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $EXTRA_OPTION $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - - - 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 - - - -CFLAGS_OPTS="" -if test "x$CFLAGS" = "x"; then - CFLAGS_OPTS=" -O2 " -fi -if test x$USE_MAINTAINER_MODE = xyes; then - CFLAGS_OPTS="-g3 -Og -ggdb" - -printf "%s\n" "#define USE_MAINTAINER_MODE 1" >>confdefs.h - -fi - -# Check whether --enable-werror was given. -if test ${enable_werror+y} -then : - enableval=$enable_werror; -fi - -if test "x$enable_werror" = xyes; then - - - - -for flag in -Werror; do - as_CACHEVAR=`printf "%s\n" "ax_cv_check_cflags__$flag" | sed "$as_sed_sh"` -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler accepts $flag" >&5 -printf %s "checking whether the C compiler accepts $flag... " >&6; } -if eval test \${$as_CACHEVAR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ax_check_save_flags=$CFLAGS - if test x"$GCC" = xyes ; then - add_gnu_werror="-Werror" - fi - CFLAGS="$CFLAGS $flag $add_gnu_werror" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - eval "$as_CACHEVAR=yes" -else case e in #( - e) eval "$as_CACHEVAR=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - CFLAGS=$ax_check_save_flags ;; -esac -fi -eval ac_res=\$$as_CACHEVAR - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$ac_res" >&6; } -if eval test \"x\$"$as_CACHEVAR"\" = x"yes" -then : - -if test ${mc_configured_cflags+y} -then : - - case " $mc_configured_cflags " in #( - *" $flag "*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags already contains \$flag"; } >&5 - (: mc_configured_cflags already contains $flag) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } ;; #( - *) : - - as_fn_append mc_configured_cflags " $flag" - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac - -else case e in #( - e) - mc_configured_cflags=$flag - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: : mc_configured_cflags=\"\$mc_configured_cflags\""; } >&5 - (: mc_configured_cflags="$mc_configured_cflags") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - ;; -esac -fi - -else case e in #( - e) : ;; -esac -fi - -done - -fi - -ax_gcc_func_attribute_save_flags=$CFLAGS -CFLAGS= - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((fallthrough))" >&5 -printf %s "checking for __attribute__((fallthrough))... " >&6; } -if test ${ax_cv_have_func_attribute_fallthrough+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - - void foo( int x ) {switch (x) { case 1: __attribute__((fallthrough)); case 2: break ; }}; - -int -main (void) -{ - - ; - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - if grep -- -Wattributes conftest.err -then : - ax_cv_have_func_attribute_fallthrough=no -else case e in #( - e) ax_cv_have_func_attribute_fallthrough=yes ;; -esac -fi -else case e in #( - e) ax_cv_have_func_attribute_fallthrough=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_fallthrough" >&5 -printf "%s\n" "$ax_cv_have_func_attribute_fallthrough" >&6; } - - if test yes = $ax_cv_have_func_attribute_fallthrough -then : - -printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_FALLTHROUGH 1" >>confdefs.h - -fi - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((weak))" >&5 -printf %s "checking for __attribute__((weak))... " >&6; } -if test ${ax_cv_have_func_attribute_weak+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - - int foo( void ) __attribute__((weak)); - -int -main (void) -{ - - ; - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - if grep -- -Wattributes conftest.err -then : - ax_cv_have_func_attribute_weak=no -else case e in #( - e) ax_cv_have_func_attribute_weak=yes ;; -esac -fi -else case e in #( - e) ax_cv_have_func_attribute_weak=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_weak" >&5 -printf "%s\n" "$ax_cv_have_func_attribute_weak" >&6; } - - if test yes = $ax_cv_have_func_attribute_weak -then : - -printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_WEAK 1" >>confdefs.h - -fi - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __attribute__((unused))" >&5 -printf %s "checking for __attribute__((unused))... " >&6; } -if test ${ax_cv_have_func_attribute_unused+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - - int foo( void ) __attribute__((unused)); - -int -main (void) -{ - - ; - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - if grep -- -Wattributes conftest.err -then : - ax_cv_have_func_attribute_unused=no -else case e in #( - e) ax_cv_have_func_attribute_unused=yes ;; -esac -fi -else case e in #( - e) ax_cv_have_func_attribute_unused=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_func_attribute_unused" >&5 -printf "%s\n" "$ax_cv_have_func_attribute_unused" >&6; } - - if test yes = $ax_cv_have_func_attribute_unused -then : - -printf "%s\n" "#define HAVE_FUNC_ATTRIBUTE_UNUSED 1" >>confdefs.h - -fi - - - -CFLAGS=$ax_gcc_func_attribute_save_flags -unset ax_gcc_func_attribute_save_flags - -case `pwd` in - *\ * | *\ *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 -printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; -esac - - - -macro_version='2.4.7' -macro_revision='2.4.7' - - - - - - - - - - - - - - -ltmain=$ac_aux_dir/ltmain.sh - -# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' - -ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -printf %s "checking how to print strings... " >&6; } -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "" -} - -case $ECHO in - printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5 -printf "%s\n" "printf" >&6; } ;; - print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 -printf "%s\n" "print -r" >&6; } ;; - *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5 -printf "%s\n" "cat" >&6; } ;; -esac - - - - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -printf %s "checking for a sed that does not truncate output... " >&6; } -if test ${ac_cv_path_SED+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in sed gsed - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in #( -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -#( -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -printf "%s\n" "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 -printf %s "checking for grep that handles long lines and -e... " >&6; } -if test ${ac_cv_path_GREP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" '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 - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -printf "%s\n" "$ac_cv_path_GREP" >&6; } - GREP="$ac_cv_path_GREP" - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 -printf %s "checking for egrep... " >&6; } -if test ${ac_cv_path_EGREP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" '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 ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -printf "%s\n" "$ac_cv_path_EGREP" >&6; } - EGREP="$ac_cv_path_EGREP" - - EGREP_TRADITIONAL=$EGREP - ac_cv_path_EGREP_TRADITIONAL=$EGREP - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 -printf %s "checking for fgrep... " >&6; } -if test ${ac_cv_path_FGREP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 - then ac_cv_path_FGREP="$GREP -F" - else - if test -z "$FGREP"; then - ac_path_FGREP_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in fgrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_FGREP" || continue -# Check for GNU ac_path_FGREP and select it if it is found. - # Check for GNU $ac_path_FGREP -case `"$ac_path_FGREP" --version 2>&1` in #( -*GNU*) - ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; -#( -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'FGREP' >> "conftest.nl" - "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_FGREP_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_FGREP="$ac_path_FGREP" - ac_path_FGREP_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_FGREP_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_FGREP"; then - as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 - fi -else - ac_cv_path_FGREP=$FGREP -fi - - fi ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -printf "%s\n" "$ac_cv_path_FGREP" >&6; } - FGREP="$ac_cv_path_FGREP" - - -test -z "$GREP" && GREP=grep - - - - - - - - - - - - - - - - - - - -# Check whether --with-gnu-ld was given. -if test ${with_gnu_ld+y} -then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else case e in #( - e) with_gnu_ld=no ;; -esac -fi - -ac_prog=ld -if test yes = "$GCC"; then - # Check if gcc -print-prog-name=ld gives a path. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -printf %s "checking for ld used by $CC... " >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return, which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD=$ac_prog - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test yes = "$with_gnu_ld"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -printf %s "checking for GNU ld... " >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -printf %s "checking for non-GNU ld... " >&6; } -fi -if test ${lt_cv_path_LD+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -z "$LD"; then - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD=$ac_dir/$ac_prog - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 -printf "%s\n" "$LD" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi -test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -printf %s "checking if the linker ($LD) is GNU ld... " >&6; } -if test ${lt_cv_prog_gnu_ld+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 -printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; } -if test ${lt_cv_path_NM+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM=$NM -else - lt_nm_to_check=${ac_tool_prefix}nm - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - tmp_nm=$ac_dir/$lt_tmp_nm - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the 'sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty - case $build_os in - mingw*) lt_bad_file=conftest.nm/nofile ;; - *) lt_bad_file=/dev/null ;; - esac - case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in - *$lt_bad_file* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break 2 - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break 2 - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS=$lt_save_ifs - done - : ${lt_cv_path_NM=no} -fi ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 -printf "%s\n" "$lt_cv_path_NM" >&6; } -if test no != "$lt_cv_path_NM"; then - NM=$lt_cv_path_NM -else - # Didn't find any BSD compatible name lister, look for dumpbin. - if test -n "$DUMPBIN"; then : - # Let the user override the test. - else - if test -n "$ac_tool_prefix"; then - for ac_prog in dumpbin "link -dump" - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_DUMPBIN+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$DUMPBIN"; then - ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -DUMPBIN=$ac_cv_prog_DUMPBIN -if test -n "$DUMPBIN"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 -printf "%s\n" "$DUMPBIN" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$DUMPBIN" && break - done -fi -if test -z "$DUMPBIN"; then - ac_ct_DUMPBIN=$DUMPBIN - for ac_prog in dumpbin "link -dump" -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_DUMPBIN+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_DUMPBIN"; then - ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN -if test -n "$ac_ct_DUMPBIN"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 -printf "%s\n" "$ac_ct_DUMPBIN" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$ac_ct_DUMPBIN" && break -done - - if test "x$ac_ct_DUMPBIN" = x; then - DUMPBIN=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DUMPBIN=$ac_ct_DUMPBIN - fi -fi - - case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in - *COFF*) - DUMPBIN="$DUMPBIN -symbols -headers" - ;; - *) - DUMPBIN=: - ;; - esac - fi - - if test : != "$DUMPBIN"; then - NM=$DUMPBIN - fi -fi -test -z "$NM" && NM=nm - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 -printf %s "checking the name lister ($NM) interface... " >&6; } -if test ${lt_cv_nm_interface+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_nm_interface="BSD nm" - echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) - (eval "$ac_compile" 2>conftest.err) - cat conftest.err >&5 - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) - cat conftest.err >&5 - (eval echo "\"\$as_me:$LINENO: output\"" >&5) - cat conftest.out >&5 - if $GREP 'External.*some_variable' conftest.out > /dev/null; then - lt_cv_nm_interface="MS dumpbin" - fi - rm -f conftest* ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 -printf "%s\n" "$lt_cv_nm_interface" >&6; } - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -printf %s "checking whether ln -s works... " >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -printf "%s\n" "no, using $LN_S" >&6; } -fi - -# find the maximum length of command line arguments -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 -printf %s "checking the maximum length of command line arguments... " >&6; } -if test ${lt_cv_sys_max_cmd_len+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) i=0 - teststring=ABCD - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - mint*) - # On MiNT this can take a long time and run out of memory. - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - os2*) - # The test takes a long time on OS/2. - lt_cv_sys_max_cmd_len=8192 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len" && \ - test undefined != "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - # Make teststring a little bigger before we do anything with it. - # a 1K string should be a reasonable start. - for i in 1 2 3 4 5 6 7 8; do - teststring=$teststring$teststring - done - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - while { test X`env echo "$teststring$teststring" 2>/dev/null` \ - = "X$teststring$teststring"; } >/dev/null 2>&1 && - test 17 != "$i" # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - # Only check the string length outside the loop. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` - teststring= - # Add a significant safety factor because C++ compilers can tack on - # massive amounts of additional arguments before passing them to the - # linker. It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - ;; -esac -fi - -if test -n "$lt_cv_sys_max_cmd_len"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 -printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5 -printf "%s\n" "none" >&6; } -fi -max_cmd_len=$lt_cv_sys_max_cmd_len - - - - - - -: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} - -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - lt_unset=unset -else - lt_unset=false -fi - - - - - -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - lt_SP2NL='tr \040 \012' - lt_NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - lt_SP2NL='tr \100 \n' - lt_NL2SP='tr \r\n \100\100' - ;; -esac - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 -printf %s "checking how to convert $build file names to $host format... " >&6; } -if test ${lt_cv_to_host_file_cmd+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 - ;; - esac - ;; - *-*-cygwin* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin - ;; - esac - ;; - * ) # unhandled hosts (and "normal" native builds) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; -esac - ;; -esac -fi - -to_host_file_cmd=$lt_cv_to_host_file_cmd -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 -printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; } - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 -printf %s "checking how to convert $build file names to toolchain format... " >&6; } -if test ${lt_cv_to_tool_file_cmd+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) #assume ordinary cross tools, or native build. -lt_cv_to_tool_file_cmd=func_convert_file_noop -case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 - ;; - esac - ;; -esac - ;; -esac -fi - -to_tool_file_cmd=$lt_cv_to_tool_file_cmd -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 -printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; } - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 -printf %s "checking for $LD option to reload object files... " >&6; } -if test ${lt_cv_ld_reload_flag+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_ld_reload_flag='-r' ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 -printf "%s\n" "$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - if test yes != "$GCC"; then - reload_cmds=false - fi - ;; - darwin*) - if test yes = "$GCC"; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac - - - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. -set dummy ${ac_tool_prefix}file; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_FILECMD+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$FILECMD"; then - ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_FILECMD="${ac_tool_prefix}file" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -FILECMD=$ac_cv_prog_FILECMD -if test -n "$FILECMD"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 -printf "%s\n" "$FILECMD" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_FILECMD"; then - ac_ct_FILECMD=$FILECMD - # Extract the first word of "file", so it can be a program name with args. -set dummy file; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_FILECMD+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_FILECMD"; then - ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_FILECMD="file" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD -if test -n "$ac_ct_FILECMD"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 -printf "%s\n" "$ac_ct_FILECMD" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_FILECMD" = x; then - FILECMD=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - FILECMD=$ac_ct_FILECMD - fi -else - FILECMD="$ac_cv_prog_FILECMD" -fi - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. -set dummy ${ac_tool_prefix}objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -printf "%s\n" "$OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OBJDUMP"; then - ac_ct_OBJDUMP=$OBJDUMP - # Extract the first word of "objdump", so it can be a program name with args. -set dummy objdump; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_OBJDUMP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_OBJDUMP"; then - ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_OBJDUMP="objdump" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP -if test -n "$ac_ct_OBJDUMP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 -printf "%s\n" "$ac_ct_OBJDUMP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OBJDUMP=$ac_ct_OBJDUMP - fi -else - OBJDUMP="$ac_cv_prog_OBJDUMP" -fi - -test -z "$OBJDUMP" && OBJDUMP=objdump - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 -printf %s "checking how to recognize dependent libraries... " >&6; } -if test ${lt_cv_deplibs_check_method+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# 'unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# that responds to the $file_magic_cmd with a given extended regex. -# If you have 'file' or equivalent on your system and you're not sure -# whether 'pass_all' will *always* work, you probably want this one. - -case $host_os in -aix[4-9]*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='$FILECMD -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - # Keep this pattern in sync with the one in func_win32_libid. - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -cegcc*) - # use the weaker test based on 'objdump'. See mingw*. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly* | midnightbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=$FILECMD - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -haiku*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=$FILECMD - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=$FILECMD - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -*nto* | *qnx*) - lt_cv_deplibs_check_method=pass_all - ;; - -openbsd* | bitrig*) - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -tpf*) - lt_cv_deplibs_check_method=pass_all - ;; -os2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } - -file_magic_glob= -want_nocaseglob=no -if test "$build" = "$host"; then - case $host_os in - mingw* | pw32*) - if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then - want_nocaseglob=yes - else - file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` - fi - ;; - esac -fi - -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - - - - - - - - - - - - - - - - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. -set dummy ${ac_tool_prefix}dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_DLLTOOL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$DLLTOOL"; then - ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -DLLTOOL=$ac_cv_prog_DLLTOOL -if test -n "$DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 -printf "%s\n" "$DLLTOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DLLTOOL"; then - ac_ct_DLLTOOL=$DLLTOOL - # Extract the first word of "dlltool", so it can be a program name with args. -set dummy dlltool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_DLLTOOL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_DLLTOOL"; then - ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_DLLTOOL="dlltool" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL -if test -n "$ac_ct_DLLTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 -printf "%s\n" "$ac_ct_DLLTOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_DLLTOOL" = x; then - DLLTOOL="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DLLTOOL=$ac_ct_DLLTOOL - fi -else - DLLTOOL="$ac_cv_prog_DLLTOOL" -fi - -test -z "$DLLTOOL" && DLLTOOL=dlltool - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 -printf %s "checking how to associate runtime and link libraries... " >&6; } -if test ${lt_cv_sharedlib_from_linklib_cmd+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_sharedlib_from_linklib_cmd='unknown' - -case $host_os in -cygwin* | mingw* | pw32* | cegcc*) - # two different shell functions defined in ltmain.sh; - # decide which one to use based on capabilities of $DLLTOOL - case `$DLLTOOL --help 2>&1` in - *--identify-strict*) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib - ;; - *) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback - ;; - esac - ;; -*) - # fallback: assume linklib IS sharedlib - lt_cv_sharedlib_from_linklib_cmd=$ECHO - ;; -esac - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 -printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; } -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO - - - - - - - -if test -n "$ac_tool_prefix"; then - for ac_prog in ar - do - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_AR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$AR"; then - ac_cv_prog_AR="$AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_AR="$ac_tool_prefix$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -printf "%s\n" "$AR" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$AR" && break - done -fi -if test -z "$AR"; then - ac_ct_AR=$AR - for ac_prog in ar -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_AR+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_AR"; then - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_AR="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_AR=$ac_cv_prog_ac_ct_AR -if test -n "$ac_ct_AR"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 -printf "%s\n" "$ac_ct_AR" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$ac_ct_AR" && break -done - - if test "x$ac_ct_AR" = x; then - AR="false" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - AR=$ac_ct_AR - fi -fi - -: ${AR=ar} - - - - - - -# Use ARFLAGS variable as AR's operation code to sync the variable naming with -# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have -# higher priority because thats what people were doing historically (setting -# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS -# variable obsoleted/removed. - -test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} -lt_ar_flags=$AR_FLAGS - - - - - - -# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override -# by AR_FLAGS because that was never working and AR_FLAGS is about to die. - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 -printf %s "checking for archiver @FILE support... " >&6; } -if test ${lt_cv_ar_at_file+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_ar_at_file=no - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - echo conftest.$ac_objext > conftest.lst - lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 - (eval $lt_ar_try) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if test 0 -eq "$ac_status"; then - # Ensure the archiver fails upon bogus file names. - rm -f conftest.$ac_objext libconftest.a - { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 - (eval $lt_ar_try) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - if test 0 -ne "$ac_status"; then - lt_cv_ar_at_file=@ - fi - fi - rm -f conftest.* libconftest.a - -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 -printf "%s\n" "$lt_cv_ar_at_file" >&6; } - -if test no = "$lt_cv_ar_at_file"; then - archiver_list_spec= -else - archiver_list_spec=$lt_cv_ar_at_file -fi - - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. -set dummy ${ac_tool_prefix}strip; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_STRIP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -STRIP=$ac_cv_prog_STRIP -if test -n "$STRIP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 -printf "%s\n" "$STRIP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_STRIP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP -if test -n "$ac_ct_STRIP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 -printf "%s\n" "$ac_ct_STRIP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_STRIP" = x; then - STRIP=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - STRIP=$ac_ct_STRIP - fi -else - STRIP="$ac_cv_prog_STRIP" -fi - -test -z "$STRIP" && STRIP=: - - - - - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_RANLIB+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$RANLIB"; then - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -printf "%s\n" "$RANLIB" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_RANLIB"; then - ac_ct_RANLIB=$RANLIB - # Extract the first word of "ranlib", so it can be a program name with args. -set dummy ranlib; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_RANLIB+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_RANLIB"; then - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_RANLIB="ranlib" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB -if test -n "$ac_ct_RANLIB"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 -printf "%s\n" "$ac_ct_RANLIB" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -test -z "$RANLIB" && RANLIB=: - - - - - - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - bitrig* | openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" -fi - -case $host_os in - darwin*) - lock_old_archive_extraction=yes ;; - *) - lock_old_archive_extraction=no ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# Check for command to grab the raw symbol name followed by C symbol from nm. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 -printf %s "checking command to parse $NM output from $compiler object... " >&6; } -if test ${lt_cv_sys_global_symbol_pipe+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[BCDT]' - ;; -cygwin* | mingw* | pw32* | cegcc*) - symcode='[ABCDGISTW]' - ;; -hpux*) - if test ia64 = "$host_cpu"; then - symcode='[ABCDEGRST]' - fi - ;; -irix* | nonstopux*) - symcode='[BCDEGRST]' - ;; -osf*) - symcode='[BCDEGQRST]' - ;; -solaris*) - symcode='[BDRT]' - ;; -sco3.2v5*) - symcode='[DT]' - ;; -sysv4.2uw2*) - symcode='[DT]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[ABDT]' - ;; -sysv4) - symcode='[DFNSTU]' - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[ABCDGIRSTW]' ;; -esac - -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Gets list of data symbols to import. - lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" - # Adjust the below global symbol transforms to fixup imported variables. - lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" - lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" - lt_c_name_lib_hook="\ - -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ - -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" -else - # Disable hooks by default. - lt_cv_sys_global_symbol_to_import= - lt_cdecl_hook= - lt_c_name_hook= - lt_c_name_lib_hook= -fi - -# Transform an extracted symbol line into a proper C declaration. -# Some systems (esp. on ia64) link data and code symbols differently, -# so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ -$lt_cdecl_hook\ -" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ -$lt_c_name_hook\ -" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" - -# Transform an extracted symbol line into symbol name with lib prefix and -# symbol address. -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ -$lt_c_name_lib_hook\ -" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ -" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# Try without a prefix underscore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Fake it for dumpbin and say T for any non-static function, - # D for any global variable and I for any imported variable. - # Also find C++ and __fastcall symbols from MSVC++ or ICC, - # which start with @ or ?. - lt_cv_sys_global_symbol_pipe="$AWK '"\ -" {last_section=section; section=\$ 3};"\ -" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ -" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ -" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ -" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ -" \$ 0!~/External *\|/{next};"\ -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ -" {if(hide[section]) next};"\ -" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ -" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ -" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ -" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ -" ' prfx=^$ac_symprfx" - else - lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - fi - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <<_LT_EOF -#ifdef __cplusplus -extern "C" { -#endif -char nm_test_var; -void nm_test_func(void); -void nm_test_func(void){} -#ifdef __cplusplus -} -#endif -int main(){nm_test_var='a';nm_test_func();return(0);} -_LT_EOF - - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - # Now try to grab the symbols. - nlist=conftest.nm - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 - (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then - cat <<_LT_EOF > conftest.$ac_ext -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE -/* DATA imports from DLLs on WIN32 can't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT_DLSYM_CONST -#elif defined __osf__ -/* This system does not cope well with relocations in const data. */ -# define LT_DLSYM_CONST -#else -# define LT_DLSYM_CONST const -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -_LT_EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - - cat <<_LT_EOF >> conftest.$ac_ext - -/* The mapping between symbol names and symbols. */ -LT_DLSYM_CONST struct { - const char *name; - void *address; -} -lt__PROGRAM__LTX_preloaded_symbols[] = -{ - { "@PROGRAM@", (void *) 0 }, -_LT_EOF - $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext - cat <<\_LT_EOF >> conftest.$ac_ext - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt__PROGRAM__LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif -_LT_EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_globsym_save_LIBS=$LIBS - lt_globsym_save_CFLAGS=$CFLAGS - LIBS=conftstm.$ac_objext - CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s conftest$ac_exeext; then - pipe_works=yes - fi - LIBS=$lt_globsym_save_LIBS - CFLAGS=$lt_globsym_save_CFLAGS - else - echo "cannot find nm_test_func in $nlist" >&5 - fi - else - echo "cannot find nm_test_var in $nlist" >&5 - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 - fi - else - echo "$progname: failed program was:" >&5 - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test yes = "$pipe_works"; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done - ;; -esac -fi - -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5 -printf "%s\n" "failed" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 -printf "%s\n" "ok" >&6; } -fi - -# Response file support. -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - nm_file_list_spec='@' -elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then - nm_file_list_spec='@' -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 -printf %s "checking for sysroot... " >&6; } - -# Check whether --with-sysroot was given. -if test ${with_sysroot+y} -then : - withval=$with_sysroot; -else case e in #( - e) with_sysroot=no ;; -esac -fi - - -lt_sysroot= -case $with_sysroot in #( - yes) - if test yes = "$GCC"; then - lt_sysroot=`$CC --print-sysroot 2>/dev/null` - fi - ;; #( - /*) - lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` - ;; #( - no|'') - ;; #( - *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 -printf "%s\n" "$with_sysroot" >&6; } - as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 - ;; -esac - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 -printf "%s\n" "${lt_sysroot:-no}" >&6; } - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 -printf %s "checking for a working dd... " >&6; } -if test ${ac_cv_path_lt_DD+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) printf 0123456789abcdef0123456789abcdef >conftest.i -cat conftest.i conftest.i >conftest2.i -: ${lt_DD:=$DD} -if test -z "$lt_DD"; then - ac_path_lt_DD_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in dd - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_lt_DD" || continue -if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then - cmp -s conftest.i conftest.out \ - && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: -fi - $ac_path_lt_DD_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_lt_DD"; then - : - fi -else - ac_cv_path_lt_DD=$lt_DD -fi - -rm -f conftest.i conftest2.i conftest.out ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 -printf "%s\n" "$ac_cv_path_lt_DD" >&6; } - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 -printf %s "checking how to truncate binary pipes... " >&6; } -if test ${lt_cv_truncate_bin+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) printf 0123456789abcdef0123456789abcdef >conftest.i -cat conftest.i conftest.i >conftest2.i -lt_cv_truncate_bin= -if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then - cmp -s conftest.i conftest.out \ - && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" -fi -rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 -printf "%s\n" "$lt_cv_truncate_bin" >&6; } - - - - - - - -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -func_cc_basename () -{ - for cc_temp in $*""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac - done - func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -} - -# Check whether --enable-libtool-lock was given. -if test ${enable_libtool_lock+y} -then : - enableval=$enable_libtool_lock; -fi - -test no = "$enable_libtool_lock" || enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out what ABI is being produced by ac_compile, and set mode - # options accordingly. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `$FILECMD conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE=32 - ;; - *ELF-64*) - HPUX_IA64_MODE=64 - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo '#line '$LINENO' "configure"' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - if test yes = "$lt_cv_prog_gnu_ld"; then - case `$FILECMD conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `$FILECMD conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -mips64*-*linux*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo '#line '$LINENO' "configure"' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - emul=elf - case `$FILECMD conftest.$ac_objext` in - *32-bit*) - emul="${emul}32" - ;; - *64-bit*) - emul="${emul}64" - ;; - esac - case `$FILECMD conftest.$ac_objext` in - *MSB*) - emul="${emul}btsmip" - ;; - *LSB*) - emul="${emul}ltsmip" - ;; - esac - case `$FILECMD conftest.$ac_objext` in - *N32*) - emul="${emul}n32" - ;; - esac - LD="${LD-ld} -m $emul" - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ -s390*-*linux*|s390*-*tpf*|sparc*-*linux*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. Note that the listed cases only cover the - # situations where additional linker options are needed (such as when - # doing 32-bit compilation for a host where ld defaults to 64-bit, or - # vice versa); the common cases where no linker options are needed do - # not appear in the list. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `$FILECMD conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - case `$FILECMD conftest.o` in - *x86-64*) - LD="${LD-ld} -m elf32_x86_64" - ;; - *) - LD="${LD-ld} -m elf_i386" - ;; - esac - ;; - powerpc64le-*linux*) - LD="${LD-ld} -m elf32lppclinux" - ;; - powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - powerpcle-*linux*) - LD="${LD-ld} -m elf64lppc" - ;; - powerpc-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*|s390*-*tpf*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -belf" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 -printf %s "checking whether the C compiler needs -belf... " >&6; } -if test ${lt_cv_cc_needs_belf+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - lt_cv_cc_needs_belf=yes -else case e in #( - e) lt_cv_cc_needs_belf=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 -printf "%s\n" "$lt_cv_cc_needs_belf" >&6; } - if test yes != "$lt_cv_cc_needs_belf"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS=$SAVE_CFLAGS - fi - ;; -*-*solaris*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo 'int i;' > conftest.$ac_ext - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - case `$FILECMD conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) - case $host in - i?86-*-solaris*|x86_64-*-solaris*) - LD="${LD-ld} -m elf_x86_64" - ;; - sparc*-*-solaris*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - # GNU ld 2.21 introduced _sol2 emulations. Use them if available. - if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then - LD=${LD-ld}_sol2 - fi - ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -esac - -need_locks=$enable_libtool_lock - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. -set dummy ${ac_tool_prefix}mt; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_MANIFEST_TOOL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$MANIFEST_TOOL"; then - ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL -if test -n "$MANIFEST_TOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 -printf "%s\n" "$MANIFEST_TOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_MANIFEST_TOOL"; then - ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL - # Extract the first word of "mt", so it can be a program name with args. -set dummy mt; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_MANIFEST_TOOL"; then - ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL -if test -n "$ac_ct_MANIFEST_TOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 -printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_MANIFEST_TOOL" = x; then - MANIFEST_TOOL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL - fi -else - MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" -fi - -test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 -printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } -if test ${lt_cv_path_mainfest_tool+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_path_mainfest_tool=no - echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 - $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out - cat conftest.err >&5 - if $GREP 'Manifest Tool' conftest.out > /dev/null; then - lt_cv_path_mainfest_tool=yes - fi - rm -f conftest* ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 -printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; } -if test yes != "$lt_cv_path_mainfest_tool"; then - MANIFEST_TOOL=: -fi - - - - - - - case $host_os in - rhapsody* | darwin*) - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. -set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_DSYMUTIL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$DSYMUTIL"; then - ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -DSYMUTIL=$ac_cv_prog_DSYMUTIL -if test -n "$DSYMUTIL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 -printf "%s\n" "$DSYMUTIL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_DSYMUTIL"; then - ac_ct_DSYMUTIL=$DSYMUTIL - # Extract the first word of "dsymutil", so it can be a program name with args. -set dummy dsymutil; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_DSYMUTIL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_DSYMUTIL"; then - ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL -if test -n "$ac_ct_DSYMUTIL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 -printf "%s\n" "$ac_ct_DSYMUTIL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_DSYMUTIL" = x; then - DSYMUTIL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DSYMUTIL=$ac_ct_DSYMUTIL - fi -else - DSYMUTIL="$ac_cv_prog_DSYMUTIL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. -set dummy ${ac_tool_prefix}nmedit; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_NMEDIT+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$NMEDIT"; then - ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -NMEDIT=$ac_cv_prog_NMEDIT -if test -n "$NMEDIT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 -printf "%s\n" "$NMEDIT" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_NMEDIT"; then - ac_ct_NMEDIT=$NMEDIT - # Extract the first word of "nmedit", so it can be a program name with args. -set dummy nmedit; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_NMEDIT+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_NMEDIT"; then - ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_NMEDIT="nmedit" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT -if test -n "$ac_ct_NMEDIT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 -printf "%s\n" "$ac_ct_NMEDIT" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_NMEDIT" = x; then - NMEDIT=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - NMEDIT=$ac_ct_NMEDIT - fi -else - NMEDIT="$ac_cv_prog_NMEDIT" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. -set dummy ${ac_tool_prefix}lipo; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_LIPO+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$LIPO"; then - ac_cv_prog_LIPO="$LIPO" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_LIPO="${ac_tool_prefix}lipo" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -LIPO=$ac_cv_prog_LIPO -if test -n "$LIPO"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 -printf "%s\n" "$LIPO" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_LIPO"; then - ac_ct_LIPO=$LIPO - # Extract the first word of "lipo", so it can be a program name with args. -set dummy lipo; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_LIPO+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_LIPO"; then - ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_LIPO="lipo" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO -if test -n "$ac_ct_LIPO"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 -printf "%s\n" "$ac_ct_LIPO" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_LIPO" = x; then - LIPO=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - LIPO=$ac_ct_LIPO - fi -else - LIPO="$ac_cv_prog_LIPO" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. -set dummy ${ac_tool_prefix}otool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_OTOOL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$OTOOL"; then - ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_OTOOL="${ac_tool_prefix}otool" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -OTOOL=$ac_cv_prog_OTOOL -if test -n "$OTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 -printf "%s\n" "$OTOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OTOOL"; then - ac_ct_OTOOL=$OTOOL - # Extract the first word of "otool", so it can be a program name with args. -set dummy otool; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_OTOOL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_OTOOL"; then - ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_OTOOL="otool" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL -if test -n "$ac_ct_OTOOL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 -printf "%s\n" "$ac_ct_OTOOL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_OTOOL" = x; then - OTOOL=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OTOOL=$ac_ct_OTOOL - fi -else - OTOOL="$ac_cv_prog_OTOOL" -fi - - if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. -set dummy ${ac_tool_prefix}otool64; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_OTOOL64+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$OTOOL64"; then - ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -OTOOL64=$ac_cv_prog_OTOOL64 -if test -n "$OTOOL64"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 -printf "%s\n" "$OTOOL64" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_prog_OTOOL64"; then - ac_ct_OTOOL64=$OTOOL64 - # Extract the first word of "otool64", so it can be a program name with args. -set dummy otool64; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_OTOOL64+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_OTOOL64"; then - ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_exec_ext in '' $ac_executable_extensions; do - if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then - ac_cv_prog_ac_ct_OTOOL64="otool64" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 -if test -n "$ac_ct_OTOOL64"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 -printf "%s\n" "$ac_ct_OTOOL64" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_ct_OTOOL64" = x; then - OTOOL64=":" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - OTOOL64=$ac_ct_OTOOL64 - fi -else - OTOOL64="$ac_cv_prog_OTOOL64" -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 -printf %s "checking for -single_module linker flag... " >&6; } -if test ${lt_cv_apple_cc_single_mod+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_apple_cc_single_mod=no - if test -z "$LT_MULTI_MODULE"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - rm -rf libconftest.dylib* - echo "int foo(void){return 1;}" > conftest.c - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ --dynamiclib -Wl,-single_module conftest.c" >&5 - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err - _lt_result=$? - # If there is a non-empty error log, and "single_module" - # appears in it, assume the flag caused a linker warning - if test -s conftest.err && $GREP single_module conftest.err; then - cat conftest.err >&5 - # Otherwise, if the output was created with a 0 exit code from - # the compiler, it worked. - elif test -f libconftest.dylib && test 0 = "$_lt_result"; then - lt_cv_apple_cc_single_mod=yes - else - cat conftest.err >&5 - fi - rm -rf libconftest.dylib* - rm -f conftest.* - fi ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 -printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; } - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 -printf %s "checking for -exported_symbols_list linker flag... " >&6; } -if test ${lt_cv_ld_exported_symbols_list+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - lt_cv_ld_exported_symbols_list=yes -else case e in #( - e) lt_cv_ld_exported_symbols_list=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 -printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; } - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 -printf %s "checking for -force_load linker flag... " >&6; } -if test ${lt_cv_ld_force_load+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_ld_force_load=no - cat > conftest.c << _LT_EOF -int forced_loaded() { return 2;} -_LT_EOF - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 - echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5 - $AR $AR_FLAGS libconftest.a conftest.o 2>&5 - echo "$RANLIB libconftest.a" >&5 - $RANLIB libconftest.a 2>&5 - cat > conftest.c << _LT_EOF -int main() { return 0;} -_LT_EOF - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err - _lt_result=$? - if test -s conftest.err && $GREP force_load conftest.err; then - cat conftest.err >&5 - elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then - lt_cv_ld_force_load=yes - else - cat conftest.err >&5 - fi - rm -f conftest.err libconftest.a conftest conftest.c - rm -rf conftest.dSYM - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 -printf "%s\n" "$lt_cv_ld_force_load" >&6; } - case $host_os in - rhapsody* | darwin1.[012]) - _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - darwin*) - case $MACOSX_DEPLOYMENT_TARGET,$host in - 10.[012],*|,*powerpc*-darwin[5-8]*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - *) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test yes = "$lt_cv_apple_cc_single_mod"; then - _lt_dar_single_mod='$single_module' - fi - if test yes = "$lt_cv_ld_exported_symbols_list"; then - _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' - else - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' - fi - if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then - _lt_dsymutil='~$DSYMUTIL $lib || :' - else - _lt_dsymutil= - fi - ;; - esac - -# func_munge_path_list VARIABLE PATH -# ----------------------------------- -# VARIABLE is name of variable containing _space_ separated list of -# directories to be munged by the contents of PATH, which is string -# having a format: -# "DIR[:DIR]:" -# string "DIR[ DIR]" will be prepended to VARIABLE -# ":DIR[:DIR]" -# string "DIR[ DIR]" will be appended to VARIABLE -# "DIRP[:DIRP]::[DIRA:]DIRA" -# string "DIRP[ DIRP]" will be prepended to VARIABLE and string -# "DIRA[ DIRA]" will be appended to VARIABLE -# "DIR[:DIR]" -# VARIABLE will be replaced by "DIR[ DIR]" -func_munge_path_list () -{ - case x$2 in - x) - ;; - *:) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" - ;; - x:*) - eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" - ;; - *::*) - eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" - eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" - ;; - *) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" - ;; - esac -} - -ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default -" -if test "x$ac_cv_header_dlfcn_h" = xyes -then : - printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h - -fi - - - - - -# Set options - - - - enable_dlopen=no - - - enable_win32_dll=no - - - # Check whether --enable-shared was given. -if test ${enable_shared+y} -then : - enableval=$enable_shared; p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else case e in #( - e) enable_shared=yes ;; -esac -fi - - - - - - - - - - # Check whether --enable-static was given. -if test ${enable_static+y} -then : - enableval=$enable_static; p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else case e in #( - e) enable_static=yes ;; -esac -fi - - - - - - - - - - -# Check whether --with-pic was given. -if test ${with_pic+y} -then : - withval=$with_pic; lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for lt_pkg in $withval; do - IFS=$lt_save_ifs - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else case e in #( - e) pic_mode=default ;; -esac -fi - - - - - - - - - # Check whether --enable-fast-install was given. -if test ${enable_fast_install+y} -then : - enableval=$enable_fast_install; p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS=$lt_save_ifs - ;; - esac -else case e in #( - e) enable_fast_install=yes ;; -esac -fi - - - - - - - - - shared_archive_member_spec= -case $host,$enable_shared in -power*-*-aix[5-9]*,yes) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 -printf %s "checking which variant of shared library versioning to provide... " >&6; } - -# Check whether --with-aix-soname was given. -if test ${with_aix_soname+y} -then : - withval=$with_aix_soname; case $withval in - aix|svr4|both) - ;; - *) - as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 - ;; - esac - lt_cv_with_aix_soname=$with_aix_soname -else case e in #( - e) if test ${lt_cv_with_aix_soname+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_with_aix_soname=aix ;; -esac -fi - - with_aix_soname=$lt_cv_with_aix_soname ;; -esac -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 -printf "%s\n" "$with_aix_soname" >&6; } - if test aix != "$with_aix_soname"; then - # For the AIX way of multilib, we name the shared archive member - # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', - # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. - # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, - # the AIX toolchain works better with OBJECT_MODE set (default 32). - if test 64 = "${OBJECT_MODE-32}"; then - shared_archive_member_spec=shr_64 - else - shared_archive_member_spec=shr - fi - fi - ;; -*) - with_aix_soname=aix - ;; -esac - - - - - - - - - - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS=$ltmain - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -test -z "$LN_S" && LN_S="ln -s" - - - - - - - - - - - - - - -if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 -printf %s "checking for objdir... " >&6; } -if test ${lt_cv_objdir+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 -printf "%s\n" "$lt_cv_objdir" >&6; } -objdir=$lt_cv_objdir - - - - - -printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h - - - - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Global variables: -ofile=libtool -can_build_shared=yes - -# All known linkers require a '.a' archive for static linking (except MSVC and -# ICC, which need '.lib'). -libext=a - -with_gnu_ld=$lt_cv_prog_gnu_ld - -old_CC=$CC -old_CFLAGS=$CFLAGS - -# Set sane defaults for various variables -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$LD" && LD=ld -test -z "$ac_objext" && ac_objext=o - -func_cc_basename $compiler -cc_basename=$func_cc_basename_result - - -# Only perform the check for file, if the check method requires it -test -z "$MAGIC_CMD" && MAGIC_CMD=file -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 -printf %s "checking for ${ac_tool_prefix}file... " >&6; } -if test ${lt_cv_path_MAGIC_CMD+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD=$MAGIC_CMD - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/${ac_tool_prefix}file"; then - lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD=$lt_cv_path_MAGIC_CMD - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS=$lt_save_ifs - MAGIC_CMD=$lt_save_MAGIC_CMD - ;; -esac ;; -esac -fi - -MAGIC_CMD=$lt_cv_path_MAGIC_CMD -if test -n "$MAGIC_CMD"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -printf "%s\n" "$MAGIC_CMD" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - - - -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5 -printf %s "checking for file... " >&6; } -if test ${lt_cv_path_MAGIC_CMD+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $MAGIC_CMD in -[\\/*] | ?:[\\/]*) - lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD=$MAGIC_CMD - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" - for ac_dir in $ac_dummy; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/file"; then - lt_cv_path_MAGIC_CMD=$ac_dir/"file" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD=$lt_cv_path_MAGIC_CMD - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS=$lt_save_ifs - MAGIC_CMD=$lt_save_MAGIC_CMD - ;; -esac ;; -esac -fi - -MAGIC_CMD=$lt_cv_path_MAGIC_CMD -if test -n "$MAGIC_CMD"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 -printf "%s\n" "$MAGIC_CMD" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - else - MAGIC_CMD=: - fi -fi - - fi - ;; -esac - -# Use C for the default configuration in the libtool script - -lt_save_CC=$CC -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -objext=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - - - - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - -# Save the default compiler, since it gets overwritten when the other -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. -compiler_DEFAULT=$CC - -# save warnings/boilerplate of simple test code -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$RM conftest* - -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$RM -r conftest* - - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - -lt_prog_compiler_no_builtin_flag= - -if test yes = "$GCC"; then - case $cc_basename in - nvcc*) - lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; - *) - lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; - esac - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 -printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } -if test ${lt_cv_prog_compiler_rtti_exceptions+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_prog_compiler_rtti_exceptions=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_rtti_exceptions=yes - fi - fi - $RM conftest* - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 -printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; } - -if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" -else - : -fi - -fi - - - - - - - lt_prog_compiler_wl= -lt_prog_compiler_pic= -lt_prog_compiler_static= - - - if test yes = "$GCC"; then - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_static='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - fi - lt_prog_compiler_pic='-fPIC' - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - lt_prog_compiler_pic='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the '-m68020' flag to GCC prevents building anything better, - # like '-m68040'. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - lt_prog_compiler_pic='-DDLL_EXPORT' - case $host_os in - os2*) - lt_prog_compiler_static='$wl-static' - ;; - esac - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - ;; - - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - lt_prog_compiler_static= - ;; - - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - ;; - - interix[3-9]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - lt_prog_compiler_can_build_shared=no - enable_shared=no - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - lt_prog_compiler_pic='-fPIC -shared' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic=-Kconform_pic - fi - ;; - - *) - lt_prog_compiler_pic='-fPIC' - ;; - esac - - case $cc_basename in - nvcc*) # Cuda Compiler Driver 2.2 - lt_prog_compiler_wl='-Xlinker ' - if test -n "$lt_prog_compiler_pic"; then - lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" - fi - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - lt_prog_compiler_wl='-Wl,' - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - lt_prog_compiler_static='-Bstatic' - else - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' - fi - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - lt_prog_compiler_pic='-fno-common' - case $cc_basename in - nagfor*) - # NAG Fortran compiler - lt_prog_compiler_wl='-Wl,-Wl,,' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - lt_prog_compiler_pic='-DDLL_EXPORT' - case $host_os in - os2*) - lt_prog_compiler_static='$wl-static' - ;; - esac - ;; - - hpux9* | hpux10* | hpux11*) - lt_prog_compiler_wl='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - lt_prog_compiler_pic='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - lt_prog_compiler_static='$wl-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - lt_prog_compiler_wl='-Wl,' - # PIC (with -KPIC) is the default. - lt_prog_compiler_static='-non_shared' - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - # old Intel for x86_64, which still supported -KPIC. - ecc*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-static' - ;; - # icc used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - icc* | ifort*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - # Lahey Fortran 8.1. - lf95*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='--shared' - lt_prog_compiler_static='--static' - ;; - nagfor*) - # NAG Fortran compiler - lt_prog_compiler_wl='-Wl,-Wl,,' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - tcc*) - # Fabrice Bellard et al's Tiny C Compiler - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - ccc*) - lt_prog_compiler_wl='-Wl,' - # All Alpha code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - xl* | bgxl* | bgf* | mpixl*) - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-qpic' - lt_prog_compiler_static='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | $SED 5q` in - *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='' - ;; - *Sun\ F* | *Sun*Fortran*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Qoption ld ' - ;; - *Sun\ C*) - # Sun C 5.9 - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - lt_prog_compiler_wl='-Wl,' - ;; - *Intel*\ [CF]*Compiler*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fPIC' - lt_prog_compiler_static='-static' - ;; - *Portland\ Group*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-fpic' - lt_prog_compiler_static='-Bstatic' - ;; - esac - ;; - esac - ;; - - newsos6) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - lt_prog_compiler_pic='-fPIC -shared' - ;; - - osf3* | osf4* | osf5*) - lt_prog_compiler_wl='-Wl,' - # All OSF/1 code is PIC. - lt_prog_compiler_static='-non_shared' - ;; - - rdos*) - lt_prog_compiler_static='-non_shared' - ;; - - solaris*) - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - case $cc_basename in - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) - lt_prog_compiler_wl='-Qoption ld ';; - *) - lt_prog_compiler_wl='-Wl,';; - esac - ;; - - sunos4*) - lt_prog_compiler_wl='-Qoption ld ' - lt_prog_compiler_pic='-PIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - lt_prog_compiler_pic='-Kconform_pic' - lt_prog_compiler_static='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_pic='-KPIC' - lt_prog_compiler_static='-Bstatic' - ;; - - unicos*) - lt_prog_compiler_wl='-Wl,' - lt_prog_compiler_can_build_shared=no - ;; - - uts4*) - lt_prog_compiler_pic='-pic' - lt_prog_compiler_static='-Bstatic' - ;; - - *) - lt_prog_compiler_can_build_shared=no - ;; - esac - fi - -case $host_os in - # For platforms that do not support PIC, -DPIC is meaningless: - *djgpp*) - lt_prog_compiler_pic= - ;; - *) - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" - ;; -esac - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 -printf %s "checking for $compiler option to produce PIC... " >&6; } -if test ${lt_cv_prog_compiler_pic+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 -printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; } -lt_prog_compiler_pic=$lt_cv_prog_compiler_pic - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$lt_prog_compiler_pic"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 -printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } -if test ${lt_cv_prog_compiler_pic_works+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_prog_compiler_pic_works=no - ac_outfile=conftest.$ac_objext - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_pic_works=yes - fi - fi - $RM conftest* - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 -printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; } - -if test yes = "$lt_cv_prog_compiler_pic_works"; then - case $lt_prog_compiler_pic in - "" | " "*) ;; - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; - esac -else - lt_prog_compiler_pic= - lt_prog_compiler_can_build_shared=no -fi - -fi - - - - - - - - - - - -# -# Check to make sure the static flag actually works. -# -wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 -printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } -if test ${lt_cv_prog_compiler_static_works+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_prog_compiler_static_works=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS $lt_tmp_static_flag" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler_static_works=yes - fi - else - lt_cv_prog_compiler_static_works=yes - fi - fi - $RM -r conftest* - LDFLAGS=$save_LDFLAGS - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 -printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; } - -if test yes = "$lt_cv_prog_compiler_static_works"; then - : -else - lt_prog_compiler_static= -fi - - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if test ${lt_cv_prog_compiler_c_o+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_prog_compiler_c_o=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 -printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; } -if test ${lt_cv_prog_compiler_c_o+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_prog_compiler_c_o=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&5 - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - lt_cv_prog_compiler_c_o=yes - fi - fi - chmod u+w . 2>&5 - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 -printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; } - - - - -hard_links=nottested -if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then - # do not overwrite the value of need_locks provided by the user - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 -printf %s "checking if we can lock with hard links... " >&6; } - hard_links=yes - $RM conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 -printf "%s\n" "$hard_links" >&6; } - if test no = "$hard_links"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 -printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} - need_locks=warn - fi -else - need_locks=no -fi - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 -printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } - - runpath_var= - allow_undefined_flag= - always_export_symbols=no - archive_cmds= - archive_expsym_cmds= - compiler_needs_object=no - enable_shared_with_static_runtimes=no - export_dynamic_flag_spec= - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - hardcode_automatic=no - hardcode_direct=no - hardcode_direct_absolute=no - hardcode_libdir_flag_spec= - hardcode_libdir_separator= - hardcode_minus_L=no - hardcode_shlibpath_var=unsupported - inherit_rpath=no - link_all_deplibs=unknown - module_cmds= - module_expsym_cmds= - old_archive_from_new_cmds= - old_archive_from_expsyms_cmds= - thread_safe_flag_spec= - whole_archive_flag_spec= - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - include_expsyms= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ' (' and ')$', so one must not match beginning or - # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', - # as well as any symbol that contains 'd'. - exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. - extract_expsyms_cmds= - - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++ or Intel C++ Compiler. - if test yes != "$GCC"; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) - with_gnu_ld=yes - ;; - openbsd* | bitrig*) - with_gnu_ld=no - ;; - esac - - ld_shlibs=yes - - # On some targets, GNU ld is compatible enough with the native linker - # that we're better off using the native interface for both. - lt_use_gnu_ld_interface=no - if test yes = "$with_gnu_ld"; then - case $host_os in - aix*) - # The AIX port of GNU ld has always aspired to compatibility - # with the native linker. However, as the warning in the GNU ld - # block says, versions before 2.19.5* couldn't really create working - # shared libraries, regardless of the interface used. - case `$LD -v 2>&1` in - *\ \(GNU\ Binutils\)\ 2.19.5*) ;; - *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; - *\ \(GNU\ Binutils\)\ [3-9]*) ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - fi - - if test yes = "$lt_use_gnu_ld_interface"; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='$wl' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - export_dynamic_flag_spec='$wl--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then - whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - else - whole_archive_flag_spec= - fi - supports_anon_versioning=no - case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in - *GNU\ gold*) supports_anon_versioning=yes ;; - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[3-9]*) - # On AIX/PPC, the GNU linker is very broken - if test ia64 != "$host_cpu"; then - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: the GNU linker, at least up to release 2.19, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to install binutils -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. -*** You will then need to restart the configuration process. - -_LT_EOF - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='' - ;; - m68k) - archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - allow_undefined_flag=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - else - ld_shlibs=no - fi - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, - # as there is no search path for DLLs. - hardcode_libdir_flag_spec='-L$libdir' - export_dynamic_flag_spec='$wl--export-all-symbols' - allow_undefined_flag=unsupported - always_export_symbols=no - enable_shared_with_static_runtimes=yes - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' - exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file, use it as - # is; otherwise, prepend EXPORTS... - archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - ld_shlibs=no - fi - ;; - - haiku*) - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - link_all_deplibs=yes - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - shrext_cmds=.dll - archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - enable_shared_with_static_runtimes=yes - file_list_spec='@' - ;; - - interix[3-9]*) - hardcode_direct=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='$wl-rpath,$libdir' - export_dynamic_flag_spec='$wl-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) - tmp_diet=no - if test linux-dietlibc = "$host_os"; then - case $cc_basename in - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) - esac - fi - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ - && test no = "$tmp_diet" - then - tmp_addflag=' $pic_flag' - tmp_sharedflag='-shared' - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group f77 and f90 compilers - whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - lf95*) # Lahey Fortran 8.1 - whole_archive_flag_spec= - tmp_sharedflag='--shared' ;; - nagfor*) # NAGFOR 5.3 - tmp_sharedflag='-Wl,-shared' ;; - xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) - tmp_sharedflag='-qmkshrobj' - tmp_addflag= ;; - nvcc*) # Cuda Compiler Driver 2.2 - whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - compiler_needs_object=yes - ;; - esac - case `$CC -V 2>&1 | $SED 5q` in - *Sun\ C*) # Sun C 5.9 - whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - compiler_needs_object=yes - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - esac - archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - - if test yes = "$supports_anon_versioning"; then - archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' - fi - - case $cc_basename in - tcc*) - export_dynamic_flag_spec='-rdynamic' - ;; - xlf* | bgf* | bgxlf* | mpixlf*) - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself - whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' - if test yes = "$supports_anon_versioning"; then - archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' - fi - ;; - esac - else - ld_shlibs=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) - ld_shlibs=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - ;; - - sunos4*) - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - *) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - ld_shlibs=no - fi - ;; - esac - - if test no = "$ld_shlibs"; then - runpath_var= - hardcode_libdir_flag_spec= - export_dynamic_flag_spec= - whole_archive_flag_spec= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - allow_undefined_flag=unsupported - always_export_symbols=yes - archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - hardcode_minus_L=yes - if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - hardcode_direct=unsupported - fi - ;; - - aix[4-9]*) - if test ia64 = "$host_cpu"; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag= - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to GNU nm, but means don't demangle to AIX nm. - # Without the "-l" option, or with the "-B" option, AIX nm treats - # weak defined symbols like other global defined symbols, whereas - # GNU nm marks them as "W". - # While the 'weak' keyword is ignored in the Export File, we need - # it in the Import File for the 'aix-soname' feature, so we have - # to replace the "-B" option with "-P" for AIX nm. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' - else - export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # have runtime linking enabled, and use it for executables. - # For shared libraries, we enable/disable runtime linking - # depending on the kind of the shared library created - - # when "with_aix_soname,aix_use_runtimelinking" is: - # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables - # "aix,yes" lib.so shared, rtl:yes, for executables - # lib.a static archive - # "both,no" lib.so.V(shr.o) shared, rtl:yes - # lib.a(lib.so.V) shared, rtl:no, for executables - # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a(lib.so.V) shared, rtl:no - # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a static archive - case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) - for ld_flag in $LDFLAGS; do - if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then - aix_use_runtimelinking=yes - break - fi - done - if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then - # With aix-soname=svr4, we create the lib.so.V shared archives only, - # so we don't have lib.a shared libs to link our executables. - # We have to force runtime linking in this case. - aix_use_runtimelinking=yes - LDFLAGS="$LDFLAGS -Wl,-brtl" - fi - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - archive_cmds='' - hardcode_direct=yes - hardcode_direct_absolute=yes - hardcode_libdir_separator=':' - link_all_deplibs=yes - file_list_spec='$wl-f,' - case $with_aix_soname,$aix_use_runtimelinking in - aix,*) ;; # traditional, no import file - svr4,* | *,yes) # use import file - # The Import File defines what to hardcode. - hardcode_direct=no - hardcode_direct_absolute=no - ;; - esac - - if test yes = "$GCC"; then - case $host_os in aix4.[012]|aix4.[012].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`$CC -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - hardcode_direct=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - hardcode_minus_L=yes - hardcode_libdir_flag_spec='-L$libdir' - hardcode_libdir_separator= - fi - ;; - esac - shared_flag='-shared' - if test yes = "$aix_use_runtimelinking"; then - shared_flag="$shared_flag "'$wl-G' - fi - # Need to ensure runtime linking is disabled for the traditional - # shared library, or the linker may eventually find shared libraries - # /with/ Import File - we do not want to mix them. - shared_flag_aix='-shared' - shared_flag_svr4='-shared $wl-G' - else - # not using gcc - if test ia64 = "$host_cpu"; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test yes = "$aix_use_runtimelinking"; then - shared_flag='$wl-G' - else - shared_flag='$wl-bM:SRE' - fi - shared_flag_aix='$wl-bM:SRE' - shared_flag_svr4='$wl-G' - fi - fi - - export_dynamic_flag_spec='$wl-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - always_export_symbols=yes - if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - allow_undefined_flag='-berok' - # Determine the default libpath from the value encoded in an - # empty executable. - if test set = "${lt_cv_aix_libpath+set}"; then - aix_libpath=$lt_cv_aix_libpath -else - if test ${lt_cv_aix_libpath_+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - - lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }' - lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=/usr/lib:/lib - fi - ;; -esac -fi - - aix_libpath=$lt_cv_aix_libpath_ -fi - - hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" - archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag - else - if test ia64 = "$host_cpu"; then - hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' - allow_undefined_flag="-z nodefs" - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - if test set = "${lt_cv_aix_libpath+set}"; then - aix_libpath=$lt_cv_aix_libpath -else - if test ${lt_cv_aix_libpath_+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - - lt_aix_libpath_sed=' - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }' - lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - if test -z "$lt_cv_aix_libpath_"; then - lt_cv_aix_libpath_=/usr/lib:/lib - fi - ;; -esac -fi - - aix_libpath=$lt_cv_aix_libpath_ -fi - - hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - no_undefined_flag=' $wl-bernotok' - allow_undefined_flag=' $wl-berok' - if test yes = "$with_gnu_ld"; then - # We only use this code for GNU lds that support --whole-archive. - whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - whole_archive_flag_spec='$convenience' - fi - archive_cmds_need_lc=yes - archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' - # -brtl affects multiple linker settings, -berok does not and is overridden later - compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' - if test svr4 != "$with_aix_soname"; then - # This is similar to how AIX traditionally builds its shared libraries. - archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' - fi - if test aix != "$with_aix_soname"; then - archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' - else - # used by -dlpreopen to get the symbols - archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' - fi - archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' - fi - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - archive_expsym_cmds='' - ;; - m68k) - archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - ;; - esac - ;; - - bsdi[45]*) - export_dynamic_flag_spec=-rdynamic - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++ or Intel C++ Compiler. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - case $cc_basename in - cl* | icl*) - # Native MSVC or ICC - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - always_export_symbols=yes - file_list_spec='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' - archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then - cp "$export_symbols" "$output_objdir/$soname.def"; - echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; - else - $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, )='true' - enable_shared_with_static_runtimes=yes - exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' - # Don't use ranlib - old_postinstall_cmds='chmod 644 $oldlib' - postlink_cmds='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile=$lt_outputfile.exe - lt_tool_outputfile=$lt_tool_outputfile.exe - ;; - esac~ - if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # Assume MSVC and ICC wrapper - hardcode_libdir_flag_spec=' ' - allow_undefined_flag=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - old_archive_from_new_cmds='true' - # FIXME: Should let the user specify the lib program. - old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' - enable_shared_with_static_runtimes=yes - ;; - esac - ;; - - darwin* | rhapsody*) - - - archive_cmds_need_lc=no - hardcode_direct=no - hardcode_automatic=yes - hardcode_shlibpath_var=unsupported - if test yes = "$lt_cv_ld_force_load"; then - whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' - - else - whole_archive_flag_spec='' - fi - link_all_deplibs=yes - allow_undefined_flag=$_lt_dar_allow_undefined - case $cc_basename in - ifort*|nagfor*) _lt_dar_can_shared=yes ;; - *) _lt_dar_can_shared=$GCC ;; - esac - if test yes = "$_lt_dar_can_shared"; then - output_verbose_link_cmd=func_echo_all - archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" - module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" - archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" - module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" - - else - ld_shlibs=no - fi - - ;; - - dgux*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2.*) - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly* | midnightbsd*) - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - hpux9*) - if test yes = "$GCC"; then - archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - else - archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - fi - hardcode_libdir_flag_spec='$wl+b $wl$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - export_dynamic_flag_spec='$wl-E' - ;; - - hpux10*) - if test yes,no = "$GCC,$with_gnu_ld"; then - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test no = "$with_gnu_ld"; then - hardcode_libdir_flag_spec='$wl+b $wl$libdir' - hardcode_libdir_separator=: - hardcode_direct=yes - hardcode_direct_absolute=yes - export_dynamic_flag_spec='$wl-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - fi - ;; - - hpux11*) - if test yes,no = "$GCC,$with_gnu_ld"; then - case $host_cpu in - hppa*64*) - archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - - # Older versions of the 11.00 compiler do not understand -b yet - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 -printf %s "checking if $CC understands -b... " >&6; } -if test ${lt_cv_prog_compiler__b+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_prog_compiler__b=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -b" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&5 - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - lt_cv_prog_compiler__b=yes - fi - else - lt_cv_prog_compiler__b=yes - fi - fi - $RM -r conftest* - LDFLAGS=$save_LDFLAGS - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 -printf "%s\n" "$lt_cv_prog_compiler__b" >&6; } - -if test yes = "$lt_cv_prog_compiler__b"; then - archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' -else - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' -fi - - ;; - esac - fi - if test no = "$with_gnu_ld"; then - hardcode_libdir_flag_spec='$wl+b $wl$libdir' - hardcode_libdir_separator=: - - case $host_cpu in - hppa*64*|ia64*) - hardcode_direct=no - hardcode_shlibpath_var=no - ;; - *) - hardcode_direct=yes - hardcode_direct_absolute=yes - export_dynamic_flag_spec='$wl-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - hardcode_minus_L=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test yes = "$GCC"; then - archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - # Try to use the -exported_symbol ld option, if it does not - # work, assume that -exports_file does not work either and - # implicitly export all symbols. - # This should be the same for all languages, so no per-tag cache variable. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 -printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; } -if test ${lt_cv_irix_exported_symbol+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int foo (void) { return 0; } -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - lt_cv_irix_exported_symbol=yes -else case e in #( - e) lt_cv_irix_exported_symbol=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 -printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; } - if test yes = "$lt_cv_irix_exported_symbol"; then - archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' - fi - else - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' - fi - archive_cmds_need_lc='no' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - hardcode_libdir_separator=: - inherit_rpath=yes - link_all_deplibs=yes - ;; - - linux*) - case $cc_basename in - tcc*) - # Fabrice Bellard et al's Tiny C Compiler - ld_shlibs=yes - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - hardcode_shlibpath_var=no - ;; - - newsos6) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - hardcode_libdir_separator=: - hardcode_shlibpath_var=no - ;; - - *nto* | *qnx*) - ;; - - openbsd* | bitrig*) - if test -f /usr/libexec/ld.so; then - hardcode_direct=yes - hardcode_shlibpath_var=no - hardcode_direct_absolute=yes - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' - hardcode_libdir_flag_spec='$wl-rpath,$libdir' - export_dynamic_flag_spec='$wl-E' - else - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - hardcode_libdir_flag_spec='$wl-rpath,$libdir' - fi - else - ld_shlibs=no - fi - ;; - - os2*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - allow_undefined_flag=unsupported - shrext_cmds=.dll - archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - enable_shared_with_static_runtimes=yes - file_list_spec='@' - ;; - - osf3*) - if test yes = "$GCC"; then - allow_undefined_flag=' $wl-expect_unresolved $wl\*' - archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - fi - archive_cmds_need_lc='no' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - hardcode_libdir_separator=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test yes = "$GCC"; then - allow_undefined_flag=' $wl-expect_unresolved $wl\*' - archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' - else - allow_undefined_flag=' -expect_unresolved \*' - archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' - - # Both c and cxx compiler support -rpath directly - hardcode_libdir_flag_spec='-rpath $libdir' - fi - archive_cmds_need_lc='no' - hardcode_libdir_separator=: - ;; - - solaris*) - no_undefined_flag=' -z defs' - if test yes = "$GCC"; then - wlarc='$wl' - archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - else - case `$CC -V 2>&1` in - *"Compilers 5.0"*) - wlarc='' - archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' - ;; - *) - wlarc='$wl' - archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - ;; - esac - fi - hardcode_libdir_flag_spec='-R$libdir' - hardcode_shlibpath_var=no - case $host_os in - solaris2.[0-5] | solaris2.[0-5].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands '-z linker_flag'. GCC discards it without '$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test yes = "$GCC"; then - whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' - else - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' - fi - ;; - esac - link_all_deplibs=yes - ;; - - sunos4*) - if test sequent = "$host_vendor"; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - hardcode_libdir_flag_spec='-L$libdir' - hardcode_direct=yes - hardcode_minus_L=yes - hardcode_shlibpath_var=no - ;; - - sysv4) - case $host_vendor in - sni) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' - reload_cmds='$CC -r -o $output$reload_objs' - hardcode_direct=no - ;; - motorola) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_direct=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - hardcode_shlibpath_var=no - ;; - - sysv4.3*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - export_dynamic_flag_spec='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_shlibpath_var=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - ld_shlibs=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) - no_undefined_flag='$wl-z,text' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - runpath_var='LD_RUN_PATH' - - if test yes = "$GCC"; then - archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We CANNOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - no_undefined_flag='$wl-z,text' - allow_undefined_flag='$wl-z,nodefs' - archive_cmds_need_lc=no - hardcode_shlibpath_var=no - hardcode_libdir_flag_spec='$wl-R,$libdir' - hardcode_libdir_separator=':' - link_all_deplibs=yes - export_dynamic_flag_spec='$wl-Bexport' - runpath_var='LD_RUN_PATH' - - if test yes = "$GCC"; then - archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - hardcode_libdir_flag_spec='-L$libdir' - hardcode_shlibpath_var=no - ;; - - *) - ld_shlibs=no - ;; - esac - - if test sni = "$host_vendor"; then - case $host in - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - export_dynamic_flag_spec='$wl-Blargedynsym' - ;; - esac - fi - fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 -printf "%s\n" "$ld_shlibs" >&6; } -test no = "$ld_shlibs" && can_build_shared=no - -with_gnu_ld=$with_gnu_ld - - - - - - - - - - - - - - - -# -# Do we need to explicitly link libc? -# -case "x$archive_cmds_need_lc" in -x|xyes) - # Assume -lc should be added - archive_cmds_need_lc=yes - - if test yes,yes = "$GCC,$enable_shared"; then - case $archive_cmds in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 -printf %s "checking whether -lc should be explicitly linked in... " >&6; } -if test ${lt_cv_archive_cmds_need_lc+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) $RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 - (eval $ac_compile) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$lt_prog_compiler_wl - pic_flag=$lt_prog_compiler_pic - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$allow_undefined_flag - allow_undefined_flag= - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 - (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } - then - lt_cv_archive_cmds_need_lc=no - else - lt_cv_archive_cmds_need_lc=yes - fi - allow_undefined_flag=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 -printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; } - archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc - ;; - esac - fi - ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 -printf %s "checking dynamic linker characteristics... " >&6; } - -if test yes = "$GCC"; then - case $host_os in - darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; - *) lt_awk_arg='/^libraries:/' ;; - esac - case $host_os in - mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; - *) lt_sed_strip_eq='s|=/|/|g' ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` - case $lt_search_path_spec in - *\;*) - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` - ;; - *) - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` - ;; - esac - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary... - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - # ...but if some path component already ends with the multilib dir we assume - # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). - case "$lt_multi_os_dir; $lt_search_path_spec " in - "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) - lt_multi_os_dir= - ;; - esac - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" - elif test -n "$lt_multi_os_dir"; then - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' -BEGIN {RS = " "; FS = "/|\n";} { - lt_foo = ""; - lt_count = 0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo = "/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[lt_foo]++; } - if (lt_freq[lt_foo] == 1) { print lt_foo; } -}'` - # AWK program above erroneously prepends '/' to C:/dos/paths - # for these hosts. - case $host_os in - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ - $SED 's|/\([A-Za-z]:\)|\1|g'` ;; - esac - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=.so -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - - - -case $host_os in -aix3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='$libname$release$shared_ext$major' - ;; - -aix[4-9]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test ia64 = "$host_cpu"; then - # AIX 5 supports IA64 - library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line '#! .'. This would cause the generated library to - # depend on '.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[01] | aix4.[01].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # Using Import Files as archive members, it is possible to support - # filename-based versioning of shared library archives on AIX. While - # this would work for both with and without runtime linking, it will - # prevent static linking of such archives. So we do filename-based - # shared library versioning with .so extension only, which is used - # when both runtime linking and shared linking is enabled. - # Unfortunately, runtime linking may impact performance, so we do - # not want this to be the default eventually. Also, we use the - # versioned .so libs for executables only if there is the -brtl - # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. - # To allow for filename-based versioning support, we need to create - # libNAME.so.V as an archive file, containing: - # *) an Import File, referring to the versioned filename of the - # archive as well as the shared archive member, telling the - # bitwidth (32 or 64) of that shared object, and providing the - # list of exported symbols of that shared object, eventually - # decorated with the 'weak' keyword - # *) the shared object with the F_LOADONLY flag set, to really avoid - # it being seen by the linker. - # At run time we better use the real file rather than another symlink, - # but for link time we create the symlink libNAME.so -> libNAME.so.V - - case $with_aix_soname,$aix_use_runtimelinking in - # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - aix,yes) # traditional libtool - dynamic_linker='AIX unversionable lib.so' - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - aix,no) # traditional AIX only - dynamic_linker='AIX lib.a(lib.so.V)' - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - ;; - svr4,*) # full svr4 only - dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,yes) # both, prefer svr4 - dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # unpreferred sharedlib libNAME.a needs extra handling - postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' - postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,no) # both, prefer aix - dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling - postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' - postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' - ;; - esac - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - case $host_cpu in - powerpc) - # Since July 2007 AmigaOS4 officially supports .so libraries. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - m68k) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - esac - ;; - -beos*) - library_names_spec='$libname$shared_ext' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[45]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - - case $GCC,$cc_basename in - yes,*) - # gcc - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" - ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - ;; - esac - dynamic_linker='Win32 ld.exe' - ;; - - *,cl* | *,icl*) - # Native MSVC or ICC - libname_spec='$name' - soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' - library_names_spec='$libname.dll.lib' - - case $build_os in - mingw*) - sys_lib_search_path_spec= - lt_save_ifs=$IFS - IFS=';' - for lt_path in $LIB - do - IFS=$lt_save_ifs - # Let DOS variable expansion print the short 8.3 style file name. - lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` - sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" - done - IFS=$lt_save_ifs - # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` - ;; - cygwin*) - # Convert to unix form, then to dos form, then back to unix form - # but this time dos style (no spaces!) so that the unix form looks - # like /cygdrive/c/PROGRA~1:/cygdr... - sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` - sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` - sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - ;; - *) - sys_lib_search_path_spec=$LIB - if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then - # It is most probably a Windows format PATH. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # FIXME: find the short name or the path components, as spaces are - # common. (e.g. "Program Files" -> "PROGRA~1") - ;; - esac - - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - dynamic_linker='Win32 link.exe' - ;; - - *) - # Assume MSVC and ICC wrapper - library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' - dynamic_linker='Win32 ld.exe' - ;; - esac - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' - soname_spec='$libname$release$major$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' - - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd* | dragonfly* | midnightbsd*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[23].*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2.*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[01]* | freebsdelf3.[01]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ - freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -haiku*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - dynamic_linker="$host_os runtime_loader" - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LIBRARY_PATH - shlibpath_overrides_runpath=no - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - if test 32 = "$HPUX_IA64_MODE"; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - sys_lib_dlsearch_path_spec=/usr/lib/hpux32 - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - sys_lib_dlsearch_path_spec=/usr/lib/hpux64 - fi - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555, ... - postinstall_cmds='chmod 555 $lib' - # or fails outright, so override atomically: - install_override_mode=555 - ;; - -interix[3-9]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test yes = "$lt_cv_prog_gnu_ld"; then - version_type=linux # correct to gnu/linux during the next big refactor - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" - sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -linux*android*) - version_type=none # Android doesn't support versioned libraries. - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext' - soname_spec='$libname$release$shared_ext' - finish_cmds= - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - dynamic_linker='Android linker' - # Don't embed -rpath directories since the linker doesn't support them. - hardcode_libdir_flag_spec='-L$libdir' - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - - # Some binutils ld are patched to set DT_RUNPATH - if test ${lt_cv_shlibpath_overrides_runpath+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) lt_cv_shlibpath_overrides_runpath=no - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ - LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null -then : - lt_cv_shlibpath_overrides_runpath=yes -fi -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - ;; -esac -fi - - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Add ABI-specific directories to the system library path. - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" - - # Ideally, we could use ldconfig to report *all* directores which are - # searched for libraries, however this is still not possible. Aside from not - # being certain /sbin/ldconfig is available, command - # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, - # even though it is searched at run-time. Try to do the best guess by - # appending ld.so.conf contents (and includes) to the search path. - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -*nto* | *qnx*) - version_type=qnx - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='ldqnx.so' - ;; - -openbsd* | bitrig*) - version_type=sunos - sys_lib_dlsearch_path_spec=/usr/lib - need_lib_prefix=no - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - need_version=no - else - need_version=yes - fi - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -os2*) - libname_spec='$name' - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - # OS/2 can only load a DLL with a base name of 8 characters or less. - soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; - v=$($ECHO $release$versuffix | tr -d .-); - n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); - $ECHO $n$v`$shared_ext' - library_names_spec='${libname}_dll.$libext' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=BEGINLIBPATH - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test yes = "$with_gnu_ld"; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec; then - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' - soname_spec='$libname$shared_ext.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=sco - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - if test yes = "$with_gnu_ld"; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -tpf*) - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -uts4*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 -printf "%s\n" "$dynamic_linker" >&6; } -test no = "$dynamic_linker" && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test yes = "$GCC"; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then - sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec -fi - -if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then - sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec -fi - -# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... -configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec - -# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code -func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" - -# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool -configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 -printf %s "checking how to hardcode library paths into programs... " >&6; } -hardcode_action= -if test -n "$hardcode_libdir_flag_spec" || - test -n "$runpath_var" || - test yes = "$hardcode_automatic"; then - - # We can hardcode non-existent directories. - if test no != "$hardcode_direct" && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && - test no != "$hardcode_minus_L"; then - # Linking always hardcodes the temporary library directory. - hardcode_action=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - hardcode_action=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - hardcode_action=unsupported -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 -printf "%s\n" "$hardcode_action" >&6; } - -if test relink = "$hardcode_action" || - test yes = "$inherit_rpath"; then - # Fast installation is not supported - enable_fast_install=no -elif test yes = "$shlibpath_overrides_runpath" || - test no = "$enable_shared"; then - # Fast installation is not necessary - enable_fast_install=needless -fi - - - - - - - if test yes != "$enable_dlopen"; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen=load_add_on - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32* | cegcc*) - lt_cv_dlopen=LoadLibrary - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen=dlopen - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -printf %s "checking for dlopen in -ldl... " >&6; } -if test ${ac_cv_lib_dl_dlopen+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (void); -int -main (void) -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_dl_dlopen=yes -else case e in #( - e) ac_cv_lib_dl_dlopen=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes -then : - lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else case e in #( - e) - lt_cv_dlopen=dyld - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; -esac -fi - - ;; - - tpf*) - # Don't try to run any link tests for TPF. We know it's impossible - # because TPF is a cross-compiler, and we know how we open DSOs. - lt_cv_dlopen=dlopen - lt_cv_dlopen_libs= - lt_cv_dlopen_self=no - ;; - - *) - ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" -if test "x$ac_cv_func_shl_load" = xyes -then : - lt_cv_dlopen=shl_load -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 -printf %s "checking for shl_load in -ldld... " >&6; } -if test ${ac_cv_lib_dld_shl_load+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char shl_load (void); -int -main (void) -{ -return shl_load (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_dld_shl_load=yes -else case e in #( - e) ac_cv_lib_dld_shl_load=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 -printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; } -if test "x$ac_cv_lib_dld_shl_load" = xyes -then : - lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld -else case e in #( - e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" -if test "x$ac_cv_func_dlopen" = xyes -then : - lt_cv_dlopen=dlopen -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 -printf %s "checking for dlopen in -ldl... " >&6; } -if test ${ac_cv_lib_dl_dlopen+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-ldl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (void); -int -main (void) -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_dl_dlopen=yes -else case e in #( - e) ac_cv_lib_dl_dlopen=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 -printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } -if test "x$ac_cv_lib_dl_dlopen" = xyes -then : - lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 -printf %s "checking for dlopen in -lsvld... " >&6; } -if test ${ac_cv_lib_svld_dlopen+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lsvld $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char dlopen (void); -int -main (void) -{ -return dlopen (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_svld_dlopen=yes -else case e in #( - e) ac_cv_lib_svld_dlopen=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 -printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; } -if test "x$ac_cv_lib_svld_dlopen" = xyes -then : - lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 -printf %s "checking for dld_link in -ldld... " >&6; } -if test ${ac_cv_lib_dld_dld_link+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-ldld $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char dld_link (void); -int -main (void) -{ -return dld_link (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_dld_dld_link=yes -else case e in #( - e) ac_cv_lib_dld_dld_link=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 -printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; } -if test "x$ac_cv_lib_dld_dld_link" = xyes -then : - lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld -fi - - ;; -esac -fi - - ;; -esac -fi - - ;; -esac -fi - - ;; -esac -fi - - ;; -esac -fi - - ;; - esac - - if test no = "$lt_cv_dlopen"; then - enable_dlopen=no - else - enable_dlopen=yes - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS=$CPPFLAGS - test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS=$LDFLAGS - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS=$LIBS - LIBS="$lt_cv_dlopen_libs $LIBS" - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 -printf %s "checking whether a program can dlopen itself... " >&6; } -if test ${lt_cv_dlopen_self+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test yes = "$cross_compiling"; then : - lt_cv_dlopen_self=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<_LT_EOF -#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisibility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -} -_LT_EOF - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self=no - fi -fi -rm -fr conftest* - - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 -printf "%s\n" "$lt_cv_dlopen_self" >&6; } - - if test yes = "$lt_cv_dlopen_self"; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 -printf %s "checking whether a statically linked program can dlopen itself... " >&6; } -if test ${lt_cv_dlopen_self_static+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test yes = "$cross_compiling"; then : - lt_cv_dlopen_self_static=cross -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<_LT_EOF -#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisibility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -} -_LT_EOF - if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 - (eval $ac_link) 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi -fi -rm -fr conftest* - - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -printf "%s\n" "$lt_cv_dlopen_self_static" >&6; } - fi - - CPPFLAGS=$save_CPPFLAGS - LDFLAGS=$save_LDFLAGS - LIBS=$save_LIBS - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi - - - - - - - - - - - - - - - - - -striplib= -old_striplib= -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 -printf %s "checking whether stripping libraries is possible... " >&6; } -if test -z "$STRIP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -else - if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - old_striplib="$STRIP --strip-debug" - striplib="$STRIP --strip-unneeded" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - else - case $host_os in - darwin*) - # FIXME - insert some real tests, host_os isn't really good enough - striplib="$STRIP -x" - old_striplib="$STRIP -S" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - ;; - freebsd*) - if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then - old_striplib="$STRIP --strip-debug" - striplib="$STRIP --strip-unneeded" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - fi - ;; - *) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - ;; - esac - fi -fi - - - - - - - - - - - - - # Report what library types will actually be built - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 -printf %s "checking if libtool supports shared libraries... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 -printf "%s\n" "$can_build_shared" >&6; } - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -printf %s "checking whether to build shared libraries... " >&6; } - test no = "$can_build_shared" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test yes = "$enable_shared" && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - - aix[4-9]*) - if test ia64 != "$host_cpu"; then - case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in - yes,aix,yes) ;; # shared object as lib.so file only - yes,svr4,*) ;; # shared object as lib.so archive member only - yes,*) enable_static=no ;; # shared object in lib.a archive as well - esac - fi - ;; - esac - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -printf "%s\n" "$enable_shared" >&6; } - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -printf %s "checking whether to build static libraries... " >&6; } - # Make sure either enable_shared or enable_static is yes. - test yes = "$enable_shared" || enable_static=yes - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 -printf "%s\n" "$enable_static" >&6; } - - - - -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -CC=$lt_save_CC - - - - - - - - - - - - - - - - ac_config_commands="$ac_config_commands libtool" - - - - -# Only expand once: - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 -printf %s "checking for a sed that does not truncate output... " >&6; } -if test ${ac_cv_path_SED+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ - for ac_i in 1 2 3 4 5 6 7; do - ac_script="$ac_script$as_nl$ac_script" - done - echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed - { ac_script=; unset ac_script;} - if test -z "$SED"; then - ac_path_SED_found=false - # Loop through the user's path and test for each of PROGNAME-LIST - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in sed gsed - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_SED="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_SED" || continue -# Check for GNU ac_path_SED and select it if it is found. - # Check for GNU $ac_path_SED -case `"$ac_path_SED" --version 2>&1` in #( -*GNU*) - ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; -#( -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" '' >> "conftest.nl" - "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break - diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break - as_fn_arith $ac_count + 1 && ac_count=$as_val - if test $ac_count -gt ${ac_path_SED_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_SED="$ac_path_SED" - ac_path_SED_max=$ac_count - fi - # 10*(2^10) chars as input seems more than enough - test $ac_count -gt 10 && break - done - rm -f conftest.in conftest.tmp conftest.nl conftest.out;; -esac - - $ac_path_SED_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi -else - ac_cv_path_SED=$SED -fi - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -printf "%s\n" "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed - - - - - - - - -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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_PKG_CONFIG+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -PKG_CONFIG=$ac_cv_path_PKG_CONFIG -if test -n "$PKG_CONFIG"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 -printf "%s\n" "$PKG_CONFIG" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG -if test -n "$ac_pt_PKG_CONFIG"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 -printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_PKG_CONFIG" = x; then - PKG_CONFIG="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 -printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } - if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - PKG_CONFIG="" - fi -fi -if test -z "$PKG_CONFIG"; then - as_fn_error $? "pkg-config not found" "$LINENO" 5 -fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 -printf %s "checking whether ln -s works... " >&6; } -LN_S=$as_ln_s -if test "$LN_S" = "ln -s"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -printf "%s\n" "no, using $LN_S" >&6; } -fi - - -# Extract the first word of "nroff", so it can be a program name with args. -set dummy nroff; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_HAVE_nroff+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$HAVE_nroff"; then - ac_cv_prog_HAVE_nroff="$HAVE_nroff" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_HAVE_nroff="true" - printf "%s\n" "$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_prog_HAVE_nroff" && ac_cv_prog_HAVE_nroff="false" -fi ;; -esac -fi -HAVE_nroff=$ac_cv_prog_HAVE_nroff -if test -n "$HAVE_nroff"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_nroff" >&5 -printf "%s\n" "$HAVE_nroff" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -MANDOC=-man -MAN_FLAGS= -if $HAVE_nroff; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for manual formatting macros" >&5 -printf %s "checking for manual formatting macros... " >&6; } - if test ${mc_cv_mandoc+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - nroff -mandoc < /dev/null > /dev/null 2>&1 - if test $? = 0; then - mc_cv_mandoc=-mandoc - else - mc_cv_mandoc=-man - fi - ;; -esac -fi - - MANDOC=$mc_cv_mandoc - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANDOC" >&5 -printf "%s\n" "$MANDOC" >&6; } - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for option to disable ANSI color in manuals" >&5 -printf %s "checking for option to disable ANSI color in manuals... " >&6; } - if test ${mc_cv_man_nocolor+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - nroff -c < /dev/null > /dev/null 2>&1 - if test $? = 0; then - mc_cv_man_nocolor=-c - else - mc_cv_man_nocolor= - fi - ;; -esac -fi - - MAN_FLAGS=$mc_cv_man_nocolor - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${MAN_NOCOLOR-none}" >&5 -printf "%s\n" "${MAN_NOCOLOR-none}" >&6; } - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if nroff accepts -Tlatin1 or -Tascii" >&5 -printf %s "checking if nroff accepts -Tlatin1 or -Tascii... " >&6; } - if test ${mc_cv_nroff_tascii+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - mc_cv_nroff_tascii= - nroff -Tlatin1 < /dev/null > /dev/null 2>&1 /dev/null - if test $? = 0; then - mc_cv_nroff_tascii=-Tlatin1 - else - nroff -Tascii < /dev/null > /dev/null 2>&1 /dev/null - if test $? = 0; then - mc_cv_nroff_tascii=-Tascii - fi - fi - ;; -esac -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${mc_cv_nroff_tascii-no}" >&5 -printf "%s\n" "${mc_cv_nroff_tascii-no}" >&6; } - MAN_FLAGS="$MAN_FLAGS $mc_cv_nroff_tascii" -fi - - - - -# Extract the first word of "file", so it can be a program name with args. -set dummy file; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_HAVE_FILECMD+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$HAVE_FILECMD"; then - ac_cv_prog_HAVE_FILECMD="$HAVE_FILECMD" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_HAVE_FILECMD="true" - printf "%s\n" "$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_prog_HAVE_FILECMD" && ac_cv_prog_HAVE_FILECMD="false" -fi ;; -esac -fi -HAVE_FILECMD=$ac_cv_prog_HAVE_FILECMD -if test -n "$HAVE_FILECMD"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HAVE_FILECMD" >&5 -printf "%s\n" "$HAVE_FILECMD" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -if $HAVE_FILECMD; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -z option to file command" >&5 -printf %s "checking for -z option to file command... " >&6; } - if test ${mc_cv_file_z+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - file -z . > /dev/null 2>&1 - if test $? = 0; then - mc_cv_file_z=yes - else - mc_cv_file_z=no - fi - ;; -esac -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mc_cv_file_z" >&5 -printf "%s\n" "$mc_cv_file_z" >&6; } - - if test x$mc_cv_file_z = xyes; then - -printf "%s\n" "#define USE_FILE_CMD 1" >>confdefs.h - - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: The file command doesn't accept the -z option and will not be used" >&5 -printf "%s\n" "$as_me: WARNING: The file command doesn't accept the -z option and will not be used" >&2;} - fi - - if test x$mc_cv_file_z = xyes; then - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -b option to file command" >&5 -printf %s "checking for -b option to file command... " >&6; } - if test ${mc_cv_file_b+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - file -b . > /dev/null 2>&1 - if test $? = 0; then - mc_cv_file_b=yes - else - mc_cv_file_b=no - fi - ;; -esac -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mc_cv_file_b" >&5 -printf "%s\n" "$mc_cv_file_b" >&6; } - - if test x$mc_cv_file_b = xyes; then - -printf "%s\n" "#define FILE_B \"-b \"" >>confdefs.h - - fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -L option to file command" >&5 -printf %s "checking for -L option to file command... " >&6; } - if test ${mc_cv_file_L+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - file -L . > /dev/null 2>&1 - if test $? = 0; then - mc_cv_file_L=yes - else - mc_cv_file_L=no - fi - ;; -esac -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mc_cv_file_L" >&5 -printf "%s\n" "$mc_cv_file_L" >&6; } - - if test x$mc_cv_file_L = xyes; then - -printf "%s\n" "#define FILE_L \"-L \"" >>confdefs.h - - else - -printf "%s\n" "#define FILE_L \"\"" >>confdefs.h - - fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -S option to file command" >&5 -printf %s "checking for -S option to file command... " >&6; } - if test ${mc_cv_file_S+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - file -S . > /dev/null 2>&1 - if test $? = 0; then - mc_cv_file_S=yes - else - mc_cv_file_S=no - fi - ;; -esac -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mc_cv_file_S" >&5 -printf "%s\n" "$mc_cv_file_S" >&6; } - - if test x$mc_cv_file_S = xyes; then - -printf "%s\n" "#define FILE_S \"-S \"" >>confdefs.h - - else - -printf "%s\n" "#define FILE_S \"\"" >>confdefs.h - - fi - fi -fi - - - -if test -n "$ac_tool_prefix"; then - for ac_prog in gindent indent - 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_INDENT+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$INDENT"; then - ac_cv_prog_INDENT="$INDENT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_INDENT="$ac_tool_prefix$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -INDENT=$ac_cv_prog_INDENT -if test -n "$INDENT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5 -printf "%s\n" "$INDENT" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$INDENT" && break - done -fi -if test -z "$INDENT"; then - ac_ct_INDENT=$INDENT - for ac_prog in gindent indent -do - # Extract the first word of "$ac_prog", so it can be a program name with args. -set dummy $ac_prog; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_prog_ac_ct_INDENT+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -n "$ac_ct_INDENT"; then - ac_cv_prog_ac_ct_INDENT="$ac_ct_INDENT" # Let the user override the test. -else -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_INDENT="$ac_prog" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - -fi ;; -esac -fi -ac_ct_INDENT=$ac_cv_prog_ac_ct_INDENT -if test -n "$ac_ct_INDENT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_INDENT" >&5 -printf "%s\n" "$ac_ct_INDENT" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - test -n "$ac_ct_INDENT" && break -done - - if test "x$ac_ct_INDENT" = x; then - INDENT="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - INDENT=$ac_ct_INDENT - fi -fi - - - - # Check whether --enable-tests was given. -if test ${enable_tests+y} -then : - enableval=$enable_tests; -fi - - - - if test x"$enable_tests" = "xno"; then - tests_msg="no" - else - -pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.10" >&5 -printf %s "checking for check >= 0.9.10... " >&6; } - -if test -n "$CHECK_CFLAGS"; then - pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.10\""; } >&5 - ($PKG_CONFIG --exists --print-errors "check >= 0.9.10") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.10" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$CHECK_LIBS"; then - pkg_cv_CHECK_LIBS="$CHECK_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.10\""; } >&5 - ($PKG_CONFIG --exists --print-errors "check >= 0.9.10") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.10" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 - CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.10" 2>&1` - else - CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.10" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$CHECK_PKG_ERRORS" >&5 - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'Check' testing framework not found. Check your environment" >&5 -printf "%s\n" "$as_me: WARNING: 'Check' testing framework not found. Check your environment" >&2;} - tests_msg="no ('Check' testing framework not found)" - - if test x"$enable_tests" = "xyes"; then - as_fn_error $? "You explicitly specified '--enable-tests', but this requirement cannot be met." "$LINENO" 5 - fi - -elif test $pkg_failed = untried; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'Check' testing framework not found. Check your environment" >&5 -printf "%s\n" "$as_me: WARNING: 'Check' testing framework not found. Check your environment" >&2;} - tests_msg="no ('Check' testing framework not found)" - - if test x"$enable_tests" = "xyes"; then - as_fn_error $? "You explicitly specified '--enable-tests', but this requirement cannot be met." "$LINENO" 5 - fi - -else - CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS - CHECK_LIBS=$pkg_cv_CHECK_LIBS - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - - have_check=yes - tests_msg="yes" - -fi - - - fi - if test x"$have_check" = "xyes"; then - HAVE_TESTS_TRUE= - HAVE_TESTS_FALSE='#' -else - HAVE_TESTS_TRUE='#' - HAVE_TESTS_FALSE= -fi - - if test x"$have_check" = "xyes" -then : - -printf "%s\n" "#define HAVE_TESTS 1" >>confdefs.h - -fi - - ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" " - #include - -" -if test "x$ac_cv_type_sighandler_t" = xyes -then : - -printf "%s\n" "#define HAVE_SIGHANDLER_T 1" >>confdefs.h - - -fi - - - - - - - - -# Check whether --with-glib_static was given. -if test ${with_glib_static+y} -then : - withval=$with_glib_static; -fi - - - glib_found=no - -pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.32" >&5 -printf %s "checking for glib-2.0 >= 2.32... " >&6; } - -if test -n "$GLIB_CFLAGS"; then - pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32\""; } >&5 - ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.32" 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" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.32\""; } >&5 - ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.32") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.32" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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.32" 2>&1` - else - GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.32" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$GLIB_PKG_ERRORS" >&5 - - : -elif test $pkg_failed = untried; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - : -else - GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS - GLIB_LIBS=$pkg_cv_GLIB_LIBS - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - glib_found=yes -fi - if test x"$glib_found" = xno; then - as_fn_error $? "glib-2.0 not found or version too old (must be >= 2.32)" "$LINENO" 5 - fi - - - - - g_module_supported="" - - found_gmodule=no - -pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmodule-no-export-2.0 >= 2.32" >&5 -printf %s "checking for gmodule-no-export-2.0 >= 2.32... " >&6; } - -if test -n "$GMODULE_CFLAGS"; then - pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-no-export-2.0 >= 2.32\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gmodule-no-export-2.0 >= 2.32") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-no-export-2.0 >= 2.32" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$GMODULE_LIBS"; then - pkg_cv_GMODULE_LIBS="$GMODULE_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-no-export-2.0 >= 2.32\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gmodule-no-export-2.0 >= 2.32") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-no-export-2.0 >= 2.32" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 - GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-no-export-2.0 >= 2.32" 2>&1` - else - GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-no-export-2.0 >= 2.32" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$GMODULE_PKG_ERRORS" >&5 - - : -elif test $pkg_failed = untried; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - : -else - GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS - GMODULE_LIBS=$pkg_cv_GMODULE_LIBS - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - found_gmodule=yes -fi - if test x"$found_gmodule" = xyes; then - g_module_supported="gmodule-no-export-2.0" - else - -pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gmodule-2.0 >= 2.32" >&5 -printf %s "checking for gmodule-2.0 >= 2.32... " >&6; } - -if test -n "$GMODULE_CFLAGS"; then - pkg_cv_GMODULE_CFLAGS="$GMODULE_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 >= 2.32\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gmodule-2.0 >= 2.32") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GMODULE_CFLAGS=`$PKG_CONFIG --cflags "gmodule-2.0 >= 2.32" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$GMODULE_LIBS"; then - pkg_cv_GMODULE_LIBS="$GMODULE_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gmodule-2.0 >= 2.32\""; } >&5 - ($PKG_CONFIG --exists --print-errors "gmodule-2.0 >= 2.32") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_GMODULE_LIBS=`$PKG_CONFIG --libs "gmodule-2.0 >= 2.32" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 - GMODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gmodule-2.0 >= 2.32" 2>&1` - else - GMODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gmodule-2.0 >= 2.32" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$GMODULE_PKG_ERRORS" >&5 - - : -elif test $pkg_failed = untried; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - : -else - GMODULE_CFLAGS=$pkg_cv_GMODULE_CFLAGS - GMODULE_LIBS=$pkg_cv_GMODULE_LIBS - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - found_gmodule=yes -fi - if test x"$found_gmodule" = xyes; then - g_module_supported="gmodule-2.0" - fi - fi - - case x"$g_module_supported" in - xgmodule-no-export-2.0|xgmodule-2.0) - if test x`$PKG_CONFIG --variable=gmodule_supported "$g_module_supported"` = xtrue; then - -printf "%s\n" "#define HAVE_GMODULE 1" >>confdefs.h - - else - g_module_supported="" - fi - ;; - *) - g_module_supported="" - ;; - esac - - if test x$with_glib_static = xyes; then - new_GLIB_LIBS= - for i in $GLIB_LIBS; do - case x$i in - x-lglib*) - lib=glib ;; - x-lgmodule*) - lib=gmodule ;; - *) - lib= - add="$i" ;; - esac - - if test -n "$lib"; then - lib1=`echo $i | ${SED-sed} 's/^-l//'` - if test -f "$GLIB_LIBDIR/lib${lib1}.a"; then - add="$GLIB_LIBDIR/lib${lib1}.a" - else - if test -f "$GLIB_LIBDIR/lib${lib}.a"; then - add="$GLIB_LIBDIR/lib${lib}.a" - else - as_fn_error $? "Cannot find static $lib" "$LINENO" 5 - fi - fi - fi - new_GLIB_LIBS="$new_GLIB_LIBS $add" - done - GLIB_LIBS="$new_GLIB_LIBS" - 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 -printf %s "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 test ${ac_cv_prog_CPP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) # Double quotes because $CC needs to be expanded - for CPP in "$CC -E" "$CC -E -traditional-cpp" 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. - # 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. */ -#include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else case e in #( - e) # Broken: fails on valid input. -continue ;; -esac -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 case e in #( - e) # Passes both tests. -ac_preproc_ok=: -break ;; -esac -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 - ;; -esac -fi - CPP=$ac_cv_prog_CPP -else - ac_cv_prog_CPP=$CPP -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 -printf "%s\n" "$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. - # 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. */ -#include - Syntax error -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - -else case e in #( - e) # Broken: fails on valid input. -continue ;; -esac -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 case e in #( - e) # Passes both tests. -ac_preproc_ok=: -break ;; -esac -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 case e in #( - e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} -as_fn_error $? "C preprocessor \"$CPP\" fails sanity check -See 'config.log' for more details" "$LINENO" 5; } ;; -esac -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 - - - - - -# Check whether --with-screen was given. -if test ${with_screen+y} -then : - withval=$with_screen; -fi - - - case x$with_screen in - x | xslang) - - with_screen=slang - found_slang=no - -pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for slang >= 2.0" >&5 -printf %s "checking for slang >= 2.0... " >&6; } - -if test -n "$SLANG_CFLAGS"; then - pkg_cv_SLANG_CFLAGS="$SLANG_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"slang >= 2.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "slang >= 2.0") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_SLANG_CFLAGS=`$PKG_CONFIG --cflags "slang >= 2.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$SLANG_LIBS"; then - pkg_cv_SLANG_LIBS="$SLANG_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"slang >= 2.0\""; } >&5 - ($PKG_CONFIG --exists --print-errors "slang >= 2.0") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_SLANG_LIBS=`$PKG_CONFIG --libs "slang >= 2.0" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 - SLANG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "slang >= 2.0" 2>&1` - else - SLANG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "slang >= 2.0" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$SLANG_PKG_ERRORS" >&5 - - : -elif test $pkg_failed = untried; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - : -else - SLANG_CFLAGS=$pkg_cv_SLANG_CFLAGS - SLANG_LIBS=$pkg_cv_SLANG_LIBS - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - found_slang=yes -fi - if test x"$found_slang" = xno; then - as_fn_error $? "S-Lang >= 2.0.0 library not found" "$LINENO" 5 - fi - - MCLIBS="$SLANG_LIBS $MCLIBS" - CPPFLAGS="$SLANG_CFLAGS $CPPFLAGS" - - if test x"$found_slang" = x"yes"; then - - unset ac_cv_lib_termcap_tgoto - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if S-Lang uses termcap" >&5 -printf %s "checking if S-Lang uses termcap... " >&6; } -if test ${mc_cv_slang_termcap+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - ac_save_LIBS="$LIBS" - LIBS="$LIBS -lslang" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include - -int -main (void) -{ -SLtt_get_terminfo(); SLtt_tgetflag((char*)""); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - mc_cv_slang_termcap=no -else case e in #( - e) mc_cv_slang_termcap=yes ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - - LIBS="$ac_save_LIBS" - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mc_cv_slang_termcap" >&5 -printf "%s\n" "$mc_cv_slang_termcap" >&6; } - - if test x"$mc_cv_slang_termcap" = xyes; then - - screen_msg="$screen_msg with termcap database" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using S-Lang screen library with termcap" >&5 -printf "%s\n" "$as_me: using S-Lang screen library with termcap" >&6;} - -printf "%s\n" "#define USE_TERMCAP 1" >>confdefs.h - - - ac_save_LIBS="$LIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgoto" >&5 -printf %s "checking for library containing tgoto... " >&6; } -if test ${ac_cv_search_tgoto+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char tgoto (void); -int -main (void) -{ -return tgoto (); - ; - return 0; -} -_ACEOF -for ac_lib in '' termcap xcurses curses -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_tgoto=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_tgoto+y} -then : - break -fi -done -if test ${ac_cv_search_tgoto+y} -then : - -else case e in #( - e) ac_cv_search_tgoto=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgoto" >&5 -printf "%s\n" "$ac_cv_search_tgoto" >&6; } -ac_res=$ac_cv_search_tgoto -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - MCLIBS="$MCLIBS $ac_cv_search_tgoto" -else case e in #( - e) as_fn_error $? "Could not find a library providing tgoto" "$LINENO" 5 - ;; -esac -fi - - LIBS="$ac_save_LIBS" - - fi - - fi - - screen_type=slang - screen_msg="S-Lang" - - -printf "%s\n" "#define HAVE_SLANG 1" >>confdefs.h - - - ;; - xncurses) - - save_LIBS="$LIBS" - ncursesw_found= - - -# Check whether --with-ncurses-includes was given. -if test ${with_ncurses_includes+y} -then : - withval=$with_ncurses_includes; ac_ncurses_inc_path="$withval" -else case e in #( - e) ac_ncurses_inc_path="" - ;; -esac -fi - - - -# Check whether --with-ncurses-libs was given. -if test ${with_ncurses_libs+y} -then : - withval=$with_ncurses_libs; ac_ncurses_lib_path="$withval" -else case e in #( - e) ac_ncurses_lib_path="" - ;; -esac -fi - - - if test x"$ac_ncurses_inc_path" != x; then - - - ac_ncurses_inc_path=$ac_ncurses_inc_path - ac_ncurses_lib_path=$ac_ncurses_lib_path - - if test x"$ac_ncurses_inc_path" != x; then - ac_ncurses_inc_path="-I"$ac_ncurses_inc_path - fi - - if test x"$ac_ncurses_lib_path" != x; then - ac_ncurses_lib_path="-L"$ac_ncurses_lib_path - fi - - saved_CPPFLAGS="$CPPFLAGS" - saved_LDFLAGS="$LDFLAGS" - CPPFLAGS="$CPPFLAGS $ac_ncurses_inc_path" - LDFLAGS="$LDFLAGS $ac_ncurses_lib_path" - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses/ncurses.h and ncurses/term.h" >&5 -printf %s "checking for ncurses/ncurses.h and ncurses/term.h... " >&6; } - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #include - #include - -int -main (void) -{ -return 0; - ; - return 0; -} - -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - if test x"$ac_ncurses_inc_path" = x; then - ac_ncurses_inc_path="-I/usr/include" - fi - if test x"$ac_ncurses_lib_path" = x; then - ac_ncurses_lib_path="-L/usr/lib" - fi - found_ncurses=yes - -printf "%s\n" "#define HAVE_NCURSES_NCURSES_H 1" >>confdefs.h - - -printf "%s\n" "#define HAVE_NCURSES_TERM_H 1" >>confdefs.h - - -else case e in #( - e) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - found_ncurses=no - error_msg_ncurses="ncurses header not found" - ;; -esac -fi -rm -f conftest.err conftest.i conftest.$ac_ext - - if test x"$found_ncurses" = x"yes"; then - screen_type=ncurses - screen_msg="NCurses" - - -printf "%s\n" "#define HAVE_NCURSES 1" >>confdefs.h - - - MCLIBS="$MCLIBS $ac_ncurses_lib_path" - else - CPPFLAGS="$saved_CPPFLAGS" - LDFLAGS="$saved_LDPFLAGS" - as_fn_error $? "$error_msg_ncurses" "$LINENO" 5 - fi - - - LIBS="$MCLIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing has_colors" >&5 -printf %s "checking for library containing has_colors... " >&6; } -if test ${ac_cv_search_has_colors+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char has_colors (void); -int -main (void) -{ -return has_colors (); - ; - return 0; -} -_ACEOF -for ac_lib in '' ncurses -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_has_colors=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_has_colors+y} -then : - break -fi -done -if test ${ac_cv_search_has_colors+y} -then : - -else case e in #( - e) ac_cv_search_has_colors=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_has_colors" >&5 -printf "%s\n" "$ac_cv_search_has_colors" >&6; } -ac_res=$ac_cv_search_has_colors -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else case e in #( - e) as_fn_error $? "Cannot find ncurses library" "$LINENO" 5 ;; -esac -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing stdscr" >&5 -printf %s "checking for library containing stdscr... " >&6; } -if test ${ac_cv_search_stdscr+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char stdscr (void); -int -main (void) -{ -return stdscr (); - ; - return 0; -} -_ACEOF -for ac_lib in '' tinfo -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_stdscr=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_stdscr+y} -then : - break -fi -done -if test ${ac_cv_search_stdscr+y} -then : - -else case e in #( - e) ac_cv_search_stdscr=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_stdscr" >&5 -printf "%s\n" "$ac_cv_search_stdscr" >&6; } -ac_res=$ac_cv_search_stdscr -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else case e in #( - e) as_fn_error $? "Cannot find a library providing stdscr" "$LINENO" 5 ;; -esac -fi - - MCLIBS="$LIBS" - - screen_type=ncurses - screen_msg="NCurses" - -printf "%s\n" "#define USE_NCURSES 1" >>confdefs.h - - else - LIBS="$MCLIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing addwstr" >&5 -printf %s "checking for library containing addwstr... " >&6; } -if test ${ac_cv_search_addwstr+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char addwstr (void); -int -main (void) -{ -return addwstr (); - ; - return 0; -} -_ACEOF -for ac_lib in '' ncursesw ncurses curses -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_addwstr=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_addwstr+y} -then : - break -fi -done -if test ${ac_cv_search_addwstr+y} -then : - -else case e in #( - e) ac_cv_search_addwstr=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_addwstr" >&5 -printf "%s\n" "$ac_cv_search_addwstr" >&6; } -ac_res=$ac_cv_search_addwstr -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - ncursesw_found=yes -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find ncurses library, that support wide characters" >&5 -printf "%s\n" "$as_me: WARNING: Cannot find ncurses library, that support wide characters" >&2;} ;; -esac -fi - - MCLIBS="$LIBS" - - if test x"$ncursesw_found" = "x"; then - LIBS="$MCLIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing has_colors" >&5 -printf %s "checking for library containing has_colors... " >&6; } -if test ${ac_cv_search_has_colors+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char has_colors (void); -int -main (void) -{ -return has_colors (); - ; - return 0; -} -_ACEOF -for ac_lib in '' ncurses curses -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_has_colors=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_has_colors+y} -then : - break -fi -done -if test ${ac_cv_search_has_colors+y} -then : - -else case e in #( - e) ac_cv_search_has_colors=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_has_colors" >&5 -printf "%s\n" "$ac_cv_search_has_colors" >&6; } -ac_res=$ac_cv_search_has_colors -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else case e in #( - e) as_fn_error $? "Cannot find ncurses library" "$LINENO" 5 ;; -esac -fi - - MCLIBS="$LIBS" - fi - LIBS="$MCLIBS" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing stdscr" >&5 -printf %s "checking for library containing stdscr... " >&6; } -if test ${ac_cv_search_stdscr+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char stdscr (void); -int -main (void) -{ -return stdscr (); - ; - return 0; -} -_ACEOF -for ac_lib in '' tinfow tinfo -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_stdscr=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_stdscr+y} -then : - break -fi -done -if test ${ac_cv_search_stdscr+y} -then : - -else case e in #( - e) ac_cv_search_stdscr=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_stdscr" >&5 -printf "%s\n" "$ac_cv_search_stdscr" >&6; } -ac_res=$ac_cv_search_stdscr -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -else case e in #( - e) as_fn_error $? "Cannot find a library providing stdscr" "$LINENO" 5 ;; -esac -fi - - MCLIBS="$LIBS" - - ncurses_h_found= - for ac_header in ncursesw/curses.h ncurses/curses.h ncurses.h curses.h -do : - as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_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 `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 -_ACEOF - ncurses_h_found=yes; break -fi - -done - - if test x"$ncurses_h_found" = "x"; then - as_fn_error $? "Cannot find ncurses header file" "$LINENO" 5 - fi - - ac_fn_c_check_header_compile "$LINENO" "ncurses/term.h" "ac_cv_header_ncurses_term_h" "$ac_includes_default" -if test "x$ac_cv_header_ncurses_term_h" = xyes -then : - printf "%s\n" "#define HAVE_NCURSES_TERM_H 1" >>confdefs.h - -fi - - - screen_type=ncurses - screen_msg="NCurses" - -printf "%s\n" "#define USE_NCURSES 1" >>confdefs.h - - fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESCDELAY variable" >&5 -printf %s "checking for ESCDELAY variable... " >&6; } -if test ${mc_cv_ncurses_escdelay+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - extern int ESCDELAY; - ESCDELAY = 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - mc_cv_ncurses_escdelay=yes -else case e in #( - e) mc_cv_ncurses_escdelay=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mc_cv_ncurses_escdelay" >&5 -printf "%s\n" "$mc_cv_ncurses_escdelay" >&6; } - if test x"$mc_cv_ncurses_escdelay" = xyes; then - -printf "%s\n" "#define HAVE_ESCDELAY 1" >>confdefs.h - - fi - - ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm" -if test "x$ac_cv_func_resizeterm" = xyes -then : - printf "%s\n" "#define HAVE_RESIZETERM 1" >>confdefs.h - -fi - - LIBS="$save_LIBS" - - ;; - xncursesw) - - save_LIBS="$LIBS" - LIBS= - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing has_colors" >&5 -printf %s "checking for library containing has_colors... " >&6; } -if test ${ac_cv_search_has_colors+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char has_colors (void); -int -main (void) -{ -return has_colors (); - ; - return 0; -} -_ACEOF -for ac_lib in '' ncursesw -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_has_colors=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_has_colors+y} -then : - break -fi -done -if test ${ac_cv_search_has_colors+y} -then : - -else case e in #( - e) ac_cv_search_has_colors=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_has_colors" >&5 -printf "%s\n" "$ac_cv_search_has_colors" >&6; } -ac_res=$ac_cv_search_has_colors -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - MCLIBS="$MCLIBS $LIBS" -else case e in #( - e) as_fn_error $? "Cannot find ncursesw library" "$LINENO" 5 ;; -esac -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing stdscr" >&5 -printf %s "checking for library containing stdscr... " >&6; } -if test ${ac_cv_search_stdscr+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char stdscr (void); -int -main (void) -{ -return stdscr (); - ; - return 0; -} -_ACEOF -for ac_lib in '' tinfow ncursesw -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_stdscr=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_stdscr+y} -then : - break -fi -done -if test ${ac_cv_search_stdscr+y} -then : - -else case e in #( - e) ac_cv_search_stdscr=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_stdscr" >&5 -printf "%s\n" "$ac_cv_search_stdscr" >&6; } -ac_res=$ac_cv_search_stdscr -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - MCLIBS="$MCLIBS $LIBS" -else case e in #( - e) as_fn_error $? "Cannot find a library providing stdscr" "$LINENO" 5 ;; -esac -fi - - - - ncurses_h_found= - for ac_header in ncursesw/curses.h -do : - ac_fn_c_check_header_compile "$LINENO" "ncursesw/curses.h" "ac_cv_header_ncursesw_curses_h" "$ac_includes_default" -if test "x$ac_cv_header_ncursesw_curses_h" = xyes -then : - printf "%s\n" "#define HAVE_NCURSESW_CURSES_H 1" >>confdefs.h - ncursesw_h_found=yes; break -fi - -done - - if test x"$ncursesw_h_found" = "x"; then - as_fn_error $? "Cannot find ncursesw header file" "$LINENO" 5 - fi - - screen_type=ncursesw - screen_msg="NCursesw" - -printf "%s\n" "#define USE_NCURSESW 1" >>confdefs.h - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ESCDELAY variable" >&5 -printf %s "checking for ESCDELAY variable... " >&6; } -if test ${mc_cv_ncursesw_escdelay+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - extern int ESCDELAY; - ESCDELAY = 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - mc_cv_ncursesw_escdelay=yes -else case e in #( - e) mc_cv_ncursesw_escdelay=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mc_cv_ncursesw_escdelay" >&5 -printf "%s\n" "$mc_cv_ncursesw_escdelay" >&6; } - if test x"$mc_cv_ncursesw_escdelay" = xyes; then - -printf "%s\n" "#define HAVE_ESCDELAY 1" >>confdefs.h - - fi - - ac_fn_c_check_func "$LINENO" "resizeterm" "ac_cv_func_resizeterm" -if test "x$ac_cv_func_resizeterm" = xyes -then : - printf "%s\n" "#define HAVE_RESIZETERM 1" >>confdefs.h - -fi - - LIBS="$save_LIBS" - - ;; - *) - as_fn_error $? "Value of the screen library is incorrect" "$LINENO" 5 - ;; - esac - - - - -# Check whether --with-search-engine was given. -if test ${with_search_engine+y} -then : - withval=$with_search_engine; -fi - - - case x$with_search_engine in - xglib) - SEARCH_TYPE="glib-regexp" - ;; - xpcre) - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5 -printf %s "checking lib pcre... " >&6; } - -# Check whether --with-pcre was given. -if test ${with_pcre+y} -then : - withval=$with_pcre; -else case e in #( - e) with_pcre="yes" ;; -esac -fi - -if test ".$with_pcre" = ".no" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 -printf "%s\n" "disabled" >&6; } - -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (testing)" >&5 -printf "%s\n" "(testing)" >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5 -printf %s "checking for pcre_study in -lpcre... " >&6; } -if test ${ac_cv_lib_pcre_pcre_study+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lpcre $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char pcre_study (void); -int -main (void) -{ -return pcre_study (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_pcre_pcre_study=yes -else case e in #( - e) ac_cv_lib_pcre_pcre_study=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5 -printf "%s\n" "$ac_cv_lib_pcre_pcre_study" >&6; } -if test "x$ac_cv_lib_pcre_pcre_study" = xyes -then : - printf "%s\n" "#define HAVE_LIBPCRE 1" >>confdefs.h - - LIBS="-lpcre $LIBS" - -fi - - if test "$ac_cv_lib_pcre_pcre_study" = "yes" ; then - PCRE_LIBS="-lpcre" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5 -printf %s "checking lib pcre... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBS" >&5 -printf "%s\n" "$PCRE_LIBS" >&6; } - - else - OLDLDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$with_pcre/lib" - OLDCPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$with_pcre/include" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5 -printf %s "checking for pcre_compile in -lpcre... " >&6; } -if test ${ac_cv_lib_pcre_pcre_compile+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lpcre $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char pcre_compile (void); -int -main (void) -{ -return pcre_compile (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_pcre_pcre_compile=yes -else case e in #( - e) ac_cv_lib_pcre_pcre_compile=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5 -printf "%s\n" "$ac_cv_lib_pcre_pcre_compile" >&6; } -if test "x$ac_cv_lib_pcre_pcre_compile" = xyes -then : - printf "%s\n" "#define HAVE_LIBPCRE 1" >>confdefs.h - - LIBS="-lpcre $LIBS" - -fi - - CPPFLAGS="$OLDCPPFLAGS" - LDFLAGS="$OLDLDFLAGS" - if test "$ac_cv_lib_pcre_pcre_compile" = "yes" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: .setting PCRE_LIBS -L$with_pcre/lib -lpcre" >&5 -printf "%s\n" ".setting PCRE_LIBS -L$with_pcre/lib -lpcre" >&6; } - PCRE_LIBS="-L$with_pcre/lib -lpcre" - test -d "$with_pcre/include" && PCRE_CFLAGS="-I$with_pcre/include" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5 -printf %s "checking lib pcre... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBS" >&5 -printf "%s\n" "$PCRE_LIBS" >&6; } - - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5 -printf %s "checking lib pcre... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, (WARNING)" >&5 -printf "%s\n" "no, (WARNING)" >&6; } - - fi - fi -fi - - - - - if test x"${PCRE_LIBS}" = x; then - as_fn_error $? "Cannot find pcre library" "$LINENO" 5 - fi - - SEARCH_TYPE="pcre" - - ;; - xpcre2) - - # -# Handle user hints -# -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if PCRE2 is wanted" >&5 -printf %s "checking if PCRE2 is wanted... " >&6; } -pcre2_places="/usr/local /usr /opt/local /sw" - -# Check whether --with-pcre2 was given. -if test ${with_pcre2+y} -then : - withval=$with_pcre2; if test "$withval" != "no" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - if test -d "$withval" - then - pcre2_places="$withval $pcre2_places" - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Sorry, $withval does not exist, checking usual places" >&5 -printf "%s\n" "$as_me: WARNING: Sorry, $withval does not exist, checking usual places" >&2;} - fi -else - pcre2_places="" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } ;; -esac -fi - -# -# Locate PCRE2, if wanted -# -if test -n "${pcre2_places}" -then - # check the user supplied or any other more or less 'standard' place: - # Most UNIX systems : /usr/local and /usr - # MacPorts / Fink on OSX : /opt/local respectively /sw - for PCRE2_HOME in ${pcre2_places} ; do - if test -f "${PCRE2_HOME}/include/pcre2.h"; then break; fi - PCRE2_HOME="" - done - - PCRE2_OLD_LDFLAGS=$LDFLAGS - PCRE2_OLD_CPPFLAGS=$CPPFLAGS - if test -n "${PCRE2_HOME}"; then - LDFLAGS="$LDFLAGS -L${PCRE2_HOME}/lib" - CPPFLAGS="$CPPFLAGS -I${PCRE2_HOME}/include" - 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 - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_8 in -lpcre2-8" >&5 -printf %s "checking for pcre2_compile_8 in -lpcre2-8... " >&6; } -if test ${ac_cv_lib_pcre2_8_pcre2_compile_8+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lpcre2-8 $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char pcre2_compile_8 (void); -int -main (void) -{ -return pcre2_compile_8 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_pcre2_8_pcre2_compile_8=yes -else case e in #( - e) ac_cv_lib_pcre2_8_pcre2_compile_8=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_8_pcre2_compile_8" >&5 -printf "%s\n" "$ac_cv_lib_pcre2_8_pcre2_compile_8" >&6; } -if test "x$ac_cv_lib_pcre2_8_pcre2_compile_8" = xyes -then : - pcre2_cv_libpcre2=yes -else case e in #( - e) pcre2_cv_libpcre2=no ;; -esac -fi - - ac_fn_c_check_header_compile "$LINENO" "pcre2.h" "ac_cv_header_pcre2_h" "#define PCRE2_CODE_UNIT_WIDTH 8 -" -if test "x$ac_cv_header_pcre2_h" = xyes -then : - pcre2_cv_pcre2_h=yes -else case e in #( - e) pcre2_cv_pcre2_h=no ;; -esac -fi - - case "8" in - *16*) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_16 in -lpcre2-16" >&5 -printf %s "checking for pcre2_compile_16 in -lpcre2-16... " >&6; } -if test ${ac_cv_lib_pcre2_16_pcre2_compile_16+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lpcre2-16 $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char pcre2_compile_16 (void); -int -main (void) -{ -return pcre2_compile_16 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_pcre2_16_pcre2_compile_16=yes -else case e in #( - e) ac_cv_lib_pcre2_16_pcre2_compile_16=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_16_pcre2_compile_16" >&5 -printf "%s\n" "$ac_cv_lib_pcre2_16_pcre2_compile_16" >&6; } -if test "x$ac_cv_lib_pcre2_16_pcre2_compile_16" = xyes -then : - pcre2_cv_libpcre2_16=yes -else case e in #( - e) pcre2_cv_libpcre2_16=no ;; -esac -fi - - ac_fn_c_check_header_compile "$LINENO" "pcre2.h" "ac_cv_header_pcre2_h" "#define PCRE2_CODE_UNIT_WIDTH 16 -" -if test "x$ac_cv_header_pcre2_h" = xyes -then : - pcre2_cv_pcre2_16_h=yes -else case e in #( - e) pcre2_cv_pcre2_16_h=no ;; -esac -fi - - if test "$pcre2_cv_libpcre2_16" = "no" || test "$pcre2_cv_pcre2_16_h" = "no"; then - pcre2_cv_libpcre2=no - fi - ;; - esac - case "8" in - *32*) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_32 in -lpcre2-32" >&5 -printf %s "checking for pcre2_compile_32 in -lpcre2-32... " >&6; } -if test ${ac_cv_lib_pcre2_32_pcre2_compile_32+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lpcre2-32 $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char pcre2_compile_32 (void); -int -main (void) -{ -return pcre2_compile_32 (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_pcre2_32_pcre2_compile_32=yes -else case e in #( - e) ac_cv_lib_pcre2_32_pcre2_compile_32=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_32_pcre2_compile_32" >&5 -printf "%s\n" "$ac_cv_lib_pcre2_32_pcre2_compile_32" >&6; } -if test "x$ac_cv_lib_pcre2_32_pcre2_compile_32" = xyes -then : - pcre2_cv_libpcre2_32=yes -else case e in #( - e) pcre2_cv_libpcre2_32=no ;; -esac -fi - - ac_fn_c_check_header_compile "$LINENO" "pcre2.h" "ac_cv_header_pcre2_h" "#define PCRE2_CODE_UNIT_WIDTH 32 -" -if test "x$ac_cv_header_pcre2_h" = xyes -then : - pcre2_cv_pcre2_32_h=yes -else case e in #( - e) pcre2_cv_pcre2_32_h=no ;; -esac -fi - - if test "$pcre2_cv_libpcre2_32" = "no" || test "$pcre2_cv_pcre2_32_h" = "no"; then - pcre2_cv_libpcre2=no - fi - esac - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - - if test "$pcre2_cv_libpcre2" = "yes" && test "$pcre2_cv_pcre2_h" = "yes" - then - # - # If both library and header were found, action-if-found - # - - CPPFLAGS="$CPPFLAGS -I${PCRE2_HOME}/include" - LDFLAGS="$LDFLAGS -L${PCRE2_HOME}/lib" - LIBS="-lpcre2-8 $LIBS" - -printf "%s\n" "#define HAVE_PCRE2 1" >>confdefs.h - - - else - # - # If either header or library was not found, action-if-not-found - # - : - fi -fi - - - if test $pcre2_cv_libpcre2 = yes; then - SEARCH_TYPE="pcre2" - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find pcre2 library, trying pcre one..." >&5 -printf "%s\n" "$as_me: WARNING: Cannot find pcre2 library, trying pcre one..." >&2;} - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5 -printf %s "checking lib pcre... " >&6; } - -# Check whether --with-pcre was given. -if test ${with_pcre+y} -then : - withval=$with_pcre; -else case e in #( - e) with_pcre="yes" ;; -esac -fi - -if test ".$with_pcre" = ".no" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: disabled" >&5 -printf "%s\n" "disabled" >&6; } - -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (testing)" >&5 -printf "%s\n" "(testing)" >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5 -printf %s "checking for pcre_study in -lpcre... " >&6; } -if test ${ac_cv_lib_pcre_pcre_study+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lpcre $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char pcre_study (void); -int -main (void) -{ -return pcre_study (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_pcre_pcre_study=yes -else case e in #( - e) ac_cv_lib_pcre_pcre_study=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5 -printf "%s\n" "$ac_cv_lib_pcre_pcre_study" >&6; } -if test "x$ac_cv_lib_pcre_pcre_study" = xyes -then : - printf "%s\n" "#define HAVE_LIBPCRE 1" >>confdefs.h - - LIBS="-lpcre $LIBS" - -fi - - if test "$ac_cv_lib_pcre_pcre_study" = "yes" ; then - PCRE_LIBS="-lpcre" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5 -printf %s "checking lib pcre... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBS" >&5 -printf "%s\n" "$PCRE_LIBS" >&6; } - - else - OLDLDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$with_pcre/lib" - OLDCPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$with_pcre/include" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5 -printf %s "checking for pcre_compile in -lpcre... " >&6; } -if test ${ac_cv_lib_pcre_pcre_compile+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lpcre $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char pcre_compile (void); -int -main (void) -{ -return pcre_compile (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_pcre_pcre_compile=yes -else case e in #( - e) ac_cv_lib_pcre_pcre_compile=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5 -printf "%s\n" "$ac_cv_lib_pcre_pcre_compile" >&6; } -if test "x$ac_cv_lib_pcre_pcre_compile" = xyes -then : - printf "%s\n" "#define HAVE_LIBPCRE 1" >>confdefs.h - - LIBS="-lpcre $LIBS" - -fi - - CPPFLAGS="$OLDCPPFLAGS" - LDFLAGS="$OLDLDFLAGS" - if test "$ac_cv_lib_pcre_pcre_compile" = "yes" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: .setting PCRE_LIBS -L$with_pcre/lib -lpcre" >&5 -printf "%s\n" ".setting PCRE_LIBS -L$with_pcre/lib -lpcre" >&6; } - PCRE_LIBS="-L$with_pcre/lib -lpcre" - test -d "$with_pcre/include" && PCRE_CFLAGS="-I$with_pcre/include" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5 -printf %s "checking lib pcre... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCRE_LIBS" >&5 -printf "%s\n" "$PCRE_LIBS" >&6; } - - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking lib pcre" >&5 -printf %s "checking lib pcre... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, (WARNING)" >&5 -printf "%s\n" "no, (WARNING)" >&6; } - - fi - fi -fi - - - - - if test x"${PCRE_LIBS}" = x; then - as_fn_error $? "Neither pcre2 nor pcre library found!" "$LINENO" 5 - fi - - SEARCH_TYPE="pcre" - - fi - - ;; - x) - SEARCH_TYPE="glib-regexp" - ;; - *) - as_fn_error $? "Value of the search-engine is incorrect" "$LINENO" 5 - ;; - esac - - if test x"$SEARCH_TYPE" = x"glib-regexp"; then - -printf "%s\n" "#define SEARCH_TYPE_GLIB 1" >>confdefs.h - - else - -printf "%s\n" "#define SEARCH_TYPE_PCRE 1" >>confdefs.h - - fi - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5 -printf %s "checking for X... " >&6; } - - -# Check whether --with-x was given. -if test ${with_x+y} -then : - withval=$with_x; -fi - -# $have_x is 'yes', 'no', 'disabled', or empty when we do not yet know. -if test "x$with_x" = xno; then - # The user explicitly disabled X. - have_x=disabled -else - case $x_includes,$x_libraries in #( - *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( - *,NONE | NONE,*) if test ${ac_cv_have_x+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) # One or both of the vars are not set, and there is no cached value. -ac_x_includes=no -ac_x_libraries=no -# Do we need to do anything special at all? -ac_save_LIBS=$LIBS -LIBS="-lX11 $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main (void) -{ -XrmInitialize () - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - # We can compile and link X programs with no special options. - ac_x_includes= - ac_x_libraries= -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS="$ac_save_LIBS" -# If that didn't work, only try xmkmf and file system searches -# for native compilation. -if test x"$ac_x_includes" = xno && test "$cross_compiling" = no -then : - rm -f -r conftest.dir -if mkdir conftest.dir; then - cd conftest.dir - cat >Imakefile <<'_ACEOF' -incroot: - @echo incroot='${INCROOT}' -usrlibdir: - @echo usrlibdir='${USRLIBDIR}' -libdir: - @echo libdir='${LIBDIR}' -_ACEOF - if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then - # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. - for ac_var in incroot usrlibdir libdir; do - eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" - done - # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. - for ac_extension in a so sl dylib la dll; do - if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && - test -f "$ac_im_libdir/libX11.$ac_extension"; then - ac_im_usrlibdir=$ac_im_libdir; break - fi - done - # Screen out bogus values from the imake configuration. They are - # bogus both because they are the default anyway, and because - # using them would break gcc on systems where it needs fixed includes. - case $ac_im_incroot in - /usr/include) ac_x_includes= ;; - *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; - esac - case $ac_im_usrlibdir in - /usr/lib | /usr/lib64 | /lib | /lib64) ;; - *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; - esac - fi - cd .. - rm -f -r conftest.dir -fi - - # Standard set of common directories for X headers. -# Check X11 before X11Rn because it is often a symlink to the current release. -ac_x_header_dirs=' -/usr/X11/include -/usr/X11R7/include -/usr/X11R6/include -/usr/X11R5/include -/usr/X11R4/include - -/usr/include/X11 -/usr/include/X11R7 -/usr/include/X11R6 -/usr/include/X11R5 -/usr/include/X11R4 - -/usr/local/X11/include -/usr/local/X11R7/include -/usr/local/X11R6/include -/usr/local/X11R5/include -/usr/local/X11R4/include - -/usr/local/include/X11 -/usr/local/include/X11R7 -/usr/local/include/X11R6 -/usr/local/include/X11R5 -/usr/local/include/X11R4 - -/opt/X11/include - -/usr/X386/include -/usr/x386/include -/usr/XFree86/include/X11 - -/usr/include -/usr/local/include -/usr/unsupported/include -/usr/athena/include -/usr/local/x11r5/include -/usr/lpp/Xamples/include - -/usr/openwin/include -/usr/openwin/share/include' - -if test "$ac_x_includes" = no; then - # Guess where to find include files, by looking for Xlib.h. - # First, try using that file with no special directory specified. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - # We can compile using X headers with no special include directory. -ac_x_includes= -else case e in #( - e) for ac_dir in $ac_x_header_dirs; do - if test -r "$ac_dir/X11/Xlib.h"; then - ac_x_includes=$ac_dir - break - fi -done ;; -esac -fi -rm -f conftest.err conftest.i conftest.$ac_ext -fi # $ac_x_includes = no - -if test "$ac_x_libraries" = no; then - # Check for the libraries. - # See if we find them without any special options. - # Don't add to $LIBS permanently. - ac_save_LIBS=$LIBS - LIBS="-lX11 $LIBS" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main (void) -{ -XrmInitialize () - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - LIBS=$ac_save_LIBS -# We can link X programs with no special library path. -ac_x_libraries= -else case e in #( - e) LIBS=$ac_save_LIBS -for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` -do - # Don't even attempt the hair of trying to link an X program! - for ac_extension in a so sl dylib la dll; do - if test -r "$ac_dir/libX11.$ac_extension"; then - ac_x_libraries=$ac_dir - break 2 - fi - done -done ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -fi # $ac_x_libraries = no - -fi -# Record the results. -case $ac_x_includes,$ac_x_libraries in #( - no,* | *,no | *\'*) : - # Didn't find X, or a directory has "'" in its name. - ac_cv_have_x="have_x=no" ;; #( - *) : - # Record where we found X for the cache. - ac_cv_have_x="have_x=yes\ - ac_x_includes='$ac_x_includes'\ - ac_x_libraries='$ac_x_libraries'" ;; -esac ;; -esac -fi -;; #( - *) have_x=yes;; - esac - eval "$ac_cv_have_x" -fi # $with_x != no - -if test "$have_x" != yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 -printf "%s\n" "$have_x" >&6; } - no_x=yes -else - # If each of the values was on the command line, it overrides each guess. - test "x$x_includes" = xNONE && x_includes=$ac_x_includes - test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries - # Update the cache value to reflect the command line values. - ac_cv_have_x="have_x=yes\ - ac_x_includes='$x_includes'\ - ac_x_libraries='$x_libraries'" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 -printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; } -fi - - - - if test "$no_x" = yes; then - # Not all programs may use this symbol, but it does not hurt to define it. - -printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h - - X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= -else - if test -n "$x_includes"; then - X_CFLAGS="$X_CFLAGS -I$x_includes" - fi - - # It would also be nice to do this for all -L options, not just this one. - if test -n "$x_libraries"; then - X_LIBS="$X_LIBS -L$x_libraries" - # For Solaris; some versions of Sun CC require a space after -R and - # others require no space. Words are not sufficient . . . . - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 -printf %s "checking whether -R must be followed by a space... " >&6; } - ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" - ac_xsave_c_werror_flag=$ac_c_werror_flag - ac_c_werror_flag=yes - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - X_LIBS="$X_LIBS -R$x_libraries" -else case e in #( - e) LIBS="$ac_xsave_LIBS -R $x_libraries" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - X_LIBS="$X_LIBS -R $x_libraries" -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 -printf "%s\n" "neither works" >&6; } ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ac_c_werror_flag=$ac_xsave_c_werror_flag - LIBS=$ac_xsave_LIBS - fi - - # Check for system-dependent libraries X programs must link with. - # Do this before checking for the system-independent R6 libraries - # (-lICE), since we may need -lsocket or whatever for X linking. - - if test "$ISC" = yes; then - X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" - else - # Martyn Johnson says this is needed for Ultrix, if the X - # libraries were built with DECnet support. And Karl Berry says - # the Alpha needs dnet_stub (dnet does not exist). - ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char XOpenDisplay (void); -int -main (void) -{ -return XOpenDisplay (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 -printf %s "checking for dnet_ntoa in -ldnet... " >&6; } -if test ${ac_cv_lib_dnet_dnet_ntoa+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-ldnet $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char dnet_ntoa (void); -int -main (void) -{ -return dnet_ntoa (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_dnet_dnet_ntoa=yes -else case e in #( - e) ac_cv_lib_dnet_dnet_ntoa=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 -printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; } -if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes -then : - X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" -fi - - if test $ac_cv_lib_dnet_dnet_ntoa = no; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 -printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; } -if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-ldnet_stub $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char dnet_ntoa (void); -int -main (void) -{ -return dnet_ntoa (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_dnet_stub_dnet_ntoa=yes -else case e in #( - e) ac_cv_lib_dnet_stub_dnet_ntoa=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 -printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } -if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes -then : - X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" -fi - - fi ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$ac_xsave_LIBS" - - # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, - # to get the SysV transport functions. - # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) - # needs -lnsl. - # The nsl library prevents programs from opening the X display - # on Irix 5.2, according to T.E. Dickey. - # The functions gethostbyname, getservbyname, and inet_addr are - # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. - ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" -if test "x$ac_cv_func_gethostbyname" = xyes -then : - -fi - - if test $ac_cv_func_gethostbyname = no; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 -printf %s "checking for gethostbyname in -lnsl... " >&6; } -if test ${ac_cv_lib_nsl_gethostbyname+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lnsl $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char gethostbyname (void); -int -main (void) -{ -return gethostbyname (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_nsl_gethostbyname=yes -else case e in #( - e) ac_cv_lib_nsl_gethostbyname=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 -printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; } -if test "x$ac_cv_lib_nsl_gethostbyname" = xyes -then : - X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" -fi - - if test $ac_cv_lib_nsl_gethostbyname = no; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 -printf %s "checking for gethostbyname in -lbsd... " >&6; } -if test ${ac_cv_lib_bsd_gethostbyname+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lbsd $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char gethostbyname (void); -int -main (void) -{ -return gethostbyname (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_bsd_gethostbyname=yes -else case e in #( - e) ac_cv_lib_bsd_gethostbyname=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 -printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; } -if test "x$ac_cv_lib_bsd_gethostbyname" = xyes -then : - X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" -fi - - fi - fi - - # lieder@skyler.mavd.honeywell.com says without -lsocket, - # socket/setsockopt and other routines are undefined under SCO ODT - # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary - # on later versions), says Simon Leinen: it contains gethostby* - # variants that don't use the name server (or something). -lsocket - # must be given before -lnsl if both are needed. We assume that - # if connect needs -lnsl, so does gethostbyname. - ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" -if test "x$ac_cv_func_connect" = xyes -then : - -fi - - if test $ac_cv_func_connect = no; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 -printf %s "checking for connect in -lsocket... " >&6; } -if test ${ac_cv_lib_socket_connect+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lsocket $X_EXTRA_LIBS $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char connect (void); -int -main (void) -{ -return connect (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_socket_connect=yes -else case e in #( - e) ac_cv_lib_socket_connect=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 -printf "%s\n" "$ac_cv_lib_socket_connect" >&6; } -if test "x$ac_cv_lib_socket_connect" = xyes -then : - X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" -fi - - fi - - # Guillermo Gomez says -lposix is necessary on A/UX. - ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" -if test "x$ac_cv_func_remove" = xyes -then : - -fi - - if test $ac_cv_func_remove = no; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 -printf %s "checking for remove in -lposix... " >&6; } -if test ${ac_cv_lib_posix_remove+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lposix $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char remove (void); -int -main (void) -{ -return remove (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_posix_remove=yes -else case e in #( - e) ac_cv_lib_posix_remove=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 -printf "%s\n" "$ac_cv_lib_posix_remove" >&6; } -if test "x$ac_cv_lib_posix_remove" = xyes -then : - X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" -fi - - fi - - # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. - ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" -if test "x$ac_cv_func_shmat" = xyes -then : - -fi - - if test $ac_cv_func_shmat = no; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 -printf %s "checking for shmat in -lipc... " >&6; } -if test ${ac_cv_lib_ipc_shmat+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lipc $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char shmat (void); -int -main (void) -{ -return shmat (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_ipc_shmat=yes -else case e in #( - e) ac_cv_lib_ipc_shmat=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 -printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; } -if test "x$ac_cv_lib_ipc_shmat" = xyes -then : - X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" -fi - - fi - fi - - # Check for libraries that X11R6 Xt/Xaw programs need. - ac_save_LDFLAGS=$LDFLAGS - test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" - # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to - # check for ICE first), but we must link in the order -lSM -lICE or - # we get undefined symbols. So assume we have SM if we have ICE. - # These have to be linked with before -lX11, unlike the other - # libraries we check for below, so use a different variable. - # John Interrante, Karl Berry - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 -printf %s "checking for IceConnectionNumber in -lICE... " >&6; } -if test ${ac_cv_lib_ICE_IceConnectionNumber+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lICE $X_EXTRA_LIBS $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* Override any GCC internal prototype to avoid an error. - Use char because int might match the return type of a GCC - builtin and then its argument prototype would still apply. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char IceConnectionNumber (void); -int -main (void) -{ -return IceConnectionNumber (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_ICE_IceConnectionNumber=yes -else case e in #( - e) ac_cv_lib_ICE_IceConnectionNumber=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 -printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } -if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes -then : - X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" -fi - - LDFLAGS=$ac_save_LDFLAGS - -fi - - - if test x"$no_x" = xyes; then - textmode_x11_support="no" - else - -printf "%s\n" "#define HAVE_TEXTMODE_X11_SUPPORT 1" >>confdefs.h - - textmode_x11_support="yes" - - CPPFLAGS="$CPPFLAGS $X_CFLAGS" - - if test x"$g_module_supported" = x; then - MCLIBS="$MCLIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" - fi - fi - - if test x"$textmode_x11_support" = x"yes"; then - HAVE_TEXTMODE_X11_SUPPORT_TRUE= - HAVE_TEXTMODE_X11_SUPPORT_FALSE='#' -else - HAVE_TEXTMODE_X11_SUPPORT_TRUE='#' - HAVE_TEXTMODE_X11_SUPPORT_FALSE= -fi - - - - - -ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" -if test "x$ac_cv_header_string_h" = xyes -then : - printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default" -if test "x$ac_cv_header_memory_h" = xyes -then : - printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" -if test "x$ac_cv_header_limits_h" = xyes -then : - printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" -if test "x$ac_cv_header_malloc_h" = xyes -then : - printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" -if test "x$ac_cv_header_utime_h" = xyes -then : - printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_statfs_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_vfs_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_select_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_ioctl_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$ac_includes_default" -if test "x$ac_cv_header_stropts_h" = xyes -then : - printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" -if test "x$ac_cv_header_arpa_inet_h" = xyes -then : - printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_socket_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h - -fi - - -ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_mkdev_h" = xyes -then : - -printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h - -fi - -if test $ac_cv_header_sys_mkdev_h = no; then - ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_sysmacros_h" = xyes -then : - -printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h - -fi - -fi - - - - - - if test $ac_cv_header_stdckdint_h = yes; then - GL_GENERATE_STDCKDINT_H=false - else - GL_GENERATE_STDCKDINT_H=true - fi - - - - - case "$GL_GENERATE_STDCKDINT_H" in - false) STDCKDINT_H='' ;; - true) - if test -z "$STDCKDINT_H"; then - STDCKDINT_H="${gl_source_base_prefix}stdckdint.h" - fi - ;; - *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;; - esac - - - if $GL_GENERATE_STDCKDINT_H; then - GL_GENERATE_STDCKDINT_H_TRUE= - GL_GENERATE_STDCKDINT_H_FALSE='#' -else - GL_GENERATE_STDCKDINT_H_TRUE='#' - GL_GENERATE_STDCKDINT_H_FALSE= -fi -: - if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then - GL_GENERATE_STDCKDINT_H_TRUE='#' - GL_GENERATE_STDCKDINT_H_FALSE='#' - fi - - - - - - - if test "$GL_GENERATE_STDCKDINT_H" = "true"; then - sed -e 1h -e '1s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */,' -e s,bool,gboolean, -e 1G \ - $ac_abs_confdir/lib/stdckdint.in.h > $ac_abs_confdir/lib/stdckdint.h - else - rm -f "$ac_abs_confdir/lib/stdckdint.h" - fi - - - - -# Check whether --enable-largefile was given. -if test ${enable_largefile+y} -then : - enableval=$enable_largefile; -fi -if test "$enable_largefile,$enable_year2038" != no,no -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5 -printf %s "checking for $CC option to enable large file support... " >&6; } -if test ${ac_cv_sys_largefile_opts+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_save_CC="$CC" - ac_opt_found=no - for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do - if test x"$ac_opt" != x"none needed" -then : - CC="$ac_save_CC $ac_opt" -fi - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#ifndef FTYPE -# define FTYPE off_t -#endif - /* Check that FTYPE can represent 2**63 - 1 correctly. - We can't simply define LARGE_FTYPE to be 9223372036854775807, - since some C++ compilers masquerading as C compilers - incorrectly reject 9223372036854775807. */ -#define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31)) - int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721 - && LARGE_FTYPE % 2147483647 == 1) - ? 1 : -1]; -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - if test x"$ac_opt" = x"none needed" -then : - # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t. - CC="$CC -DFTYPE=ino_t" - if ac_fn_c_try_compile "$LINENO" -then : - -else case e in #( - e) CC="$CC -D_FILE_OFFSET_BITS=64" - if ac_fn_c_try_compile "$LINENO" -then : - ac_opt='-D_FILE_OFFSET_BITS=64' -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam -fi - ac_cv_sys_largefile_opts=$ac_opt - ac_opt_found=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - test $ac_opt_found = no || break - done - CC="$ac_save_CC" - - test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5 -printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; } - -ac_have_largefile=yes -case $ac_cv_sys_largefile_opts in #( - "none needed") : - ;; #( - "supported through gnulib") : - ;; #( - "support not detected") : - ac_have_largefile=no ;; #( - "-D_FILE_OFFSET_BITS=64") : - -printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h - ;; #( - "-D_LARGE_FILES=1") : - -printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h - ;; #( - "-n32") : - CC="$CC -n32" ;; #( - *) : - as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;; -esac - -if test "$enable_year2038" != no -then : - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5 -printf %s "checking for $CC option for timestamps after 2038... " >&6; } -if test ${ac_cv_sys_year2038_opts+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_save_CPPFLAGS="$CPPFLAGS" - ac_opt_found=no - for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do - if test x"$ac_opt" != x"none needed" -then : - CPPFLAGS="$ac_save_CPPFLAGS $ac_opt" -fi - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #include - /* Check that time_t can represent 2**32 - 1 correctly. */ - #define LARGE_TIME_T \\ - ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30))) - int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535 - && LARGE_TIME_T % 65537 == 0) - ? 1 : -1]; - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_cv_sys_year2038_opts="$ac_opt" - ac_opt_found=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - test $ac_opt_found = no || break - done - CPPFLAGS="$ac_save_CPPFLAGS" - test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5 -printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; } - -ac_have_year2038=yes -case $ac_cv_sys_year2038_opts in #( - "none needed") : - ;; #( - "support not detected") : - ac_have_year2038=no ;; #( - "-D_TIME_BITS=64") : - -printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h - ;; #( - "-D__MINGW_USE_VC2005_COMPAT") : - -printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h - ;; #( - "-U_USE_32_BIT_TIME_T"*) : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} -as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It -will stop working after mid-January 2038. Remove -_USE_32BIT_TIME_T from the compiler flags. -See 'config.log' for more details" "$LINENO" 5; } ;; #( - *) : - as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;; -esac - -fi - -fi - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -printf %s "checking size of long... " >&6; } -if test ${ac_cv_sizeof_long+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" -then : - -else case e in #( - e) if test "$ac_cv_type_long" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (long) -See 'config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_long=0 - fi ;; -esac -fi - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -printf "%s\n" "$ac_cv_sizeof_long" >&6; } - - - -printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 -printf %s "checking for unsigned long long int... " >&6; } -if test ${ac_cv_type_unsigned_long_long_int+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_cv_type_unsigned_long_long_int=yes - if test "x${ac_cv_prog_cc_c99-no}" = xno; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - /* For now, do not test the preprocessor; as of 2007 there are too many - implementations with broken preprocessors. Perhaps this can - be revisited in 2012. In the meantime, code should not expect - #if to work with literals wider than 32 bits. */ - /* Test literals. */ - long long int ll = 9223372036854775807ll; - long long int nll = -9223372036854775807LL; - unsigned long long int ull = 18446744073709551615ULL; - /* Test constant expressions. */ - typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - ? 1 : -1)]; - typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 - ? 1 : -1)]; - int i = 63; -int -main (void) -{ -/* Test availability of runtime routines for shift and division. */ - long long int llmax = 9223372036854775807ll; - unsigned long long int ullmax = 18446744073709551615ull; - return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) - | (llmax / ll) | (llmax % ll) - | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) - | (ullmax / ull) | (ullmax % ull)); - ; - return 0; -} - -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - -else case e in #( - e) ac_cv_type_unsigned_long_long_int=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - fi ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 -printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; } - if test $ac_cv_type_unsigned_long_long_int = yes; then - -printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h - - fi - - - - ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default" -if test "x$ac_cv_type_uintmax_t" = xyes -then : - -printf "%s\n" "#define HAVE_UINTMAX_T 1" >>confdefs.h - -else case e in #( - e) test $ac_cv_type_unsigned_long_long_int = yes \ - && ac_type='unsigned long long int' \ - || ac_type='unsigned long int' - -printf "%s\n" "#define uintmax_t $ac_type" >>confdefs.h - ;; -esac -fi - - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of uintmax_t" >&5 -printf %s "checking size of uintmax_t... " >&6; } -if test ${ac_cv_sizeof_uintmax_t+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (uintmax_t))" "ac_cv_sizeof_uintmax_t" "$ac_includes_default" -then : - -else case e in #( - e) if test "$ac_cv_type_uintmax_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (uintmax_t) -See 'config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_uintmax_t=0 - fi ;; -esac -fi - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_uintmax_t" >&5 -printf "%s\n" "$ac_cv_sizeof_uintmax_t" >&6; } - - - -printf "%s\n" "#define SIZEOF_UINTMAX_T $ac_cv_sizeof_uintmax_t" >>confdefs.h - - -ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" -if test "x$ac_cv_type_off_t" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define off_t long int" >>confdefs.h - ;; -esac -fi - -# The cast to long int works around a bug in the HP C Compiler -# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects -# declarations like 'int a3[[(sizeof (unsigned char)) >= 0]];'. -# This bug is HP SR number 8606223364. -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 -printf %s "checking size of off_t... " >&6; } -if test ${ac_cv_sizeof_off_t+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" -then : - -else case e in #( - e) if test "$ac_cv_type_off_t" = yes; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} -as_fn_error 77 "cannot compute sizeof (off_t) -See 'config.log' for more details" "$LINENO" 5; } - else - ac_cv_sizeof_off_t=0 - fi ;; -esac -fi - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 -printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } - - - -printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h - - -ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" -if test "x$ac_cv_type_mode_t" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define mode_t int" >>confdefs.h - ;; -esac -fi - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5 -printf %s "checking for promoted mode_t type... " >&6; } -if test ${gl_cv_promoted_mode_t+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main (void) -{ -typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1]; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - gl_cv_promoted_mode_t='int' -else case e in #( - e) gl_cv_promoted_mode_t='mode_t' ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5 -printf "%s\n" "$gl_cv_promoted_mode_t" >&6; } - -printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h - - - - 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 case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #if defined _WIN64 && !defined __CYGWIN__ - LLP64 - #endif - -int -main (void) -{ - - ; - return 0; -} - -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - ac_pid_type='int' -else case e in #( - e) ac_pid_type='__int64' ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - -printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h - - ;; -esac -fi - - -ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" -if test "x$ac_cv_type_uid_t" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define uid_t int" >>confdefs.h - ;; -esac -fi - -ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" -if test "x$ac_cv_type_gid_t" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define gid_t int" >>confdefs.h - ;; -esac -fi - - -ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default" -if test "x$ac_cv_type_dev_t" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define dev_t unsigned long long int" >>confdefs.h - ;; -esac -fi - -ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default" -if test "x$ac_cv_type_ino_t" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define ino_t unsigned long long int" >>confdefs.h - ;; -esac -fi - - -ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default" -if test "x$ac_cv_type_major_t" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define major_t unsigned int" >>confdefs.h - ;; -esac -fi - -ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default" -if test "x$ac_cv_type_minor_t" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define minor_t unsigned int" >>confdefs.h - ;; -esac -fi - - -ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_blocks" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h - - -printf "%s\n" "#define HAVE_ST_BLOCKS 1" >>confdefs.h - -else case e in #( - e) case " $LIBOBJS " in - *" fileblocks.$ac_objext "* ) ;; - *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" - ;; -esac - ;; -esac -fi - - -ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_blksize" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLKSIZE 1" >>confdefs.h - - -fi -ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_rdev" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h - - -fi -ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_mtim" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIM 1" >>confdefs.h - - -fi -ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimespec" "ac_cv_member_struct_stat_st_mtimespec" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_mtimespec" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMESPEC 1" >>confdefs.h - - -fi -ac_fn_c_check_member "$LINENO" "struct stat" "st_mtimensec" "ac_cv_member_struct_stat_st_mtimensec" "$ac_includes_default" -if test "x$ac_cv_member_struct_stat_st_mtimensec" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STAT_ST_MTIMENSEC 1" >>confdefs.h - - -fi - - - - # Don't call AC_STRUCT_ST_BLOCKS because it causes bugs. Details at - # https://lists.gnu.org/r/bug-gnulib/2011-06/msg00051.html - - - - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t in signal.h" >&5 -printf %s "checking for sig_atomic_t in signal.h... " >&6; } -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5 -printf %s "checking for egrep -e... " >&6; } -if test ${ac_cv_path_EGREP_TRADITIONAL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -z "$EGREP_TRADITIONAL"; then - ac_path_EGREP_TRADITIONAL_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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in grep ggrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue -# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. - # Check for GNU $ac_path_EGREP_TRADITIONAL -case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( -*GNU*) - ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; -#( -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" - "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "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_TRADITIONAL_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" - ac_path_EGREP_TRADITIONAL_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_TRADITIONAL_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then - : - fi -else - ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL -fi - - if test "$ac_cv_path_EGREP_TRADITIONAL" -then : - ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E" -else case e in #( - e) if test -z "$EGREP_TRADITIONAL"; then - ac_path_EGREP_TRADITIONAL_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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - for ac_prog in egrep - do - for ac_exec_ext in '' $ac_executable_extensions; do - ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext" - as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue -# Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found. - # Check for GNU $ac_path_EGREP_TRADITIONAL -case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #( -*GNU*) - ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;; -#( -*) - ac_count=0 - printf %s 0123456789 >"conftest.in" - while : - do - cat "conftest.in" "conftest.in" >"conftest.tmp" - mv "conftest.tmp" "conftest.in" - cp "conftest.in" "conftest.nl" - printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl" - "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "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_TRADITIONAL_max-0}; then - # Best one so far, save it but keep looking for a better one - ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" - ac_path_EGREP_TRADITIONAL_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_TRADITIONAL_found && break 3 - done - done - done -IFS=$as_save_IFS - if test -z "$ac_cv_path_EGREP_TRADITIONAL"; 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_TRADITIONAL=$EGREP_TRADITIONAL -fi - ;; -esac -fi ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5 -printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; } - EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL - -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP_TRADITIONAL "sig_atomic_t" >/dev/null 2>&1 -then : - - ac_cv_type_sig_atomic_t=yes; - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP_TRADITIONAL "volatile.*sig_atomic_t" >/dev/null 2>&1 -then : - - is_sig_atomic_t_volatile=yes; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, volatile" >&5 -printf "%s\n" "yes, volatile" >&6; } - -else case e in #( - e) - is_sig_atomic_t_volatile=no; - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes, non volatile" >&5 -printf "%s\n" "yes, non volatile" >&6; } - ;; -esac -fi -rm -rf conftest* - - -else case e in #( - e) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "$ac_includes_default" -if test "x$ac_cv_type_sig_atomic_t" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define sig_atomic_t int" >>confdefs.h - ;; -esac -fi - - is_sig_atomic_t_volatile=no - ;; -esac -fi -rm -rf conftest* - -if test $is_sig_atomic_t_volatile = 'yes' -then - printf "%s\n" "#define SIG_ATOMIC_VOLATILE_T sig_atomic_t" >>confdefs.h - -else - printf "%s\n" "#define SIG_ATOMIC_VOLATILE_T volatile sig_atomic_t" >>confdefs.h - -fi - - - -ac_fn_c_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp" -if test "x$ac_cv_func_strverscmp" = xyes -then : - printf "%s\n" "#define HAVE_STRVERSCMP 1" >>confdefs.h - -fi -ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" -if test "x$ac_cv_func_strncasecmp" = xyes -then : - printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h - -fi -ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath" -if test "x$ac_cv_func_realpath" = xyes -then : - printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h - -fi - - - - for ac_func in posix_openpt -do : - ac_fn_c_check_func "$LINENO" "posix_openpt" "ac_cv_func_posix_openpt" -if test "x$ac_cv_func_posix_openpt" = xyes -then : - printf "%s\n" "#define HAVE_POSIX_OPENPT 1" >>confdefs.h - -else case e in #( - e) ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" -if test "x$ac_cv_func_getpt" = xyes -then : - printf "%s\n" "#define HAVE_GETPT 1" >>confdefs.h - -fi - ;; -esac -fi - -done - - for ac_func in grantpt -do : - ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" -if test "x$ac_cv_func_grantpt" = xyes -then : - printf "%s\n" "#define HAVE_GRANTPT 1" >>confdefs.h - -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grantpt in -lpt" >&5 -printf %s "checking for grantpt in -lpt... " >&6; } -if test ${ac_cv_lib_pt_grantpt+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lpt $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char grantpt (void); -int -main (void) -{ -return grantpt (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_pt_grantpt=yes -else case e in #( - e) ac_cv_lib_pt_grantpt=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pt_grantpt" >&5 -printf "%s\n" "$ac_cv_lib_pt_grantpt" >&6; } -if test "x$ac_cv_lib_pt_grantpt" = xyes -then : - printf "%s\n" "#define HAVE_LIBPT 1" >>confdefs.h - - LIBS="-lpt $LIBS" - -fi - ;; -esac -fi - -done - -ac_fn_c_check_func "$LINENO" "statlstat" "ac_cv_func_statlstat" -if test "x$ac_cv_func_statlstat" = xyes -then : - printf "%s\n" "#define HAVE_STATLSTAT 1" >>confdefs.h - -fi - - - - - - - - - ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" -if test "x$ac_cv_header_fcntl_h" = xyes -then : - printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default" -if test "x$ac_cv_header_utime_h" = xyes -then : - printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h - -fi - - - - - ac_fn_c_check_func "$LINENO" "listmntent" "ac_cv_func_listmntent" -if test "x$ac_cv_func_listmntent" = xyes -then : - printf "%s\n" "#define HAVE_LISTMNTENT 1" >>confdefs.h - -fi - - - - # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses - # NGROUPS (as the array dimension for a struct member) without a definition. - ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "#include -" -if test "x$ac_cv_header_sys_ucred_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h - -fi - - - ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default - #if HAVE_SYS_PARAM_H - #include - #endif - -" -if test "x$ac_cv_header_sys_mount_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h - -fi - - - ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default" -if test "x$ac_cv_header_mntent_h" = xyes -then : - printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "sys/fs_types.h" "ac_cv_header_sys_fs_types_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_fs_types_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_FS_TYPES_H 1" >>confdefs.h - -fi - - getfsstat_includes="\ -$ac_includes_default -#if HAVE_SYS_PARAM_H -# include /* needed by powerpc-apple-darwin1.3.7 */ -#endif -#if HAVE_SYS_UCRED_H -# include /* needed for definition of NGROUPS */ -# include /* needed by powerpc-apple-darwin1.3.7 */ -#endif -#if HAVE_SYS_MOUNT_H -# include -#endif -#if HAVE_SYS_FS_TYPES_H -# include /* needed by powerpc-apple-darwin1.3.7 */ -#endif -" - ac_fn_c_check_member "$LINENO" "struct fsstat" "f_fstypename" "ac_cv_member_struct_fsstat_f_fstypename" "$getfsstat_includes -" -if test "x$ac_cv_member_struct_fsstat_f_fstypename" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1" >>confdefs.h - - -fi - - - # Determine how to get the list of mounted file systems. - ac_list_mounted_fs= - - # If the getmntent function is available but not in the standard library, - # make sure LIBS contains the appropriate -l option. - - # getmntent is in the standard C library on most systems, but in -lgen on - # Unixware. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 -printf %s "checking for library containing getmntent... " >&6; } -if test ${ac_cv_search_getmntent+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char getmntent (void); -int -main (void) -{ -return getmntent (); - ; - return 0; -} -_ACEOF -for ac_lib in '' gen -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_getmntent=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_getmntent+y} -then : - break -fi -done -if test ${ac_cv_search_getmntent+y} -then : - -else case e in #( - e) ac_cv_search_getmntent=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 -printf "%s\n" "$ac_cv_search_getmntent" >&6; } -ac_res=$ac_cv_search_getmntent -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - ac_fn_c_check_func "$LINENO" "getmntent" "ac_cv_func_getmntent" -if test "x$ac_cv_func_getmntent" = xyes -then : - printf "%s\n" "#define HAVE_GETMNTENT 1" >>confdefs.h - -fi - - - - if test -z "$ac_list_mounted_fs"; then - # AIX. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mntctl function and struct vmount" >&5 -printf %s "checking for mntctl function and struct vmount... " >&6; } -if test ${fu_cv_sys_mounted_vmount+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - fu_cv_sys_mounted_vmount=yes -else case e in #( - e) fu_cv_sys_mounted_vmount=no ;; -esac -fi -rm -f conftest.err conftest.i conftest.$ac_ext ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_vmount" >&5 -printf "%s\n" "$fu_cv_sys_mounted_vmount" >&6; } - if test $fu_cv_sys_mounted_vmount = yes; then - ac_list_mounted_fs=found - -printf "%s\n" "#define MOUNTED_VMOUNT 1" >>confdefs.h - - fi - fi - - if test $ac_cv_func_getmntent = yes; then - - # This system has the getmntent function. - # Determine whether it's the one-argument variant or the two-argument one. - - if test -z "$ac_list_mounted_fs"; then - # glibc, HP-UX, IRIX, Cygwin, Android, also (obsolete) 4.3BSD, SunOS. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for one-argument getmntent function" >&5 -printf %s "checking for one-argument getmntent function... " >&6; } -if test ${fu_cv_sys_mounted_getmntent1+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -/* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */ -#include - -#include -#if defined __ANDROID__ /* Android */ -# undef MOUNTED -# define MOUNTED "/proc/mounts" -#elif !defined MOUNTED -# if defined _PATH_MOUNTED /* GNU libc */ -# define MOUNTED _PATH_MOUNTED -# endif -# if defined MNT_MNTTAB /* HP-UX. */ -# define MOUNTED MNT_MNTTAB -# endif -#endif - -int -main (void) -{ -struct mntent *mnt = 0; char *table = MOUNTED; - if (sizeof mnt && sizeof table) return 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - fu_cv_sys_mounted_getmntent1=yes -else case e in #( - e) fu_cv_sys_mounted_getmntent1=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntent1" >&5 -printf "%s\n" "$fu_cv_sys_mounted_getmntent1" >&6; } - if test $fu_cv_sys_mounted_getmntent1 = yes; then - ac_list_mounted_fs=found - -printf "%s\n" "#define MOUNTED_GETMNTENT1 1" >>confdefs.h - - ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent" -if test "x$ac_cv_func_setmntent" = xyes -then : - printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h - -fi -ac_fn_c_check_func "$LINENO" "endmntent" "ac_cv_func_endmntent" -if test "x$ac_cv_func_endmntent" = xyes -then : - printf "%s\n" "#define HAVE_ENDMNTENT 1" >>confdefs.h - -fi -ac_fn_c_check_func "$LINENO" "hasmntopt" "ac_cv_func_hasmntopt" -if test "x$ac_cv_func_hasmntopt" = xyes -then : - printf "%s\n" "#define HAVE_HASMNTOPT 1" >>confdefs.h - -fi - - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # Solaris >= 8. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getextmntent function" >&5 -printf %s "checking for getextmntent function... " >&6; } -if test ${fu_cv_sys_mounted_getextmntent+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP_TRADITIONAL "getextmntent" >/dev/null 2>&1 -then : - fu_cv_sys_mounted_getextmntent=yes -else case e in #( - e) fu_cv_sys_mounted_getextmntent=no ;; -esac -fi -rm -rf conftest* - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getextmntent" >&5 -printf "%s\n" "$fu_cv_sys_mounted_getextmntent" >&6; } - if test $fu_cv_sys_mounted_getextmntent = yes; then - ac_list_mounted_fs=found - -printf "%s\n" "#define MOUNTED_GETEXTMNTENT 1" >>confdefs.h - - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # Solaris < 8, also (obsolete) SVR4. - # Solaris >= 8 has the two-argument getmntent but is already handled above. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-argument getmntent function" >&5 -printf %s "checking for two-argument getmntent function... " >&6; } -if test ${fu_cv_sys_mounted_getmntent2+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP_TRADITIONAL "getmntent" >/dev/null 2>&1 -then : - fu_cv_sys_mounted_getmntent2=yes -else case e in #( - e) fu_cv_sys_mounted_getmntent2=no ;; -esac -fi -rm -rf conftest* - - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntent2" >&5 -printf "%s\n" "$fu_cv_sys_mounted_getmntent2" >&6; } - if test $fu_cv_sys_mounted_getmntent2 = yes; then - ac_list_mounted_fs=found - -printf "%s\n" "#define MOUNTED_GETMNTENT2 1" >>confdefs.h - - ac_fn_c_check_func "$LINENO" "hasmntopt" "ac_cv_func_hasmntopt" -if test "x$ac_cv_func_hasmntopt" = xyes -then : - printf "%s\n" "#define HAVE_HASMNTOPT 1" >>confdefs.h - -fi - - fi - fi - - fi - - if test -z "$ac_list_mounted_fs"; then - # OSF/1, also (obsolete) Apple Darwin 1.3. - # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getfsstat function" >&5 -printf %s "checking for getfsstat function... " >&6; } -if test ${fu_cv_sys_mounted_getfsstat+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#if HAVE_STRUCT_FSSTAT_F_FSTYPENAME -# define FS_TYPE(Ent) ((Ent).f_fstypename) -#else -# define FS_TYPE(Ent) mnt_names[(Ent).f_type] -#endif -$getfsstat_includes - -int -main (void) -{ -struct statfs *stats; - int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); - char *t = FS_TYPE (*stats); - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - fu_cv_sys_mounted_getfsstat=yes -else case e in #( - e) fu_cv_sys_mounted_getfsstat=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getfsstat" >&5 -printf "%s\n" "$fu_cv_sys_mounted_getfsstat" >&6; } - if test $fu_cv_sys_mounted_getfsstat = yes; then - ac_list_mounted_fs=found - -printf "%s\n" "#define MOUNTED_GETFSSTAT 1" >>confdefs.h - - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # (obsolete) SVR3 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FIXME existence of three headers" >&5 -printf %s "checking for FIXME existence of three headers... " >&6; } -if test ${fu_cv_sys_mounted_fread_fstyp+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -#include - -_ACEOF -if ac_fn_c_try_cpp "$LINENO" -then : - fu_cv_sys_mounted_fread_fstyp=yes -else case e in #( - e) fu_cv_sys_mounted_fread_fstyp=no ;; -esac -fi -rm -f conftest.err conftest.i conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_fread_fstyp" >&5 -printf "%s\n" "$fu_cv_sys_mounted_fread_fstyp" >&6; } - if test $fu_cv_sys_mounted_fread_fstyp = yes; then - ac_list_mounted_fs=found - -printf "%s\n" "#define MOUNTED_FREAD_FSTYP 1" >>confdefs.h - - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, also (obsolete) 4.4BSD. - # OSF/1 also has getmntinfo but is already handled above. - # We cannot use AC_CHECK_FUNCS([getmntinfo]) here, because at the linker - # level the function is sometimes called getmntinfo64 or getmntinfo$INODE64 - # on Mac OS X, __getmntinfo13 on NetBSD and Minix, _F64_getmntinfo on OSF/1. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getmntinfo function" >&5 -printf %s "checking for getmntinfo function... " >&6; } -if test ${fu_cv_sys_mounted_getmntinfo+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#if HAVE_SYS_PARAM_H -# include -#endif -#include -#if HAVE_SYS_MOUNT_H -# include -#endif -#if HAVE_SYS_STATVFS_H -# include -#endif -#include - -int -main (void) -{ -int count = getmntinfo (NULL, MNT_WAIT); - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - fu_cv_sys_mounted_getmntinfo=yes -else case e in #( - e) fu_cv_sys_mounted_getmntinfo=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntinfo" >&5 -printf "%s\n" "$fu_cv_sys_mounted_getmntinfo" >&6; } - if test $fu_cv_sys_mounted_getmntinfo = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getmntinfo returns statvfs structures" >&5 -printf %s "checking whether getmntinfo returns statvfs structures... " >&6; } -if test ${fu_cv_sys_mounted_getmntinfo2+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#if HAVE_SYS_PARAM_H -# include -#endif -#include -#if HAVE_SYS_MOUNT_H -# include -#endif -#if HAVE_SYS_STATVFS_H -# include -#endif -extern -#ifdef __cplusplus -"C" -#endif -int getmntinfo (struct statfs **, int); - -int -main (void) -{ - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - fu_cv_sys_mounted_getmntinfo2=no -else case e in #( - e) fu_cv_sys_mounted_getmntinfo2=yes ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntinfo2" >&5 -printf "%s\n" "$fu_cv_sys_mounted_getmntinfo2" >&6; } - if test $fu_cv_sys_mounted_getmntinfo2 = no; then - # Mac OS X, FreeBSD, OpenBSD, also (obsolete) 4.4BSD. - ac_list_mounted_fs=found - -printf "%s\n" "#define MOUNTED_GETMNTINFO 1" >>confdefs.h - - else - # NetBSD, Minix. - ac_list_mounted_fs=found - -printf "%s\n" "#define MOUNTED_GETMNTINFO2 1" >>confdefs.h - - fi - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # Haiku, also (obsolete) BeOS. - ac_fn_c_check_func "$LINENO" "next_dev" "ac_cv_func_next_dev" -if test "x$ac_cv_func_next_dev" = xyes -then : - printf "%s\n" "#define HAVE_NEXT_DEV 1" >>confdefs.h - -fi -ac_fn_c_check_func "$LINENO" "fs_stat_dev" "ac_cv_func_fs_stat_dev" -if test "x$ac_cv_func_fs_stat_dev" = xyes -then : - printf "%s\n" "#define HAVE_FS_STAT_DEV 1" >>confdefs.h - -fi - - ac_fn_c_check_header_compile "$LINENO" "fs_info.h" "ac_cv_header_fs_info_h" "$ac_includes_default" -if test "x$ac_cv_header_fs_info_h" = xyes -then : - printf "%s\n" "#define HAVE_FS_INFO_H 1" >>confdefs.h - -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BEOS mounted file system support functions" >&5 -printf %s "checking for BEOS mounted file system support functions... " >&6; } -if test ${fu_cv_sys_mounted_fs_stat_dev+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test $ac_cv_header_fs_info_h = yes \ - && test $ac_cv_func_next_dev = yes \ - && test $ac_cv_func_fs_stat_dev = yes; then - fu_cv_sys_mounted_fs_stat_dev=yes - else - fu_cv_sys_mounted_fs_stat_dev=no - fi - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_fs_stat_dev" >&5 -printf "%s\n" "$fu_cv_sys_mounted_fs_stat_dev" >&6; } - if test $fu_cv_sys_mounted_fs_stat_dev = yes; then - ac_list_mounted_fs=found - -printf "%s\n" "#define MOUNTED_FS_STAT_DEV 1" >>confdefs.h - - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # Interix / BSD alike statvfs - # the code is really interix specific, so make sure, we're on it. - case "$host" in - *-interix*) - ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" -if test "x$ac_cv_func_statvfs" = xyes -then : - printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h - -fi - - if test $ac_cv_func_statvfs = yes; then - ac_list_mounted_fs=found - -printf "%s\n" "#define MOUNTED_INTERIX_STATVFS 1" >>confdefs.h - - fi - ;; - esac - fi - - if test -z "$ac_list_mounted_fs"; then - as_fn_error $? "could not determine how to read list of mounted file systems" "$LINENO" 5 - # FIXME -- no need to abort building the whole package - # Can't build mountlist.c or anything that needs its functions - fi - - if test $ac_list_mounted_fs = found; then - gl_cv_list_mounted_fs=yes - else - gl_cv_list_mounted_fs=no - fi - - if test $gl_cv_list_mounted_fs = yes; then - - ac_fn_c_check_header_compile "$LINENO" "sys/mntent.h" "ac_cv_header_sys_mntent_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_mntent_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_MNTENT_H 1" >>confdefs.h - -fi - - -ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_mkdev_h" = xyes -then : - -printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h - -fi - -if test $ac_cv_header_sys_mkdev_h = no; then - ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_sysmacros_h" = xyes -then : - -printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h - -fi - -fi - - ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" " - #include - #include - #include - -" -if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h - - -fi - - - - -printf "%s\n" "#define HAVE_INFOMOUNT_LIST 1" >>confdefs.h - - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not determine how to read list of mounted fs" >&5 -printf "%s\n" "$as_me: WARNING: could not determine how to read list of mounted fs" >&2;}; - fi - - - - - ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default - #if HAVE_SYS_PARAM_H - #include - #endif -" -if test "x$ac_cv_header_sys_mount_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h - -fi - - - - - ac_fsusage_space=no - - # Perform only the link test since it seems there are no variants of the - # statvfs function. This check is more than just AC_CHECK_FUNCS([statvfs]) - # because that got a false positive on SCO OSR5. Adding the declaration - # of a 'struct statvfs' causes this test to fail (as it should) on such - # systems. That system is reported to work fine with STAT_STATFS4 which - # is what it gets when this test fails. - if test $ac_fsusage_space = no; then - # glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0, - # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statvfs function (SVR4)" >&5 -printf %s "checking for statvfs function (SVR4)... " >&6; } -if test ${fu_cv_sys_stat_statvfs+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#ifdef __osf__ -"Do not use Tru64's statvfs implementation" -#endif - -#include - -struct statvfs fsd; - -#if defined __APPLE__ && defined __MACH__ -#include -/* On Mac OS X >= 10.5, f_blocks in 'struct statvfs' is a 32-bit quantity; - that commonly limits file systems to 4 TiB. Whereas f_blocks in - 'struct statfs' is a 64-bit type, thanks to the large-file support - that was enabled above. In this case, don't use statvfs(); use statfs() - instead. */ -int check_f_blocks_size[sizeof fsd.f_blocks * CHAR_BIT <= 32 ? -1 : 1]; -#endif - -int -main (void) -{ -statvfs (0, &fsd); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - fu_cv_sys_stat_statvfs=yes -else case e in #( - e) fu_cv_sys_stat_statvfs=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs" >&5 -printf "%s\n" "$fu_cv_sys_stat_statvfs" >&6; } - if test $fu_cv_sys_stat_statvfs = yes; then - ac_fsusage_space=yes - # AIX >= 5.2 has statvfs64 that has a wider f_blocks field than statvfs. - # glibc, HP-UX, IRIX, Solaris have statvfs64 as well, but on these systems - # statvfs with large-file support is already equivalent to statvfs64. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use statvfs64" >&5 -printf %s "checking whether to use statvfs64... " >&6; } -if test ${fu_cv_sys_stat_statvfs64+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include - #include - struct statvfs64 fsd; - int check_f_blocks_larger_in_statvfs64 - [sizeof (((struct statvfs64 *) 0)->f_blocks) - > sizeof (((struct statvfs *) 0)->f_blocks) - ? 1 : -1]; - -int -main (void) -{ -statvfs64 (0, &fsd); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - fu_cv_sys_stat_statvfs64=yes -else case e in #( - e) fu_cv_sys_stat_statvfs64=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statvfs64" >&5 -printf "%s\n" "$fu_cv_sys_stat_statvfs64" >&6; } - if test $fu_cv_sys_stat_statvfs64 = yes; then - -printf "%s\n" "#define STAT_STATVFS64 1" >>confdefs.h - - else - -printf "%s\n" "#define STAT_STATVFS 1" >>confdefs.h - - fi - fi - fi - - # Check for this unconditionally so we have a - # good fallback on glibc/Linux > 2.6 < 2.6.36 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_frsize member" >&5 -printf %s "checking for two-argument statfs with statfs.f_frsize member... " >&6; } -if test ${fu_cv_sys_stat_statfs2_frsize+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test "$cross_compiling" = yes -then : - fu_cv_sys_stat_statfs2_frsize=no -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef HAVE_SYS_PARAM_H -#include -#endif -#ifdef HAVE_SYS_MOUNT_H -#include -#endif -#ifdef HAVE_SYS_VFS_H -#include -#endif - int - main () - { - struct statfs fsd; - fsd.f_frsize = 0; - return statfs (".", &fsd) != 0; - } -_ACEOF -if ac_fn_c_try_run "$LINENO" -then : - fu_cv_sys_stat_statfs2_frsize=yes -else case e in #( - e) fu_cv_sys_stat_statfs2_frsize=no ;; -esac -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi - - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_frsize" >&5 -printf "%s\n" "$fu_cv_sys_stat_statfs2_frsize" >&6; } - if test $fu_cv_sys_stat_statfs2_frsize = yes; then - ac_fsusage_space=yes - -printf "%s\n" "#define STAT_STATFS2_FRSIZE 1" >>confdefs.h - - fi - - if test $ac_fsusage_space = no; then - # DEC Alpha running OSF/1 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 3-argument statfs function (DEC OSF/1)" >&5 -printf %s "checking for 3-argument statfs function (DEC OSF/1)... " >&6; } -if test ${fu_cv_sys_stat_statfs3_osf1+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test "$cross_compiling" = yes -then : - fu_cv_sys_stat_statfs3_osf1=no -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -#include - int - main () - { - struct statfs fsd; - fsd.f_fsize = 0; - return statfs (".", &fsd, sizeof (struct statfs)) != 0; - } -_ACEOF -if ac_fn_c_try_run "$LINENO" -then : - fu_cv_sys_stat_statfs3_osf1=yes -else case e in #( - e) fu_cv_sys_stat_statfs3_osf1=no ;; -esac -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi - - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs3_osf1" >&5 -printf "%s\n" "$fu_cv_sys_stat_statfs3_osf1" >&6; } - if test $fu_cv_sys_stat_statfs3_osf1 = yes; then - ac_fsusage_space=yes - -printf "%s\n" "#define STAT_STATFS3_OSF1 1" >>confdefs.h - - fi - fi - - if test $ac_fsusage_space = no; then - # glibc/Linux, Mac OS X, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4. - # (glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0, - # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.) - # (On IRIX you need to include , not only and - # .) - # (On Solaris, statfs has 4 arguments.) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)" >&5 -printf %s "checking for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)... " >&6; } -if test ${fu_cv_sys_stat_statfs2_bsize+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test "$cross_compiling" = yes -then : - fu_cv_sys_stat_statfs2_bsize=no -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#ifdef HAVE_SYS_PARAM_H -#include -#endif -#ifdef HAVE_SYS_MOUNT_H -#include -#endif -#ifdef HAVE_SYS_VFS_H -#include -#endif - int - main () - { - struct statfs fsd; - fsd.f_bsize = 0; - return statfs (".", &fsd) != 0; - } -_ACEOF -if ac_fn_c_try_run "$LINENO" -then : - fu_cv_sys_stat_statfs2_bsize=yes -else case e in #( - e) fu_cv_sys_stat_statfs2_bsize=no ;; -esac -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi - - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_bsize" >&5 -printf "%s\n" "$fu_cv_sys_stat_statfs2_bsize" >&6; } - if test $fu_cv_sys_stat_statfs2_bsize = yes; then - ac_fsusage_space=yes - -printf "%s\n" "#define STAT_STATFS2_BSIZE 1" >>confdefs.h - - fi - fi - - if test $ac_fsusage_space = no; then - # SVR3 - # (Solaris already handled above.) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for four-argument statfs (SVR3)" >&5 -printf %s "checking for four-argument statfs (SVR3)... " >&6; } -if test ${fu_cv_sys_stat_statfs4+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test "$cross_compiling" = yes -then : - fu_cv_sys_stat_statfs4=no -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include - int - main () - { - struct statfs fsd; - return statfs (".", &fsd, sizeof fsd, 0) != 0; - } -_ACEOF -if ac_fn_c_try_run "$LINENO" -then : - fu_cv_sys_stat_statfs4=yes -else case e in #( - e) fu_cv_sys_stat_statfs4=no ;; -esac -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi - - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs4" >&5 -printf "%s\n" "$fu_cv_sys_stat_statfs4" >&6; } - if test $fu_cv_sys_stat_statfs4 = yes; then - ac_fsusage_space=yes - -printf "%s\n" "#define STAT_STATFS4 1" >>confdefs.h - - fi - fi - - if test $ac_fsusage_space = no; then - # 4.4BSD and older NetBSD - # (OSF/1 already handled above.) - # (On AIX, you need to include , not only .) - # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in - # .) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)" >&5 -printf %s "checking for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)... " >&6; } -if test ${fu_cv_sys_stat_statfs2_fsize+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test "$cross_compiling" = yes -then : - fu_cv_sys_stat_statfs2_fsize=no -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#ifdef HAVE_SYS_PARAM_H -#include -#endif -#ifdef HAVE_SYS_MOUNT_H -#include -#endif - int - main () - { - struct statfs fsd; - fsd.f_fsize = 0; - return statfs (".", &fsd) != 0; - } -_ACEOF -if ac_fn_c_try_run "$LINENO" -then : - fu_cv_sys_stat_statfs2_fsize=yes -else case e in #( - e) fu_cv_sys_stat_statfs2_fsize=no ;; -esac -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi - - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_stat_statfs2_fsize" >&5 -printf "%s\n" "$fu_cv_sys_stat_statfs2_fsize" >&6; } - if test $fu_cv_sys_stat_statfs2_fsize = yes; then - ac_fsusage_space=yes - -printf "%s\n" "#define STAT_STATFS2_FSIZE 1" >>confdefs.h - - fi - fi - - if test $ac_fsusage_space = yes -then : - gl_cv_fs_space=yes -else case e in #( - e) gl_cv_fs_space=no ;; -esac -fi - - - - if test $gl_cv_fs_space = yes; then - - ac_fn_c_check_header_compile "$LINENO" "sys/fs/s5param.h" "ac_cv_header_sys_fs_s5param_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_fs_s5param_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_FS_S5PARAM_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" -if test "x$ac_cv_header_sys_statfs_h" = xyes -then : - printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h - -fi - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for statfs that truncates block counts" >&5 -printf %s "checking for statfs that truncates block counts... " >&6; } -if test ${fu_cv_sys_truncating_statfs+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#if !defined(sun) && !defined(__sun) -choke -- this is a workaround for a Sun-specific problem -#endif -#include -#include - -int -main (void) -{ -struct statfs t; long c = *(t.f_spare); - if (c) return 0; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - fu_cv_sys_truncating_statfs=yes -else case e in #( - e) fu_cv_sys_truncating_statfs=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_truncating_statfs" >&5 -printf "%s\n" "$fu_cv_sys_truncating_statfs" >&6; } - if test $fu_cv_sys_truncating_statfs = yes; then - -printf "%s\n" "#define STATFS_TRUNCATES_BLOCK_COUNTS 1" >>confdefs.h - - fi - - - fi - - ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" " - #include - #include - #include - -" -if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1" >>confdefs.h - - -fi - - - - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #define _XOPEN_SOURCE 600 - #include - #include - #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7) - possibly broken posix_fallocate - #endif - -int -main (void) -{ -posix_fallocate(0, 0, 0); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - -printf "%s\n" "#define HAVE_POSIX_FALLOCATE 1" >>confdefs.h - - -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - - - - - - - - test $ac_cv_header_sys_param_h = yes && - test $ac_cv_header_sys_mount_h = yes && - for ac_header in nfs/vfs.h -do : - ac_fn_c_check_header_compile "$LINENO" "nfs/vfs.h" "ac_cv_header_nfs_vfs_h" "$ac_includes_default" -if test "x$ac_cv_header_nfs_vfs_h" = xyes -then : - printf "%s\n" "#define HAVE_NFS_VFS_H 1" >>confdefs.h - ac_fn_c_check_header_compile "$LINENO" "nfs/nfs_client.h" "ac_cv_header_nfs_nfs_client_h" "$ac_includes_default" -if test "x$ac_cv_header_nfs_nfs_client_h" = xyes -then : - printf "%s\n" "#define HAVE_NFS_NFS_CLIENT_H 1" >>confdefs.h - -fi - -fi - -done - - statvfs_includes="\ -$ac_includes_default -#include -" - statfs_includes="\ -$ac_includes_default -#ifdef HAVE_SYS_VFS_H -# include -#elif defined HAVE_SYS_MOUNT_H && defined HAVE_SYS_PARAM_H -# include -# include -# if defined HAVE_NETINET_IN_H && defined HAVE_NFS_NFS_CLNT_H && defined HAVE_NFS_VFS_H -# include -# include -# include -# endif -#elif defined HAVE_OS_H -# include -#endif -" - if case "$fu_cv_sys_stat_statvfs$fu_cv_sys_stat_statvfs64" in - *yes*) ;; *) false;; esac && - { ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "$statvfs_includes -" -if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_BASETYPE 1" >>confdefs.h - - -fi - - test $ac_cv_member_struct_statvfs_f_basetype = yes || - { ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "$statvfs_includes -" -if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1" >>confdefs.h - - -fi - - test $ac_cv_member_struct_statvfs_f_fstypename = yes || - { test $ac_cv_member_struct_statfs_f_fstypename != yes && - { ac_fn_c_check_member "$LINENO" "struct statvfs" "f_type" "ac_cv_member_struct_statvfs_f_type" "$statvfs_includes -" -if test "x$ac_cv_member_struct_statvfs_f_type" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_TYPE 1" >>confdefs.h - - -fi - - test $ac_cv_member_struct_statvfs_f_type = yes; }; }; }; } - then - ac_fn_c_check_member "$LINENO" "struct statvfs" "f_namemax" "ac_cv_member_struct_statvfs_f_namemax" "$statvfs_includes -" -if test "x$ac_cv_member_struct_statvfs_f_namemax" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STATVFS_F_NAMEMAX 1" >>confdefs.h - - -fi - - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$statvfs_includes -int -main (void) -{ -static statvfs s; - return (s.s_fsid ^ 0) == 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - -printf "%s\n" "#define STRUCT_STATVFS_F_FSID_IS_INTEGER 1" >>confdefs.h - -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - else - ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "$statfs_includes -" -if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STATFS_F_NAMELEN 1" >>confdefs.h - - -fi -ac_fn_c_check_member "$LINENO" "struct statfs" "f_type" "ac_cv_member_struct_statfs_f_type" "$statfs_includes -" -if test "x$ac_cv_member_struct_statfs_f_type" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STATFS_F_TYPE 1" >>confdefs.h - - -fi -ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "$statfs_includes -" -if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_STATFS_F_FRSIZE 1" >>confdefs.h - - -fi - - if test $ac_cv_header_OS_h != yes; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -$statfs_includes -int -main (void) -{ -static statfs s; - return (s.s_fsid ^ 0) == 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - -printf "%s\n" "#define STRUCT_STATFS_F_FSID_IS_INTEGER 1" >>confdefs.h - -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - fi - fi - - - - - -ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" -if test "x$ac_cv_func_setlocale" = xyes -then : - printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h - -fi - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 -printf %s "checking whether NLS is requested... " >&6; } - # Check whether --enable-nls was given. -if test ${enable_nls+y} -then : - enableval=$enable_nls; USE_NLS=$enableval -else case e in #( - e) USE_NLS=yes ;; -esac -fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -printf "%s\n" "$USE_NLS" >&6; } - - - - - GETTEXT_MACRO_VERSION=0.18 - - - - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which - # contains only /bin. Note that ksh looks also at the FPATH variable, - # so we have to set that as well for the test. - 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 - -# 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_MSGFMT+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 ;; -esac -fi -MSGFMT="$ac_cv_path_MSGFMT" -if test "$MSGFMT" != ":"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 -printf "%s\n" "$MSGFMT" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - # Extract the first word of "gmsgfmt", so it can be a program name with args. -set dummy gmsgfmt; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_GMSGFMT+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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" - printf "%s\n" "$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 ;; -esac -fi -GMSGFMT=$ac_cv_path_GMSGFMT -if test -n "$GMSGFMT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 -printf "%s\n" "$GMSGFMT" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 - # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which - # contains only /bin. Note that ksh looks also at the FPATH variable, - # so we have to set that as well for the test. - 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 - -# 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_XGETTEXT+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 ;; -esac -fi -XGETTEXT="$ac_cv_path_XGETTEXT" -if test "$XGETTEXT" != ":"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 -printf "%s\n" "$XGETTEXT" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 - # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which - # contains only /bin. Note that ksh looks also at the FPATH variable, - # so we have to set that as well for the test. - 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 - -# 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 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_MSGMERGE+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 ;; -esac -fi -MSGMERGE="$ac_cv_path_MSGMERGE" -if test "$MSGMERGE" != ":"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 -printf "%s\n" "$MSGMERGE" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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" - - - -# Check whether --with-gnu-ld was given. -if test ${with_gnu_ld+y} -then : - withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes -else case e in #( - e) with_gnu_ld=no ;; -esac -fi - -# Prepare PATH_SEPARATOR. -# The user is always right. -if test "${PATH_SEPARATOR+set}" != set; then - # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which - # contains only /bin. Note that ksh looks also at the FPATH variable, - # so we have to set that as well for the test. - 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 - -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -printf %s "checking for ld used by $CC... " >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` - while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -printf %s "checking for GNU ld... " >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -printf %s "checking for non-GNU ld... " >&6; } -fi -if test ${acl_cv_path_LD+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) if test -z "$LD"; then - acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$acl_save_ifs" - 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 variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 &5 -printf "%s\n" "$LD" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi -test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 -printf %s "checking if the linker ($LD) is GNU ld... " >&6; } -if test ${acl_cv_prog_gnu_ld+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &5 -printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$acl_cv_prog_gnu_ld - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 -printf %s "checking for shared library run path origin... " >&6; } -if test ${acl_cv_rpath+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - 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 - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 -printf "%s\n" "$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+y} -then : - enableval=$enable_rpath; : -else case e in #( - e) enable_rpath=yes ;; -esac -fi - - - - - acl_libdirstem=lib - acl_libdirstem2= - case "$host_os" in - solaris*) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 -printf %s "checking for 64-bit host... " >&6; } -if test ${gl_cv_solaris_64bit+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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_TRADITIONAL "sixtyfour bits" >/dev/null 2>&1 -then : - gl_cv_solaris_64bit=yes -else case e in #( - e) gl_cv_solaris_64bit=no ;; -esac -fi -rm -rf conftest* - - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 -printf "%s\n" "$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+y} -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 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 -printf %s "checking for CFPreferencesCopyAppValue... " >&6; } -if test ${gt_cv_func_CFPreferencesCopyAppValue+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main (void) -{ -CFPreferencesCopyAppValue(NULL, NULL) - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - gt_cv_func_CFPreferencesCopyAppValue=yes -else case e in #( - e) gt_cv_func_CFPreferencesCopyAppValue=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then - -printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h - - fi - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 -printf %s "checking for CFLocaleCopyCurrent... " >&6; } -if test ${gt_cv_func_CFLocaleCopyCurrent+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main (void) -{ -CFLocaleCopyCurrent(); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - gt_cv_func_CFLocaleCopyCurrent=yes -else case e in #( - e) gt_cv_func_CFLocaleCopyCurrent=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$gt_save_LIBS" ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 -printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; } - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then - -printf "%s\n" "#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 - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 -printf %s "checking for GNU gettext in libc... " >&6; } -if eval test \${$gt_func_gnugettext_libc+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 (void) -{ - -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 case e in #( - e) eval "$gt_func_gnugettext_libc=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext ;; -esac -fi -eval ac_res=\$$gt_func_gnugettext_libc - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$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 - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 -printf %s "checking for iconv... " >&6; } -if test ${am_cv_func_iconv+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - 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 (void) -{ -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.beam \ - 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 (void) -{ -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.beam \ - conftest$ac_exeext conftest.$ac_ext - LIBS="$am_save_LIBS" - fi - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 -printf "%s\n" "$am_cv_func_iconv" >&6; } - if test "$am_cv_func_iconv" = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 -printf %s "checking for working iconv... " >&6; } -if test ${am_cv_func_iconv_works+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) - 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 case e in #( - e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -#include -#include -int main () -{ - int result = 0; - /* 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) - result |= 1; - iconv_close (cd_utf8_to_88591); - } - } - /* 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) - result |= 2; - iconv_close (cd_ascii_to_88591); - } - } - /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static const char input[] = "\304"; - static char buf[2] = { (char)0xDE, (char)0xAD }; - const char *inptr = input; - size_t inbytesleft = 1; - char *outptr = buf; - size_t outbytesleft = 1; - size_t res = iconv (cd_88591_to_utf8, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) - result |= 4; - iconv_close (cd_88591_to_utf8); - } - } -#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) - result |= 8; - iconv_close (cd_88591_to_utf8); - } - } -#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)) - result |= 16; - return result; -} -_ACEOF -if ac_fn_c_try_run "$LINENO" -then : - am_cv_func_iconv_works=yes -else case e in #( - e) am_cv_func_iconv_works=no ;; -esac -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi - - LIBS="$am_save_LIBS" - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 -printf "%s\n" "$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 - -printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h - - fi - if test "$am_cv_lib_iconv" = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 -printf %s "checking how to link with libiconv... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 -printf "%s\n" "$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+y} -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 - - - - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 -printf %s "checking for GNU gettext in libintl... " >&6; } -if eval test \${$gt_func_gnugettext_libintl+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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 (void) -{ - -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 case e in #( - e) eval "$gt_func_gnugettext_libintl=no" ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - 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 (void) -{ - -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.beam \ - conftest$ac_exeext conftest.$ac_ext - fi - CPPFLAGS="$gt_save_CPPFLAGS" - LIBS="$gt_save_LIBS" ;; -esac -fi -eval ac_res=\$$gt_func_gnugettext_libintl - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 -printf "%s\n" "$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 - -printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h - - else - USE_NLS=no - fi - fi - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 -printf %s "checking whether to use NLS... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -printf "%s\n" "$USE_NLS" >&6; } - if test "$USE_NLS" = "yes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 -printf %s "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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 -printf "%s\n" "$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 -printf %s "checking how to link with libintl... " >&6; } - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 -printf "%s\n" "$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 - - -printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h - - -printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h - - fi - - POSUB=po - fi - - - - INTLLIBS="$LIBINTL" - - - - - - - - - - # Check whether --enable-charset was given. -if test ${enable_charset+y} -then : - enableval=$enable_charset; -fi - - have_charset= - charset_msg="no" - if test "x$enable_charset" != "xno"; then - -printf "%s\n" "#define HAVE_CHARSET 1" >>confdefs.h - - have_charset=yes - charset_msg="yes" - - ac_fn_c_check_header_compile "$LINENO" "gnu/libc-version.h" "ac_cv_header_gnu_libc_version_h" "$ac_includes_default" -if test "x$ac_cv_header_gnu_libc_version_h" = xyes -then : - printf "%s\n" "#define HAVE_GNU_LIBC_VERSION_H 1" >>confdefs.h - -fi - - - case $host_os in - solaris*) - ENCODING_CP1251="ANSI-1251" - ;; - *) - ENCODING_CP1251="CP1251" - ;; - esac - - if test "x$ac_cv_header_gnu_libc_version_h" != "xno"; then - ENCODING_CP866="IBM866" - ENCODING_ISO8859="ISO-8859" - else - ENCODING_CP866="CP866" - ENCODING_ISO8859="ISO8859" - fi - - - - fi - - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 -printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } -if test ${ac_cv_c_undeclared_builtin_options+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_save_CFLAGS=$CFLAGS - ac_cv_c_undeclared_builtin_options='cannot detect' - for ac_arg in '' -fno-builtin; do - CFLAGS="$ac_save_CFLAGS $ac_arg" - # This test program should *not* compile successfully. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main (void) -{ -(void) strchr; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - -else case e in #( - e) # This test program should compile successfully. - # No library function is consistently available on - # freestanding implementations, so test against a dummy - # declaration. Include always-available headers on the - # off chance that they somehow elicit warnings. - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include -#include -extern void ac_decl (int, char *); - -int -main (void) -{ -(void) ac_decl (0, (char *) 0); - (void) ac_decl; - - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO" -then : - if test x"$ac_arg" = x -then : - ac_cv_c_undeclared_builtin_options='none needed' -else case e in #( - e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; -esac -fi - break -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext - done - CFLAGS=$ac_save_CFLAGS - ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 -printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } - case $ac_cv_c_undeclared_builtin_options in #( - 'cannot detect') : - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} -as_fn_error $? "cannot make $CC report undeclared builtins -See 'config.log' for more details" "$LINENO" 5; } ;; #( - 'none needed') : - ac_c_undeclared_builtin_options='' ;; #( - *) : - ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; -esac - -ac_fn_check_decl "$LINENO" "environ" "ac_cv_have_decl_environ" " #include - #include -" "$ac_c_undeclared_builtin_options" "CFLAGS" -if test "x$ac_cv_have_decl_environ" = xyes -then : - ac_have_decl=1 -else case e in #( - e) ac_have_decl=0 ;; -esac -fi -printf "%s\n" "#define HAVE_DECL_ENVIRON $ac_have_decl" >>confdefs.h - - -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_PERL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_PERL="$PERL" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATORQOpenSys/pkgs/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_PERL="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_PERL" && ac_cv_path_PERL="/usr/bin/env perl" - ;; -esac ;; -esac -fi -PERL=$ac_cv_path_PERL -if test -n "$PERL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 -printf "%s\n" "$PERL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -# Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_PERL_FOR_BUILD+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $PERL_FOR_BUILD in - [\\/]* | ?:[\\/]*) - ac_cv_path_PERL_FOR_BUILD="$PERL_FOR_BUILD" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATORQOpenSys/pkgs/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_PERL_FOR_BUILD="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_PERL_FOR_BUILD" && ac_cv_path_PERL_FOR_BUILD="/usr/bin/env perl" - ;; -esac ;; -esac -fi -PERL_FOR_BUILD=$ac_cv_path_PERL_FOR_BUILD -if test -n "$PERL_FOR_BUILD"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL_FOR_BUILD" >&5 -printf "%s\n" "$PERL_FOR_BUILD" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -# Extract the first word of "python3", so it can be a program name with args. -set dummy python3; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_PYTHON+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $PYTHON in - [\\/]* | ?:[\\/]*) - ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATORQOpenSys/pkgs/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_PYTHON="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_PYTHON" && ac_cv_path_PYTHON="/usr/bin/env python3" - ;; -esac ;; -esac -fi -PYTHON=$ac_cv_path_PYTHON -if test -n "$PYTHON"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 -printf "%s\n" "$PYTHON" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -# Extract the first word of "ruby", so it can be a program name with args. -set dummy ruby; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_RUBY+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $RUBY in - [\\/]* | ?:[\\/]*) - ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path. - ;; - *) - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH$PATH_SEPARATORQOpenSys/pkgs/bin -do - IFS=$as_save_IFS - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_RUBY="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_RUBY" && ac_cv_path_RUBY="/usr/bin/env ruby" - ;; -esac ;; -esac -fi -RUBY=$ac_cv_path_RUBY -if test -n "$RUBY"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5 -printf "%s\n" "$RUBY" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - -case $host_os in -aux*) - # A/UX - LIBS="$LIBS -lposix" - printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h - - ;; -esac - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for AIX defines" >&5 -printf %s "checking for AIX defines... " >&6; } -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - - #if defined(AIX) || defined(_AIX) || defined(__aix__) || defined(aix) - yes - #endif - -_ACEOF -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP_TRADITIONAL "yes" >/dev/null 2>&1 -then : - - -printf "%s\n" "#define IS_AIX 1" >>confdefs.h - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - -else case e in #( - e) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - ;; -esac -fi -rm -rf conftest* - - -ac_fn_c_check_func "$LINENO" "utimensat" "ac_cv_func_utimensat" -if test "x$ac_cv_func_utimensat" = xyes -then : - printf "%s\n" "#define HAVE_UTIMENSAT 1" >>confdefs.h - -fi - - -case $host_os in -*os400) - -printf "%s\n" "#define PTY_ZEROREAD 1" >>confdefs.h - -esac - -case $host_os in -linux*) - ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" -if test "x$ac_cv_header_linux_fs_h" = xyes -then : - printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h - -fi - -esac - -cons_saver="" -case $host_os in -linux*) - cons_saver=yes -esac - -mouse_lib="xterm only" - -# Check whether --with-gpm-mouse was given. -if test ${with_gpm_mouse+y} -then : - withval=$with_gpm_mouse; -fi - - -case $host_os in -linux*) - if test x$with_gpm_mouse != xno; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Gpm_Repeat in -lgpm" >&5 -printf %s "checking for Gpm_Repeat in -lgpm... " >&6; } -if test ${ac_cv_lib_gpm_Gpm_Repeat+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) ac_check_lib_save_LIBS=$LIBS -LIBS="-lgpm $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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char Gpm_Repeat (void); -int -main (void) -{ -return Gpm_Repeat (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_gpm_Gpm_Repeat=yes -else case e in #( - e) ac_cv_lib_gpm_Gpm_Repeat=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Repeat" >&5 -printf "%s\n" "$ac_cv_lib_gpm_Gpm_Repeat" >&6; } -if test "x$ac_cv_lib_gpm_Gpm_Repeat" = xyes -then : - -printf "%s\n" "#define HAVE_LIBGPM 1" >>confdefs.h - - mouse_lib="gpm and xterm" - MCLIBS="$MCLIBS -lgpm" -else case e in #( - e) if test "x$with_gpm_mouse" = "xyes"; then - as_fn_error $? "libgpm is missing or older than 0.18" "$LINENO" 5 - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgpm is missing or older than 0.18" >&5 -printf "%s\n" "$as_me: WARNING: libgpm is missing or older than 0.18" >&2;} - fi - ;; -esac -fi - - fi - ;; -esac - - - -LIBMC_VERSION="0.0.1" -LIBMC_RELEASE="1" - - - -# Check whether --enable-mclib was given. -if test ${enable_mclib+y} -then : - enableval=$enable_mclib; - if test "x$enableval" = "xno" ; then - enable_mclib=no - else - if test "x$enable_shared" = "xno" ; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Build of shared library is disabled. Specify --enable-shared first" >&5 -printf "%s\n" "$as_me: WARNING: Build of shared library is disabled. Specify --enable-shared first" >&2;} - enable_mclib=no - else - enable_mclib=yes - fi - fi - -else case e in #( - e) enable_mclib=no ;; -esac -fi - - - if test x$enable_mclib = xyes; then - ENABLE_MCLIB_TRUE= - ENABLE_MCLIB_FALSE='#' -else - ENABLE_MCLIB_TRUE='#' - ENABLE_MCLIB_FALSE= -fi - - - - - - # Check whether --enable-assert was given. -if test ${enable_assert+y} -then : - enableval=$enable_assert; - if test "x$enableval" = xno; then - enable_assert=no - else - enable_assert=yes - fi - -else case e in #( - e) enable_assert=yes ;; -esac -fi - - - if test "x$enable_assert" = xno; then - -printf "%s\n" "#define G_DISABLE_ASSERT 1" >>confdefs.h - - fi - - - - - -# Check whether --with-internal_edit was given. -if test ${with_internal_edit+y} -then : - withval=$with_internal_edit; -fi - - - if test x$with_internal_edit != xno; then - -printf "%s\n" "#define USE_INTERNAL_EDIT 1" >>confdefs.h - - use_internal_edit=yes - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using internal editor" >&5 -printf "%s\n" "$as_me: using internal editor" >&6;} - edit_msg="yes" - else - use_internal_edit=no - edit_msg="no" - fi - - # Check whether --enable-aspell was given. -if test ${enable_aspell+y} -then : - enableval=$enable_aspell; - if test "x$enableval" = xno; then - enable_aspell=no - else - test -d "$enable_aspell/include" && CPPFLAGS="$CPPFLAGS -I$enable_aspell/include" - enable_aspell=yes - fi - -else case e in #( - e) enable_aspell=no - ;; -esac -fi - - - if test x$with_internal_edit != xno -a x$enable_aspell != xno; then - for ac_header in aspell.h -do : - ac_fn_c_check_header_compile "$LINENO" "aspell.h" "ac_cv_header_aspell_h" "$ac_includes_default" -if test "x$ac_cv_header_aspell_h" = xyes -then : - printf "%s\n" "#define HAVE_ASPELL_H 1" >>confdefs.h - -else case e in #( - e) - as_fn_error $? "Could not find aspell development headers" "$LINENO" 5 - ;; -esac -fi - -done - - if test x"$g_module_supported" != x; then - -printf "%s\n" "#define HAVE_ASPELL 1" >>confdefs.h - - edit_msg="yes with aspell support" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using aspell for internal editor" >&5 -printf "%s\n" "$as_me: using aspell for internal editor" >&6;} - else - enable_aspell=no - as_fn_error $? "aspell support is disabled because gmodule support is not available" "$LINENO" 5 - fi - fi - - - -# Check whether --with-diff_viewer was given. -if test ${with_diff_viewer+y} -then : - withval=$with_diff_viewer; -fi - - -if test x$with_diff_viewer != xno; then - -printf "%s\n" "#define USE_DIFF_VIEW 1" >>confdefs.h - - use_diff=yes - diff_msg="yes" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using diff viewer" >&5 -printf "%s\n" "$as_me: using diff viewer" >&6;} -else - diff_msg="no" -fi - - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for subshell support" >&5 -printf %s "checking for subshell support... " >&6; } - -# Check whether --with-subshell was given. -if test ${with_subshell+y} -then : - withval=$with_subshell; - case "x$withval" in - xyes) - result="yes" - ;; - xoptional) - result="optional" - ;; - *) - result="no" - ;; - esac - -else case e in #( - e) - result="yes" - ;; -esac -fi - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $result" >&5 -printf "%s\n" "$result" >&6; } - - if test "x$result" != xno; then - -printf "%s\n" "#define ENABLE_SUBSHELL 1" >>confdefs.h - - - ac_fn_c_check_header_compile "$LINENO" "pty.h" "ac_cv_header_pty_h" "$ac_includes_default" -if test "x$ac_cv_header_pty_h" = xyes -then : - printf "%s\n" "#define HAVE_PTY_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default" -if test "x$ac_cv_header_libutil_h" = xyes -then : - printf "%s\n" "#define HAVE_LIBUTIL_H 1" >>confdefs.h - -fi -ac_fn_c_check_header_compile "$LINENO" "util.h" "ac_cv_header_util_h" "$ac_includes_default" -if test "x$ac_cv_header_util_h" = xyes -then : - printf "%s\n" "#define HAVE_UTIL_H 1" >>confdefs.h - -fi - - - for ac_func in openpty -do : - ac_fn_c_check_func "$LINENO" "openpty" "ac_cv_func_openpty" -if test "x$ac_cv_func_openpty" = xyes -then : - printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h - -else case e in #( - e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5 -printf %s "checking for openpty in -lutil... " >&6; } -if test ${ac_cv_lib_util_openpty+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char openpty (void); -int -main (void) -{ -return openpty (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO" -then : - ac_cv_lib_util_openpty=yes -else case e in #( - e) ac_cv_lib_util_openpty=no ;; -esac -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5 -printf "%s\n" "$ac_cv_lib_util_openpty" >&6; } -if test "x$ac_cv_lib_util_openpty" = xyes -then : - printf "%s\n" "#define HAVE_OPENPTY 1" >>confdefs.h - - LIBS="$LIBS -lutil" - -fi - - ;; -esac -fi - -done - - if test "x$result" = xoptional; then - -printf "%s\n" "#define SUBSHELL_OPTIONAL 1" >>confdefs.h - - fi - fi - - subshell="$result" - - if test "x$result" != xno; then - ENABLE_SUBSHELL_TRUE= - ENABLE_SUBSHELL_FALSE='#' -else - ENABLE_SUBSHELL_TRUE='#' - ENABLE_SUBSHELL_FALSE= -fi - - - - # Check whether --enable-background was given. -if test ${enable_background+y} -then : - enableval=$enable_background; - if test "x$enableval" = xno; then - enable_background=no - else - enable_background=yes - fi - -else case e in #( - e) enable_background=yes ;; -esac -fi - - - if test "x$enable_background" = xyes; then - -printf "%s\n" "#define ENABLE_BACKGROUND 1" >>confdefs.h - - fi - - if test "x$enable_background" = xyes; then - ENABLE_BACKGROUND_TRUE= - ENABLE_BACKGROUND_FALSE='#' -else - ENABLE_BACKGROUND_TRUE='#' - ENABLE_BACKGROUND_FALSE= -fi - - - - ext2fs_attr_msg="no" - - -pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ext2fs >= 1.42.4" >&5 -printf %s "checking for ext2fs >= 1.42.4... " >&6; } - -if test -n "$EXT2FS_CFLAGS"; then - pkg_cv_EXT2FS_CFLAGS="$EXT2FS_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ext2fs >= 1.42.4\""; } >&5 - ($PKG_CONFIG --exists --print-errors "ext2fs >= 1.42.4") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_EXT2FS_CFLAGS=`$PKG_CONFIG --cflags "ext2fs >= 1.42.4" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$EXT2FS_LIBS"; then - pkg_cv_EXT2FS_LIBS="$EXT2FS_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ext2fs >= 1.42.4\""; } >&5 - ($PKG_CONFIG --exists --print-errors "ext2fs >= 1.42.4") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_EXT2FS_LIBS=`$PKG_CONFIG --libs "ext2fs >= 1.42.4" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 - EXT2FS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ext2fs >= 1.42.4" 2>&1` - else - EXT2FS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ext2fs >= 1.42.4" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$EXT2FS_PKG_ERRORS" >&5 - - : -elif test $pkg_failed = untried; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - : -else - EXT2FS_CFLAGS=$pkg_cv_EXT2FS_CFLAGS - EXT2FS_LIBS=$pkg_cv_EXT2FS_LIBS - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - found_ext2fs=yes -fi - - if test x"$found_ext2fs" = "xyes"; then - -pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for e2p >= 1.42.4" >&5 -printf %s "checking for e2p >= 1.42.4... " >&6; } - -if test -n "$E2P_CFLAGS"; then - pkg_cv_E2P_CFLAGS="$E2P_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"e2p >= 1.42.4\""; } >&5 - ($PKG_CONFIG --exists --print-errors "e2p >= 1.42.4") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_E2P_CFLAGS=`$PKG_CONFIG --cflags "e2p >= 1.42.4" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$E2P_LIBS"; then - pkg_cv_E2P_LIBS="$E2P_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"e2p >= 1.42.4\""; } >&5 - ($PKG_CONFIG --exists --print-errors "e2p >= 1.42.4") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_E2P_LIBS=`$PKG_CONFIG --libs "e2p >= 1.42.4" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 - E2P_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "e2p >= 1.42.4" 2>&1` - else - E2P_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "e2p >= 1.42.4" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$E2P_PKG_ERRORS" >&5 - - : -elif test $pkg_failed = untried; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - : -else - E2P_CFLAGS=$pkg_cv_E2P_CFLAGS - E2P_LIBS=$pkg_cv_E2P_LIBS - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - found_e2p=yes -fi - - if test x"$found_e2p" = "xyes"; then - -printf "%s\n" "#define ENABLE_EXT2FS_ATTR 1" >>confdefs.h - - MCLIBS="$MCLIBS $E2P_LIBS" - CPPFLAGS="$CPPFLAGS $EXT2FS_CFLAGS $E2P_CFLAGS" - ext2fs_attr_msg="yes" - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: e2p library not found or version too old (must be >= 1.42.4)" >&5 -printf "%s\n" "$as_me: WARNING: e2p library not found or version too old (must be >= 1.42.4)" >&2;} - ext2fs_attr_msg="no" - fi - else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ext2fs library not found or version too old (must be >= 1.42.4)" >&5 -printf "%s\n" "$as_me: WARNING: ext2fs library not found or version too old (must be >= 1.42.4)" >&2;} - ext2fs_attr_msg="no" - fi - - if test "x$ext2fs_attr_msg" = "xyes"; then - ENABLE_EXT2FS_ATTR_TRUE= - ENABLE_EXT2FS_ATTR_FALSE='#' -else - ENABLE_EXT2FS_ATTR_TRUE='#' - ENABLE_EXT2FS_ATTR_FALSE= -fi - - - - vfs_type="normal" - - # Check whether --enable-vfs was given. -if test ${enable_vfs+y} -then : - enableval=$enable_vfs; - if test "x$enableval" = "xno"; then - enable_vfs=no - else - enable_vfs=yes - fi - -else case e in #( - e) enable_vfs=yes ;; -esac -fi - - - if test x"$enable_vfs" = x"yes" ; then - vfs_type="Midnight Commander Virtual Filesystem" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Enabling VFS code" >&5 -printf "%s\n" "$as_me: Enabling VFS code" >&6;} - -printf "%s\n" "#define ENABLE_VFS 1" >>confdefs.h - - fi - - - # Check whether --enable-vfs-cpio was given. -if test ${enable_vfs_cpio+y} -then : - enableval=$enable_vfs_cpio; -fi - - if test "$enable_vfs" = "yes" -a x"$enable_vfs_cpio" != x"no"; then - enable_vfs_cpio="yes" - -printf "%s\n" "#define ENABLE_VFS_CPIO 1" >>confdefs.h - - - if test x"$vfs_flags" = "x" ; then - vfs_flags="cpio" - else - vfs_flags="$vfs_flags, cpio" - fi - - fi - if test "$enable_vfs" = "yes" -a x"$enable_vfs_cpio" = x"yes"; then - ENABLE_VFS_CPIO_TRUE= - ENABLE_VFS_CPIO_FALSE='#' -else - ENABLE_VFS_CPIO_TRUE='#' - ENABLE_VFS_CPIO_FALSE= -fi - - - - # Check whether --enable-vfs-extfs was given. -if test ${enable_vfs_extfs+y} -then : - enableval=$enable_vfs_extfs; -fi - - if test "$enable_vfs" = "yes" -a x"$enable_vfs_extfs" != x"no"; then - - # Extract the first word of "zip", so it can be a program name with args. -set dummy zip; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ZIP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ZIP in - [\\/]* | ?:[\\/]*) - ac_cv_path_ZIP="$ZIP" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_ZIP="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_ZIP" && ac_cv_path_ZIP="/usr/bin/zip" - ;; -esac ;; -esac -fi -ZIP=$ac_cv_path_ZIP -if test -n "$ZIP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 -printf "%s\n" "$ZIP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - # Extract the first word of "unzip", so it can be a program name with args. -set dummy unzip; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_UNZIP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $UNZIP in - [\\/]* | ?:[\\/]*) - ac_cv_path_UNZIP="$UNZIP" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_UNZIP="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$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_UNZIP" && ac_cv_path_UNZIP="/usr/bin/unzip" - ;; -esac ;; -esac -fi -UNZIP=$ac_cv_path_UNZIP -if test -n "$UNZIP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 -printf "%s\n" "$UNZIP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zipinfo code in unzip" >&5 -printf %s "checking for zipinfo code in unzip... " >&6; } -if test ${mc_cv_have_zipinfo+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) mc_cv_have_zipinfo=no - if $UNZIP -Z /dev/null 2>&1; then - mc_cv_have_zipinfo=yes - fi ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mc_cv_have_zipinfo" >&5 -printf "%s\n" "$mc_cv_have_zipinfo" >&6; } - if test x"$mc_cv_have_zipinfo" = xyes; then - HAVE_ZIPINFO=1 - else - HAVE_ZIPINFO=0 - fi - - - enable_vfs_extfs="yes" - - if test x"$vfs_flags" = "x" ; then - vfs_flags="extfs" - else - vfs_flags="$vfs_flags, extfs" - fi - - -printf "%s\n" "#define ENABLE_VFS_EXTFS 1" >>confdefs.h - - fi - if test "$enable_vfs" = "yes" -a x"$enable_vfs_extfs" = x"yes"; then - ENABLE_VFS_EXTFS_TRUE= - ENABLE_VFS_EXTFS_FALSE='#' -else - ENABLE_VFS_EXTFS_TRUE='#' - ENABLE_VFS_EXTFS_FALSE= -fi - - - - # Check whether --enable-vfs-shell was given. -if test ${enable_vfs_shell+y} -then : - enableval=$enable_vfs_shell; -fi - - if test "$enable_vfs" = "yes" -a "x$enable_vfs_shell" != xno; then - enable_vfs_shell="yes" - - if test x"$vfs_flags" = "x" ; then - vfs_flags="shell" - else - vfs_flags="$vfs_flags, shell" - fi - - -printf "%s\n" "#define ENABLE_VFS_SHELL 1" >>confdefs.h - - fi - if test "$enable_vfs" = "yes" -a x"$enable_vfs_shell" = x"yes"; then - ENABLE_VFS_SHELL_TRUE= - ENABLE_VFS_SHELL_FALSE='#' -else - ENABLE_VFS_SHELL_TRUE='#' - ENABLE_VFS_SHELL_FALSE= -fi - - - - # Check whether --enable-vfs-ftp was given. -if test ${enable_vfs_ftp+y} -then : - enableval=$enable_vfs_ftp; -fi - - if test "$enable_vfs" != "no" -a x"$enable_vfs_ftp" != x"no"; then - enable_vfs_ftp="yes" - - if test x"$vfs_flags" = "x" ; then - vfs_flags="ftp" - else - vfs_flags="$vfs_flags, ftp" - fi - - -printf "%s\n" "#define ENABLE_VFS_FTP 1" >>confdefs.h - - fi - if test "$enable_vfs" = "yes" -a x"$enable_vfs_ftp" = x"yes"; then - ENABLE_VFS_FTP_TRUE= - ENABLE_VFS_FTP_FALSE='#' -else - ENABLE_VFS_FTP_TRUE='#' - ENABLE_VFS_FTP_FALSE= -fi - - - - # Check whether --enable-vfs-sfs was given. -if test ${enable_vfs_sfs+y} -then : - enableval=$enable_vfs_sfs; -fi - - if test "$enable_vfs" = "yes" -a x"$enable_vfs_sfs" != x"no"; then - enable_vfs_sfs="yes" - - if test x"$vfs_flags" = "x" ; then - vfs_flags="sfs" - else - vfs_flags="$vfs_flags, sfs" - fi - - -printf "%s\n" "#define ENABLE_VFS_SFS 1" >>confdefs.h - - fi - if test "$enable_vfs" = "yes" -a x"$enable_vfs_sfs" = x"yes"; then - ENABLE_VFS_SFS_TRUE= - ENABLE_VFS_SFS_FALSE='#' -else - ENABLE_VFS_SFS_TRUE='#' - ENABLE_VFS_SFS_FALSE= -fi - - - - # Check whether --enable-vfs-sftp was given. -if test ${enable_vfs_sftp+y} -then : - enableval=$enable_vfs_sftp; -fi - - if test "$enable_vfs" != "no" -a x"$enable_vfs_sftp" != x"no"; then - -pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 >= 1.2.8" >&5 -printf %s "checking for libssh2 >= 1.2.8... " >&6; } - -if test -n "$LIBSSH_CFLAGS"; then - pkg_cv_LIBSSH_CFLAGS="$LIBSSH_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssh2 >= 1.2.8\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libssh2 >= 1.2.8") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_LIBSSH_CFLAGS=`$PKG_CONFIG --cflags "libssh2 >= 1.2.8" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$LIBSSH_LIBS"; then - pkg_cv_LIBSSH_LIBS="$LIBSSH_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libssh2 >= 1.2.8\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libssh2 >= 1.2.8") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_LIBSSH_LIBS=`$PKG_CONFIG --libs "libssh2 >= 1.2.8" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi - - - -if test $pkg_failed = yes; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 - LIBSSH_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libssh2 >= 1.2.8" 2>&1` - else - LIBSSH_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libssh2 >= 1.2.8" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$LIBSSH_PKG_ERRORS" >&5 - - : -elif test $pkg_failed = untried; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - : -else - LIBSSH_CFLAGS=$pkg_cv_LIBSSH_CFLAGS - LIBSSH_LIBS=$pkg_cv_LIBSSH_LIBS - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - found_libssh=yes -fi - if test x"$found_libssh" = "xyes"; then - - if test x"$vfs_flags" = "x" ; then - vfs_flags="sftp" - else - vfs_flags="$vfs_flags, sftp" - fi - - -printf "%s\n" "#define ENABLE_VFS_SFTP 1" >>confdefs.h - - MCLIBS="$MCLIBS $LIBSSH_LIBS" - enable_vfs_sftp="yes" - else - if test x"$enable_vfs_sftp" = x"yes"; then - as_fn_error $? "libssh2 >= 1.2.8 library not found" "$LINENO" 5 - fi - enable_vfs_sftp="no" - fi - fi - if test "$enable_vfs" = "yes" -a x"$enable_vfs_sftp" = x"yes"; then - ENABLE_VFS_SFTP_TRUE= - ENABLE_VFS_SFTP_FALSE='#' -else - ENABLE_VFS_SFTP_TRUE='#' - ENABLE_VFS_SFTP_FALSE= -fi - - - - # Check whether --enable-vfs-tar was given. -if test ${enable_vfs_tar+y} -then : - enableval=$enable_vfs_tar; -fi - - if test "$enable_vfs" = "yes" -a x"$enable_vfs_tar" != x"no"; then - enable_vfs_tar="yes" - - if test x"$vfs_flags" = "x" ; then - vfs_flags="tar" - else - vfs_flags="$vfs_flags, tar" - fi - - -printf "%s\n" "#define ENABLE_VFS_TAR 1" >>confdefs.h - - fi - if test "$enable_vfs" = "yes" -a x"$enable_vfs_tar" = x"yes"; then - ENABLE_VFS_TAR_TRUE= - ENABLE_VFS_TAR_FALSE='#' -else - ENABLE_VFS_TAR_TRUE='#' - ENABLE_VFS_TAR_FALSE= -fi - - - - # Check whether --enable-vfs-undelfs was given. -if test ${enable_vfs_undelfs+y} -then : - enableval=$enable_vfs_undelfs; - if test "x$enableval" = "xno"; then - enable_vfs_undelfs=no - else - enable_vfs_undelfs=yes - fi - -else case e in #( - e) enable_vfs_undelfs="no" ;; -esac -fi - - - if test x"$enable_vfs" = x"yes" -a x"$enable_vfs_undelfs" != x"no"; then - - ext2fs_undel=no - EXT2FS_UNDEL_LIBS= - - if test "x$ext2fs_attr_msg" = "xyes"; then - com_err=no - - -pkg_failed=no -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for com_err >= 1.42.4" >&5 -printf %s "checking for com_err >= 1.42.4... " >&6; } - -if test -n "$COM_ERR_CFLAGS"; then - pkg_cv_COM_ERR_CFLAGS="$COM_ERR_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err >= 1.42.4\""; } >&5 - ($PKG_CONFIG --exists --print-errors "com_err >= 1.42.4") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_COM_ERR_CFLAGS=`$PKG_CONFIG --cflags "com_err >= 1.42.4" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$COM_ERR_LIBS"; then - pkg_cv_COM_ERR_LIBS="$COM_ERR_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"com_err >= 1.42.4\""; } >&5 - ($PKG_CONFIG --exists --print-errors "com_err >= 1.42.4") 2>&5 - ac_status=$? - printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_COM_ERR_LIBS=`$PKG_CONFIG --libs "com_err >= 1.42.4" 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "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 - COM_ERR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "com_err >= 1.42.4" 2>&1` - else - COM_ERR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "com_err >= 1.42.4" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$COM_ERR_PKG_ERRORS" >&5 - - : -elif test $pkg_failed = untried; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } - : -else - COM_ERR_CFLAGS=$pkg_cv_COM_ERR_CFLAGS - COM_ERR_LIBS=$pkg_cv_COM_ERR_LIBS - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -printf "%s\n" "yes" >&6; } - com_err=yes -fi - - if test x"$com_err" = "xyes"; then - EXT2FS_UNDEL_LIBS="$EXT2FS_LIBS $COM_ERR_LIBS" - ext2fs_undel=yes - fi - fi - - - - if test x"$ext2fs_undel" = x"yes"; then - enable_vfs_undelfs="yes" - - if test x"$vfs_flags" = "x" ; then - vfs_flags="undelfs" - else - vfs_flags="$vfs_flags, undelfs" - fi - - -printf "%s\n" "#define ENABLE_VFS_UNDELFS 1" >>confdefs.h - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using ext2fs file recovery code" >&5 -printf "%s\n" "$as_me: using ext2fs file recovery code" >&6;} - MCLIBS="$MCLIBS $EXT2FS_UNDEL_LIBS" - else - as_fn_error $? "Ext2 libraries not found" "$LINENO" 5 - fi - fi - if test "$enable_vfs" = "yes" -a x"$enable_vfs_undelfs" = x"yes"; then - ENABLE_VFS_UNDELFS_TRUE= - ENABLE_VFS_UNDELFS_FALSE='#' -else - ENABLE_VFS_UNDELFS_TRUE='#' - ENABLE_VFS_UNDELFS_FALSE= -fi - - - - if test x"$enable_vfs" = x"yes"; then - ENABLE_VFS_TRUE= - ENABLE_VFS_FALSE='#' -else - ENABLE_VFS_TRUE='#' - ENABLE_VFS_FALSE= -fi - - - if test x"$enable_vfs_ftp" = x"yes" -o x"$enable_vfs_shell" = x"yes" -o x"$enable_vfs_sftp" = x"yes"; then - - - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 -printf %s "checking for library containing socket... " >&6; } -if test ${ac_cv_search_socket+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char socket (void); -int -main (void) -{ -return socket (); - ; - return 0; -} -_ACEOF -for ac_lib in '' xnet bsd socket inet -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_socket=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_socket+y} -then : - break -fi -done -if test ${ac_cv_search_socket+y} -then : - -else case e in #( - e) ac_cv_search_socket=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 -printf "%s\n" "$ac_cv_search_socket" >&6; } -ac_res=$ac_cv_search_socket -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - have_socket=yes -fi - - if test x"$have_socket" = x"yes"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5 -printf %s "checking for library containing gethostbyname... " >&6; } -if test ${ac_cv_search_gethostbyname+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) 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. - The 'extern "C"' is for builds by C++ compilers; - although this is not generally supported in C code supporting it here - has little cost and some practical benefit (sr 110532). */ -#ifdef __cplusplus -extern "C" -#endif -char gethostbyname (void); -int -main (void) -{ -return gethostbyname (); - ; - return 0; -} -_ACEOF -for ac_lib in '' bsd socket inet netinet nsl -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_gethostbyname=$ac_res -fi -rm -f core conftest.err conftest.$ac_objext conftest.beam \ - conftest$ac_exeext - if test ${ac_cv_search_gethostbyname+y} -then : - break -fi -done -if test ${ac_cv_search_gethostbyname+y} -then : - -else case e in #( - e) ac_cv_search_gethostbyname=no ;; -esac -fi -rm conftest.$ac_ext -LIBS=$ac_func_search_save_LIBS ;; -esac -fi -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5 -printf "%s\n" "$ac_cv_search_gethostbyname" >&6; } -ac_res=$ac_cv_search_gethostbyname -if test "$ac_res" != no -then : - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" - -fi - - ac_fn_c_check_member "$LINENO" "struct linger" "l_linger" "ac_cv_member_struct_linger_l_linger" " -#include -#include - -" -if test "x$ac_cv_member_struct_linger_l_linger" = xyes -then : - -printf "%s\n" "#define HAVE_STRUCT_LINGER_L_LINGER 1" >>confdefs.h - - -fi - - else - as_fn_error $? "Couldn't find socket functions" "$LINENO" 5 - fi - - if test x"$have_socket" = xyes; then - ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "$ac_includes_default" -if test "x$ac_cv_type_nlink_t" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define nlink_t unsigned int" >>confdefs.h - ;; -esac -fi - - ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" " -#include -#include - -" -if test "x$ac_cv_type_socklen_t" = xyes -then : - -printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h - - -fi - - - enable_vfs_net=yes - -printf "%s\n" "#define ENABLE_VFS_NET 1" >>confdefs.h - - fi - - fi - - if test x"$enable_vfs_net" = x"yes"; then - ENABLE_VFS_NET_TRUE= - ENABLE_VFS_NET_FALSE='#' -else - ENABLE_VFS_NET_TRUE='#' - ENABLE_VFS_NET_FALSE= -fi - - - - -test "x$prefix" = "xNONE" && prefix="$ac_default_prefix" -test "x$exec_prefix" = "xNONE" && exec_prefix="${prefix}" - -if test x${libexecdir} = x'${exec_prefix}/libexec'; then - EXTHELPERSDIR=${prefix}/libexec/${PACKAGE}/ext.d - EXTFSHELPERSDIR=${prefix}/libexec/${PACKAGE}/extfs.d -elif test x${libexecdir} = x'${exec_prefix}/lib'; then - EXTHELPERSDIR=${prefix}/lib/${PACKAGE}/ext.d - EXTFSHELPERSDIR=${prefix}/lib/${PACKAGE}/extfs.d -else - EXTHELPERSDIR=${libexecdir}/${PACKAGE}/ext.d - EXTFSHELPERSDIR=${libexecdir}/${PACKAGE}/extfs.d -fi - - - - - -MAN_DATE="$(LC_ALL=C date "+%B %Y")" - - -ALL_DOC_LINGUAS="es hu it pl ru sr" - -DOC_LINGUAS= -if test "x$USE_NLS" = xyes; then - if test -z "$LINGUAS"; then - langs="`grep -v '^#' $srcdir/po/LINGUAS`" - else - langs="$LINGUAS" - fi -else - langs= -fi - -for h_lang in $ALL_DOC_LINGUAS; do - for lang in $langs; do - if test "$lang" = "$h_lang"; then - DOC_LINGUAS="$DOC_LINGUAS $lang" - break - fi - done -done - - - - - - - - - - - - -# Files: -DX_PROJECT=mc - -DX_CONFIG=doxygen.cfg - -DX_DOCDIR=devel - - -# Environment variables used inside doxygen.cfg: -SRCDIR=`cd $srcdir; pwd` -DX_ENV="$DX_ENV SRCDIR='$SRCDIR'" - -DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'" - -DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'" - -DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'" - - -# Doxygen itself: - - - - # Check whether --enable-doxygen-doc was given. -if test ${enable_doxygen_doc+y} -then : - enableval=$enable_doxygen_doc; -case "$enableval" in -#( -y|Y|yes|Yes|YES) - DX_FLAG_doc=1 - - -;; #( -n|N|no|No|NO) - DX_FLAG_doc=0 - -;; #( -*) - as_fn_error $? "invalid value '$enableval' given to doxygen-doc" "$LINENO" 5 -;; -esac - -else case e in #( - e) -DX_FLAG_doc=1 - - - ;; -esac -fi - -if test "$DX_FLAG_doc" = 1; then - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args. -set dummy ${ac_tool_prefix}doxygen; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_DOXYGEN+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_DOXYGEN in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN -if test -n "$DX_DOXYGEN"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOXYGEN" >&5 -printf "%s\n" "$DX_DOXYGEN" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_DOXYGEN"; then - ac_pt_DX_DOXYGEN=$DX_DOXYGEN - # Extract the first word of "doxygen", so it can be a program name with args. -set dummy doxygen; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_DOXYGEN+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_DOXYGEN in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_DOXYGEN="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN -if test -n "$ac_pt_DX_DOXYGEN"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOXYGEN" >&5 -printf "%s\n" "$ac_pt_DX_DOXYGEN" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_DOXYGEN" = x; then - DX_DOXYGEN="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_DOXYGEN=$ac_pt_DX_DOXYGEN - fi -else - DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN" -fi - -if test x"$DX_FLAG_doc$DX_DOXYGEN" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found - will not generate any doxygen documentation" >&5 -printf "%s\n" "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;} - DX_FLAG_doc=0 - -fi - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args. -set dummy ${ac_tool_prefix}perl; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_PERL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_PERL="$DX_PERL" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_PERL="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_PERL=$ac_cv_path_DX_PERL -if test -n "$DX_PERL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PERL" >&5 -printf "%s\n" "$DX_PERL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_PERL"; then - ac_pt_DX_PERL=$DX_PERL - # Extract the first word of "perl", so it can be a program name with args. -set dummy perl; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_PERL+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_PERL in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_PERL="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL -if test -n "$ac_pt_DX_PERL"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PERL" >&5 -printf "%s\n" "$ac_pt_DX_PERL" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_PERL" = x; then - DX_PERL="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_PERL=$ac_pt_DX_PERL - fi -else - DX_PERL="$ac_cv_path_DX_PERL" -fi - -if test x"$DX_FLAG_doc$DX_PERL" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: perl not found - will not generate any doxygen documentation" >&5 -printf "%s\n" "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;} - DX_FLAG_doc=0 - -fi - - : -fi -if test "$DX_FLAG_doc" = 1; then - if :; then - DX_COND_doc_TRUE= - DX_COND_doc_FALSE='#' -else - DX_COND_doc_TRUE='#' - DX_COND_doc_FALSE= -fi - - DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'" - - : -else - if false; then - DX_COND_doc_TRUE= - DX_COND_doc_FALSE='#' -else - DX_COND_doc_TRUE='#' - DX_COND_doc_FALSE= -fi - - - : -fi - - -# Dot for graphics: - - - - # Check whether --enable-doxygen-dot was given. -if test ${enable_doxygen_dot+y} -then : - enableval=$enable_doxygen_dot; -case "$enableval" in -#( -y|Y|yes|Yes|YES) - DX_FLAG_dot=1 - - -test x"$DX_FLAG_doc" = x"1" \ -|| as_fn_error $? "doxygen-dot requires doxygen-dot" "$LINENO" 5 - -;; #( -n|N|no|No|NO) - DX_FLAG_dot=0 - -;; #( -*) - as_fn_error $? "invalid value '$enableval' given to doxygen-dot" "$LINENO" 5 -;; -esac - -else case e in #( - e) -DX_FLAG_dot=1 - - -test x"$DX_FLAG_doc" = x"1" || DX_FLAG_dot=0 - - - ;; -esac -fi - -if test "$DX_FLAG_dot" = 1; then - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args. -set dummy ${ac_tool_prefix}dot; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_DOT+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_DOT in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_DOT="$DX_DOT" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_DOT="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_DOT=$ac_cv_path_DX_DOT -if test -n "$DX_DOT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DOT" >&5 -printf "%s\n" "$DX_DOT" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_DOT"; then - ac_pt_DX_DOT=$DX_DOT - # Extract the first word of "dot", so it can be a program name with args. -set dummy dot; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_DOT+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_DOT in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_DOT="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT -if test -n "$ac_pt_DX_DOT"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DOT" >&5 -printf "%s\n" "$ac_pt_DX_DOT" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_DOT" = x; then - DX_DOT="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_DOT=$ac_pt_DX_DOT - fi -else - DX_DOT="$ac_cv_path_DX_DOT" -fi - -if test x"$DX_FLAG_dot$DX_DOT" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5 -printf "%s\n" "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;} - DX_FLAG_dot=0 - -fi - - : -fi -if test "$DX_FLAG_dot" = 1; then - if :; then - DX_COND_dot_TRUE= - DX_COND_dot_FALSE='#' -else - DX_COND_dot_TRUE='#' - DX_COND_dot_FALSE= -fi - - DX_ENV="$DX_ENV HAVE_DOT='YES'" - - DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'" - - : -else - if false; then - DX_COND_dot_TRUE= - DX_COND_dot_FALSE='#' -else - DX_COND_dot_TRUE='#' - DX_COND_dot_FALSE= -fi - - DX_ENV="$DX_ENV HAVE_DOT='NO'" - - : -fi - - -# Man pages generation: - - - - # Check whether --enable-doxygen-man was given. -if test ${enable_doxygen_man+y} -then : - enableval=$enable_doxygen_man; -case "$enableval" in -#( -y|Y|yes|Yes|YES) - DX_FLAG_man=1 - - -test x"$DX_FLAG_doc" = x"1" \ -|| as_fn_error $? "doxygen-man requires doxygen-man" "$LINENO" 5 - -;; #( -n|N|no|No|NO) - DX_FLAG_man=0 - -;; #( -*) - as_fn_error $? "invalid value '$enableval' given to doxygen-man" "$LINENO" 5 -;; -esac - -else case e in #( - e) -DX_FLAG_man=0 - - -test x"$DX_FLAG_doc" = x"1" || DX_FLAG_man=0 - - - ;; -esac -fi - -if test "$DX_FLAG_man" = 1; then - - : -fi -if test "$DX_FLAG_man" = 1; then - if :; then - DX_COND_man_TRUE= - DX_COND_man_FALSE='#' -else - DX_COND_man_TRUE='#' - DX_COND_man_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_MAN='YES'" - - : -else - if false; then - DX_COND_man_TRUE= - DX_COND_man_FALSE='#' -else - DX_COND_man_TRUE='#' - DX_COND_man_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_MAN='NO'" - - : -fi - - -# RTF file generation: - - - - # Check whether --enable-doxygen-rtf was given. -if test ${enable_doxygen_rtf+y} -then : - enableval=$enable_doxygen_rtf; -case "$enableval" in -#( -y|Y|yes|Yes|YES) - DX_FLAG_rtf=1 - - -test x"$DX_FLAG_doc" = x"1" \ -|| as_fn_error $? "doxygen-rtf requires doxygen-rtf" "$LINENO" 5 - -;; #( -n|N|no|No|NO) - DX_FLAG_rtf=0 - -;; #( -*) - as_fn_error $? "invalid value '$enableval' given to doxygen-rtf" "$LINENO" 5 -;; -esac - -else case e in #( - e) -DX_FLAG_rtf=0 - - -test x"$DX_FLAG_doc" = x"1" || DX_FLAG_rtf=0 - - - ;; -esac -fi - -if test "$DX_FLAG_rtf" = 1; then - - : -fi -if test "$DX_FLAG_rtf" = 1; then - if :; then - DX_COND_rtf_TRUE= - DX_COND_rtf_FALSE='#' -else - DX_COND_rtf_TRUE='#' - DX_COND_rtf_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_RTF='YES'" - - : -else - if false; then - DX_COND_rtf_TRUE= - DX_COND_rtf_FALSE='#' -else - DX_COND_rtf_TRUE='#' - DX_COND_rtf_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_RTF='NO'" - - : -fi - - -# XML file generation: - - - - # Check whether --enable-doxygen-xml was given. -if test ${enable_doxygen_xml+y} -then : - enableval=$enable_doxygen_xml; -case "$enableval" in -#( -y|Y|yes|Yes|YES) - DX_FLAG_xml=1 - - -test x"$DX_FLAG_doc" = x"1" \ -|| as_fn_error $? "doxygen-xml requires doxygen-xml" "$LINENO" 5 - -;; #( -n|N|no|No|NO) - DX_FLAG_xml=0 - -;; #( -*) - as_fn_error $? "invalid value '$enableval' given to doxygen-xml" "$LINENO" 5 -;; -esac - -else case e in #( - e) -DX_FLAG_xml=0 - - -test x"$DX_FLAG_doc" = x"1" || DX_FLAG_xml=0 - - - ;; -esac -fi - -if test "$DX_FLAG_xml" = 1; then - - : -fi -if test "$DX_FLAG_xml" = 1; then - if :; then - DX_COND_xml_TRUE= - DX_COND_xml_FALSE='#' -else - DX_COND_xml_TRUE='#' - DX_COND_xml_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_XML='YES'" - - : -else - if false; then - DX_COND_xml_TRUE= - DX_COND_xml_FALSE='#' -else - DX_COND_xml_TRUE='#' - DX_COND_xml_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_XML='NO'" - - : -fi - - -# (Compressed) HTML help generation: - - - - # Check whether --enable-doxygen-chm was given. -if test ${enable_doxygen_chm+y} -then : - enableval=$enable_doxygen_chm; -case "$enableval" in -#( -y|Y|yes|Yes|YES) - DX_FLAG_chm=1 - - -test x"$DX_FLAG_doc" = x"1" \ -|| as_fn_error $? "doxygen-chm requires doxygen-chm" "$LINENO" 5 - -;; #( -n|N|no|No|NO) - DX_FLAG_chm=0 - -;; #( -*) - as_fn_error $? "invalid value '$enableval' given to doxygen-chm" "$LINENO" 5 -;; -esac - -else case e in #( - e) -DX_FLAG_chm=0 - - -test x"$DX_FLAG_doc" = x"1" || DX_FLAG_chm=0 - - - ;; -esac -fi - -if test "$DX_FLAG_chm" = 1; then - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args. -set dummy ${ac_tool_prefix}hhc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_HHC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_HHC in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_HHC="$DX_HHC" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_HHC="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_HHC=$ac_cv_path_DX_HHC -if test -n "$DX_HHC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_HHC" >&5 -printf "%s\n" "$DX_HHC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_HHC"; then - ac_pt_DX_HHC=$DX_HHC - # Extract the first word of "hhc", so it can be a program name with args. -set dummy hhc; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_HHC+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_HHC in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_HHC="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC -if test -n "$ac_pt_DX_HHC"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_HHC" >&5 -printf "%s\n" "$ac_pt_DX_HHC" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_HHC" = x; then - DX_HHC="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_HHC=$ac_pt_DX_HHC - fi -else - DX_HHC="$ac_cv_path_DX_HHC" -fi - -if test x"$DX_FLAG_chm$DX_HHC" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5 -printf "%s\n" "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;} - DX_FLAG_chm=0 - -fi - - : -fi -if test "$DX_FLAG_chm" = 1; then - if :; then - DX_COND_chm_TRUE= - DX_COND_chm_FALSE='#' -else - DX_COND_chm_TRUE='#' - DX_COND_chm_FALSE= -fi - - DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'" - - DX_ENV="$DX_ENV GENERATE_HTML='YES'" - - DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'" - - : -else - if false; then - DX_COND_chm_TRUE= - DX_COND_chm_FALSE='#' -else - DX_COND_chm_TRUE='#' - DX_COND_chm_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'" - - : -fi - - -# Separate CHI file generation. - - - - # Check whether --enable-doxygen-chi was given. -if test ${enable_doxygen_chi+y} -then : - enableval=$enable_doxygen_chi; -case "$enableval" in -#( -y|Y|yes|Yes|YES) - DX_FLAG_chi=1 - - -test x"$DX_FLAG_chm" = x"1" \ -|| as_fn_error $? "doxygen-chi requires doxygen-chi" "$LINENO" 5 - -;; #( -n|N|no|No|NO) - DX_FLAG_chi=0 - -;; #( -*) - as_fn_error $? "invalid value '$enableval' given to doxygen-chi" "$LINENO" 5 -;; -esac - -else case e in #( - e) -DX_FLAG_chi=0 - - -test x"$DX_FLAG_chm" = x"1" || DX_FLAG_chi=0 - - - ;; -esac -fi - -if test "$DX_FLAG_chi" = 1; then - - : -fi -if test "$DX_FLAG_chi" = 1; then - if :; then - DX_COND_chi_TRUE= - DX_COND_chi_FALSE='#' -else - DX_COND_chi_TRUE='#' - DX_COND_chi_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_CHI='YES'" - - : -else - if false; then - DX_COND_chi_TRUE= - DX_COND_chi_FALSE='#' -else - DX_COND_chi_TRUE='#' - DX_COND_chi_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_CHI='NO'" - - : -fi - - -# Plain HTML pages generation: - - - - # Check whether --enable-doxygen-html was given. -if test ${enable_doxygen_html+y} -then : - enableval=$enable_doxygen_html; -case "$enableval" in -#( -y|Y|yes|Yes|YES) - DX_FLAG_html=1 - - -test x"$DX_FLAG_doc" = x"1" \ -|| as_fn_error $? "doxygen-html requires doxygen-html" "$LINENO" 5 - -test x"$DX_FLAG_chm" = x"0" \ -|| as_fn_error $? "doxygen-html contradicts doxygen-html" "$LINENO" 5 - -;; #( -n|N|no|No|NO) - DX_FLAG_html=0 - -;; #( -*) - as_fn_error $? "invalid value '$enableval' given to doxygen-html" "$LINENO" 5 -;; -esac - -else case e in #( - e) -DX_FLAG_html=1 - - -test x"$DX_FLAG_doc" = x"1" || DX_FLAG_html=0 - - -test x"$DX_FLAG_chm" = x"0" || DX_FLAG_html=0 - - - ;; -esac -fi - -if test "$DX_FLAG_html" = 1; then - - : -fi -if test "$DX_FLAG_html" = 1; then - if :; then - DX_COND_html_TRUE= - DX_COND_html_FALSE='#' -else - DX_COND_html_TRUE='#' - DX_COND_html_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_HTML='YES'" - - : -else - if false; then - DX_COND_html_TRUE= - DX_COND_html_FALSE='#' -else - DX_COND_html_TRUE='#' - DX_COND_html_FALSE= -fi - - test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'" - - : -fi - - -# PostScript file generation: - - - - # Check whether --enable-doxygen-ps was given. -if test ${enable_doxygen_ps+y} -then : - enableval=$enable_doxygen_ps; -case "$enableval" in -#( -y|Y|yes|Yes|YES) - DX_FLAG_ps=1 - - -test x"$DX_FLAG_doc" = x"1" \ -|| as_fn_error $? "doxygen-ps requires doxygen-ps" "$LINENO" 5 - -;; #( -n|N|no|No|NO) - DX_FLAG_ps=0 - -;; #( -*) - as_fn_error $? "invalid value '$enableval' given to doxygen-ps" "$LINENO" 5 -;; -esac - -else case e in #( - e) -DX_FLAG_ps=0 - - -test x"$DX_FLAG_doc" = x"1" || DX_FLAG_ps=0 - - - ;; -esac -fi - -if test "$DX_FLAG_ps" = 1; then - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args. -set dummy ${ac_tool_prefix}latex; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_LATEX+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_LATEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_LATEX="$DX_LATEX" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_LATEX="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_LATEX=$ac_cv_path_DX_LATEX -if test -n "$DX_LATEX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_LATEX" >&5 -printf "%s\n" "$DX_LATEX" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_LATEX"; then - ac_pt_DX_LATEX=$DX_LATEX - # Extract the first word of "latex", so it can be a program name with args. -set dummy latex; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_LATEX+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_LATEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_LATEX="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX -if test -n "$ac_pt_DX_LATEX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_LATEX" >&5 -printf "%s\n" "$ac_pt_DX_LATEX" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_LATEX" = x; then - DX_LATEX="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_LATEX=$ac_pt_DX_LATEX - fi -else - DX_LATEX="$ac_cv_path_DX_LATEX" -fi - -if test x"$DX_FLAG_ps$DX_LATEX" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5 -printf "%s\n" "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;} - DX_FLAG_ps=0 - -fi - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. -set dummy ${ac_tool_prefix}makeindex; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_MAKEINDEX+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_MAKEINDEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX -if test -n "$DX_MAKEINDEX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 -printf "%s\n" "$DX_MAKEINDEX" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_MAKEINDEX"; then - ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX - # Extract the first word of "makeindex", so it can be a program name with args. -set dummy makeindex; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_MAKEINDEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX -if test -n "$ac_pt_DX_MAKEINDEX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 -printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_MAKEINDEX" = x; then - DX_MAKEINDEX="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX - fi -else - DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" -fi - -if test x"$DX_FLAG_ps$DX_MAKEINDEX" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5 -printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;} - DX_FLAG_ps=0 - -fi - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args. -set dummy ${ac_tool_prefix}dvips; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_DVIPS+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_DVIPS in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_DVIPS="$DX_DVIPS" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_DVIPS="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_DVIPS=$ac_cv_path_DX_DVIPS -if test -n "$DX_DVIPS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_DVIPS" >&5 -printf "%s\n" "$DX_DVIPS" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_DVIPS"; then - ac_pt_DX_DVIPS=$DX_DVIPS - # Extract the first word of "dvips", so it can be a program name with args. -set dummy dvips; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_DVIPS+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_DVIPS in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_DVIPS="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS -if test -n "$ac_pt_DX_DVIPS"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_DVIPS" >&5 -printf "%s\n" "$ac_pt_DX_DVIPS" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_DVIPS" = x; then - DX_DVIPS="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_DVIPS=$ac_pt_DX_DVIPS - fi -else - DX_DVIPS="$ac_cv_path_DX_DVIPS" -fi - -if test x"$DX_FLAG_ps$DX_DVIPS" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5 -printf "%s\n" "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;} - DX_FLAG_ps=0 - -fi - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. -set dummy ${ac_tool_prefix}egrep; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_EGREP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_EGREP in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_EGREP="$DX_EGREP" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_EGREP="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_EGREP=$ac_cv_path_DX_EGREP -if test -n "$DX_EGREP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 -printf "%s\n" "$DX_EGREP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_EGREP"; then - ac_pt_DX_EGREP=$DX_EGREP - # Extract the first word of "egrep", so it can be a program name with args. -set dummy egrep; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_EGREP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_EGREP in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_EGREP="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP -if test -n "$ac_pt_DX_EGREP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 -printf "%s\n" "$ac_pt_DX_EGREP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_EGREP" = x; then - DX_EGREP="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_EGREP=$ac_pt_DX_EGREP - fi -else - DX_EGREP="$ac_cv_path_DX_EGREP" -fi - -if test x"$DX_FLAG_ps$DX_EGREP" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5 -printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;} - DX_FLAG_ps=0 - -fi - - : -fi -if test "$DX_FLAG_ps" = 1; then - if :; then - DX_COND_ps_TRUE= - DX_COND_ps_FALSE='#' -else - DX_COND_ps_TRUE='#' - DX_COND_ps_FALSE= -fi - - - : -else - if false; then - DX_COND_ps_TRUE= - DX_COND_ps_FALSE='#' -else - DX_COND_ps_TRUE='#' - DX_COND_ps_FALSE= -fi - - - : -fi - - -# PDF file generation: - - - - # Check whether --enable-doxygen-pdf was given. -if test ${enable_doxygen_pdf+y} -then : - enableval=$enable_doxygen_pdf; -case "$enableval" in -#( -y|Y|yes|Yes|YES) - DX_FLAG_pdf=1 - - -test x"$DX_FLAG_doc" = x"1" \ -|| as_fn_error $? "doxygen-pdf requires doxygen-pdf" "$LINENO" 5 - -;; #( -n|N|no|No|NO) - DX_FLAG_pdf=0 - -;; #( -*) - as_fn_error $? "invalid value '$enableval' given to doxygen-pdf" "$LINENO" 5 -;; -esac - -else case e in #( - e) -DX_FLAG_pdf=0 - - -test x"$DX_FLAG_doc" = x"1" || DX_FLAG_pdf=0 - - - ;; -esac -fi - -if test "$DX_FLAG_pdf" = 1; then - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args. -set dummy ${ac_tool_prefix}pdflatex; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_PDFLATEX+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_PDFLATEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX -if test -n "$DX_PDFLATEX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_PDFLATEX" >&5 -printf "%s\n" "$DX_PDFLATEX" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_PDFLATEX"; then - ac_pt_DX_PDFLATEX=$DX_PDFLATEX - # Extract the first word of "pdflatex", so it can be a program name with args. -set dummy pdflatex; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_PDFLATEX+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_PDFLATEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_PDFLATEX="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX -if test -n "$ac_pt_DX_PDFLATEX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_PDFLATEX" >&5 -printf "%s\n" "$ac_pt_DX_PDFLATEX" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_PDFLATEX" = x; then - DX_PDFLATEX="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_PDFLATEX=$ac_pt_DX_PDFLATEX - fi -else - DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX" -fi - -if test x"$DX_FLAG_pdf$DX_PDFLATEX" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5 -printf "%s\n" "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;} - DX_FLAG_pdf=0 - -fi - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args. -set dummy ${ac_tool_prefix}makeindex; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_MAKEINDEX+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_MAKEINDEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX -if test -n "$DX_MAKEINDEX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_MAKEINDEX" >&5 -printf "%s\n" "$DX_MAKEINDEX" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_MAKEINDEX"; then - ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX - # Extract the first word of "makeindex", so it can be a program name with args. -set dummy makeindex; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_MAKEINDEX+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_MAKEINDEX in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_MAKEINDEX="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX -if test -n "$ac_pt_DX_MAKEINDEX"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_MAKEINDEX" >&5 -printf "%s\n" "$ac_pt_DX_MAKEINDEX" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_MAKEINDEX" = x; then - DX_MAKEINDEX="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX - fi -else - DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX" -fi - -if test x"$DX_FLAG_pdf$DX_MAKEINDEX" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5 -printf "%s\n" "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;} - DX_FLAG_pdf=0 - -fi - - -if test -n "$ac_tool_prefix"; then - # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args. -set dummy ${ac_tool_prefix}egrep; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_DX_EGREP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $DX_EGREP in - [\\/]* | ?:[\\/]*) - ac_cv_path_DX_EGREP="$DX_EGREP" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_EGREP="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -DX_EGREP=$ac_cv_path_DX_EGREP -if test -n "$DX_EGREP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DX_EGREP" >&5 -printf "%s\n" "$DX_EGREP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - -fi -if test -z "$ac_cv_path_DX_EGREP"; then - ac_pt_DX_EGREP=$DX_EGREP - # Extract the first word of "egrep", so it can be a program name with args. -set dummy egrep; ac_word=$2 -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 -printf %s "checking for $ac_word... " >&6; } -if test ${ac_cv_path_ac_pt_DX_EGREP+y} -then : - printf %s "(cached) " >&6 -else case e in #( - e) case $ac_pt_DX_EGREP in - [\\/]* | ?:[\\/]*) - ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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_DX_EGREP="$as_dir$ac_word$ac_exec_ext" - printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 - break 2 - fi -done - done -IFS=$as_save_IFS - - ;; -esac ;; -esac -fi -ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP -if test -n "$ac_pt_DX_EGREP"; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_DX_EGREP" >&5 -printf "%s\n" "$ac_pt_DX_EGREP" >&6; } -else - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 -printf "%s\n" "no" >&6; } -fi - - if test "x$ac_pt_DX_EGREP" = x; then - DX_EGREP="" - else - case $cross_compiling:$ac_tool_warned in -yes:) -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 -printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} -ac_tool_warned=yes ;; -esac - DX_EGREP=$ac_pt_DX_EGREP - fi -else - DX_EGREP="$ac_cv_path_DX_EGREP" -fi - -if test x"$DX_FLAG_pdf$DX_EGREP" = x1; then - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5 -printf "%s\n" "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;} - DX_FLAG_pdf=0 - -fi - - : -fi -if test "$DX_FLAG_pdf" = 1; then - if :; then - DX_COND_pdf_TRUE= - DX_COND_pdf_FALSE='#' -else - DX_COND_pdf_TRUE='#' - DX_COND_pdf_FALSE= -fi - - - : -else - if false; then - DX_COND_pdf_TRUE= - DX_COND_pdf_FALSE='#' -else - DX_COND_pdf_TRUE='#' - DX_COND_pdf_FALSE= -fi - - - : -fi - - -# LaTeX generation for PS and/or PDF: -if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then - if :; then - DX_COND_latex_TRUE= - DX_COND_latex_FALSE='#' -else - DX_COND_latex_TRUE='#' - DX_COND_latex_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_LATEX='YES'" - -else - if false; then - DX_COND_latex_TRUE= - DX_COND_latex_FALSE='#' -else - DX_COND_latex_TRUE='#' - DX_COND_latex_FALSE= -fi - - DX_ENV="$DX_ENV GENERATE_LATEX='NO'" - -fi - -# Paper size for PS and/or PDF: - -case "$DOXYGEN_PAPER_SIZE" in -#( -"") - DOXYGEN_PAPER_SIZE="" - -;; #( -a4wide|a4|letter|legal|executive) - DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" - -;; #( -*) - as_fn_error $? "unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" "$LINENO" 5 -;; -esac - -#For debugging: -#echo DX_FLAG_doc=$DX_FLAG_doc -#echo DX_FLAG_dot=$DX_FLAG_dot -#echo DX_FLAG_man=$DX_FLAG_man -#echo DX_FLAG_html=$DX_FLAG_html -#echo DX_FLAG_chm=$DX_FLAG_chm -#echo DX_FLAG_chi=$DX_FLAG_chi -#echo DX_FLAG_rtf=$DX_FLAG_rtf -#echo DX_FLAG_xml=$DX_FLAG_xml -#echo DX_FLAG_pdf=$DX_FLAG_pdf -#echo DX_FLAG_ps=$DX_FLAG_ps -#echo DX_ENV=$DX_ENV - - - - -CFLAGS="$mc_configured_cflags $CFLAGS_OPTS $CFLAGS" - - - - - - - - if test x"$USE_NLS" = xyes; then - USE_NLS_TRUE= - USE_NLS_FALSE='#' -else - USE_NLS_TRUE='#' - USE_NLS_FALSE= -fi - - if test x"$USE_MAINTAINER_MODE" = xyes; then - USE_MAINTAINER_MODE_TRUE= - USE_MAINTAINER_MODE_FALSE='#' -else - USE_MAINTAINER_MODE_TRUE='#' - USE_MAINTAINER_MODE_FALSE= -fi - - if test x"$with_screen" = xslang; then - USE_SCREEN_SLANG_TRUE= - USE_SCREEN_SLANG_FALSE='#' -else - USE_SCREEN_SLANG_TRUE='#' - USE_SCREEN_SLANG_FALSE= -fi - - if test x"$use_internal_edit" = xyes ; then - USE_INTERNAL_EDIT_TRUE= - USE_INTERNAL_EDIT_FALSE='#' -else - USE_INTERNAL_EDIT_TRUE='#' - USE_INTERNAL_EDIT_FALSE= -fi - - if test x"$enable_aspell" = xyes ; then - USE_ASPELL_TRUE= - USE_ASPELL_FALSE='#' -else - USE_ASPELL_TRUE='#' - USE_ASPELL_FALSE= -fi - - if test -n "$use_diff"; then - USE_DIFF_TRUE= - USE_DIFF_FALSE='#' -else - USE_DIFF_TRUE='#' - USE_DIFF_FALSE= -fi - - if test -n "$have_charset"; then - CHARSET_TRUE= - CHARSET_FALSE='#' -else - CHARSET_TRUE='#' - CHARSET_FALSE= -fi - - if test -n "$cons_saver"; then - CONS_SAVER_TRUE= - CONS_SAVER_FALSE='#' -else - CONS_SAVER_TRUE='#' - CONS_SAVER_FALSE= -fi - - if test -n "$g_module_supported" && \ - test x"$textmode_x11_support" = x"yes" -o x"$enable_aspell" = x"yes"; then - HAVE_GMODULE_TRUE= - HAVE_GMODULE_FALSE='#' -else - HAVE_GMODULE_TRUE='#' - HAVE_GMODULE_FALSE= -fi - - -# Check whether --enable-configure-args was given. -if test ${enable_configure_args+y} -then : - enableval=$enable_configure_args; -fi - -if test "x$enable_configure_args" != xno; then - -printf "%s\n" "#define ENABLE_CONFIGURE_ARGS 1" >>confdefs.h - - -printf "%s\n" "#define MC_CONFIGURE_ARGS \"$ac_configure_args\"" >>confdefs.h - -fi - - -ac_config_files="$ac_config_files src/man2hlp/man2hlp" - - -ac_config_files="$ac_config_files Makefile contrib/Makefile misc/Makefile misc/mc.charsets misc/mc.menu misc/mcedit.menu misc/skins/Makefile misc/ext.d/Makefile misc/ext.d/doc.sh misc/ext.d/misc.sh misc/ext.d/text.sh misc/macros.d/Makefile misc/mc.ext.ini src/Makefile src/consaver/Makefile src/editor/Makefile src/man2hlp/Makefile src/subshell/Makefile src/viewer/Makefile src/diffviewer/Makefile src/filemanager/Makefile src/vfs/Makefile src/vfs/cpio/Makefile src/vfs/extfs/Makefile src/vfs/extfs/helpers/Makefile src/vfs/extfs/helpers/a+ src/vfs/extfs/helpers/apt+ src/vfs/extfs/helpers/audio src/vfs/extfs/helpers/deb src/vfs/extfs/helpers/deba src/vfs/extfs/helpers/debd src/vfs/extfs/helpers/dpkg+ src/vfs/extfs/helpers/iso9660 src/vfs/extfs/helpers/hp48+ src/vfs/extfs/helpers/lslR src/vfs/extfs/helpers/mailfs src/vfs/extfs/helpers/patchfs src/vfs/extfs/helpers/rpms+ src/vfs/extfs/helpers/s3+ src/vfs/extfs/helpers/torrent src/vfs/extfs/helpers/uace src/vfs/extfs/helpers/ualz src/vfs/extfs/helpers/uar src/vfs/extfs/helpers/uarc src/vfs/extfs/helpers/uarj src/vfs/extfs/helpers/uc1541 src/vfs/extfs/helpers/ucab src/vfs/extfs/helpers/uha src/vfs/extfs/helpers/ulha src/vfs/extfs/helpers/ulib src/vfs/extfs/helpers/unar src/vfs/extfs/helpers/urar src/vfs/extfs/helpers/uwim src/vfs/extfs/helpers/uzip src/vfs/extfs/helpers/uzoo src/vfs/shell/Makefile src/vfs/shell/helpers/Makefile src/vfs/ftpfs/Makefile src/vfs/sftpfs/Makefile src/vfs/local/Makefile src/vfs/sfs/Makefile src/vfs/tar/Makefile src/vfs/undelfs/Makefile lib/Makefile lib/event/Makefile lib/filehighlight/Makefile lib/mcconfig/Makefile lib/search/Makefile lib/skin/Makefile lib/strutil/Makefile lib/tty/Makefile lib/vfs/Makefile lib/widget/Makefile misc/syntax/Makefile doc/Makefile doc/hints/Makefile doc/hints/l10n/Makefile doc/man/Makefile doc/man/es/Makefile doc/man/hu/Makefile doc/man/it/Makefile doc/man/pl/Makefile doc/man/ru/Makefile doc/man/sr/Makefile doc/hlp/Makefile doc/hlp/es/Makefile doc/hlp/hu/Makefile doc/hlp/it/Makefile doc/hlp/pl/Makefile doc/hlp/ru/Makefile doc/hlp/sr/Makefile po/Makefile.in" - - -ac_config_files="$ac_config_files misc/syntax/Syntax" - - -ac_config_files="$ac_config_files tests/Makefile tests/lib/Makefile tests/lib/mcconfig/Makefile tests/lib/search/Makefile tests/lib/strutil/Makefile tests/lib/vfs/Makefile tests/lib/vfs/mc.charsets tests/lib/widget/Makefile tests/src/Makefile tests/src/filemanager/Makefile tests/src/editor/Makefile tests/src/editor/test-data.txt tests/src/vfs/Makefile tests/src/vfs/extfs/Makefile tests/src/vfs/extfs/helpers-list/Makefile tests/src/vfs/extfs/helpers-list/data/config.sh tests/src/vfs/extfs/helpers-list/misc/Makefile tests/src/vfs/ftpfs/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_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 -printf "%s\n" "$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+y} || &/ - 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 -printf "%s\n" "$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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 -printf "%s\n" "$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=`printf "%s\n" "$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 - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 -printf %s "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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5 -printf "%s\n" "done" >&6; } - if test -n "$EXEEXT"; then - am__EXEEXT_TRUE= - am__EXEEXT_FALSE='#' -else - am__EXEEXT_TRUE='#' - am__EXEEXT_FALSE= -fi - -if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then - as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -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__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__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 "${HAVE_TESTS_TRUE}" && test -z "${HAVE_TESTS_FALSE}"; then - as_fn_error $? "conditional \"HAVE_TESTS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${HAVE_TEXTMODE_X11_SUPPORT_TRUE}" && test -z "${HAVE_TEXTMODE_X11_SUPPORT_FALSE}"; then - as_fn_error $? "conditional \"HAVE_TEXTMODE_X11_SUPPORT\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -# Check whether --enable-year2038 was given. -if test ${enable_year2038+y} -then : - enableval=$enable_year2038; -fi - -if test -z "${ENABLE_MCLIB_TRUE}" && test -z "${ENABLE_MCLIB_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_MCLIB\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_SUBSHELL_TRUE}" && test -z "${ENABLE_SUBSHELL_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_SUBSHELL\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_BACKGROUND_TRUE}" && test -z "${ENABLE_BACKGROUND_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_BACKGROUND\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_EXT2FS_ATTR_TRUE}" && test -z "${ENABLE_EXT2FS_ATTR_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_EXT2FS_ATTR\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_VFS_CPIO_TRUE}" && test -z "${ENABLE_VFS_CPIO_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_VFS_CPIO\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_VFS_EXTFS_TRUE}" && test -z "${ENABLE_VFS_EXTFS_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_VFS_EXTFS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_VFS_SHELL_TRUE}" && test -z "${ENABLE_VFS_SHELL_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_VFS_SHELL\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_VFS_FTP_TRUE}" && test -z "${ENABLE_VFS_FTP_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_VFS_FTP\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_VFS_SFS_TRUE}" && test -z "${ENABLE_VFS_SFS_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_VFS_SFS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_VFS_SFTP_TRUE}" && test -z "${ENABLE_VFS_SFTP_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_VFS_SFTP\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_VFS_TAR_TRUE}" && test -z "${ENABLE_VFS_TAR_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_VFS_TAR\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_VFS_UNDELFS_TRUE}" && test -z "${ENABLE_VFS_UNDELFS_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_VFS_UNDELFS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_VFS_TRUE}" && test -z "${ENABLE_VFS_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_VFS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${ENABLE_VFS_NET_TRUE}" && test -z "${ENABLE_VFS_NET_FALSE}"; then - as_fn_error $? "conditional \"ENABLE_VFS_NET\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_doc\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_doc\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_dot\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_dot\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_man\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_man\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_rtf\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_rtf\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_xml\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_xml\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_chm\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_chm\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_chi\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_chi\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_html\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_html\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_ps\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_ps\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_pdf\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_pdf\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_latex\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then - as_fn_error $? "conditional \"DX_COND_latex\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${USE_NLS_TRUE}" && test -z "${USE_NLS_FALSE}"; then - as_fn_error $? "conditional \"USE_NLS\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${USE_MAINTAINER_MODE_TRUE}" && test -z "${USE_MAINTAINER_MODE_FALSE}"; then - as_fn_error $? "conditional \"USE_MAINTAINER_MODE\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${USE_SCREEN_SLANG_TRUE}" && test -z "${USE_SCREEN_SLANG_FALSE}"; then - as_fn_error $? "conditional \"USE_SCREEN_SLANG\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${USE_INTERNAL_EDIT_TRUE}" && test -z "${USE_INTERNAL_EDIT_FALSE}"; then - as_fn_error $? "conditional \"USE_INTERNAL_EDIT\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${USE_ASPELL_TRUE}" && test -z "${USE_ASPELL_FALSE}"; then - as_fn_error $? "conditional \"USE_ASPELL\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${USE_DIFF_TRUE}" && test -z "${USE_DIFF_FALSE}"; then - as_fn_error $? "conditional \"USE_DIFF\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${CHARSET_TRUE}" && test -z "${CHARSET_FALSE}"; then - as_fn_error $? "conditional \"CHARSET\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${CONS_SAVER_TRUE}" && test -z "${CONS_SAVER_FALSE}"; then - as_fn_error $? "conditional \"CONS_SAVER\" was never defined. -Usually this means the macro was only invoked conditionally." "$LINENO" 5 -fi -if test -z "${HAVE_GMODULE_TRUE}" && test -z "${HAVE_GMODULE_FALSE}"; then - as_fn_error $? "conditional \"HAVE_GMODULE\" 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" -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 -printf "%s\n" "$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 ${ZSH_VERSION+y} && (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 e in #( - e) case `(set -o) 2>/dev/null` in #( - *posix*) : - set -o posix ;; #( - *) : - ;; -esac ;; -esac -fi - - - -# Reset variables that may have inherited troublesome values from -# the environment. - -# IFS needs to be set, to space, tab, and newline, in precisely that order. -# (If _AS_PATH_WALK were called with IFS unset, it would have the -# side effect of setting IFS to empty, thus disabling word splitting.) -# Quoting is to prevent editors from complaining about space-tab. -as_nl=' -' -export as_nl -IFS=" "" $as_nl" - -PS1='$ ' -PS2='> ' -PS4='+ ' - -# Ensure predictable behavior from utilities with locale-dependent output. -LC_ALL=C -export LC_ALL -LANGUAGE=C -export LANGUAGE - -# We cannot yet rely on "unset" to work, but we need these variables -# to be unset--not just set to an empty or harmless value--now, to -# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct -# also avoids known problems related to "unset" and subshell syntax -# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). -for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH -do eval test \${$as_var+y} \ - && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : -done - -# Ensure that fds 0, 1, and 2 are open. -if (exec 3>&0) 2>/dev/null; then :; else exec 0&1) 2>/dev/null; then :; else exec 1>/dev/null; fi -if (exec 3>&2) ; then :; else exec 2>/dev/null; fi - -# The user is always right. -if ${PATH_SEPARATOR+false} :; 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 - - -# 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 - case $as_dir in #((( - '') as_dir=./ ;; - */) ;; - *) as_dir=$as_dir/ ;; - esac - 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 - printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 - exit 1 -fi - - - -# 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 - printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 - fi - printf "%s\n" "$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 case e in #( - e) as_fn_append () - { - eval $1=\$$1\$2 - } ;; -esac -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 case e in #( - e) as_fn_arith () - { - as_val=`expr "$@" || test $? -eq 1` - } ;; -esac -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 || -printf "%s\n" 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 - - -# Determine whether it's possible to make 'echo' print without a newline. -# These variables are no longer used directly by Autoconf, but are AC_SUBSTed -# for compatibility with existing Makefiles. -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 - -# For backward compatibility with old third-party macros, we provide -# the shell variables $as_echo and $as_echo_n. New code should use -# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. -as_echo='printf %s\n' -as_echo_n='printf %s' - -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=`printf "%s\n" "$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 || -printf "%s\n" 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_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" -as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated - -# Sed expression to map a string onto a valid variable name. -as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" -as_tr_sh="eval sed '$as_sed_sh'" # deprecated - - -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 GNU Midnight Commander $as_me 4.8.33-pre1-git, which was -generated by GNU Autoconf 2.72. 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 . -GNU Midnight Commander home page: . -General help using GNU software: ." - -_ACEOF -ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` -ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -ac_cs_config='$ac_cs_config_escaped' -ac_cs_version="\\ -GNU Midnight Commander config.status 4.8.33-pre1-git -configured by $0, generated by GNU Autoconf 2.72, - with options \\"\$ac_cs_config\\" - -Copyright (C) 2023 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 ) - printf "%s\n" "$ac_cs_version"; exit ;; - --config | --confi | --conf | --con | --co | --c ) - printf "%s\n" "$ac_cs_config"; exit ;; - --debug | --debu | --deb | --de | --d | -d ) - debug=: ;; - --file | --fil | --fi | --f ) - $ac_shift - case $ac_optarg in - *\'*) ac_optarg=`printf "%s\n" "$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=`printf "%s\n" "$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 ) - printf "%s\n" "$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 - \printf "%s\n" "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 - printf "%s\n" "$ac_log" -} >&5 - -_ACEOF -cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 -# -# INIT-COMMANDS -# -AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" - - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -sed_quote_subst='$sed_quote_subst' -double_quote_subst='$double_quote_subst' -delay_variable_subst='$delay_variable_subst' -macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' -macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' -enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' -enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' -pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' -enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' -shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' -SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' -ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' -PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' -host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' -host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' -host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' -build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' -build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' -build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' -SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' -Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' -GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' -EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' -FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' -LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' -NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' -LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' -max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' -ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' -exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' -lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' -lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' -lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' -lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' -lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' -reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' -reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' -FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' -OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' -deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' -file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' -file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' -want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' -DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' -sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' -AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' -lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' -AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' -archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' -STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' -RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' -old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' -old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' -old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' -lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' -CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' -CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' -compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' -GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' -lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' -nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' -lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' -lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' -objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' -MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' -lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' -lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' -need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' -MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' -DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' -NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' -LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' -OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' -OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' -libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' -shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' -extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' -archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' -enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' -export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' -whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' -compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' -old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' -old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' -archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' -archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' -module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' -module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' -with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' -allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' -no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' -hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' -hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' -hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' -hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' -hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' -hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' -inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' -link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' -always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' -export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' -exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' -include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' -prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' -postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' -file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' -variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' -need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' -need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' -version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' -runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' -shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' -shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' -libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' -library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' -soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' -install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' -postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' -postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' -finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' -finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' -hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' -sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' -configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' -configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' -hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' -enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' -enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' -enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' -old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' -striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' - -LTCC='$LTCC' -LTCFLAGS='$LTCFLAGS' -compiler='$compiler_DEFAULT' - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$1 -_LTECHO_EOF' -} - -# Quote evaled strings. -for var in SHELL \ -ECHO \ -PATH_SEPARATOR \ -SED \ -GREP \ -EGREP \ -FGREP \ -LD \ -NM \ -LN_S \ -lt_SP2NL \ -lt_NL2SP \ -reload_flag \ -FILECMD \ -OBJDUMP \ -deplibs_check_method \ -file_magic_cmd \ -file_magic_glob \ -want_nocaseglob \ -DLLTOOL \ -sharedlib_from_linklib_cmd \ -AR \ -archiver_list_spec \ -STRIP \ -RANLIB \ -CC \ -CFLAGS \ -compiler \ -lt_cv_sys_global_symbol_pipe \ -lt_cv_sys_global_symbol_to_cdecl \ -lt_cv_sys_global_symbol_to_import \ -lt_cv_sys_global_symbol_to_c_name_address \ -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ -lt_cv_nm_interface \ -nm_file_list_spec \ -lt_cv_truncate_bin \ -lt_prog_compiler_no_builtin_flag \ -lt_prog_compiler_pic \ -lt_prog_compiler_wl \ -lt_prog_compiler_static \ -lt_cv_prog_compiler_c_o \ -need_locks \ -MANIFEST_TOOL \ -DSYMUTIL \ -NMEDIT \ -LIPO \ -OTOOL \ -OTOOL64 \ -shrext_cmds \ -export_dynamic_flag_spec \ -whole_archive_flag_spec \ -compiler_needs_object \ -with_gnu_ld \ -allow_undefined_flag \ -no_undefined_flag \ -hardcode_libdir_flag_spec \ -hardcode_libdir_separator \ -exclude_expsyms \ -include_expsyms \ -file_list_spec \ -variables_saved_for_relink \ -libname_spec \ -library_names_spec \ -soname_spec \ -install_override_mode \ -finish_eval \ -old_striplib \ -striplib; do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Double-quote double-evaled strings. -for var in reload_cmds \ -old_postinstall_cmds \ -old_postuninstall_cmds \ -old_archive_cmds \ -extract_expsyms_cmds \ -old_archive_from_new_cmds \ -old_archive_from_expsyms_cmds \ -archive_cmds \ -archive_expsym_cmds \ -module_cmds \ -module_expsym_cmds \ -export_symbols_cmds \ -prelink_cmds \ -postlink_cmds \ -postinstall_cmds \ -postuninstall_cmds \ -finish_cmds \ -sys_lib_search_path_spec \ -configure_time_dlsearch_path \ -configure_time_lt_sys_library_path; do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[\\\\\\\`\\"\\\$]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -ac_aux_dir='$ac_aux_dir' - -# See if we are running on zsh, and set the options that allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi - - - PACKAGE='$PACKAGE' - VERSION='$VERSION' - RM='$RM' - ofile='$ofile' - - - -# Capture the value of obsolete ALL_LINGUAS because we need it to compute - # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it - # from automake < 1.5. - eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' - # Capture the value of LINGUAS because we need it to compute CATALOGS. - LINGUAS="${LINGUAS-%UNSET%}" - -export PREFIX=$prefix - - -_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" ;; - "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; - "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; - "src/man2hlp/man2hlp") CONFIG_FILES="$CONFIG_FILES src/man2hlp/man2hlp" ;; - "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; - "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; - "misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;; - "misc/mc.charsets") CONFIG_FILES="$CONFIG_FILES misc/mc.charsets" ;; - "misc/mc.menu") CONFIG_FILES="$CONFIG_FILES misc/mc.menu" ;; - "misc/mcedit.menu") CONFIG_FILES="$CONFIG_FILES misc/mcedit.menu" ;; - "misc/skins/Makefile") CONFIG_FILES="$CONFIG_FILES misc/skins/Makefile" ;; - "misc/ext.d/Makefile") CONFIG_FILES="$CONFIG_FILES misc/ext.d/Makefile" ;; - "misc/ext.d/doc.sh") CONFIG_FILES="$CONFIG_FILES misc/ext.d/doc.sh" ;; - "misc/ext.d/misc.sh") CONFIG_FILES="$CONFIG_FILES misc/ext.d/misc.sh" ;; - "misc/ext.d/text.sh") CONFIG_FILES="$CONFIG_FILES misc/ext.d/text.sh" ;; - "misc/macros.d/Makefile") CONFIG_FILES="$CONFIG_FILES misc/macros.d/Makefile" ;; - "misc/mc.ext.ini") CONFIG_FILES="$CONFIG_FILES misc/mc.ext.ini" ;; - "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; - "src/consaver/Makefile") CONFIG_FILES="$CONFIG_FILES src/consaver/Makefile" ;; - "src/editor/Makefile") CONFIG_FILES="$CONFIG_FILES src/editor/Makefile" ;; - "src/man2hlp/Makefile") CONFIG_FILES="$CONFIG_FILES src/man2hlp/Makefile" ;; - "src/subshell/Makefile") CONFIG_FILES="$CONFIG_FILES src/subshell/Makefile" ;; - "src/viewer/Makefile") CONFIG_FILES="$CONFIG_FILES src/viewer/Makefile" ;; - "src/diffviewer/Makefile") CONFIG_FILES="$CONFIG_FILES src/diffviewer/Makefile" ;; - "src/filemanager/Makefile") CONFIG_FILES="$CONFIG_FILES src/filemanager/Makefile" ;; - "src/vfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/Makefile" ;; - "src/vfs/cpio/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/cpio/Makefile" ;; - "src/vfs/extfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/Makefile" ;; - "src/vfs/extfs/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/Makefile" ;; - "src/vfs/extfs/helpers/a+") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/a+" ;; - "src/vfs/extfs/helpers/apt+") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/apt+" ;; - "src/vfs/extfs/helpers/audio") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/audio" ;; - "src/vfs/extfs/helpers/deb") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/deb" ;; - "src/vfs/extfs/helpers/deba") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/deba" ;; - "src/vfs/extfs/helpers/debd") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/debd" ;; - "src/vfs/extfs/helpers/dpkg+") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/dpkg+" ;; - "src/vfs/extfs/helpers/iso9660") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/iso9660" ;; - "src/vfs/extfs/helpers/hp48+") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/hp48+" ;; - "src/vfs/extfs/helpers/lslR") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/lslR" ;; - "src/vfs/extfs/helpers/mailfs") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/mailfs" ;; - "src/vfs/extfs/helpers/patchfs") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/patchfs" ;; - "src/vfs/extfs/helpers/rpms+") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/rpms+" ;; - "src/vfs/extfs/helpers/s3+") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/s3+" ;; - "src/vfs/extfs/helpers/torrent") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/torrent" ;; - "src/vfs/extfs/helpers/uace") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/uace" ;; - "src/vfs/extfs/helpers/ualz") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/ualz" ;; - "src/vfs/extfs/helpers/uar") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/uar" ;; - "src/vfs/extfs/helpers/uarc") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/uarc" ;; - "src/vfs/extfs/helpers/uarj") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/uarj" ;; - "src/vfs/extfs/helpers/uc1541") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/uc1541" ;; - "src/vfs/extfs/helpers/ucab") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/ucab" ;; - "src/vfs/extfs/helpers/uha") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/uha" ;; - "src/vfs/extfs/helpers/ulha") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/ulha" ;; - "src/vfs/extfs/helpers/ulib") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/ulib" ;; - "src/vfs/extfs/helpers/unar") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/unar" ;; - "src/vfs/extfs/helpers/urar") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/urar" ;; - "src/vfs/extfs/helpers/uwim") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/uwim" ;; - "src/vfs/extfs/helpers/uzip") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/uzip" ;; - "src/vfs/extfs/helpers/uzoo") CONFIG_FILES="$CONFIG_FILES src/vfs/extfs/helpers/uzoo" ;; - "src/vfs/shell/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/shell/Makefile" ;; - "src/vfs/shell/helpers/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/shell/helpers/Makefile" ;; - "src/vfs/ftpfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/ftpfs/Makefile" ;; - "src/vfs/sftpfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/sftpfs/Makefile" ;; - "src/vfs/local/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/local/Makefile" ;; - "src/vfs/sfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/sfs/Makefile" ;; - "src/vfs/tar/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/tar/Makefile" ;; - "src/vfs/undelfs/Makefile") CONFIG_FILES="$CONFIG_FILES src/vfs/undelfs/Makefile" ;; - "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; - "lib/event/Makefile") CONFIG_FILES="$CONFIG_FILES lib/event/Makefile" ;; - "lib/filehighlight/Makefile") CONFIG_FILES="$CONFIG_FILES lib/filehighlight/Makefile" ;; - "lib/mcconfig/Makefile") CONFIG_FILES="$CONFIG_FILES lib/mcconfig/Makefile" ;; - "lib/search/Makefile") CONFIG_FILES="$CONFIG_FILES lib/search/Makefile" ;; - "lib/skin/Makefile") CONFIG_FILES="$CONFIG_FILES lib/skin/Makefile" ;; - "lib/strutil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/strutil/Makefile" ;; - "lib/tty/Makefile") CONFIG_FILES="$CONFIG_FILES lib/tty/Makefile" ;; - "lib/vfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vfs/Makefile" ;; - "lib/widget/Makefile") CONFIG_FILES="$CONFIG_FILES lib/widget/Makefile" ;; - "misc/syntax/Makefile") CONFIG_FILES="$CONFIG_FILES misc/syntax/Makefile" ;; - "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; - "doc/hints/Makefile") CONFIG_FILES="$CONFIG_FILES doc/hints/Makefile" ;; - "doc/hints/l10n/Makefile") CONFIG_FILES="$CONFIG_FILES doc/hints/l10n/Makefile" ;; - "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;; - "doc/man/es/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/es/Makefile" ;; - "doc/man/hu/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/hu/Makefile" ;; - "doc/man/it/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/it/Makefile" ;; - "doc/man/pl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/pl/Makefile" ;; - "doc/man/ru/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/ru/Makefile" ;; - "doc/man/sr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/sr/Makefile" ;; - "doc/hlp/Makefile") CONFIG_FILES="$CONFIG_FILES doc/hlp/Makefile" ;; - "doc/hlp/es/Makefile") CONFIG_FILES="$CONFIG_FILES doc/hlp/es/Makefile" ;; - "doc/hlp/hu/Makefile") CONFIG_FILES="$CONFIG_FILES doc/hlp/hu/Makefile" ;; - "doc/hlp/it/Makefile") CONFIG_FILES="$CONFIG_FILES doc/hlp/it/Makefile" ;; - "doc/hlp/pl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/hlp/pl/Makefile" ;; - "doc/hlp/ru/Makefile") CONFIG_FILES="$CONFIG_FILES doc/hlp/ru/Makefile" ;; - "doc/hlp/sr/Makefile") CONFIG_FILES="$CONFIG_FILES doc/hlp/sr/Makefile" ;; - "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; - "misc/syntax/Syntax") CONFIG_FILES="$CONFIG_FILES misc/syntax/Syntax" ;; - "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; - "tests/lib/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/Makefile" ;; - "tests/lib/mcconfig/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/mcconfig/Makefile" ;; - "tests/lib/search/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/search/Makefile" ;; - "tests/lib/strutil/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/strutil/Makefile" ;; - "tests/lib/vfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/vfs/Makefile" ;; - "tests/lib/vfs/mc.charsets") CONFIG_FILES="$CONFIG_FILES tests/lib/vfs/mc.charsets" ;; - "tests/lib/widget/Makefile") CONFIG_FILES="$CONFIG_FILES tests/lib/widget/Makefile" ;; - "tests/src/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/Makefile" ;; - "tests/src/filemanager/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/filemanager/Makefile" ;; - "tests/src/editor/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/editor/Makefile" ;; - "tests/src/editor/test-data.txt") CONFIG_FILES="$CONFIG_FILES tests/src/editor/test-data.txt" ;; - "tests/src/vfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/vfs/Makefile" ;; - "tests/src/vfs/extfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/vfs/extfs/Makefile" ;; - "tests/src/vfs/extfs/helpers-list/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/vfs/extfs/helpers-list/Makefile" ;; - "tests/src/vfs/extfs/helpers-list/data/config.sh") CONFIG_FILES="$CONFIG_FILES tests/src/vfs/extfs/helpers-list/data/config.sh" ;; - "tests/src/vfs/extfs/helpers-list/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/vfs/extfs/helpers-list/misc/Makefile" ;; - "tests/src/vfs/ftpfs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/src/vfs/ftpfs/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+y} || CONFIG_FILES=$config_files - test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers - test ${CONFIG_COMMANDS+y} || 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=`printf "%s\n" "$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 '` - printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' - `' by configure.' - if test x"$ac_file" != x-; then - configure_input="$ac_file. $configure_input" - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 -printf "%s\n" "$as_me: creating $ac_file" >&6;} - fi - # Neutralize special characters interpreted by sed in replacement strings. - case $configure_input in #( - *\&* | *\|* | *\\* ) - ac_sed_conf_input=`printf "%s\n" "$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 || -printf "%s\n" 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=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` - # A ".." for each directory in $ac_dir_suffix. - ac_top_builddir_sub=`printf "%s\n" "$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@*) - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 -printf "%s\n" "$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"; } && - { printf "%s\n" "$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 -printf "%s\n" "$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 - { - printf "%s\n" "/* $configure_input */" >&1 \ - && 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 -printf "%s\n" "$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 - printf "%s\n" "/* $configure_input */" >&1 \ - && 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 || -printf "%s\n" 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) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -printf "%s\n" "$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. - # TODO: see whether this extra hack can be removed once we start - # requiring Autoconf 2.70 or later. - case $CONFIG_FILES in #( - *\'*) : - eval set x "$CONFIG_FILES" ;; #( - *) : - set x $CONFIG_FILES ;; #( - *) : - ;; -esac - shift - # Used to flag and report bootstrapping failures. - am_rc=0 - for am_mf - do - # Strip MF so we end up with the name of the file. - am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'` - # Check whether this is an Automake generated Makefile which includes - # dependency-tracking related rules and includes. - # Grep'ing the whole file directly is not great: AIX grep has a line - # limit of 2048, but all sed's we know have understand at least 4000. - sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ - || continue - am_dirpart=`$as_dirname -- "$am_mf" || -$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ - X"$am_mf" : 'X\(//\)[^/]' \| \ - X"$am_mf" : 'X\(//\)$' \| \ - X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -printf "%s\n" X"$am_mf" | - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ - s//\1/ - q - } - /^X\(\/\/\)[^/].*/{ - s//\1/ - q - } - /^X\(\/\/\)$/{ - s//\1/ - q - } - /^X\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - am_filepart=`$as_basename -- "$am_mf" || -$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ - X"$am_mf" : 'X\(//\)$' \| \ - X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -printf "%s\n" X/"$am_mf" | - sed '/^.*\/\([^/][^/]*\)\/*$/{ - s//\1/ - q - } - /^X\/\(\/\/\)$/{ - s//\1/ - q - } - /^X\/\(\/\).*/{ - s//\1/ - q - } - s/.*/./; q'` - { echo "$as_me:$LINENO: cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles" >&5 - (cd "$am_dirpart" \ - && sed -e '/# am--include-marker/d' "$am_filepart" \ - | $MAKE -f - am--depfiles) >&5 2>&5 - ac_status=$? - echo "$as_me:$LINENO: \$? = $ac_status" >&5 - (exit $ac_status); } || am_rc=$? - done - if test $am_rc -ne 0; then - { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 -printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} -as_fn_error $? "Something went wrong bootstrapping makefile fragments - for automatic dependency tracking. If GNU make was not used, consider - re-running the configure script with MAKE=\"gmake\" (or whatever is - necessary). You can also try re-running configure with the - '--disable-dependency-tracking' option to at least be able to build - the package (albeit without support for automatic dependency tracking). -See 'config.log' for more details" "$LINENO" 5; } - fi - { am_dirpart=; unset am_dirpart;} - { am_filepart=; unset am_filepart;} - { am_mf=; unset am_mf;} - { am_rc=; unset am_rc;} - rm -f conftest-deps.mk -} - ;; - "libtool":C) - - # See if we are running on zsh, and set the options that allow our - # commands through without removal of \ escapes. - if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST - fi - - cfgfile=${ofile}T - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 - $RM "$cfgfile" - - cat <<_LT_EOF >> "$cfgfile" -#! $SHELL -# Generated automatically by $as_me ($PACKAGE) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# NOTE: Changes made to this file will be lost: look at ltmain.sh. - -# Provide generalized library-building support services. -# Written by Gordon Matzigkeit, 1996 - -# Copyright (C) 2014 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program or library that is built -# using GNU Libtool, you may include this file under the same -# distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - - -# The names of the tagged configurations supported by this script. -available_tags='' - -# Configured defaults for sys_lib_dlsearch_path munging. -: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} - -# ### BEGIN LIBTOOL CONFIG - -# Which release of libtool.m4 was used? -macro_version=$macro_version -macro_revision=$macro_revision - -# Whether or not to build shared libraries. -build_libtool_libs=$enable_shared - -# Whether or not to build static libraries. -build_old_libs=$enable_static - -# What type of objects to build. -pic_mode=$pic_mode - -# Whether or not to optimize for fast installation. -fast_install=$enable_fast_install - -# Shared archive member basename,for filename based shared library versioning on AIX. -shared_archive_member_spec=$shared_archive_member_spec - -# Shell to use when invoking shell scripts. -SHELL=$lt_SHELL - -# An echo program that protects backslashes. -ECHO=$lt_ECHO - -# The PATH separator for the build system. -PATH_SEPARATOR=$lt_PATH_SEPARATOR - -# The host system. -host_alias=$host_alias -host=$host -host_os=$host_os - -# The build system. -build_alias=$build_alias -build=$build -build_os=$build_os - -# A sed program that does not truncate output. -SED=$lt_SED - -# Sed that helps us avoid accidentally triggering echo(1) options like -n. -Xsed="\$SED -e 1s/^X//" - -# A grep program that handles long lines. -GREP=$lt_GREP - -# An ERE matcher. -EGREP=$lt_EGREP - -# A literal string matcher. -FGREP=$lt_FGREP - -# A BSD- or MS-compatible name lister. -NM=$lt_NM - -# Whether we need soft or hard links. -LN_S=$lt_LN_S - -# What is the maximum length of a command? -max_cmd_len=$max_cmd_len - -# Object file suffix (normally "o"). -objext=$ac_objext - -# Executable file suffix (normally ""). -exeext=$exeext - -# whether the shell understands "unset". -lt_unset=$lt_unset - -# turn spaces into newlines. -SP2NL=$lt_lt_SP2NL - -# turn newlines into spaces. -NL2SP=$lt_lt_NL2SP - -# convert \$build file names to \$host format. -to_host_file_cmd=$lt_cv_to_host_file_cmd - -# convert \$build files to toolchain format. -to_tool_file_cmd=$lt_cv_to_tool_file_cmd - -# A file(cmd) program that detects file types. -FILECMD=$lt_FILECMD - -# An object symbol dumper. -OBJDUMP=$lt_OBJDUMP - -# Method to check whether dependent libraries are shared objects. -deplibs_check_method=$lt_deplibs_check_method - -# Command to use when deplibs_check_method = "file_magic". -file_magic_cmd=$lt_file_magic_cmd - -# How to find potential files when deplibs_check_method = "file_magic". -file_magic_glob=$lt_file_magic_glob - -# Find potential files using nocaseglob when deplibs_check_method = "file_magic". -want_nocaseglob=$lt_want_nocaseglob - -# DLL creation program. -DLLTOOL=$lt_DLLTOOL - -# Command to associate shared and link libraries. -sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd - -# The archiver. -AR=$lt_AR - -# Flags to create an archive (by configure). -lt_ar_flags=$lt_ar_flags - -# Flags to create an archive. -AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} - -# How to feed a file listing to the archiver. -archiver_list_spec=$lt_archiver_list_spec - -# A symbol stripping program. -STRIP=$lt_STRIP - -# Commands used to install an old-style archive. -RANLIB=$lt_RANLIB -old_postinstall_cmds=$lt_old_postinstall_cmds -old_postuninstall_cmds=$lt_old_postuninstall_cmds - -# Whether to use a lock for old archive extraction. -lock_old_archive_extraction=$lock_old_archive_extraction - -# A C compiler. -LTCC=$lt_CC - -# LTCC compiler flags. -LTCFLAGS=$lt_CFLAGS - -# Take the output of nm and produce a listing of raw symbols and C names. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe - -# Transform the output of nm in a proper C declaration. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl - -# Transform the output of nm into a list of symbols to manually relocate. -global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import - -# Transform the output of nm in a C name address pair. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address - -# Transform the output of nm in a C name address pair when lib prefix is needed. -global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix - -# The name lister interface. -nm_interface=$lt_lt_cv_nm_interface - -# Specify filename containing input files for \$NM. -nm_file_list_spec=$lt_nm_file_list_spec - -# The root where to search for dependent libraries,and where our libraries should be installed. -lt_sysroot=$lt_sysroot - -# Command to truncate a binary pipe. -lt_truncate_bin=$lt_lt_cv_truncate_bin - -# The name of the directory that contains temporary libtool files. -objdir=$objdir - -# Used to examine libraries when file_magic_cmd begins with "file". -MAGIC_CMD=$MAGIC_CMD - -# Must we lock files when doing compilation? -need_locks=$lt_need_locks - -# Manifest tool. -MANIFEST_TOOL=$lt_MANIFEST_TOOL - -# Tool to manipulate archived DWARF debug symbol files on Mac OS X. -DSYMUTIL=$lt_DSYMUTIL - -# Tool to change global to local symbols on Mac OS X. -NMEDIT=$lt_NMEDIT - -# Tool to manipulate fat objects and archives on Mac OS X. -LIPO=$lt_LIPO - -# ldd/readelf like tool for Mach-O binaries on Mac OS X. -OTOOL=$lt_OTOOL - -# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. -OTOOL64=$lt_OTOOL64 - -# Old archive suffix (normally "a"). -libext=$libext - -# Shared library suffix (normally ".so"). -shrext_cmds=$lt_shrext_cmds - -# The commands to extract the exported symbol list from a shared archive. -extract_expsyms_cmds=$lt_extract_expsyms_cmds - -# Variables whose values should be saved in libtool wrapper scripts and -# restored at link time. -variables_saved_for_relink=$lt_variables_saved_for_relink - -# Do we need the "lib" prefix for modules? -need_lib_prefix=$need_lib_prefix - -# Do we need a version for libraries? -need_version=$need_version - -# Library versioning type. -version_type=$version_type - -# Shared library runtime path variable. -runpath_var=$runpath_var - -# Shared library path variable. -shlibpath_var=$shlibpath_var - -# Is shlibpath searched before the hard-coded library search path? -shlibpath_overrides_runpath=$shlibpath_overrides_runpath - -# Format of library name prefix. -libname_spec=$lt_libname_spec - -# List of archive names. First name is the real one, the rest are links. -# The last name is the one that the linker finds with -lNAME -library_names_spec=$lt_library_names_spec - -# The coded name of the library, if different from the real name. -soname_spec=$lt_soname_spec - -# Permission mode override for installation of shared libraries. -install_override_mode=$lt_install_override_mode - -# Command to use after installation of a shared archive. -postinstall_cmds=$lt_postinstall_cmds - -# Command to use after uninstallation of a shared archive. -postuninstall_cmds=$lt_postuninstall_cmds - -# Commands used to finish a libtool library installation in a directory. -finish_cmds=$lt_finish_cmds - -# As "finish_cmds", except a single script fragment to be evaled but -# not shown. -finish_eval=$lt_finish_eval - -# Whether we should hardcode library paths into libraries. -hardcode_into_libs=$hardcode_into_libs - -# Compile-time system search path for libraries. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec - -# Detected run-time system search path for libraries. -sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path - -# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. -configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path - -# Whether dlopen is supported. -dlopen_support=$enable_dlopen - -# Whether dlopen of programs is supported. -dlopen_self=$enable_dlopen_self - -# Whether dlopen of statically linked programs is supported. -dlopen_self_static=$enable_dlopen_self_static - -# Commands to strip libraries. -old_striplib=$lt_old_striplib -striplib=$lt_striplib - - -# The linker used to build libraries. -LD=$lt_LD - -# How to create reloadable object files. -reload_flag=$lt_reload_flag -reload_cmds=$lt_reload_cmds - -# Commands used to build an old-style archive. -old_archive_cmds=$lt_old_archive_cmds - -# A language specific compiler. -CC=$lt_compiler - -# Is the compiler the GNU compiler? -with_gcc=$GCC - -# Compiler flag to turn off builtin functions. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag - -# Additional compiler flags for building library objects. -pic_flag=$lt_lt_prog_compiler_pic - -# How to pass a linker flag through the compiler. -wl=$lt_lt_prog_compiler_wl - -# Compiler flag to prevent dynamic linking. -link_static_flag=$lt_lt_prog_compiler_static - -# Does compiler simultaneously support -c and -o options? -compiler_c_o=$lt_lt_cv_prog_compiler_c_o - -# Whether or not to add -lc for building shared libraries. -build_libtool_need_lc=$archive_cmds_need_lc - -# Whether or not to disallow shared libs when runtime libs are static. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes - -# Compiler flag to allow reflexive dlopens. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec - -# Compiler flag to generate shared objects directly from archives. -whole_archive_flag_spec=$lt_whole_archive_flag_spec - -# Whether the compiler copes with passing no objects directly. -compiler_needs_object=$lt_compiler_needs_object - -# Create an old-style archive from a shared archive. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds - -# Create a temporary old-style archive to link instead of a shared archive. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds - -# Commands used to build a shared archive. -archive_cmds=$lt_archive_cmds -archive_expsym_cmds=$lt_archive_expsym_cmds - -# Commands used to build a loadable module if different from building -# a shared archive. -module_cmds=$lt_module_cmds -module_expsym_cmds=$lt_module_expsym_cmds - -# Whether we are building with GNU ld or not. -with_gnu_ld=$lt_with_gnu_ld - -# Flag that allows shared libraries with undefined symbols to be built. -allow_undefined_flag=$lt_allow_undefined_flag - -# Flag that enforces no undefined symbols. -no_undefined_flag=$lt_no_undefined_flag - -# Flag to hardcode \$libdir into a binary during linking. -# This must work even if \$libdir does not exist -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec - -# Whether we need a single "-rpath" flag with a separated argument. -hardcode_libdir_separator=$lt_hardcode_libdir_separator - -# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes -# DIR into the resulting binary. -hardcode_direct=$hardcode_direct - -# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes -# DIR into the resulting binary and the resulting library dependency is -# "absolute",i.e impossible to change by setting \$shlibpath_var if the -# library is relocated. -hardcode_direct_absolute=$hardcode_direct_absolute - -# Set to "yes" if using the -LDIR flag during linking hardcodes DIR -# into the resulting binary. -hardcode_minus_L=$hardcode_minus_L - -# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR -# into the resulting binary. -hardcode_shlibpath_var=$hardcode_shlibpath_var - -# Set to "yes" if building a shared library automatically hardcodes DIR -# into the library and all subsequent libraries and executables linked -# against it. -hardcode_automatic=$hardcode_automatic - -# Set to yes if linker adds runtime paths of dependent libraries -# to runtime path list. -inherit_rpath=$inherit_rpath - -# Whether libtool must link a program against all its dependency libraries. -link_all_deplibs=$link_all_deplibs - -# Set to "yes" if exported symbols are required. -always_export_symbols=$always_export_symbols - -# The commands to list exported symbols. -export_symbols_cmds=$lt_export_symbols_cmds - -# Symbols that should not be listed in the preloaded symbols. -exclude_expsyms=$lt_exclude_expsyms - -# Symbols that must always be exported. -include_expsyms=$lt_include_expsyms - -# Commands necessary for linking programs (against libraries) with templates. -prelink_cmds=$lt_prelink_cmds - -# Commands necessary for finishing linking programs. -postlink_cmds=$lt_postlink_cmds - -# Specify filename containing input files. -file_list_spec=$lt_file_list_spec - -# How to hardcode a shared library path into an executable. -hardcode_action=$hardcode_action - -# ### END LIBTOOL CONFIG - -_LT_EOF - - cat <<'_LT_EOF' >> "$cfgfile" - -# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE - -# func_munge_path_list VARIABLE PATH -# ----------------------------------- -# VARIABLE is name of variable containing _space_ separated list of -# directories to be munged by the contents of PATH, which is string -# having a format: -# "DIR[:DIR]:" -# string "DIR[ DIR]" will be prepended to VARIABLE -# ":DIR[:DIR]" -# string "DIR[ DIR]" will be appended to VARIABLE -# "DIRP[:DIRP]::[DIRA:]DIRA" -# string "DIRP[ DIRP]" will be prepended to VARIABLE and string -# "DIRA[ DIRA]" will be appended to VARIABLE -# "DIR[:DIR]" -# VARIABLE will be replaced by "DIR[ DIR]" -func_munge_path_list () -{ - case x$2 in - x) - ;; - *:) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" - ;; - x:*) - eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" - ;; - *::*) - eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" - eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" - ;; - *) - eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" - ;; - esac -} - - -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -func_cc_basename () -{ - for cc_temp in $*""; do - case $cc_temp in - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; - \-*) ;; - *) break;; - esac - done - func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -} - - -# ### END FUNCTIONS SHARED WITH CONFIGURE - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - - -ltmain=$ac_aux_dir/ltmain.sh - - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - $SED '$q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" - - ;; - "po-directories":C) - for ac_file in $CONFIG_FILES; do - # Support "outfile[:infile[:infile...]]" - case "$ac_file" in - *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; - esac - # PO directories have a Makefile.in generated from Makefile.in.in. - case "$ac_file" in */Makefile.in) - # Adjust a relative srcdir. - ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` - ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` - # In autoconf-2.13 it is called $ac_given_srcdir. - # In autoconf-2.50 it is called $srcdir. - test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" - case "$ac_given_srcdir" in - .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; - /*) top_srcdir="$ac_given_srcdir" ;; - *) top_srcdir="$ac_dots$ac_given_srcdir" ;; - esac - # Treat a directory as a PO directory if and only if it has a - # POTFILES.in file. This allows packages to have multiple PO - # directories under different names or in different locations. - if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then - rm -f "$ac_dir/POTFILES" - test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" - gt_tab=`printf '\t'` - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/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 assignment 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 assignment 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 ;; - "src/man2hlp/man2hlp":F) -chmod +x src/man2hlp/man2hlp - ;; - "misc/syntax/Syntax":F) ${SED-sed} -e "s%\${prefix}%$PREFIX%" misc/syntax/Syntax > misc/syntax/Syntax.tmp && \ - mv -f misc/syntax/Syntax.tmp misc/syntax/Syntax ;; - - 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 - { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} -fi - - -{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: - -Configuration: - - Source code location: ${srcdir} - Compiler: ${CC} - Compiler flags: ${CFLAGS} - Assertions: ${enable_assert} - Unit tests: ${tests_msg} - File system: ${vfs_type} - ${vfs_flags} - Screen library: ${screen_msg} - Mouse support: ${mouse_lib} - X11 events support: ${textmode_x11_support} - With subshell support: ${subshell} - With background operations: ${enable_background} - With ext2fs attributes support: ${ext2fs_attr_msg} - Internal editor: ${edit_msg} - Diff viewer: ${diff_msg} - Support for charset: ${charset_msg} - Search type: ${SEARCH_TYPE} -" >&5 -printf "%s\n" "$as_me: - -Configuration: - - Source code location: ${srcdir} - Compiler: ${CC} - Compiler flags: ${CFLAGS} - Assertions: ${enable_assert} - Unit tests: ${tests_msg} - File system: ${vfs_type} - ${vfs_flags} - Screen library: ${screen_msg} - Mouse support: ${mouse_lib} - X11 events support: ${textmode_x11_support} - With subshell support: ${subshell} - With background operations: ${enable_background} - With ext2fs attributes support: ${ext2fs_attr_msg} - Internal editor: ${edit_msg} - Diff viewer: ${diff_msg} - Support for charset: ${charset_msg} - Search type: ${SEARCH_TYPE} -" >&6;} - -if test -n "$ac_unrecognized_opts"; then - case $enable_option_checking in - fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" "$LINENO" 5 ;; - *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 -printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} ;; - esac -fi - diff --git a/recipes/wip/files/mc/source/configure.ac b/recipes/wip/files/mc/source/configure.ac deleted file mode 100644 index dfbbfeeeaf..0000000000 --- a/recipes/wip/files/mc/source/configure.ac +++ /dev/null @@ -1,764 +0,0 @@ -dnl -dnl Configure.in file for the Midnight Commander -dnl - -dnl 2.64 is required at least for m4_esyscmd_s() -AC_PREREQ([2.64]) - -AC_INIT([GNU Midnight Commander], m4_esyscmd_s([./version.sh .]), - [https://www.midnight-commander.org/wiki/NewTicket], [mc], - [https://www.midnight-commander.org/]) - -m4_pattern_forbid(MC_) -AC_CONFIG_MACRO_DIR([m4]) -AC_CONFIG_AUX_DIR(config) -AC_CONFIG_SRCDIR(src/main.c) -AC_CONFIG_HEADERS(config.h) - -dnl Apply "no-define" to avoid defining the VERSION macro in config.h -AM_INIT_AUTOMAKE([no-define]) -dnl PACKAGE macro isn't defined if "no-define" is applied -AC_DEFINE([PACKAGE], ["mc"], [Name of package]) - -dnl Enable silent rules by default (if yes) -m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) - -mc_VERSION - -AM_MAINTAINER_MODE - -AC_CANONICAL_HOST - -AC_USE_SYSTEM_EXTENSIONS - - -dnl ############################################################################ -dnl Check for compiler -dnl ############################################################################ - -dnl This should be checked before toolchain macros, otherwise they will remember -dnl that ar cannot be found and linking via libtool will fail at a later stage -AC_CHECK_TOOLS([AR], [ar gar]) - -AC_PROG_CC - -# AC_PROG_CC doesn't try enabling C99 in autoconf 2.69 and below, but -# AC_PROG_CC_C99 is deprecated in newer ones. In autoconf 2.70+ both -# will try enabling features up to C11. -m4_version_prereq([2.70], [AC_PROG_CC], [AC_PROG_CC_C99]) - -mc_CHECK_CFLAGS - -CFLAGS_OPTS="" -if test "x$CFLAGS" = "x"; then - CFLAGS_OPTS=" -O2 " -fi -if test x$USE_MAINTAINER_MODE = xyes; then - CFLAGS_OPTS="-g3 -Og -ggdb" - AC_DEFINE(USE_MAINTAINER_MODE, 1, [Use maintainer mode]) -fi - -AC_ARG_ENABLE([werror], - AS_HELP_STRING([--enable-werror], [Handle all compiler warnings as errors])) -if test "x$enable_werror" = xyes; then - AX_APPEND_COMPILE_FLAGS([-Werror], [mc_configured_cflags]) -fi - -dnl Compiler can generate warnings for unrecognized flags added to CFLAGS -dnl which causes attribute checks to fail -ax_gcc_func_attribute_save_flags=$[]_AC_LANG_PREFIX[]FLAGS -_AC_LANG_PREFIX[]FLAGS= -AX_GCC_FUNC_ATTRIBUTE([fallthrough]) -AX_GCC_FUNC_ATTRIBUTE([weak]) -AX_GCC_FUNC_ATTRIBUTE([unused]) -_AC_LANG_PREFIX[]FLAGS=$ax_gcc_func_attribute_save_flags -unset ax_gcc_func_attribute_save_flags - -LT_INIT - - -dnl ############################################################################ -dnl Check for programs -dnl ############################################################################ - -AC_PROG_SED -PKG_PROG_PKG_CONFIG -AC_PROG_INSTALL -AC_PROG_LN_S -dnl See also the "OS specific stuff" section below. - -dnl Check nroff and the options it supports -AC_CHECK_PROG(HAVE_nroff, nroff, true, false) -dnl Default values -MANDOC=-man -MAN_FLAGS= -if $HAVE_nroff; then - AC_MSG_CHECKING([for manual formatting macros]) - AC_CACHE_VAL(mc_cv_mandoc, [ - nroff -mandoc < /dev/null > /dev/null 2>&1 - if test $? = 0; then - mc_cv_mandoc=-mandoc - else - mc_cv_mandoc=-man - fi - ]) - MANDOC=$mc_cv_mandoc - AC_MSG_RESULT([$MANDOC]) - - AC_MSG_CHECKING([for option to disable ANSI color in manuals]) - AC_CACHE_VAL(mc_cv_man_nocolor, [ - nroff -c < /dev/null > /dev/null 2>&1 - if test $? = 0; then - mc_cv_man_nocolor=-c - else - mc_cv_man_nocolor= - fi - ]) - MAN_FLAGS=$mc_cv_man_nocolor - AC_MSG_RESULT([${MAN_NOCOLOR-none}]) - - AC_MSG_CHECKING([if nroff accepts -Tlatin1 or -Tascii]) - AC_CACHE_VAL(mc_cv_nroff_tascii, [ - mc_cv_nroff_tascii= - nroff -Tlatin1 < /dev/null > /dev/null 2>&1 /dev/null - if test $? = 0; then - mc_cv_nroff_tascii=-Tlatin1 - else - nroff -Tascii < /dev/null > /dev/null 2>&1 /dev/null - if test $? = 0; then - mc_cv_nroff_tascii=-Tascii - fi - fi - ]) - AC_MSG_RESULT([${mc_cv_nroff_tascii-no}]) - MAN_FLAGS="$MAN_FLAGS $mc_cv_nroff_tascii" -fi - -AC_SUBST(MANDOC) -AC_SUBST(MAN_FLAGS) - -dnl Check for -z, -b, -L, and -S options to file -AC_CHECK_PROG(HAVE_FILECMD, file, true, false) -if $HAVE_FILECMD; then - dnl Don't use the file command if it doesn't accept the -z option - AC_MSG_CHECKING([for -z option to file command]) - AC_CACHE_VAL(mc_cv_file_z, [ - file -z . > /dev/null 2>&1 - if test $? = 0; then - mc_cv_file_z=yes - else - mc_cv_file_z=no - fi - ]) - AC_MSG_RESULT([$mc_cv_file_z]) - - if test x$mc_cv_file_z = xyes; then - AC_DEFINE(USE_FILE_CMD, 1, [Define if the file command accepts the -z option]) - else - AC_MSG_WARN([The file command doesn't accept the -z option and will not be used]) - fi - - if test x$mc_cv_file_z = xyes; then - dnl file is used; check -b, -L and -S options - - AC_MSG_CHECKING([for -b option to file command]) - AC_CACHE_VAL(mc_cv_file_b, [ - file -b . > /dev/null 2>&1 - if test $? = 0; then - mc_cv_file_b=yes - else - mc_cv_file_b=no - fi - ]) - AC_MSG_RESULT([$mc_cv_file_b]) - - if test x$mc_cv_file_b = xyes; then - AC_DEFINE(FILE_B, "-b ", [Define if the file command accepts the -b option]) - fi - - AC_MSG_CHECKING([for -L option to file command]) - AC_CACHE_VAL(mc_cv_file_L, [ - file -L . > /dev/null 2>&1 - if test $? = 0; then - mc_cv_file_L=yes - else - mc_cv_file_L=no - fi - ]) - AC_MSG_RESULT([$mc_cv_file_L]) - - if test x$mc_cv_file_L = xyes; then - AC_DEFINE(FILE_L, "-L ", [Define if the file command accepts the -L option]) - else - AC_DEFINE(FILE_L, "", [Define if the file command accepts the -L option]) - fi - - dnl The file command accepts the -S option since 5.33 - AC_MSG_CHECKING([for -S option to file command]) - AC_CACHE_VAL(mc_cv_file_S, [ - file -S . > /dev/null 2>&1 - if test $? = 0; then - mc_cv_file_S=yes - else - mc_cv_file_S=no - fi - ]) - AC_MSG_RESULT([$mc_cv_file_S]) - - if test x$mc_cv_file_S = xyes; then - AC_DEFINE(FILE_S, "-S ", [Define if file command accepts the -S option]) - else - AC_DEFINE(FILE_S, "", [Define if file command accepts the -S option]) - fi - fi -fi - - -dnl ############################################################################ -dnl Check for other tools -dnl ############################################################################ - -AC_CHECK_TOOLS([INDENT], [gindent indent]) -mc_UNIT_TESTS - - -dnl ############################################################################ -dnl Check for main libraries -dnl ############################################################################ - -mc_CHECK_GLIB -mc_G_MODULE_SUPPORTED -mc_WITH_SCREEN -mc_CHECK_SEARCH_TYPE -dnl X11 support. Used to read keyboard modifiers when running under X11. -mc_WITH_X - - -dnl ############################################################################ -dnl Check for header files -dnl ############################################################################ - -AC_CHECK_HEADERS([string.h memory.h limits.h malloc.h \ - utime.h sys/statfs.h sys/vfs.h \ - sys/select.h sys/ioctl.h stropts.h arpa/inet.h \ - sys/socket.h]) -dnl This macro is redefined in m4.include/gnulib/sys_types_h.m4 -dnl to work around a buggy version in autoconf <= 2.69. -AC_HEADER_MAJOR - -mc_CHECK_HEADER_STDCKDINT - - -dnl ############################################################################ -dnl Check for types -dnl ############################################################################ - -dnl Check largefile before type sizeof checks -AC_SYS_LARGEFILE - -AC_CHECK_SIZEOF(long) -AC_TYPE_UINTMAX_T -AC_CHECK_SIZEOF(uintmax_t) -AC_TYPE_OFF_T -AC_CHECK_SIZEOF(off_t) -AC_TYPE_MODE_T -gl_PROMOTED_TYPE_MODE_T -AC_TYPE_PID_T -AC_TYPE_UID_T - -dnl Taken from GNU/Linux, and should be good enough on platforms lacking these types. -AC_CHECK_TYPE([dev_t], [unsigned long long int]) -AC_CHECK_TYPE([ino_t], [unsigned long long int]) - -dnl Taken from GNU/Linux, and should be good enough on platforms lacking these types. -AC_CHECK_TYPE([major_t], [unsigned int]) -AC_CHECK_TYPE([minor_t], [unsigned int]) - -AC_STRUCT_ST_BLOCKS -AC_CHECK_MEMBERS([struct stat.st_blksize, struct stat.st_rdev, struct stat.st_mtim, struct stat.st_mtimespec, struct stat.st_mtimensec]) -gl_STAT_SIZE - -AH_TEMPLATE([sig_atomic_t], - [/* Define to `int' if doesn't define.]) -AH_TEMPLATE([SIG_ATOMIC_VOLATILE_T], - [Some systems declare sig_atomic_t as volatile, some others -- no. - This define will have value `sig_atomic_t' or - `volatile sig_atomic_t' accordingly.]) - -AC_MSG_CHECKING(for sig_atomic_t in signal.h) -AC_EGREP_HEADER(sig_atomic_t,signal.h, - [ - ac_cv_type_sig_atomic_t=yes; - AC_EGREP_HEADER(volatile.*sig_atomic_t, - signal.h, - [ - is_sig_atomic_t_volatile=yes; - AC_MSG_RESULT([yes, volatile]) - ], - [ - is_sig_atomic_t_volatile=no; - AC_MSG_RESULT([yes, non volatile]) - ]) - ], - [ - AC_MSG_RESULT(no) - AC_CHECK_TYPE(sig_atomic_t, int) - is_sig_atomic_t_volatile=no - ]) -if test $is_sig_atomic_t_volatile = 'yes' -then - AC_DEFINE(SIG_ATOMIC_VOLATILE_T, sig_atomic_t) -else - AC_DEFINE(SIG_ATOMIC_VOLATILE_T, [volatile sig_atomic_t]) -fi - - -dnl ############################################################################ -dnl Check for functions -dnl ############################################################################ - -AC_CHECK_FUNCS([\ - strverscmp \ - strncasecmp \ - realpath -]) - -dnl getpt is a GNU Extension (glibc 2.1.x) -AC_CHECK_FUNCS(posix_openpt, , [AC_CHECK_FUNCS(getpt)]) -AC_CHECK_FUNCS(grantpt, , [AC_CHECK_LIB(pt, grantpt)]) - -dnl replacing lstat with statlstat on sco makes it more portable between -dnl sco clones -AC_CHECK_FUNCS(statlstat) - -mc_GET_FS_INFO - - -dnl ############################################################################ -dnl Internationalization -dnl ############################################################################ - -AC_CHECK_FUNCS([setlocale]) - -AM_GNU_GETTEXT([external], [need-ngettext]) -AM_GNU_GETTEXT_VERSION([0.18.2]) - -mc_I18N - -dnl ############################################################################ -dnl OS specific stuff -dnl ############################################################################ - -AC_CHECK_DECLS([environ], , , - [ #include - #include ]) - -AC_PATH_PROG([PERL], [perl], [/usr/bin/env perl], [$PATH$PATH_SEPARATORQOpenSys/pkgs/bin]) -AC_PATH_PROG([PERL_FOR_BUILD], [perl], [/usr/bin/env perl], [$PATH$PATH_SEPARATORQOpenSys/pkgs/bin]) -AC_PATH_PROG([PYTHON], [python3], [/usr/bin/env python3], [$PATH$PATH_SEPARATORQOpenSys/pkgs/bin]) -AC_PATH_PROG([RUBY], [ruby], [/usr/bin/env ruby], [$PATH$PATH_SEPARATORQOpenSys/pkgs/bin]) - -case $host_os in -aux*) - # A/UX - LIBS="$LIBS -lposix" - AC_DEFINE(_POSIX_SOURCE) - ;; -esac - -dnl If running under AIX, AC_USE_SYSTEM_EXTENSIONS does not tell us that -AC_MSG_CHECKING([for AIX defines]) -AC_EGREP_CPP([yes], - [ - #if defined(AIX) || defined(_AIX) || defined(__aix__) || defined(aix) - yes - #endif - ], - [ - AC_DEFINE(IS_AIX, 1, [Define if compiling for AIX]) - AC_MSG_RESULT(yes) - ], - [ - AC_MSG_RESULT(no) - ]) - -dnl utimensat is supported since glibc 2.6 and specified in POSIX.1-2008 -AC_CHECK_FUNCS([utimensat]) - -case $host_os in -*os400) - AC_DEFINE([PTY_ZEROREAD], [1], [read(1) can return 0 for a non-closed fd]) -esac - -dnl Check linux/fs.h for FICLONE to support BTRFS's file clone operation -case $host_os in -linux*) - AC_CHECK_HEADERS([linux/fs.h]) -esac - -dnl Check if the OS is supported by the console saver. -cons_saver="" -case $host_os in -linux*) - cons_saver=yes -esac - -dnl Check for gpm mouse support (Linux only) -mouse_lib="xterm only" -AC_ARG_WITH([gpm-mouse], - AS_HELP_STRING([--with-gpm-mouse], [Compile with gpm mouse support (Linux only) @<:@yes if found@:>@])) - -case $host_os in -linux*) - if test x$with_gpm_mouse != xno; then - AC_CHECK_LIB(gpm, Gpm_Repeat, - [AC_DEFINE(HAVE_LIBGPM, 1, [Define to enable gpm mouse support on Linux]) - mouse_lib="gpm and xterm" - MCLIBS="$MCLIBS -lgpm"], - if test "x$with_gpm_mouse" = "xyes"; then - [AC_MSG_ERROR([libgpm is missing or older than 0.18])] - else - [AC_MSG_WARN([libgpm is missing or older than 0.18])] - fi - ) - fi - ;; -esac - - -dnl ############################################################################ -dnl libmc -dnl ############################################################################ - -LIBMC_VERSION="0.0.1" -LIBMC_RELEASE="1" -AC_SUBST(LIBMC_VERSION) -AC_SUBST(LIBMC_RELEASE) - -AC_ARG_ENABLE([mclib], - [AS_HELP_STRING([--enable-mclib], [Compile shared library libmc.so @<:@no@:>@])], - [ - if test "x$enableval" = "xno" ; then - enable_mclib=no - else - if test "x$enable_shared" = "xno" ; then - AC_MSG_WARN([Build of shared library is disabled. Specify --enable-shared first]) - enable_mclib=no - else - enable_mclib=yes - fi - fi - ], - [enable_mclib=no]) - -AM_CONDITIONAL([ENABLE_MCLIB], [test x$enable_mclib = xyes]) - - -dnl ############################################################################ -dnl MC options -dnl ############################################################################ - -mc_ASSERT - -mc_WITH_INTERNAL_EDIT - -dnl Diff viewer support. -AC_ARG_WITH([diff_viewer], - AS_HELP_STRING([--with-diff-viewer], [Compile with diff viewer @<:@yes@:>@])) - -if test x$with_diff_viewer != xno; then - AC_DEFINE(USE_DIFF_VIEW, 1, [Define to enable diff viewer]) - use_diff=yes - diff_msg="yes" - AC_MSG_NOTICE([using diff viewer]) -else - diff_msg="no" -fi - -mc_SUBSHELL -mc_BACKGROUND -mc_EXT2FS_ATTR -mc_VFS_CHECKS - -dnl ############################################################################ -dnl Directories -dnl ############################################################################ - -dnl ${prefix} and ${exec_prefix} are undefined here if --prefix is not used in command line -dnl Let define ${prefix} and ${exec_prefix} -test "x$prefix" = "xNONE" && prefix="$ac_default_prefix" -test "x$exec_prefix" = "xNONE" && exec_prefix="${prefix}" - -if test x${libexecdir} = x'${exec_prefix}/libexec'; then - EXTHELPERSDIR=${prefix}/libexec/${PACKAGE}/ext.d - EXTFSHELPERSDIR=${prefix}/libexec/${PACKAGE}/extfs.d -elif test x${libexecdir} = x'${exec_prefix}/lib'; then - EXTHELPERSDIR=${prefix}/lib/${PACKAGE}/ext.d - EXTFSHELPERSDIR=${prefix}/lib/${PACKAGE}/extfs.d -else - EXTHELPERSDIR=${libexecdir}/${PACKAGE}/ext.d - EXTFSHELPERSDIR=${libexecdir}/${PACKAGE}/extfs.d -fi -AC_SUBST(EXTHELPERSDIR) -AC_SUBST(EXTFSHELPERSDIR) - - -dnl ############################################################################ -dnl Documentation -dnl ############################################################################ - -MAN_DATE="$(LC_ALL=C date "+%B %Y")" -AC_SUBST(MAN_DATE) - -dnl Determine which help translations we want to install. -ALL_DOC_LINGUAS="es hu it pl ru sr" - -DOC_LINGUAS= -if test "x$USE_NLS" = xyes; then - if test -z "$LINGUAS"; then - langs="`grep -v '^#' $srcdir/po/LINGUAS`" - else - langs="$LINGUAS" - fi -else - langs= -fi - -for h_lang in $ALL_DOC_LINGUAS; do - for lang in $langs; do - if test "$lang" = "$h_lang"; then - DOC_LINGUAS="$DOC_LINGUAS $lang" - break - fi - done -done -AC_SUBST(DOC_LINGUAS) - -DX_HTML_FEATURE(ON) -DX_CHM_FEATURE(OFF) -DX_CHI_FEATURE(OFF) -DX_MAN_FEATURE(OFF) -DX_RTF_FEATURE(OFF) -DX_XML_FEATURE(OFF) -DX_PDF_FEATURE(OFF) -DX_PS_FEATURE(OFF) -DX_INIT_DOXYGEN(mc,doxygen.cfg,devel) - - -dnl ############################################################################ -dnl Configure results -dnl ############################################################################ - -CFLAGS="$mc_configured_cflags $CFLAGS_OPTS $CFLAGS" - -AC_SUBST(MCLIBS) -AC_SUBST(CFLAGS) -AC_SUBST(CPPFLAGS) -AC_SUBST(LDFLAGS) -AC_SUBST(LIBS) - -AM_CONDITIONAL(USE_NLS, [test x"$USE_NLS" = xyes]) -AM_CONDITIONAL(USE_MAINTAINER_MODE, [test x"$USE_MAINTAINER_MODE" = xyes]) -AM_CONDITIONAL(USE_SCREEN_SLANG, [test x"$with_screen" = xslang]) -AM_CONDITIONAL(USE_INTERNAL_EDIT, [test x"$use_internal_edit" = xyes ]) -AM_CONDITIONAL(USE_ASPELL, [test x"$enable_aspell" = xyes ]) -AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"]) -AM_CONDITIONAL(CHARSET, [test -n "$have_charset"]) -AM_CONDITIONAL(CONS_SAVER, [test -n "$cons_saver"]) -dnl Clarify do we really need GModule -AM_CONDITIONAL([HAVE_GMODULE], [test -n "$g_module_supported" && \ - test x"$textmode_x11_support" = x"yes" -o x"$enable_aspell" = x"yes"]) - -AC_ARG_ENABLE([configure-args], - AS_HELP_STRING([--enable-configure-args], [Embed ./configure arguments into binaries])) -if test "x$enable_configure_args" != xno; then - AC_DEFINE([ENABLE_CONFIGURE_ARGS], 1, [Define to enable showing configure arguments in help]) - AC_DEFINE_UNQUOTED([MC_CONFIGURE_ARGS], ["$ac_configure_args"], [MC configure arguments]) -fi - - -AC_CONFIG_FILES( -[ -src/man2hlp/man2hlp -], -[ -chmod +x src/man2hlp/man2hlp -]) - -AC_CONFIG_FILES([ -Makefile - -contrib/Makefile - -misc/Makefile -misc/mc.charsets -misc/mc.menu -misc/mcedit.menu -misc/skins/Makefile -misc/ext.d/Makefile -misc/ext.d/doc.sh -misc/ext.d/misc.sh -misc/ext.d/text.sh -misc/macros.d/Makefile -misc/mc.ext.ini - -src/Makefile -src/consaver/Makefile -src/editor/Makefile -src/man2hlp/Makefile -src/subshell/Makefile -src/viewer/Makefile -src/diffviewer/Makefile -src/filemanager/Makefile - -src/vfs/Makefile - -src/vfs/cpio/Makefile - -src/vfs/extfs/Makefile -src/vfs/extfs/helpers/Makefile -src/vfs/extfs/helpers/a+ -src/vfs/extfs/helpers/apt+ -src/vfs/extfs/helpers/audio -src/vfs/extfs/helpers/deb -src/vfs/extfs/helpers/deba -src/vfs/extfs/helpers/debd -src/vfs/extfs/helpers/dpkg+ -src/vfs/extfs/helpers/iso9660 -src/vfs/extfs/helpers/hp48+ -src/vfs/extfs/helpers/lslR -src/vfs/extfs/helpers/mailfs -src/vfs/extfs/helpers/patchfs -src/vfs/extfs/helpers/rpms+ -src/vfs/extfs/helpers/s3+ -src/vfs/extfs/helpers/torrent -src/vfs/extfs/helpers/uace -src/vfs/extfs/helpers/ualz -src/vfs/extfs/helpers/uar -src/vfs/extfs/helpers/uarc -src/vfs/extfs/helpers/uarj -src/vfs/extfs/helpers/uc1541 -src/vfs/extfs/helpers/ucab -src/vfs/extfs/helpers/uha -src/vfs/extfs/helpers/ulha -src/vfs/extfs/helpers/ulib -src/vfs/extfs/helpers/unar -src/vfs/extfs/helpers/urar -src/vfs/extfs/helpers/uwim -src/vfs/extfs/helpers/uzip -src/vfs/extfs/helpers/uzoo - -src/vfs/shell/Makefile -src/vfs/shell/helpers/Makefile - -src/vfs/ftpfs/Makefile - -src/vfs/sftpfs/Makefile - -src/vfs/local/Makefile - -src/vfs/sfs/Makefile - -src/vfs/tar/Makefile - -src/vfs/undelfs/Makefile - -lib/Makefile -lib/event/Makefile -lib/filehighlight/Makefile -lib/mcconfig/Makefile -lib/search/Makefile -lib/skin/Makefile -lib/strutil/Makefile -lib/tty/Makefile - -lib/vfs/Makefile - -lib/widget/Makefile - -misc/syntax/Makefile - -doc/Makefile - -doc/hints/Makefile -doc/hints/l10n/Makefile - -doc/man/Makefile -doc/man/es/Makefile -doc/man/hu/Makefile -doc/man/it/Makefile -doc/man/pl/Makefile -doc/man/ru/Makefile -doc/man/sr/Makefile - -doc/hlp/Makefile -doc/hlp/es/Makefile -doc/hlp/hu/Makefile -doc/hlp/it/Makefile -doc/hlp/pl/Makefile -doc/hlp/ru/Makefile -doc/hlp/sr/Makefile - -po/Makefile.in -]) - -dnl https://stackoverflow.com/questions/30897170/ac-subst-does-not-expand-variable/30932102#30932102 -AC_CONFIG_FILES( -[misc/syntax/Syntax], [${SED-sed} -e "s%\${prefix}%$PREFIX%" misc/syntax/Syntax > misc/syntax/Syntax.tmp && \ - mv -f misc/syntax/Syntax.tmp misc/syntax/Syntax], [export PREFIX=$prefix] -) - -AC_CONFIG_FILES([ -tests/Makefile -tests/lib/Makefile -tests/lib/mcconfig/Makefile -tests/lib/search/Makefile -tests/lib/strutil/Makefile -tests/lib/vfs/Makefile -tests/lib/vfs/mc.charsets -tests/lib/widget/Makefile -tests/src/Makefile -tests/src/filemanager/Makefile -tests/src/editor/Makefile -tests/src/editor/test-data.txt -tests/src/vfs/Makefile -tests/src/vfs/extfs/Makefile -tests/src/vfs/extfs/helpers-list/Makefile -tests/src/vfs/extfs/helpers-list/data/config.sh -tests/src/vfs/extfs/helpers-list/misc/Makefile -tests/src/vfs/ftpfs/Makefile -]) - -AC_OUTPUT - -AC_MSG_NOTICE([ - -Configuration: - - Source code location: ${srcdir} - Compiler: ${CC} - Compiler flags: ${CFLAGS} - Assertions: ${enable_assert} - Unit tests: ${tests_msg} - File system: ${vfs_type} - ${vfs_flags} - Screen library: ${screen_msg} - Mouse support: ${mouse_lib} - X11 events support: ${textmode_x11_support} - With subshell support: ${subshell} - With background operations: ${enable_background} - With ext2fs attributes support: ${ext2fs_attr_msg} - Internal editor: ${edit_msg} - Diff viewer: ${diff_msg} - Support for charset: ${charset_msg} - Search type: ${SEARCH_TYPE} -]) - -dnl option checking is disable by default due to AC_CONFIG_SUBDIRS -dnl we enable it back for top-level ./configure -if test -n "$ac_unrecognized_opts"; then - case $enable_option_checking in - fatal) AC_MSG_ERROR([unrecognized options: $ac_unrecognized_opts]) ;; - *) AC_MSG_WARN( [unrecognized options: $ac_unrecognized_opts]) ;; - esac -fi diff --git a/recipes/wip/files/mc/source/contrib/Makefile.am b/recipes/wip/files/mc/source/contrib/Makefile.am deleted file mode 100644 index 7065279b14..0000000000 --- a/recipes/wip/files/mc/source/contrib/Makefile.am +++ /dev/null @@ -1,32 +0,0 @@ - -noinst_DATA = README.xterm - -SCRIPTS_IN = mc.csh.in mc.sh.in mc-wrapper.csh.in mc-wrapper.sh.in -SCRIPTS_OUT = mc.csh mc.sh mc-wrapper.csh mc-wrapper.sh - -pkglibexec_SCRIPTS = $(SCRIPTS_OUT) -pkglibexecdir = $(libexecdir)/@PACKAGE@ - -cfgdir = $(sysconfdir)/@PACKAGE@ -cfg_DATA = \ - $(LIBFILES_ADD) - -CLEANFILES = $(SCRIPTS_OUT) - -# Files processed by configure don't need to be here -EXTRA_DIST = \ - $(SCRIPTS_IN) \ - $(noinst_DATA) - -mc.csh: $(top_builddir)/config.status $(srcdir)/mc.csh.in - $(SED) "s%@""pkglibexecdir@%$(pkglibexecdir)%" $(srcdir)/mc.csh.in > mc.csh - -mc.sh: $(top_builddir)/config.status $(srcdir)/mc.sh.in - $(SED) "s%@""pkglibexecdir@%$(pkglibexecdir)%" $(srcdir)/mc.sh.in > mc.sh - -mc-wrapper.csh: $(top_builddir)/config.status $(srcdir)/mc-wrapper.csh.in - $(SED) "s%@""bindir@%$(bindir)%" $(srcdir)/mc-wrapper.csh.in > mc-wrapper.csh - -mc-wrapper.sh: $(top_builddir)/config.status $(srcdir)/mc-wrapper.sh.in - $(SED) "s%@""bindir@%$(bindir)%" $(srcdir)/mc-wrapper.sh.in > mc-wrapper.sh - diff --git a/recipes/wip/files/mc/source/contrib/Makefile.in b/recipes/wip/files/mc/source/contrib/Makefile.in deleted file mode 100644 index 62bcd73048..0000000000 --- a/recipes/wip/files/mc/source/contrib/Makefile.in +++ /dev/null @@ -1,704 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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@ -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 = contrib -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(pkglibexecdir)" "$(DESTDIR)$(cfgdir)" -SCRIPTS = $(pkglibexec_SCRIPTS) -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 = -am__can_run_installinfo = \ - case $$AM_UPDATE_INFO_DIR in \ - n|no|NO) false;; \ - *) (install-info --version) >/dev/null 2>&1;; \ - esac -DATA = $(cfg_DATA) $(noinst_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -pkglibexecdir = $(libexecdir)/@PACKAGE@ -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -noinst_DATA = README.xterm -SCRIPTS_IN = mc.csh.in mc.sh.in mc-wrapper.csh.in mc-wrapper.sh.in -SCRIPTS_OUT = mc.csh mc.sh mc-wrapper.csh mc-wrapper.sh -pkglibexec_SCRIPTS = $(SCRIPTS_OUT) -cfgdir = $(sysconfdir)/@PACKAGE@ -cfg_DATA = \ - $(LIBFILES_ADD) - -CLEANFILES = $(SCRIPTS_OUT) - -# Files processed by configure don't need to be here -EXTRA_DIST = \ - $(SCRIPTS_IN) \ - $(noinst_DATA) - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu contrib/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu contrib/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -install-pkglibexecSCRIPTS: $(pkglibexec_SCRIPTS) - @$(NORMAL_INSTALL) - @list='$(pkglibexec_SCRIPTS)'; test -n "$(pkglibexecdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(pkglibexecdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(pkglibexecdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n' \ - -e 'h;s|.*|.|' \ - -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) { files[d] = files[d] " " $$1; \ - if (++n[d] == $(am__install_max)) { \ - print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ - else { print "f", d "/" $$4, $$1 } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(pkglibexecdir)$$dir'"; \ - $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(pkglibexecdir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-pkglibexecSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(pkglibexec_SCRIPTS)'; test -n "$(pkglibexecdir)" || exit 0; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 's,.*/,,;$(transform)'`; \ - dir='$(DESTDIR)$(pkglibexecdir)'; $(am__uninstall_files_from_dir) - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-cfgDATA: $(cfg_DATA) - @$(NORMAL_INSTALL) - @list='$(cfg_DATA)'; test -n "$(cfgdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(cfgdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(cfgdir)" || 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)$(cfgdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(cfgdir)" || exit $$?; \ - done - -uninstall-cfgDATA: - @$(NORMAL_UNINSTALL) - @list='$(cfg_DATA)'; test -n "$(cfgdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(cfgdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(SCRIPTS) $(DATA) -installdirs: - for dir in "$(DESTDIR)$(pkglibexecdir)" "$(DESTDIR)$(cfgdir)"; 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: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-cfgDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: install-pkglibexecSCRIPTS - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-cfgDATA uninstall-pkglibexecSCRIPTS - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-cfgDATA 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-pkglibexecSCRIPTS install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - maintainer-clean maintainer-clean-generic mostlyclean \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags-am uninstall uninstall-am uninstall-cfgDATA \ - uninstall-pkglibexecSCRIPTS - -.PRECIOUS: Makefile - - -mc.csh: $(top_builddir)/config.status $(srcdir)/mc.csh.in - $(SED) "s%@""pkglibexecdir@%$(pkglibexecdir)%" $(srcdir)/mc.csh.in > mc.csh - -mc.sh: $(top_builddir)/config.status $(srcdir)/mc.sh.in - $(SED) "s%@""pkglibexecdir@%$(pkglibexecdir)%" $(srcdir)/mc.sh.in > mc.sh - -mc-wrapper.csh: $(top_builddir)/config.status $(srcdir)/mc-wrapper.csh.in - $(SED) "s%@""bindir@%$(bindir)%" $(srcdir)/mc-wrapper.csh.in > mc-wrapper.csh - -mc-wrapper.sh: $(top_builddir)/config.status $(srcdir)/mc-wrapper.sh.in - $(SED) "s%@""bindir@%$(bindir)%" $(srcdir)/mc-wrapper.sh.in > mc-wrapper.sh - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/contrib/README.xterm b/recipes/wip/files/mc/source/contrib/README.xterm deleted file mode 100644 index b37ebad8db..0000000000 --- a/recipes/wip/files/mc/source/contrib/README.xterm +++ /dev/null @@ -1,109 +0,0 @@ - Solving keyboard related problems - with XTERM - and GNU Midnight Commander - (and other programs as well). - -Xterm brings a handful of problems with input keys and their translations. -Some of these problems include xterm's failure to make a difference between -shifted and not shifted function keys (many keyboards do not have more than -10 or 12 function keys, so it is useful to generate higher function keys (11 -- 20) by pressing Shift and function key - 10 (e.g. Shift+F3 is F13). Xterm -also doesn't send Alt+character and Meta+character as something other than -plain character. Also, home key does not work on most systems. And keypad -operator characters (+, -, /, *) send different sequences than normal +, -, -/, * (or sometimes do not send anything). - -Please note that if you want to use the Alt key on an XTerm, you have to -make sure you use: - -XTerm*eightBitInput: false - -Otherwise, you will just get accented keys. - -Fortunately this can be solved, since xterm is written on top of the -X Toolkit Intrinsics, which has a built-in feature of event translation -tables that can be specified using X resources. This doesn't apply to rxvt, -where the only solution to this problem would be patching rxvt's sources and -recompiling. So from now on, we are speaking only about xterm (and its -modifications, like color_xterm and ansi_xterm). - -Xterm brings two new Xt widgets (if you don't know what they are it doesn't -matter), vt100 and tek4014 (these are used for the terminal display in vt100 -and tektronics mode). The translation table is specified in -*vt100.translations and *tek4014.translations resources. -You can see a sample in xterm.ad file in this directory. - -If you want to install these translations, bear in mind that you have to -keep your terminfo and termcap in sync with these. So if you install -xterm.ad, you have to install xterm.ti and xterm.tcap (or do necessary -changes yourself). - -xterm.ad has to be loaded into the Xrm (X resource manager), either by xterm -itself or by xrdb utility. There are many places you may want to install it -to; the decision is yours. Preferably it should go to your personal -$HOME/.Xdefaults file (if you have any). This file is automatically loaded -using xrdb whenever you start the X server (it is done by startx and openwin -scripts). Another possibility is to put this into -$X11ROOT/lib/X11/app-defaults/XTerm or wherever your app-defaults file of -xterm is and whatever is its name (sometimes it will have to be XTerm-ansi, -XTerm-color etc.) Or you can put this anywhere and call - xrdb xterm.ad -from any script you run on X11 startup. - -xterm.ti (terminfo database source) is installed by running `tic xterm.ti'. -tic will compile it and place it into your TERMINFO directory. - -xterm.tcap is the xterm (and xterm-color) termcap entry. It is based on the -newest termcap database from http://www.ccil.org/~esr/ncurses.html, but -contains a bunch of changes to make all the above mentioned keys work. Even -if mc is compiled so that it uses terminfo, you need to install the termcap -entry so that other programs which use termcap will behave correctly. You -have to edit your /etc/termcap and replace xterm and xterm-color entries -with those from xterm.tcap. - -The xterm.ad translation table contains many items (some of them may be -unnecessary) but are included only to make it work on all different xterms -(xterm terminfo and termcap databases have different sequences for the same -keys in every different database, so xterm.ad works as a standard to make -xterm.ti and termcap happy). If you find that xterm works well even if you -delete some lines from the translations, feel free to do it. - -By default, Alt+character keys received by mc are generated in xterm.ad by -Alt modifier plus the key. On some systems, you may want to change this to -the Meta modifier (e.g. if the Alt modifier is missing). You do it by -replacing a letter s at the beginning of table lines with letter m. - -And what you might want to know, if you are going to change anything, is: -Each line looks like - modifierskeyname: string("something") \n\ -where modifiers can be: -a for alt -m for meta -c for control -button1 (2, 3) for mouse buttons. - - The string is generated whenever the named key is pressed while the -modifiers are in a state matching the specification. Naming a modifier -specifies that the modifier must be pressed. A ~ in front of a modifier -name specifies that the modifier must NOT be pressed. If the set of -modifiers is preceded by !, unmentioned modifiers must not be -pressed; otherwise their state is ignored. - -After you specify a name of the key (if you don't know a canonical -name of any key, see $X11ROOT/include/X11/keysymdef.h (keynames are the -names there without leading XK_). Then there can be any sequence of string -statements which send the string to the tty line, as if the user typed that -sequence of characters. If it has the form string(0xXX), where X's are -hexadecimal digits, then the ascii character of that value is sent rather -than 0xXX. - -This is a subset of all the translation table features. If you want a -complete reference, see xterm(1) and X Toolkit Intrinsics manual Appendix B. - -Please, if you find any problems or errors in this stuff, let me know by -e-mail to -mc-devel@lists.midnight-commander.org. - - - - diff --git a/recipes/wip/files/mc/source/contrib/mc-wrapper.csh.in b/recipes/wip/files/mc/source/contrib/mc-wrapper.csh.in deleted file mode 100644 index 1b00491bc4..0000000000 --- a/recipes/wip/files/mc/source/contrib/mc-wrapper.csh.in +++ /dev/null @@ -1,20 +0,0 @@ -if ($?MC_TMPDIR) then - setenv MC_PWD_FILE "`mktemp '$MC_TMPDIR/mc.pwd.XXXXXX'`" -else if ($?TMPDIR) then - setenv MC_PWD_FILE "`mktemp '$TMPDIR/mc.pwd.XXXXXX'`" -else - setenv MC_PWD_FILE "`mktemp '/tmp/mc.pwd.XXXXXX'`" -endif - -@bindir@/mc -P "$MC_PWD_FILE" $* - -if (-r "$MC_PWD_FILE") then - setenv MC_PWD "`cat '$MC_PWD_FILE'`" - if ("$MC_PWD" != "$cwd" && -d "$MC_PWD") then - cd "$MC_PWD" || true - endif - unsetenv MC_PWD -endif - -rm -f "$MC_PWD_FILE" -unsetenv MC_PWD_FILE diff --git a/recipes/wip/files/mc/source/contrib/mc-wrapper.sh.in b/recipes/wip/files/mc/source/contrib/mc-wrapper.sh.in deleted file mode 100644 index 3d929b3485..0000000000 --- a/recipes/wip/files/mc/source/contrib/mc-wrapper.sh.in +++ /dev/null @@ -1,20 +0,0 @@ -if test -n "$MC_TMPDIR"; then - MC_PWD_FILE="`mktemp "${MC_TMPDIR}/mc.pwd.XXXXXX"`" -elif test -n "$TMPDIR"; then - MC_PWD_FILE="`mktemp "${TMPDIR}/mc.pwd.XXXXXX"`" -else - MC_PWD_FILE="`mktemp "/tmp/mc.pwd.XXXXXX"`" -fi - -@bindir@/mc -P "$MC_PWD_FILE" "$@" - -if test -r "$MC_PWD_FILE"; then - MC_PWD="`cat "$MC_PWD_FILE"`" - if test -n "$MC_PWD" && test "$MC_PWD" != "$PWD" && test -d "$MC_PWD"; then - cd "$MC_PWD" || true - fi - unset MC_PWD -fi - -rm -f "$MC_PWD_FILE" -unset MC_PWD_FILE diff --git a/recipes/wip/files/mc/source/contrib/mc.csh.in b/recipes/wip/files/mc/source/contrib/mc.csh.in deleted file mode 100644 index fc93501380..0000000000 --- a/recipes/wip/files/mc/source/contrib/mc.csh.in +++ /dev/null @@ -1 +0,0 @@ -alias mc 'source @pkglibexecdir@/mc-wrapper.csh' diff --git a/recipes/wip/files/mc/source/contrib/mc.sh.in b/recipes/wip/files/mc/source/contrib/mc.sh.in deleted file mode 100644 index 8b0ead8ed2..0000000000 --- a/recipes/wip/files/mc/source/contrib/mc.sh.in +++ /dev/null @@ -1,3 +0,0 @@ -# Don't define aliases in plain Bourne shell -[ -n "${BASH_VERSION}${KSH_VERSION}${ZSH_VERSION}" ] || return 0 -alias mc='. @pkglibexecdir@/mc-wrapper.sh' diff --git a/recipes/wip/files/mc/source/doc/COPYING b/recipes/wip/files/mc/source/doc/COPYING deleted file mode 100644 index 5056c63560..0000000000 --- a/recipes/wip/files/mc/source/doc/COPYING +++ /dev/null @@ -1,641 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - - Everyone is permitted to copy and distribute verbatim copies of this -license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for software and -other kinds of works. - - The licenses for most software and other practical works are designed to -take away your freedom to share and change the works. By contrast, the GNU -General Public License is intended to guarantee your freedom to share and change -all versions of a program--to make sure it remains free software for all its -users. We, the Free Software Foundation, use the GNU General Public License for -most of our software; it applies also to any other work released this way by its -authors. 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 them 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 prevent others from denying you these -rights or asking you to surrender the rights. Therefore, you have certain -responsibilities if you distribute copies of the software, or if you modify it: -responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether gratis or -for a fee, you must pass on to the recipients the same freedoms that you -received. 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. - - Developers that use the GNU GPL protect your rights with two steps: (1) -assert copyright on the software, and (2) offer you this License giving you -legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains that -there is no warranty for this free software. For both users' and authors' sake, -the GPL requires that modified versions be marked as changed, so that their -problems will not be attributed erroneously to authors of previous versions. - - Some devices are designed to deny users access to install or run modified -versions of the software inside them, although the manufacturer can do so. This -is fundamentally incompatible with the aim of protecting users' freedom to -change the software. The systematic pattern of such abuse occurs in the area of -products for individuals to use, which is precisely where it is most -unacceptable. Therefore, we have designed this version of the GPL to prohibit -the practice for those products. If such problems arise substantially in other -domains, we stand ready to extend this provision to those domains in future -versions of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. States -should not allow patents to restrict development and use of software on -general-purpose computers, but in those that do, we wish to avoid the special -danger that patents applied to a free program could make it effectively -proprietary. To prevent this, the GPL assures that patents cannot be used to -render the program non-free. - - The precise terms and conditions for copying, distribution and modification -follow. - - TERMS AND CONDITIONS - -0. Definitions. ---------------- - - “This License†refers to version 3 of the GNU General Public License. - - “Copyright†also means copyright-like laws that apply to other kinds of -works, such as semiconductor masks. - - “The Program†refers to any copyrightable work licensed under this License. -Each licensee is addressed as “youâ€. “Licensees†and “recipients†may be -individuals or organizations. - - To “modify†a work means to copy from or adapt all or part of the work in a -fashion requiring copyright permission, other than the making of an exact copy. -The resulting work is called a “modified version†of the earlier work or a work -“based on†the earlier work. - - A “covered work†means either the unmodified Program or a work based on the -Program. - - To “propagate†a work means to do anything with it that, without permission, -would make you directly or secondarily liable for infringement under applicable -copyright law, except executing it on a computer or modifying a private copy. -Propagation includes copying, distribution (with or without modification), -making available to the public, and in some countries other activities as well. - - To “convey†a work means any kind of propagation that enables other parties -to make or receive copies. Mere interaction with a user through a computer -network, with no transfer of a copy, is not conveying. - - An interactive user interface displays “Appropriate Legal Notices†to the -extent that it includes a convenient and prominently visible feature that (1) -displays an appropriate copyright notice, and (2) tells the user that there is -no warranty for the work (except to the extent that warranties are provided), -that licensees may convey the work under this License, and how to view a copy of -this License. If the interface presents a list of user commands or options, such -as a menu, a prominent item in the list meets this criterion. - - -1. Source Code. ---------------- - - The “source code†for a work means the preferred form of the work for making -modifications to it. “Object code†means any non-source form of a work. - - A “Standard Interface†means an interface that either is an official -standard defined by a recognized standards body, or, in the case of interfaces -specified for a particular programming language, one that is widely used among -developers working in that language. - - The “System Libraries†of an executable work include anything, other than -the work as a whole, that (a) is included in the normal form of packaging a -Major Component, but which is not part of that Major Component, and (b) serves -only to enable use of the work with that Major Component, or to implement a -Standard Interface for which an implementation is available to the public in -source code form. A “Major Componentâ€, in this context, means a major essential -component (kernel, window system, and so on) of the specific operating system -(if any) on which the executable work runs, or a compiler used to produce the -work, or an object code interpreter used to run it. - - The “Corresponding Source†for a work in object code form means all the -source code needed to generate, install, and (for an executable work) run the -object code and to modify the work, including scripts to control those -activities. However, it does not include the work's System Libraries, or -general-purpose tools or generally available free programs which are used -unmodified in performing those activities but which are not part of the work. -For example, Corresponding Source includes interface definition files associated -with source files for the work, and the source code for shared libraries and -dynamically linked subprograms that the work is specifically designed to -require, such as by intimate data communication or control flow between those -subprograms and other parts of the work. - - The Corresponding Source need not include anything that users can regenerate -automatically from other parts of the Corresponding Source. - - The Corresponding Source for a work in source code form is that same work. - -2. Basic Permissions. ---------------------- - - All rights granted under this License are granted for the term of copyright -on the Program, and are irrevocable provided the stated conditions are met. This -License explicitly affirms your unlimited permission to run the unmodified -Program. The output from running a covered work is covered by this License only -if the output, given its content, constitutes a covered work. This License -acknowledges your rights of fair use or other equivalent, as provided by -copyright law. - - You may make, run and propagate covered works that you do not convey, -without conditions so long as your license otherwise remains in force. You may -convey covered works to others for the sole purpose of having them make -modifications exclusively for you, or provide you with facilities for running -those works, provided that you comply with the terms of this License in -conveying all material for which you do not control copyright. Those thus making -or running the covered works for you must do so exclusively on your behalf, -under your direction and control, on terms that prohibit them from making any -copies of your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under the -conditions stated below. Sublicensing is not allowed; section 10 makes it -unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. --------------------------------------------------------------- - - No covered work shall be deemed part of an effective technological measure -under any applicable law fulfilling obligations under article 11 of the WIPO -copyright treaty adopted on 20 December 1996, or similar laws prohibiting or -restricting circumvention of such measures. - - When you convey a covered work, you waive any legal power to forbid -circumvention of technological measures to the extent such circumvention is -effected by exercising rights under this License with respect to the covered -work, and you disclaim any intention to limit operation or modification of the -work as a means of enforcing, against the work's users, your or third parties' -legal rights to forbid circumvention of technological measures. - - -4. Conveying Verbatim Copies. ------------------------------ - - You may convey 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; keep intact all notices stating that -this License and any non-permissive terms added in accord with section 7 apply -to the code; keep intact all notices of the absence of any warranty; and give -all recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey, and you -may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. --------------------------------------- - - You may convey a work based on the Program, or the modifications to produce -it from the Program, in the form of source code under the terms of section 4, -provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified it, and - giving a relevant date. - b) The work must carry prominent notices stating that it is released under - this License and any conditions added under section 7. This requirement - modifies the requirement in section 4 to “keep intact all noticesâ€. - c) You must license the entire work, as a whole, under this License to - anyone who comes into possession of a copy. This License will therefore - apply, along with any applicable section 7 additional terms, to the whole - of the work, and all its parts, regardless of how they are packaged. This - License gives no permission to license the work in any other way, but it - does not invalidate such permission if you have separately received it. - d) If the work has interactive user interfaces, each must display - Appropriate Legal Notices; however, if the Program has interactive - interfaces that do not display Appropriate Legal Notices, your work need - not make them do so. - - A compilation of a covered work with other separate and independent works, -which are not by their nature extensions of the covered work, and which are not -combined with it such as to form a larger program, in or on a volume of a -storage or distribution medium, is called an “aggregate†if the compilation and -its resulting copyright are not used to limit the access or legal rights of the -compilation's users beyond what the individual works permit. Inclusion of a -covered work in an aggregate does not cause this License to apply to the other -parts of the aggregate. - -6. Conveying Non-Source Forms. ------------------------------- - - You may convey a covered work in object code form under the terms of -sections 4 and 5, provided that you also convey the machine-readable -Corresponding Source under the terms of this License, in one of these ways: - - a) Convey the object code in, or embodied in, a physical product (including - a physical distribution medium), accompanied by the Corresponding Source - fixed on a durable physical medium customarily used for software - interchange. - b) Convey the object code in, or embodied in, a physical product (including - a physical distribution medium), accompanied by a written offer, valid - for at least three years and valid for as long as you offer spare parts - or customer support for that product model, to give anyone who possesses - the object code either (1) a copy of the Corresponding Source for all the - software in the product that is covered by this License, on a durable - physical medium customarily used for software interchange, for a price no - more than your reasonable cost of physically performing this conveying of - source, or (2) access to copy the Corresponding Source from a network - server at no charge. - c) Convey individual copies of the object code with a copy of the written - offer to provide the Corresponding Source. This alternative is allowed - only occasionally and noncommercially, and only if you received the - object code with such an offer, in accord with subsection 6b. - d) Convey the object code by offering access from a designated place (gratis - or for a charge), and offer equivalent access to the Corresponding Source - in the same way through the same place at no further charge. You need not - require recipients to copy the Corresponding Source along with the object - code. If the place to copy the object code is a network server, the - Corresponding Source may be on a different server (operated by you or a - third party) that supports equivalent copying facilities, provided you - maintain clear directions next to the object code saying where to find - the Corresponding Source. Regardless of what server hosts the - Corresponding Source, you remain obligated to ensure that it is available - for as long as needed to satisfy these requirements. - e) Convey the object code using peer-to-peer transmission, provided you - inform other peers where the object code and Corresponding Source of the - work are being offered to the general public at no charge under - subsection 6d. - - A separable portion of the object code, whose source code is excluded from -the Corresponding Source as a System Library, need not be included in conveying -the object code work. - - A “User Product†is either (1) a “consumer productâ€, which means any -tangible personal property which is normally used for personal, family, or -household purposes, or (2) anything designed or sold for incorporation into a -dwelling. In determining whether a product is a consumer product, doubtful cases -shall be resolved in favor of coverage. For a particular product received by a -particular user, “normally used†refers to a typical or common use of that class -of product, regardless of the status of the particular user or of the way in -which the particular user actually uses, or expects or is expected to use, the -product. A product is a consumer product regardless of whether the product has -substantial commercial, industrial or non-consumer uses, unless such uses -represent the only significant mode of use of the product. - - “Installation Information†for a User Product means any methods, procedures, -authorization keys, or other information required to install and execute -modified versions of a covered work in that User Product from a modified version -of its Corresponding Source. The information must suffice to ensure that the -continued functioning of the modified object code is in no case prevented or -interfered with solely because modification has been made. - - If you convey an object code work under this section in, or with, or -specifically for use in, a User Product, and the conveying occurs as part of a -transaction in which the right of possession and use of the User Product is -transferred to the recipient in perpetuity or for a fixed term (regardless of -how the transaction is characterized), the Corresponding Source conveyed under -this section must be accompanied by the Installation Information. But this -requirement does not apply if neither you nor any third party retains the -ability to install modified object code on the User Product (for example, the -work has been installed in ROM). - - The requirement to provide Installation Information does not include a -requirement to continue to provide support service, warranty, or updates for a -work that has been modified or installed by the recipient, or for the User -Product in which it has been modified or installed. Access to a network may be -denied when the modification itself materially and adversely affects the -operation of the network or violates the rules and protocols for communication -across the network. - - Corresponding Source conveyed, and Installation Information provided, in -accord with this section must be in a format that is publicly documented (and -with an implementation available to the public in source code form), and must -require no special password or key for unpacking, reading or copying. - -7. Additional Terms. --------------------- - - “Additional permissions†are terms that supplement the terms of this License -by making exceptions from one or more of its conditions. Additional permissions -that are applicable to the entire Program shall be treated as though they were -included in this License, to the extent that they are valid under applicable -law. If additional permissions apply only to part of the Program, that part may -be used separately under those permissions, but the entire Program remains -governed by this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option remove any -additional permissions from that copy, or from any part of it. (Additional -permissions may be written to require their own removal in certain cases when -you modify the work.) You may place additional permissions on material, added by -you to a covered work, for which you have or can give appropriate copyright -permission. - - Notwithstanding any other provision of this License, for material you add to -a covered work, you may (if authorized by the copyright holders of that -material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the terms of - sections 15 and 16 of this License; or - b) Requiring preservation of specified reasonable legal notices or author - attributions in that material or in the Appropriate Legal Notices - displayed by works containing it; or - c) Prohibiting misrepresentation of the origin of that material, or - requiring that modified versions of such material be marked in reasonable - ways as different from the original version; or - d) Limiting the use for publicity purposes of names of licensors or authors - of the material; or - e) Declining to grant rights under trademark law for use of some trade - names, trademarks, or service marks; or - f) Requiring indemnification of licensors and authors of that material by - anyone who conveys the material (or modified versions of it) with - contractual assumptions of liability to the recipient, for any liability - that these contractual assumptions directly impose on those licensors and - authors. - - All other non-permissive additional terms are considered “further -restrictions†within the meaning of section 10. If the Program as you received -it, or any part of it, contains a notice stating that it is governed by this -License along with a term that is a further restriction, you may remove that -term. If a license document contains a further restriction but permits -relicensing or conveying under this License, you may add to a covered work -material governed by the terms of that license document, provided that the -further restriction does not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you must -place, in the relevant source files, a statement of the additional terms that -apply to those files, or a notice indicating where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the form of -a separately written license, or stated as exceptions; the above requirements -apply either way. - -8. Termination. ---------------- - - You may not propagate or modify a covered work except as expressly provided -under this License. Any attempt otherwise to propagate or modify it is void, and -will automatically terminate your rights under this License (including any -patent licenses granted under the third paragraph of section 11). - - However, if you cease all violation of this License, then your license from -a particular copyright holder is reinstated (a) provisionally, unless and until -the copyright holder explicitly and finally terminates your license, and (b) -permanently, if the copyright holder fails to notify you of the violation by -some reasonable means prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is reinstated -permanently if the copyright holder notifies you of the violation by some -reasonable means, this is the first time you have received notice of violation -of this License (for any work) from that copyright holder, and you cure the -violation prior to 30 days after your receipt of the notice. - - Termination of your rights under this section does not terminate the -licenses of parties who have received copies or rights from you under this -License. If your rights have been terminated and not permanently reinstated, you -do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. ---------------------------------------------- - - You are not required to accept this License in order to receive or run a -copy of the Program. Ancillary propagation of a covered work occurring solely as -a consequence of using peer-to-peer transmission to receive a copy likewise does -not require acceptance. However, nothing other than this License grants you -permission to propagate or modify any covered work. These actions infringe -copyright if you do not accept this License. Therefore, by modifying or -propagating a covered work, you indicate your acceptance of this License to -do so. - -10. Automatic Licensing of Downstream Recipients. -------------------------------------------------- - - Each time you convey a covered work, the recipient automatically receives a -license from the original licensors, to run, modify and propagate that work, -subject to this License. You are not responsible for enforcing compliance by -third parties with this License. - - An “entity transaction†is a transaction transferring control of an -organization, or substantially all assets of one, or subdividing an -organization, or merging organizations. If propagation of a covered work results -from an entity transaction, each party to that transaction who receives a copy -of the work also receives whatever licenses to the work the party's predecessor -in interest had or could give under the previous paragraph, plus a right to -possession of the Corresponding Source of the work from the predecessor in -interest, if the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the rights -granted or affirmed under this License. For example, you may not impose a -license fee, royalty, or other charge for exercise of rights granted under this -License, and you may not initiate litigation (including a cross-claim or -counterclaim in a lawsuit) alleging that any patent claim is infringed by -making, using, selling, offering for sale, or importing the Program or any -portion of it. - -11. Patents. ------------- - - A “contributor†is a copyright holder who authorizes use under this License -of the Program or a work on which the Program is based. The work thus licensed -is called the contributor's “contributor versionâ€. - - A contributor's “essential patent claims†are all patent claims owned or -controlled by the contributor, whether already acquired or hereafter acquired, -that would be infringed by some manner, permitted by this License, of making, -using, or selling its contributor version, but do not include claims that would -be infringed only as a consequence of further modification of the contributor -version. For purposes of this definition, “control†includes the right to grant -patent sublicenses in a manner consistent with the requirements of this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free patent -license under the contributor's essential patent claims, to make, use, sell, -offer for sale, import and otherwise run, modify and propagate the contents of -its contributor version. - - In the following three paragraphs, a “patent license†is any express -agreement or commitment, however denominated, not to enforce a patent (such as -an express permission to practice a patent or covenant not to sue for patent -infringement). To “grant†such a patent license to a party means to make such an -agreement or commitment not to enforce a patent against the party. - - If you convey a covered work, knowingly relying on a patent license, and the -Corresponding Source of the work is not available for anyone to copy, free of -charge and under the terms of this License, through a publicly available network -server or other readily accessible means, then you must either (1) cause the -Corresponding Source to be so available, or (2) arrange to deprive yourself of -the benefit of the patent license for this particular work, or (3) arrange, in a -manner consistent with the requirements of this License, to extend the patent -license to downstream recipients. “Knowingly relying†means you have actual -knowledge that, but for the patent license, your conveying the covered work in a -country, or your recipient's use of the covered work in a country, would -infringe one or more identifiable patents in that country that you have reason -to believe are valid. - - If, pursuant to or in connection with a single transaction or arrangement, -you convey, or propagate by procuring conveyance of, a covered work, and grant a -patent license to some of the parties receiving the covered work authorizing -them to use, propagate, modify or convey a specific copy of the covered work, -then the patent license you grant is automatically extended to all recipients of -the covered work and works based on it. - - A patent license is “discriminatory†if it does not include within the scope -of its coverage, prohibits the exercise of, or is conditioned on the -non-exercise of one or more of the rights that are specifically granted under -this License. You may not convey a covered work if you are a party to an -arrangement with a third party that is in the business of distributing software, -under which you make payment to the third party based on the extent of your -activity of conveying the work, and under which the third party grants, to any -of the parties who would receive the covered work from you, a discriminatory -patent license (a) in connection with copies of the covered work conveyed by you -(or copies made from those copies), or (b) primarily for and in connection with -specific products or compilations that contain the covered work, unless you -entered into that arrangement, or that patent license was granted, prior to -28 March 2007. - - Nothing in this License shall be construed as excluding or limiting any -implied license or other defenses to infringement that may otherwise be -available to you under applicable patent law. - -12. No Surrender of Others' Freedom. ------------------------------------- - - If 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 convey a covered work so -as to satisfy simultaneously your obligations under this License and any other -pertinent obligations, then as a consequence you may not convey it at all. For -example, if you agree to terms that obligate you to collect a royalty for -further conveying from those to whom you convey the Program, the only way you -could satisfy both those terms and this License would be to refrain entirely -from conveying the Program. - -13. Use with the GNU Affero General Public License. ---------------------------------------------------- - - Notwithstanding any other provision of this License, you have permission to -link or combine any covered work with a work licensed under version 3 of the GNU -Affero General Public License into a single combined work, and to convey the -resulting work. The terms of this License will continue to apply to the part -which is the covered work, but the special requirements of the GNU Affero -General Public License, section 13, concerning interaction through a network -will apply to the combination as such. - -14. Revised Versions of this License. -------------------------------------- - - The Free Software Foundation may publish revised and/or new versions of the -GNU 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 that a certain numbered version of the GNU General Public License -“or any later version†applies to it, you have the option of following the terms -and conditions either of that numbered version or of any later version published -by the Free Software Foundation. If the Program does not specify a version -number of the GNU General Public License, you may choose any version ever -published by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future versions of -the GNU General Public License can be used, that proxy's public statement of -acceptance of a version permanently authorizes you to choose that version for -the Program. - - Later license versions may give you additional or different permissions. -However, no additional obligations are imposed on any author or copyright holder -as a result of your choosing to follow a later version. - -15. Disclaimer of Warranty. ---------------------------- - - 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. - -16. Limitation of Liability. ----------------------------- - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL -ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. - -17. Interpretation of Sections 15 and 16. ------------------------------------------ - - If the disclaimer of warranty and limitation of liability provided above -cannot be given local legal effect according to their terms, reviewing courts -shall apply local law that most closely approximates an absolute waiver of all -civil liability in connection with the Program, unless a warranty or assumption -of liability accompanies a copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest possible -use to the public, the best way to achieve this is to make it free software -which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest to -attach them to the start of each source file to most effectively state the -exclusion of warranty; and each file should have at least the “copyright†line -and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - - -Also add information on how to contact you by electronic and paper mail. - - - If the program does terminal interaction, make it output a short notice -like this when it starts in an interactive mode: - - Copyright (C) - This program 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, your program's commands might be -different; for a GUI interface, you would use an “about boxâ€. - - You should also get your employer (if you work as a programmer) or school, -if any, to sign a “copyright disclaimer†for the program, if necessary. For more -information on this, and how to apply and follow the GNU GPL, see -. - - The GNU 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 Lesser General Public -License instead of this License. But first, please read -. diff --git a/recipes/wip/files/mc/source/doc/FAQ b/recipes/wip/files/mc/source/doc/FAQ deleted file mode 100644 index 838f1f9665..0000000000 --- a/recipes/wip/files/mc/source/doc/FAQ +++ /dev/null @@ -1,925 +0,0 @@ -GNU Midnight Commander -Frequently Asked Questions - - The newest version of this document is available at - https://www.midnight-commander.org/browser/doc/FAQ - - * 1 Getting started - + 1.1 What is Midnight Commander? - + 1.2 Does it run on my machine? - + 1.3 Does it work with my terminal? - + 1.4 What else do I need to run MC? - + 1.5 Is GNU Midnight Commander Public Domain? Copyrighted? - + 1.6 Where can I get GNU Midnight Commander? - + 1.7 I cannot compile MC. What should I do? - - * 2 Keyboard - + 2.1 What does documentation mean with the C-?, M-? and F? - keys? - + 2.2 Why don't function keys (or some other key) work? - + 2.3 How do I use function keys F11 to F20? - + 2.4 Why does the ESC key behave funny? - + 2.5 How can I add the plus sign (+) on the command line? - + 2.6 C-o doesn't work! - + 2.7 What 'keys' are the "a1" and "c1" keys mentioned in the - manual? - + 2.8 How do I change the key bindings? - - * 3 Mouse - + 3.1 How do I enable mouse support? - + 3.2 How do I cut and paste text with mouse? - + 3.3 How do I get the extension dependent pop-up menu to - pop up? - - * 4 Display - + 4.1 Why do I keep getting "Terminal not powerful enough for - SLang" or "Terminal not powerful enough for SLsmg"? - + 4.2 Why don't line drawing characters work? - + 4.3 Can one use latin-1 characters without losing the lines? - + 4.4 I have problems with entering/viewing national - characters! - + 4.5 How can I get colors? - + 4.6 My color_xterm goes completely (or partially) black! - + 4.7 Where can I get xterm or rxvt? - + 4.8 I got colors working with MC but the other programs - don't work at all anymore! - + 4.9 Why are there both terminfo and termcap? Wouldn't one - database be enough? - - * 5 Graphical user interface - + 5.1 Xview, Tk and Gnome editions? - + 5.2 Why is MC linked with X libraries? - - * 6 Command line problems - + 6.1 How do I stay in the last directory when I exit Midnight - Commander? - + 6.2 How can I access command line history? - + 6.3 How can I complete commands, file names, variable names - and so on? - + 6.4 I am using ksh. Can I use functions defined in the - .kshrc within MC? - + 6.5 Is there any way to include additional options or hot - keys to MC? - + 6.6 When I use Ctrl-O I don't get a subshell. How do I fix - this? - + 6.7 Ctrl-O doesn't work at all. What happens? - - * 7 Virtual file systems - + 7.1 How can I see the contents of a tar archive? - + 7.2 How do I get out of a tar archive? - + 7.3 How do I do anonymous ftp with MC? - + 7.4 How do I do non-anonymous ftp with MC? - + 7.5 How do I close an ftp connection? - + 7.6 Why aren't the contents of ftp panel updated? - + 7.7 What kind of proxy server works with Midnight Commander? - - * 8 Internal editor - + 8.1 When I try pasting to the internal editor, it indents - the amount of indenting increases with each line! - + 8.2 Is it possible to use Colorer for syntax highlighting? - - * 9 Other common problems - + 9.1 Is there any way to 'bookmark' favorite ftp-fs links? - + 9.2 When I start Midnight Commander, nothing happens! - - * 10 Development - + 10.1 Who has written Midnight Commander? - + 10.2 Do I dare to use a development version? - + 10.3 How can I report a bug/request for a feature? - + 10.4 How can I join the development? - - * 11 More information - + 11.1 This document didn't answer my question. Where else - can I look for an answer? - + 11.2 What mailing lists are there for Midnight Commander? - + 11.3 Where should I look on the World Wide Web for MC stuff? - + 11.4 Are the mailing lists archived anywhere? - - * 12 Legal issues - + 12.1 Authorship - + 12.2 Feedback is invited - + 12.3 Disclaimer and copyright - - -1 Getting started - -1.1 What is Midnight Commander? - - GNU Midnight Commander is a user-friendly yet powerful file manager - and visual shell, useful to novice and guru alike. It provides a - clear, user-friendly, and somewhat protected interface to a Unix - system while making many frequent file operations more efficient and - preserving the full power of the command prompt. After some - practice, you will wonder how you could ever live without it. - -1.2 Does it run on my machine? - - GNU Midnight Commander runs on POSIX (Unix-like) operating systems, - such as GNU/Linux, FreeBSD, Mac OS X, Solaris, HP-UX and others. It - can also be compiled under Cygwin on Windows. - - GNU Midnight Commander uses GNU Autoconf which should automatically - configure it for every Unix clone. Following configurations have - been tested in the past (this list is very old): - - * i386-*-linux1.x, 2.x - * alpha-linux-linux2 - * sparc-linux-linux2.x - * sparc64-linux-linux2.1 - * mips-sgi-irix5.x, 6.x - * sparc-sun-sunos4.1 - * sparc-sun-solaris2.3, 2.4, 2.5 - * sparc-sun-netbsd1.0 - * hppa-hp-hpux9 - * hppa-hp-hpux7 - * m68k-apple-aux - * unixware - * mc88110-aviion-dgux5.4R2.01 - * i386-*-sco3.2v4.2 - * i386-*-sco3.2v5 - -1.3 Does it work with my terminal? - - Yes, it does. - - Because GNU Midnight Commander is a full screen program it doesn't - run on dummy terminals but anything more advanced will do (like - vt100). If your terminal works with vi, emacs, elm or pine it will - work with GNU Midnight Commander. - -1.4 What else do I need to run MC? - - You need a POSIX (Unix compatible) operating system. If you are - running Windows, use Cygwin. - - To compile any edition you need to have glib >= 2.32 installed. - It's available at https://download.gnome.org/sources/glib/. - - If you want to use mouse on the Linux console you need the gpm daemon - from https://www.nico.schottelius.org/software/gpm/. You need nothing - extra to use mouse on xterm. - - If you do not want to use the S-Lang library you could try using - ncurses version 4.1 and above. - -1.5 Is GNU Midnight Commander Public Domain? Copyrighted? - - Midnight Commander is under GNU Public License which basically means - that you may freely copy, change and distribute it, but that you may - not impose any restrictions on further distribution, and that you - must make the source code available. This is not the same as Public - Domain. For details, the GNU license is included in GNU Midnight - Commander source distribution (the COPYING file). - - Midnight Commander is now officially a part of the GNU project. - All the authors of GNU Midnight Commander have given all their rights - on the program to the Free Software Foundation. - -1.6 Where can I get GNU Midnight Commander? - - The main site is https://www.midnight-commander.org - -1.7 I cannot compile MC. What should I do? - - Make sure you have read the INSTALL file in the sources. Report the - error messages exactly as they appear, mention the versions of your - OS, your compiler and whatever else software you think is relevant. - If you have compile problems in the VFS code, try disabling it by - using "--disable-vfs" option. - -f2 Keyboard - -2.1 What does documentation mean with the C-?, M-? and F? keys? - - GNU Midnight Commander documentation uses emacs style names for - keyboard keys. - - C stands for the Ctrl key. For example, C-f means that you should - hold down the Ctrl key and press the f key. - - M stands for the Meta key. Your terminal might call it Alt or - Compose instead of Meta. For example, M-f means that you should hold - down the Meta/Alt/Compose key and press the f key. If your terminal - doesn't have Meta, Alt or Compose or they don't work you can use Esc. - For M-f press the Esc key and then press the f key. - - Sometimes Ctrl and Alt are used instead of C and M for simplicity. - Keep in mind that Alt can actually be Meta on some keyboards. - - F? stands for a function key. If your terminal doesn't have function - keys or they don't work you can use Esc. For example, for F3 press - the Esc key and then press the 3 key. - -2.2 Why don't function keys (or some other key) work? - - Your terminfo or termcap database has missing or incorrect - definitions for function keys. Type "mc -V" to see what terminal - database is being used. If the result is "using the S-Lang library - with terminfo database" and you are using a very old terminfo - database, consider installing one of the enhanced terminfo files - included in GNU Midnight Commander source distribution. For example, - if you are using xterm type "tic xterm.ti". - - If the result is "using the S-Lang library with termcap database" you - should fix your /etc/termcap database. - - Up-to-date termcap and terminfo databases are available here: - - http://www.catb.org/~esr/terminfo/ - ftp://ftp.gnu.org/pub/gnu/ncurses/ - - If you don't have permissions to edit terminal databases you can use - Learn keys feature of Midnight Commander instead. Press Esc 9 o k - and follow instructions. - - If all else fails you can emulate function keys by first pressing the - ESC key and then one of the number keys. For example, if you want to - produce F9, press ESC, then 9. If you don't have a ESC key on your - keyboard you can try alt-9 or meta-9. - -2.3 How do I use function keys F11 to F20? - - These are normally mapped to function keys F1 to F10 with Shift held, - e.g. function key F13 can be activated by pressing Shift-F3. You can - define the keys this way in the Options->Learn Keys dialog. The - convention for PC keyboards is that F11-20 always means Shift with - F1-10. - - You may find that on the Linux console with some keyboard layouts - Shift-Fn is interpreted as F(n+12), not as F(n+10). This is a result - of non-uniformity of keyboard layouts. This is not an intended - behavior and it may be fixed some day. In the meantime, use "Learn - Keys" to remedy this inconvenience. - -2.4 Why does the ESC key behave funny? - - Midnight Commander uses the ESC key as a prefix for simulating the - Meta and Alt keys (for terminals which don't have Meta or Alt, see - the three previous questions). For example, pressing ESC-a is the - same as pressing Meta-a. In addition most terminals use ESC for - internal representation of arrow keys, function keys and other - enhanced keys. If you want to use ESC to cancel things you have to - press it twice i.e. ESC-ESC. If you find this cumbersome you can - generally use F10 to cancel. Alternatively turn on the old_esc_mode - setting in the ~/.config/mc/ini file. The - old_esc_mode setting makes ESC work as a prefix only if another key - is pressed within 0.5 seconds. After 0.5 seconds the ESC key cancels. - There is no way to make ESC cancel immediately (if we want to be able - to use arrows keys and function keys). - -2.5 How can I add the plus sign (+) on the command line? - - Press C-q first, then press the + sign. - - The plus key is the hotkey for the select files command. If you want - to add a literal plus on to the command line you must quote it by - pressing C-q first. - - Another common key which needs the C-q prefix is backslash "\". - -2.6 C-o doesn't work! - - Maybe C-o is a stty control character on your terminal. See man stty - for details on how to list and change stty control characters. - -2.7 What 'keys' are the "a1" and "c1" keys mentioned in the manual? - - A1 is the "Home" key on the keypad (numpad 7 with Num Lock turned - off), which is decoded as a different key from the regular "Home". - Likewise C1 is keypad "End", A3 is keypad "Page Up", C3 is keypad - "Page Down", and B2 is documented to "center of keypad", i.e. the 5 - key, though I don't know whether any keyboards actually use that. - They are documented for the curses library (search for "keypad"): - - https://pubs.opengroup.org/onlinepubs/007908799/xcurses/curses.h.html - -2.8 How do I change the key bindings? - - Key binding con be reconfigure via keymap files: /etc/mc/mc.keymap - and ~/.config/mc/mc.keymap. - - You can use the "Learn Keys" dialog to assign keys to some actions - listed in that dialog. - - -3 Mouse - -3.1 How do I enable mouse support? - - Invoke mc like this (without quotes): "mc -x". If this doesn't work - upgrade to a terminal which compatible with the Xterm mouse - sequences. - - Alternatively, on Linux console you can use gpm. - -3.2 How do I cut and paste text with mouse? - - Hold down shift key while using mouse to cut and paste. - - -4 Display - -4.1 Why do I keep getting "Terminal not powerful enough for SLang" or - "Terminal not powerful enough for SLsmg"? - - This means that your terminfo databases do not contain the correct - definitions for your terminal. - - You could try using a different terminal setting. If you use csh or - tcsh: - - setenv TERM vt100 - - or if you use sh, bash, ksh or zsh: - - export TERM=vt100 - -4.2 Why don't line drawing characters work? - - Since version 4.0.13 there's the command line option -a to force use - of charaters +, |, - for line drawing. Use the -a option if any - of the suggestions below doesn't help. - - In general, there are three cases: - * Lines are shown as ASCII characters like this - - +---------+ - | | - +---------+ - - This also happens when you use the -a option. Other than that - possible reason is 1 or 2 (see below). - - * Lines are shown as lower case characters like this - - lqqqqqqqqqk - x x - mqqqqqqqqqj - - Possible reason is 1 or 2 (see below). - - * Lines are shown as blanks or missing characters. Possible reason - is 2 or 3 (see below). - - The reason for the problem is one of following: - - 1. Your terminal might not support line drawing characters. VT100 - compatible terminals, rxvt and xterm and color_xterm do support - them. - 2. Your terminfo or termcap database might have missing or incorrect - definitions for line drawing characters. Set the acsc variable - in the terminfo database like this: - acsc=a\376k\277l\332m\300j\331n\305w\302v\301u\264t\303q\304x - \263h\2600\333 - Don't forget issue 'tic' command. This supposes you are using PC - character set. The octal values might be different for other - character sets. If you are using termcap instead of terminfo, - you should modify above solution appropriately. - 3. Your terminal font might not support line drawing characters. - Try changing the font. - - Here is Miguel's answer to Torben on this subject. - - Torben: - - When I load consolefonts/iso01.f16, I get perfectly right national - characters, but the line drawing characters in mc get wrong. Is it - a mc problem, or is it a problem with the font? (I guess it is). - - Is there a trick? - - Miguel: - - First of all, we should determine whether the font has line drawing - characters or not. - - If it has line drawing characters, then a new terminfo entry should - be written for this specific case. Let's call this linux-iso01. - The acsc variable should be modified to reflect which characters - are used to do the line drawing. - - If it does not have line drawing characters, then we should get rid - of the switch to acsc sequences and make the acsc sequence be just - a mapping to the ugly +, -, |, - characters. - - You can get your terminfo definition by running the infocmp - program, making the proper changes and running the tic program to - compile your new terminfo database. - -4.3 Can one use latin-1 characters without losing the lines? - - Yes, you need a correct font and a correct termcap/terminfo database. - - For font, if you use xterm try "xterm -fn fixed". - - For termcap/terminfo database, change the acsc capability in the - database. - -4.4 I have problems with entering/viewing national characters! - - From the Options - Display Bits dialog select Full 8 bits or ISO - 8859-1. In addition, select 8 bit input from the same dialog. - -4.5 How can I get colors? - - Invoke mc like this (without quotes): "mc -c". - - If you get colors, be happy. - - If your terminal stays black and white, your terminal doesn't support - color. You might want to upgrade to a terminal which compatible with - the ANSI color sequences. - - If your terminal goes completely black, see the next question. - - More detailed answer: - - Check that your terminal supports color. color_xterm, rxvt and Linux - console do support, most other terminals don't. You can test color - support with following simple C program: - - #include - - int main (void){ - printf ("\033[32m Hello world! \033[m\n"); - return 0; - } - - Compile and run it. If you see "Hello world!" text in green your - terminal supports color, otherwise not (however, for color_xterm see - also the next question). - - Check whether you are using Ncurses or the S-Lang library (type - "mc -V" to find out). - - With S-Lang library you can force color support by setting the - environment variable COLORTERM to any value. - - If you use ncurses library, check that your terminfo database - supports color. If not, you should install one of the enhanced - terminfo databases included in GNU Midnight Commander source - distribution. - - You might want to set the TERM environment variable so that you are - using the correct terminfo database or termcap entry. - - If you use color_xterm (or rxvt) the correct value might be - xterm-color, xtermc or simply xterm. - - If you use Linux console the correct value for TERM is linux or - console. - -4.6 My color_xterm goes completely (or partially) black! - - Some color_xterm terminals define all colors as black instead of the - standard ANSI colors. This makes them go completely black when you - try to use Midnight Commander with colors. - - You will have to override the defaults. Create a file - "color.defaults" which has the following contents: - - color_xterm*color0: Black - color_xterm*color1: Red - color_xterm*color2: Green - color_xterm*color3: Yellow - color_xterm*color4: Blue - color_xterm*color5: Magenta - color_xterm*color6: Cyan - color_xterm*color7: White - color_xterm*background: White - color_xterm*foreground: Black - - (replace color_xterm with the name of your color_xterm, color_xterm - mentions its name in its title bar) - - Now type: - - xrdb -merge color.defaults - - Alternatively you can add the suggested contents of the - color.defaults file to your .Xdefaults or .Xresources file (or what - ever the name of your X configuration file is). Or you can replace - your non-ANSI color_xterm with an ANSI color_xterm. - -4.7 Where can I get xterm or rxvt? - - xterm is included with the X Window System, so you probably already - have it if you have X. This version is not actively maintained, but - Thomas Dickey maintains his more advanced version of xterm at - ftp://dickey.his.com/xterm/ - - rxvt has its own site http://www.rxvt.net/ - get the latest version - there. - -4.8 I got colors working with MC but the other programs don't work at -all anymore! - - Midnight Commander uses terminfo database (if available) but many - other programs use termcap database. If you set the TERM environment - variable to a value which has no corresponding entry in termcap - database those programs stop working. You should add the new value - of TERM to the termcap database. - - Example: If you have set TERM to xterm-color locate from /etc/termcap - the line which starts: - - xterm|vs100|xterm terminal emulator - - Change it to start: - - xterm|xterm-color|vs100|xterm terminal emulator - -5 Graphical user interface - -5.1 Xview, Tk and Gnome editions? - - Xview and Tk and GNOME editions have been removed from the sources. - -5.2 Why is MC linked with X libraries? - - GNU Midnight Commander is linked with X libraries to read key - modifiers from the X Server. It may be helpful to distinguish - between keys that the terminal emulator reports in the same way, e.g. - PgUp and Ctrl-PgUp. Versions of GNU Midnight Commander after 4.6.0 - will load X libraries dynamically on the systems that support it. - - -6 Command line problems - -6.1 How do I stay in the last directory when I exit Midnight Commander? - - See the description of the -P option in the Options section of the - manual. - -6.2 How can I access command line history? - - Meta-h shows the last commands you executed from the command line. - Duplicates are suppressed from the history. Commands executed from - the subshell prompt are not shown. - - You can put previous commands to the command line with Meta-p. Meta-n - moves you forward in history. - - Since version 4.1.15 all the input widgets have permanent history. - You can summon the history listbox by pressing M-h. - -6.3 How can I complete commands, file names, variable names and so on? - - Just press M-Tab. Press M-Tab again to get a listbox if there are - multiple possible completions. - -6.4 I am using ksh. Can I use functions defined in the .kshrc within -MC? - - Sorry, MC only supports bash, tcsh and zsh functions. Ksh functions - are not supported because ksh lacks the necessary hooks needed for - subshell integration. - - Switch to bash or zsh. They are both quite compatible with ksh. - Your ksh functions should work as such or after minimal changes. - -6.5 Is there any way to include additional options or hot keys to MC? - - Yes, F2 invokes an user menu, which is fully configurable. You can - add any shell commands to the user menu. See the mc(1) man page for - more info. - - Another way to add functionality is the external panelize feature. - See the mc(1) man page for more info. - - And finally, you can code any feature you want yourself. MC source - code is free which means you can change it anyway you want. There - are some limitations to make sure MC stays free. See GNU General - Public License for details. - -6.6 When I use Ctrl-O I don't get a subshell. How do I fix this? - - Only bash, tcsh and zsh can be used as subshell. Use one of those - shells as your default shell, and it will be used as subshell in GNU - Midnight Commander. - -6.7 Ctrl-O doesn't work at all. What happens? - - Ctrl-O works if either the subshell is used or the terminal can save - the output of the commands so it can be restored. If neither is - true, there is absolutely nothing interesting behind the panels! - - Only few terminals support screen saving. It's xterm, rxvt and other - xterm-like terminals and virtual terminals on Linux and FreeBSD. - -6.8 Why I see lot of strange 'cd "printf ' lines into my .history file? - - Add - - export HISTCONTROL="ignoreboth" - - into your ~/.profile file (.bash_profile) for avoid this. - -6.9 I have a problem with Screen which makes using Midnight Commander -problematic. I use Ctrl-O to disable panels. Output of previous commands, -just a clear, screen is blanked. - - Update GNU Screen to the last version. This bug was fixed in - - commit ad56f746c6243d45124485d198d577bdbb78071c - Author: Sadrul Habib Chowdhury - Date: Sun Nov 29 23:34:25 2009 -0500 - - Fix using alternate screen buffers in some cases. - - Screen would reset the 'main' screen buffer if an app tries to - switch to an alternate buffer while it is already using one (in - other words, sends multiple 'smcup' without an 'rmcup'). This should - fix debian #558724 - - (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=558724) - - or do not rewrite TERM (mustbe TERM=screen) andrun mc as follow: - - echo -e '\e[?1000h' && mc -x - -7 Virtual file systems - -7.1 How can I see the contents of a tar archive? - - If you use keyboard just move the selection bar on the tar file and - press enter. If you use mouse just double-click on the tar file. - - The recognized suffixes for tar archives are .tar, .tar.gz and .tgz. - You can also enter a tar archive by typing "cd filename/utar://" where - filename is the name of the archive. In this case, the suffix is not - important. - -7.2 How do I get out of a tar archive? - - Just press enter on the toplevel ".." file or change to a non-tar - directory. Just typing "cd" with no parameters is enough (it will - take you to your home directory). - -7.3 How do I do anonymous ftp with MC? - - Just type "cd ftp://hostname" where hostname is the name of the host - you want to connect. Alternatively, select FTP link from the Left or - Right menu and type the name of the host you want to connect. - -7.4 How do I do non-anonymous ftp with MC? - - Non-anonymous ftp works just like the anonymous ftp but you give the - login name with the host name. For example, type "cd - ftp://username@hostname". - -7.5 How do I close an ftp connection? - - Just change to a non-ftp directory. Simply typing "cd" with no - parameters is enough (it will take you to your home directory). - - GNU Midnight Commander closes ftp connection automatically after a - timeout or on exit. It's possible to force disconnect by selecting - "Command" -> "Active VFS List" in the menu and using the "Free VFSs - Now" button. - -7.6 Why aren't the contents of ftp panel updated? - - Update is skipped because there would be a serious performance - penalty. Constantly updating directory panels through a ftp - connection would take too much time. - - You can use C-r to force an update. - -7.7 What kind of proxy server works with Midnight Commander? - - There are two kinds of ftp proxies: proxies for ftp clients and - proxies for web browsers. - - Midnight Commander only supports ftp proxies which are meant for ftp - clients. Common WWW proxies (like Squid) are not supported. A rule - of thumb is that if a ftp proxy requires a web browser, it won't work - with Midnight Commander. - - -8 Other common problems - -8.1 When I try pasting to the internal editor, it indents the amount of -indenting increases with each line! - - Either turn off 'Return does autoindent' in the editor options or - update GNU Midnight Commander to version 4.6.0 or above - it doesn't - autoindent when you are holding Shift. - -8.2 Is it possible to use Colorer for syntax highlighting? - - Yes if you submit the patch. There are no legal problems with it - because it's licensed under GPL now. The homepage of Colorer is - http://colorer.sourceforge.net/ - - -9 Other common problems - -9.1 Is there any way to 'bookmark' favorite ftp-fs links? - - Use the directory hotlist. Just press control-backslash. If your - national keyboard layout doesn't have backslash key, just press the - control key with the key which is the backslash key in the English - keyboard layout. - -9.2 When I start Midnight Commander, nothing happens! - - First, invoke MC without subshell support: "mc -u". If this helps - check the shell you are using. Subshell support works best with - bash, although tcsh and zsh are also supported. You might want to - upgrade your shell to a newer version. If you use something else - than bash, tcsh or zsh, subshell support is disabled automatically. - - Another reason is problems with gpm. Try using "--nomouse" option to - see if it makes any difference. Restarting gpm can help. Sometimes - it's enough to move the mouse. - - Also, if you have the DISPLAY environment variable set, but the X - server is unreachable (e.g. it's firewalled), this can also cause a - delay at startup. Unset DISPLAY to see if that's the case. - - -10 Development - -10.1 Who has written Midnight Commander? - - Midnight Commander was started by Miguel de Icaza and he is the - maintainer of the package. Other authors have joined the project - later: - * Mauricio Plaza (early releases) - * Janne Kukonlehto (joined Sep 27 1994) - * Radek Doulik (joined Oct 30 1994) - * Fred Leeflang (joined Nov 2 1994) - * Dugan Porter (joined Dec 1 1994) - * Jakub Jelinek (joined Feb 8 1995) - * Ching Hui (joined Jun 27 1995) - * Andrej Borsenkow (joined Jul 1996) - * Paul Sheer (joined Nov 1 1996) - * Norbert Warmuth - * Alex I. Tkachenko - - - Alessandro Rubini has been specially helpful with debugging and - enhancing of the mouse support. John E. Davis has made his S-Lang - library available to us and answered many questions about it. - - Many people have contributed bug reports, feature suggestions and - small code bits (alphabetical order): - * Thomasz Cholewo - * Juan Jose Ciarlante - * Alexander Dong (OS/2 port, NT port updates) - * Erwin van Eijk - * Torben Fjerdingstad - * Massimo Fontanelli - * Juan Grigera (NT port) - * Gerd Knorr - * Sergey Ya. Korshunoff - * Jean-Daniel Luiset - * Wim Osterholt - * Antonio Palama (old DOS port) - * Thomas Pundt - * Marcelo Roccasalva - * Ilya Rybkin - * Vadim Sinolits - * Jon Stevens - * Adam Tla/lka - - Current list of active developers can be found here: - https://www.midnight-commander.org/wiki/McDevelopers - - This page lists everbody who has provided a patch or - has written code for the Midnight Commander in the past: - https://www.midnight-commander.org/wiki/McContributors - -10.2 Do I dare to use a development version? - - Yes, of course. Feel free to test: - https://www.midnight-commander.org/wiki#Download - As we do our development in git, please do a git checkout - of the master branch and build it - - But always remember: development versions may have nasty bugs - at some points of time. It's up to you to judge whether the new - features and fixes for the bugs you know outweigh the risk of unknown - bugs. - -10.3 How can I report a bug/request for a feature? - - You might first want to get the newest development version to see if - the bug is fixed or the feature is added already. - - If this is not the case, feel free to add a ticket in our ticket system, - which is located here: https://www.midnight-commander.org/newticket - - If you want to send an email instead write your report to - mc-devel@lists.midnight-commander.org or mc@lists.midnight-commander.org. - - These mailing lists are the most certain way to contact the - developers. Remember to mention if you are not on the mailing list - to make sure that you will receive a copy of replies. - - Give as much details as possible. A too long message is a lot better - than a too short message. - - For segmentation faults a stack backtrace is appreciated. You can - produce stack backtrace as follows: - * If segmentation fault produced a core file: - 1. Load the core file by typing "gdb mc core" or "dbx mc core". - 2. Type "where". - 3. Cut and paste the results to your message. - * If segmentation fault didn't produce a core file: - 1. Load mc by typing "gdb mc" or "dbx mc". - 2. Start mc by typing "run". - 3. Try to reproduce the segmentation fault by doing whatever - you did last time when the segmentation fault occurred. - 4. Type "where". - 5. Cut and paste the results to your message. - 6. For the future you might want to check out what is the - command in your shell to allow producing of the core files. - Usually it is "limit coredumpsize unlimited" or "ulimit - coredumpsize" or "ulimit -c unlimited". - -10.4 How can I join the development? - - To join the development just code the feature you want to add and - send your patch for inclusion. Email address is mc-devel@lists.midnight-commander.org. - Before you start coding check the latest development version. It - might be that your feature has already been implemented. - - Note that the authors of GNU Midnight Commander have given all their - rights on the program to the Free Software Foundation. You will have - to do the same if you contribute non-trivial patches. Otherwise we - have to reject your patches in order to avoid copyright problems. - - -11 More information - -11.1 This document didn't answer my question. Where else can I look for -an answer? - - Read messages from the Discussion (mailing list archive) or read the - Manual. - - Upgrade to a newer version of Midnight Commander. Many problems are - fixed in the new versions. - - If you still can't find an answer, post your question to the Midnight - Commander mailing list. Its address is mc@lists.midnight-commander.org. - -11.2 What mailing lists are there for Midnight Commander? - - Following mailing lists discuss about Midnight Commander: - - mc@lists.midnight-commander.org - General discussion of GNU Midnight Commander - To subscribe visit - https://lists.midnight-commander.org/mailman/listinfo/mc/ - - mc-devel@lists.midnight-commander.org - Technical development discussion - To subscribe visit - https://lists.midnight-commander.org/mailman/listinfo/mc-devel/ - - mc-commits@googlegroups.com - mailing list only for applyed commits into master/stable branches - To subscribe visit - http://groups.google.com/group/mc-commits/subscribe - - mc-bugs@googlegroups.com - Mailing list only for tickets and comments (use it as RSS :) ) - To subscribe visit - http://groups.google.com/group/mc-bugs/subscribe - -11.3 Where should I look on the World Wide Web for MC stuff? - - There is a WWW page for Midnight Commander. The URL is: - - https://www.midnight-commander.org/ - -11.4 Are the mailing lists archived anywhere? - - The mc and mc-devel lists are archived on the World Wide Web. There - are links to the archives on the mailing list pages (see 10.2). - - -12 Legal issues - -12.1 Authorship - - Questions and Answers was written by Janne Kukonlehto. Parts of it - originate from Ian Jackson, Miguel de Icaza, Dugan Porter, Norbert - Warmuth and Paul Sheer. - -12.2 Feedback is invited - - Send your comments about this document and GNU Midnight Commander to - mc@lists.midnight-commander.org - -12.3 Disclaimer and copyright - - Note that this document is provided as is. The information in it is - not warranted to be correct; you use it at your own risk. - - You can use Questions and Answers according to GNU General Public - License (see the COPYING file in GNU Midnight Commander source - distribution). Questions and Answers is not public domain. diff --git a/recipes/wip/files/mc/source/doc/HACKING b/recipes/wip/files/mc/source/doc/HACKING deleted file mode 100644 index c9efa4050d..0000000000 --- a/recipes/wip/files/mc/source/doc/HACKING +++ /dev/null @@ -1,379 +0,0 @@ -This document -============= - -This document is a guide how to develop GNU Midnight Commander. It's -quite incomplete, but may be worth reading anyway. - -The document was written by Miguel de Icaza and reworked by Pavel -Roskin and later from Patrick Winnertz. - Some parts were taken from the messages posted in the mailing -lists. - - -Compiling from GIT -================== - -The full list of requirements is listed in the INSTALL file. - -It is recommended that all those tools are installed with the same -prefix. Make sure that the tools with the right version are first in -PATH. - -Once you have the right tools, run `autogen.sh' - it will generate -everything necessary for the build `configure'. Then run 'configure' -and `make' as usually. - -The distribution tarball is created by the command `make distcheck'. -This command can take a while. - -Currently snapshots are made on Debian unstable and use the versions of -the tools from the unstable repository. Yes, the rpm packages are made -on Debian too. - -Note that the version of gettext doesn't affect the snapshot because the -distributed files are installed by gettext from archives for the version -used in the AM_GNU_GETTEXT_VERSION macro, which is 0.18.2. - - - -Working with GNU Midnight Commander -=================================== - -Please use the GIT version. It may be quite different from the released -versions. A lot of cleanup is going on. The GIT version may be easier -to understand, in addition to the obvious fact that the merging is -easier with the GIT version. - -In order to compile GNU Midnight Commander from a clean GIT checkout you -should use 'autogen.sh && ./configure' instead of 'configure'. - -GNU Midnight Commander uses Autoconf and Automake, with make it fairly -portable. However, GNU Make is strongly recommended for development -because other versions of make may not track dependencies properly. -This is very important for correct compilation, especially if you change -any header files. - -If you add or remove any files, please change Makefile.am in the same -directory accordingly. When doing significant changes in the tree -structure, "make distcheck" is strongly recommended. - -GNU Autoconf allows you to test several different configurations are -once. To do so, use the so called out-of-tree (or VPATH) compilation. -Create separate empty directories and run configure with full path from -those directories, like this: - -cd /usr/local/src -mkdir mc-slang -mkdir mc-ncurses -cd mc-slang -/usr/local/src/mc/configure && make all -cd ../mc-ncurses -/usr/local/src/mc/configure --with-screen=ncurses && make all - -Please use the same indentation as other developers. To indent a block, -select in the internal editor and use Shift-F9 to call the external -indent. For historic reasons, GNU Midnight Commander used formatting -that is not default for GNU Indent. Please put following text to your -~/.indent.pro file to make GNU Indent follow the style used in GNU -Midnight Commander: - ---gnu-style ---format-first-column-comments ---indent-level4 ---brace-indent0 ---line-length100 ---no-tabs ---blank-lines-after-procedures - -or in short notation: - -indent -gnu -fc1 -i4 -bli0 -nut -bap -l100 - -It's OK to indent the whole function if you edit it. However, please -refrain from it if you are posting your patch for review. In this case -you would save time of other developers if you only include significant -changes. The developer applying your patch can format the code for you. - -Please keep in mind that the VFS subsystem is licensed under LGPL, while -the rest of the code uses GPL. - - -Code structure - outline -======================== - -The code is located in following directories. - -vfs - Virtual File System. - -This library provides filesystem-like access to various data, such are -archives and remote filesystems. To use VFS, you should use wrappers -around POSIX calls. The wrappers have names composed from "mc_" and the -standard name of the function. For example, to open a file on VFS, use -mc_open() instead. - -edit - the internal editor. - -This code has been contributed by Paul Sheer, the author of Cooledit. -The internal editor shares some code with Cooledit, but now it's -developed as part of GNU Midnight Commander. - -src - the main part of the code. - -This code includes the dialog manager written by Radek Doulik and source -code of the main application. - -Code structure - details -======================== - -GNU Midnight Commander uses extensively the dialog manager written by -Radek Doulik. To understand how the dialog manager works, please read -the dialog.c. You will find the basic widgets in the files widget.c. -Some more high-level functions, e.g. to display a message box, are -located in wtools.c. This file also contains the Quick Dialog code, -which makes it easier to create complex dialogs. - -The files util.c and utilunix.c have a lot of utility functions. Get -familiar with them, they are very simple. - -glib is used for memory allocation and for some utility functions, such -as manipulation with lists and trees. gmodule (part of the glib -distribution) is used to load some libraries dynamically at the run -time. - -Thanks to glib, the code has almost no hardcoded limits, since there are -many ways to avoid them. For example, when you want to concatenate -strings, use the g_strconcat() function: - - new_text = g_strconcat (username, " ", password, (char *)0); - -This allocates new memory for the string, so you should use g_free() on -the result. - -The parent of all dialogs is called midnight_dlg. Both panels are -widgets in that dialog. Other widgets include the menu, the command -line and the button bar. - - -Input handling -============== - -The routines for input handling on the Midnight Commander are: -getch, get_key_code, mi_getch and get_event. - -getch is an interface to the low level system input mechanism. It -does not deal with the mouse. - - In the case of ncurses, this is a function implemented in the - ncurses library that translates key sequences to key codes (\E[A to - something like KEY_UP and so on). - - In the case of S-Lang there is no such conversion, that's why we - load a set of extra definitions. - -The get_key_code routine converts the data from getch to the -constants the Midnight Commander uses. - - In the case of S-Lang, it will actually do all the jobs that getch - does for curses. In the case of curses it patches a couple of - sequences that are not available on some terminal databases. This - routine is the one you want to use if you want a character without - the mouse support. - -get_event is the routine you want to use if you want to handle mouse -events, it will return 0 on a mouse event, -1 if no input is available -or a key code if there is some input available. This routine in turn -uses get_key_code to decode the input stream and convert it to useful -constants. - -mi_getch is just a wrapper around get_event that ignores all the mouse -events. It's used only in a couple of places, this routine may return --1 if no input is available (if you have set the nodelay option of -ncurses or S-Lang with nodelay) or a character code if no such option is -available. - - -Mouse support -============= - -The mouse support in the Midnight Commander is based on the get_event -routine. The core of the mouse event dispatching is in the -dlg.c:run_dlg routine. - - -ncurses -======= - -Although S-Lang is now used by default, we still support ncurses. We -basically are using a small subset of ncurses because we want to be -compatible with Slang. - - -The Dialog manager and the Widgets -================================== - -The Dialog manager and the Widget structure are implemented in -src/dialog.c. Everything shown on screen is a dialog. Dialogs contain -widgets, but not everything on screen is a widget. Dialogs can draw -themselves. - -Dialogs are connected into a singly linked list using "parent" field. -Currently active dialog is saved in current_dlg variable. The toplevel -dialog has parent NULL. Usually it's midnight_dlg. - - parent parent -current_dlg ------->another dialog-- ... -->midnight_dlg - -When the screen needs to be refreshed, every dialog asks its parent to -refresh first, and then refreshes itself. - -A dialog is created by create_dlg(). Then it's populated by widgets -using add_widget(). Then the dialog is run by calling run_dlg(), which -returns the id of the button selected by the user. Finally, the dialog -is destroyed by calling destroy_dlg(). - -Widgets are placed to a doubly linked circular list. Each widget has -previous and next widget. - - prev next prev next -widget1 <---------> widget2 <---------> widget3 - ^ ^ - ----------------------------------------- - next prev - -Pressing Tab moves focus to the "next" widget, pressing Shift-Tab moves -focus to "prev". The tab order is equal to the add order except some -old code that use the reverse order by setting DLG_REVERSE flag in -create_dlg() call. Please don't use reverse order in the new code. - -The initial widget to get focus can be selected by calling -dlg_select_widget(). - -When creating a dialog, you may want to use a callback that would -intercept some dialog events. However, many widgets will do the right -thing by default, so some dialogs can work just fine without callbacks. - -There are also widget events, which are sent by the dialog to individual -widgets. Some widgets also have user callbacks. - -To create your own widget, use init_widget(). In this case, you must -provide a callback function. Please note that it's not the same as the -user callback in some widgets. - - -Where to Find Bug Reports and Patches -===================================== - -The official place for bug reports is: - - https://www.midnight-commander.org/ - - -There are various unofficial sources where bug reports and patches can -be found (NOT maintained by the MC team). - - -http://bugs.debian.org/mc - The bug tracking system for Debian, a package collection mainly - for GNU/Linux and the Hurd. - -http://bugzilla.redhat.com/bugzilla/buglist.cgi?component=mc - Bugs reported in Redhat Linux. - -http://www.openbsd.org/cgi-bin/cvsweb/ports/misc/mc/patches/ - The patches that are applied for the OpenBSD version of MC. - -http://www.freebsd.org/cgi/cvsweb.cgi/ports/misc/mc/files/ - The patches that are applied for the FreeBSD version of MC. - -http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/sysutils/mc/patches/ - The patches that are applied for the NetBSD version of MC. - -http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-misc/mc/files/?hideattic=1 - The patches that are applied for the Gentoo Linux version of MC. - - -Programming Tips -================ - -(This list should be sorted alphabetically.) - -?: This operator has a precedence that is easy to use the wrong way. You - might think that - - int right = 25 + have_frame() ? 1 : 0; /* WRONG */ - - results in either 25 or 26. This is not the case. The C compiler - sees this as: - - int right = (25 + have_frame()) ? 1 : 0; /* WRONG */ - - To avoid this, put the ?: in parentheses, like this - - int right = 25 + (have_frame() ? 1 : 0); /* RIGHT */ - - If the condition is more complicated, put it in additional - parentheses: - - int right = 25 + ((have_frame()) ? 1 : 0); /* RIGHT */ - -const: For every function taking a string argument, decide whether you - (as a user of the function) would expect that the string is modi- - fied by the function. If not, declare the string argument as - "const char *". If your implementation needs to modify the string, - use g_strdup to create a local copy. - -const_cast: Has been replaced by str_unconst. - -g_free: g_free handles NULL argument too, no need for the comparison. - Bad way: - if (old_dir) g_free (old_dir); - Right way: - g_free (old_dir); - -g_strdup: When you use g_strdup to create a local copy of a string, use - the following pattern to keep the reference. - - char * const pathref = g_strdup(argument); - /* ... */ - g_free (pathref); - - The "const" will make the pointer unmodifiable (pathref++ - is not possible), but you can still modify the string contents. - -NULL: When you pass NULL as an argument of a varargs function, cast the - 0 to the appropriate data type. If a system #defines NULL to - be 0 (at least NetBSD and OpenBSD do), and the sizes of int and - a pointer are different, the argument will be passed as int 0, - not as a pointer. - - This tip applies at least to catstrs (edit/edit.h), execl(3), - execle(3), execlp(3), g_strconcat (glib), parent_call - (src/background.h), parent_call_string (src/background.h). - - example: - char *path = g_strconcat("dir", "/", "file", (char *)0); - -size_t: This data type is suitable for expressing sizes of memory or the - length of strings. This type is unsigned, so you need not check - if the value is >= 0. - -strncpy: Don't use this function in newly created code. It is slow, insecure - and hard to use. A much better alternative is g_strlcpy (see there). - -str_unconst: We use many libraries that do not know about "const char *" - and thus declare their functions to require "char *". If you - know for sure that an external function does not modify the - string, you can "unconst" a string using the function - str_unconst(). If you are not sure whether the function modifies - the string, you should use g_strdup() to pass a copy of a string - to the function. Don't forget to call g_free() after work is done. - -unused: Unused arguments of a function can be marked like this: - - void do_nothing(int data) - { - (void) &data; - } - - This tells the GNU C Compiler not to emit a warning, and has no - side effects for other compilers. diff --git a/recipes/wip/files/mc/source/doc/INSTALL b/recipes/wip/files/mc/source/doc/INSTALL deleted file mode 100644 index 8fc9bef907..0000000000 --- a/recipes/wip/files/mc/source/doc/INSTALL +++ /dev/null @@ -1,273 +0,0 @@ -Build requirements for GNU Midnight Commander ---------------------------------------------- - -- glibc or uClibc or musl - - https://www.gnu.org/software/libc/ - - https://uclibc.org - - https://www.musl-libc.org -- gcc or clang - - https://gcc.gnu.org - - https://clang.llvm.org -- make - - https://www.gnu.org/software/make/ -- autoconf >= 2.64 - - https://www.gnu.org/software/autoconf/ -- automake >= 1.14 - - https://www.gnu.org/software/automake/ -- libtool - - https://www.gnu.org/software/libtool/ -- pkg-config (optional) - - https://pkg-config.freedesktop.org/wiki/ -- glib2 >= 2.32 - - https://www.gtk.org -- slang2 or ncurses screen library - - https://www.jedsoft.org/slang/ - - https://invisible-island.net/ncurses/ncurses.html -- gettext >= 0.18.2 - - https://www.gnu.org/software/gettext/ -- pcre or pcre2 (as an alternative to glib-regexp) - - https://www.pcre.org -- gpm (general purpose mouse daemon as an alternative to xterm mouse) - - https://www.nico.schottelius.org/software/gpm/ -- libssh2 >= 1.2.8 (required only for sftp vfs) - - https://libssh2.org -- libaspell (spell checking support in the internal editor) - - http://aspell.net -- ext2fs >= 1.42.4 (support for ext{2,3,4}fs extended attributes) - - https://e2fsprogs.sourceforge.net - - -Installation instructions for GNU Midnight Commander ----------------------------------------------------- - -Midnight Commander is written in a portable manner and uses GNU Autoconf -for configuration, so it is expected to compile without changes on many -other operating systems. - -If you are installing from an official tarball, it already contains -pre-bootstrapped autotools build system (specifically the `configure' -script). In the case that you are installing from a version control -checkout, you need to bootstrap the build system yourself first using -the `autogen.sh' script. Note that to do this you would need to install -the autotools suite first and not only direct mc build dependencies. - -The `configure' shell script attempts to guess correct values for -various system-dependent variables used during compilation, and creates -the makefiles. It also creates a file `config.status' that you can run -in the future to recreate the current configuration. - -To compile this package: - -1. Configure the package for your system. - -Normally, you just `cd' to the directory containing the package's source -code and type `./configure'. - -To compile the package in a different directory than the one containing -the source code, you must use a version of `make' supporting the `VPATH' -variable, such as GNU `make'. Change to the directory where you want -the object files and executables to go and run the `configure' script -with the full path. If for some reason `configure' cannot find the -source code directory, run `configure' with the option `--srcdir=DIR', -where DIR is the directory that contains the source code. - -By default, `make install' will install the package's files in -`/usr/local/bin', `/usr/local/man', etc. You can specify an -installation prefix other than `/usr/local' by giving `configure' the -option `--prefix=PATH'. - -If compiled on GNU/Linux, Midnight Commander detects if you have the gpm -library installed. If you installed the gpm mouse library in a -non-standard place, you will need to use the --with-gpm-mouse flag with -the directory base where you installed the gpm package. - -`configure' recognizes the following options (the list may be -incomplete, use `configure --help' to get the full list): - -`--help' - Print a summary of the options to `configure' and exit. - -`--quiet' -`--silent' - Do not print messages saying which checks are being made. - -`--version' - Print the version of Autoconf used to generate the `configure' - script, and exit. - -`--without-edit' - Configure GNU Midnight Commander to be compiled without the - built-in file editor. The built-in editor is compiled in by - default. - -`--enable-aspell[=prefix]' - This option adds spell check support to the internal editor using - libaspell and optionally sets path to libaspell installation prefix - [default=/usr]. Disabled by default. - -`--without-gpm-mouse' - Use this flag to disable gpm mouse support (e.g. if you want to - use mouse only on X terminals). - -`--with-glib-static' - Force linking against glib statically. This option is intended for - building binaries for distribution purposes and may not work on - some operating systems. - -`--with-subshell[=optional]', `--without-subshell' - The subshell support is by default turned on, you can disable - this by using the --without-subshell option. If you pass the - =optional parameter, then the subshell support is turned off by - default. To turn it on, specify the `-U' option to the program. - -`--without-x' - By default, the Midnight Commander tries to connect to the X Window - System events to query the status of the keyboard modifiers, such - as Control, Shift and Alt, when invoked in a terminal emulator - under X11. This is necessary (but not always sufficient) to - recognize some optional but handy key combinations like Ctrl-Home - and Shift-Cursor keys. Use `--without-x' if the dependency on - X11 libraries is not desired. - -`--disable-largefile' - This option disables support for large files (2 gigabytes and more) - on the systems where file operations use 32-bit offsets by default, - but support for 64-bit offsets is available. May be useful for - slow processors and embedded systems. - -`--enable-charset' - This option adds support for selecting character set of the text in - the internal viewer and editor and converting it on the fly. The - implementation of this option is currently incomplete. - -`--disable-background' - This option disables support for background operations. Background - operations allow to perform some tasks such as copying files in a - separate background process. Any messages from the background - process are forwarded to the foreground process. More advanced - dialogs cannot be forwarded yet, so the background process uses the - default. Background code is known to be less stable than the rest - of the code, so you may want to disable it at the compile time. - -`--with-homedir' - This option allow users to place user config directories in any - place. By default value is 'XDG', this mean, mc will respect XDG - standards. If other value is specified, this will used as directory - name (relative to $HOME if path is relative, or as is if path is - absolute). - -VFS options: -- - - - - - - -`--disable-vfs' - This option disables the Virtual File System switch code in the - Midnight Commander and uses the standard file system calls for - file access. If you specify this option, you won't get the - transparent access to archives and remote directories. - -`--enable-vfs-cpio' - (on by default) - Support for cpio filesystem - -`--enable-vfs-tar' - (on by default) - Support for tar filesystem - -`--enable-vfs-ftp' - (on by default) - Support for FTP vfs - -`--enable-vfs-shell' - (on by default) - Support for SHELL vfs - -`--enable-vfs-sftp' - (auto) - Support for SFTP vfs - -`--enable-vfs-extfs' - (on by default) - Support for extfs - -`--enable-vfs-sfs` - (on by default) - Support for sfs - -`--enable-vfs-undelfs' - (off by default) - Support for ext2 undelete filesystem. - On systems that use the ext2 or ext3 file system and have the - libext2fs library available, this option adds support for - recovering deleted files (the undel virtual file system). - -Screen library: -- - - - - - - - - -You may also tell configure which screen library you want to use with -the Midnight Commander. The configure script will use S-Lang as -default, and prefers an already installed S-Lang library over the -included one, but you can override this by using the following flag -(please note that since S-Lang is default, it is tested better than -ncurses): - -`--with-screen={slang|ncurses}' - Choose the library used to manage interaction with the terminal. - `slang' means S-Lang library already installed on the system, - `ncurses' means ncurses library already installed on the system. - The S-Lang library is used by default if found. - -`--with-ncurses-includes=[DIR]' - Set path to ncurses includes [default=/usr/include]; make - sense only if --with-screen=ncurses is used; - for /usr/local/include/ncurses specify /usr/local/include. - -`--with-ncurses-libs=[DIR]' - Set path to ncurses library [default=/usr/lib]; make sense - only if --with-screen=ncurses is used. - -On systems that require unusual options for compilation or linking that -the package's `configure' script does not know about, you can give -`configure' initial values for variables by placing them in the command -line: - -./configure CC='gcc -traditional' LIBS=-lposix - -2. Type `make' to compile the package. - -3. Type `make install' to install programs, data files, and the -documentation. - -If you're on a GNU/Linux system, this will install the `cons.saver' -utility, which allows the Midnight Commander to save and restore the -console contents. This utility can be installed setuid root, but it's -only needed on systems where users cannot access /dev/vcsaN, where N is -the virtual console number, on which the uses is logged on. - - -Terminal database ------------------ - -There are many incomplete terminal databases out there, however, a -complete terminfo is bundled with ncurses. (It is simple to generate -the termcap database using the infocmp utility in ncurses). - -If you want to run mc on xterm/color_xterm/ansi_xterm (not rxvt), then -you might read contrib/README.xterm for further information. - - -Porting -------- - -Some less widespread UNIX systems like AIX or Solaris often come with their own -implementations of make and relevant parts of the toolchain necessary to build -mc. While autotools abstract a lot of platform specific issues, you might -encounter unresolved problems while using the native toolchain. - -Often, GNU tools are shipped as a part of an additional software collection -(/opt/freeware on AIX, or OpenCSW on Solaris). These tools are usually prefixed -with the letter `g', e.g. `gmake' instead of `make'. If you are not really -interested in building with the native toolchain, try to override tools causing -problems like this: - -./configure MAKE=gmake AR=gar -gmake diff --git a/recipes/wip/files/mc/source/doc/Makefile.am b/recipes/wip/files/mc/source/doc/Makefile.am deleted file mode 100644 index 5cc4ae2231..0000000000 --- a/recipes/wip/files/mc/source/doc/Makefile.am +++ /dev/null @@ -1,7 +0,0 @@ -DIST_SUBDIRS = hints man hlp -SUBDIRS = hints man hlp - -DOCS = FAQ HACKING INSTALL -EXTRA_DIST = $(DX_CONFIG) doxygen-include.am $(DOCS) - -include doxygen-include.am diff --git a/recipes/wip/files/mc/source/doc/Makefile.in b/recipes/wip/files/mc/source/doc/Makefile.in deleted file mode 100644 index b74bfd6d8a..0000000000 --- a/recipes/wip/files/mc/source/doc/Makefile.in +++ /dev/null @@ -1,883 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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@ - -# --------------------------------------------------------------------------- -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# --------------------------------------------------------------------------- - -# Copyright (C) 2004 Oren Ben-Kiki -# This file is distributed under the same terms as the Automake macro files. - -# Generate automatic documentation using Doxygen. Goals and variables values -# are controlled by the various DX_COND_??? conditionals set by autoconf. -# -# The provided goals are: -# doxygen-doc: Generate all doxygen documentation. -# doxygen-run: Run doxygen, which will generate some of the documentation -# (HTML, CHM, CHI, MAN, RTF, XML) but will not do the post -# processing required for the rest of it (PS, PDF, and some MAN). -# doxygen-man: Rename some doxygen generated man pages. -# doxygen-ps: Generate doxygen PostScript documentation. -# doxygen-pdf: Generate doxygen PDF documentation. -# -# Note that by default these are not integrated into the automake goals. If -# doxygen is used to generate man pages, you can achieve this integration by -# setting man3_MANS to the list of man pages generated and then adding the -# dependency: -# -# $(man3_MANS): doxygen-doc -# -# This will cause make to run doxygen and generate all the documentation. -# -# The following variable is intended for use in Makefile.am: -# -# DX_CLEANFILES = everything to clean. -# -# This is usually added to MOSTLYCLEANFILES. -VPATH = @srcdir@ -am__is_gnu_make = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 -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 \ - distdir distdir-am -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)` -am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/doxygen-include.am \ - COPYING INSTALL NEWS README TODO -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -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" -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -DIST_SUBDIRS = hints man hlp -SUBDIRS = hints man hlp -DOCS = FAQ HACKING INSTALL -EXTRA_DIST = $(DX_CONFIG) doxygen-include.am $(DOCS) -@DX_COND_doc_TRUE@@DX_COND_html_TRUE@DX_CLEAN_HTML = @DX_DOCDIR@/html -@DX_COND_chm_TRUE@@DX_COND_doc_TRUE@DX_CLEAN_CHM = @DX_DOCDIR@/chm -@DX_COND_chi_TRUE@@DX_COND_chm_TRUE@@DX_COND_doc_TRUE@DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi -@DX_COND_doc_TRUE@@DX_COND_man_TRUE@DX_CLEAN_MAN = @DX_DOCDIR@/man -@DX_COND_doc_TRUE@@DX_COND_rtf_TRUE@DX_CLEAN_RTF = @DX_DOCDIR@/rtf -@DX_COND_doc_TRUE@@DX_COND_xml_TRUE@DX_CLEAN_XML = @DX_DOCDIR@/xml -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@DX_PS_GOAL = doxygen-ps -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@DX_PDF_GOAL = doxygen-pdf -@DX_COND_doc_TRUE@@DX_COND_latex_TRUE@DX_CLEAN_LATEX = @DX_DOCDIR@/latex -@DX_COND_doc_TRUE@DX_CLEANFILES = \ -@DX_COND_doc_TRUE@ @DX_DOCDIR@/@PACKAGE@.tag \ -@DX_COND_doc_TRUE@ -r \ -@DX_COND_doc_TRUE@ $(DX_CLEAN_HTML) \ -@DX_COND_doc_TRUE@ $(DX_CLEAN_CHM) \ -@DX_COND_doc_TRUE@ $(DX_CLEAN_CHI) \ -@DX_COND_doc_TRUE@ $(DX_CLEAN_MAN) \ -@DX_COND_doc_TRUE@ $(DX_CLEAN_RTF) \ -@DX_COND_doc_TRUE@ $(DX_CLEAN_XML) \ -@DX_COND_doc_TRUE@ $(DX_CLEAN_PS) \ -@DX_COND_doc_TRUE@ $(DX_CLEAN_PDF) \ -@DX_COND_doc_TRUE@ $(DX_CLEAN_LATEX) - -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/doxygen-include.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) --gnu doc/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/doxygen-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -# 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" -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 -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 - @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 -check-am: all-am -check: check-recursive -all-am: Makefile -installdirs: installdirs-recursive -installdirs-am: -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 clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: - -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-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: - -.MAKE: $(am__recursive_targets) install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ - check-am clean clean-generic clean-libtool cscopelist-am ctags \ - ctags-am distclean distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-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 \ - installdirs-am maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps - -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@@DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ cd @DX_DOCDIR@/latex; \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ $(DX_LATEX) refman.tex; \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ $(MAKEINDEX_PATH) refman.idx; \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ $(DX_LATEX) refman.tex; \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ countdown=5; \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ refman.log > /dev/null 2>&1 \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ && test $$countdown -gt 0; do \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ $(DX_LATEX) refman.tex; \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ countdown=`expr $$countdown - 1`; \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ done; \ -@DX_COND_doc_TRUE@@DX_COND_ps_TRUE@ $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi - -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf - -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@@DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ cd @DX_DOCDIR@/latex; \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ $(DX_PDFLATEX) refman.tex; \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ $(DX_MAKEINDEX) refman.idx; \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ $(DX_PDFLATEX) refman.tex; \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ countdown=5; \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ refman.log > /dev/null 2>&1 \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ && test $$countdown -gt 0; do \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ $(DX_PDFLATEX) refman.tex; \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ countdown=`expr $$countdown - 1`; \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ done; \ -@DX_COND_doc_TRUE@@DX_COND_pdf_TRUE@ mv refman.pdf ../@PACKAGE@.pdf - -@DX_COND_doc_TRUE@.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL) - -@DX_COND_doc_TRUE@.INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) - -@DX_COND_doc_TRUE@doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag - -@DX_COND_doc_TRUE@doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) - -@DX_COND_doc_TRUE@@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS) -@DX_COND_doc_TRUE@ rm -rf @DX_DOCDIR@ -@DX_COND_doc_TRUE@ $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG) - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/NEWS b/recipes/wip/files/mc/source/doc/NEWS deleted file mode 100644 index 741f2663f0..0000000000 --- a/recipes/wip/files/mc/source/doc/NEWS +++ /dev/null @@ -1,1772 +0,0 @@ -Version 4.8.33 - -Starting with this release, we will be using language features that require a C99 compiler to build. - -- Core - - * Minimal version of Automake is 1.14 (#4604) - * Upgrade C standard to C99 (#4604) - * Support ksh variants as subshell (#3748) - * Improve fish 4.0 shell support (#4597) - * Add support for bash PROMPT_COMMAND being an array (#4599) - * Don't override ENV variable for ash/dash subshell (#4605) - * Don't disable verbose mode if tty baudrate can't be reliably determined (#2452) - * New keymap for vim users (#4588) - -- VFS - - * extfs vfs: chmod/chown inside extfs (e.g. zip archive) silently fails (#4629) - * Add embedded torrent viewer/vfs (#3100) - -- Misc - - * Code cleanup (#4572, #4593, #4595, #4598) - * Adjust mc-wrappers to work with the new MC_TMPDIR creation logic (#4575) - * Prefer console players for sound, images and video in non-graphical sessions (#4479, #4596) - * Support `TERM=xterm-clear` for FreeBSD users (#2633) - * mc.ext.ini: - - Support for Rust crates file format (#4609) - - Support for OpenEmbedded ipk archives (#4626) - * ext.d: select browser at runtime (#4615) - * Move CI from Travis to GitHub Actions (#4170, #3738, #4602) - -- Fixes - - * Segfault if filter makes file panel empty (#4600) - * Segfault in built-in help when going to the previous topic (#4627) - * Incorrect handling of ext2 attributes of a directory (#4590) - * Failed copy/move operations make ETA inaccurate (#3205, #4613, #4623) - * Hotlist: use after free (#4621) - * mc.ext.ini: typo for apt view command line (#4583) - * mcedit: visual glitches if built with aspell, but libraries not installed (#4576) - * mcedit: segfault on new file creation (#4580) - * mcedit: PageDown skips lines in edit window (#4617) - * mcedit: cursor jumps during PageDown in edit window (#4618) - * mvciew: false-positive regex search of BOL (#4587) - * mcdiff: segmentation fault on empty files merge (#4608) - * tar vfs: double free (#4616) - * sftpfs vfs: use after free (#4620) - * tests: fix charset-related code on non-glibc platforms (Alpine, Illumos) (#3972, #4495) - * tests: use weak symbols instead of symbol duplication to support non-GNU linkers / macOS (#4584, #3542) - - -Version 4.8.32 - -- Core - - * Tell the current directory to the terminal using OSC 7 sequence (so it can open new tabs there) (#3088) - * Preserve ext2fs attributes on copy/move operations (#4532) - * Change name of temporary directory: make it unique for each run (#4535) - * Hide password in file operation progress dialog (#4541) - * Support reget in file move operation (#4563) - * Implement nanosecond precision timestamps on non-Linux (macOS, BSD, AIX, Solaris) (#4563) - * Remove remaining mmap code to simplify maintenance (#3960) - -- VFS - - * extfs: support unrar-7 (#4518) - -- Editor - - * Improve syntax highlighting: - - C and C++ (MidnightCommander/mc#195, #4556) - -- Diff viewer - - * Add man page mcdiff.1 (#4224) - -- Misc - - * Code cleanup (#4524) - * New skins - - xoria256-thin, xoria256root-thin (#4530) - - modarcon16-defbg-thin, modarcon16-thin, modarcon16root-defbg-thin, modarcon16root-thin (#4530) - - modarin256-defbg-thin, modarin256-thin, modarin256root-defbg-thin, modarin256root-thin (#4530) - - julia256root (#4536) - * mc.ext.ini: clarify escaping of spaces and parenthesis (#4502) - -- Fixes - - * External editor does not work with arguments in $EDITOR (#4533) - * fish shell: strings " cd (printf '%b' ... " in history (#4521) - * Redundant back slashes for autocomplete (#4292) - * subshell: call execl with argv[0] that is not an actual path to Bash (#4549) - * mcedit: php.syntax: comment highlight from start of light only (#4519) - * mcedit: wrong replacement using regular expressions with begin or end of line (#4525, #4526) - * mcedit: losing column position when navigating up/down (MidnightCommander/mc#194) - * mcedit: macro deletes text (#4540) - * mcedit: macros are applied to the pasted text (#4562) - * extfs: iso9660: xorriso is slow to open an ISO image (#3570, #4567) - * extfs: u7z: wrong add of nested directories to archive (#4559) - * extfs: segfault on enter to deleted archive (#4560) - * tar: segfault on copy files from archive (#4561) - * man: typo (#4550) - - -Version 4.8.31 - -- Core - - * Minimal version of GLib is 2.32.0. - -- VFS - - * fish: drop support of native FISH server and protocol. Rename VFS to shell (#4232) - * extfs; - - uc1541 extfs: update up to 3.6 version (#4511) - - s3+: port to Python3 (#4324) - * Support for LZO/LZOP compression format (#4509) - -- Misc - - * Code clean up (#4490) - * Skins: add color for non-printable characters in editor (#4433) - -- Fixes - - * FTBFS on FreeBSD with ext2fs attribute support (#4493) - * Broken stickchars (-a) mode (#4498) - * Wrong timestamp after resuming of file copy operation (#4499) - * Editor: wrong deletion of marked column (#3761) - * Diff viewer: segfault when display of line numbers is enabled (#4500) - * Tar VFS: broken handling of hard links (#4494) - * Sftp VFS: failure establishing SSH session due hashed host names in ~/.ssh/known_hosts (#4506) - * Shell VFS: incorrect file names with cyrillic or diacritic symbols (#4507) - * mc.ext.ini: incorrect description of of how multiple sections and keys with same names are processed (#4497) - * mc.ext.ini: unescaped backslash \ is treated as invalid escape sequence in glib-2.77.3 and glib-2.79 (#4502) - * mc.ext.ini: file "Makefile.zip" is handled as Makefile not as zip-arhive (#4419) - - -Version 4.8.30 - -- Core - - * Support PCRE2 as search engine (via ----with-search-engine=pcre2) (#4450) - * Implement panelization buffers for both file panels (#4370) - -- VFS - - * tar: support extended headers (including long file names and sparse files) (#1952, #2201) - * extfs helpers: replace "perl -w" with "use warnings" (MidnightCommander/mc#174) - * extfs/patchfs: be more specific in error message (#4485) - -- Editor - - * Add syntax highlighting: - - Jenkinsfiles (#4469) - - B language (#4470) - * Improve syntax highlighting: - - ECMAScript (MidnightCommander/mc#172) - - ECMAScript in TypeScript (MidnightCommander/mc#172) - - use diff syntax highlighting for git commit messages (COMMIT_EDITMSG) (MidnightCommander/mc#85) - -- Misc - - * Code cleanup (#4426, #4438) - * Filehighlight: - - recognize vsix files as zip files (MidnightCommander/mc#171) - * Skin updates: - - julia256 (#4441, #4445) - -- Fixes - - * Usage of 'sed' in build system/makefiles is not portable (#4459, #4466) - * Unportable '$<' in Makefiles (#4460) - * FTBFS if ncurses used without --with-ncurses-includes= configure parameter (#4462) - * Ncurses library is duplicated in MCLIBS (#4463, #4465) - * FTBFS without ext2fs attributes support (#4464) - * Wrong sort order after swapping panels (#4432) - * Incorrect time delimiter in the copy/move progress window (#4437) - * Incorrect redraw of overlapped file panels (#4408) - * Subshell/Command line prompt is empty/missing (#3121) - * Find file: relative ignore directory is applied to the start search directory (#4235) - * Diff viewer: options are not applied on second run (#4486) - * mc.ext.ini: 'Edit' command from 'Default' section is ignored (#4434) - * mc.ext.ini: .md files are not recognized as Markdown ones by extension (#4444) - * mcedit: off-by-one error in paragraph formatting (#4446) - * ftp: incomplete file listing: block and character devices, pipes, sockets are missed (#4472) - * Various typos in the source code (MidnightCommander/mc#177, MidnightCommander/mc#178) - - -Version 4.8.29 - -- Core - - * Add more options for panel filter (#1373): - - "Files only" (#4209) - - "Case sensitive" (#4334) - - "Using shell patterns" - * Continue copy after interrupt (#4409) - * Restore menu accelerator for "Sort order": back to "S"; change menu accelerator for "SFTP link" to "N" (#4373) - * Add support for cross-compilation with PERL path different between --build and --host (#4399) - * Bootstrap with autotools providing direct support for Apple M1 - * Port mc.ext to INI format and rename to mc.ext.ini (#4141, #3742, #3191) - - Implement compound (AND) conditions (Type/Shell and Type/Regex pairs) to disambiguate overloaded extensions - - There is no fallback to previous mc.ext format - -- Editor - - * Change location of all user's syntax related stuff to ~/.local/share/mc/syntax/ directory (#4413) - * syntax/Syntax: document location of syntax files (#4320) - * Improvements of syntax highlighting: - - YAML: improve multiline blocks highliting (#4059) - * New syntax highlighting: - - Privoxy (https://www.privoxy.org) actions files (#4384) - - TOML (Tom's Obvious Minimal Language) (#4412) - -- Misc - - * Code cleanup (#4357, #4397, #4425) - * sqlite3 view: use 'immutable=1' URI parameter to prevent leaving wal/shm files after viewing sqlite database (#4369) - * Support of contour terminal emulator (https://github.com/contour-terminal/contour) (#4396) - * mc.ext.ini: clarify regex for makefiles (#4419) - * Remove empty hints translations by setting 5% threshold (#3608) - -- Fixes - - * Fail to build with only SFTP network VFS is enabled (#4420) - * Crash on quick view of archives (#4398) - * Wrong description of --enable-configure-args option (#4400) - * Wrong version sort (#4374) - * No subshell if subshell is initializing more than 1 second (#3121) - * Filter keyboard shortcut only affects left panel (#4383) - * File type check does not work with special character in filename (#4377) - * Select files keeping the right mouse button pressed doesn't select all files (#4381) - * Cannot scroll panel listing upwards using mouse (#4119) - * "Directory Compare" doesn't correct work with panelization (#3220) - * Wrong decompressing of zip files in quick view panel (#4404) - * mc.ext: 'include' keyword (for command class def) have no effect if it was defined before 'Include' keyword (for command def) (#2773) - * mcedit: infinite loop when deleting a macro (#4391) - * mcviewer: segfault when switching from raw to parsed mode and back (#4401) - * Broken handling of zip archives (#4368) - * FISH subshell: commands don't work after window resize (#4372) - * FTP VFS: doesn't reconnect to server after timeout (#3670) - * FISH VFS: cannot remove non-empty directory (#4364) - * EXTFS VFS: segfault if archive contains file(s) in the parent directory (#4422, #4427) - * Tests: variable redeclaration in filevercmp_test5 (#4358) - - -Version 4.8.28 - -- VFS - - * Remove SMB support (#1) - -- Editor - - * Add syntax highlighting: - - Ngspice/SPICE (http://ngspice.sourceforge.net/) (#4316, #4319) - - DOT/Graphviz (https://graphviz.org/doc/info/lang.html) (#4322) - -- Viewer - - * Support file/dir macros from mc.ect for standalone viewer (#4150) - -- Misc - - * Minimal version of "check" utility is 0.9.10. - * Code cleanup (#4270, #4330) - * Support Shift+Fn keys for KiTTY (#4325) - * Filehighlight: - - graphical formats: avif, jp2, jxl, heic, heif, psb, psd (#4328) - - Markdown (#4351) - -- Fixes - - * FTBFS with ncurses build with --disable-widec (#4200) - * There is no exit on Ubuntu PPC64 big endian (#3887) - * Segfault on change panel mode (#4323) - * Accelerator conflict in Left/Right menu (#4284) - * move a lot of files across filesystems is slow (#4287) - * mc.ext: wrong order of rules: general matches are made before more specific ones (#4273) - * mc.ext: compressed man pages are shown unformatted (#4272) - * ext.d/misc.sh: invoking /bin/cat on systems that have no /bin/cat (like NixOS) (#4298) - * mcedit: errors in syntax definitions (#4286) - * VFS: FISH: when uploading a symbolic link, it creates both the link and its target (#4281) - * VFS: SFTP: timestamps are not preserved for uploaded symlink (#4285) - * VFS: EXTFS: incorrect test of isoinfo (#4326) - * Typo in skin files (#3146) - - -Version 4.8.27 - -- Core - - * Minimal version of Autoconf is 2.64 (#3603) - * Minimal version of Automake is 1.12 (#3986) - * Minimal version of Gettext is 0.18.2 (#3603) - * Minimal version of libssh2 is 1.2.8 (#4259) - * Reimplement version detection (#3603, #4249) - * Significantly reduce rebuilt time after version change (#2252, #4266) - * Drop automatic migration of configuration from ~/.mc to XDG-based directories (#3682) - * zsh: support custom configuration file: ~/.local/share/mc/.zshrc (#4203) - * Widgets: implement WST_VISIBLE state to show/hide widgets (#2919) - * "Find File": add "Follow symlinks" option (#2020) - -- VFS - - * extfs: support unrar-6 (#4154) - * extfs: support official 7z binary (7zz) (#4239) - * ftpfs: apply file list parser from lftp project (#2841, #3174) - -- Editor - - * Word completion: get candidates from all open files (#4160) - * etags: get rid of hardcoded list length and window width (#4132) - * Update syntax files: - - Python (#4140) - * Add syntax highlighting: - - Verilog and SystemVerilog header files (#4215) - - JSON (#4250) - - openrc-run scripts (#4246) - -- Misc - - * Code clean up (#4179, #4173, #4269) - * Filehighlight of c++ and h++ files as sources (#4194) - * Filehighlight of JSON files as documents (#4250) - * Support of alacritty terminal emulator (https://github.com/alacritty/alacritty) (#4248) - * Support of foot terminal emulator (https://codeberg.org/dnkl/foot) (#4251) - * Support of (alt+)shift+arrow keys in st terminal emulator (st.suckless.org) (#4267) - * Mouse support in screen: don't check $DISPLAY variable (#4233) - * mc.ext: support fb2 e-books (#4167) - * ext.d: use mediainfo to view info about various media files (#4167) - * Remove OS/distro-specific package-related stuff from source tree (#4217) - -- Fixes - - * FTBFS against NCurses on OS X 10.9.5 (#4181) - * Segfault on dialog before panels get visible (#4244) - * Crash if shadow is out of screen (build against NCurses) (#4192) - * Crash in search (#4222) - * Crash on startup with enabled subshell in FreeBSD (workaround) (#4213) - * Hang on start randomly with zsh as subshell (#4198) - * If command line is invisible it's partially displayed (#4182) - * Broken handling of zip archives (#4180, #4183) - * Broken handling of jar files as zip archives (#4223) - * Timestamps of symlinks, sockets, fifos, etc are not preserved after copy/move (#3985) - * %view action in the user menu doesn't work on no-exec filesystem (#4242) - * Hardlinks are not colored by file type or extension (#3375) - * mcedit: silent macro makes terminal disrupted (#4171) - * mcedit: disrupting of TAGS file path (#4207) - * vfs: unable to browse compressed tar archives (#4191) - * sftpfs vfs: CVE-2021-36370: server fingerprint isn't verified (discovered by AUT-milCERT during an audit of open source software) (#4259) - * ftpfs vfs: month of file is always January (#4260) - * Tests: log files are written by libcheck and automake simultaneously (#3986) - - -Version 4.8.26 - -- Core - - * Support file names of any length (#4145) - * Implement persistent command line buffer for subshell (bash >= 4, zsh and fish are supported) (#4114, #4124, #4126) - * Implement shadows of dialog windows and menus (#4102) - * Allow running clipboard commands if DISPLAY is not set (#4133) - * Add support of "alacritty", "tmux", and "tmux-256color" terminals (#4149) - -- VFS - - * Support wim archive format (using wimtools (https://wimlib.net/)) (#4100) - * Support pak archive format (using unar (https://theunarchiver.com/)) (#4130) - -- Editor - - * Add Swift syntax highlighting (MidnightCommander/mc#159) - -- Misc - - * Code cleanup (#4103, #4127, #4131) - * ext.d/sound.sh: replace xmms with audacious (part of #4127) - * mc.ext: improve handling of compressed content (#4128, #2117) - * mc.ext: add support for OpenDocument flax xml formats: fodt, fods, fodp, fodg (#4157) - * Filehighlight fodg, fodp, fods, fodt, odg files as documents - * modarcon16 skin: make consistent with whitespaces (#4158) - -- Fixes - - * 0000 permissions are not preserved on copy/move file (#4155) - * Chattr dialog doesn't work with mouse (#4104) - * Wrong copy ETA displaying if "Follow links" option is set (#4101) - * C-i ("change panel" shortcut) has no effect (#4107) - * C-l ("refresh screen") and A-` ("switch screens") shortcuts have no effect (#4142, #4153) - * Cancel of history or completion window marks input lines as modified (#4152) - * Unexpected subshell execution at panel switch (#2110) - * Lock up after pressing Tab in subshell (#2269) - * tcsh: error: "The Commander can't change to the directory" (#4120) - * vfs: extfs: cannot handle files with name started with dash or space (#4077) - * vfs: hang on accessing files within a nested VFS for first 60 seconds (#4147) - * vfs: lose content of the current directory on a mounted CIFS share (on Linux >= 5.1) (#3987) - - -Version 4.8.25 - -- Core - - * Minimal version of GLib is 2.30.0 - * Avoid subshell warning for standalone mcedit/mcview/mcdiffview run from mc (#4056) - * Implement chattr command (change ext{2,3,4}fs extended attributes). Default shortcut is "C-x e" (#3847) - * Implement a WGroup widget -- a base class for widgets which contain other widgets (#2919, #4075) - * Implement key bindings for radiobuttons (#212) - -- VFS - - * RPM VFS improvements: - - Support weak dependency tags: ENHANCES, SUGGESTS, RECOMMENDS, SUPPLEMENTS (#4091) - -- Editor - - * Improvements of syntax highlighting: - - php (#4060) - - tcl: add shebangs with wish and tclsh (#4062) - - Cobol (#1987) - - Verilog/SystemVerilog (#4087) - * New syntax highlighting: - - Kotlin (#4088) - - ino (Arduino IDE and a number of other IDEs) (#4098) - -- Misc - - * Code cleanup (#4050, #4085) - * Add support for opus audio (#4061) - * mc-wrapper: don't cd to the same directory (#3355) - * Improve archive support: more binaries to view archive content (#4086) - - lha: jlha, lhasa - - arj: 7za - - cab: 7za - - zip; 7z - - zipx: 7za - - iso: 7za - * Clean up in video.sh handler (#4045) - - RealPlayer is a proprietary application which can't be installed in most distros and has long been abandoned. - - gtv hasn't been developed since 2003. - - xanim barely plays anything. - * Various fixups and updates of man page - -- Fixes - - * FTBFS on OSes w/o O_CLOEXEC (#4052) - * FTBFS with glib2 >= 2.63.3 (#4053) - * Undefined "__linux__" macro on non-Linux systems (#4058) - * Mouse is not handled with ncurses-6 (#3954) - * Mouse is not handled with S-Lang on some old terminal emulators (#4063) - * Terminal size is always 80x24 in subshell on Solaris 11.4 SPARC (#4099) - * Double clicking on empty area of file panel executes last item (#3722) - * Garbage in input line history (#4064) - * Speed of file copy is not displayed for single file (#4081) - * mcedit: blank screen with invisible error (#4057) - * mcedit: broken syntax highlighting for shell scripts (#4054) - * VFS: broken browsing of .deb packages (#4055) - * mc.lib installed twice (#4070) - - -Version 4.8.24 - -- Core - - * Drop bundled gettext (#3629) - * Implement the file edit and view history. Default shortcut is alt-shift-e (#2733) - * Enable subshell in standalone mceditor, mcviewer, and mcdiffviewer (#3380) - * Refactoring of SIGWINCH handling (#117, #4019) - * Prevent run/open files with double right click (#4016) - * Improve support of Windows 1251 encoding on Solaris (#3992) - * Support binary reproducible builds (via --disable-configure-args configure option) (#4031) - -- VFS - - * sftpfs: support keyboard interactive authentication (#3921) - * uc1541 extfs: update up to 3.3 version (#3936) - -- Editor - - * Syntax: - - add yabasic (Yet Another BASIC) syntax highlighting (#4005) - - improve YAML syntax highlighting (#4010) - - add "https://" to Debian sources.list syntax (#4018) - - add .desktop files (#4022) - - improve RPM spec file syntax highlighting (#4037) - - improve Debian sources.list syntax highlighting (#4041) - -- Misc - - * Code cleanup (#3997, #4030, #4038, #4039) - * menu.mc: handle symbolic links to compressed archives (#4009) - * File highlighting updates (#4015) - - part - partial files, e.g. used by many download managers ([temp]) - - apk - Android packages, deb - Debian packages ([archive]) - - ts - MPEG-TS streams ([media]) - * New skins: - - julia256: a dark skin with calm colors and good contrast. - -- Fixes - - * Compile failure on AIX 7.2 (#4033) - * Compile failure on OS X 10.9 (#4035) - * Enter key works as Down one in menu (#4006) - * Menubar: incorrect mouse click coordinate (#4013) - * Rotating dash generates way too much output (#3859) - * Totals aren't computed before move of a single directory (#4027) - * Editor: unusable dynamic paragraphing (#3996) - * VFS: iso9660 does not report listing errors (#3993) - * VFS: extfs: nested archives are not removed from temporary directory (#4000) - - -Version 4.8.23 - -- Core - - * Modify "File exists" query dialog (#3935): - - change layout - - rename "Update" button to "If older" - - add new "If smaller" button": overwrite file with smaller one - - add "Don't overwrite with zero length file" checkbox - * Speed up of large directory structures delete (#3958) - * Support key binding for menu (#212) - -- Editor - - * Expanded syntax highlighting rules (#3975): - - expanded file name regexp for sh.syntax - - use ini.syntax for systemd configuration files - * Syntax updates: - - shell (#3981) - - ebuild (#3988) - - RPM spec (#3991) - -- Viewer - - * Quick one-off backwards search with N. New action SearchOppositeContinue for key bind (default is shift-n) (#3452) - -- Misc - - * Code cleanup (#3955) - * Use Geeqie (a fork of GQview) as main image viewer, fallback to GQview (#3962) - * File highlighting updates (#3966) - - .go, .s: highlight as source - - .m4v: highlighting as media - * New skins: - - featured-plus: featured skin with alternative directory and file select/mark colors (#3973) - -- Fixes - - * Compilation fail on AIX (#3960) - * Incorrect file version sort (#3965, #3905) - * Garbage in the hardlink error creation message window (#3990) - * Cannot shell, or FTP, or SFTP link when the file panel is tree, or info, or quick view (#3948) - * Failed gpm connect attempt ... for vc /dev/tty0 (#3208, #3614) - * Incorrect include/editor order in mc.ext (#3965) - * mcedit: incorrect C/C++ syntax highlighting in some cases (#3487) - * Unknown type name 'sighandler_t' on Illumos (#3971) - - -Version 4.8.22 - -- Core - - * Support BTRFS's file clone operation (#1983) - * Find file: show pattern and content in the results window title (#3453) - * Find file: remember state (empty or not) of Content field (#3924) - * Improve support IBM i (#3927) - * Improve handling of hard link creation errors (#3678) - * Support user-defined prompt in the Fish subshell (#3944) - -- VFS - - * sftp: preserve atime and mtime (#3917) - -- Editor - - * man page cleanup (#3918) - * syntax: - - PHP - highlight keyword 'null' (#3920) - - Meson - initial implementation (#3940) - -- Misc - - * ext.d: use MPV as a fallback for mplayer -identify (#3919) - * ext.d: improve recognition of MS Office formats (#3929) - * Code cleanup (#3915) - * Cleanup hint files - -- Fixes - - * Won't compile for Apple (#3930) - * "Cannot create target file" when target has backslash space in the name (#3923) - * Quiet single file overwrite (#3908) - * Show error message for each not-installed program when view documents in MS Word and Excel formats (#3926) - * Crash when trying some sftp connections (#3937) - * Crash when return to filemanager from subshell (#3943) - - -Version 4.8.21 - -- Core - - * Cancel Chmod/Chown/Advanced chown operation for large group of files when operation is not permitted (#3850) - * Mouse support in the "Advanced chown" dialog window (#3148) - * File highlighting by extension is case insensitive by default (#1620) - * Safe file overwrite (#3913) - -- VFS - - * Support zstd compression format (#3906) - -- Editor - - * Syntax: - - Rust support (#3884) - - JavaScript modules support (#3890) - - Improve Markdown support (#3893) - -- Misc - - * Add JavaScript module support to `filehighlight.ini` (MidnightCommander/mc#132) - * Add Excel xlsx file format support to `mc.ext.in` (MidnightCommander/mc#135) - * i18n of argument type names in --help blocks (#3879) - * Code cleanup: (#3857, #3914) - -- Fixes - - * Fail to link to ncurses built as two libraries: ncurses+tinfo (#3880) - * Garbage in displaying of summary of file sizes for selected files (#3883) - * "Compute totals" unnecessarily done for moves (#3149, #3908) - * mc.ext: allow Java class files to be viewed even if JAD isn't on PATH (MidnightCommander/mc#134) - * mcedit: broken extended key mode (#3897) - * mcedit doesn't save all opened files (#3898) - * extfs: sftps: -31 SFTP Protocol Error when transferring file (#3406) - * extfs: rpm: truncated script content in the viewer (#3865) - * extfs: rpm helper misses CONFLICTS field (#3789) - - -Version 4.8.20 - -- Core - - * Rename key bindings: - - [main].PanelListingSwitch -> [panel].CycleListingFormat - - [main].PanelListingChange -> [main].SetupListingFormat - * Speed up of UTF-8 normalization for frequent cases (#3616) - -- VFS - - * extfs helpers tester: - - diff of failed tests is now included in output to ease bug reporting (#3784) - -- Editor - - * Syntax: - - ES2015 support (#3793) - - TypeScript support (#3794) - - Ada 95 updates (#3804) - - Apache Hive QL support (#3828) - - SQL & PHP keyword updates (MidnightCommander/mc#129) - - Simplification of case insensitive file name patterns in /usr/share/mc/syntax/Syntax file (#3829) - - Markdown (initial support) (#3864) - - Protocol Buffers and gRPC support (#3868) - * Add %c (cursor offset from BOF) support for user menu macros (#3867) - -- Misc - - * Unify curses initialization for various curses implementations (#3697) - * Highlight txz extension as archive like tgz, etc. (#3782) - * Add new media extensions to `filehighlight.ini` (#3834) - -- Fixes - - * Wrong --help message for mcview, mcedit and mcdiff (#3805) - * Compression from menu broken due to bad quoting (#3840) - * `--with-homedir` gives "yes" as config directory (#3836) - * External panelize: opening a file with an absolute path fails (#2942) - * Filter isn't cleared when entering empty string (#3813) - * Panelization is not kept while switching panel listing mode (#3810) - * Cannot tab out of a QuickView panel (#3815) - * Cannot use the F10 key in a QuickView panel (#3816) - * Wrong INPUT_COMPLETE_CD flag handling in the QuickDialog engine (#3870) - * mcview: file interpreted as latin1 instead of utf8 (#3783) - * mcview: incomplete read of filtering data (#3817) - * mcview: search doesn't grow file as much as needed (#3819, #3855) - * mcview: goto doesn't grow file as much as needed (#3826) - * mcview: quick view panel: crash on slow startup while switching panel mode (#3846) - * mcedit: fix broken encoding into UTF-8 for 8-bit displays (#3843) - * mcedit: incorrect %f macro substitution in the user menu (#3861) - * man pages: wrong paths of mc.hint and mc.hlp (#3806) - * subshell: fix broken tcsh 6.20+ cd escaping (#3852) - * VFS: incremental tar doesn't contain empty directories (#2297) - * VFS: incremental tar: wrong directories owner for tar --numeric-owner -g (#3709) - * VFS: timestamps not being preserved due to uninitialized struct stat st_[acm]tim.tv_nsec (#3821) - * VFS: ftp: can't retrieve password from .netrc when user is in URL (#3869) - * VFS: tests: locale issue causing helpers using 'sort' to fail (#3787) - * VFS: tests: unportable 'echo' use causing one rpm helper test to fail (#3786) - * Spelling errors in the manual page (#3839) - - -Version 4.8.19 - -- Core - - * Replace $MC_HOME with $MC_PROFILE_ROOT (#3684) - * Allow rebind TAB key to change panel (#3672) - * Support for True Color (16 millions colors) (#3145) - * Color aliases in skin files (#3711) - -- VFS - - * Support timestamps with nanosecond precision for copy/move operations (#3575) - * Introduce EXTFS helpers tester (#3730, #3744, #3752, #3753, #3751) - * Teach u7z to parse archive listings w/o sizes and/or dates (#2707) - * Teach rpm helper about transaction scripts (#3750) - * Fix hp48, uace & uarc extfs which used an obsolete date format (#3729, #3747) - -- Editor - - * Syntax: - - updates of HTML and ebuild highlighting - - highlight *.t (Perl test) files as Perl scripts - - disassociate .cl file extension from LISP syntax (#3691) - * Add syntax highlighting: - - OpenCL (#3690) - - OpenShadingLanguage (#3762) - - R - - YAML (#3293) - -- Misc - - * Code cleanup (#3693, #3703, #3721, #3763) - * Add true color skins: 'Four seasons' (#3724) - * Activate `--enable-tests` by default if `check` is found (#3708) - * Added new skin: YADT (MidnightCommander/mc#115) - -- Fixes - - * Segfault on switching left panel to Info (#3700) - * Broken compatibility with ncurses (#3697) - * Setting MC_HOME makes mc ignore ~/.bashrc (#3684) - * mc_tmpdir() use a buffer of only 64 characters (#3736) - * Some bugs in the parsing of hexadecimal search patterns (#3694) - * Hexadecimal search fails on binary data (#3589) - * Broken file list resorting on double click on panel header line (#3715) - * Wrong dialog resizing and positioning (#3714, #3723) - * Widget's 'disabled' status is not toggled immediately (#3716) - * Last item of 'Options/Layout/Horizontal' radiobuttons remains highlighted (#3717) - * 'Options/Layout/Equal split' checkbox gets reverted (#3718) - * Panels: cannot show more than one "column" in user defined listing mode (#3757) - * Mix of MSG_NOTIFY and MSG_FOCUS messages (#3731) - * skins: 'window-state-char' and 'window-close-char' are parsed as colors (#3710) - * Pressing and in the hotlist dialog doesn't refresh it (#3775) - * mcview: an error message about bad regexp isn't shown (#3720) - * mcedit: fix etags filenames parsing (#3698) - * mcedit: fix mouse active area for maximize / close buttons (#3774) - * mcedit: frames (MDI interface) don't reflect the focus state (#3766) - * mcedit: frames (MDI interface) sometimes obscure the buttonbar (#3760) - * mcedit doesn't show search error messages when searching backwards (#3735) - * help viewer: tab characters handled incorrectly (#3754) - * VFS: incorrect zoo archive listing (#3696) - * VFS: segfault in VFSs not setting block size in stat (#3749) - - -Version 4.8.18 - -- Core - - * Alt-Enter, Ctrl-Enter and Ctrl-Shift-Enter shortcuts are bindable in file manager (#3075) - * Internals: - - Refactoring of widget subsystem (#2919, #3632) - -- Editor - - * Add syntax highlighting: - - GLSL (#3683) - - CUDA (#3686) - -- Misc - - * Code cleanup (#3641, #3652) - -- Fixes - - * Build failure on FreeBSD (#3643) - * Incompatibility with NetBSD curses (#3665) - * Memory leaks (#3637) - * Subshell output lost on window resize under tmux, GNU screen (#3639) - * --with-subshell=optional does not work (#3642) - * Backward search is not interruptible (#3648) - * "Output lines" has no effect (#3655) - * Wrong handling of mouse clicks in long listing mode (#3661) - * Panelize resets marks on marked files in many cases (#3663) - * Cannot change directory in the active panel in some cases (#3669) - * Filtered View doesn't work (#3646, #3660) - * mcedit: don't kill bookmarks when open file from "Find File" dialog (#3668) - * man pages use "the MC" instead of "MC" (#3644) - - -Version 4.8.17 - -- Core - - * Minimal version of Gettext is 0.18.1 (#1885) - * Optimization of copy/move operations (use adaptive buffer as in coreutils) (#2193) - * Recognize csh as tcsh (#2742) - * Centered scrolling of file panel (#3130) - * Internals: - - Switch to new high-level mouse API (#3571) - -- VFS - - * FISH helpers: remove executable bit (#3610) - -- Editor - - * Improvements of syntax highlighting: - - F90 (#3618) - - Java (MidnightCommander/mc#95) - -- Misc - - * Code cleanup (#3598, #3607) - * Install mc.keymap as a symlink to mc.default.keymap (#3609) - * File highlight: add more common file formats - -- Fixes - - * Segfault due to incorrect value of SHELL environment variable (#3606) - * Segfault when copying files under FreeBSD 9.3 (#3617) - * Segfault when entering into some cpio archives (#3621) - * Subshell output lost on window resize under tmux, GNU screen (#3639) - * Subshell cursor position lost after window resizing (#3640) - * Listbox no longer scrolls when dragging outside widget (#3559) - * VFS: extfs: incorrect date parsing in unzip (#3622) - * VFS: extfs: buffer overflow (#3605) - * VFS: patchfs: syntax error (#3620) - * VFS: fish: mistakes in ls Perl helper (#3611) - - -Version 4.8.16 - -- Core - - * Support for ash + bugfixes for bash, fish (#2742) - * Find file: empty file name matches any file name (#3593) - * Find file: empty value of "Content" is used instead of "Search for content" checkbox to disable search for content (#3594) - * Listbox: don't wraparound on mouse scroll (#3554) - * Internals: - - Listbox: various fixups (#3569: #3562, #3563, #3565, #3161) - - Split MSG_ACTION into MSG_ACTION and MSG_NOTIFY (#3566) - -- VFS - - * Support lzip compression format (#2673, #1541) - * Support lz4 compression format (#3523) - * patchfs: support xz compression (#3443) - * Update uc1541 version (#3527) - * Add mc.ext patterns for initramfs / initrd (#3115) - -- Editor - - * Add golang syntax (MidnightCommander/mc#84) - * Update Puppet syntax (MidnightCommander/mc#86) - -- Misc - - * Code cleanup (#3555, #3547, #3587) - * Better subshell documentation (#3556) - * Fixes to the English man pages by Denys Vlasenko - -- Fixes - - * Insufficient quoting in `mc.menu` (#2947) - * Broken ./configure --without-internal-edit (#3601) - * Memory leaks (#3547, #3561, #3567, #3572) - * No preallocation if appending during file copy (#3577) - * Cannot set mini-format for "brief" listing type (#3588) - * Info panel: incorrect inode information in some cases (#3214) - * Info panel: wrong device name with symbolic link (#3412) - * Info panel: buffer overflow (#3582) - * Regression: match filename, not full path in mc.ext (#3578) - * Broken case insensitive search in non-unicode locale (#3491) - * Error message prefixed with no sense "0:" (#3269) - * mcedit: buffer overflow (#3579) - * mcedit: "Lower case selection" command in User Menu (#3586) - * mcedit: close on ctrl-g (#3557) - * mcview: "Not found" result isn't reported in some cases (#3543) - * VFS: isofs doesn't show .dotfiles (#3537) - * VFS: isofs: cannot copy file from iso when Joliet without RockRidge is used (#2851) - * VFS: extfs/unzip: enter into zip file fails with "inconsistent extfs archive" (#3433) - * VFS: SFTP: various bugs (#3581) - * VFS: FISH: provide major/minor info for block/char devices (#3599) - * Bashism in gitfs+ extfs helper (#3379) - * Non-portable invocation of man (#3509) - * mc-wrapper leaves MC_USER set (#3550) - * Broken silent opening of files in background (#3574) - * Run `identify` on JPEGs even if `exif` is not installed (#3568) - - -Version 4.8.15 - -- Core - - * Minimal version of GLib is 2.26.0 - * Use the PATH environment variable to search for the executable when opening pipe (#3444) - * Support more than 2 (up to 9) columns in file panel in brief mode (#3212) - * Clarify file sorting in "Unsorted" mode (#3496) - * WGroupbox: respect dialog's colors (#3468) - * Highlight find file's result in internal viewer (#3530) - -- VFS - - * s3 extfs vfs: bugfixes and improvements (#3470, #3502) - -- Editor - - * Add hidden option to choose full or base file name in the status line (#3445) - * Improvements of syntax highlighting: - - Lua (#3471) - - PKGBUILD (#3484) - -- Misc - - * Text alignment in Info panel (#3155) - * Select of menu file edit: change default button to "User" (#3493) - * Recognize .gmo files as well as .mo ones (#3422) - * Fix mc.pot comment tripping up Transifex and unportable inplace sed (#3479) - * A lot of code clean up (#3420, #3424, #3426, #3427, #3428, #3429, #3430, #3431, #3434, #3435, #3437, #3463, #3464, #3465, #3466, #3467, #3494, #3495, #3539) - * Documentation updates: - - Spanish man and help: Diff Viewer section and minor fixes (#3477) - - VFS garbage collection (#3472) - -- Fixes - - * Various memory leaks (#3438, #3439, #3440, #3457, #3458, #3459, #3460, #3461, #3462, #3475, #3520, #3521, #3522) - * Linux kernel-specific segfault on startup (#3441) - * Lost of Panelize contents in some cases (#3032, #3489, #3498, #3507) - * Wrong highlight of search result in case of "Regular expression" and "Whole words" (#3524) - * "Whole words" search works only in Normal mode (#3525) - * View find results doesn't jump to match line if file is too short to scroll page (#3530) - * SFTP VFS: segfault (#3456) - * Segfault in "Find file" due to invalid UTF-8 sequences (#3449) - * Bash variable 'PROMPT_COMMAND' in pantheon-terminal (#3534) - - -Version 4.8.14 - -- Core - - * Minimal version of GLib is 2.14.0 - * Add new panel binding "SelectExt" to select/unselect files with the same extension as the current file (#3228) - * Speed up of directory size calculation (#3247) - * Support of italic text (#3065) - -- Editor - - * New syntax highlighting support: - - puppet (#3266) - -- Viewer - - * Rewrite mcview's rendering and scrolling (#3250, #3256) - - no more partial lines at the top and failure to scroll when Up or Down is pressed; - - better handling of CJK characters; - - handle combining accents; - - improved nroff support; - - more conventional scrolling behavior at the end of the file. - * Use VIEW_SELECTED_COLOR in plain mode (#3405) - * In QuickView panel, don't pass any chars to command line to avoid unexpected command execution (#3253) - -- Misc - - * Code cleanup (#3265, #3262) - * Bind poedit to Edit action for .po files (#3287) - * Better grammar mcedit user menu (#3246) - -- Fixes - - * Fail to build against musl libc (#3267) - * Error compiling with glib 2.20.3 (#3333) - * Overwrite of the PROMPT_COMMAND bash variable (#2027) - * contrib/*.?sh are not recreated after rerun of configure (#3181) - * File rename handles zero-length substitutions incorrectly (#2952) - * Lose files on "Skip" when "Cannot preallocate space for target file" (#3297) - * Info panel can't obtain file system statistics on Solaris (#3277) - * "Shell patterns" broken beyond repair (#2309) - * File selection by patterns uses bytes instead of unicode characters (#2743) - * Copy files doesn't work as expected, when copying to a directory with the special symbol in its name (#3235) - * Wrong order of old_colors table items (#3404) - * Input line: Alt+Backspace on one-letter word erases too much (#3390) - * "Directory scanning" window is too narrow (#3162) - * No Help for User Menu (#3409) - * mcedit: paste from clipboard does not work (#3339) - * mcviewer: hang when viewing broken man page (#2966) - * mcview hex: incorrect highlight when search string not found (#3263) - * mcview hex edit: UTF-8 chars are not updated (#3259) - * mcview hex edit: can't enter certain UTF-8 characters (#3260) - * mcview hex edit: CJK overflow (#3261) - * mcedit: status line doesn't show full path to file (#3285) - * Freeze when copying from one FTP location to another (#358) - - -Version 4.8.13 - -- Core - - * New engine of user-friendly interruption of long-time operations (#2136) - -- Editor - - * Improvements of syntax highlighting: - - CMake (#3216) - - PHP (#3230) - * Translate language names in the spelling assistant dialogue (#3233) - -- Viewer - - * Add separate normal(default) colour pair for viewer (#3204) - * Dealing with utf-8 man pages in view/open (#1539) - * "Goto line" is 1-based now (#3245) - -- Misc - - * Code cleanup (#3189, #3223, #3242) - * Add new skins: gray-green-purple256 and gray-orange-blue256 (#3190) - -- Fixes - - * First Backspace/Delete is ignored after mouse click in an input widget (#3225) - * Recursive find file doesn't work on Samba share (#3097) - * Recursive find file doesn't work on Windows NFS share (#3202) - * Incorrect file counter in move operation (#3196, #3209) - * "Directory scanning" window is too narrow (#3162) - * Colon is not recognized inside escape seq in prompt (#3241) - * Quick view doesn't grab focus on mouse click (#3251) - * fish subshell: overridden prompt (#3232, #3237) - * mcviewer: broken switch between raw and parse modes (#3219) - * mcviewer: incorrect percentage in mcview hex mode (#3258) - * RAR VFS incorrectly recognizes UnRAR version (#3240) - * viewbold and viewselected are missing from some skins (#3244) - * Incorrect encoding name for manual page (#3239) - * "User menu -> View manual page" doesn't do coloring (#3243) - - -Version 4.8.12 - -- Core - - * Speed up of file find (#2290) - * If cwd is a symlink it is kept at startup (#3093) - * Improve support of Zsh (#3121, #3124, #3125, #3177) - * Launch external editor/viewer without passing line number (#3117) - * Exit without confirmation by default (#3132) - * Simple user-friendly skin selector (#2165, #3178) - * Use Joliet and RockRidge in ISO9660 image view action (#3187) - -- VFS - - * Use .zip extension as preferred way to recognize ZIP archives (#2857) - -- Editor - - * Configurable selection reset on CK_Store (#3111) - -- Misc - - * Code cleanup (#3113, #3151) - * Adjust script permissions to installed ones (#2274) - * Fix name of FSF in add source files (#3167) - * Skin cleanups (#3180, #3184) - * Do not consider "String not found" message as error (#3179) - -- Fixes - - * Broken build with NCurses (#3114) - * Incorrect tilde expansion in copy/rename/move dialog (#3131) - * Advanced chown: Escape on user list accepts value (#3150) - * Toggling hidden files using mouse doesn't update the other panel (#3156) - * Question mark in delete confirmation is on its own line (#3123) - * Popup dialogs wander upwards upon resize (#3173) - * Keypad '*' doesn't work with numlock off (#3133) - * Some inconsistencies in "Learn keys" UI (#3134) - * Unconventional behavior of "Display bits" dialog (#3152) - * Shift-Fn keys don't work in 256-color mode of tmux (#2978) - * mcedit: format paragraph produces inconsistent wrapping (#3119) - * mcedit: file out-of-date check on saving is botched (#3142) - * mcedit: 1st line is shifted after paragraph format (#1666) - * mcedit: trailing newline check applied too early when exiting (#3140) - * Inconsistency of the arrow's direction in the panel header line across skins (#3157) - * Possible segfault while passing messages to widgets (#3116) - * Possible segfault when freeing a VFS (#3116) - * Segfault in cpio VFS while reading corrupted RPM (#3116) - * Segfault in sftpfs VFS when trying to view a file (#3176) - * Incorrect handling of filenames with unrar v5 (#3073) - * FISH VFS: remote panel confused by filenames with '%' (#2983) - * iso9660: xorriso shows only one depth (#3122) - * Nicedark skin looks bad on black-on-white terminals (#3154) - * Incorrect definition of "topmiddle" and "bottommiddle" characters (#3183) - - -Version 4.8.11 - -- Core - - * Live update of panels size when editing layout (#3060) - * Support "Compute totals" option in move file operation (#2075) - -- VFS - - * rpm extfs - - show dependency version (#2812) - - support tar payload (#3064) - - improve support for EPOCH tag (#1588) - - add support for PREINPROG/POSTINPROG/PREUNPROG/POSTUNPROG, VERIFYSCRIPTPROG and TRIGGERSCRIPTS/TRIGGERSCRIPTPROG tags (#1588) - -- Editor - - * Support "bracketed paste mode" of xterm (#2661) - * Clarify Java syntax highlighting (#3057) - -- Misc - - * Print warnings about unknown '--with-' / '--enable-' configure options (#3029) - * Code cleanup and refactoring (#3051, #3066) - -- Fixes - - * FTBFS on GNU Hurd (#3053, #3071) - * Segfault while moving files (#3059, #3105) - * Broken handling of mc command line arguments (#3047) - * Copy/move doesn't work if num_history_items_recorded=0 (#3076) - * No subdir path completion in current dir, if stub is not starting with './' (#3018) - * Deprecated "find -perm +xxx" syntax is used (#3089) - * Home, End, Shift-Fn keys don't work in tmux (#2978) - * Improper [en|dis]abling of layout dialog split adjustment buttons (#3061) - * Bogus strings in 'Confirmation' config dialog (#2271) - * "Configure options" first entry not highlighted (#3084) - * "Setup saved to ~/.config/mc/ini" message is misleading (#3096) - * F3 doesn't work on .so files in FreeBSD 9.x (#3101) - * Typo in mc.lib: "less=%filename +%linenog" instead of "+%lineno" (part of #3044) - * Wrong order of filename and line number for external editor (part of #3044) - * mcedit: tabs are lost when text is pasted (#1797 as part of #2661) - * mcedit: question on large file treats Escape as Yes (#3107) - * Broken case-sensitive search in editor/viewer/diffviewer (#3069) - * Changes to files in nested .zip archives are lost (#3070) - * Incorrect handling of filenames with spaces with unrar v5 (#3073) - * iso9660 VFS: filenames truncating in ISO file listing (#3091) - * vfs_path_from_str_flags() doesn't support VPF_STRIP_HOME (#3098) - * Bright colors are used as background colors in 16-color skins (#3050) - * Various defects in documentation (#3052, #3092) - - -Version 4.8.10 - -- Core - - * Do not link GModule if it is not required (save space on embedded systems) (#2995) - * Behavior of the 'Right' key in the 'Directory hotlist' was changed: now 'Right' key is used only to enter into the group (#3045) - -- Misc - - * Code cleanup (#3035) - -- Fixes - - * Build failure on Cygwin (#3041) - * Broken NCurses detection (#3043) - * Broken handling of mc command line arguments (#3047) - * Cannot enter into zip archive in tar one (#3034) - * Cannot open some jar files - * mcedit: file descriptor leak (#3040) - * mcedit: paragraph format doesn't respect multibyte characters (#2713) - * Crash after entering a wrong SFTP password (#3036) - - -Version 4.8.9 - -- VFS - - * extfs: support unrar-5 (#3015) - * extfs: use xorriso (if exists) for writing into ISO images (#3027) - -- Editor - - * Support unlimited file size (#1743) - -- Misc - - * Lot of code cleanups (#2990, #2071, #2164, #2998, #3003, #3005, #3022) - * Display additional info while viewing (by F3) *.iso files (#2006) - * New skins: - - modarin256: set of 256-color skins from Oliver Lange (#2737) - -- Fixes - - * Fail to link if system lib does not contain strverscmp (#2992) - * Segfault when mc's temporary directory doesn't belong to the correct user (#3021) - * Race condition when creating temporary directory (#3025) - * Mouse doesn't work in screen and tmux (#3011) - * Incorrect file size in copy/move overwrite query dialog (#3000) - * Garbage in subshell prompt (#3001) - * Incorrect WLabel redraw after text change (#2991) - * Find File: "All charsets" options don't work (#3026) - * When an unknown key is pressed, it is interpreted as garbage (#2988) - * Segfault on creating new file in external editor (#3020) - * Rotating dash is not removed when mc finishes reading the directory (#2163) - * mcedit: word completion failed if word to be completed is begun from begin of file (#2245) - * mcview: broken switch between raw and parse modes (#2968) - * Hex viewer: continue search doesn't work (#2706) - * sftpfs: broken SSH aliases (#2923) - - -Version 4.8.8 - -- Core - - * Make copy/move progress dialog window wider up to 2/3 of screen width (#2076) - * Ask file name before create new file in editor (#2585) - * Support newer extended mouse protocol SGR-1006 instead of URXVT-1015 (#2956) - * Allow skip directory scanning before file operation. Print directory count and size in addition to directory name (#2101) - * Add jump support to target line in some external editors and viewers (#2206) - -- Editor - - * Update syntax highlighting: - - Jal programming language (#2855) - - gplink configuration files (.lkr extension) (#2855) - - Makefile with .mak extension (#2896) - - ZSH configuration files (#2950) - - Fortran (#2962) - -- Misc - - * Code cleanup (#2944, #2954) - * Report real compiler in MC_CHECK_ONE_CFLAG instead of 'gcc' - * Hints files now translated via Transifex (#2980) - -- Fixes - - * Segfault in file operation due to unhandled regexp error (#2493) - * Tab completion vs. spaces and escaping (#55)\ - * Special chars are not escaped in autocompletion of filenames (#2626) - * Buttons in the 'Directory hotlist' window are placed incorrectly (#2958) - * Mouse doesn't select text in subshell in native console (#2964) - * Mouse click below non-droppeddown menubar activates menu box (#2971) - * Insufficient quoting and wrong message in user menu (#2947) - * mcedit: floating point exception (division by zero) (#2953) - * mcedit: broken autocompletion (#2957) - * mcview: broken magic mode (#2976) - * Broken opening of .war archives (#2974) - - -Version 4.8.7 - -- Core - - * Minimal GLib version is 2.12.0 - * Implementation of suspend/resume in copy/move file operations (#2111) - * Start of widget subsystem reimplementation (#2919) - -- VFS - - * uc1541 extfs plug-in updated up to version 2.5 (#2935) - -- Editor - - * Reset selection after text paste (only in non-persistent selection mode) (#2660) - * Don't indent blank lines (#303). - * Add .psgi as Perl syntax highlighting (#2912) - * Place cursor after inserted chars (#319) - * Add option in ini file to save spelling language (spell_language=NONE for disable aspell support) (#2914) - -- Misc - - * Code cleanup (#2888, #1950) - * Minimal "check" utility version is 0.9.8 - * Remove the empty contrib/dist/debian/ since it maintained separately in Debian (#2871) - * mc.ext updates: - - add support of SVG images (#2895) - - add support of .asm file extension (#2892) - - add support of .hh file extension (#2892) - - all file extension for source files now are case insensitive (#2892) - - add support of JNG and MNG images (#2893) - - add support of Gnumeric's spreadsheets (#2894) - - add support of .war archives (#2891) - - make a choice between arj and unarj archivers (#2890) - - make a choice between 7z and 7za archivers (#2890) - - add support of ape, aac and wvm4a media formats (#2767) - - add support of cbr and cbz comic books (#2739) - - add support of epub e-book format (#2739) - - add support of PAR archives (#2739) - - use libreoffice instead of ooffice, if found, to open ODT files (#2723) - - use dvicat if dvi2tty not found to view DVI files (#1686) - - use 'see' utility as default pdf viewer, if found (#1686) - - use 'see' utility to view images in console (#1686) - * Highlight OGV files as media (#2934) - * Added new translations: - - Persian (fa) - - Croatian (hr) - -- Fixes - - * Build failure on Cygwin (#2917) - * Fail to check ncurses library if --with-ncurses-inc and --with-ncurses-libs options are used (#2926) - * Crash on Solaris while trying to copy a file (#2906) - * CVE-2012-4463: Does not sanitize MC_EXT_SELECTED variable properly (#2913) - * Attributes of existing directories are never preserved when copying (#2924) - * Broken path completion on paths starting with ~/ (#2898) - * Terminal settings are not changed when window is resized (#2198) - * Enter into symlink to compressed patch shows empty patch (#2910) - * Test failure on Cygwin due to incorrect linkage flag (#2918) - * Non-portable test (#2883) - - -Version 4.8.6 - -- Fixes - - * mcedit: two-columns extra offset of cursor after tab character (#2881) - * diffviewer: cannot open file if name contains '$' (#2873) - - -Version 4.8.5 - -- Core - - * Implemented case-insensitive patterns in mc.ext bindings (#2250) - -- Editor - - * Code refactoring and cleanup (#1977) - -- Diff viewer - - * Bidirectional merge (F5 merge left-to-right, F15 - merge right-to-left) (#2863) - -- Misc - - * Syntax highlighting news and updates: - - update assembler.syntax: x86 AMD64 registers highlighting (#2542) - - new cmake.syntax: preliminary and incomplete syntax file for CMakeLists.txt files (#2084) - - new dlink.syntax: syntax highlighting for D-Link switches command set (#2649) - - update properties.syntax: more nice look-and-feel (#1869) - * mc.ext enhancement (#2103): - - use chm_http text-mode handler for CHM files - - play sounds only from videos in text mode - - use pdftotext -layout -nopgbrk switches - - try to use elinks before links for HTML - - soffice2html text-mode handler for SXW files - - wvHtml text-mode handler for doc files - - xlhtml text-mode handler for XLS files - - ppthtml text-mode handler for PPT/PPS files - - open=view+pager fallback (noX) for PostScript, PDF, OD[PST] and DVI - - standardized $DISPLAY checks - * File extension support: - - SQLite database files (#2103) - - compiled Java files (*.class) (#2103) - - m4a for MP4 containers with audio data in the Advanced Audio Coding (AAC) or its own Apple Lossless (ALE, ALAC) formats (#2869) - - .ogm extension was deprecated in favor of .ogv (#2664) - -- Fixes - - * Bad EXTHELPERSDIR substitution if --prefix is not set (#2849) - * Partially broken loading of user-defined keymap file (#2848) - * Enter on directory named '~' goes to the home one (#2874) - * Cannot Copy/Move files with filename encoding change (#2791) - * Cannot view compressed files named like log.1.gz (with digit in name) (#2852) - * Panel is not refreshed if panel history is called using mouse (#2854) - * Duplicate entities in panel with 'tree view' mode (#2835) - * Broken synchronization with filelist and tree panels (#2862) - * Standalone mcedit doesn't load saved file position (#2853) - * mcedit segfaults when aspell (en) dictionary is not installed (#2856) - * mcedit segfaults after "Back from declaration" call (#2859) - * mcedit: unable to save changes in "Safe save" mode(#2832) - * Segfault when viewing HTML files with "mc -v" (#2858) - * Broken 'Enter' action on a rpm file containing space character in filename (#2838) - * extfs: uc1541 broken handling (#2864) - * mc.ext: OGV format handled as audio (#2869) - - -Version 4.8.4 - -- Core - - * Use xdg-open by default in mc.ext.in if present to open files, fallback on current scheme otherwise (#2118) - * Improve of mouse event handling in dialogs (#2817) - * Show extended info about compiled-in paths for internal/external macros in the "mc -F" output (2495) - -- VFS - - * Added SFTP support (#1535) - -- Editor - - * Multieditor: allow edit many files in one mcedit window (#2261, #2839) - * Aspell support for spell check (#2788) - -- Viewer - - * Handle CK_FileNext/CK_FilePrev actions inside mcviewer (#2814) - -- Misc - - * Tweak and cleanup of code in case of --disable-charset option usage (#2827) - * File extension support: - - .gem - rubygems (#2797) - - .cpio.xz - compressed cpio archives (#2798) - - .webm - WebM video (#2746) - - .lib - gputils artifacts (#2751) - -- Fixes - - * Build failure on FreeBSD 6 (#2808) - * src/filemanager/filegui.c does not compile on Solaris due to missing macros (#2825) - * Loss of data on copy to full partition (#2829) - * Crash at Chown command (#2784) - * Crash when creating relative symlink (#2787) - * Misinterpretation of dirs as command line arguments (#2783, #2805) - * Number of panelized files was limited to 127 (#2813) - * CK_History removes CK_HistoryNext entries (#2313) - * URL with port was stored wrong in history (#2833) - * Can't find 00 (zeroes) in patterns in hex search (#2795) - * Hotkey conflicts in 'Search' dialog (#2843) - * Error message when entering into compressed tar and cpio archives (#2785) - * Garbage directory listing in ftpfs (#2800) - * Incomplete sand256 skin (#2807) - * mcedit scripts are installed as data files (#1437) - * Fails to build from source with --enable-tests (#2786) - * Tests failure on PowerPC,S390,S390x (#2804) - * Fail to compile if --without-vfs configure option specified (#2834) - * do_panel_cd: FTBFS with --enable-tests on [kfreebsd-i386,kfreebsd-amd64,ia64,armhf] (#2803) - - -Version 4.8.3 - -- Misc - - * Code cleanup (#2780) - -- Fixes - - * Broken support of XDG_* shell variables (#1851) - * Segmentation fault while background copying (#2663) - * MC ignores second directory argument (#2762) - * Interpretation of LANG variable needs to be case insensitive (#2386) - * Cannot copy zero-length files with "Preallocate space" option (#2755) - * Problem in the Copy operation with unchecked the "Preserve attributes" option (#2278) - * * Cursor position reset after update when panel is panelized, but doesn't (#2766) - * File selection reset after exit from the archive in the root (#2776) - * Hotlist: broken newly added entries if old-style path is present (#2753) - * Can't rebind Fx keys in the file manager (#2384) - * "justified" menu alignment (#2756) - * The last (or single) word of hyperlinks in the interactive help don't act on mouse clicks (#2763) - * 'cd' command is not working in shell link (#2758) - * mc hangs on switching screens (#2608) - * Case sensitive search with SEARCH_TYPE_PCRE is broken (#2764) - * mcedit can't run w/o file as parameter (#2754) - * mcedit can't record input char (#2757) - * mcedit: save file on top of existing directory changes dir's permissions (#2761) - * Unable to edit gzipped files (#2759) - * mcedit hangs up on replace with regexp contains '^' or '$' (#1868) - * Segfault after open incorrect archive (#2775) - * mcdiff crashes if one panel is not in the listing mode (#2769) - * The password for vfs sessions remains in input history (#2760) - * Showing directory sizes is broken in VFS'es (#2765) - * Stale symlinks in vfs (#2777) - * Active VFS directories list contain incorrect current path (#2779) - * Date not set properly in manpage (#2692) - * Empty texinfo rule in mc.ext (#2774) - * Test failure if 'HOME' contains trailing slashes (#2768) - - -Version 4.8.2 - -- Core - - * Added new flag -X (--no-x11) to allow don't use X11 to get the state of modifiers Alt, Ctrl, Shift (#86) - * Support of '~' as home dir in 'Start at:' field in 'Find File' dialog (#2694) - * Support of '~' as home dir in hotlists (#2747) - * Learn of 'Back Tab' is possible now in 'Learn keys' dialog (#2628) - * Optional '0x' prefix for hexadecimal search (#2705) - * Dynamically resize panels (#2465) - * New bindings (ScrollLeft, ScrollRight) for scroll long filenames in panels (#2731) - -- VFS - - * Internal VFS reorganization (#2695) - -- Editor - - * Added as.syntax (#2708) - -- Viewer - - * Added action bindings for backward search (#2105) - -- Misc - - * Added hotkeys for all radio/check-buttons in search/replace dialogs (#2704) - * New file bindings: - - .m4v, .ts - video (#2702) - - djv - DjVu? (#2645) - * Simplify mc.menu - remove LZMA|LZ and change p7 to 7z (#2703) - * Updated list of known browsers: gnome-moz-remote mozilla firefox konqueror opera (#2725) - * Added MC_HOME environment variable to set up home directory of MC (as part of #2738) - * Lot of code cleanup (#2740) - -- Fixes - - * Compile failure of 4.8.1 on xBSD because "Undefined symbols: _posix_fallocate" (#2689) - * MC deletes the wrong file because of forced panel reload before file operation (#2736) - * Cannot chdir to directory if directory name contains the dollar sign (#2451) - * Incorrect panel size after change panel split type (#2521) - * Wrong total bytes counter for subdirs in copy/move dialog (#2503) - * Display corruption in panels after window shrink (#2684) - * Command line is unaccessible from tree panel (#2714) - * Extra confirmation before delete an empty hotlist group (#1576) - * Can't open an edit zero-length file from VFS in mcedit (#2710) - * mcedit crashes when ~/.config is a file (#2738) - * mcedit: reset selection after END/HOME/PgDn/PgUp (#2726) - * 'make check' fails on arm and alpha (-z muldefs) (#2732) - - -Version 4.8.1 - -- Core - - * Use posix_fallocate64() when copying files/moving to a new mount point (#2610) - * Faster startup (#2637) - * Support of extended mouse clicks beyond 223 (#2662) - -- VFS - - * Added exit point ("..") at the top of file list (after external panelization) (#275, #278) - -- Editor - - * Lex/Flex sources (extension .l) handled by yxx.syntax file. Yacc/Bison syntax completed with all symbols (#1647) - * Updated syntax files: - - lua - -- Misc - - * Updated skins: - - sand256 (#2640) - - xoria256 (#2641) - * Added ability to move MC config files to specified place instead of multiple places in $HOME (#2636) - * Added configure option --with-homedir (default value: XDG) (#2636) - * Respect traditional placement of user preferences on Mac OS X (#2658 as part of #2636) - * A few useful additions to filehighlight.ini (#2646) - -- Fixes - - * Doesn't compile when using --disable-nls (#2639) - * Can't compile on OpenIndiana (Solaris) (#2643) - * Moving content of bindings to mc.ext during 4.7 -> 4.8 upgrade breaks mc - * Free space on filesystems >2TB is not displayed properly (#2338) - * Not all errors are skipped after "Ignore all" choose (#71) - * Input field in password mode is fully masked with asterisks (#2653) - * In "Copy File" dialog the "preserve Attributes" checkbox is always unchecked for filesystems mounted with FUSE (#2254) - * Command line cursor misplaced after a resize in viewer/editor (#2678) - * Save of some learned keys is broken (#2676) - * Editor sometimes shows two dots instead of letter (#2372) - * Editor: word completion should ignore the current word (#2614) - * Viewer sometimes shows two dots instead of letter (#1730) - * Viewer shows two dialogs when searcj hot found (#2677) - * Cannot navigate over spftp servers (#2634) - * mc adds spaces at the beginning of all files/dirs on ftp servers (#2635) - * VFS: broken SMB (#2652) - * man page lies about mc.keymap (#2675) - * mc does not preserve file mtime when copying over ssh (#2625) - - -Version 4.8.0 - -- Misc - * Code cleanup (#2620) - * License version updated to GPL3+ (#1551) - * Added new translation: - - Interlingua - -- Fixes - * Viewer: cursor position is not restored in hex mode (#2543) - * fish: broken panels drawing after entering password (#2611) - * fish: content of modified file is appended instead of overwritten in the remote host (#2632) - * extfs: broken navigation in archives if current path is encoded (#2621) - * extfs: strange error message when opening a 7z file if p7zip is not installed (#2598) - - -Version 4.8.0-pre2 - -- Core - - * Added -g/--oldmouse option to support of NORMAL/BUTTON_EVENT mouse type (useful for screen/tmux) (#2601) - -- VFS - - * New extfs plugin: gitfs (#2467) - * patchfs enhancement: join several hunks of the same file into one VFS entry (#2573) - -- Misc - - * mc.ext: use "include" for $EDITOR entries (#1689) - * New file bindings: - - .3gp - video (#2583) - -- Fixes - - * Cannot compile 4.8.0-pre1 and 4.7.5.3 on Solaris (#2587) - * Recent autoconf displays warnings about missing AC_LANG_SOURCE (#2589) - * Duplication of variable declarations (#2576) - * Incorrect TTY layer initialization (#2601) - * Wrong Backspace key behavior in QuickSearch mode if BS key is mapped to CdParentSmart action (#2522) - * M-o works unexpectedly on symlink shortcuts (#2590) - * Panelize doesn't honour current sorting (#2175) - * Hintbar jumps to the top of the screen and overwrites main menu (#2593) - * File size column is bogus for widths above 9 (#2580) - * Hex search: incorrect length usage in hexadecimal search (#2579) - * Editor: Incorrect Pascal syntax highlighting (#2531) - * Editor: mouse clicks are ignored on the bottom line (#2591) - * Editor: extended keybingings are broken (#2586) - * Viewer: Fixed search finds bold/underlined strings twice and highlight search results (#265) - * Broken listing in ExtFS VFS module (#81) - * File name length is limited in tar archive (#2201) - * Crash when copying symlink over ssh (#2582) - * Broken panels recode (#2595) - * ftp failures - leading white space in file name (#2594) - * FISH hangs while copiyng a lot of small files (#2605) - - -Version 4.8.0-pre1 - -WARNING: Configuration files was moved from your $HOME/.mc directory into -XDG_CONFIG_* directories to respect FDO standard -(http://standards.freedesktop.org/basedir-spec/basedir-spec-0.7.html). -To get more information, see ticket #1851. - -WARNING: VFS paths now handled as vfsprefix1://vfsdata/vfsprefix2://vfsdata -(see #2361). Also, 'bindings' user file was renamed to 'mc.ext', so you need -search in this file all - - Open=file.ext#vfsprefix - -and replace them to - - Open=file.ext/vfsprefix:// - -After this you should rename your 'bindings' file to 'mc.ext'. -Old-style paths are handled just in 'Directory hotlist' dialog, but you couldn't -mix URL-like and old style path elements in one path string. Support of old-style -paths will be removed in next major release (probably in 4.9, who knows...) - -WARNING: keybinding names was renamed to provide some unification (see #2511). -The correspondence of old and new keybinging names are described in doc/keybind-migration.txt -file and in doc/keybindMigration web page. - -Be aware. - -- Core - - * Added 256 colours support (#2169, #2173, #2475) - * Changed default text in filtered view (alt-!) to input command line (if not empty) - or stay old behaviour (current file under cursor) (#2266) - * Added simple swap mode that means the swap of panel locations, in addition to current swap - of panel content (#2368) - * Configuration files now moved to directory specified in XDG_CONFIG_HOME environment variable (#1851) - * Panel options are read now from [Panels] section only. [Midnight-Commander] section is not read (#2305) - * "Show mini info" checkbox was moved from the "Layout" dialog window to the "Panel options" one (#2305) - * Select files by shift-left/right in file panel (#2534) - * Added support of skip all errors on multi-file/dir operation (#71) - * 'Find Files' improvements: - - support relative ignored directories (#2275); - - handle of ignored directories in dialog window (#2275); - - "Search for content" checkbox is enabled by default (#2462) - * Added hardlinks detection for filehighlight (#2478) - * Unification of keybind names (#2511): - - most of keybinding names are changes to unify that names. Table of old and new names - is available in doc/keybind-migration.txt; - - improve of key rebinding: previously, to rebind some keys, used must redefine the entire section - where that bindings are placed in user keymap file. New merge algorithm doesn't require that - and allows rebind only wanted keys; - - added --nokeymap command line option to disable external keymaps - * Sources in 'lib' directory now independent to sources in 'src' one (#2501) - * Added configure parameter --enable-mclib for build libmc.so shared library (#2501) - * Added new engine for universal event system (as part of #2501) - * Optimized loading and saving of configurations and histories (#2541, #2545) - * Reimplemented i18n support in 'Chmod' dialog window (#2557) - -- VFS - - * VFS structure changes (as part of #2501): - - moved from lib/vfs/mc-vfs to lib/vfs; - - split VFS-modules by directories and moved to src/vfs; - - lib/vfs/vfs-impl.h was merged into lib/vfs/vfs.h - * VFS now used URL-like paths (#2361) - -- Editor - - * New engine of the editor macro (#323) - * Multiply repeat of the recorded actions (#323) - * Call external scripts from the editor (#323, #2512) - * Added REDO action (#25) - * Group UNDO by action (#27) - * Selection is not reset after execute user menu (#2463) - * Vertical selection is not reset after copy/move (#2504) - * More intuitive word left/right action (now the cursor stop beside EOL/BOL) (#2483) - * Duble-click marks the current word. Added action MarkWord to mark word, MarkLine - to mark current line (#2499) - * Regexp search&replace: support escape sequences in replacement string (#1882) - -- Misc - - * Minor enhancement in mc.ext: - * added -C key to nm utility in View action for static libraries (#2485) - * New file bindings: - - .torrent: view using ctorrent (#2562); - - .mts: handle as videofile (#2566) - * Added new entries in cedit.menu: "Sort selection", "Upper case", "Lower case" - * New skins: - - Xoria256 (#2469) - - mc-4.6 (#2524) - * Updated skins: - * Nice dark (#1791) - * Added support for check unit test framework (http://check.sourceforge.net) (as part of #2501) - * Added -F/--datadir-info option to show extended information about used data dirs (#2495) - * Added --configure-options to easy update & reconfigure existing mc (#2495) - * Language-specific man pages and hint and help files are not installed - if mc is built with --disable-nls option (#2514) - * Added new translation: - - Esperanto - * Code cleanup (#2481, #2515, #2518, #2560, #2570) - -- Fixes - - * Build failure on DragonFly BSD (#2516) - * Broken Del & Backspace in dialogs (in locale CP866) (#1634) - * Screen and input corruption under xterm in non-UTF locales (#1668) - * Alt-Backspace shortcut doesn't work (#2455) - * Broken command autocompletion (#2458) - * Swap panels doesn't respect sort options (#2368) - * File list format of panel is initialized incorrectly after switch back from quick view - or info mode to file list one (#2390) - * Main menu is not drawn correctly after change of it visibility and activity (#2466) - * MC switches to left panel after call of command history using mouse (#2459) - * Find file: don't check content regexp if search for content is not used (#2464) - * Find file: broken lynx-like navigation in panelization of search result (#2491) - * Dialog trims leading spaces in input field (#2544) - * Panelize content is lost when doing F5/F6/F8 on a file on the other panel (#2312) - * Color of panel header cannot be set in the command line (#2170) - * ctrl-g key closes file panels (#2520) - * Incorrect files mark by mouse (#2556) - * Editor: incorrect restore selection after UNDO (#2456) - * Editor: segfault after getting the previous char in utf8 (#2484) - * Editor: incorrect detection of the word boundary (added '{', '}' as end of word) (#2500) - * Bold and selected colors of viewer cannot be set in the command line (#2489) - * Viewer: fixed incorrect starting offset for 'search again' (#2294) - * Viewer: fixed problems while displaying UTF-8 manual pages (#1629) - * Diff viewer: quick left/right movements don't work in non-default key maps (#2509) - * AI_ADDRCONFIG is not optional for RFC 3493 non-compliant systems (#2401) - * FTP directories containing @ result severe security risks (eg. deletion of homedir) (#2220) - * Builtin ftp client can't download files with apostrophe in a file name (#2251) - * Unable to show FTP listing if password contains # (#2360) - * FTP: fixed access to file names starting with space (#81) - * Bashisms in extfs (#2569) - * Browsing *.deb files is broken with latest Perl (#2552) - * isoinfo adds ";1" to the end of file name when Joliet without Rock Ridge is used (#2471) - * patchfs incorrectly works with filenames containing spaces (#2572) - * cd to ~ processed incorrectly in the command line if more than one space is separating - the "cd" and "~" (#2120) diff --git a/recipes/wip/files/mc/source/doc/README b/recipes/wip/files/mc/source/doc/README deleted file mode 100644 index 5b71024383..0000000000 --- a/recipes/wip/files/mc/source/doc/README +++ /dev/null @@ -1,185 +0,0 @@ -Contents --------- - -* Introduction -* Dependencies -* Features -* Mini-documentation -* Where to get more information -* Reporting problems - - -Introduction ------------- - -GNU Midnight Commander (also referred to as MC) is a user shell with -text-mode full-screen interface. It can be run on the OS console, -in xterm and other terminal emulators. - -GNU Midnight Commander allows you to manage files while making the most of -your screen and giving you a clear representation of the filesystem, yet -it's simple enough to be run over a telnet or ssh session. - -GNU Midnight Commander is released under the GNU General Public -License version 3 or any later version. A copy of the file is -included with this distribution package. - - -Dependencies ------------- - -Please read the file INSTALL for installation instructions -and full list of dependencies. - - -Features --------- - -GNU Midnight Commander was conceived as a free clone of John Socha's -Norton Commander (TM). It also takes the best from more recent software -with similar interfaces. GNU Midnight Commander comes with mouse support -on xterm and optionally on the Linux console. - -Some features are specific to the POSIX environment MC runs on, some are -familiar to the users of similar software for other operating systems. -The features include: - - * Built in Virtual File System: manipulate remote file systems - through the FTP and SFTP protocols or over secure shell, browse - contents of tar, ar, rpm, zip, cpio, lha and rar archives just - like local files. - - * Almost all operations work with the virtual file system, - enabling you to do complex tasks, like viewing files in - archives on an FTP server. - - * Mouse support on most terminal emulators for X Window System - as well as on the Linux console. - - * Learn Keys: GNU Midnight Commander may be configured at run - time to support any kind of input keys for a given terminal, - making its operation possible even on most weird terminals. - - * Text and hex editors are available for you to use (hex editor - is a part of the viewer). - - * Hotlist allows you to keep a list of common visited locations, - including remote sites and directories inside archives. - - * Command completion: By pressing Alt-Tab in any place where a - filename or an executable are expected, GNU Midnight Commander - will complete the name for you. If you press Alt-Tab for the - second time, you get a list box with all possible completions. - - * Subshell support: Run your commands by a real shell - interpreter. GNU Midnight Commander interacts with bash, - tcsh and zsh to provide you with all of the facilities - available in your preferred shell. - - * Find file command can search for the file contents. - - * Background operations allow you to copy or move files from - any virtual file system while you do other tasks (i.e., you - can do background FTP copies). - - * FTP proxy is supported. - - * Linux file recovery: If you are using Linux, you can recover - deleted files from an ext2 or ext3 partition with the undelete - file system. This is a low level file recovery function that - can recover files deleted by any program on Linux. - - * External panelization: You can run any arbitrary external - command and GNU Midnight Commander will display the output - generated as a file listing that can be manipulated as a - regular directory. - - * Emacs-like key bindings are used in all widgets. - - * Context dependent actions (open, view, edit) are available. - - * The built-in file viewer, together with the context dependent - actions is used to format man pages on the fly, coloring mail - messages and more. - - * The built-in editor supports syntax highlighting and external - actions, such as spell checking and formatting. - - -Mini-documentation ------------------- - -These are hints for the text mode edition: - -* Use the F-Keys for invoking the commands in the function key bar. - If your terminal doesn't support F-keys, you can use the - sequence to invoke the corresponding F-digit key. - -* Tab changes the current panel. - -* All input lines have emacs-like key-bindings (command history is - accessed through the M-p and M-n keys). - -* The panels accept C-n, C-p for browsing the panel (like in Emacs). - -* M-Enter copies the currently selected file name to the input line. - -* M-Tab completes the current word (or tries to). - -* The Virtual File System is a cute addition to the project, you may - browse in tar and compressed tar files as well as browsing remote - machines with the shell file system. - -* Please read the manual page. - -You can access the whole documentation online with the F1 key, -although it's not as nice as the groff printed manual page :-) - - -Where to get more information ------------------------------ - -There is a webpage for GNU Midnight Commander at - -* https://www.midnight-commander.org - -This page also has current information about mailing lists and some -useful advices how to report bugs. - -You can download the latest version of GNU Midnight Commander from - -* https://www.midnight-commander.org/downloads/ - -The Midnight Commander distribution is placed at: - -* http://ftp.osuosl.org/pub/midnightcommander/ -* ftp://ftp.osuosl.org/pub/midnightcommander/ - -Reporting problems ------------------- - -You can report bug on our site, please read - -https://www.midnight-commander.org/wiki/doc/reportDefects - -Also you can use mc mailing lists to discuss problems. - -There are two mailing lists: - - - mc@lists.midnight-commander.org - - mc-devel@lists.midnight-commander.org - -Use mc-devel@ if you are prepared for a more technical discussion -with the developers of the package, otherwise use mc@. - -Include the output of "mc --version", the operating system and the -distribution (if applicable) you are using, the compiler and the -configure flags used to compile the program (if you know them). - -If the program crashed and produced a core dump, please provide a -stack trace of the program. - -You can do this by running gdb like this: - -gdb mc core -(gdb) where diff --git a/recipes/wip/files/mc/source/doc/TODO b/recipes/wip/files/mc/source/doc/TODO deleted file mode 100644 index d29eda78ce..0000000000 --- a/recipes/wip/files/mc/source/doc/TODO +++ /dev/null @@ -1,258 +0,0 @@ -mc manual: Add Environment Variables section - -Clean up #include's in all files. - -Remove all instances of type casts on function pointers. Run the -following command to get a list of function pointer types. - grep -r 'typedef.*(\*' . \ - | sed -n 's/.*(\*\([[:alnum:]_]*\)).*/(\1)/p' \ - | sort -u \ - > fn-types.txt -Then use fgrep to find illegal uses of these types. - fgrep -r "`cat fn-types.txt`" . -Fix these uses by writing small wrapper functions. - -When saving a file is not possible, mcedit should ask the user what to -do: -- su(1) to another user and try again -- sudo -- change permissions of the file or the containg directory -- other smart things - -Due to problems in the VFS, files are not written back after being edited -over VFS with an external editor. - -Allow pathnames starting with spaces in vfs/extfs. - -Broken pipe warning when viewing large *.tar.gz files. Warnings should -be shown before the viewer is started if possible. - -Cannot spell check unsaved files in the editor. - -Dynamic loading for libgpm, libext2fs. - -Check if the archive was changed for extfs, tar and cpio. Free the data -associated with the old archive. - -Ctrl-q Ctrl-m in input dialog should enter \r, not a newline. - -Allow entering archives in VFS by Ctrl-PgDown with non-empty command -line. Right now, there is no convenient way to enter an archive when -the command line is not empty. - -Allow switching between histories of two panels. It's convenient to -change to a directory from the history of the other panel. - -Allow calling the directory hotlist from Copy, Move and Find File -dialogs. Recent directories are the obvious candidates for copying and -looking for files. - -Allow modifiers for keys in mc.lib, like "shift-up". Right now, -modifiers can be read from the terminal (if supported), but not from the -config file. This change would make it possible to use modifiers even -if they can only be identified by the escape sequences. - -When saving config files, write to a copy, then replace the file. This -would avoid the problem of partly written config files. Consider using -locking of the config files. - -Totals should only be omitted for single files. - -Recheck all mouse handlers, make sure that they check button number. We -don't want mouse scrolling to be interpreted as mouse click. - -Smooth mouse scrolling on panels. Scrolling one page per step is too -fast. - -Don't read prompt from the subshell, because it's unreliable. Interpret -environment variable MC_PS1 (or PS1) in the same way as bash. - -Support an environment variable (also like PS1 in bash) for setting the -window title. - -Better date parser - don't allow seconds and year in ftp listings on the -same line. - -Report errors in shell operations and recover from them. - -Allow colors to be defined in the mc.lib file. Make it possible to -avoid using a super-long line to redefine all colors. - -Filters in the editor should operate on the open file - don't close and -reopen the file. They don't work on VFS now. For example, a gzipped -files on FTP cannot be edited. - -ftp and shell with home != '/' - readjust directory to the home. - -Make "Find File" dialog more responsive. Keep state in a structure and -preserve it when the search is suspended. - -Use KDGKBENT ioctl on Linux console to find the mapping for shifted -functional keys. Two mappings are widely used (Shift-F1 = F11 and -Shift-F1 = F13). mc should adjust the keys to the mapping. - -Make the internal editor reentrant. - -Consistent support for mc.lib. - -Consistent support for terminal-specific settings. - -New syntax for mc.ext - path check, desktop environment check. Detach X -programs into a separate process group. Allow forcing the full path on -local files. - -Click on an image doesn't always work on remote vfs - local copy may -be deleted before the application has time to load it. - -Allow running executables from remote VFS. Possibly warn the user. - -Add print dialog in the internal editor. - -Implement logging, not just for VFS. - -Eliminate all pipes in subshell.c, run pwd after kill. Add support for -more shells (e.g. ksh). - -Internal terminal - no more console saving. - -Implement a really Advanced Chown/Chmod. - -fxp support in VFS. - -New listing mode keyword "time": mtime or the time (atime, ctime) used -to sort files. - -Provide "patch" and "diff" editors. The patch editor will automatically -adjust the line numbers of the following chunks when lines are deleted -or inserted at the beginning of the file. - -Provide context menus for files. Possible actions include: [compile], -[CVS commit], [CVS diff -up], [pack], [unpack], [grep]. - -More standard Widgets: WTreeView, WDirectoryList, WGroupBox, WTextArea, -WOpenDialog, WSaveDialog, WPrintDialog, WKeyBar. - -======================================================================== -Everything below this point is the old TODO list. It doesn't reflect -the current priorities of the developers, but may contain interesting -ideas still waiting for their implementation. -======================================================================== - - -* Bugs - - - "Files" message flickers a lot when copying files. - - - Make the extfs handle re-reads. - - - Check that all the help contexts exist on the help file. - - - Make the buttonbar for the tree box work. - - - In the incremental search mode, when backspacing, select the - correct file, do not stop in current file. - - - In learn keys, warn the user if he is trying to - i) define a same sequence as an already defined (if the keycode differs) - ii) define a sequence, which is a prefix of other longer and already - defined sequence - -* Documentation - - - Convert the source mc.1 to mc.sgml and create automagically from it - mc.1, mc.html, mc.hlp, mc.info, mc.tex, mc.txt etc. - -* Extensions - - - Hotlist should allow people to edit the entry (like we do in the external - panelize thing). - - - Change ext.c to allow the %{..} to recursively expand any other %thingies. - - - Write a general grow_string routine. This code is used in the internal - viewer and would also be used in the profile.c code. - - - A command to set the line length to a fixed value for viewing - fixed length binary files. LIST does this with Ctrl-B and then - prompts for a "record" length. - - - Viewer: Mark all found matches, and when 'n' is pressed go to the - next page, not the next match on the same screen (when there is - more than one). - - - In ftpfs_open, extfs_open, if we set local_filename to tmpnam, use - a mechanism to set local_filename to another place on the local - diskspace (this would be useful for copying, so that we would save - some tmp space). This would require special care in file.c afterwards. - - - In Listing mode... give at least three user-definable formats - (using Janne's Listing mode editor) and assign hot-keys to both - standard and user defined (what about c-x f [fbl123] ?). - - - Shift-Home, Shift-End for the input line: home and end. - - - Make a mechanism to lock all the mouse events and send them to - the locking widget until unlocking is done. - - - Allow the program to execute a command even when we are on a vfs, maybe - a special box, or make subshell code ignore the change directory - request. Perhaps each vfs should store a local path attached to it, - like in tarfs, extfs it would be the directory which contains the - topmost tararchive, in ftpfs it would be the directory which we entered - to ftp from. - - - auto_hint_lines: a variable that would choose to use hint mode when - at least auto_hint_lines are visible. - - - Listbox: Mouse handler for the scrollbar: this will be hard with - the current approach (since the listbox scrollbar is drawn *outside* - the listbox control area). - - - In file.c, we shouldn't need to get a full path name in order to - work, we should instead canon the file name inside the tar.c (the - only fs that relies on this), tar.c should know about the cwd (i - think). - - - Panelize the selected files. - - - Recursive delete should (perhaps as an option) delete files just after - they have been copied and not to delay deleting until everything was - moved. - - - When copying a tree (or moving or deleting), as an option act primarily - on the regular files and at the end on directories recursively, so that - we get complete high parts of the tree if something fails (useful for - ftpfs). - - - Put into a new and bigger Options/Configuration dialog all the options - we have now to set using .mc/ini manually. - - - When after deleting there are no files in a panelized panel, restore - it automagically to the real directory content. - - - Files/Symlink and Link should be able to do multiple links (if the - target is a directory). - - - Directory sizes should work in background using try_channels. - - - Support of non-UNIX ls in ftpfs. Perhaps using an ascii configuration - file similar to moxftp. - - - Add an option that will let listboxes do incremental searches. - -* Optimizations and cleanup - - - When verbose is off, remove all the clutter on the screen about - the files being copied. - - - The viewer is calling view_update in many places, I call - view_update after handling a key, should all the other - view_updates be removed? - - - If the viewer is too slow, some caching could be done. - width and cols are currently computed each time they are needed. - - ++ In the user menu, don't use the entries array, we can now grow - dynamically. I should take a look at this one day, it's easy to - fix. - diff --git a/recipes/wip/files/mc/source/doc/doxygen-include.am b/recipes/wip/files/mc/source/doc/doxygen-include.am deleted file mode 100644 index ab87a45c4c..0000000000 --- a/recipes/wip/files/mc/source/doc/doxygen-include.am +++ /dev/null @@ -1,203 +0,0 @@ -# --------------------------------------------------------------------------- -# Licensed to the Apache Software Foundation (ASF) under one or more -# contributor license agreements. See the NOTICE file distributed with -# this work for additional information regarding copyright ownership. -# The ASF licenses this file to You under the Apache License, Version 2.0 -# (the "License"); you may not use this file except in compliance with -# the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# --------------------------------------------------------------------------- - -# Copyright (C) 2004 Oren Ben-Kiki -# This file is distributed under the same terms as the Automake macro files. - -# Generate automatic documentation using Doxygen. Goals and variables values -# are controlled by the various DX_COND_??? conditionals set by autoconf. -# -# The provided goals are: -# doxygen-doc: Generate all doxygen documentation. -# doxygen-run: Run doxygen, which will generate some of the documentation -# (HTML, CHM, CHI, MAN, RTF, XML) but will not do the post -# processing required for the rest of it (PS, PDF, and some MAN). -# doxygen-man: Rename some doxygen generated man pages. -# doxygen-ps: Generate doxygen PostScript documentation. -# doxygen-pdf: Generate doxygen PDF documentation. -# -# Note that by default these are not integrated into the automake goals. If -# doxygen is used to generate man pages, you can achieve this integration by -# setting man3_MANS to the list of man pages generated and then adding the -# dependency: -# -# $(man3_MANS): doxygen-doc -# -# This will cause make to run doxygen and generate all the documentation. -# -# The following variable is intended for use in Makefile.am: -# -# DX_CLEANFILES = everything to clean. -# -# This is usually added to MOSTLYCLEANFILES. - -## --------------------------------- ## -## Format-independent Doxygen rules. ## -## --------------------------------- ## - -if DX_COND_doc - -## ------------------------------- ## -## Rules specific for HTML output. ## -## ------------------------------- ## - -if DX_COND_html - -DX_CLEAN_HTML = @DX_DOCDIR@/html - -endif DX_COND_html - -## ------------------------------ ## -## Rules specific for CHM output. ## -## ------------------------------ ## - -if DX_COND_chm - -DX_CLEAN_CHM = @DX_DOCDIR@/chm - -if DX_COND_chi - -DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi - -endif DX_COND_chi - -endif DX_COND_chm - -## ------------------------------ ## -## Rules specific for MAN output. ## -## ------------------------------ ## - -if DX_COND_man - -DX_CLEAN_MAN = @DX_DOCDIR@/man - -endif DX_COND_man - -## ------------------------------ ## -## Rules specific for RTF output. ## -## ------------------------------ ## - -if DX_COND_rtf - -DX_CLEAN_RTF = @DX_DOCDIR@/rtf - -endif DX_COND_rtf - -## ------------------------------ ## -## Rules specific for XML output. ## -## ------------------------------ ## - -if DX_COND_xml - -DX_CLEAN_XML = @DX_DOCDIR@/xml - -endif DX_COND_xml - -## ----------------------------- ## -## Rules specific for PS output. ## -## ----------------------------- ## - -if DX_COND_ps - -DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps - -DX_PS_GOAL = doxygen-ps - -doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps - -@DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag - cd @DX_DOCDIR@/latex; \ - rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ - $(DX_LATEX) refman.tex; \ - $(MAKEINDEX_PATH) refman.idx; \ - $(DX_LATEX) refman.tex; \ - countdown=5; \ - while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ - refman.log > /dev/null 2>&1 \ - && test $$countdown -gt 0; do \ - $(DX_LATEX) refman.tex; \ - countdown=`expr $$countdown - 1`; \ - done; \ - $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi - -endif DX_COND_ps - -## ------------------------------ ## -## Rules specific for PDF output. ## -## ------------------------------ ## - -if DX_COND_pdf - -DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf - -DX_PDF_GOAL = doxygen-pdf - -doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf - -@DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag - cd @DX_DOCDIR@/latex; \ - rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \ - $(DX_PDFLATEX) refman.tex; \ - $(DX_MAKEINDEX) refman.idx; \ - $(DX_PDFLATEX) refman.tex; \ - countdown=5; \ - while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \ - refman.log > /dev/null 2>&1 \ - && test $$countdown -gt 0; do \ - $(DX_PDFLATEX) refman.tex; \ - countdown=`expr $$countdown - 1`; \ - done; \ - mv refman.pdf ../@PACKAGE@.pdf - -endif DX_COND_pdf - -## ------------------------------------------------- ## -## Rules specific for LaTeX (shared for PS and PDF). ## -## ------------------------------------------------- ## - -if DX_COND_latex - -DX_CLEAN_LATEX = @DX_DOCDIR@/latex - -endif DX_COND_latex - -.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL) - -.INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) - -doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag - -doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL) - -@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS) - rm -rf @DX_DOCDIR@ - $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG) - -DX_CLEANFILES = \ - @DX_DOCDIR@/@PACKAGE@.tag \ - -r \ - $(DX_CLEAN_HTML) \ - $(DX_CLEAN_CHM) \ - $(DX_CLEAN_CHI) \ - $(DX_CLEAN_MAN) \ - $(DX_CLEAN_RTF) \ - $(DX_CLEAN_XML) \ - $(DX_CLEAN_PS) \ - $(DX_CLEAN_PDF) \ - $(DX_CLEAN_LATEX) - -endif DX_COND_doc diff --git a/recipes/wip/files/mc/source/doc/doxygen.cfg b/recipes/wip/files/mc/source/doc/doxygen.cfg deleted file mode 100644 index 1118062f68..0000000000 --- a/recipes/wip/files/mc/source/doc/doxygen.cfg +++ /dev/null @@ -1,254 +0,0 @@ -# Doxyfile 1.5.7.1 - -#--------------------------------------------------------------------------- -# Project related configuration options -#--------------------------------------------------------------------------- -DOXYFILE_ENCODING = UTF-8 -PROJECT_NAME = $(PROJECT)-$(VERSION) -PROJECT_NUMBER = -OUTPUT_DIRECTORY = $(DOCDIR) -CREATE_SUBDIRS = YES -OUTPUT_LANGUAGE = English -BRIEF_MEMBER_DESC = YES -REPEAT_BRIEF = YES -ABBREVIATE_BRIEF = -ALWAYS_DETAILED_SEC = YES -INLINE_INHERITED_MEMB = NO -FULL_PATH_NAMES = YES -STRIP_FROM_PATH = $(SRCDIR) -STRIP_FROM_INC_PATH = $(SRCDIR) -SHORT_NAMES = NO -JAVADOC_AUTOBRIEF = YES -QT_AUTOBRIEF = NO -MULTILINE_CPP_IS_BRIEF = NO -INHERIT_DOCS = YES -SEPARATE_MEMBER_PAGES = YES -TAB_SIZE = 8 -ALIASES = -OPTIMIZE_OUTPUT_FOR_C = YES -OPTIMIZE_OUTPUT_JAVA = NO -OPTIMIZE_FOR_FORTRAN = NO -OPTIMIZE_OUTPUT_VHDL = NO -BUILTIN_STL_SUPPORT = NO -CPP_CLI_SUPPORT = NO -SIP_SUPPORT = NO -IDL_PROPERTY_SUPPORT = YES -DISTRIBUTE_GROUP_DOC = NO -SUBGROUPING = YES -TYPEDEF_HIDES_STRUCT = NO -SYMBOL_CACHE_SIZE = 0 -#--------------------------------------------------------------------------- -# Build related configuration options -#--------------------------------------------------------------------------- -EXTRACT_ALL = YES -EXTRACT_PRIVATE = NO -EXTRACT_STATIC = NO -EXTRACT_LOCAL_CLASSES = YES -EXTRACT_LOCAL_METHODS = NO -EXTRACT_ANON_NSPACES = NO -HIDE_UNDOC_MEMBERS = NO -HIDE_UNDOC_CLASSES = NO -HIDE_FRIEND_COMPOUNDS = NO -HIDE_IN_BODY_DOCS = NO -INTERNAL_DOCS = NO -CASE_SENSE_NAMES = NO -HIDE_SCOPE_NAMES = NO -SHOW_INCLUDE_FILES = YES -INLINE_INFO = YES -SORT_MEMBER_DOCS = YES -SORT_BRIEF_DOCS = NO -SORT_GROUP_NAMES = NO -SORT_BY_SCOPE_NAME = NO -GENERATE_TODOLIST = YES -GENERATE_TESTLIST = YES -GENERATE_BUGLIST = YES -GENERATE_DEPRECATEDLIST= YES -ENABLED_SECTIONS = -MAX_INITIALIZER_LINES = 30 -SHOW_USED_FILES = YES -SHOW_DIRECTORIES = NO -SHOW_FILES = YES -SHOW_NAMESPACES = YES -FILE_VERSION_FILTER = -LAYOUT_FILE = -#--------------------------------------------------------------------------- -# configuration options related to warning and progress messages -#--------------------------------------------------------------------------- -QUIET = YES -WARNINGS = YES -WARN_IF_UNDOCUMENTED = YES -WARN_IF_DOC_ERROR = YES -WARN_NO_PARAMDOC = NO -WARN_FORMAT = "$file:$line: $text" -WARN_LOGFILE = -#--------------------------------------------------------------------------- -# configuration options related to the input files -#--------------------------------------------------------------------------- -INPUT = $(SRCDIR) -INPUT_ENCODING = UTF-8 -FILE_PATTERNS = *.c \ - *.h -RECURSIVE = YES -EXCLUDE = -EXCLUDE_SYMLINKS = NO -EXCLUDE_PATTERNS = */tests/* */.git/* -EXCLUDE_SYMBOLS = -EXAMPLE_PATH = $(SRCDIR) -EXAMPLE_PATTERNS = -EXAMPLE_RECURSIVE = NO -IMAGE_PATH = -INPUT_FILTER = -FILTER_PATTERNS = -FILTER_SOURCE_FILES = NO -#--------------------------------------------------------------------------- -# configuration options related to source browsing -#--------------------------------------------------------------------------- -SOURCE_BROWSER = YES -INLINE_SOURCES = NO -STRIP_CODE_COMMENTS = YES -REFERENCED_BY_RELATION = YES -REFERENCES_RELATION = YES -REFERENCES_LINK_SOURCE = YES -USE_HTAGS = NO -VERBATIM_HEADERS = NO -#--------------------------------------------------------------------------- -# configuration options related to the alphabetical class index -#--------------------------------------------------------------------------- -ALPHABETICAL_INDEX = YES -COLS_IN_ALPHA_INDEX = 5 -IGNORE_PREFIX = -#--------------------------------------------------------------------------- -# configuration options related to the HTML output -#--------------------------------------------------------------------------- -GENERATE_HTML = YES -HTML_OUTPUT = html -HTML_FILE_EXTENSION = .html -HTML_HEADER = -HTML_FOOTER = -HTML_STYLESHEET = -HTML_ALIGN_MEMBERS = YES -HTML_DYNAMIC_SECTIONS = NO -GENERATE_DOCSET = NO -DOCSET_FEEDNAME = "Doxygen generated docs" -DOCSET_BUNDLE_ID = org.doxygen.Project -GENERATE_HTMLHELP = NO -CHM_FILE = ../$(PROJECT).chm -HHC_LOCATION = $(HHC_PATH) -GENERATE_CHI = NO -CHM_INDEX_ENCODING = -BINARY_TOC = NO -TOC_EXPAND = NO -GENERATE_QHP = NO -QCH_FILE = -QHP_NAMESPACE = org.doxygen.Project -QHP_VIRTUAL_FOLDER = doc -QHG_LOCATION = -DISABLE_INDEX = NO -ENUM_VALUES_PER_LINE = 4 -GENERATE_TREEVIEW = YES -TREEVIEW_WIDTH = 250 -FORMULA_FONTSIZE = 10 -#--------------------------------------------------------------------------- -# configuration options related to the LaTeX output -#--------------------------------------------------------------------------- -GENERATE_LATEX = NO -LATEX_OUTPUT = latex -LATEX_CMD_NAME = latex -MAKEINDEX_CMD_NAME = makeindex -COMPACT_LATEX = NO -PAPER_TYPE = $(PAPER_SIZE) -EXTRA_PACKAGES = -LATEX_HEADER = -PDF_HYPERLINKS = NO -USE_PDFLATEX = NO -LATEX_BATCHMODE = YES -LATEX_HIDE_INDICES = NO -#--------------------------------------------------------------------------- -# configuration options related to the RTF output -#--------------------------------------------------------------------------- -GENERATE_RTF = NO -RTF_OUTPUT = rtf -COMPACT_RTF = NO -RTF_HYPERLINKS = NO -RTF_STYLESHEET_FILE = -RTF_EXTENSIONS_FILE = -#--------------------------------------------------------------------------- -# configuration options related to the man page output -#--------------------------------------------------------------------------- -GENERATE_MAN = NO -MAN_OUTPUT = man -MAN_EXTENSION = .1 -MAN_LINKS = NO -#--------------------------------------------------------------------------- -# configuration options related to the XML output -#--------------------------------------------------------------------------- -GENERATE_XML = NO -XML_OUTPUT = xml -XML_SCHEMA = -XML_DTD = -XML_PROGRAMLISTING = YES -#--------------------------------------------------------------------------- -# configuration options for the AutoGen Definitions output -#--------------------------------------------------------------------------- -GENERATE_AUTOGEN_DEF = NO -#--------------------------------------------------------------------------- -# configuration options related to the Perl module output -#--------------------------------------------------------------------------- -GENERATE_PERLMOD = NO -PERLMOD_LATEX = NO -PERLMOD_PRETTY = YES -PERLMOD_MAKEVAR_PREFIX = -#--------------------------------------------------------------------------- -# Configuration options related to the preprocessor -#--------------------------------------------------------------------------- -ENABLE_PREPROCESSING = YES -MACRO_EXPANSION = NO -EXPAND_ONLY_PREDEF = NO -SEARCH_INCLUDES = YES -INCLUDE_PATH = -INCLUDE_FILE_PATTERNS = -PREDEFINED = -EXPAND_AS_DEFINED = -SKIP_FUNCTION_MACROS = YES -#--------------------------------------------------------------------------- -# Configuration::additions related to external references -#--------------------------------------------------------------------------- -TAGFILES = -GENERATE_TAGFILE = $(DOCDIR)/$(PROJECT).tag -ALLEXTERNALS = NO -EXTERNAL_GROUPS = YES -PERL_PATH = $(PERL_PATH) -#--------------------------------------------------------------------------- -# Configuration options related to the dot tool -#--------------------------------------------------------------------------- -CLASS_DIAGRAMS = YES -MSCGEN_PATH = -HIDE_UNDOC_RELATIONS = YES -HAVE_DOT = YES -DOT_FONTNAME = FreeSans -DOT_FONTSIZE = 10 -DOT_FONTPATH = -CLASS_GRAPH = YES -COLLABORATION_GRAPH = YES -GROUP_GRAPHS = YES -UML_LOOK = NO -TEMPLATE_RELATIONS = NO -INCLUDE_GRAPH = YES -INCLUDED_BY_GRAPH = YES -CALL_GRAPH = NO -CALLER_GRAPH = NO -GRAPHICAL_HIERARCHY = YES -DIRECTORY_GRAPH = YES -DOT_IMAGE_FORMAT = png -DOT_PATH = $(DOT_PATH) -DOTFILE_DIRS = -DOT_GRAPH_MAX_NODES = 550 -MAX_DOT_GRAPH_DEPTH = 0 -DOT_TRANSPARENT = NO -DOT_MULTI_TARGETS = NO -GENERATE_LEGEND = YES -DOT_CLEANUP = YES -#--------------------------------------------------------------------------- -# Configuration::additions related to the search engine -#--------------------------------------------------------------------------- -SEARCHENGINE = NO diff --git a/recipes/wip/files/mc/source/doc/hints/Makefile.am b/recipes/wip/files/mc/source/doc/hints/Makefile.am deleted file mode 100644 index 2920c353e1..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/Makefile.am +++ /dev/null @@ -1,14 +0,0 @@ -if USE_NLS -SUBDIRS = l10n -endif - -DIST_SUBDIRS = l10n - -HINTFILE = mc.hint - -hintdir = $(pkgdatadir)/hints - -hint_DATA = $(HINTFILE) - -# Files processed by configure don't need to be here -EXTRA_DIST = $(HINTFILE) diff --git a/recipes/wip/files/mc/source/doc/hints/Makefile.in b/recipes/wip/files/mc/source/doc/hints/Makefile.in deleted file mode 100644 index e09c538ecb..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/Makefile.in +++ /dev/null @@ -1,823 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/hints -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(hintdir)" -DATA = $(hint_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 \ - distdir distdir-am -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)` -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -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" -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -@USE_NLS_TRUE@SUBDIRS = l10n -DIST_SUBDIRS = l10n -HINTFILE = mc.hint -hintdir = $(pkgdatadir)/hints -hint_DATA = $(HINTFILE) - -# Files processed by configure don't need to be here -EXTRA_DIST = $(HINTFILE) -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/hints/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/hints/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-hintDATA: $(hint_DATA) - @$(NORMAL_INSTALL) - @list='$(hint_DATA)'; test -n "$(hintdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(hintdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(hintdir)" || 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)$(hintdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(hintdir)" || exit $$?; \ - done - -uninstall-hintDATA: - @$(NORMAL_UNINSTALL) - @list='$(hint_DATA)'; test -n "$(hintdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(hintdir)'; $(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" -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 -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 - @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 -check-am: all-am -check: check-recursive -all-am: Makefile $(DATA) -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(hintdir)"; 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 clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: install-hintDATA - -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-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-hintDATA - -.MAKE: $(am__recursive_targets) install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ - check-am clean clean-generic clean-libtool cscopelist-am ctags \ - ctags-am distclean distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-hintDATA \ - 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 installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ - uninstall-am uninstall-hintDATA - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/Makefile.am b/recipes/wip/files/mc/source/doc/hints/l10n/Makefile.am deleted file mode 100644 index 95ad62de47..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/Makefile.am +++ /dev/null @@ -1,8 +0,0 @@ -hintdir = $(pkgdatadir)/hints - -HINTFILES_LANG = $(srcdir)/mc.hint.* - -hint_DATA = $(HINTFILES_LANG) - -# Files processed by configure don't need to be here -EXTRA_DIST = $(HINTFILES_LANG) diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/Makefile.in b/recipes/wip/files/mc/source/doc/hints/l10n/Makefile.in deleted file mode 100644 index 30715b42b9..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/Makefile.in +++ /dev/null @@ -1,643 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/hints/l10n -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(hintdir)" -DATA = $(hint_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -hintdir = $(pkgdatadir)/hints -HINTFILES_LANG = $(srcdir)/mc.hint.* -hint_DATA = $(HINTFILES_LANG) - -# Files processed by configure don't need to be here -EXTRA_DIST = $(HINTFILES_LANG) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/hints/l10n/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/hints/l10n/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-hintDATA: $(hint_DATA) - @$(NORMAL_INSTALL) - @list='$(hint_DATA)'; test -n "$(hintdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(hintdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(hintdir)" || 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)$(hintdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(hintdir)" || exit $$?; \ - done - -uninstall-hintDATA: - @$(NORMAL_UNINSTALL) - @list='$(hint_DATA)'; test -n "$(hintdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(hintdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(DATA) -installdirs: - for dir in "$(DESTDIR)$(hintdir)"; 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-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-hintDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-hintDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-hintDATA \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-hintDATA - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.be b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.be deleted file mode 100644 index 0bf84bd60c..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.be +++ /dev/null @@ -1,87 +0,0 @@ -Падказка: выкарыÑтоўвайце "C-x t", каб капіÑваць у камандны радок назвы пазначаных файлаў. - -Падказка: выкарыÑтоўвайце "C-x p", каб капіÑваць у камандны радок бÑгучы шлÑÑ…. - -Падказка: выкарыÑтоўвайце "M-Tab" або "Esc+Tab" Ð´Ð»Ñ Ð´Ð°Ð¿Ð°ÑžÐ½ÐµÐ½Ð½Ñ. Каб убачыць ÑпіÑ, націÑніце двойчы. - -Падказка: выкарыÑтоўвайце "M-p" Ñ– "M-n" Ð´Ð»Ñ Ð´Ð¾Ñтупу да гіÑторыі каманд. - -Падказка: каб уÑтавіць знак у двукоÑÑÑÑ…, выкарыÑтоўвайце "Control-q" Ñ– знак. - -Падказка: калі ÑтаміліÑÑ Ð°Ð´ гÑтах паведамленнÑÑž, то можаце адключыць Ñ–Ñ… у меню "Параметры" → "Макет". - -Падказка: Ð´Ð»Ñ Ð¿Ð°Ð·Ð½Ð°Ñ‡ÑÐ½Ð½Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð°Ñž дадайце каÑую рыÑу ( / ) у канец адпаведнага шаблона. - -Падказка: калі Ñž Ñ‚Ñрмінала нÑма функцыÑнальных клавіш, выкарыÑтоўвайце "ESC+лічба". - -Падказка: Ñайт GNU Midnight Commander — https://www.midnight-commander.org - -Падказка: пра хібы паведамлÑйце на mc-devel@lists.midnight-commander.org - -Падказка: клавішай "Tab" пераключаецца бÑÐ³ÑƒÑ‡Ð°Ñ Ð¿Ð°Ð½Ñль. - -Падказка: VFS вельмі Ð·Ñ€ÑƒÑ‡Ð½Ð°Ñ - націÑніце на архіве "Enter", Ñ– ўбачыце Ñго змеÑціва. - -Падказка: мы маем зручную даведку. - -Падказка: калі хочаце навігацыю Ñž Ñтылі Lynx, можаце абраць гÑта Ñž канфігурацыі. - -Падказка: макраÑÑ‹ % працуюць нават у камандным радку. - -Падказка: з дапамогай "M-!" можна запуÑкаць праграмы Ñ– глÑдзець вывад. - -Падказка: фармат ÑпіÑа файлаў можна змÑніць — глÑдзіце "man mc". - -Падказка: з дапамогай "%D" Ñ– "%T» наÑупраць выводзіцца каталог Ñ– Ð¿Ð°Ð·Ð½Ð°Ñ‡Ð°Ð½Ñ‹Ñ Ñž ім файлы. - -Падказка: калі хочаце звычайную абалонку, націÑніце "C-o", а каб вÑрнуцца — "C-o" ÑÑˆÑ‡Ñ Ñ€Ð°Ð·. - -Падказка: каб хутчÑй набіраць каманды "cd…", наладзьце зменную "CDPATH". - -Падказка: калі хочаце бачыць ÑÑ…Ð°Ð²Ð°Ð½Ñ‹Ñ Ñ„Ð°Ð¹Ð»Ñ‹ ".*", наладзьце гÑта Ñž канфігурацыі. - -Падказка: калі хочаце бачыць файлы Ñ€Ñзервовых копій "*~", то наладзьце гÑта Ñž канфігурацыі. - -Падказка: дапаўненне працуе ва ÑžÑÑ–Ñ… радках уводу Ñ– дыÑлогавых вокнах; проÑта націÑніце "M-Tab". - -Падказка: на павольных Ñ‚Ñрміналах можа дапамагчы адзнака "-s". - -Падказка: вы можаце працаваць Ñа знойдзенымі файламі з дапамогай кнопкі "Ðа панÑль". - -Падказка: калі патрÑбны Ñкладаны пошук, ужывайце вонкавую каманду "Ðа панÑль". - -Падказка: каб змÑніць каталог Ð¿Ð°Ð´Ñ‡Ð°Ñ ÑžÐ²Ð¾Ð´Ñƒ каманды, выкарыÑтоўвайце "M-c" (Ñ…ÑƒÑ‚ÐºÐ°Ñ ÐºÐ°Ð¼Ð°Ð½Ð´Ð° cd). - -Падказка: каманды абалонкі могуць не працаваць на адлеглых файлавых ÑÑ–ÑÑ‚Ñмах. - -Падказка: "C-y" вÑртае Ñтрачаны Ñ‚ÑкÑÑ‚. - -Падказка: калі пÑÑžÐ½Ñ‹Ñ ÐºÐ»Ð°Ð²Ñ–ÑˆÑ‹ не працуюць, зазірніце Ñž "Параметры" → "Вывучыць клавішы". - -Падказка: каб убачыць вывад каманды Ñž выкарыÑтоўвайце "M-!" - -Падказка: з дапамогай "F13" або "Shift-F3" можна праглÑдаць файлы Ñž зыходным выглÑдзе. - -Падказка: з дапамогай зменнай "EDITOR" вы можаце змÑніць Ñ€Ñдактар, Ñкі выклікаецца з дапамогай клавішы "F4". - -Падказка: з дапамогай зменнай "VIEWER" або "PAGER" вы можаце прызначыць вонкавы Ñродак Ð´Ð»Ñ Ð¿Ñ€Ð°Ð³Ð»Ñду. - -Падказка: вы можаце адключыць запыты пацвÑрджÑÐ½Ð½Ñ Ñž "Параметры" → "ПацвÑрджÑнне". - -Падказка: з дапамогай "C-\" можна пераходзіць да каталогаў, ÑÐºÑ–Ñ Ñ‡Ð°Ñта ўжываюцца. - -Падказка: на FTP можна ўвайÑці ананімна, набраўшы "cd ftp://machine.edu" - -Падказка: Midnight Commander мае ўбудаваны FTP — глÑдзіце "Файл" → "FTP". - -Падказка: з дапамогай "M-t" можна хутка змÑніць выглÑд ÑпіÑа файлаў на панÑлі. - -Падказка: на FTPS можна пазначаць Ñ–Ð¼Ñ ÐºÐ°Ñ€Ñ‹Ñтальніка з дапамогай "cd ftp://user@machine.edu" - -Падказка: можна паглÑдзець змеÑціва архіва RPM, калі націÑнуць на ім "Enter". - -Падказка: каб у дыÑлогавым акне выбару пазначыць каталогі, дадайце "/ ". - -Падказка: Ð´Ð»Ñ Ð²Ñ‹Ñ€Ð°Ð·Ð°Ð½Ð½Ñ Ñ– ÑžÑтаўлÑÐ½Ð½Ñ Ð¼Ñ‹ÑˆÐºÐ°ÑŽ можа ÑпатрÑбіцца націÑнуць Ñ– ўтрымліваць "Shift" - -Падказка: захаваць Ñайты FTP, ÑÐºÑ–Ñ Ñ‡Ð°Ñта наведваеце можна з дапамогай "C-\". diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.bg b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.bg deleted file mode 100644 index f67f969a34..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.bg +++ /dev/null @@ -1,87 +0,0 @@ -ПодÑказка: Използвайте C-x за копиране на имената на избраните файлове на ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð¸Ñ Ñ€ÐµÐ´. - -ПодÑказка: Използвайте C-x за копиране на имената на избраните файлове на ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð¸Ñ Ñ€ÐµÐ´. - -ПодÑказка: ДопиÑване: използвайте M-Tab (или Esc+Tab). ÐатиÑнете го повторно за ÑпиÑък. - -ПодÑказка: Използвайте M-p и M-n за доÑтъп до иÑториÑта на командите. - -ПодÑказка: Ðко иÑкате да ползвате знак буквално, ползвайте Control-q и знака. - -ПодÑказка: Ðко не иÑкате тези ÑъобщениÑ, ги изключете от ÐаÑтройки → Разположение. - -ПодÑказка: Изберете директории като добавите наклонена черта на ÐºÑ€Ð°Ñ Ð½Ð° поредицата от метаÑимволи. - -ПодÑказка: Ðко терминалът нÑма функционални клавиши, използвайте поÑледователноÑтта ESC+чиÑло. - -ПодÑказка: Главната Ñтраница на GNU Midnight Commander е https://www.midnight-commander.org - -ПодÑказка: Молим, изпращайте вÑÑкакви доклади за грешки на mc-devel@lists.midnight-commander.org - -ПодÑказка: Tab преминава към Ð´Ñ€ÑƒÐ³Ð¸Ñ Ð¿Ð°Ð½ÐµÐ». - -ПодÑказка: УдобÑтва при виртуалните ФС: наÑтинете ENTER върху архив tar, за да разгледате Ñъдържанието му. - -ПодÑказка: Страницата на MC в ръководÑтвото на Ð¿Ð¾Ñ‚Ñ€ÐµÐ±Ð¸Ñ‚ÐµÐ»Ñ Ðµ много полезна, вижте Ñ. - -ПодÑказка: Ðко иÑкате Ð½Ð°Ð²Ð¸Ð³Ð°Ñ†Ð¸Ñ ÐºÐ°Ñ‚Ð¾ в Lynx, задайте това в ÐаÑтройки…. - -ПодÑказка: МакроÑите Ñ % работÑÑ‚ дори и на ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð¸Ñ Ñ€ÐµÐ´. - -ПодÑказка: M-! позволÑва да изпълните команда и да видите изхода във визуализатора. - -ПодÑказка: Форматът за показване на файлове може да Ñе наÑтрои. За подробноÑти: „man mc“. - -ПодÑказка: %D/%T Ñе Ð·Ð°Ð¼ÐµÐ½Ñ Ñ Ð¸Ð·Ð±Ñ€Ð°Ð½Ð¸Ñ‚Ðµ файлове от отÑрещната директориÑ. - -ПодÑказка: За да работите Ñ Ð¾Ð±Ð²Ð¸Ð²ÐºÐ°, натиÑнете C-o, и Ñе отново върнете обратно в Midnight Commander пак Ñ C-o . - -ПодÑказка: Задаването на променливата CDPATH ÑпеÑÑ‚Ñва време при командите за ÑмÑна на директориÑ. - -ПодÑказка: Ðко иÑкате да виждате Ñкритите (.*) файлове в панела, задайте това в ÐаÑтройки на панел…. - -ПодÑказка: Ðко иÑкате да виждате резервните (*~) файлове в панела, задайте това в ÐаÑтройки на панел…. - -ПодÑказка: ДопиÑването работи Ñ Ð²Ñички входни полета във вÑички диалози. ПроÑто натиÑнете M-Tab. - -ПодÑказка: Ðа бавни терминали опциÑта -s може да помогне. - -ПодÑказка: ТърÑене на файл: може да оперирате върху намерените файлове Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð°Ñ‚Ð° за Външен панел. - -ПодÑказка: ИÑкате Ñложни търÑениÑ? Използвайте командата за Външен панел. - -ПодÑказка: За промÑна на Ð´Ð¸Ñ€ÐµÐºÑ‚Ð¾Ñ€Ð¸Ñ Ð¿Ð¾ време на пиÑане на команда, ползвайте M-c (Бърза ÑмÑна — cd). - -ПодÑказка: Командите на обвивката не работÑÑ‚, когато не Ñте в локална файлова ÑиÑтема. - -ПодÑказка: Може да възÑтановите текÑÑ‚ Ñ C-y. - -ПодÑказка: Ðко нÑкои от клавишите не работÑÑ‚, погледнете в ÐаÑтройки → Задаване на клавиши…. - -ПодÑказка: За да разглеждате изходната Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð½Ð° команда във визуализатора, използвайте M-!. - -ПодÑказка: F13 (или Shift-F3) Ð¾Ñ‚Ð²Ð°Ñ€Ñ Ð²Ð¸Ð·ÑƒÐ°Ð»Ð¸Ð·Ð°Ñ‚Ð¾Ñ€Ð° в режим без обработка. - -ПодÑказка: Може да зададете редактор чрез F4 Ñ Ð¿Ñ€Ð¾Ð¼ÐµÐ½Ð»Ð¸Ð²Ð°Ñ‚Ð° на обвивката EDITOR. - -ПодÑказка: Може да зададете външен визуализатор Ñ Ð¿Ñ€Ð¾Ð¼ÐµÐ½Ð»Ð¸Ð²Ð¸Ñ‚Ðµ на обвивката VIEWER и PAGER. - -ПодÑказка: Може да изключите вÑички Ð·Ð°Ð¿Ð¸Ñ‚Ð²Ð°Ð½Ð¸Ñ Ð·Ð° потвърждение чрез ÐаÑтройки → ПотвърждениÑ…. - -ПодÑказка: Преминавайте в чеÑто използваните директории Ñ C-\. - -ПодÑказка: За да уÑтановите връзка по FTP, ползвайте Ð°Ð´Ñ€ÐµÑ ÐºÐ°Ñ‚Ð¾: „cd ftp://machine.edu“. - -ПодÑказка: FTP (и др.) Ñа вграден в Midnight Commander, погледнете менюто ВлÑво/ВдÑÑно → FTP. - -ПодÑказка: M-t Ð¿Ñ€Ð¾Ð¼ÐµÐ½Ñ Ñ€ÐµÐ¶Ð¸Ð¼Ð° на показване на ÑпиÑъка Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ðµ. - -ПодÑказка: За да укажете потребителÑко име при връзка по FTP, ползвайте Ð°Ð´Ñ€ÐµÑ ÐºÐ°Ñ‚Ð¾: „cd ftp://ПОТРЕБИТЕЛ@machine.edu“. - -ПодÑказка: Разглеждайте Ñъдържанието на файлове във формат RPM като натиÑнете ENTER върху Ñ‚ÑÑ…. - -ПодÑказка: За да изберете директории в диалога за избор, добавете наклонена черта. - -ПодÑказка: За изрÑзване и поÑтавÑне Ñ Ð¼Ð¸ÑˆÐºÐ°Ñ‚Ð° трÑбва да задържите клавиша SHIFT. - -ПодÑказка: Клавиш за чеÑто използваните ftp Ñайтове: натиÑнете C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ca b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ca deleted file mode 100644 index 811a881618..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ca +++ /dev/null @@ -1,87 +0,0 @@ -Consell: Empreu «Ctrl-x» per a copiar els fitxers marcats a la línia d'ordres. - -Consell: Empreu «Ctrl-x» per a copiar tot el camí a la línia d'ordres. - -Consell: Compleció: empreu «M-Tab» (o «Esc+Tab»). Dues vegades per a mostrar una llista. - -Consell: Empreu «M-p» i «M-n» per accedir a l'historial de les ordres. - -Consell: Us cal un caràcter especial? Empreu «Ctrl-q» i el caràcter. - -Consell: Cansat d'aquests missatges? Es treuen des del menú «Opcions/Format». - -Consell: Seleccionar directoris: afegiu «/» al final del patró de coincidència. - -Consell: Si no funcionen les tecles de funció, empreu la seqüència «ESC+número». - -Consell: La pàgina inicial del Midnight Commander de GNU és https://www.midnight-commander.org - -Consell: Si us plau, envieu qualsevol informe d'error a «mc-devel@lists.midnight-commander.org». - -Consell: El tabulador canvia de plafó. - -Consell: El millor VFS: toqueu «Retorn» en un fitxer TAR per examinar el seu contingut. - -Consell: També tenim una bona pàgina de manual. - -Consell: Voleu navegar a l'estil del Lynx? Establiu-ho al diàleg de configuració. - -Consell: Les macros amb % funcionen fins i tot a la línia d'ordres. - -Consell: Amb «M-!» podreu executar programes i veure la sortida en el visor. - -Consell: El format del llistat es pot personalitzar, per a més detalls feu «man mc». - -Consell: %D/%T representa els fitxers marcats al directori oposat. - -Consell: Voleu un intèrpret d'ordres pla? Premeu «Ctrl-o», el mateix per tornar al MC. - -Consell: Establint la variable CDPATH podreu estalviar pulsacions de teclat en les ordres «cd». - -Consell: Si voleu veure els fitxers «.*», digueu-ho al diàleg de configuració. - -Consell: Voleu veure els fitxers de còpia de seguretat «.~»? Establiu-ho al diàleg de configuració. - -Consell: La compleció funciona en totes les línies d'entrada en tots els diàlegs. Simplement premeu «M-Tab». - -Consell: En terminals lents, l'indicador «-s» pot ajudar. - -Consell: Trobar fitxers: podeu treballar en trobar fitxers amb el botó «Quadre de cerca». - -Consell: Voleu fer cerques complexes? Empreu l'ordre «Quadre de cerca externa». - -Consell: Canvieu a meitat de camí del directori escrivint una ordre, empreu «M-c» («cd» ràpid). - -Сonsell: Les ordres de l'intèrpret d'ordres no funcionaran quan s'està en un sistema de fitxers no local. - -Consell: Recupereu el text esborrat amb «Ctrl-y». - -Consell: Alguna de les tecles no funciona? Mireu «Opcions/Aprendre les tecles». - -Consell: Mireu la sortida d'una ordre al visor, empreu «M-!». - -Consell: «F13» (o «Maj-F3») invocareu el visor en el mode sense format. - -Consell: Podeu especificar l'editor per a «F4» amb la variable d'entorn EDITOR. - -Consell: Podeu especificar el visor extern amb la variable d'entorn VIEWER o PAGER. - -Consell: Podeu inhabilitar tots els missatges de confirmació a «Opcions/Confirmació». - -Consell: Aneu als directoris emprats sovint amb «Ctrl-\». - -Consell: Podeu fer FTP anònim amb mc escrivint «cd ftp://màquina.edu». - -Consell: L'FTP està integrat al Midnight Commander, comproveu el menú «Fitxer/Enllaç FTP». - -Consell: «M-t» canvia ràpidament entre els modes de llistat. - -Consell: Podeu especificar el nom d'usuari quan feu FTPS: «cd ftp://usuari@màquina.domini» - -Consell: Podeu navegar pels fitxers RPM prement «Retorn» a sobre d'un fitxer RPM. - -Consell: Per a marcar directoris al diàleg de selecció, afegiu-l'hi un «/». - -Consell: Per a tallar i enganxar amb el ratolí, podria requerir mantenir premuda la tecla «Maj». - -Consell: Els FTP visitats sovint es poden desar a Favorits: escriviu «Ctrl-\». diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.cs b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.cs deleted file mode 100644 index 4b2ae607b5..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.cs +++ /dev/null @@ -1,87 +0,0 @@ -Tip: Ctrl-x t vloží názvy oznaÄených souborů na příkazový řádek. - -Tip: Ctrl-x p vloží na příkazový řádek název složky, ve které se nacházíte. - -Tip: Doplňování: použijte Meta-Tab (nebo Esc+Tab). Dalším stiskem se vypíše seznam možností. - -Tip: V historii příkazů se pohybuje pomocí Meta-p a Meta-n. - -Tip: Chcete zadat speciální znak (napÅ™. tabulátor)? Použijte Ctrl-q a pak daný znak. - -Tip: Nechcete už vidÄ›t tipy? VypnÄ›te je v nabídce Nastavení/Rozvržení. - -Tip: Složky vyberete pÅ™idáním lomítka na konec vzoru pro hledání shody v názvu. - -Tip: Pokud váš terminál nezná nebo nemá funkÄní (F1-12) klávesy, použijte Esc+Äíslo. - -Tip: Domovská stránka GNU Midnight Commander je: https://www.midnight-commander.org - -Tip: Chyby hlaste na mc-devel@lists.midnight-commander.org (v angliÄtinÄ›). - -Tip: Pomocí klávesy Tab pÅ™ejdete na další panel. - -Tip: Stiskem Enter na souboru .tar nebo .tar.gz si prohlédnete jeho obsah. - -Tip: Existuje také manuálová stránka [mc(1)]. - -Tip: PÅ™ejete si klávesy stejnÄ› jako v prohlížeÄi Lynx? PÅ™epnÄ›te si to v Nastavení. - -Tip: Makra uvozená % fungují i na příkazovém řádku. - -Tip: Pomocí Meta-! můžete spustit příkaz a prohlédnout si výstup v prohlížeÄi. - -Tip: Zobrazení v panelech může být upraveno. Z „man mc“ se dozvíte více. - -Tip: %D/%T se rozvine na soubory oznaÄené v druhém panelu. - -Tip: Chcete opÄ›t váš shell? StisknÄ›te Ctrl-o. Do MC se vrátíte opÄ›t pÅ™es Ctrl-o. - -Tip: Nastavením promÄ›nné CDPATH si můžete uÅ¡etÅ™it psaní na klávesnici. - -Tip: Pokud chcete vidÄ›t soubory zaÄínající teÄkou, povolte to v Nastavení. - -Tip: Chcete vidÄ›t zálohy svých souborů (konÄí ~)? Použijte Nastavení. - -Tip: Doplňování funguje ve vstupních řádcích vÅ¡ech dialogů. Použijte Meta-Tab. - -Tip: Na terminálech s pomalou odezvou zkuste parametr -s (mc -s). - -Tip: S nalezenými soubory je možné dále pracovat. StisknÄ›te tlaÄítko Panelizace. - -Tip: Pro opravdu složité vyhledávání zkuste příkaz příkaz Externí panelizace. - -Tip: Pokud chcete zmÄ›nit složku pÅ™i práci na příkazovém řádku, zkuste Meta-c. - -Tip: Příkazy shellu nefungují, pokud nepracujete na lokálním systému souborů. - -Tip: Smazaný text obnovíte Ctrl-y. - -Tip: Pokud nÄ›které klávesy nefungují, použijte menu Nastavení/UÄení kláves. - -Tip: K zobrazení výstupu příkazu v oknÄ› použijte Meta-! - -Tip: F13 (nebo Shift-F3) vyvolá prohlížení bez zpracování obsahu souboru. - -Tip: Editor pro klávesu F4 urÄíte pomocí promÄ›nné prostÅ™edí EDITOR. - -Tip: Externí prohlížeÄ urÄíte promÄ›nnými VIEWER nebo PAGER - -Tip: VÅ¡echny žádosti o potvrzení je možné vypnout v Nastavení/Potvrzování. - -Tip: K seznamu Äasto používaných složek se můžete dostat i pÅ™es Ctrl-\. - -Tip: Na anonymní FTP se pÅ™ipojíte pomocí „cd ftp://stroj.domena.cz“. - -Tip: MC má vestavÄ›ný FTP. Podívejte se do nabídka Levý/FTP spojení na poÄítaÄ. - -Tip: Meta-t rychle mÄ›ní formát zobrazení panelů. - -Tip: PÅ™i FTP spojení můžete zadat i jméno: „cd ftp://jmeno@stroj.domena.cz“. - -Tip: RPM soubory si prohlédnete stiskem Enter. - -Tip: Pro oznaÄení složek v dialogovém oknÄ› výbÄ›ru souborů, pÅ™idejte lomítko. - -Tip: Chcete-li použít myÅ¡ pro zkopírování nebo vložení textu, stisknÄ›te Shift. - -Tip: V seznamu složek můžete mít i Äasto navÅ¡tÄ›vované FTP servery. Zkuste Ctrl-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.da b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.da deleted file mode 100644 index 44f2755ae8..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.da +++ /dev/null @@ -1,87 +0,0 @@ -Fif: Brug C-x t til at kopiere filnavne til kommandolinjen. - -Fif: Brug C-x p for at kopiere det nuværende stinavn til kommandolinjen. - -Fif: Fuldførelse: brug M-Tab (eller Esc+Tab). Skriv det to gange for at fÃ¥ en liste. - -Fif: Brug M-p og M-n for at tilgÃ¥ kommandohistorikken. - -Fif: Har du brug for at sætte citationstegn om et tegn? Brug Control-q og tegnet. - -Fif: Træt af disse meddelelser? SlÃ¥ dem fra i Indstillinger/Layout-menuen. - -Fif: Valg af mapper: tilføj en skrÃ¥streg til slutningen af det matchende mønster. - -Fif: Hvis din terminal mangler funktionstaster, sÃ¥ rug ESC+talsekvensen. - -Fif: Hjemmesiden for GNU Midnight Commander: https://www.midnight-commander.org - -Fif: Send venligst eventuelle fejlrappporter til mc-devel@lists.midnight-commander.org - -Fif: Tabulator skifter dit nuværende panel. - -Fif: Cool VFS: tryk pÃ¥ enter pÃ¥ en tar-fil for at undersøge dens indhold. - -Fif: Vi har ogsÃ¥ en fin manualside. - -Fif: Vil du have navigation i Lynx-stil? Sæt det i konfigurationsdialogen. - -Fif: %-makroer virker ogsÃ¥ pÃ¥ kommandolinjen. - -Fif: M-! giver dig mulighed for at udføre programmer og se outputtet i fremviseren. - -Fif: Fillistningsformatet kan tilpasses; brug "man mc" for detaljer. - -Fif: %D/%T udvidder til de mærkede filer i den modsatte mappe. - -Fif: Vil du have en almindelig skal? Tryk pÃ¥ C-o, og vend tilbage til MC med C-o. - -Fif: Hvis CDPATH-variablen sættes kan du spare tastetryk i cd-kommandoer. - -Fif: Hvis du vil se dine .*-filer, sÃ¥ sig det i konfigurationsdialogen. - -Fif: Vil du se dine *~-backupfiler? Sæt det i konfigurationsdialogen. - -Fif: Fuldførelse virker pÃ¥ alle inputlinjer i alle dialoger. Tryk blot pÃ¥ M-Tab. - -Fif: PÃ¥ langsomme maskiner kan flaget -s hjælpe. - -Fif: Find fil: du kan arbejde pÃ¥ de fundne filer med Panelisér-knappen. - -Fif: Vil du foretage komplekse søgninger? Brug Ekstern panelisering-kommandoen. - -Fif: Brug M-c (hurtig cd), til at skifte mappe halvvejs gennem indtastningen af en kommando. - -Fif: Skalkommandoer virker ikke nÃ¥r du er pÃ¥ et ikke-lokalt filsystem. - -Fif: Bring tekst tilbage fra de døde med C-y. - -Fif: Er der nogen af dine taster som ikke virker? Kig i Indstillinger/Lær taster. - -Fif: Brug M-!, til at se pÃ¥ outputtet af en kommando i fremviseren. - -Fif: F13 (eller Skift-F3) viser fremviseren i rÃ¥ tilstand. - -Fif: Du kan angive editoren til F4 med skalvariablen EDITOR. - -Fif: Du kan angive den eksterne fremviser med skalvariablerne VIEWER eller PAGER. - -Fif: Du kan deaktivere alle anmodninger om bekræftelse i Indstillinger/Bekræftelse. - -Fif: Hop hurtigt til mapper som ofte bruges med C-\. - -Fif: Du kan brug anonym FTP i mc ved at skrive 'cd ftp://maskine.edu' - -Fif: FTP er indbygget i Midnight Commander, tjek Fil/FTP-link-menuen. - -Fif: M-t ændre hurtigt listningstilstanden. - -Fif: Du kan angive brugernavnet nÃ¥r ftps bruges: 'cd ftp://bruger@maskine.edu' - -Fif: Du kan gennemse RPM-filer ved at trykke pÃ¥ enter, pÃ¥ en rpm-fil. - -Fif: Tilføj en skrÃ¥streg, til at markere mapper i den valgte dialogboks. - -Fif: Brug at klip og indsæt med musen kan kræve at skift-tasten holdes nede - -Fif: Tilknyt taster i hotlisten med ftp-steder som ofte bruges: skriv C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.de b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.de deleted file mode 100644 index 1b51509d3b..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.de +++ /dev/null @@ -1,87 +0,0 @@ -Hinweis: Benutze C-x t, um markierte Dateinamen in die Kommandozeile zu kopieren. - -Hinweis: Benutze C-x p, um den aktuellen Pfadnamen in die Kommandozeile zu kopieren. - -Hinweis: Vervollständigung: Benutze M-Tabulator (oder Esc+Tabulator). Drücke zweimal, um eine Liste zu bekommen. - -Hinweis: Benutze M-p und M-n für die Befehlshistorie. - -Hinweis: Möchtest du ein Zeichen zitieren? Benutze C-q und das Zeichen. - -Hinweis: Langweilen dich diese Nachrichten? Stelle sie in den Optionen im Layoutmenü ab. - -Hinweis: Verzeichnisse auswählen: Füge am Ende des Mustervergleichs einen Schrägstrich hinzu. - -Hinweis: Wenn dein Terminal keine Funktionstasten unterstützt, benutze die Kombination Esc+Nummer. - -Hinweis: Die Homepage von GNU Midnight Commander: https://www.midnight-commander.org - -Hinweis: Bitte sende alle Fehlerberichte an mc-devel@lists.midnight-commander.org - -Hinweis: Tabulator wechselt das aktuelle Panel. - -Hinweis: Cooles VFS: Drücke Enter auf einer TAR-Datei, um den Inhalt zu sehen. - -Hinweis: Wir haben auch eine schöne Handbuchseite. - -Hinweis: Möchtest du eine Lynx-artige Navigation? Setze dies im Konfigurationsfenster. - -Hinweis: %-Makros funktionieren auch auf der Kommandozeile. - -Hinweis: M-! erlaubt es, Programme zu starten und die Ausgabe im Viewer zu sehen. - -Hinweis: Das Format der Dateiliste kann angepasst werden; siehe "man mc" für Details. - -Hinweis: %D/%T wird auf die markierten Dateien im gegenüberliegenden Verzeichnis erweitert. - -Hinweis: Möchtest du eine einfache Shell? Drücke C-o, zurück zum MC nochmals C-o. - -Hinweis: Das Setzen der Variablen CDPATH kann dir in cd-Kommandos Tastenschläge ersparen. - -Hinweis: Wenn du die .*-Dateien sehen möchtest, setze dies im Konfigurationsdialog. - -Hinweis: Möchtest du die *~-Sicherungsdateien sehen? Setze dies im Konfigurationsdialog. - -Hinweis: Vervollständigung funktioniert auf allen Eingabezeilen in allen Dialogen. Drücke M-Tabulator. - -Hinweis: Bei langsamen Terminals hilft vielleicht der Parameter -s. - -Hinweis: Datei suchen: Du kannst mit den Suchergebnissen über das Befehlsmenü arbeiten. - -Hinweis: Möchtest du eine erweiterte Suche? Benutze den Menübefehl "Datei suchen". - -Hinweis: Um das Verzeichnis auf halbem Weg durch Eingabe eines Befehls zu ändern, verwende M-c (schnelles cd). - -Hinweis: Shell-Befehle funktionieren nicht, wenn du auf einem nichtlokalen Dateisystem bist. - -Hinweis: Bringe den Text von einem totem Display zurück mit C-y. - -Hinweis: Funktionieren einige Tasten nicht? Sieh dir das Menü Optionen / Tasten lernen an. - -Hinweis: Benutze M-!, um die Ausgabe eines Befehls im Anzeiger zu sehen. - -Hinweis: F13 (oder Shift-F3) ruft den Betrachter im RAW-Modus auf. - -Hinweis: Du kannst den Editor für F4 mit der Shellvariable EDITOR setzen. - -Hinweis: Du kannst den externen Viewer mit den Shellvariablen VIEWER oder PAGER setzen. - -Hinweis: Du kannst alle Bestätigungsanfragen unter Optionen / Nachfragen deaktivieren. - -Hinweis: Springe mit C-\ direkt zu häufig verwendeten Verzeichnissen. - -Hinweis: Du kannst eine anonyme FTP-Verbindung im MC mit der Eingabe von 'cd ftp://machine.edu' starten. - -Hinweis: FTP ist im Midnight Commander eingebaut, Menüeintrag: Datei/FTP-Verbindung. - -Hinweis: M-t wechselt schnell den Listenmodus. - -Hinweis: Du kannst den Benutzernamen verwenden, wenn du bei FTP 'cd ftp://user@machine.edu' eingibst. - -Hinweis: Du kannst eine RPM-Datei mit Enter auf die Datei durchsuchen. - -Hinweis: Um Verzeichnisse in der Auswahlbox zu markieren, füge einen Schrägstrich hinzu. - -Hinweis: Um mit der Maus Ausschneiden und Einfügen nutzen zu können, muss evtl. die Umschalttaste gedrückt werden. - -Hinweis: Speichere häufig verwendete FTP-Seiten mit C-\ in der Hotlist. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.el b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.el deleted file mode 100644 index b931ebe489..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.el +++ /dev/null @@ -1,87 +0,0 @@ -Hint: Use C-x t to copy tagged file names to the command line. - -Συμβουλή: Πατώντας C-x p μποÏείτε να αντιγÏάψετε την Ï„Ïέχουσα τοποθεσία στη γÏαμμή εντολών. - -Συμβουλή: Πατήστε M-Tab (ή Esc+Tab) για συμπλήÏωση. Πατήστε το δÏο φοÏές για να δείτε μια λίστα. - -Συμβουλή: Πατήστε M-p και M-n για να δείτε το ιστοÏικό εντολών. - -Hint: Need to quote a character? Use Control-q and the character. - -Hint: Tired of these messages? Turn them off from the Options/Layout menu. - -Hint: Selecting directories: add a slash to the end of the matching pattern. - -Hint: If your terminal lacks functions keys, use the ESC+number sequence. - -Συμβουλή: Η ιστοσελίδα του GNU Midnight Commander: https://www.midnight-commander.org - -Συμβουλή: ΠαÏακαλοÏμε στείλτε μας αναφοÏές σφαλμάτων στο mc-devel@lists.midnight-commander.org - -Hint: Tab changes your current panel. - -Hint: VFS coolness: tap enter on a tar file to examine its contents. - -Hint: We also have a nice manual page. - -Συμβουλή: Θέλετε πεÏιήγηση στο στυλ του Lynx; Ρυθμίστε το στο διάλογο Ρυθμίσεις. - -Hint: % macros work even on the command line. - -Συμβουλή: Το M-! θα σας επιτÏέψει να εκτελέσετε Ï€ÏογÏάμματα και να δείτε την έξοδο στον Ï€Ïοβολέα. - -Συμβουλή: Η μοÏφή της λίστας αÏχείων μποÏεί να Ï€ÏοσαÏμοστεί. Πατήστε "man mc" για λεπτομέÏειες. - -Hint: %D/%T expands to the tagged files in the opposite directory. - -Συμβουλή: Θέλετε ένα σκέτο κέλυφος; Πατήστε C-o, και ελάτε πίσω στο MC με C-o ξανά. - -Hint: Setting the CDPATH variable can save you keystrokes in cd commands. - -Συμβουλή: Αν θέλετε να βλέπετε τα αÏχεία .* , πείτε το στο διάλογο Ïυθμίσεων. - -Συμβουλή: Θέλετε να βλέπετε τα αÏχεία *~; Ρυθμίστε το στο διάλογο Ïυθμίσεων - -Hint: Completion works on all input lines in all dialogs. Just press M-Tab. - -Συμβουλή: Για αÏγά τεÏματικά ίσως μποÏεί να βοηθήσει η σημαία -s. - -Hint: Find File: you can work on the files found using the Panelize button. - -Hint: Want to do complex searches? Use the External Panelize command. - -Συμβουλή: Για να αλλάξετε κατάλογο ενώ έχετε ήδη ξεκινήσει να πληκτÏολογείτε μία εντολή, χÏησιμοποιήστε το M-c (γÏήγοÏο cd). - -Συμβουλή: Οι εντολές κελÏφους δε θα λειτουÏγήσουν όταν βÏίσκεστε σε ένα μη τοπικό σÏστημα αÏχείων. - -Hint: Bring text back from the dead with C-y. - -Συμβουλή: Μήπως κάποια από τα πλήκτÏα σας δε λειτουÏγοÏν; Δείτε το Επιλογές/Εκμάθηση πλήκτÏων. - -Συμβουλή: Για να δείτε την έξοδο μιας εντολής στον Ï€Ïοβολέα, χÏησιμοποιήστε το M-! - -Hint: F13 (or Shift-F3) invokes the viewer in raw mode. - -Hint: You may specify the editor for F4 with the shell variable EDITOR. - -Συμβουλή: ΜποÏείτε να Ïυθμίσετε τον εξωτεÏικό Ï€Ïοβολέα με τις μεταβλητές κελÏφους VIEWER ή PAGER. - -Συμβουλή: ΜποÏείτε να απενεÏγοποιήσετε όλα τα εÏωτήματα επιβεβαίωσης στο Επιλογές/Επιβεβαίωση - -Hint: Leap to frequently used directories in a single bound with C-\. - -Συμβουλή: ΜποÏείτε να κάνετε ανώνυμο FTP με το mc πληκτÏολογώντας 'cd ftp://machine.edu' - -Συμβουλή: Το Midnight Commander έχει ενσωματωμένο FTP, δείτε το Î¼ÎµÎ½Î¿Ï Î‘Ïχείο/FTP. - -Συμβουλή: Το M-t αλλάζει γÏήγοÏα τη λειτουÏγία λίστας. - -Συμβουλή: ΜποÏείτε να Ïυθμίσετε το όνομα χÏήστη όταν κάνετε ftps: 'cd ftp://user@machine.edu' - -Συμβουλή: ΜποÏείτε να πεÏιηγηθείτε σε αÏχεία RPM πατώντας enter πάνω σε ένα αÏχείο rpm. - -Hint: To mark directories on the select dialog box, append a slash. - -Συμβουλή: Η χÏήση αντιγÏαφής και επικόλλησης με το ποντίκι μποÏεί να απαιτεί να πατάτε το πλήκτÏο shift - -Hint: Key frequently visited ftp sites in the hotlist: type C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.en_GB b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.en_GB deleted file mode 100644 index 6b9bc8abd7..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.en_GB +++ /dev/null @@ -1,87 +0,0 @@ -Hint: Use C-x t to copy tagged file names to the command line. - -Hint: Use C-x p to copy the current pathname to the command line. - -Hint: Completion: use M-Tab (or Esc+Tab). Type it twice to get a list. - -Hint: Use M-p and M-n to access the command history. - -Hint: Need to quote a character? Use Control-q and the character. - -Hint: Tired of these messages? Turn them off from the Options/Layout menu. - -Hint: Selecting directories: add a slash to the end of the matching pattern. - -Hint: If your terminal lacks functions keys, use the ESC+number sequence. - -Hint: The homepage of GNU Midnight Commander: https://www.midnight-commander.org - -Hint: Please send any bug reports to mc-devel@lists.midnight-commander.org - -Hint: Tab changes your current panel. - -Hint: VFS coolness: tap enter on a tar file to examine its contents. - -Hint: We also have a nice manual page. - -Hint: Do you want Lynx-style navigation? Set it in the Configuration dialog. - -Hint: % macros work even on the command line. - -Hint: M-! will allow you to execute programs and see the output in the viewer. - -Hint: The file listing format can be customised; do "man mc" for details. - -Hint: %D/%T expands to the tagged files in the opposite directory. - -Hint: Want your plain shell? Press C-o, and get back to MC with C-o again. - -Hint: Setting the CDPATH variable can save you keystrokes in cd commands. - -Hint: If you want to see your .* files, say so in the Configuration dialogue. - -Hint: Want to see your *~ backup files? Set it in the Configuration dialogue. - -Hint: Completion works on all input lines in all dialogs. Just press M-Tab. - -Hint: On slow terminals the -s flag may help. - -Hint: Find File: you can work on the files found using the Panelise button. - -Hint: Want to do complex searches? Use the External Panelise command. - -Hint: To change directory halfway through typing a command, use M-c (quick cd). - -Hint: Shell commands will not work when you are on a non-local file system. - -Hint: Bring text back from the dead with C-y. - -Hint: Are some of your keys not working? Look at Options/Learn keys. - -Hint: To look at the output of a command in the viewer, use M-! - -Hint: F13 (or Shift-F3) invokes the viewer in raw mode. - -Hint: You may specify the editor for F4 with the shell variable EDITOR. - -Hint: You may specify the external viewer with the shell vars VIEWER or PAGER. - -Hint: You can disable all requests for confirmation in Options/Confirmation. - -Hint: Leap to frequently used directories in a single bound with C-\. - -Hint: You can do anonymous FTP with mc by typing 'cd ftp://machine.example.com' - -Hint: FTP is built in the Midnight Commander, check the File/FTP link menu. - -Hint: M-t changes quickly the listing mode. - -Hint: You can specify the username when doing ftps: 'cd ftp://user@machine.example.com' - -Hint: You can browse RPM files by tapping enter on top of an rpm file. - -Hint: To mark directories on the select dialogue box, append a slash. - -Hint: To use the mouse cut and paste may require holding the shift key - -Hint: Key frequently visited ftp sites in the hotlist: type C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.eo b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.eo deleted file mode 100644 index 6d10e18d9f..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.eo +++ /dev/null @@ -1,87 +0,0 @@ -Konsilo: Stir-x t por kopii markitajn dosiernomojn al la komandlinio. - -Konsilo: Stir-x p por kopii la nunan vojnomon al la komandlinio. - -Konsilo: Reg-Tabo (aÅ­ Esk-Tabo) por finigi tajpatan frazon. Dufoje por listo. - -Konsilo: Reg-p kaj Reg-n por atingi la komandan historion. - -Konsilo: Stir-q por citi signon. - -Konsilo: Ĉu vi ne plu volas vidi ĉi tiujn mesaÄojn? Malaktivigi ilin en Agordo/AranÄo. - -Konsilo: Aldoni oblikvon al la fino de Åablono por elekti dosierujon. - -Konsilo: Se via terminalo malhavas funkciajn klavojn, uzu la kombinon Esk+numero. - -Konsilo: La ĉefpaÄo de Midnight Commander: https://www.midnight-commander.org - -Konsilo: Sendi raportojn pri eraroj (anglalingve) al mc-devel@lists.midnight-commander.org - -Konsilo: Tabo ÅanÄas la nunan flankon. - -Konsilo: Mirinde, klavi la Enen-klavon super tar-dosiero por esplori Äian enhavon. - -Konsilo: AnkaÅ­ ekzistas manlibra paÄo. - -Konsilo: Ĉu vi volas navigadon laÅ­ la modelo de Lynx? Agordi en la agorda dialogujo. - -Konsilo: makrooj kun % funkcias eĉ ĉe la komandlinio. - -Konsilo: Reg-! por plenumigi programon kaj vidi la eligon en la dokumento-legilo. - -Konsilo: La aranÄon en la dosiera listo agordeblas. - -Konsilo: %D/%T etendiÄas al la markitaj dosieroj en la kontraÅ­a dosierujo. - -Konsilo: Stir-o por inversigi inter la flankoj kaj Åelo. - -Konsilo: Agordi la medivariablon CDPATH por malplia klavado. - -Konsilo: Deklari en la agorda dialogujo tian, se vi volas vidi kaÅitajn dosierojn. - -Konsilo: Deklari en la agorda dialogujo tian, se vi volas vidi provizorajn dosierojn. - -Konsilo: Kompletigo funkcias ĉe tekstaj kampoj en ĉiuj dialogujoj. Premu: Reg-Tabo. - -Konsilo: La komandlinia parametro -s eble estus helpa por malrapidaj terminaloj. - -Konsilo: Eblas prilabori la trovitajn dosierojn per la butono "Flankigi". - -Konsilo: Ĉu vi volas fari malsimplajn serĉojn? "Eksterigi Flankojn" uzeblas. - -Konsilo: Reg-c por ÅanÄi dosierujon dum tajpi komandon. - -Konsilo: Åœelaj komandoj ne funkcias ĉe foraj dosiersistemoj. - -Konsilo: Stir-y por revivigi tekston. - -Konsilo: Agordu/Lernu klavojn por certigi, ke ĉiuj klavoj funkcias. - -Konsilo: Reg-! por rigardi la eligon de komando en la dokumento-legilo. - -Konsilo: F13 (aÅ­ Reg-F3) por la dokumento-legilo en kruda reÄimo. - -Konsilo: Specifi la tekstoredaktilon por F4 per la medivariablo EDITOR. - -Konsilo: Specifi la eksteran dokumento-legilon per la medivariablon VIEWER aÅ­ PAGER. - -Konsilo: Ĉiuj konfirmo-petoj estas malaktivigeblaj en Agordo/Konfirmo. - -Konsilo: Stir-\ por ofte uzataj dosierujoj. - -Konsilo: 'cd ftp://machine.edu' por sennoma FTP-konekto al machine.org - -Konsilo: Dosiero/FTP por apriora FTP-kliento. - -Konsilo: Reg-t por rapide ÅanÄi la listan reÄimon. - -Konsilo: Specifi la salutnomon ĉe FTP-servilo per 'cd ftp://salutnomo@machine.edu' - -Konsilo: Klavi la enen-klavon super RPM-dosieron por rigardi Äian enhavon. - -Konsilo: Por marki dosierujojn ĉe elektiloj almetu oblikvon. - -Konsilo: Eble vi devas premadi la registrumon por kopii kaj alglui per la muso - -Konsilo: Stir-\ por memori oftajn FTP-servilojn. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.es b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.es deleted file mode 100644 index b7060f9f34..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.es +++ /dev/null @@ -1,87 +0,0 @@ -Consejo: Ctrl-x t pone los archivos marcados en la línea de órdenes. - -Consejo: Ctrl-x p copia la trayectoria completa en la línea de órdenes. - -Consejo: Alt-Tab (o Esc+Tab) completa nombres; dos veces y muestra una lista. - -Consejo: Alt-p y Alt-n permiten acceder a la historia de órdenes. - -Consejo: Para introducir un carácter especial: Ctrl-q y el carácter. - -Consejo: ¿Harto de mensajitos? Se quitan en el menú Opciones/Presentación. - -Consejo: Para seleccionar directorios añadir «/» tras el patrón a buscar. - -Consejo: Si no funcionan las teclas de función, ESC+número sirve. - -Consejo: El sitio oficial del Midnight Commander es https://www.midnight-commander.org - -Consejo: Comunique cualquier defecto a mc-devel@lists.midnight-commander.org - -Consejo: El tabulador cambia de panel. - -Consejo: ¡El mejor VFS! Al «entrar» en un archivo comprimido se ve su contenido. - -Consejo: El Midnight Commander tiene manual: «man mc» - -Consejo: ¿Desea navegar con las flechas al estilo Lynx? Está en Configuración. - -Consejo: Las macros con % funcionan incluso en la línea de órdenes. - -Consejo: Con Alt-! puede ejecutar programas y ver la salida en el visor. - -Consejo: El formato del listado se puede personalizar; «man mc» para ver pistas. - -Consejo: %D/%T representa los archivos seleccionados en el panel opuesto. - -Consejo: Con C-o se puede ir y volver a la shell de siempre. - -Consejo: La variable CDPATH ahorra teclas al cambiar de directorios. - -Consejo: Para ver los archivos «.*» basta indicarlo en Configuración. - -Consejo: Para ver los archivos de seguridad tipo *~ ir a Configuración. - -Consejo: Se puede auto-completar nombres también en los diálogos con Alt-Tab. - -Consejo: En terminales lentos la opción -s puede ayudar. - -Consejo: Puede «Llevar al panel» los resultados de «Buscar archivos» y usarlos. - -Consejo: Puede hacer y guardar búsquedas complejas con «Búsquedas externas». - -Consejo: Con M-c cambiar de directorio es un poco más cómodo. - -Consejo: Las instrucciones de la Shell no funcionan fuera del sistema local. - -Consejo: Con C-y puede recuperar texto eliminado. - -Consejo: ¿Alguna tecla rebelde? Puede educarla con «Redefinir teclas». - -Consejo: Para ver la salida de una orden por el visor M-! - -Consejo: F13 (o Mayúsculas-F3) invoca el visor en modo primitivo, sin formatos. - -Consejo: F4 puede usar cualquier editor que indiquemos en la variable EDITOR. - -Consejo: Se puede usar un visor externo indicado en la variable PAGER. - -Consejo: Para deshabilitar los mensajes de Confirmación vaya al menú Opciones. - -Consejo: Apunte los directorios y sitios más usados en «Favoritos». - -Consejo: Para hacer un FTP anónimo con mc: «cd ftp://maquina.dominio» - -Consejo: FTP está integrado en Midnight Commander, en «conexión por FTP...» - -Consejo: M-t permite cambiar rápidamente entre varios modos de listado. - -Consejo: Para hacer un FTP no-anónimo: «cd ftp://usuario@maquina.dominio» - -Consejo: Para examinar un archivo RPM basta pulsar «intro» sobre él. - -Consejo: Para marcar directorios en el dialogo de selección, añadirle «/». - -Consejo: Para copiar y pegar con ratón mantener presionada la tecla MAYÚSCULAS. - -Consejo: Los ftp habituales se pueden guardar en «Favoritos». diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.et b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.et deleted file mode 100644 index e7c19b8c1e..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.et +++ /dev/null @@ -1,87 +0,0 @@ -Vihje: Kasuta C-x, et kopeerida märgitud failide nimed käsureale. - -Vihje: Kasuta C-x p, et kopeerida aktiivne otsingurada käsureale. - -Vihje: Lõpetamiseks kasuta M-Tab (või Esc-Tab). Topeltsisestus kuvab listi. - -Vihje: Käskude ajaloo kasutamiseks kasuta M-p ja M-n. - -Vihje: Täht vajab tsiteeringut? Sisesta C-q ja täht. - -Vihje: Oled tüdinud neist teadetest? Lülita need välja menüüst Seaded/Paigutus. - -Vihje: Kataloogide valimiseks lisa sobiva mustri lõppu kaldkriips. - -Vihje: Kui terminalil puuduvad funktsiooniklahvid, siis kasuta ESC+number jadasid. - -Vihje: GNU Midnight Commanderi koduleht: https://www.midnight-commander.org - -Vihje: Palun saada vearaportid aadressile mc-devel@lists.midnight-commander.org - -Vihje: TAB vahetab aktiivset paneeli. - -Vihje: VFS võimalused: tar-faili sisuga tutvumiseks vajuta ta peal ENTER. - -Vihje: Olemas on ka meeldiv manuaal. - -Vihje: Soovid Lynxi stiilis navigeerimist? Luba see konfiguratsiooni dialoogist. - -Vihje: %-makrod töötavad ka käsureal. - -Vihje: M-! lubab käivitada programme ja vaadata väljundit vaatajas. - -Vihje: Faililistingu formaati saab muuta; lähemalt vaata manuaalist. - -Vihje: %D/%T laiendab märgitud failid vastaskataloogis. - -Vihje: Soovid harilikku kesta? Vajuta C-o; tagasipöördumiseks vajuta uuesti C-o. - -Vihje: Muutujale CDPATH väärtuse omistamine võib vähendada klahvivajutusi cd käskudes. - -Vihje: Kui soovid näha peidetud faile, siis luba see konfiguratsiooni dialoogis. - -Vihje: Kui soovid näha varukoopia faile, siis luba see konfiguratsiooni dialoogis. - -Vihje: Lõpetamine töötab iga dialoogi sisestusväljadel; lihtsalt vajuta M-Tab. - -Vihje: Parameeter -s võib aidata aeglase terminali kasutamisel. - -Vihje: Failiotsing: sa saad töötada leitud failidega kasutades nuppu Paneelile. - -Vihje: Soovid teha keerulisi otsinguid? Kasuta käsku Väline paneelile. - -Vihje: Kataloogi kiirvahetuseks käsu sisestamise ajal kasuta M-c (quick cd). - -Vihje: Kesta käsud töötavad ainult kohalikus failisüsteemis. - -Vihje: C-y taastab kustutatud teksti. - -Vihje: Kas mõned klahvid ei tööta? Vaata Seaded/Õpi klahve. - -Vihje: Käsu väljundi vaatamiseks vaatajas kasuta M-! - -Vihje: F13 (või Shift-F3) käivitab kuvaja toorrežiimis. - -Vihje: Klahvile F4 saad redaktori määrata keskkonna muutujaga EDITOR. - -Vihje: Välise vaataja saad määrata keskkonna muutujaga VIEWER või PAGER. - -Vihje: Kinnituse küsimise kõigile päringutele saad keelata Seaded/Kinnitused. - -Vihje: Hüppa sageli kasutatud kataloogidesse ühe seotud C-\'ga. - -Vihje: Anonüümse FTP kasutamiseks mc-ga sisesta 'cd ftp://masin.ee' - -Vihje: FTP on Midnight Commanderisse sisse ehitatud; vaata menüüst Fail/FTP link. - -Vihje: M-t võimaldab listingu režiimi kiiret muutmist. - -Vihje: Kasutaja määramine FTP ühenduses: 'cd ftp://kasutaja@masin.ee' - -Vihje: RPM faili sisuga tutvumiseks vajuta sellel Enter. - -Vihje: Kataloogide märkimiseks valiku dialoogis lisa kaldkriips. - -Vihje: Hiirega lõikamiseks ja asetamiseks võib olla vajalik vajutada klahvi Shift. - -Vihje: Sisesta tihti külastatud FTP saidid kiirvalikust: tipi C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.eu b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.eu deleted file mode 100644 index 5c389d2b64..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.eu +++ /dev/null @@ -1,87 +0,0 @@ -Aholkua: Erabili Ktrl-x t hautatutako fitxategi izenak komando lerrora kopiatzeko. - -Aholkua: Erabili Ktrl-x p uneko bide-izena komando lerrora kopiatzeko. - -Aholkua: Osatzea: erabili Alt-Tab (edo Ihes+Tab; X ingurunean Ktrl+Alt+Tab). Tekleatu bitan zerrenda bat jasotzeko. - -Aholkua: Erabili Alt-p eta Alt-n komandoen historia atzitzeko. - -Aholkua: Karaktere bat txertatzeko? Erabili Kontrol-q eta karakterea (adibidez '+' txertatzeko Ktrl-q +). - -Aholkua: Mezu hauekin gogaituta? Itzali itzazu Aukerak/Diseinua menutik. - -Aholkua: Direktorioak hautatzea: erantsi «/» barra zeiharra bilaketa ereduaren amaieran. - -Aholkua: Zure terminalari funtzio teklak falta bazaizkio, erabili Ihes+zenbakia sekuentzia. - -Aholkua: GNU Midnight Commander-ren atariko orria: https://www.midnight-commander.org - -Aholkua: Mesedez bidali akats txosten oro hona: mc-devel@lists.midnight-commander.org - -Aholkua: Tab teklak zure uneko panela aldatzen du. - -Aholkua: VFS-ren onurak: sakatu sartu tar fitxategi batean bere edukia aztertzeko. - -Aholkua: Eskuliburu orrialde ederra ere badaukagu. - -Aholkua: Lynx tankerako nabigazioa nahi duzu? Ezarri ezazu Konfigurazio elkarrizketan. - -Aholkua: % makroak komando lerroan ere erabili daitezke. - -Aholkua: Alt-! erabili programak exekutatu eta irteera erakuslean ikusteko. - -Aholkua: Fitxategiak zerrendatzeko formatua egokitu daiteke; egin "man mc" xehetasunak ikusteko. - -Aholkua: %D/%T pareko direktorioan hautatutako fitxategietara hedatzen da. - -Aholkua: Zure shell soila nahi duzu? Sakatu Ktrl-o, eta itzuli MC-ra Ktrl-o berriz erabiliz. - -Aholkua: CDPATH aldagaia ezarrita cd komandoetan teklak sakatzea aurreztu dezakezu. - -Aholkua: Zure .* fitxategiak ikusi nahi badituzu, horrela adierazi Konfigurazio elkarrizketan. - -Aholkua: Zure *~backup fitxategiak ikusi nahi dituzu? Ezarri ezazu Konfigurazio elkarrizketan. - -Aholkua: Osatzea elkarrizketa guztietako sarrera lerro guztietan dabil. Sakatu Alt-Tab (X ingurunean Ktrl+Alt+Tab). - -Aholkua: Terminal moteletan -s banderak lagundu dezake. - -Aholkua: Aurkitu fitxategia: Aurkitutako fitxategietan lan egin dezakezu Panelatu botoia erabiliz. - -Aholkua: Bilaketa konplexuak egin nahi? Erabili Kanpora Paneleratu komandoa. - -Aholkua: Direktorioz aldatzeko komando bat tekleatzen erdibidean zaudela, erabili M-c (cd azkarra). - -Aholkua: Shell komandoak ez dira ibiliko bertakoa ez den fitxategi-sisteman zaudenean. - -Aholkua: Ekarri atzera testua heriotzatik Ktrl-y erabilita. - -Aholkua: Zure teklatako batzuk ez dabiltza? Begiratu Aukerak/Teklak ikasi. - -Aholkua: Komando baten irteera erakuslean ikusteko, erabili Alt-! - -Aholkua: F13 (edo Maius-F3), erakuslea deitzen du modu gordinean. - -Aholkua: F4-rentzako editorea zehaztu dezakezu EDITOR shell aldagaiarekin. - -Aholkua: Kanpoko erakuslea zehaztu dezakezu VIEWER edo PAGER shell aldagaiekin. - -Aholkua: Berresteko eskaera guztiak ezgaitu ditzakezu Aukerak/Berrespena-tik. - -Aholkua: Iritsi maiz erabilitako direktorioetara jauzi bakarrean C-\ erabiliz. - -Aholkua: FTP anonimoa egin dezakezu mc-rekin 'cd ftp://machine.edu' tekleatuta. - -Aholkua: FTP barneratua dag Midnight Commanderren, frogatu «Fitxategia/FTP esteka» menua. - -Aholkua: Alt-t zerrendatze modua azkar aldatzeko. - -Aholkua: Erabiltzaile izena zehaztu dezakezu ftp-ak egiterakoan: 'cd ftp://erabiltzailea@machine.edu' - -Aholkua: RPM fitxategiak arakatu ditzakezu rpm fitxategi baten gainean sartu sakatuta. - -Aholkua: Hautatu elkarrizketa-koadroan direktorioak markatzeko, erantsi «/» bat. - -Aholkua: Saguaren ebaki eta itsatsi erabiltzeko maius tekla sakatu behar izan dezakezu - -Aholkua: Txertatu maiz bisitatutako ftp lekuak gogokoetan: tekleatu C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.fa b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.fa deleted file mode 100644 index a2cb91956b..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.fa +++ /dev/null @@ -1,87 +0,0 @@ -راهنمایی: از ترکیب C-x t برای Ú©Ù¾ÛŒ کردن نام ÙØ§ÛŒÙ„‌های انتخاب شده به خط ÙØ±Ù…ان Ø§Ø³ØªÙØ§Ø¯Ù‡ کنید. - -راهنمایی: از ترکیب C-x p برای Ú©Ù¾ÛŒ کردن مسیر پوشه‌ی ÙØ¹Ù„ÛŒ به خط ÙØ±Ù…ان Ø§Ø³ØªÙØ§Ø¯Ù‡ کنید. - -راهنمایی: تکمیل: از ترکیب M-Tab (یا Esc+Tab) Ø§Ø³ØªÙØ§Ø¯Ù‡ کنید. | دوبار تایپ کنید تا Ùهرستی نشان داده شود. - -راهنمایی: برای دسترسی به تاریخچه‌ی ÙØ±Ù…ان‌ها از M-p Ùˆ M-n Ø§Ø³ØªÙØ§Ø¯Ù‡ کنید. - -Hint: Need to quote a character? Use Control-q and the character. - -راهنمایی: از این راهنمایی‌ها خسته شده‌اید؟ در منوی تنظیمات/طرح‌بندی آن‌ها را خاموش کنید. - -راهنمایی: برای انتخاب پوشه‌ها در آخر الگوی تطبیق یک کاراکتر خط مورب اضاÙÙ‡ کنید. - -راهنمایی: اگر ترمینال شما از کلید‌های ÙØ§Ù†Ú©Ø´Ù† پشتیبانی نمی‌کند، از Esc+عدد Ø§Ø³ØªÙØ§Ø¯Ù‡ کنید. - -راهنمایی: نشانی وبگاه ÙØ±Ù…اندار نیمهشب: https://www.midnight-commander.org - -راهنمایی: Ù„Ø·ÙØ§ هرگونه باگ را به mc-devel@lists.midnight-commander.org گزارش دهید. - -راهنمایی: Tab قاب ÙØ¹Ù„ÛŒ را عوض می‌کند. - -Hint: VFS coolness: tap enter on a tar file to examine its contents. - -Hint: We also have a nice manual page. - -Hint: Do you want Lynx-style navigation? Set it in the Configuration dialog. - -Hint: % macros work even on the command line. - -Hint: M-! will allow you to execute programs and see the output in the viewer. - -Hint: The file listing format can be customized; do "man mc" for details. - -Hint: %D/%T expands to the tagged files in the opposite directory. - -راهنمایی: خط ÙØ±Ù…ان ساده‌ی خودتان را می‌خواهید؟ با ÙØ´Ø±Ø¯Ù† C-o بین خط ÙØ±Ù…ان Ùˆ MC جابجا شوید. - -Hint: Setting the CDPATH variable can save you keystrokes in cd commands. - -راهنمایی: می‌خواهید ÙØ§ÛŒÙ„‌های پنهان را Ú©Ù‡ با . شروع می‌شوند ببینید، به پنجره‌ی پیکربندی بروید. - -راهنمایی: می‌خواهید ÙØ§ÛŒÙ„‌های پشتیبان را Ú©Ù‡ با ~ به پایان می‌رسند را ببینید؟ به پنجره‌ی پیکربندی بروید. - -Hint: Completion works on all input lines in all dialogs. Just press M-Tab. - -Hint: On slow terminals the -s flag may help. - -Hint: Find File: you can work on the files found using the Panelize button. - -Hint: Want to do complex searches? Use the External Panelize command. - -راهنمایی: اگر خواستید در حین تایپ یک دستور پوشه را عوض کنید از ترکیب M-c Ø§Ø³ØªÙØ§Ø¯Ù‡ کنید (quick cd). - -Hint: Shell commands will not work when you are on a non-local file system. - -Hint: Bring text back from the dead with C-y. - -راهنمایی: برخی از کلیدهای شما کار نمی‌کنند؟ به منوی تنظیمات/یادگیری کلیدها بروید. - -Hint: To look at the output of a command in the viewer, use M-! - -Hint: F13 (or Shift-F3) invokes the viewer in raw mode. - -راهنمایی: برای تعیین ویرایشگری Ú©Ù‡ با F4 باز می‌شود متغیر EDITOR را در شل مقداردهی کنید. - -Hint: You may specify the external viewer with the shell vars VIEWER or PAGER. - -راهنمایی: شما می‌توانید تمام درخواست‌های تایید را در منوی تنظیمات/تایید ØºÛŒØ±ÙØ¹Ø§Ù„ کنید. - -Hint: Leap to frequently used directories in a single bound with C-\. - -Hint: You can do anonymous FTP with mc by typing 'cd ftp://machine.edu' - -راهنمایی: FTP در ÙØ±Ù…اندار نیمه‌شب گنجانده شده است. منوی ÙØ§ÛŒÙ„/FTP link را ببینید. - -Hint: M-t changes quickly the listing mode. - -Hint: You can specify the username when doing ftps: 'cd ftp://user@machine.edu' - -Hint: You can browse RPM files by tapping enter on top of an rpm file. - -Hint: To mark directories on the select dialog box, append a slash. - -راهنمایی: برای بریدن Ùˆ چسباندن با Ø§Ø³ØªÙØ§Ø¯Ù‡ از موشواره باید دکمه‌ی shift را نگه‌دارید - -Hint: Key frequently visited ftp sites in the hotlist: type C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.fr b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.fr deleted file mode 100644 index 553c01178c..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.fr +++ /dev/null @@ -1,87 +0,0 @@ -Astuce : Faire C-x t pour copier les noms des fichiers sélectionnés vers la ligne de commande. - -Astuce : Faire C-x p pour copier le chemin courant vers la ligne de commande. - -Astuce : Complétion: faire M-Tab (ou Esc+Tab). Réfaire une deuxième fois pour avoir une liste. - -Astuce : Faire M-p et M-n pour accéder à l’historique des commandes. - -Astuce : Besoin de quoter un caractère ? Faire C-q suivi du caractère. - -Astuce : Lassé de lire ces messages ? Désactivez les dans le menu Options/Présentation. - -Astuce : Sélection de répertoires: ajouter une barre oblique à la fin de motif de recherche. - -Astuce : Si votre clavier n’a pas de touche de fonction, utilisez la combinaison ESC+nombre. - -Astuce : Site officiel de GNU Midnight Commander : https://www.midnight-commander.org - -Astuce : Envoyez vos rapports de bogues à l’adresse mc-devel@lists.midnight-commander.org - -Astuce : La touche Tab permute le panneau courant. - -Astuce : VFS : taper Entrée sur une archive tar pour en visualiser son contenu. - -Astuce : Une documentation complète est disponible : « man mc ». - -Astuce : Vous cherchez une navigation à la Lynx ? Activez-là dans le menu Options/Configuration. - -Astuce : Les macros % fonctionnent également dans la ligne de commande. - -Astuce : M-! permet d’exécuter un programme et d’afficher le résultat dans la visionneuse. - -Astuce : Le listing des fichiers peut-être customisée ; consultez « man mc » pour plus d’informations. - -Astuce : %D/%T substitue le répertoire et la liste des fichiers sélectionnés dans le panneau opposé. - -Astuce : Vous voulez un shell plein écran ? Tapez C-o, puis revenez à MC en tapant C-o à nouveau. - -Astuce : Assigner des répertoires à la variable d’environnement CDPATH peut rendre plus concise la commande cd. - -Astuce : Pour visualiser les fichiers cachés, paramétrez-le dans le menu Options/Configuration. - -Astuce : Visualiser les fichiers de sauvegardes *~ ? Paramétrez-le dans le menu Options/Configuration. - -Astuce : La complétion fonctionne sur toutes les saisies dans toutes les fenêtres. Taper M-Tab. - -Astuce : Pour les terminaux lents, lancer MC avec l’argument -s peut aider. - -Astuce : Recherche de fichier : travaillez avec les fichiers trouvés en utilisant la fonction « Mettre en panneau ». - -Astuce : Vous souhaitez faire des recherches complexes ? Rendez-vous dans le menu Commande/Panneau externe. - -Astuce : Pour changer de répertoire rapidement, utiliser M-c (cd rapide). - -Astuce : Les commandes shell ne fonctionnent que sur des systèmes de fichiers locaux. - -Astuce : Coller du texte dans la ligne de commande avec C-y. - -Astuce : Tous les raccourcis claviers ne fonctionnent pas ? Vérifiez dans le menu Options/Apprendre les touches. - -Astuce : Pour voir le résultat d’une commande dans la visionneuse, utilisez M-! - -Astuce : F13 (ou Shift-F3) exécute la visionneuse en mode brut. - -Astuce : Vous pouvez définir l’éditeur utilisé avec la touche F4 via la variable d’environnement EDITOR. - -Astuce : Vous pouvez définir la visionneuse externe via les variables d’environnement VIEWER ou PAGER dans un shell. - -Astuce : Vous pouvez désactiver toutes les demandes de confirmation dans le menu Options/Confirmation. - -Astuce : Allez dans vos répertoires favoris rapidement avec C-backslash. - -Astuce : Vous pouvez faire du FTP anonyme avec MC en tapant « cd ftp://machine.edu ». - -Astuce : Le support FTP est intégré à Midnight Commander, voir le menu « Lien FTP ». - -Astuce : M-t change le mode de listing courant. - -Astuce : Vous pouvez définir l’utilisateur quand vous utilisez FTP : « cd ftp://user@machine.edu ». - -Astuce : VFS: parcourez le contenu des fichiers RPM en tapant Entrée sur le fichier. - -Astuce : Pour ne sélectionner que les répertoires dans la fenêtre, sélectionnez (menu Fichiers/Sélectionner les groupes), ajoutez un « / ». - -Astuce : Le copier-coller par la souris peut nécessiter de maintenir la touche Shift. - -Astuce : Définissez vos sites FTP favoris dans la hotlist : taper C-backslash. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ga b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ga deleted file mode 100644 index 9201d65085..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ga +++ /dev/null @@ -1,87 +0,0 @@ -Leid: Bain úsáid as C-x t chun ainmneacha comhaid clibáilte a chóipeáil chuig an líne ordaithe. - -Leid: Bain úsáid as C-x p chun an luíainm reatha a chóipeáil chuig an líne ordaithe. - -Leid: Críochnú: bain úsáid as M-Tab (nó Esc + Tab). Déan é a thaifeadadh faoi dhó chun liosta a fháil. - -Leid: Bain úsáid as M-p agus M-n chun rochtain a fháil ar stair na gceannasaí. - -Leid: An gá duit carachtar a lua? Bain úsáid as Rialú-q agus an carachtar. - -Leid: Tuirseach de na teachtaireachtaí seo? Cas iad as an roghchlár Roghanna / Leagan amach. - -Leid: Eolairí a roghnú: cuir slais isteach go dtí deireadh an patrún meaitseála. - -Leid: Má níl do críochfort eochracha feidhmeanna, bain úsáid as an ESC + seicheamh uimhir - -Leid: Leathanach baile GNU Midnight Commander: https://www.midnight-commander.org - -Leid: Seol tuairiscí ar bith chuig mc-devel@lists.midnight-commander.org - -Leid: Athraíonn an tábla do phainéal reatha. - -Leid: VFS coolness: tap a chur isteach ar chomhad tarra chun scrúdú a dhéanamh ar a n-ábhar. - -Leid: Tá leathanach láimhe deas againn freisin. - -Leid: An bhfuil tú ag iarraidh loingseoireacht stíl Lynx? Socraigh é sa dialóg Cumraíochta. - -Leid: % Macraí ag obair fiú ar na n-orduithe. - -Leid: M-! beidh deis agat cláir a fhorghníomhú agus an t-aschur a fheiceáil sa lucht féachana. - -Leid: Is féidir an fhormáid liostaithe comhad a shaincheapadh; dhéanamh "man mc" le haghaidh sonraí. - -Leid: leathnaíonn% D /% T na comhaid clib sa chomhadlann eile. - -Leid: Want do bhlaosc plain? Brúigh C-o, agus téigh ar ais chuig MC le C-o arís. - -Leid: Is féidir le hathraithe an athróg CDPATH keystrokes tú a shábháil in orduithe cd. - -Leid: Más mian leat do chuid comhad. * A fheiceáil, mar sin sa dialóg Cumraíochta. - -Leid: Ar mhaith leat do * chomhaid cúltaca a fheiceáil? Socraigh é sa dialóg Cumraíochta. - -Leid: Oibríonn an chríochnú ar gach línte ionchuir i ngach dialóg. Just brúigh M-Tab. - -Leid: Ar críochfoirt mall an bhratach -s cabhrú. - -Leid: Faigh Comhad: is féidir leat oibriú ar na comhaid a fuarthas ag baint úsáide as an gcnaipe Painéal. - -Leid: An bhfuil tú ag iarraidh cuardach casta a dhéanamh? Bain úsáid as an ordú Painéal Seachtrach. - -Leid: A athrú leathbhealach eolaire trí clóscríobh a dtoil, a úsáid M-c (cd tapaidh). - -Leid: Ní oibreoidh orduithe Shell nuair a bhíonn tú ar chóras comhaid neamh-áitiúil. - -Leid: Cuir téacs ar ais ó na marbh le C-y. - -Leid: An bhfuil cuid de do chuid eochracha nach bhfuil ag obair? Féach ar eochracha Roghanna / Foghlaim. - -Leid: Chun féachaint ar aschur ordú sa lucht féachana, bain úsáid as M-! - -Leid: Tugann F13 (nó Shift-F3) an breathnóir i mód amh. - -Leid: Is féidir leat a shonrú ar an eagarthóir don F4 leis an EDITOR bhlaosc athróg. - -Leid: Féadfaidh tú an breathnóir seachtrach a shonrú leis an vars bhlaosc VIEWER nó PAGER. - -Leid: Is féidir leat gach iarratas a dhíchumasú ar dheimhniú i Roghanna / Dearbhaithe. - -Leid: Luaigh eolairí a úsáidtear go minic i gceangal le C-\. - -Leid: Is féidir leat FTP gan ainm a dhéanamh le mc trí chlóscríobh 'cd ftp://machine.edu' - -Leid: tógtar FTP sa Cheannasaí Meán Oíche, seiceáil an roghchlár nasc File / FTP. - -Leid: Athraíonn M-t go tapa ar an mód liostaithe. - -Leid: Is féidir leat an t-ainm úsáideora a shonrú nuair a dhéanann tú ftps: 'cd ftp: //user@machine.edu' - -Leid: Is féidir leat brabhsáil comhaid RPM trí scanadh a chur isteach ar bharr comhad rpm. - -Leid: Chun comharthaí a mharcáil ar an mbosca dialóige roghnaigh, cuir slash ar. - -Leid: Úsáid a bhaint as an gearrtha luch agus greamaigh theastóidh a bhfuil an eochair-athrú - -Leid: Eochair láithreáin ftp a thugtar cuairt orthu go minic sa hotlist: cineál C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.gl b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.gl deleted file mode 100644 index 6d683dd19c..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.gl +++ /dev/null @@ -1,87 +0,0 @@ -Consello: Use C-x t para copiar os nomes dos ficheiros marcados na liña de ordes. - -Consello: C-x p copia a ruta actual na liña de ordes. - -Consello: M-Tab (ou ESC+Tab) completa ordes/nomes Dúas veces devolve unha lista. - -Consello: Use M-p e M-n para acceder ao historial de ordes. - -Consello: para introducir un carácter especial: Ctrl-q e o carácter. - -Consello: canso desas mensaxes? Desactíveos desde o menú Opcións/Deseño. - -Consello: para seleccionar directorios: engada unha barra «/» na fin do patrón de busca. - -Consello: se o seu terminal non ten teclas de función, use ESC+número. - -Consello: a páxina principal de GNU Midnight Commander é: https://www.midnight-commander.org - -Consello: informe de calquera erro a mc-devel@lists.midnight-commander.org - -Consello: a tecla Tab cambia o seu panel actual. - -Consello: o mellor VFS! Prema Intro nun arquivo «tar» para examinar o seu contido. - -Consello: temos tamén unha páxina de manual: «man mc» - -Consello: quere navegar ao estilo «Lynx» coas frechas? axústeo no cadro de diálogo de configuración. - -Consello: as macros con % funcionan incluso na liña de ordes. - -Consello: con M-! poderá executar programas e ver a saída no visor. - -Consello: pode personalizar o formato de listado de ficheiros; vexa «man.mc» para obter máis detalles. - -Consello: %D/%T expande os ficheiros marcados no panel oposto. - -Consello: quere o shell normal? prema C-o, e para volver a MC prema C-o de novo. - -Consello: configurar a variable CDPATH pode aforrarlle escritura nas ordes «cd». - -Consello: para ver os ficheiros «.*» abonda indicalo no dialogo de configuración. - -Consello: para ver os ficheiros de copia de seguranza tipo *~ fagao no dialogo de configuración. - -Consello: Tamén se poden auto-completar nomes nos diálogos con lt-Tab. - -Consello: en terminais lentos pode ser de axuda a opción -s. - -Consello: pode poñer no panel os resultados de «Buscar ficheiro» e usalos. - -Consello: pode facer e gardar buscas complexas con «Buscas externas». - -Consello: escribindo M-c cambiar de directorio é un chisco máis doado. - -Consello: as ordes da consola non funcionan fora do sistema local. - -Consello: Con C-y pode recuperar texto eliminado. - -Consello: algunha tecla rebelde? Pode educala con «Redefinir teclas». - -Consello: para ver a saída dunha orde, use M-! - -Consello: F13 (ou Maiús-F3) invoca ao visor en modo «sen formato». - -Consello: F4 pode usar calquera editor que lle indiquemos na variábel EDITOR. - -Consello: pódese empregar un visor externo indicándoo na variábel PAGER. - -Consello: Para desactivar as mensaxes de confirmación fagao no menú Opcións. - -Consello: marque os directorios e sitios máis usados en «Favoritos». - -Consello: para facer un FTP anónimo con mc: «cd ftp://maquina.dominio» - -Consello: FTP está integrado en Midnight Commander, en «Conexión por FTP». - -Consello: M-t cambia rapidamente entre varios modos de listaxe. - -Consello: para especificar o nome de usuario ao facer un FTP: «cd ftp://usuario@maquina.dominio» - -Consello: pode examinar un ficheiro RPM premendo Intro sobre del. - -Consello: para marcar os directorios no cadro de diálogo de selección, engada unha barra «/». - -Consello: para cortar e pegar co rato manteña premida a tecla Maiús. - -Consello: os sitios FTP habituais poden marcarse como «preferidos»: escriba C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.hu b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.hu deleted file mode 100644 index 1bb3108916..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.hu +++ /dev/null @@ -1,87 +0,0 @@ -Tipp: A kijelölt fájlnevek parancssorba való másolása: C-x t - -Tipp: Az aktuális elérési út parancssorba való másolása: C-x p - -Tipp: Kiegészítés: M-Tab (vagy Esc Tab). Kétszer lenyomva listát ad. - -Tipp: Korábbi parancsok elÅ‘hozása: M-p illetve M-n - -Tipp: Speciális karakter beírásához használja ezt: Control-q EkarakterE - -Tipp: Az itt megjelenÅ‘ üzenetek kikapcsolhatók a "Beállítások/Megjelenés"-nél. - -Tipp: Könyvtárak kijelölése a minta végére / jelet írva lehetséges. - -Tipp: Ha a terminálon nincsenek funkcióbillentyűk, használja ezt: Esc EszámE - -Tipp: A Midnight Commander honlapja: https://www.midnight-commander.org - -Tipp: Hibabejelentéseket a következÅ‘ címre lehet küldeni: mc-devel@lists.midnight-commander.org - -Tipp: A Tab billentyűvel lehet panelt váltani. - -Tipp: VFS-funkció: egy Tar-fájlon Entert nyomva megjelenik annak tartalma. - -Tipp: A Midnight Commandernek van "man" (kézikönyv) lapja is. - -Tipp: Szeretne Lynx-stílusú navigációt? Be lehet állítani az Alapbeállításoknál. - -Tipp: A % makrók még a parancssorban is használhatók. - -Tipp: Program végrehajtása a kimenetnek a fájlmegjelenítÅ‘be való küldésével: M-! - -Tipp: A fájlok listázási módja beállítható; részletek a "man mc" paranccsal. - -Tipp: A %D/%T sztring a másik panel kijelölt fájljaival lesz helyettesítve. - -Tipp: A sima shell-t szeretné? Használja ezt: C-o (visszatérés MC-be: ugyanígy). - -Tipp: A CDPATH változó beállításával egyszerűbbé tehetÅ‘ a "cd" parancsok kiadása. - -Tipp: Ha látni szeretné a .* rejtett fájlokat, állítsa be az Alapbeállításoknál. - -Tipp: Ha látni szeretné a *~ másolatfájlokat, állítsa be az Alapbeállításoknál. - -Tipp: A kiegészítés minden ablak összes beviteli mezÅ‘jében működik: M-Tab - -Tipp: Lassú terminálokon a -s opció hasznos lehet. - -Tipp: Fájlkeresés: műveletek végzése a megtalált fájlokkal: "Listát a panelra". - -Tipp: Komplex keresések végzéséhez a "KülsÅ‘ panel-parancs" funkció javasolt. - -Tipp: Könyvtárváltás egy parancs begépelése közben: M-c (gyors könyvtárváltás). - -Tipp: A shell-parancsok távoli fájlrendszereken nem használhatók. - -Tipp: A pufferben levÅ‘ (például "C-k"-val oda tett) szöveg visszahozása: C-y - -Tipp: Ha nem működnek bizonyos billentyűk: "Beállítások/Billentyűk". - -Tipp: Egy parancs kimenetének megjelenítése a fájlmegjelenítÅ‘ben: M-! - -Tipp: Az F13 (vagy Shift-F3) a fájlmegjelenítÅ‘t "nyers" módban indítja el. - -Tipp: Az F4-re használandó szerkesztÅ‘t az EDITOR shell-változóval lehet megadni. - -Tipp: A külsÅ‘ fájlmegjelenítÅ‘t a PAGER shell-változóval lehet megadni. - -Tipp: Az összes megerÅ‘sítéskérés kikapcsolható: "Beállítások/MegerÅ‘sítések". - -Tipp: Egyszerű módon elérhetÅ‘k a gyakran használt könyvtárak: C-\. - -Tipp: "Anonymous" FTP-zés végezhetÅ‘ ezzel a paranccsal: "cd ftp://gépnév.edu". - -Tipp: Az FTP be van építve a Midnight Commanderbe: "FTP-kapcsolat" menüpontok. - -Tipp: A listázási mód gyorsan váltható a következÅ‘ billentyűkombinációval: M-t. - -Tipp: FTP-zésnél felhasználónév is megadható: "cd ftp://felhasználó@gépnév.edu". - -Tipp: Az RPM-csomagfájlok böngészhetÅ‘k, ehhez Entert kell nyomni az adott fájlon. - -Tipp: Könyvtárak kijelölése a "Kijelölés" ablakban: / jel hozzáfűzésével. - -Tipp: Az egérrel való szövegkimásoláshoz szükség lehet a Shift lenyomására. - -Tipp: A gyakran látogatott FTP-helyek betehetÅ‘k a gyorslistába: C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.id b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.id deleted file mode 100644 index 5a8f48ed8a..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.id +++ /dev/null @@ -1,87 +0,0 @@ -Petunjuk: Gunakan C-x untuk menyalin nama berkas yang ditandai ke command line. - -Petunjuk: Gunakan C-x untuk menyalin nama path saat ini ke command line. - -Petunjuk: Pelengkapan: gunakan M-Tab (atau Esc+Tab). Ketikkan dua kali untuk memperoleh daftar. - -Petunjuk: Gunakan M-p dan M-n untuk mengakses riwayat perintah. - -Petunjuk: Perlu mengutip suatu karakter? Gunakan Contrl-q dan karakter tersebut. - -Petunjuk: Bosan dengan pesan-pesan ini? Matikan mereka dari menu Opsi/Tata Letak. - -Petunjuk: Memilih direktori: tambahkan garis miring di akhir pola yang cocok. - -Petunjuk: Bila terminal Anda tak punya tombol fungsi, gunakan urutan ESC+angka. - -Petunjuk: Laman web GNU Midnight Commander: https://www.midnight-commander.org - -Petunjuk: Harap kirim laporan bug ke mc-devel@lists.midnight-commander.org - -Petunjuk: Tab mengubah panel Anda saat ini. - -Petunjuk: VFS itu keren: ketuk enter pada suatu file tar untuk memeriksa isinya. - -Petunjuk: Kami juga memiliki halaman manual yang bagus. - -Petunjuk: Apakah Anda ingin navigasi gaya Lynx? Atur itu dalam dialog Konfigurasi. - -Petunjuk: makro bekerja bahkan pada command line. - -Petunjuk: M-! memungkinkan Anda mengeksekusi program dan melihat keluaran dalam penampil. - -Petunjuk: Format daftar file dapat dikustomisasi; jalankan "man mc" untuk rincian. - -Petunjuk: %D/%T mengembang menjadi file yang di-tag di direktori yang berlawanan. - -Petunjuk: Ingin shell polos? Tekan C-o, dan kembali lagi ke MC dengan C-o lagi. - -Petunjuk: Menata variabel CDPATH dapat menghemat ketukan tombol dalam perintah cd. - -Petunjuk: Bila Anda ingin melihat file .*, nyatakan saja dalam dialog Konfigurasi. - -Petunjuk: Ingin melihat file cadangan *~? Atur itu dalam dialog Konfigurasi. - -Petunjuk: Pelengkapan bekerja pada semua baris masukan dalam semua dialog. Tekan M-Tab saja. - -Petunjuk: Pada terminal yang lambat flag -s mungkin membantu. - -Petunjuk: Cari File: Anda dapat bekerja pada file yang ditemukan memakai tombol Panelkan. - -Petunjuk: Ingin melakukan pencarian rumit? Pakai perintah Panelkan Eksternal. - -Petunjuk: Untuk pindah direktori saat tengah mengetikkan suatu perintah, gunakan M-c (cd cepat). - -Petunjuk: Perintah shell tak akan bekerja bila Anda berada pada sistem file bukan lokal. - -Petunjuk: Panggil kembali teks dari kematian dengan C-y. - -Petunjuk: Apakah beberapa tombol Anda tak bekerja? Lihat pada tombol-tombol Opsi/Belajar. - -Petunjuk: Untuk melihat keluaran dari suatu perintah dalam penampil, pakai M-! - -Petunjuk: F13 (atau Shift-F3) memanggil penampil dalam mode mentah. - -Petunjuk: Anda boleh menyatakan penyunting bagi F4 dengan variabel shell EDITOR. - -Petunjuk: Anda boleh menyatakan penampil eksternal dengan variabel shell VIEWER atau PAGER. - -Petunjuk: Anda dapat menonaktifkan semua permintaan konfirmasi dalam Opsi/Konfirmasi. - -Petunjuk: Melompatlah ke direktori yang sering dipakai dengan C-\. - -Petunjuk: Anda dapat melakukan FTP anonim memakai mc dengan mengetikkan 'cd ftp://server.ftp.yang.dituju' - -Petunjuk: FTP sudah ada dalam Midnight Commander, periksalah menu File/Taut FTP. - -Petunjuk: M-t mengubah secara cepat mode penampilan daftar. - -Petunjuk: Anda dapat menyatakan nama pengguna ketika melakukan ftp: 'cd ftp://pengguna@server.ftp.yang.dituju' - -Petunjuk: Anda dapat meramban file RPM dengan mengetuk enter pada suatu file rpm. - -Petunjuk: Untuk menandai direktori pada kotak dialog pilihan, tambahkan suatu garis miring. - -Petunjuk: Untuk memakai potong dan tempel tetikus mungkin perlu menahan tombol shift. - -Petunjuk: Masukkan situs-situs ftp yang sering dikunjungi ke daftar pintas: ketikkan C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.it b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.it deleted file mode 100644 index 0a09fc977a..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.it +++ /dev/null @@ -1,87 +0,0 @@ -Suggerimento: Ctrl-x t per copiare i nomi di file selezionati nella linea di comando. - -Suggerimento: Ctrl-x p per copiare il percorso attuale nella linea di comando. - -Suggerimento: Completamento: M-Tab (o Esc+Tab). Due volte per ottenere la lista. - -Suggerimento: M-p e M-n per accedere alla storia dei comandi. - -Suggerimento: Quotare un carattere? Ctrl-q seguito dal carattere. - -Suggerimento: Disattivare questi messaggi? Opzioni/menu di Layout/ barra aiuti. - -Suggerimento: Selezionare cartelle: aggiungere una barra dopo i caratteri di confronto. - -Suggerimento: Se nel terminale mancano i tasti di funzione, utilizzare la sequenza ESC+numero. - -Suggerimento: La pagina principale su Internet di GNU Midnight Commander é: https://www.midnight-commander.org - -Suggerimento: Inviare i rapporti d'errore a mc-devel@lists.midnight-commander.org - -Suggerimento: Tab modifica il pannello corrente. - -Suggerimento: La forza dei VFS: Invio su un tar file permette di esaminarne il contenuto. - -Suggerimento: Abbiamo anche un bel manuale manpage. - -Suggerimento: Si vuole una navigazione stile Lynx? Basta settarla in Opzioni/Configurazione/movimenti tipo Lynx. - -Suggerimento: le % macro funzionano anche nella linea di comando. - -Suggerimento: M-! permette l'esecuzione di programmi avendo mostrato l'output nel visualizzatore. - -Suggerimento: Il formato di visualizzazione dei documenti è personalizzabile; "man mc" per i dettagli - -Suggerimento: %D/%T espande i documenti selezionati nella cartella opposta. - -Suggerimento: Si vuole la shell intera? Ctrl-o, e ancora Ctrl-o per tornare a mc. - -Suggerimento: Impostare la variabile CDPATH permette di salvare la sequenza di tasti premuti nei comandi cd. - -Suggerimento: Se si vogliono vedere i propri file .*, specificarlo nel menù Opzioni/Configurazione. - -Suggerimento: Se si vogliono vedere i propri file di backup *~, specificarlo nel menù Opzioni/Configurazione. - -Suggerimento: Il completamento funziona su tutte le righe di immissione, in tutti i menù. Basta premere M-Tab. - -Suggerimento: L'opzione -s aiuta con i terminali lenti. - -Suggerimento: Trovare documento: è possibile lavorare sui documenti trovati tramite il pulsante Pannellizza. - -Suggerimento: Si vogliono eseguire ricerche complicate? Usare il comando Pannellizza Esternamente. - -Suggerimento: Per cambiare la cartella attuale mentre si sta componendo un comando: M-c (cd rapido). - -Suggerimento: I comandi della shell non sono disponibili in un file-system non locale. - -Suggerimento: Riprendere del testo con Ctrl-y. - -Suggerimento: Qualche tasto non funziona? Guarda Opzioni/Impara tasti. - -Suggerimento: Per leggere l'output del comando nel visualizzatore usare M-!. - -Suggerimento: F13 (o Shift-F13) invoca il visualizzatore in modalità base. - -Suggerimento: Si può specificare l'editor richiamabile con F4, tramite la variabile d'ambiente EDITOR. - -Suggerimento: Si può specificare il visualizzatore esterno tramite le variabili d'ambiente VIEWER o PAGER. - -Suggerimento: È possibile disabilitare tutte le richieste di conferma - -Suggerimento: Si può saltare verso cartelle usate frequentemente mediante Ctrl-\. - -Suggerimento: È possibile creare una connessione FTP anonima con mc digitando 'cd ftp://host.edu'. - -Suggerimento: L'FTP è implementato in mc nel menu DESTRO/SINISTRO/FTP Link. - -Suggerimento: M-t modifica velocemente la modalità di lista. - -Suggerimento: È possibile specificare il nome utente per una sessione FTP: 'cd ftp://utente@host.edu'. - -Suggerimento: È possibile vedere il contenuto di un file RPM mediante Invio. - -Suggerimento: Per segnare delle cartelle nel riquadro di selezione, appendere una barra. - -Suggerimento: per utilizzare il mouse per il taglia e incolla premere il tasto Shift. - -Suggerimento: Per richiamare la lista degli indirizzi FTP più utilizzati: Ctrl-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ja b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ja deleted file mode 100644 index 873b0b271c..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ja +++ /dev/null @@ -1,87 +0,0 @@ -ヒント:C-x t ã§ã€ã‚¿ã‚°ä»˜ã‘ã•れãŸãƒ•ァイルåをコマンドラインã«ã‚³ãƒ”ーã§ãã¾ã™ã€‚ - -ヒント:C-x p ã§ã€ç¾åœ¨ã®ãƒ‘スåをコマンドラインã«ã‚³ãƒ”ーã§ãã¾ã™ã€‚ - -Hint: Completion: use M-Tab (or Esc+Tab). Type it twice to get a list. - -ヒント:M-pã¨M-nを使用ã™ã‚‹ã¨ã€ã‚³ãƒžãƒ³ãƒ‰å±¥æ­´ã«ã‚¢ã‚¯ã‚»ã‚¹ã§ãã¾ã™ã€‚ - -Hint: Need to quote a character? Use Control-q and the character. - -Hint: Tired of these messages? Turn them off from the Options/Layout menu. - -Hint: Selecting directories: add a slash to the end of the matching pattern. - -Hint: If your terminal lacks functions keys, use the ESC+number sequence. - -Hint: The homepage of GNU Midnight Commander: https://www.midnight-commander.org - -Hint: Please send any bug reports to mc-devel@lists.midnight-commander.org - -Hint: Tab changes your current panel. - -Hint: VFS coolness: tap enter on a tar file to examine its contents. - -ヒント:ナイスãªãƒžãƒ‹ãƒ¥ã‚¢ãƒ«ãƒšãƒ¼ã‚¸ã®è‹±èªžç‰ˆã‚‚ã‚りã¾ã™ã‚ˆã€‚ - -Hint: Do you want Lynx-style navigation? Set it in the Configuration dialog. - -Hint: % macros work even on the command line. - -Hint: M-! will allow you to execute programs and see the output in the viewer. - -Hint: The file listing format can be customized; do "man mc" for details. - -Hint: %D/%T expands to the tagged files in the opposite directory. - -ヒント:プレーンãªã‚·ã‚§ãƒ«ãŒå¿…è¦ãªå ´åˆã¯C-oを押ã—ã¦ãã ã•ã„。もã†ä¸€åº¦æŠ¼ã™ã“ã¨ã§MCã«æˆ»ã‚‹ã“ã¨ãŒå‡ºæ¥ã¾ã™ã€‚ - -Hint: Setting the CDPATH variable can save you keystrokes in cd commands. - -Hint: If you want to see your .* files, say so in the Configuration dialog. - -Hint: Want to see your *~ backup files? Set it in the Configuration dialog. - -Hint: Completion works on all input lines in all dialogs. Just press M-Tab. - -Hint: On slow terminals the -s flag may help. - -Hint: Find File: you can work on the files found using the Panelize button. - -Hint: Want to do complex searches? Use the External Panelize command. - -Hint: To change directory halfway through typing a command, use M-c (quick cd). - -Hint: Shell commands will not work when you are on a non-local file system. - -Hint: Bring text back from the dead with C-y. - -Hint: Are some of your keys not working? Look at Options/Learn keys. - -Hint: To look at the output of a command in the viewer, use M-! - -Hint: F13 (or Shift-F3) invokes the viewer in raw mode. - -Hint: You may specify the editor for F4 with the shell variable EDITOR. - -Hint: You may specify the external viewer with the shell vars VIEWER or PAGER. - -Hint: You can disable all requests for confirmation in Options/Confirmation. - -Hint: Leap to frequently used directories in a single bound with C-\. - -Hint: You can do anonymous FTP with mc by typing 'cd ftp://machine.edu' - -Hint: FTP is built in the Midnight Commander, check the File/FTP link menu. - -Hint: M-t changes quickly the listing mode. - -Hint: You can specify the username when doing ftps: 'cd ftp://user@machine.edu' - -Hint: You can browse RPM files by tapping enter on top of an rpm file. - -Hint: To mark directories on the select dialog box, append a slash. - -ヒント:マウスã§ã‚«ãƒƒãƒˆã‚¢ãƒ³ãƒ‰ãƒšãƒ¼ã‚¹ãƒˆã™ã‚‹ã¨ãã¯ã‚·ãƒ•トキーを押ã—ã£ã±ãªã—ã«ã—ã¦ä¸‹ã•ã„ - -Hint: Key frequently visited ftp sites in the hotlist: type C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ka b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ka deleted file mode 100644 index fde0971015..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ka +++ /dev/null @@ -1,87 +0,0 @@ -Hint: Use C-x t to copy tagged file names to the command line. - -Hint: Use C-x p to copy the current pathname to the command line. - -Hint: Completion: use M-Tab (or Esc+Tab). Type it twice to get a list. - -Hint: Use M-p and M-n to access the command history. - -Hint: Need to quote a character? Use Control-q and the character. - -Hint: Tired of these messages? Turn them off from the Options/Layout menu. - -Hint: Selecting directories: add a slash to the end of the matching pattern. - -Hint: If your terminal lacks functions keys, use the ESC+number sequence. - -Hint: The homepage of GNU Midnight Commander: https://www.midnight-commander.org - -Hint: Please send any bug reports to mc-devel@lists.midnight-commander.org - -მინიშნებáƒ: ტáƒáƒ‘ი მიმდინáƒáƒ áƒ” პáƒáƒœáƒ”ლს შეცვლის. - -Hint: VFS coolness: tap enter on a tar file to examine its contents. - -მინიშნებáƒ:ჩვენ ძáƒáƒšáƒ˜áƒáƒœ კáƒáƒ áƒ’ი man გვერდი გვáƒáƒ¥áƒ•ს. - -მინიშნებáƒ: გნებáƒáƒ•თ Lynx-ის ნáƒáƒ˜áƒ áƒ˜ ნáƒáƒ•იგáƒáƒªáƒ˜áƒ? ჩáƒáƒ áƒ—ეთ ის მáƒáƒ áƒ’ების ფáƒáƒœáƒ¯áƒáƒ áƒáƒ¨áƒ˜. - -მინიშნებáƒ: % მáƒáƒ™áƒ áƒáƒ”ბი ბრძáƒáƒœáƒ”ბის სტრიქáƒáƒœáƒ˜áƒ“áƒáƒœáƒáƒª მუშáƒáƒáƒ‘ს. - -Hint: M-! will allow you to execute programs and see the output in the viewer. - -Hint: The file listing format can be customized; do "man mc" for details. - -Hint: %D/%T expands to the tagged files in the opposite directory. - -Hint: Want your plain shell? Press C-o, and get back to MC with C-o again. - -Hint: Setting the CDPATH variable can save you keystrokes in cd commands. - -Hint: If you want to see your .* files, say so in the Configuration dialog. - -Hint: Want to see your *~ backup files? Set it in the Configuration dialog. - -Hint: Completion works on all input lines in all dialogs. Just press M-Tab. - -მინიშნებáƒ: ნელ ტერმინáƒáƒšáƒ”ბზე შეიძლებრ-s პáƒáƒ áƒáƒ›áƒ”ტრი დáƒáƒ’ეხმáƒáƒ áƒáƒ—. - -Hint: Find File: you can work on the files found using the Panelize button. - -Hint: Want to do complex searches? Use the External Panelize command. - -Hint: To change directory halfway through typing a command, use M-c (quick cd). - -Hint: Shell commands will not work when you are on a non-local file system. - -Hint: Bring text back from the dead with C-y. - -Hint: Are some of your keys not working? Look at Options/Learn keys. - -Hint: To look at the output of a command in the viewer, use M-! - -Hint: F13 (or Shift-F3) invokes the viewer in raw mode. - -Hint: You may specify the editor for F4 with the shell variable EDITOR. - -Hint: You may specify the external viewer with the shell vars VIEWER or PAGER. - -Hint: You can disable all requests for confirmation in Options/Confirmation. - -Hint: Leap to frequently used directories in a single bound with C-\. - -Hint: You can do anonymous FTP with mc by typing 'cd ftp://machine.edu' - -Hint: FTP is built in the Midnight Commander, check the File/FTP link menu. - -Hint: M-t changes quickly the listing mode. - -Hint: You can specify the username when doing ftps: 'cd ftp://user@machine.edu' - -Hint: You can browse RPM files by tapping enter on top of an rpm file. - -Hint: To mark directories on the select dialog box, append a slash. - -Hint: To use the mouse cut and paste may require holding the shift key - -Hint: Key frequently visited ftp sites in the hotlist: type C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ko b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ko deleted file mode 100644 index a61af68623..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ko +++ /dev/null @@ -1,87 +0,0 @@ -힌트: C-x t를 사용하여 태그가 ì§€ì •ëœ íŒŒì¼ ì´ë¦„ì„ ëª…ë ¹ì¤„ì— ë³µì‚¬í•©ë‹ˆë‹¤. - -힌트: C-x p를 사용하여 현재 경로 ì´ë¦„ì„ ëª…ë ¹ì¤„ì— ë³µì‚¬í•©ë‹ˆë‹¤. - -힌트: 완성: M-Tab(ë˜ëŠ” Esc+Tab)ì„ ì‚¬ìš©í•©ë‹ˆë‹¤. 목ë¡ì„ 가져오려면 ì´ í•­ëª©ì„ ë‘ ë²ˆ 입력합니다. - -힌트: M-p ë° M-nì„ ì‚¬ìš©í•˜ì—¬ 명령 ížˆìŠ¤í† ë¦¬ì— ì•¡ì„¸ìŠ¤í•©ë‹ˆë‹¤. - -힌트: 문ìžë¥¼ ì¸ìš©í•´ì•¼ 합니까? Control-q와 문ìžë¥¼ 사용합니다. - -힌트: ì´ ë©”ì‹œì§€ë“¤ì— ì§€ì³¤ë‚˜ìš”? Options/Layout 메뉴ì—서 해당 ê¸°ëŠ¥ì„ ë•니다. - -힌트: 디렉터리 ì„ íƒ: ì¼ì¹˜í•˜ëŠ” íŒ¨í„´ì˜ ëì— ìŠ¬ëž˜ì‹œë¥¼ 추가합니다. - -힌트: 터미ë„ì— ê¸°ëŠ¥ 키가 없으면 ESC+ìˆ«ìž ì‹œí€€ìŠ¤ë¥¼ 사용합니다. - -힌트: GNU 미드나잇 ì»¤ë§¨ë” í™ˆíŽ˜ì´ì§€: https://www.midnight-commander.org - -힌트: mc-devel@lists.midnight-commander.org 으로 버그 보고서를 보내주십시오. - -힌트: íƒ­ì´ í˜„ìž¬ 패ë„ì„ ë³€ê²½í•©ë‹ˆë‹¤. - -힌트: VFS cool: tar 파ì¼ì„ 입력하여 ë‚´ìš©ì„ ê²€í† í•©ë‹ˆë‹¤. - -힌트 : ë©‹ì§„ 매뉴얼 페ì´ì§€ë„ 있습니다. - -힌트 : Lynx ìŠ¤íƒ€ì¼ íƒìƒ‰ì„ ì›í•˜ì‹­ë‹ˆê¹Œ? 구성 대화 ìƒìžì—서 설정하십시오. - -힌트: % 매í¬ë¡œëŠ” 명령줄ì—ì„œë„ ìž‘ë™í•©ë‹ˆë‹¤. - -힌트: M-!를 사용하면 í”„ë¡œê·¸ëž¨ì„ ì‹¤í–‰í•˜ê³  ë·°ì–´ì—서 ì¶œë ¥ì„ ë³¼ 수 있습니다. - -힌트: íŒŒì¼ ëª©ë¡ í˜•ì‹ì„ ì‚¬ìš©ìž ì§€ì •í•  수 있습니다. ìžì„¸í•œ ë‚´ìš©ì€ "man mc"를 참조하십시오. - -힌트: %D/%T는 반대편 ë””ë ‰í„°ë¦¬ì˜ íƒœê·¸ê°€ ì§€ì •ëœ íŒŒì¼ë¡œ 확장ë©ë‹ˆë‹¤. - -힌트 : í‰ë²”한 ì‰˜ì„ ì›í•˜ì‹­ë‹ˆê¹Œ? C-o를 누르고 C-o를 사용하여 MC로 다시 ëŒì•„갑니다. - -힌트: CDPATH 변수를 설정하면 cd ëª…ë ¹ì— í‚¤ ìž…ë ¥ì„ ì €ìž¥í•  수 있습니다. - -힌트 : .* 파ì¼ì„ 보려면 환경설정 대화 ìƒìžì—서 설정합니다. - -힌트: *~ 백업 파ì¼ì„ ë³´ê³  싶습니까? 환경설정 대화 ìƒìžì—서 설정합니다. - -힌트: ì™„ì„±ì€ ëª¨ë“  대화 ìƒìžì˜ 모든 ìž…ë ¥ ë¼ì¸ì—서 ìž‘ë™í•©ë‹ˆë‹¤. M-Tabì„ ëˆ„ë¥´ë©´ ë©ë‹ˆë‹¤. - -힌트: ëŠë¦° 터미ë„ì—는 -s 플래그가 ë„ì›€ì´ ë  ìˆ˜ 있습니다. - -힌트 : íŒŒì¼ ì°¾ê¸° : íŒ¨ë„ í¬ê¸°ì¡°ì • ë²„íŠ¼ì„ ì‚¬ìš©í•˜ì—¬ ì°¾ì€ íŒŒì¼ì„ 작업할 수 있습니다. - -힌트 : 복잡한 ê²€ìƒ‰ì„ ì›í•˜ì‹­ë‹ˆê¹Œ? 기타 íŒ¨ë„ í¬ê¸°ì¡°ì • ëª…ë ¹ì„ ì‚¬ìš©í•˜ì‹­ì‹œì˜¤. - -힌트: 명령 ìž…ë ¥ì„ ì¤‘ê°„ì— ìˆ˜í–‰í•˜ë ¤ë©´ M-c(빠른 cd)를 사용합니다. - -힌트: ë¡œì»¬ì´ ì•„ë‹Œ íŒŒì¼ ì‹œìŠ¤í…œì— ìžˆëŠ” 경우 ì…¸ ëª…ë ¹ì´ ìž‘ë™í•˜ì§€ 않습니다. - -힌트: C-y와 함께 ì£½ì€ ê²ƒë“¤ë¡œë¶€í„° 문ìžë¥¼ 가져옵니다. - -힌트 : ë‹¹ì‹ ì˜ ì—´ì‡  중 ì¼ë¶€ê°€ ìž‘ë™í•˜ì§€ 않습니까? 옵션 / 학습 키를보십시오. - -힌트: ë·°ì–´ì—서 ëª…ë ¹ì˜ ì¶œë ¥ì„ ë³´ë ¤ë©´ M-를 사용합니다! - -힌트: F13(ë˜ëŠ” Shift-F3)ì€ ì›ì‹œ 모드ì—서 뷰어를 호출합니다. - -힌트: ì…¸ 변수 편집기를 사용하여 F4ì˜ íŽ¸ì§‘ê¸°ë¥¼ 지정할 수 있습니다. - -힌트: 쉘 ë°” ë·°ì–´ ë˜ëŠ” 페ì´ì§€ë„구를 사용하여 외부 뷰어를 지정할 수 있습니다. - -힌트: 옵션 / 확ì¸ì—서 í™•ì¸ ìš”ì²­ì„ ëª¨ë‘ ë¹„í™œì„±í™”í•  수 있습니다. - -힌트 : C- \를 사용하여 ë‹¨ì¼ ë°”ì¸ë”©ëœì—서 ìžì£¼ 사용 하는 디렉터리로 ì´ë™í•©ë‹ˆë‹¤. - -힌트: 'cd ftp://machine.edu'를 입력하여 mcì—서 ìµëª… FTP를 í•  수 있습니다. - -힌트: FTP는 Midnight Commanderì— ë‚´ìž¥ë˜ì–´ 있습니다. íŒŒì¼ / FTP ë§í¬ 메뉴를 확ì¸í•˜ì‹­ì‹œì˜¤. - -힌트: M-t는 ëª©ë¡ ëª¨ë“œë¥¼ 빠르게 변경합니다. - -힌트: ftps를 실행할 때 ì‚¬ìš©ìž ì´ë¦„ì„ ì§€ì •í•  수 있습니다: 'cd ftp://user@machine.edu' - -힌트 : rpm 파ì¼ì˜ 맨 위ì—서 Enter를 눌러 RPM 파ì¼ì„ íƒìƒ‰ í•  수 있습니다. - -힌트: ì„ íƒ ëŒ€í™”ìƒìžì—서 디렉터리를 표시하려면 슬래시를 추가합니다 - -힌트: 마우스 잘ë¼ë‚´ê¸° ë° ë¶™ì—¬ë„£ê¸°ë¥¼ 사용하려면 Shift 키를 누르고 있어야 í•  수 있습니다. - -힌트: 단축목ë¡ì—서 ìžì£¼ 방문하는 ftp 사ì´íЏ 키: C-\ 를 입력하세요. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.lt b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.lt deleted file mode 100644 index ca3775dbb5..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.lt +++ /dev/null @@ -1,87 +0,0 @@ -Hint: Use C-x t to copy tagged file names to the command line. - -Hint: Use C-x p to copy the current pathname to the command line. - -Hint: Completion: use M-Tab (or Esc+Tab). Type it twice to get a list. - -Hint: Use M-p and M-n to access the command history. - -Hint: Need to quote a character? Use Control-q and the character. - -Patarimas: Atsibodo Å¡ios žinutÄ—s? IÅ¡junkite jas Nustatymai/IÅ¡dÄ—stymas meniu. - -Hint: Selecting directories: add a slash to the end of the matching pattern. - -Hint: If your terminal lacks functions keys, use the ESC+number sequence. - -Patarimas: GNU Midnight Commander internetinÄ— svetainÄ—: https://www.midnight-commander.org - -Hint: Please send any bug reports to mc-devel@lists.midnight-commander.org - -Patarimas: Tab klaviÅ¡as pakeiÄia esamÄ… panelÄ™. - -Hint: VFS coolness: tap enter on a tar file to examine its contents. - -Patarimas: Mes taip pat turime gražų vadovo puslapį. - -Hint: Do you want Lynx-style navigation? Set it in the Configuration dialog. - -Hint: % macros work even on the command line. - -Hint: M-! will allow you to execute programs and see the output in the viewer. - -Hint: The file listing format can be customized; do "man mc" for details. - -Hint: %D/%T expands to the tagged files in the opposite directory. - -Hint: Want your plain shell? Press C-o, and get back to MC with C-o again. - -Hint: Setting the CDPATH variable can save you keystrokes in cd commands. - -Hint: If you want to see your .* files, say so in the Configuration dialog. - -Hint: Want to see your *~ backup files? Set it in the Configuration dialog. - -Hint: Completion works on all input lines in all dialogs. Just press M-Tab. - -Patarimas: LÄ—tuose terminaluose reikÅ¡mÄ— -s gali padÄ—ti. - -Hint: Find File: you can work on the files found using the Panelize button. - -Hint: Want to do complex searches? Use the External Panelize command. - -Hint: To change directory halfway through typing a command, use M-c (quick cd). - -Hint: Shell commands will not work when you are on a non-local file system. - -Hint: Bring text back from the dead with C-y. - -Hint: Are some of your keys not working? Look at Options/Learn keys. - -Hint: To look at the output of a command in the viewer, use M-! - -Hint: F13 (or Shift-F3) invokes the viewer in raw mode. - -Patarimas: Galite nustatyti F4 redaktorių naudodami „shell“ EDITOR kintamÄ…jį. - -Hint: You may specify the external viewer with the shell vars VIEWER or PAGER. - -Hint: You can disable all requests for confirmation in Options/Confirmation. - -Hint: Leap to frequently used directories in a single bound with C-\. - -Hint: You can do anonymous FTP with mc by typing 'cd ftp://machine.edu' - -Hint: FTP is built in the Midnight Commander, check the File/FTP link menu. - -Hint: M-t changes quickly the listing mode. - -Hint: You can specify the username when doing ftps: 'cd ftp://user@machine.edu' - -Hint: You can browse RPM files by tapping enter on top of an rpm file. - -Hint: To mark directories on the select dialog box, append a slash. - -Hint: To use the mouse cut and paste may require holding the shift key - -Hint: Key frequently visited ftp sites in the hotlist: type C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.nb b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.nb deleted file mode 100644 index 7d1a0c6c6f..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.nb +++ /dev/null @@ -1,87 +0,0 @@ -Hint: Hurtigtasten C-x t kopierer de valgte filnavnene til kommandolinja. - -Hint: Hurtigtasten C-x p kopierer dette filnavnet til kommandolinja. - -Hint: Hurtigtasten M-Tab (eller Esc + Tab) fullfører. Bruk hurtigtasten to ganger for Ã¥ fÃ¥ opp en liste. - -Hint: Hurtigtastene M-p og M-n gir tilgang til kommandohistorikken. - -Hint: For Ã¥ sitere et tegn kan du bruke hurtigtasten Control + Q og deretter tegnet. - -Hint: Du kan slÃ¥ av disse hintene i menyen Innstillinger/Utforming. - -Hint: For Ã¥ velge mapper kan du legge til en skrÃ¥strek til slutt i søkemønsteret. - -Hint: Hvis terminalen mangler funksjonstaster sÃ¥ kan du bruke ESC + tallet. - -Hint: Hjemmesiden til GNU Midnight Commander er https://www.midnight-commander.org - -Hint: Du kan sende feilrapporter til mc-devel@lists.midnight-commander.org - -Hint: Tabulatoren endrer det aktive panelet. - -Hint: VFS lar deg trykke Enter pÃ¥ et tar-arkiv for Ã¥ undersøke innholdet. - -Hint: Se ogsÃ¥ manualsiden. - -Hint: Du kan slÃ¥ pÃ¥ Lynx-lignende navigering i Innstillinger/Oppsett. - -Hint: %-makroer virker ogsÃ¥ i kommandolinja. - -Hint: Hurtigtasten M-! lar deg kjøre programmer og se resultatet i visningen. - -Hint: Utlistingsformatet kan endres. Se «man mc» for flere detaljer. - -Hint: %D/%T erstattes med de utvalgte filene i mappa i det andre panelet. - -Hint: Hurtigtasten C-o veksler mellom det vanlige skallet og MC. - -Hint: CDPATH-variabelen kan korte ned tastetrykk i cd-kommandoer. - -Hint: Du kan slÃ¥ pÃ¥ visning av .*-filer i Innstillinger/Oppsett. - -Hint: Du kan slÃ¥ pÃ¥ visning av *~-reservekopier i Innstillinger/Oppsett. - -Hint: Hurtigtasten M-Tab fullfører i alle skrivefelt i alle dialogvinduer. - -Hint: Du kan bruke flagget -s hvis terminalen er treig. - -Hint: Du kan jobbe med funnede filer ved Ã¥ velge «Legg til i panel». - -Hint: Du kan bruke «Legg til eksternt i panel» for Ã¥ utføre komplekse søk. - -Hint: Du kan skifte mappe mens du holder pÃ¥ Ã¥ skrive en kommando med hurtigtasten M-c - -Hint: Skallkommandoer vil ikke virke i eksterne filsystemer. - -Hint: Du kan hente tilbake tekst med C-y. - -Hint: Virker ikke noen av tastene? Forsøk Innstillinger/Lær taster. - -Hint: Hurtigtasten M-! legger resultatet av en kommando i visningen. - -Hint: F13 eller (Shift + F13) viser filinnhold rÃ¥tt. - -Hint: Du kan velge F4s tekstprogram med skallvariabelen EDITOR. - -Hint: Du kan velge eksternt visningsprogram med skallvariablene VIEWER eller PAGER. - -Hint: Du kan slÃ¥ av bekreftelsesforespørsler i Innstillinger/Bekreftelser. - -Hint: Hurtigtasten C-\ Ã¥pner en liste over favorittmappene dine. - -Hint: Du kan koble til anonym FTP med mc ved Ã¥ skrive «cd ftp://tjener.edu» - -Hint: FTP er bygd inn i Midnight Commander. Se «Koble til FTP». - -Hint: Hurtigtasten M-t endrer utlistingsformatet. - -Hint: Du kan angi FTP-brukernavn: «cd ftp://bruker@tjener.edu» - -Hint: Du kan se innholdet i RPM-filer ved Ã¥ trykke Enter pÃ¥ den. - -Hint: Legg til en skrÃ¥strek for Ã¥ markere mapper i utvalgsdialogen. - -Hint: Du mÃ¥ kanskje holde inn Shift-tasten for Ã¥ klippe ut og lime inn med musa. - -Hint: Du kan legge til ofte besøkte FTP-steder i favorittmapper, C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.nl b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.nl deleted file mode 100644 index fcd8bf871d..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.nl +++ /dev/null @@ -1,87 +0,0 @@ -Hint: C-x t zet de geselecteerde filenamen in de commando lijn. - -Hint: Gebruik C-x p om de huidige padnaam naar de commando lijn te kopieren. - -Hint: Completeren: gebruik M-Tab (of Esc+Tab). Herhaal voor een lijst. - -Hint: Gebruik M-p en M-n voor de commando lijn historie. - -Hint: Een character quoten? Gebruik Control-q en dan het character. - -Hint: Moe van deze hints? Zet ze uit in Opties/Vormgeving. - -Hint: Directories selecteren: zet een slash aan het eind van het zoekpatroon. - -Hint: Als je terminal geen functietoetsen ondersteunt, gebruik dan ESC+nummer. - -Hint: Midnight Commander home page: https://www.midnight-commander.org - -Hint: Stuur bug rapporten naar mc-devel@lists.midnight-commander.org - -Hint: Tab verandert focus huidig paneel (links/rechts). - -Hint: VFS-coolheid: druk op 'enter' op een tar file om de inhoud ervan te zien. - -Hint: We hebben ook een aardige handleiding. - -Hint: Wil je Lynx-achtige navigatie? Stel het in bij Configuratie. - -Hint: % macros werken zelf op de commando lijn. - -Hint: Met M-! kun je programmas draaien en de uitvoer in de viewer bekijken. - -Hint: Het bestandslijst formaat kan aangepast worden; doe "man mc" voor details. - -Hint: %D/%T expandeert naar de geselcterde bestanden in de andere directory. - -Hint: Wil je een gewone shell? Druk C-o, en ga terug naar MC met nogmaals C-o. - -Hint: De CDPATH variabele kan je een hoop typewerk met cd commandos besparen. - -Hint: Als je .* bestanden wilt zien, stel dat dan in in het Configuratie scherm. - -Hint: Wil je *~ backup bestanden zien? Ga naar het Configuratie scherm. - -Hint: Completering met M-Tab werkt op alle invoer regels in alle dialogen. - -Hint: Op trage terminals zou de -s vlag weleens kunnen helpen. - -Hint: Vinden bestanden: gebruik de gevonden bestanden met de optie Extern Venster. - -Hint: Wil je complexe zoekopdrachten? Gebruik het commando Externe Venster. - -Hint: M-c (snelle cd) is om middenin een commando van directorie te wisselen. - -Hint: Shell-commandos werken niet in niet-locale bestandssystemen. - -Hint: Laat tekst herleven met C-y. - -Hint: Werken sommige toetsen niet? Kijk naar Opties/Leer toetsen. - -Hint: Om naar de uitvoer van een commando in d viewer te kijken, drukke men M-! - -Hint: F13 (of Shift-F3) roept de viewer aan in ruwe modus. - -Hint: Je kunt een editor onder F4 specificeren met de shell variabele EDITOR. - -Hint: Je kunt een externe viewer specificeren met de shell variabele PAGER. - -Hint: Je kunt alle aanvragen voor bevestiging instellen in Opties/Bevestiging. - -Hint: Spring naar veel gebruikte directories in een keer met C-\. - -Hint: Je kunt anonieme FTP draaien met mc door middel van 'cd ftp://machine.edu' - -Hint: FTP is in de Midnight Commander gebouwd, check het Bestand/FTP link menu. - -Hint: M-t verandert snel van lijst modus. - -Hint: Geef alsvolgt je gebruikersnaam op met ftps: 'cd ftp://naam@machine.edu' - -Hint: Je kunt RPM-bestanden bekijken door er op te enteren. - -Hint: Om directories toe te voegen aan de selectie, moet je een slash toevoegen. - -Hint: Voor de normale cut-and-paste muisfuncties moet je de shift key inhouden. - -Hint: Voer frequent bezochte ftp-sites toe aan je hotlist: type C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.pl b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.pl deleted file mode 100644 index a3bfeff312..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.pl +++ /dev/null @@ -1,87 +0,0 @@ -Porada: C-x t skopiuje nazwy zaznaczonych plików do wiersza poleceÅ„. - -Porada: C-x p skopiuje nazwÄ™ bieżącej Å›cieżki do wiersza poleceÅ„. - -Porada: uzupeÅ‚nianie: M-Tab (lub Esc+Tab). Dwukrotne naciÅ›niÄ™cie wywoÅ‚uje listÄ™. - -Porada: M-p i M-n udostÄ™pni historiÄ™ poleceÅ„. - -Porada: cytowanie znaku można uzyskać przez Ctrl-q i odpowiedni znak. - -Porada: te komunikaty można wyłączyć w menu Opcje/UkÅ‚ad. - -Porada: zaznaczanie katalogów: należy dodać ukoÅ›nik na koÅ„cu wzorca dopasowania. - -Porada: jeÅ›li w terminalu nie ma klawiszy funkcyjnych, można użyć Esc+numer. - -Porada: witryna programu GNU Midnight Commander: https://www.midnight-commander.org - -Porada: raporty błędów (w jÄ™zyku angielskim) proszÄ™ wysÅ‚ać na mc-devel@lists.midnight-commander.org - -Porada: klawisz Tab zmienia bieżący panel. - -Porada: VFS: naciÅ›niÄ™cie klawisza Enter na pliku tar wyÅ›wietli jego zawartość. - -Porada: warto zajrzeć także na stronÄ™ podrÄ™cznika. - -Porada: nawigacjÄ™ w stylu programu Lynx można ustawić w oknie konfiguracji. - -Porada: makra % dziaÅ‚ajÄ… także w wierszu poleceÅ„. - -Porada: M-! umożliwia wyÅ›wietlenie wyjÅ›cia wykonywanych programów w podglÄ…dzie. - -Porada: format wyÅ›wietlania listy plików można dostosować (wiÄ™cej w „man mcâ€). - -Porada: %D/%T oznacza zaznaczone pliki w drugim panelu. - -Porada: dostÄ™p do zwykÅ‚ej powÅ‚oki można uzyskać przez C-o, a powrót tak samo. - -Porada: ustawienie zmiennej CDPATH może zaoszczÄ™dzić pisania przy cd. - -Porada: wyÅ›wietlanie plików .* można wybrać w oknie konfiguracji. - -Porada: wyÅ›wietlanie plików zapasowych *~ można ustawić w oknie konfiguracji. - -Porada: uzupeÅ‚nianie dziaÅ‚a wszÄ™dzie. Wystarczy nacisnąć M-Tab. - -Porada: na powolnych terminalach może pomóc flaga -s. - -Porada: wyszukanie plików: można pracować na znalezionych plikach przez Filtruj. - -Porada: zÅ‚ożone wyszukiwanie można wykonać za pomocÄ… polecenia Filtr zewnÄ™trzny. - -Porada: można zmienić katalog w poÅ‚owie podawania polecenia za pomocÄ… M-c. - -Porada: polecenia powÅ‚oki dziaÅ‚ajÄ… tylko na lokalnych systemach plików. - -Porada: można przywrócić usuniÄ™ty tekst za pomocÄ… C-y. - -Porada: jeÅ›li jakiÅ› klawisz nie dziaÅ‚a, należy zobaczyć Opcje/OkreÅ›l klawisze. - -Porada: aby zobaczyć wyjÅ›cie polecenia w podglÄ…dzie, należy użyć M-!. - -Porada: F13 (lub Shift-F3) wywoÅ‚uje podglÄ…d w trybie oryginalnym. - -Porada: można okreÅ›lić edytor dla klawisza F4 za pomocÄ… zmiennej powÅ‚oki EDITOR. - -Porada: można okreÅ›lić zewnÄ™trzny podglÄ…d za pomocÄ… zmiennych VIEWER lub PAGER. - -Porada: można wyłączyć wszystkie żądania potwierdzenia w Opcje/Potwierdzenia. - -Porada: do listy czÄ™sto używanych katalogów można przejść za pomocÄ… C-\. - -Porada: można połączyć siÄ™ z anonimowym FTP wpisujÄ…c „cd ftp://komputer.eduâ€. - -Porada: FTP jest wbudowane w mc, proszÄ™ zobaczyć menu Plik/Połączenie FTP. - -Porada: M-t szybko zmienia tryb wyÅ›wietlania. - -Porada: można podać użytkownika dla ftps: „cd ftp://użytkownik@komputer.eduâ€. - -Porada: można przeglÄ…dać pakiety RPM naciskajÄ…c na nich klawisz Enter. - -Porada: aby zaznaczyć katalogi w oknie zaznaczania, należy dodać ukoÅ›nik. - -Porada: użycie wycinania i wklejania za pomocÄ… myszy wymaga klawisza Shift. - -Porada: wpisujÄ…c C-\ można dodać czÄ™sto używane zasoby FTP do listy podrÄ™cznej. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.pt b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.pt deleted file mode 100644 index 7adb4cf3a8..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.pt +++ /dev/null @@ -1,87 +0,0 @@ -Dica: Use C-x t para copiar nomes de ficheiro etiquetados para a linha de comandos. - -Dica: Use C-x p para copiar o caminho atual para a linha de comandos. - -Dica: Preenchimento: use M-Tab (ou Esc+Tab). Duas vezes para obter a lista. - -Dica: Use M-p e M-n para aceder ao histórico de comandos. - -Dica: Necessita colocar carater entre plicas? Use Control-q e o carater. - -Dica: Cansado destas mensagens? Desligue-as no menu Opções/Disposição. - -Dica: Seleção de diretórios: adicione uma barra no fim do padrão correspondente. - -Dica: Se o seu terminal não tem algumas teclas de função, use a sequência ESC+número. - -Dica: A página do GNU Midnight Commander: https://www.midnight-commander.org - -Dica: Por favor envie relatórios de bugs para mc-devel@lists.midnight-commander.org - -Dica: O tab altera o painel atual. - -Dica: VFS coolness: pressione enter num ficheiro tar para examinar o seu conteúdo. - -Dica: Também temos uma página manual interessante. - -Dica: Deseja navegação tipo Lynx? Ative-a no diálogo de Configuração. - -Dica: % macros funcionam mesmo na linha de comandos. - -Dica: M-! irá permitir-lhe a execução de programas e ver o output no visualizador. - -Dica: A listagem de formato de ficheiros pode ser personalizada; faça "man mc" para detalhes. - -Dica: %D/%T expande para os ficheiros etiquetados no diretório oposto. - -Dica: Deseja a sua simples shell? Pressione C-o, e volte para o MC com C-o outra vez. - -Dica: Definir a variável CDPATH pode poupar-lhe escrita nos comandos cd. - -Dica: Se deseja ver os seus ficheiros .*, faça isso no diálogo de Configuração. - -Dica: Deseja ver os seus ficheiros de backup *~? Ative isso no diálogo de Configuração. - -Dica: Preenchimento funciona em todas as linhas de entrada em todos os diálogos. Pressione apenas M-Tab. - -Dica: Em terminais lentos o parâmetro -s pode ajudar. - -Dica: Procurar Ficheiro: pode trabalhar nos ficheiros encontrados usando o botão Panelize. - -Dica: Deseja efetuar procuras complexas? Use o comando Externo Panelize. - -Dica: Para mudar de diretório a meio de um comando, use M-c (cd rápido). - -Dica: Comandos shell não funcionarão quando estiver num sistema de ficheiros não local. - -Dica: Traga de volta o texto dos mortos com C-y. - -Dica: Algumas das suas teclas não funcionam? Veja em Opções/Aprender teclas. - -Dica: Para ver o output de um comando no visualizador, use M-! - -Dica: F13 (ou Shift-F3) invoca o visualizador em modo raw. - -Dica: Pode especificar o editor para F4 com a variável de shell EDITOR. - -Dica: Pode especificar o visualizador externo com as vars de shell VIEWER ou PAGER. - -Dica: Pode desabilitar todos os pedidos de confirmação em Opções/Confirmação. - -Dica: Salte para diretórios frequentemente usados de uma só vez através de C-\. - -Dica: Pode efetuar FTP anónimo com o mc digitando 'cd ftp://machine.edu' - -Dica: FTP está incluído no Midnight Commander, verifique o menu Ficheiro/FTP. - -Dica: M-t muda rapidamente o modo de listagem. - -Dica: Pode especificar o nome de utilizador ao efetuar ftps: 'cd ftp://user@machine.edu' - -Dica: Pode fazer browse em ficheiros RPM pressionando enter num ficheiro rpm. - -Dica: Para marcar diretórios na caixa de diálogo de seleção, acrescente uma barra slash. - -Dica: Para usar o rato cortar e colar pode ser necessário prender a tecla shift - -Dica: Sites ftp chave frequentemente visitados na hotlist: digite C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.pt_BR b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.pt_BR deleted file mode 100644 index be2ff37d88..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.pt_BR +++ /dev/null @@ -1,87 +0,0 @@ -Dica: Pressione Ctrl+x para copiar os nomes dos arquivos marcados para a linha de comando. - -Dica: Pressione a tecla Ctrl junto com a tecla X, em seguida, pressione a tecla P para copiar o nome do caminho atual para a linha de comando. - -Dica: Para concluir: Pressione a tecla M junto com a tecla Tab (ou a tecla Esc junto com a tecla Tab). Pressione duas vezes para obter uma lista. - -Dica: Pressione a tecla M junto com a tecla P ou a tecla M junto com a tecla N para acessar o histórico de comandos. - -Dica: Para inserir um caractere especial, pressione a tecla Ctrl junto com a tecla Q e o caractere desejado. - -Dica: Para não exibir as mensagens das dicas de ferramentas, desative-as no menu Opções, Leiaute. - -Dica: Selecionando diretórios: Adicione uma barra ao final do padrão correspondente. - -Dica: Se o seu terminal não for compatível com as teclas de função, utilize a sequência com a tecla Esc junto com a tecla do número. - -Dica: A página eletrônica do Midnight Commander do GNU é https://www.midnight-commander.org - -Dica: Por favor, envie os relatórios de erros ou falhas para o endereço mc-devel@lists.midnight-commander.org - -Dica: A tecla Tab altera o seu painel atual. - -Dica: Coisas legais do VFS: Pressione a tecla Enter em um arquivo com a extensão .tar para examinar o seu conteúdo. - -Dica: Nós também temos um ótimo manual na página do Midnight Commander. - -Dica: Você deseja uma navegação do tipo Lynx? Ative-a na caixa de diálogo das Configurações. - -Dica: Os macros % funcionam mesmo na linha de comando. - -Dica: Pressione a tecla M junto com a tecla ! para executar os programas aplicativos e exibir a saída no visualizador. - -Dica: O formato da listagem de arquivos pode ser personalizada; execute o comando "man mc" para obter mais informações. - -Dica: %D/%T expande para os arquivos marcados no diretório oposto. - -Dica: Para ter o Shell básico, pressione a tecla Ctrl junto com a tecla O e volte novamente para o Midnight Commander pressionando a tecla C junto com a tecla O. - -Dica: Ao definir a variável CDPATH, você economizará digitações dos comandos cd. - -Dica: Para exibir os seus arquivos .*, defina esta opção na caixa de diálogo das Configurações. - -Dica: Para exibir os seus arquivos de cópia de segurança (backup) *~, defina esta opção na caixa de diálogo nas Configurações. - -Dica: A conclusão funciona em todas as linhas de entrada em todas as caixas de diálogos, pressione as teclas M+Tab. - -Dica: Em emuladores de terminais lentos, a opção -s pode ajudar. - -Dica: Encontrar um Arquivo: você pode trabalhar em arquivos encontrados utilizando o botão de Painelização. - -Dica: Para fazer pesquisas complexas, pressione o comando de Painelização Externo. - -Dica: Para alterar o diretório por meio de um comando, pressione a tecla M junto com a tecla C (equivale ao preenchimento rápido do comando cd). - -Dica: Comandos shell não funcionarão quando estiver num sistema de ficheiros não local. - -Dica: Para recuperar o texto de volta, pressione a tecla Ctrl junto com a tecla Y. - -Dica: Se algumas das suas teclas não estão funcionando, verifique no menu Opções, Aprender as Teclas. - -Dica: Para exibir a saída de um comando no visualizador, pressione a tecla M junto com a tecla !. - -Dica: Pressione a tecla F13 (ou Shift junto com F3) para invocar o visualizador no modo bruto. - -Dica: Para especificar o editor, pressione com a tecla F4 com a variável EDITOR do Shell. - -Dica: Para especificar o visualizador externo, utilize as variáveis VIEWER ou PAGER do Shell. - -Dica: Para desativar todas as solicitações de confirmação, defina esta opção no menu Opções, Confirmações. - -Dica: Para pular para os diretórios utilizados com mais frequência, pressione a tecla Ctrl junto com a tecla \. - -Dica: Para utilizar o FTP anonimamente com o Midnight Commander, insira o endereço 'cd ftp://maquina.edu'. - -Dica: O FTP está embutido no Midnight Commander, verifique o menu Arquivo, FTP. - -Dica: Para alterar rapidamente para o modo de listagem ou de lista, pressione a tecla M junto com a tecla T. - -Dica: Para especificar o nome de usuário quando for utilizar o ftps: 'cd ftp://user@machine.edu'. - -Dica: Para acessar os arquivos com a extensão .RPM, pressione a tecla Enter após selecionar um arquivo .rpm. - -Dica: Para marcar diretórios na caixa de diálogo selecionada, adicione ao final uma barra. - -Dica: Para utilizar os comandos "recortar" e "colar" com o cursor, pode ser necessário segurar a tecla Shift. - -Dica: Para definir a tecla de atalho para os endereços de FTP que são visitados com mais frequência no 'hotlist', pressione a tecla Ctrl junto com a tecla \. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ro b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ro deleted file mode 100644 index 647e2294f3..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ro +++ /dev/null @@ -1,87 +0,0 @@ -Sfat: UtilizaÈ›i C-x t pentru a copia în linia de comandă numele fiÈ™ierelor marcate. - -Sfat: UtilizaÈ›i C-x p pentru a copia în linia de comandă calea curentă. - -Sfat: Completare: UtilizaÈ›i M-Tab (sau Esc+Tab). TastaÈ›i de două ori pentru a obÈ›ine lista. - -Sfat: UtilizaÈ›i M-p È™i M-n pentru a accesa istoricul comenzilor. - -Sfat: Trebuie sa citaÈ›i un caracter? FolosiÈ›i Control-q È™i caracterul. - -Sfat: Aceste mesaje sunt sâcâitoare? PuteÈ›i să le opriÈ›i din meniul OpÈ›iuni/Aspect. - -Sfat: Selectarea dosarelor: adăugaÈ›i slash la sfârÈ™itul criteriului de selectare - -Sfat: Dacă terminalul nu dispune de taste funcÈ›ionale, folosiÈ›i ESC+ numărul de ordine. - -Sfat: Pagină de start pentru GNU Midnight Commander: https://www.midnight-commander.org - -Sfat: Vă rugăm semnalaÈ›i orice bug la adresa mc-devel@lists.midnight-commander.org - -Sfat: Tasta Tab schimbă panoul curent. - -Sfat: facilități VFS: ApăsaÈ›i ENTER pe un fiÈ™ier tar pentru a examina conÈ›inutul său. - -Sfat: Avem de asemenea È™i o pagină de manual. - -Sfat: DoreÈ™ti navigare în stilul Lynx? PoÈ›i seta în dialogul Configurare. - -Sfat: macro-urile funcÈ›ionează È™i în linia de comandă. - -Sfat: M-! vă dă posibilitatea să rulaÈ›i programe È™i să afiÈ™aÈ›i rezultatul în vizualizator. - -Sfat: Formatul listării de fiÈ™iere poate fi modificat; rulaÈ›i "man mc" pentru detalii. - -Sfat: %D/%T se extinde pe fiÈ™ierele marcate din dosarul opus. - -Sfat: DoriÈ›i un shell simplu? ApăsaÈ›i C-o, iar pentru a revenit în MC apăsaÈ›i din nou C-o. - -Sfat: Configurând variabila CDPATH puteÈ›i minimiza numărul de taste apăsate pentru comenzi CD. - -Sfat: Dacă doriÈ›i să vedeÈ›i fiÈ™ierele .*, specificaÈ›i acest lucru în dialogul Configurare. - -Sfat: DoriÈ›i să vedeÈ›i fiÈ™ierele de backup *~ ? SpecificaÈ›i acest lucru în dialogul Configurare. - -Sfat: FuncÈ›ia de completare funcÈ›ionează în toate liniile de intrare din toate dialogurile. Trebuie doar să apăsaÈ›i M-Tab. - -Sfat: Pentru terminalele lente, opÈ›iunea -s ar putea ajuta. - -Sfat: Căutare fiÈ™ier: puteÈ›i lucra cu fiÈ™ierele găsite folosind butonul de panelizare. - -Sfat: DoriÈ›i căutări complexe? FolosiÈ›i comanda de panelizare externă. - -Sfat: Pentru a schimba dosarul curent în timpul tastării unei comenzi, folosiÈ›i M-c (cd rapid). - -Sfat: Comenzile shell nu funcÈ›ionează în sisteme de fiÈ™iere care nu sunt locale. - -Sfat: PuteÈ›i recupera textul È™ters cu C-y. - -Sfat: Unele taste nu funcÈ›ionează? VerificaÈ›i meniul OpÈ›iuni/ÃŽnvață taste. - -Sfat: Pentru vedea în vizualizator rezultatul unei comenzi, folosiÈ›i M-! - -Sfat: F13 (sau Shift-F3) apelează vizualizatorul în mod brut. - -Sfat: Puteti specifica editorul pentru F4 cu ajutorul variabilei de shell EDITOR. - -Sfat: PuteÈ›i specifica vizualizatorul extern cu ajutorul variabilelor de shell VIEWER sau PAGER. - -Sfat: PuteÈ›i dezactiva toate cererile de confirmare în meniul OpÈ›iuni/Confirmări. - -Sfat: SăriÈ›i la dosarele utilizate frecvent într-un singur pas cu C-\. - -Sfat: PuteÈ›i să vă conectaÈ›i la FTP în mod anonim din MC tastând 'cd ftp://machine.edu' - -Sfat: Serviciul FTP este încorporat în Midnight Commander, verificaÈ›i meniul FiÈ™ier/Legătură FTP. - -Sfat: M-t schimbă rapid modul de listare. - -Sfat: PuteÈ›i specifica numele utilizatorului pentru ftps: 'cd ftp://user@machine.edu' - -Sfat: PuteÈ›i parcurge fiÈ™ierele RPM apăsând ENTER pe fiÈ™ier. - -Sfat: Pentru a marca dosarele în dialogul de selecÈ›ie, adăugaÈ›i slash. - -Sfat: Pentru a folosi mouse-ul pentru a decupa È™i insera, trebuie să È›ineÈ›i tasta Shift apăsată. - -Sfat: Pentru a păstra în lista rapida site-urile ftp vizitate frecvent: tastaÈ›i C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ru b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ru deleted file mode 100644 index d0dad919d1..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.ru +++ /dev/null @@ -1,87 +0,0 @@ -Совет: ИÑпользуйте C-x t Ð´Ð»Ñ ÐºÐ¾Ð¿Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾Ð¼ÐµÑ‡ÐµÐ½Ð½Ñ‹Ñ… файлов в командную Ñтроку. - -Совет: ИÑпользуйте C-x p Ð´Ð»Ñ ÐºÐ¾Ð¿Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ³Ð¾ пути в командную Ñтроку. - -Совет: Ðвтодополнение: M-Tab (или Esc+Tab). Ð”Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ ÑпиÑка нажать дважды. - -Совет: ИÑпользуйте M-p и M-n Ð´Ð»Ñ Ð´Ð¾Ñтупа к иÑтории команд. - -Совет: ТребуетÑÑ Ð²Ñтавить литерал? Ðажмите Control-q и литерал. - -Совет: УÑтали от Ñтих Ñообщений? Отключите их в меню ÐаÑтройки/Внешний вид. - -Совет: Отметка каталогов: добавьте коÑую черту в конец ÑоответÑтвующего шаблона. - -Совет: ЕÑли ваш терминал без функц. клавиш, вам поможет ESC+цифра. - -Совет: ДомашнÑÑ Ñтраница Midnight Commander: https://www.midnight-commander.org - -Совет: ПожалуйÑта, шлите любые отчёты об ошибках на mc-devel@lists.midnight-commander.org - -Совет: Tab менÑет текущую панель. - -Совет: УдобÑтво ВФС: нажмите Enter на файле tar Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ ÐµÐ³Ð¾ Ñодержимого. - -Совет: У Ð½Ð°Ñ Ñ‚Ð°ÐºÐ¶Ðµ имеетÑÑ Ñ‚Ð¾Ð»ÐºÐ¾Ð²Ð°Ñ Ñтраница руководÑтва. - -Совет: Хотите навигацию в Ñтиле Lynx? ÐаÑтройте её в диалоге КонфигурациÑ. - -Совет: МакроÑÑ‹ % работают даже в командной Ñтроке. - -Совет: M-! позволит вам выполнÑть программы и видеть вывод в проÑмотрщике. - -Совет: Формат ÑпиÑка файлов можно изменить; наберите "man mc" Ð´Ð»Ñ Ð¿Ð¾Ð´Ñ€Ð¾Ð±Ð½Ð¾Ñтей. - -Совет: %D/%T раÑпроÑтранÑетÑÑ Ð½Ð° отмеченные файлы в противоположном каталоге. - -Совет: Хотите проÑтую оболочку? Ðажмите C-o, и Ñнова C-o Ð´Ð»Ñ Ð²Ð¾Ð·Ð²Ñ€Ð°Ñ‚Ð° в МС. - -Совет: УÑтановив переменную CDPATH, вы Ñбережёте уÑÐ¸Ð»Ð¸Ñ Ð¿Ñ€Ð¸ наборе команды cd. - -Совет: Ð’Ñ‹ можете показать Ñкрытые файлы .*, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ Ð½Ð°Ñтройку в меню КонфигурациÑ. - -Совет: Хотите видеть резервные файлы .~ ? УÑтановите опцию в меню КонфигурациÑ. - -Совет: Ðвтодополнение работает во вÑех Ñтроках ввода. ПроÑто нажмите M-Tab. - -Совет: Ðа медленных терминалах может помочь флаг -s. - -Совет: ПоиÑк файла: вы можете работать Ñ Ð½Ð°Ð¹Ð´ÐµÐ½Ð½Ñ‹Ð¼Ð¸ файлами при Панелизации. - -Совет: ИÑпользуйте команду "ВнешнÑÑ Ð¿Ð°Ð½ÐµÐ»Ð¸Ð·Ð°Ñ†Ð¸Ñ" Ð´Ð»Ñ Ñложного поиÑка. - -Совет: Ð”Ð»Ñ Ñмены каталога во Ð²Ñ€ÐµÐ¼Ñ Ð½Ð°Ð±Ð¾Ñ€Ð° команды нажмите M-c (быÑÑ‚Ñ€Ð°Ñ Ñмена). - -Совет: Команды оболочки не выполнÑÑŽÑ‚ÑÑ, еÑли вы не в локальной файл. ÑиÑтеме. - -Совет: Удалённый текÑÑ‚ можно вернуть Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ C-y. - -Совет: Ðекоторые клавиши не работают? Зайдите в ÐаÑтройки/Определение клавиш. - -Совет: Ð”Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð° команды в окне проÑмотра наберите M-! - -Совет: F13 (или Shift-F3) вызывают проÑмотрщик в режиме необработанных данных. - -Совет: Ð’Ñ‹ можете выбрать редактор Ð´Ð»Ñ F4 Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ переменной оболочки EDITOR. - -Совет: Внешний проÑмотрщик можно выбрать Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ переменной оболочки PAGER. - -Совет: Ð’Ñ‹ можете отменить запроÑÑ‹ на подтверждение в ÐаÑтройки/Подтверждение. - -Совет: Переходите к чаÑто иÑпользуемым каталогам из Ñправочника, набрав C-\. - -Совет: Ð’Ñ‹ можете иÑпользовать анонимный FTP Ñ mc, набрав 'cd ftp://machine.edu' - -Совет: FTP вÑтроен в Midnight Commander: меню Панель/FTP-Ñоединение. - -Совет: M-t быÑтро изменÑет формат ÑпиÑка панели. - -Совет: Ð’Ñ‹ можете задать Ð¸Ð¼Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð² команде: 'cd ftp://user@machine.edu'. - -Совет: Ð’Ñ‹ можете проÑматривать файлы RPM, нажав Enter на файле RPM. - -Совет: Ð”Ð»Ñ Ð¾Ñ‚Ð¼ÐµÑ‚ÐºÐ¸ каталогов в диалоге выбора добавьте коÑую черту. - -Совет: Вырезание и вÑтавка Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ мыши может требовать ÑƒÐ´ÐµÑ€Ð¶Ð°Ð½Ð¸Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Shift. - -Совет: Храните ÑпиÑок чаÑто поÑещаемых FTP в Ñправочнике каталогов: нажмите C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.sk b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.sk deleted file mode 100644 index e794380e17..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.sk +++ /dev/null @@ -1,87 +0,0 @@ -Tip: Pomocou C-x t skopírujete oznaÄené názvy súborov do príkazového riadka. - -Tip: Pomocou C-x p skopírujete aktuálnu cestu do príkazového riadka. - -Tip: Dopĺňanie pomocou M-Tab (alebo Esc+Tab). Ak ho napíšete dvakrát, zobrazí sa zoznam. - -Tip: Pomocou M-p a M-n zobrazíte históriu príkazov. - -Tip: Potrebujete vložiÅ¥ znak? StlaÄte Control-q a napíšte znak. - -Tip: Už vás tieto správy unavujú? Vypnite ich v menu Možnosti/Rozmiestnenie. - -Tip: Výber adresárov: pridajte lomku na koniec vyhľadávacieho vzoru. - -Tip: Ak váš terminál nemá funkÄné klávesy, použite ESC+Äíselnú postupnosÅ¥. - -Tip: Domovská stránka GNU Midnight Commander: https://www.midnight-commander.org - -Tip: Hlásenia chýb posielajte na mc-devel@lists.midnight-commander.org - -Tip: Tabulátor mení váš aktuálny panel. - -Tip: VFS: stlaÄením Enter na súbore .tar preskúmate jeho obsah. - -Tip: Máme aj peknú manuálovú stránku. - -Tip: Chcete navigáciu v Å¡týle Lynx? Nastavte si ju v dialógu Konfigurácia. - -Tip: Makrá % fungujú aj na príkazovom riadku. - -Tip: M-! vám umožní spúšťaÅ¥ programy a vidieÅ¥ výstup v prehliadaÄi. - -Tip: Formát výpisu súborov je možné prispôsobiÅ¥. Podrobnosti nájdete v „man mc“. - -Tip: %D/%T expanduje oznaÄené súbory v náprotivnom adresári. - -Tip: Chcete Äistý shell? StlaÄte C-o a späť do MC sa prepnite oäť pomocou C-o. - -Tip: Nastavenie premennej CDPATH vám uÅ¡etrí písanie pri príkazoch cd. - -Tip: Ak chcete vidieÅ¥ súbory .*, zapnite si to v dialógu Konfigurácia. - -Tip: Ak chcete vidieÅ¥ záložné súbory *~, zapnite si to v dialógu Konfigurácia. - -Tip: Dopĺňanie funguje vo vstupných poliach vÅ¡etkých dialógov. StaÄí stlaÄiÅ¥ M-Tab. - -Tip: Na pomalých termináloch môže pomôcÅ¥ prepínaÄ -s. - -Tip: Nájdenie súboru: s nájdenými súbormi môžete pracovaÅ¥ pomocou tlaÄidla PanelizovaÅ¥. - -Tip: Chcete využiÅ¥ komplexné hľadanie? Použite príkaz Externá panelizácia. - -Tip: Ak chcete zmeniÅ¥ adresár uprostred písania príkazu, použite M-c (rýchle cd). - -Tip: príkazy shellu nebudú fungovaÅ¥, keÄ sa nachádzate na nelokálnom súborovom systéme. - -Tip: Vráťte späť zmazaný text pomocou C-y. - -Tip: Nefungujú niektoré z vaÅ¡ich klávesov? Pozrite sa na Možnosti/UÄenie klávesov. - -Tip: Pomocou M-! zobrazíte výstup príkazu v prehliadaÄi. - -Tip: F13 (alebo Shift-F3) vyvolá prehliadaÄ v nespracovanom režime. - -Tip: Premennou prostredia EDITOR môžete urÄiÅ¥ editor pre F4. - -Tip: Premennými prostredia VIEWER alebo PAGER môžete urÄiÅ¥ externý prehliadaÄ. - -Tip: Môžete zakázaÅ¥ vÅ¡etky žiadosti o potvrdenie pomocou Možnosti/Konfigurácia. - -Tip: Do Äasto používaných adresárov môžete skákaÅ¥ pomocou C-\. - -Tip: Prístup k anonymnému FTP z mc získate napísaním „cd ftp://machine.edu“ - -Tip: FTP je súÄasÅ¥ou aplikácie Midnight Commander, pozrite si menu Súbor/Pripojenie FTP. - -Tip: M-t rýchlo zmení režim výpisu. - -Tip: Môžete uviesÅ¥ meno používateľa v príkaze ftps: 'cd ftp://používateľ@poÄítaÄ' - -Tip: StlaÄením Enter na súbore .rpm môžete prechádzaÅ¥ súbory v RPM. - -Tip: Adresáre v dialógovom okne výberu môžete oznaÄiÅ¥ pridaním lomky. - -Tip: Na kopírovanie a vkladanie pomocou myÅ¡i môže byÅ¥ potrebné podržaÅ¥ Shift. - -Tip: Uložte si Äasto navÅ¡tevované servery FTP do hotlistu: C-\ diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.sr b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.sr deleted file mode 100644 index c9da447bfa..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.sr +++ /dev/null @@ -1,87 +0,0 @@ -Савет: КориÑтите „C-x t“ да умножите означене називе датотека у линији наредби. - -Савет: КориÑтите „C-x p“ да умножите назив текуће путање у линији наредби. - -Савет: Довршавање: кориÑтите „M-Tab“ (или „Esc+Tab“). Укуцајте га два пута да добавите ÑпиÑак. - -Савет: КориÑтите „M-p“ и „M-n“ да приÑтупите иÑторијату наредби. - -Савет: Треба да цитирате знак? КориÑтите „Ctrl-q“ и знак. - -Савет: Ове поруке Ð²Ð°Ñ Ð¸Ð·Ð»ÑƒÑ’ÑƒÑ˜Ñƒ? ИÑкључите их у изборнику „Опције/РаÑпоред“. - -Савет: Бирање директоријума: додајте коÑу црту на крај обраÑца за поређење. - -Савет: Ðко вашем терминалу недоÑтају функцијÑки таÑтери, кориÑтите низ „ЕСЦ+број“. - -Савет: Матична Ñтраница Гнуовог Поноћног наредника: https://www.midnight-commander.org - -Савет: Све извештаје о грешкама пошаљите на „mc-devel@lists.midnight-commander.org“ - -Савет: Табулатор мења ваш текући панел. - -Савет: СмиреноÑÑ‚ ВСД-а: лупните таÑтер „УнеÑи“ на тар датотеци да иÑпитате њен Ñадржај. - -Савет: Такође имамо и лепу Ñтраницу упутÑтва. - -Савет: Да ли желите кретање у Ñтилу Lynx? ПоÑтавите га у прозорчету подешавања. - -Савет: % макрои раде чак и на линији наредби. - -Савет: „M-!“ ће вам омогућити да извршите програме и да видите излаз у прегледачу. - -Савет: Ð—Ð°Ð¿Ð¸Ñ Ð¸ÑпиÑивања датотека може бити прилагођен; упишите „man mc“ за појединоÑти. - -Савет: „%D/%T“ Ñе проширује ка означеним датотекама у Ñупротном директоријуму. - -Савет: Желите вашу обичну љуÑку? ПритиÑните „C-o“, и вратите Ñе Поноћном нареднику опет Ñа „C-o“. - -Савет: ПоÑтављањем променљиве „CDPATH“ може да вам уштеди пречице таÑтатуре у „cd“ наредбама. - -Савет: Ðко желите да видите ваше „.*“ датотеке, реците тако у прозорчету подешавања. - -Савет: Желите да видите ваше датотеке резерви „*~“? ПоÑтавите то у прозорчету подешавања. - -Савет: Довршавање ради на Ñвим улазним редовима у Ñвим прозорчићима. Само притиÑните „M-Tab“. - -Савет: Ðа Ñпорим терминалима заÑтавица „-s“ може бити од кориÑти. - -Савет: Ðалажење датотеке: можете да радите на налажењу датотека кориÑтећи дугме „У окно“. - -Савет: Желите да обавите Ñложене претраге? КориÑтите наредбу „Спољним програмом у окно“. - -Савет: Да промените директоријум на пола пута куцајући наредбу, кориÑтите „M-c“ (брза промена директоријума). - -Савет: Ðаредбе љуÑке неће радити када ниÑте на меÑном ÑиÑтему датотека. - -Савет: Вратите текÑÑ‚ у живот Ñа „C-y“. - -Савет: Да ли неки од ваших таÑтера не раде? Погледајте „Опције/Ðаучи таÑтере“. - -Савет: Да погледате излаз наредбе у прегледачу, кориÑтите „M-!“. - -Савет: Ф13 (или Помак-Ф3) призива прегледача у Ñировом режиму. - -Савет: Можете да наведете уређивача за Ф4 променљивом љуÑке „УРЕЂИВÐЧ“. - -Савет: Можете да наведете Ñпољног прегледача променљивима љуÑке „ПРЕГЛЕДÐЧ“ или „СТРÐÐИЧÐИК“. - -Савет: Можете да иÑкључите Ñве захтеве за потврђивањем у изборнику „Опције/Потврђивање“. - -Савет: Скокните до чеÑто коришћених директоријума кориÑтећи „C-\“. - -Савет: Можете да одрадите безимени протокол преноÑа датотека Ñа „cd ftp://machine.edu“ - -Савет: Протокол преноÑа датотека је изграђен у Поноћном нареднику, проверите изборник „Датотека/ФТП веза“. - -Савет: „M-t“ мења брзо режим иÑпиÑивања. - -Савет: Можете да наведете име кориÑника када обављате фтпÑ: „cd ftp://user@machine.edu“ - -Савет: Можете да разгледате РПМ датотеке ако лупнете таÑтером „УнеÑи“ по рпм датотеци. - -Савет: Да означите директоријуме у пољу прозорчета за избор, прикачите коÑу црту. - -Савет: ИÑецање и убацивање мишем може да захтева држање таÑтера помака - -Савет: За чеÑто поÑећиване фтп Ñтранице у врућем ÑпиÑку: укуцајте „C-\“. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.sv b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.sv deleted file mode 100644 index f70c882c21..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.sv +++ /dev/null @@ -1,87 +0,0 @@ -Tips: Använd C-x t för att kopiera markerade filers namn till kommandoraden. - -Tips: Använd C-x p för att kopiera nuvarande katalognamn till kommandoraden. - -Tips: Komplettering: anv M-Tab (el Esc+Tab). Tryck tvÃ¥ ggr för att fÃ¥ en lista. - -Tips: Använd M-p och M-n för att komma Ã¥t kommandohistoriken. - -Tips: Behöver du skriva ett kontrolltecken? Använd Control-q och tecknet. - -Tips: Är du trött pÃ¥ dessa meddelanden? Stäng av dem frÃ¥n Alternativ/Layout-menyn. - -Tips: Välja kataloger: Lägg till snedstreck i slutet av det matchande mönstret. - -Tips: Om din terminal saknar funktionstangenter, använd ESC+siffersekvens. - -Tips: Hemsidan för GNU Midnight Commander: https://www.midnight-commander.org - -Tips: Skicka felrapporter till mc-devel@lists.midnight-commander.org - -Tips: Tab ändrar din nuvarande panel. - -Tips: VFS användbarhet: tryck enter pÃ¥ en tar-fil för att se dess innehÃ¥ll. - -Tips: Vi har ocksÃ¥ en trevlig manualsida. - -Tips: Vill du ha navigation i Lynx-stil? Ställ in det i konfigurationsdialogen. - -Tips: %-makron fungerar även pÃ¥ kommandoraden. - -Tips: M-! tillÃ¥ter dig att exekvera program och se utskriften i filvisaren. - -Tips: Fillistningsformatet kan anpassas; kör "man mc" för detaljer. - -Tips: %D/%T expanderar till de markerade filerna i katalogen mitt emot. - -Tips: Vill du ha ditt vanliga skal? Tryck C-o och gÃ¥ tillbaks med C-o igen. - -Tips: Att sätta CDPATH-variabeln kan spara tangenttryckningar i cd-kommandon. - -Tips: Om du vill se dina .*-filer, ställ in det i konfigurations-dialogen. - -Tips: Vill du se dina *~-backupfiler? Ställ in det i konfigurations-dialogen. - -Tips: Komplettering funkar pÃ¥ alla inmatningsrutor i dialoger. Tryck pÃ¥ M-Tab. - -Tips: PÃ¥ lÃ¥ngsamma terminaler kan -s-flaggan hjälpa. - -Tips: Sök fil: du kan arbeta med funna filer med panelisera-knappen. - -Tips: Vill du göra komplexa sökningar? Använd kommandot Extern panelisering. - -Tips: För att ändra katalog under kommandoinmatning, använd M-c (snabb-cd). - -Tips: Skalkommandon funkar inte när du är pÃ¥ ett icke-lokalt filsystem. - -Tips: Ta tillbaks text frÃ¥n de döda med C-y. - -Tips: Fungerar vissa tangenter inte? Se Alternativ/Lär in tangenter. - -Tips: för att se utmatningen frÃ¥n ett kommando i filvisaren, använd M-! - -Tips: F13 (eller Skift-F3) startar filvisaren i rÃ¥tt läge. - -Tips: Du kan specificera editorn för F4 med skalvariabeln EDITOR. - -Tips: Du kan välja den externa filvisaren med skalvariabeln VIEWER eller PAGER. - -Tips: Du kan slÃ¥ av alla är-du-säker-frÃ¥gor i Alternativ/Konfirmation. - -Tips: Hoppa till ofta använda kataloger i ett steg med C-\. - -Tips: Du kan använda anonym FTP i mc genom att skriva 'cd ftp://dator.se' - -Tips: FTP är inbyggt i Midnight Commander, se Fil/FTP-länk-menyn. - -Tips: M-t ändrar snabbt listningsläget. - -Tips: Du kan specificera användarnamnet med ftps: 'cd ftp://användare@dator.se' - -Tips: Du kan bläddra i RPM-filer genom att trycka enter pÃ¥ en RPM-fil. - -Tips: För att markera kataloger i markera-dialogrutan, lägg till snedstreck. - -Tips: Skift kan behöva hÃ¥llas ned för att använda klipp och klistra med musen. - -Tips: Mata in ofta använda ftp-sajter i favoriter: tryck C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.tr b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.tr deleted file mode 100644 index a8dfa3270a..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.tr +++ /dev/null @@ -1,87 +0,0 @@ -İpucu: C-x t ile iÅŸaretlenmiÅŸ dosyaların isimlerini komut satırına kopyalayabilirsiniz. - -İpucu: C-x p ile komut satırına aktif yolu kopyalayabilirsiniz. - -İpucu: Tamamlamak için M-Tab (veya Esc+Tab) kullanın. Liste için iki kere basın. - -İpucu: M-p ve M-n ile komut geçmiÅŸine ulaÅŸabilirsiniz. - -İpucu: Bir karakteri alıntılamanız mı gerekiyor? Control-q yapın ve karakteri kullanın. - -İpucu: Bu mesajlardan sıkıldınız mı? Seçenekler/Görünüm menüsünden kapatabilirsiniz. - -İpucu: Dizinleri seçmek için eÅŸleÅŸtirme kalıbının sonuna bölü ekleyin. - -İpucu: EÄŸer klavyenizde fonksiyon tuÅŸları yoksa, ESC+numara kombinasyonunu kullanabilirsiniz. - -İpucu: GNU Midnight Commander web adresi: https://www.midnight-commander.org - -İpucu: Tüm hata raporlarını mc-devel@lists.midnight-commander.org adresine gönderebilirsiniz. - -İpucu: Tab aktif paneli deÄŸiÅŸtirir. - -İpucu: VFS rahatlığı: tar dosyalarının içeriÄŸine bakmak için üzerindeyken Enter tuÅŸuna basın. - -İpucu: Aynı zamanda güzel bir kullanım kılavuzumuz da var. - -İpucu: Lynx-tarzı dolaşım ister misiniz? Yapılandırma diyaloÄŸundan ayarlayabilirsiniz. - -İpucu: % makroları komut satırında bile çalışır. - -İpucu: M-! uygulamaları çalıştırmanızı ve çıktılarını görüntüleyicide görmenizi saÄŸlar. - -İpucu: Dosya listeleme biçimi özelleÅŸtirilebilir. Detaylar için "man mc" - -İpucu: %D/%T iÅŸaretlenmiÅŸ dosyaları karşı klasöre çıkarır. - -İpucu: Düz kabuk mu gerekli? C-o kombinasyonuna basın, sonra MC'ye geri dönmek için tekrar C-o yapın. - -İpucu: CDPATH deÄŸiÅŸkenini ayarlamak cd komutlarında sizi fazladan tuÅŸa basmaktan kurtarabilir. - -İpucu: .* dosyalarını görmek isterseniz, yapılandırma diyaloÄŸundan ayarlayabilirsiniz. - -İpucu: *~ yedek dosyalarını görmek ister misiniz? Yapılandırma diyaloÄŸundan ayarlayabilirsiniz. - -İpucu: Tamamlama dialoglardaki tüm giriÅŸlerde çalışır. M-Tab yapın. - -İpucu: YavaÅŸ uçbirimlerde -s bayrağı iÅŸe yarayabilir. - -İpucu: Dosya Arama: PanelleÅŸtir düğmesini kullanarak bulunan dosyalar üzerinde çalışabilirsiniz. - -İpucu: Karmaşık aramalar mı yapmak istiyorsunuz? Dış PanelleÅŸtir komutunu kullanın. - -İpucu: Komut yazarken arada klasör deÄŸiÅŸtirmek için M-c (çabuk cd) kullanın. - -İpucu: Yerel olmayan bir dosya sistemindeyseniz, kabuk komutları çalışmayacaktır. - -İpucu: C-y ile metni kurtarabilirsiniz. - -İpucu: Bazı tuÅŸlarınız çalışmıyor mu? Seçenekler/TuÅŸları öğren menüsüne bakın. - -İpucu: Görüntülüyecide bir komutun çıktısına bakmak için M-! kullanabilirsiniz. - -İpucu: F13 (veya Shift-F3) görüntüleyicisi ham modda çalıştırır. - -İpucu: EDITOR kabuk deÄŸiÅŸkeni ile F4 tuÅŸuna basınca kullanılacak düzenleyiciyi belirtebilirsiniz. - -İpucu: VIEWER veya PAGER kabuk deÄŸiÅŸkenleri ile dış görüntüleyicileri belirtebilirsiniz. - -İpucu: Seçenekler/Onaylar menüsünden tüm onay isteklerini devre dışı bırakabilirsiniz. - -İpucu: Sık kullanılan dizinlere tek hareketle geçmek için C-\ kullanabilirsiniz. - -İpucu: mc ile anonim FTP baÄŸlantısı kurabilirsiniz. Örn: 'cd ftp://sunucu.edu.tr' - -İpucu: Midnight Commander içinde FTP desteÄŸi mevcuttur, menüden Dosya/FTP baÄŸlantısı seçin. - -İpucu: M-t kombinasyonu ile hızlıca listeleme modunu deÄŸiÅŸtirebilirsiniz. - -İpucu: FTP baÄŸlantısı kurarken kullancı adını belirtebilirsiniz. Örn: 'cd ftp://kullanıcı@sunucu.edu.tr' - -İpucu: RPM dosyalarının üzerinde Enter tuÅŸuna basarak içine girebilirsiniz. - -İpucu: Seçim dialoÄŸunda dizinleri iÅŸaretlemek için bölü ekleyin. - -İpucu: Fare ile kopyalamak/yapıştırmak için Shift tuÅŸunu basılı tutmanız gerekebilir. - -İpucu: Sıklıklar ziyaret edilen FTP sitelerini kısayollara eklemek için C-\ kullanın. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.uk b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.uk deleted file mode 100644 index d561e867db..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.uk +++ /dev/null @@ -1,87 +0,0 @@ -Підказка. ÐатиÑніть C-x t, щоб Ñкопіювати позначені файли в командний Ñ€Ñдок. - -Підказка. ÐатиÑніть C-x p, щоб Ñкопіювати поточний шлÑÑ… у командний Ñ€Ñдок. - -Підказка. ÐвтодоповненнÑ: натиÑніть M-Tab (Esc+Tab). Щоб отримати ÑпиÑок, натиÑніть двічі. - -Підказка. ÐатиÑніть M-p Ñ– M-n, щоб отримати доÑтуп до Ñ–Ñторії команд. - -Підказка. Потрібно вÑтавити літерал? ÐатиÑніть Control+q, а потім літерал. - -Підказка. Ðабридли ці підказки? Вимкніть Ñ—Ñ… у вікні Параметри|Зовнішній виглÑд. - -Підказка. Щоб вибрати каталоги, додайте ÑкіÑну риÑку в кінець відповідного шаблону. - -Підказка. Якщо термінал не має функціональних клавіш, викориÑтовуйте комбінацію клавіш Esc+цифра. - -Підказка. Ð”Ð¾Ð¼Ð°ÑˆÐ½Ñ Ñторінка Midnight Commander: https://www.midnight-commander.org - -Підказка. ÐадÑилайте Ð¿Ð¾Ð²Ñ–Ð´Ð¾Ð¼Ð»ÐµÐ½Ð½Ñ Ð¿Ñ€Ð¾ помилки на адреÑу mc-devel@lists.midnight-commander.org - -Підказка. Клавіша Tab змінює поточну панель. - -Підказка. ЗручніÑть VFS: щоб отримати вміÑÑ‚ файлу tar, натиÑніть клавішу Enter на файлі. - -Підказка. Можна прочитати непогану Ñторінку поÑібника. - -Підказка. Щоб увімкнути навігацію у Ñтилі Lynx, виберіть параметр у вікні Параметри|КонфігураціÑ. - -Підказка. МакроÑи % працюють навіть у командному Ñ€Ñдку. - -Підказка. Щоб виконати програму й побачити результат у вікні переглÑду, натиÑніть M-!. - -Підказка. Формат ÑпиÑку файлів можна змінити. Введіть «man mc», щоб дізнатиÑÑ Ð±Ñ–Ð»ÑŒÑˆÐµ. - -Підказка. %D/%T означає вибрані файли на протилежній панелі. - -Підказка. Щоб отримати звичайний shell, натиÑніть C-o, а потім знову C-o Ð´Ð»Ñ Ð¿Ð¾Ð²ÐµÑ€Ð½ÐµÐ½Ð½Ñ Ð² МС. - -Підказка. Щоб зберегти зуÑÐ¸Ð»Ð»Ñ Ð¿Ñ–Ð´ Ñ‡Ð°Ñ Ð½Ð°Ð±Ð¾Ñ€Ñƒ команди cd, уÑтановіть змінну Ð¾Ñ‚Ð¾Ñ‡ÐµÐ½Ð½Ñ CDPATH - -Підказка. Щоб побачити приховані файли .*, увімкніть параметр у вікні Параметри|КонфігураціÑ. - -Підказка. Щоб побачити резервні файли .*~, увімкніть параметр у вікні Параметри|КонфігураціÑ. - -Підказка. ÐÐ²Ñ‚Ð¾Ð´Ð¾Ð¿Ð¾Ð²Ð½ÐµÐ½Ð½Ñ Ð¿Ñ€Ð°Ñ†ÑŽÑ” у вÑÑ–Ñ… Ñ€Ñдках введеннÑ. ПроÑто натиÑніть M-Tab. - -Підказка. Ðа повільних терміналах ÑкориÑтайтеÑÑ Ð¾Ð¿Ñ†Ñ–Ñ”ÑŽ -s. - -Підказка. Щоб працювати із знайденими файлами піÑÐ»Ñ Ñ—Ñ… пошуку, виберіть команду «Панелізувати». - -Підказка. Щоб виконати Ñкладний пошук, ÑкориÑтайтеÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð¾ÑŽ Â«Ð—Ð¾Ð²Ð½Ñ–ÑˆÐ½Ñ Ð¿Ð°Ð½ÐµÐ»Ñ–Ð·Ð°Ñ†Ñ–Ñ». - -Підказка. Щоб змінити каталог під Ñ‡Ð°Ñ Ð½Ð°Ð±Ð¾Ñ€Ñƒ команди, натиÑніть M-c (швидка зміна). - -Підказка. Команди shell не виконуютьÑÑ, Ñкщо ви не в локальній файловій ÑиÑтемі. - -Підказка. Видалений текÑÑ‚ можна повернути за допомогою C-y. - -Підказка. Якщо деÑкі клавіші не працюють, ÑкориÑтайтеÑÑ Ð²Ñ–ÐºÐ½Ð¾Ð¼ Параметри|Ð’Ð¸Ð²Ñ‡ÐµÐ½Ð½Ñ ÐºÐ»Ð°Ð²Ñ–Ñˆ. - -Підказка. Щоб отримати результат Ð²Ð¸ÐºÐ¾Ð½Ð°Ð½Ð½Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð¸ у вікні переглÑду, натиÑніть M-! - -Підказка. F13 (або Shift-F3) відкриває переглÑдач у режимі необроблених даних. - -Підказка. Можна вибрати редактор Ð´Ð»Ñ F4 за допомогою змінної Ð¾Ñ‚Ð¾Ñ‡ÐµÐ½Ð½Ñ EDITOR. - -Підказка. Зовнішній переглÑдач можна вибрати за допомогою змінної Ð¾Ñ‚Ð¾Ñ‡ÐµÐ½Ð½Ñ PAGER. - -Підказка. Можна вимкнути запити на Ð¿Ñ–Ð´Ñ‚Ð²ÐµÑ€Ð´Ð¶ÐµÐ½Ð½Ñ Ð´Ñ–Ð¹ у вікні Параметри|ПідтвердженнÑ. - -Підказка. Щоб перейти до чаÑто викориÑтовуваних каталогів, натиÑніть C-\. - -Підказка. Щоб відкрити анонімний FTP, введіть команду «cd ftp://machine.edu». - -Підказка. Щоб ÑкориÑтатиÑÑ Ð²Ð±ÑƒÐ´Ð¾Ð²Ð°Ð½Ð¸Ð¼ у Midnight Commander клієнтом FTP, відкрийте вікно Панель|FTP-з’єднаннÑ. - -Підказка. Щоб швидко змінити формат ÑпиÑку панелі, натиÑніть M-t. - -Підказка. Щоб указати Ñ–Ð¼â€™Ñ ÐºÐ¾Ñ€Ð¸Ñтувача ftpfs, введіть «cd ftp://user@machine.edu». - -Підказка. Щоб переглÑнути файл RPM, натиÑніть на ньому Enter. - -Підказка. Щоб відмітити каталоги в діалоговому вікні вибору, додайте похилу риÑку. - -Підказка. Щоб вирізати або вÑтавити за допомогою мишки, утримуйте клавішу Shift. - -Підказка. Щоб зберегти чаÑто відвідувані FTP у ÑпиÑку каталогів, натиÑніть C-\. diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.zh_CN b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.zh_CN deleted file mode 100644 index 63ed69e097..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.zh_CN +++ /dev/null @@ -1,87 +0,0 @@ -æç¤ºï¼šä½¿ç”¨ C-x t æ¥å¤åˆ¶å·²é€‰æ‹©çš„æ–‡ä»¶å称到命令行。 - -æç¤ºï¼šä½¿ç”¨ C-x p æ¥å°†ç›®å‰çš„路径åç§°å¤åˆ¶åˆ°å‘½ä»¤è¡Œã€‚ - -æç¤ºï¼šè¡¥å…¨ï¼šä½¿ç”¨ M-Tab(或 Esc+Tab)。按两次看整个列表。 - -æç¤ºï¼šä½¿ç”¨ M-p å’Œ M-n æ¥è®¿é—®æŒ‡ä»¤ä½¿ç”¨çºªå½•。 - -æç¤ºï¼šè¦ä½¿ç”¨è½¬ä¹‰å­—符(escape cahracter)?å¯ä½¿ç”¨ Control-q å†åŠ ä¸Šè¦è¾“入的字符。 - -æç¤ºï¼šæ˜¯å¦å¯¹è¿™äº›æ¶ˆæ¯åŽŒå€¦äº†ï¼Ÿå¯åœ¨ã€Œé€‰é¡¹/é…ç½®ã€èœå•中关闭它。 - -æç¤ºï¼šé€‰æ‹©ç›®å½•ï¼šåœ¨è¦æœç´¢çš„æ ·æœ¬åŽåŠ å…¥ "/"。 - -æç¤ºï¼šå¦‚果你的终端机没有功能键,å¯ä»¥ä½¿ç”¨ ESC + 数字按键。 - -æç¤ºï¼šMidnight Commander 网页:https://www.midnight-commander.org - -æç¤ºï¼šè¯·å‘é€é”™è¯¯æŠ¥å‘Šåˆ° mc-devel@lists.midnight-commander.org - -æç¤ºï¼šTab 会切æ¢ä½¿ç”¨ä¸­çš„颿¿ã€‚ - -æç¤ºï¼šVFS 的好处:在 tar 文件上按 enter 坿Ÿ¥çœ‹å®ƒçš„内容。 - -æç¤ºï¼šæˆ‘们有一个ä¸é”™çš„æ‰‹å†Œé¡µã€‚ - -æç¤ºï¼šä½ æ˜¯å¦æƒ³ä½¿ç”¨ Lynx çš„æµè§ˆæ–¹å¼ï¼Ÿè¯·åˆ°è®¾ç½®å¯¹è¯çª—中设置。 - -æç¤ºï¼š% å®åœ¨å‘½ä»¤è¡Œä¹Ÿå¯ä½¿ç”¨ã€‚ - -æç¤ºï¼šM-! å¯è®©ä½ è¿è¡ŒæŒ‡ä»¤å¹¶åœ¨æŸ¥çœ‹å™¨çœ‹åˆ°å®ƒçš„输出。 - -æç¤ºï¼šä½ å¯è‡ªå®šä¹‰æ–‡ä»¶åˆ—表的格å¼ï¼›è¾“å…¥ "man mc" å¯èŽ·å¾—æ›´å¤šç»†èŠ‚ã€‚ - -æç¤ºï¼š%D/%T 会扩展æˆå¦ä¸€è¾¹çš®è‚¤ä¸­å·²æ ‡è®°çš„æ–‡ä»¶ã€‚ - -æç¤ºï¼šæƒ³ä½¿ç”¨å¹³å¸¸çš„ Shellï¼Ÿå¯æŒ‰ C-oï¼Œå†æŒ‰ä¸€æ¬¡å°±ä¼šè¿”回 MC。 - -æç¤ºï¼šè®¾ç½® CDPATH 环境å˜é‡å¯ä»¥ä»¤ä½¿ç”¨ cd 指令时çœå´ä¸€ç‚¹æŒ‰é”®ã€‚ - -æç¤ºï¼šè‹¥æƒ³çœ‹ä½ çš„ .* 文件,请到设置对è¯çª—中设置。 - -æç¤ºï¼šæƒ³æŸ¥çœ‹ä½ çš„ *~ 备份档?请到设置对è¯çª—中设置。 - -æç¤ºï¼šè¡¥å…¨å¯åœ¨ä»»ä½•对è¯çª—中的任何输入字段中使用。åªè¦æŒ‰ä¸‹ M-Tab å°±å¯ä»¥äº†ã€‚ - -æç¤ºï¼šåœ¨ç¼“慢的终端机里使用 -s 选项或会有帮助。 - -æç¤ºï¼šæœç´¢æ–‡ä»¶ï¼šä½ å¯ä»¥ä½¿ç”¨ã€Œé¢æ¿åŒ–ã€é€‰é¡¹æ¥å¤„ç†æœç´¢åˆ°çš„æ–‡ä»¶ã€‚ - -æç¤ºï¼šæƒ³å¤„ç†è¾ƒå¤æ‚的文件æœç´¢ï¼Ÿå¯ä½¿ç”¨ã€Œå¤–éƒ¨çš®è‚¤åŒ–ã€æŒ‡ä»¤ã€‚ - -æç¤ºï¼šè¦åœ¨è¾“入命令时改å˜ç›®å½•,å¯ä½¿ç”¨ M-c(快速切æ¢ç›®å½•)。 - -æç¤ºï¼šåœ¨éžæœ¬æœºçš„æ–‡ä»¶ç³»ç»Ÿé‡Œæ— æ³•使用 Shell 指令。 - -æç¤ºï¼šå¯ç”¨ C-y å°†å·²åˆ é™¤çš„æ–‡æœ¬é‡æ–°æ˜¾ç¤ºå‡ºæ¥ã€‚ - -æç¤ºï¼šæ˜¯å¦æœ‰äº›æŒ‰é”®æ— æ³•使用?å¯çœ‹çœ‹ã€Œé€‰é¡¹/认识按键ã€ä¸­çš„æŒ‰é”®ã€‚ - -æç¤ºï¼šè¦åœ¨æŸ¥çœ‹å™¨é‡Œçœ‹åˆ°æŒ‡ä»¤çš„输出,使用 M-! - -æç¤ºï¼šF13(或 Shift-F3)会使用原始模å¼å¼€å¯æŸ¥çœ‹å™¨ã€‚ - -æç¤ºï¼šä½ å¯ä»¥ä½¿ç”¨çŽ¯å¢ƒå˜é‡ EDITOR æ¥æŒ‡å®šæŒ‰ä¸‹ F4 åŽå¼€å¯çš„编辑器。 - -æç¤ºï¼šä½ å¯ä»¥ä½¿ç”¨çŽ¯å¢ƒå˜é‡ PAGER æ¥æŒ‡å®šå¤–部的查看器。 - -æç¤ºï¼šä½ å¯ä»¥åœ¨ã€Œé€‰é¡¹/确认ã€é‡Œå…³é—­æ‰€æœ‰ç¡®è®¤çš„è¦æ±‚。 - -æç¤ºï¼šä½¿ç”¨ C-\ å¯ä»¥å³æ—¶è·³åˆ°ç»å¸¸ä½¿ç”¨çš„目录。 - -æç¤ºï¼šä½ å¯ä»¥åœ¨ mc ä½¿ç”¨åŒ¿åæ¨¡å¼çš„ FTP,方法是输入 'cd ftp://machine.edu' - -æç¤ºï¼šFTP 是 Midnight Commander 的内置功能,请检查「文件/FTP 连接ã€èœå•。 - -æç¤ºï¼šM-t å¯å¿«é€Ÿåœ°åˆ‡æ¢åˆ—表模å¼ã€‚ - -æç¤ºï¼šä½ å¯ä»¥åœ¨ä½¿ç”¨ ftp 时指定用户å,例如:'cd ftp://user@machine.edu' - -æç¤ºï¼šä½ å¯ä»¥åœ¨ rpm 归档上按 enter æ¥æµè§ˆ rpm 里的文件。 - -æç¤ºï¼šåœ¨é€‰æ‹©å¯¹è¯æ¡†ä¸­é€‰å–目录时,è¦åœ¨åŽé¢åŠ ä¸€ä¸ª "/"。 - -æç¤ºï¼šè¦ä½¿ç”¨é¼ æ ‡å‰ªè´´åŠŸèƒ½éœ€è¦ä½ æŒ‰ä¸‹ shift é”® - -æç¤ºï¼šè¦å°†å¸¸åˆ°çš„网站输入常用列表里:键入 C-\。 diff --git a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.zh_TW b/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.zh_TW deleted file mode 100644 index 305ab28d99..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/l10n/mc.hint.zh_TW +++ /dev/null @@ -1,87 +0,0 @@ -æç¤º: 使用 C-x ä¾†è¤‡è£½å·²é¸æ“‡çš„æª”案å稱到命令列。 - -æç¤º: 使用 C-p 來複製目å‰çš„路徑到命令列。 - -æç¤º: 補齊: 使用 M-Tab ( 或 Esc+Tab)。 按兩次來查看列表。 - -æç¤º: 使用 M-p å’Œ M-n ä¾†å­˜å–æŒ‡ä»¤ç´€éŒ„。 - -æç¤º: è¦ä½¿ç”¨è·³è„«å­—元嗎? 使用 Control-q å†åŠ ä¸Šè¦è¼¸å…¥çš„å­—å³å¯ã€‚ - -æç¤º: 是å¦å°é€™äº›è¨Šæ¯æ„Ÿåˆ°åŽ­å€¦äº†? å¯åœ¨é¸å–®ä¸­çš„ã€é¸é …/樣å¼ã€‘來關閉它。 - -æç¤º: é¸å–資料夾: 在比å°çµæžœçš„後方加上 "/" - -æç¤º: 若您的終端機沒有功能éµï¼Œå¯ä½¿ç”¨ã€ESC+數字éµã€‘來代替。 - -æç¤ºï¼šMidnight Commander 网页:https://www.midnight-commander.org - -æç¤ºï¼šè¯·å‘é€é”™è¯¯æŠ¥å‘Šåˆ° mc-devel@lists.midnight-commander.org - -æç¤º: Tab å¯åˆ‡æ›ä½¿ç”¨ä¸­çš„颿¿ã€‚ - -æç¤º: VFS 的好處: 在 tar 檔案上按 Enter 按éµå¯æŸ¥çœ‹å®ƒçš„內容。 - -æç¤º: 我們有一個很棒的手冊é ã€‚ - -æç¤ºï¼šä½ æ˜¯å¦æƒ³ä½¿ç”¨ Lynx çš„æµè§ˆæ–¹å¼ï¼Ÿè¯·åˆ°è®¾ç½®å¯¹è¯çª—中设置。 - -æç¤º: % 巨集也å¯åœ¨å‘½ä»¤åˆ—中使用。 - -æç¤º: M-! å¯è®“您執行程å¼ä¸¦åœ¨æª¢è¦–å™¨ä¸­æŸ¥çœ‹è¼¸å‡ºçµæžœã€‚ - -æç¤º: 您å¯ä»¥è‡ªè¨‚檔案列表的格å¼ï¼›è¼¸å…¥ "mac mc" 指令查看更多資訊。 - -æç¤º: %D/%T 會改變æˆå¦ä¸€å´è³‡æ–™å¤¾ä¸­è¢«æ¨™è¨˜çš„æª”案。 - -æç¤º: 您想è¦ä½¿ç”¨ä¸€èˆ¬çš„ shell å—Ž? 按一下 C-o å³å¯ï¼Œå†æŒ‰ä¸€ä¸‹ C-o åˆå¯å›žåˆ° MC。 - -æç¤º: 設定 CDPATH 環境變數å¯è®“您儲存一些 cd 指令。 - -æç¤º: è‹¥æ‚¨æƒ³è¦æŸ¥çœ‹ .* 的檔案,請到設定中進行更改。 - -æç¤º: 想查看您的 *~ 備份檔? 請到設定中進行更改。 - -æç¤º: 補齊å¯ä»¥åœ¨ä»»ä½•å°è©±æ¡†ä¸­ï¼Œè¼¸å…¥ä»»ä½•文字時使用。åªè¦æŒ‰ä¸‹ M-Tab å³å¯ã€‚ - -æç¤º: åœ¨åæ‡‰è¼ƒæ…¢çš„終端機裡使用 -s é¸é …或許會有幫助。 - -æç¤º: 尋找檔案: 您å¯ä»¥ä½¿ç”¨é¢æ¿ä¸Šçš„æŒ‰éˆ•來進行檔案的尋找。 - -æç¤º: 想è¦åšè¼ƒè¤‡é›œçš„æœå°‹? å¯ä½¿ç”¨å¤–éƒ¨é¢æ¿çš„æŒ‡ä»¤ä¾†é€²è¡Œã€‚ - -æç¤º: è¦åœ¨è¼¸å…¥æŒ‡ä»¤æ™‚中途改變目錄,å¯ä½¿ç”¨ M-c 指令 (快速的 cd) - -æç¤ºï¼šåœ¨éžæœ¬æœºçš„æ–‡ä»¶ç³»ç»Ÿé‡Œæ— æ³•使用 Shell 指令。 - -æç¤º: å¯ä½¿ç”¨ C-y å°‡å·²åˆªé™¤çš„æ–‡å­—é‡æ–°é¡¯ç¤ºå‡ºä¾†ã€‚ - -æç¤º: æ˜¯å¦æœ‰åŠŸèƒ½éµç„¡æ³•使用? å¯çœ‹çœ‹ ã€é¸é …/學習快æ·éµã€‘ä¸­çš„åŠŸèƒ½éµæ˜¯å¦è¨­å®šæ­£ç¢ºã€‚ - -æç¤º: è¦åœ¨æª¢è¦–å™¨ä¸­æŸ¥çœ‹æŒ‡ä»¤è¼¸å‡ºçš„çµæžœï¼Œè«‹ä½¿ç”¨ M-! - -æç¤º: F13 (或 Shift-F3) 會使用原生模å¼é–‹å•Ÿæª¢è¦–器。 - -æç¤º: 您å¯ä»¥ä½¿ç”¨ç’°å¢ƒè®Šæ•¸ EDITOR 來指定按下 F4 後的檔案編輯器。 - -æç¤º: 您å¯ä»¥ä½¿ç”¨ç’°å¢ƒè®Šæ•¸ VIEWER 或 PAGER 來指定外部的檔案檢視器。 - -æç¤º: 您å¯ä»¥åœ¨ã€é¸é …/確èªã€‘中關閉所有的確èªè«‹æ±‚。 - -æç¤º: å¯ä½¿ç”¨ C-\ 跳轉到常用的目錄。 - -æç¤º: 您å¯ä»¥åœ¨ mc ä¸­ä½¿ç”¨åŒ¿åæ¨¡å¼çš„ FTP,方法是輸入 'cd ftp://machine.edu' - -æç¤º: FTP 是 Midnight Commander 的內建功能,å¯åœ¨ã€æª”案 / 連çµåˆ° FTP ...】中察看。 - -æç¤º: M-t å¯å¿«é€Ÿåˆ‡æ›åˆ—表模å¼ã€‚ - -æç¤º: 您å¯ä»¥åœ¨ä½¿ç”¨ FTP 時指定使用者,例如: 'cd ftp://user@machine.edu' - -æç¤º: 您å¯ä»¥åœ¨ rpm æ ¼å¼çš„æª”案上按 Enter 來ç€è¦½ RPM 裡的檔案。 - -æç¤º: 在é¸å–å°è©±æ¡†ä¸­æ¨™è¨˜ç›®éŒ„,需在後方加入一個 "/" - -æç¤º: è¦ä½¿ç”¨æ»‘é¼ ä¾†å‰ªä¸‹å’Œè²¼ä¸Šéœ€åŒæ™‚æŒ‰ä½ Shift éµã€‚ - -æç¤º: è‹¥è¦å°‡å¸¸ç”¨çš„ ftp 站點加入至常用列表中請按 C-\ diff --git a/recipes/wip/files/mc/source/doc/hints/mc.hint b/recipes/wip/files/mc/source/doc/hints/mc.hint deleted file mode 100644 index 7a655801ef..0000000000 --- a/recipes/wip/files/mc/source/doc/hints/mc.hint +++ /dev/null @@ -1,87 +0,0 @@ -Hint: Use C-x t to copy tagged file names to the command line. - -Hint: Use C-x p to copy the current pathname to the command line. - -Hint: Completion: use M-Tab (or Esc+Tab). Type it twice to get a list. - -Hint: Use M-p and M-n to access the command history. - -Hint: Need to quote a character? Use Control-q and the character. - -Hint: Tired of these messages? Turn them off from the Options/Layout menu. - -Hint: Selecting directories: add a slash to the end of the matching pattern. - -Hint: If your terminal lacks functions keys, use the ESC+number sequence. - -Hint: The homepage of GNU Midnight Commander: https://www.midnight-commander.org - -Hint: Please send any bug reports to mc-devel@lists.midnight-commander.org - -Hint: Tab changes your current panel. - -Hint: VFS coolness: tap enter on a tar file to examine its contents. - -Hint: We also have a nice manual page. - -Hint: Do you want Lynx-style navigation? Set it in the Configuration dialog. - -Hint: % macros work even on the command line. - -Hint: M-! will allow you to execute programs and see the output in the viewer. - -Hint: The file listing format can be customized; do "man mc" for details. - -Hint: %D/%T expands to the tagged files in the opposite directory. - -Hint: Want your plain shell? Press C-o, and get back to MC with C-o again. - -Hint: Setting the CDPATH variable can save you keystrokes in cd commands. - -Hint: If you want to see your .* files, say so in the Configuration dialog. - -Hint: Want to see your *~ backup files? Set it in the Configuration dialog. - -Hint: Completion works on all input lines in all dialogs. Just press M-Tab. - -Hint: On slow terminals the -s flag may help. - -Hint: Find File: you can work on the files found using the Panelize button. - -Hint: Want to do complex searches? Use the External Panelize command. - -Hint: To change directory halfway through typing a command, use M-c (quick cd). - -Hint: Shell commands will not work when you are on a non-local file system. - -Hint: Bring text back from the dead with C-y. - -Hint: Are some of your keys not working? Look at Options/Learn keys. - -Hint: To look at the output of a command in the viewer, use M-! - -Hint: F13 (or Shift-F3) invokes the viewer in raw mode. - -Hint: You may specify the editor for F4 with the shell variable EDITOR. - -Hint: You may specify the external viewer with the shell vars VIEWER or PAGER. - -Hint: You can disable all requests for confirmation in Options/Confirmation. - -Hint: Leap to frequently used directories in a single bound with C-\. - -Hint: You can do anonymous FTP with mc by typing 'cd ftp://machine.edu' - -Hint: FTP is built in the Midnight Commander, check the File/FTP link menu. - -Hint: M-t changes quickly the listing mode. - -Hint: You can specify the username when doing ftps: 'cd ftp://user@machine.edu' - -Hint: You can browse RPM files by tapping enter on top of an rpm file. - -Hint: To mark directories on the select dialog box, append a slash. - -Hint: To use the mouse cut and paste may require holding the shift key - -Hint: Key frequently visited ftp sites in the hotlist: type C-\. diff --git a/recipes/wip/files/mc/source/doc/hlp/Makefile.am b/recipes/wip/files/mc/source/doc/hlp/Makefile.am deleted file mode 100644 index 57c0985f83..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -DIST_SUBDIRS = es hu it pl ru sr -if USE_NLS -SUBDIRS = $(DOC_LINGUAS) -endif - -hlpdir = $(pkgdatadir)/help -hlp_DATA = mc.hlp - -EXTRA_DIST = xnc.hlp -CLEANFILES = $(hlp_DATA) - -mc.hlp: $(top_builddir)/doc/man/mc.1 $(srcdir)/xnc.hlp $(top_builddir)/src/man2hlp/man2hlp - - $(top_builddir)/src/man2hlp/man2hlp $(top_builddir)/doc/man/mc.1 $(srcdir)/xnc.hlp mc.hlp diff --git a/recipes/wip/files/mc/source/doc/hlp/Makefile.in b/recipes/wip/files/mc/source/doc/hlp/Makefile.in deleted file mode 100644 index 9608d4e055..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/Makefile.in +++ /dev/null @@ -1,825 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/hlp -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(hlpdir)" -DATA = $(hlp_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 \ - distdir distdir-am -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)` -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -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" -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -DIST_SUBDIRS = es hu it pl ru sr -@USE_NLS_TRUE@SUBDIRS = $(DOC_LINGUAS) -hlpdir = $(pkgdatadir)/help -hlp_DATA = mc.hlp -EXTRA_DIST = xnc.hlp -CLEANFILES = $(hlp_DATA) -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/hlp/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/hlp/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-hlpDATA: $(hlp_DATA) - @$(NORMAL_INSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(hlpdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(hlpdir)" || 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)$(hlpdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(hlpdir)" || exit $$?; \ - done - -uninstall-hlpDATA: - @$(NORMAL_UNINSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(hlpdir)'; $(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" -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 -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 - @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 -check-am: all-am -check: check-recursive -all-am: Makefile $(DATA) -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(hlpdir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -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 clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: install-hlpDATA - -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-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-hlpDATA - -.MAKE: $(am__recursive_targets) install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ - check-am clean clean-generic clean-libtool cscopelist-am ctags \ - ctags-am distclean distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-hlpDATA \ - 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 installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ - uninstall-am uninstall-hlpDATA - -.PRECIOUS: Makefile - - -mc.hlp: $(top_builddir)/doc/man/mc.1 $(srcdir)/xnc.hlp $(top_builddir)/src/man2hlp/man2hlp - - $(top_builddir)/src/man2hlp/man2hlp $(top_builddir)/doc/man/mc.1 $(srcdir)/xnc.hlp mc.hlp - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/hlp/es/Makefile.am b/recipes/wip/files/mc/source/doc/hlp/es/Makefile.am deleted file mode 100644 index ede2aa8dc4..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/es/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -HLP_LANG=es - -include ../hlp-lang-include.am diff --git a/recipes/wip/files/mc/source/doc/hlp/es/Makefile.in b/recipes/wip/files/mc/source/doc/hlp/es/Makefile.in deleted file mode 100644 index 28d0480f00..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/es/Makefile.in +++ /dev/null @@ -1,649 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/hlp/es -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(hlpdir)" -DATA = $(hlp_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../hlp-lang-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -HLP_LANG = es -MAN2HLP = $(top_builddir)/src/man2hlp/man2hlp -hlpdir = $(pkgdatadir)/help -hlp_DATA = mc.hlp.$(HLP_LANG) -EXTRA_DIST = xnc.hlp -CLEANFILES = $(hlp_DATA) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../hlp-lang-include.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) --gnu doc/hlp/es/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/hlp/es/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../hlp-lang-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-hlpDATA: $(hlp_DATA) - @$(NORMAL_INSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(hlpdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(hlpdir)" || 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)$(hlpdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(hlpdir)" || exit $$?; \ - done - -uninstall-hlpDATA: - @$(NORMAL_UNINSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(hlpdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(DATA) -installdirs: - for dir in "$(DESTDIR)$(hlpdir)"; 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: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-hlpDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-hlpDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-hlpDATA \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-hlpDATA - -.PRECIOUS: Makefile - - -mc.hlp.$(HLP_LANG): $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp $(MAN2HLP) - - $(MAN2HLP) $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp mc.hlp.$(HLP_LANG) - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/hlp/es/xnc.hlp b/recipes/wip/files/mc/source/doc/hlp/es/xnc.hlp deleted file mode 100644 index 569c9aed18..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/es/xnc.hlp +++ /dev/null @@ -1,632 +0,0 @@ - -[main] - lqwqk k k  - x x x . x . x  - x x x k lqu wqk k lqw tqk n  - x x x x x x x x x x x x x x  - v v v mqv v v v mqu v v mj - qqqqqqCommander qj  - -Esta es la pantalla principal de ayuda de GNU Midnight Commander . - -Puede pulsar la tecla «Intro»How to use help para aprender a navegar por el sistema de ayuda, o acceder directamente a los contenidosContents. - -GNU Midnight Commander es obra de sus autoresAUTHORS. - -GNU Midnight Commander NO INCLUYE NINGÚN TIPO DE GARANTÃAWarranty. Es un producto de software libre, y su redistribución es bienvenida en los términos y condiciones establecidas por la Licencia Pública General de GNU (GPL)Licencia GNU, de la que existe una traducción no oficial al españolLicencia GNU (Español). - -[Licencia GNU] - - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - -Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - - Preamble - -The GNU General Public License is a free, copyleft license for software and other kinds of works. - -The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - -For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. - -Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - -For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - -Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - -Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - -The precise terms and conditions for copying, distribution and modification follow. - - TERMS AND CONDITIONS - -0. Definitions. ---------------- - -“This License†refers to version 3 of the GNU General Public License. - -“Copyright†also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - -“The Program†refers to any copyrightable work licensed under this License. Each licensee is addressed as “youâ€. “Licensees†and “recipients†may be individuals or organizations. - -To “modify†a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version†of the earlier work or a work “based on†the earlier work. - -A “covered work†means either the unmodified Program or a work based on the Program. - -To “propagate†a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - -To “convey†a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - -An interactive user interface displays “Appropriate Legal Notices†to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - -1. Source Code. ---------------- - -The “source code†for a work means the preferred form of the work for making modifications to it. “Object code†means any non-source form of a work. - -A “Standard Interface†means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - -The “System Libraries†of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Componentâ€, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - -The “Corresponding Source†for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - -The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - -The Corresponding Source for a work in source code form is that same work. - -2. Basic Permissions. ---------------------- - -All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. - -You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - -Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. --------------------------------------------------------------- - -No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. - -When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. ------------------------------ - -You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. - -You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. --------------------------------------- - -You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified it, and giving a relevant date. - - b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all noticesâ€. - - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. - - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. - -A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate†if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. - -6. Conveying Non-Source Forms. ------------------------------- - -You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: - - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. - - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. - - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. - - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. - - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. - -A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - -A “User Product†is either (1) a “consumer productâ€, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used†refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - -“Installation Information†for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - -If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - -The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - -Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. --------------------- - -“Additional permissions†are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. - -When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - -Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or - - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or - - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or - - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or - - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or - - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. - -All other non-permissive additional terms are considered “further restrictions†within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - -If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - -Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. ---------------- - -You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). - -However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - -Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - -Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. ---------------------------------------------- - -You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. - -10. Automatic Licensing of Downstream Recipients. -------------------------------------------------- - -Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. - -An “entity transaction†is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - -You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. ------------- - -A “contributor†is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor versionâ€. - -A contributor's “essential patent claims†are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control†includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - -Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - -In the following three paragraphs, a “patent license†is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant†such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - -If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying†means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - -If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - -A patent license is “discriminatory†if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - -Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. ------------------------------------- - -If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - -13. Use with the GNU Affero General Public License. ---------------------------------------------------- - -Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. - -14. Revised Versions of this License. -------------------------------------- - -The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License “or any later version†applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - -If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - -Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -[Warranty] -15. Disclaimer of Warranty. ---------------------------- - -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. - -16. Limitation of Liability. ----------------------------- - -IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. - -17. Interpretation of Sections 15 and 16. ------------------------------------------ - -If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - -If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - -To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright†line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - -Also add information on how to contact you by electronic and paper mail. - -If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) - This program 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, your program's commands might be different; for a GUI interface, you would use an “about boxâ€. - -You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer†for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - -The GNU 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 Lesser General Public License instead of this License. But first, please read . - -[Licencia GNU (Español)] - -LICENCIA PÚBLICA GENERAL DE GNU (GPL) - -Esta es la conocida como «GNU General Public License (GPL)», versión 3 (de junio de 2007), que cubre la mayor parte del software de la «Free Software Foundation», y muchos más programas. - ---- - -IMPORTANT NOTICE: -This is an unofficial translation of the GNU General Public License into spanish. It was not published by the Free Software Foundation, and does not legally state the distribution terms for software that uses the GNU GPL —only the original English text of the GNU GPL does that. However, we hope that this translation will help spanish speakers understand the GNU GPL better. - -NOTA IMPORTANTE: -Esta es una traducción no oficial de la Licencia Pública General GNU (GNU GPL) al español. No fue publicada por la Fundación para el Software Libre, y no establece legalmente los términos de distribución para software que utiliza la GNU GPL —sólamente el texto original en inglés de la GNU GPL hace eso. De todas formas, esperamos que esta traducción ayude a los hispanohablantes a comprender mejor la GNU GPL. - ---- - - LICENCIA PÚBLICA GENERAL GNU - Versión 3, 29 de junio de 2007 - -Copyright © 2007 Free Software Foundation, Inc. - - -Se permite la copia y distribución de copias literales de esta licencia, pero no está permitido modificarla. - - Preámbulo - -La Licencia Pública General GNU (GNU GPL) es una licencia libre, sin derechos para software y otro tipo de trabajos. - -Las licencias para la mayoría del software y otros trabajos prácticos están destinadas a suprimir la libertad de compartir y modificar esos trabajos. Por el contrario, la Licencia Pública General GNU persigue garantizar su libertad para compartir y modificar todas las versiones de un programa--y asegurar que permanecerá como software libre para todos sus usuarios. Nosotros, La Fundación de Software Libre, usamos la Licencia Pública General GNU para la mayoría de nuestro software; y también se aplica a cualquier trabajo realizado de la misma forma por sus autores. Usted también puede aplicarla a sus programas. - -Cuando hablamos de software libre, nos referimos a libertad, no a precio. Nuestras Licencias Públicas Generales están destinadas a garantizar la libertad de distribuir copias de software libre (y cobrar por ello si quiere), a recibir el código fuente o poder conseguirlo si así lo desea, a modificar el software o usar parte del mismo en nuevos programas libres, y a saber que puede hacer estas cosas. - -Para proteger sus derechos, necesitamos evitar que otros le nieguen esos derechos o le pidan renunciar a ellos. Por lo tanto, usted tiene ciertas responsabilidades cuando distribuye copias del software, o si lo modifica: responsabilidades que persiguen respetar la libertad de otros. - -Por ejemplo, si distribuye copias de tales programas, gratuitamente o no, debe transmitir a los destinatarios los mismos derechos que usted recibió. Debe asegurarse que ellos también reciban o puedan conseguir el código fuente. Y debe mostrarles estos términos y condiciones para que conozcan sus derechos. - -Los desarrolladores que usen la GPL GNU protegen sus derechos de dos formas: (1) imponen derechos al software, y (2) le ofrecen esta Licencia para que legalmente lo copie, distribuya y/o modifique. - -Para proteger a desarrolladores y autores, la GPL expone claramente que no existe garantía alguna para este software libre. Para beneficio de ambos, usuarios y autores, la GPL establece que las versiones modificadas deberán estar identificadas como tales, para que cualquier problema no sea atribuido por error a los autores de versiones anteriores. - -Algunos dispositivos están diseñados para negar al usuario la instalación o la ejecución de versiones modificadas del software que usan internamente, aunque el fabricante sí pueda hacerlo. Esto es completamente incompatible con el objetivo de proteger la libertad de los usuarios para modificar el software. Este tipo de abuso sistemático ocurre con productos de uso personal, que es precisamente donde es menos aceptable. Por tanto, hemos diseñado esta versión de la GPL para prohibir estas prácticas en esos productos. Si apareciesen problemas similares en otros ámbitos, estaremos preparados para extender estas prestaciones a las próximas versiones de la GPL, tanto como sea necesario para proteger la libertad de los usuarios. - -Por último, todo programa está constantemente amenazado por las patentes de software. Los estados no deberían permitir que las patentes restrinjan el desarrollo y el uso de software en ordenadores de uso general; pero en aquellos que lo hagan, esperamos evitar el especial peligro que suponen las patentes, que aplicadas a un programa libre puedan hacerlo propietario en la práctica. Para prevenir eso, la GPL establece que las patentes no pueden usarse para convertir un programa en no-libre. - -A continuación se exponen los términos y condiciones para la copia, distribución y modificación. - - TÉRMINOS Y CONDICIONES - -0. Definiciones. ----------------- - -En adelante «Esta Licencia» se refiere a la versión 3 de la Licencia Pública General GNU. - -«Copyright» también significa «leyes similares al copyright» que son aplicables a otro tipo de trabajos, tales como las máscaras de semiconductores. - -«El Programa» se refiere a cualquier trabajo con copyright al que se haya aplicado esta Licencia. Cada beneficiario es asimilable a «usted». «Beneficiarios» y «destinatarios» pueden ser personas físicas u organizaciones. - -«Modificar» un trabajo significa copiar o adaptar todo o parte de un trabajo, exceptuando la copia exacta, de manera que se requiera permiso de copyright. El trabajo resultante se denomina «versión modificada» de un trabajo anterior o trabajo «basado en» el trabajo anterior. - -Un «trabajo amparado» puede ser tanto el Programa no modificado como un trabajo basado en el Programa. - -«Difundir» un trabajo significa hacer cualquier cosa con él, sin permiso, que le haga directa o indirectamente responsable de infringir leyes cubiertas por copyright, excepto la ejecución en un ordenador o la modificación de una copia privada. La difusión incluye la copia, distribución (con o sin modificaciones), distribución pública, y en algunos países también otras actividades. - -«Distribuir» un trabajo implica cualquier tipo de difusión que permite a la otra parte hacer o recibir copias. La mera interacción con un usuario mediante una red de ordenadores, sin transferir copia alguna, no se considera «distribución». - -Una interfaz de usuario interactiva muestra «Avisos Legales Apropiados» siempre y cuando incluya características visuales apropiadas y destacadas que (1) muestren un aviso de copyright apropiado, y (2) indiquen al usuario que no existe garantía alguna para el trabajo (exceptuando las garantías que se hayan podido establecer), que los beneficiarios deben distribuir el trabajo según se establece en la presente Licencia, y cómo se puede ver una copia de esta Licencia. Si la interfaz muestra una lista de opciones o comandos, tales como menús, un elemento destacado en dicha lista cumple estos criterios. - -1. Código Fuente. ------------------ - -El «código fuente» de un trabajo es el formato preferido para realizar modificaciones sobre él. «Código objeto» se refiere a cualquier formato del trabajo que no sea código fuente. - -Una «Interfaz Estándar» se refiere a una interfaz que sea o bien un estándar oficial definido por una institución de estándares reconocida, o bien, en el caso de interfaces específicos para una determinado lenguaje de programación, una cuyo uso esté generalizada entre los desarrolladores que trabajan con ese lenguaje. - -Las «Bibliotecas de Sistema» de un trabajo ejecutable incluyen a cualquier elemento, que no sea el trabajo completo, que (a) esté incluida/o de la misma forma que un componente principal, pero que no forme parte de ese componente principal, y (b) sólo sirva para habilitar la utilización del trabajo a través de ese componente principal, o para implementar un Interfaz Estándar para el cual está disponible una implementación pública en código fuente. Un «Componente Principal», en este contexto, se refiere a un componente principal y esencial (núcleo, sistema de ventanas y similares) del sistema operativo particular (en su caso) sobre el cual funcione el ejecutable, o un compilador utilizado para generar el trabajo, o un intérprete del código objeto utilizado para ejecutarlo. - -La «Fuente Correspondiente» de un trabajo en código objeto se refiere a todo código fuente necesario para generar, instalar, y (en el caso de trabajos ejecutables) ejecutar el código objeto y modificar el trabajo, incluyendo guiones que controlen esas actividades. Sin embargo, no se incluyen las Bibliotecas de Sistema del trabajo, o herramientas de propósito general o programas gratuitos habitualmente disponibles y usados sin ninguna modificación para realizar estas actividades pero que no forman parte del trabajo. Por ejemplo, la Fuente Correspondiente incluye los archivos de definición de interfaz asociados con archivos fuente del trabajo, y el código fuente de las bibliotecas compartidas o subprogramas enlazados dinámicamente que el programa requiere por diseño, como la comunicación de datos intrínseca o el control de flujo entre esos subprogramas y otras partes del trabajo. - -La Fuente Correspondiente no incluye necesariamente aquello que los usuarios pueden regenerar automáticamente a partir de otras partes de la Fuente Correspondiente. - -La Fuente Correspondiente de un trabajo en código fuente es ese mismo trabajo. - -2. Permisos Básicos. --------------------- - -Todos los derechos garantizados por esta Licencia se otorgan como copyright del Programa, y se proporcionan de manera irrevocable siempre y cuando se cumplan las condiciones establecidas. Esta Licencia afirma explícitamente su permiso ilimitado para ejecutar el Programa sin modificaciones. El resultado de la ejecución de un programa amparado está cubierto por esta Licencia sólo en el caso de que la salida, por su contenido, constituya un trabajo amparado. Esta Licencia reconoce sus derechos de uso razonable u otro equivalente, tal y como determina la ley de copyright. - -Usted podrá realizar, ejecutar y difundir trabajos amparados que no distribuya, sin condición alguna, siempre y cuando no tenga otra licencia más restrictiva. Podrá distribuir trabajos amparados a terceros con el mero objetivo de que ellos hagan modificaciones exclusivamente para usted, o para que le proporcionen ayuda para ejecutar esos trabajos, siempre que cumpla los términos de esta Licencia distribuyendo todo el material de cuyo copyright no posee el control. Aquellos que realicen o ejecuten los trabajos amparados para usted deben hacerlo exclusivamente en su nombre, bajo su dirección y control, con términos que les prohíban realizar copias de su material con copyright al margen de la relación con usted. - -La distribución bajo otras circunstancias se permite únicamente bajo las condiciones establecidas más abajo. No está permitido sublicenciar; la claúsula 10 lo hace innecesario. - -3. Protección de Derechos Legales de los Usuarios frente a Leyes Anti-Burla. ----------------------------------------------------------------------------- - -Ningún trabajo amparado debe considerarse parte de una medida tecnológica efectiva, a tenor de lo establecido en cualquier ley aplicable que cumpla las obligaciones expresas en el artículo 11 del tratado de copyright WIPO adoptado el 20 de diciembre de 1996, o leyes similares que prohíben o restringen la burla de tales medidas. - -Cuando distribuya un trabajo amparado, renuncia a cualquier poder legal para prohibir la burla de medidas tecnológicas mientras tales burlas se realicen en ejercicio de derechos amparados por esta Licencia respecto al trabajo amparado; además, usted negará cualquier intención de limitar el uso o modificación del trabajo con el objetivo de imponer, al trabajo de los usuarios, sus derechos legales o de terceros para prohibir la burla de medidas tecnológicas. - -4. Distribución de copias literales. ------------------------------------- - -Usted podrá distribuir copias literales del código fuente del Programa tal y como lo ha recibido , por cualquier medio, siempre que publique de forma clara y llamativa en cada copia el correspondiente aviso de copyright ; mantenga intactos todos los avisos que establezcan que esta Licencia y cualquier término no-permisivo añadido y acorde con la cláusula 7 son aplicables al código; mantenga intactos todos los avisos de ausencia de garantía; y proporcione a todos los destinatarios una copia de esta Licencia junto con el Programa. - -Usted podrá cobrar cualquier importe o no cobrar nada por cada copia que distribuya, y podrá ofrecer soporte o protección de garantía mediante un pago. - -5. Distribución de Versiones Modificadas de Código. ---------------------------------------------------- - -Usted podrá distribuir un trabajo basado en el Programa, o las modificaciones que lo producen a partir del Programa, como código fuente en virtud de los términos establecidos en la cláusula 4, siempre que cumpla todas las condiciones siguientes: - - a) El trabajo debe incluir avisos destacados indicando que usted lo ha modificado y dando una fecha pertinente. - - b) El trabajo debe incluir avisos destacados indicando que está realizado a tenor de lo dispuesto en la presente Licencia y en cualquier otra condición añadida en virtud de la cláusula 7. Este requisito modifica el requisito de «mantener intactos todos los avisos» expuesto en la claúsula 4. - - c) En virtud del presente documento, usted deberá aplicar la licencia al trabajo completo, como un todo, a cualquier persona que esté en posesión de una copia. Por lo tanto, esta Licencia se aplicará junto con cualquier otra condición adicional aplicable de la cláusula 7, al conjunto completo del trabajo y todas y cada una de sus partes, independientemente de como sean agrupadas o empaquetadas. Esta Licencia no permite ser aplicada al trabajo de ninguna otra forma, pero no se anula dicho permiso si usted lo ha recibido por separado. - - d) Si el trabajo tiene interfaces de usuario interactivos, cada uno debe mostrar Avisos Legales Apropiados; sin embargo, si el Programa tiene interfaces interactivos que no muestran Avisos Legales Apropiados, su trabajo no tiene porqué modificarlos para que lo hagan. - -Un conjunto o recopilación formado por un trabajo amparado y otros trabajos distintos e independientes, que por su naturaleza no sean ampliaciones del trabajo amparado, que no se combinen con él de alguna forma para dar lugar a un programa mayor, y que estén ubicados en un medio de distribución o almacenamiento, se denomina «paquete» si la recopilación y su copyright al completo no son usados para limitar el acceso o los derechos legales de los usuarios de la recopilación, más allá de lo que permita el trabajo individual. La inclusión de un trabajo amparado en un paquete no hace aplicable esta Licencia al resto de elementos del paquete. - -6. Distribución de código No-fuente. ------------------------------------- - -Usted podrá distribuir el código objeto de un trabajo amparado en virtud de los términos de las cláusulas 4 y 5, siempre que también distribuya las Fuentes Correspondientes en código máquina, de acuerdo con los términos establecidos en esta Licencia, de alguna de las siguientes maneras: - - a) Distribuir el código objeto en, o embebido en, un producto físico (incluyendo medios de distribución físicos), acompañado de las Fuentes Correspondientes en un medio físico duradero y que sea utilizado habitualmente para el intercambio de software. - - b) Distribuir el código objeto en, o embebido en, un producto físico (incluyendo medios de distribución físicos), acompañado de una oferta por escrito, válida al menos durante tres años y válida durante el tiempo en el que usted ofrezca recambios o soporte para ese modelo de producto, con el fin de ofrecer al poseedor del código objeto (1) una copia de las Fuentes Correspondientes a todo el software del producto que esté cubierto por esta Licencia, en un medio físico duradero habitual para el intercambio de software, a un precio no mayor que su coste razonable por distribuir físicamente las fuentes, o (2) acceso para copiar las fuentes correspondientes desde un servidor de red sin coste alguno. - - c) Distribuir copias individuales del código objeto junto con una copia de la oferta por escrito para/con el fin de proporcionar las Fuentes Correspondientes. Esta alternativa sólo está permitida ocasionalmente, pero no de forma comercial, y solamente si usted recibió el código objeto junto con una oferta parecida, de acuerdo con la subcláusula 6b. - - d) Distribuir el código objeto ofreciendo acceso desde un lugar determinado (gratuitamente o mediante pago), y ofrecer acceso equivalente a las Fuentes Correspondientes de la misma forma y en el mismo lugar sin cargo añadido. No es necesario exigir a los destinatarios que copien las Fuentes Correspondientes junto con el código objeto. Si el lugar para copiar el código objeto es un servidor de red, las Fuentes Correspondientes pueden estar en un servidor diferente (gestionado por usted o terceros) que ofrezca facilidades de copia equivalentes, siempre que mantenga instrucciones claras junto al código objeto especificando dónde encontrar las Fuentes Correspondientes. Independientemente de qué servidores alberguen las Fuentes Correspondientes, usted seguirá obligado a asegurar que estarán disponibles durante el tiempo necesario para cumplir estos requisitos. - - e) Distribuir el código mediante transferencias entre usuarios, siempre que informe a otros usuarios dónde se ofrecen el código objeto y las Fuentes Correspondientes de forma pública sin cargo alguno, tal y como se establece en la subcláusula 6d. - -Una parte separable del código objeto, cuyo código fuente esté excluido de las Fuentes Correspondientes como Biblioteca de Sistema, no necesita ser incluida en la distribución del código objeto del trabajo. - -Un «Producto de Usuario» es tanto (1) un «producto de consumo», que se refiere a cualquier propiedad personal tangible habitualmente utilizada para fines personales, familiares o domésticos, o (2) cualquier cosa diseñada o vendida para ser incorporada como extensión/expansión para otro producto. Para determinar si un producto es un producto de consumo, los casos dudosos se resolverán favoreciendo el amparo. En el caso de un producto concreto recibido por un usuario particular, «de uso habitual» se refiere al uso típico o corriente de ese tipo de producto, independientemente de la situación del usuario particular o de la forma en que el usuario concreto utilice, o pretenda o se espere que pretenda utilizar, el producto. Un producto es un producto de consumo independientemente de si el producto tiene usos sustancialmente comerciales, industriales o distintos del consumo, a menos que tales usos representen la única forma posible de utilizar el producto. - -Las «Instrucciones de Instalación» para un Producto de Usuario se refieren a cualquier método, procedimiento, clave de autorización, u otro tipo de información necesaria para instalar y ejecutar una versión modificada de un trabajo amparado en ese Producto de Usuario a partir de una versión modificada de las Fuentes Correspondientes. Las instrucciones deben ser suficientes para asegurar el funcionamiento continuo del código objeto modificado sin ningún tipo de condicionamiento o intromisión por el simple hecho de haber sido modificado. - -Si, bajo las premisas de esta cláusula, usted distribuye el código objeto de un trabajo en, o con un Producto de Usuario o específicamente para ser usado en el mismo, y la distribución forma parte de una transacción donde los derechos de posesión y uso del Producto de Usuario se transfieren al destinatario a perpetuidad o durante un plazo fijo de tiempo (independientemente de las características de la transacción), las Fuentes Correspondientes distribuidas bajo estos supuestos deben acompañarse de las Instrucciones de Instalación. Sin embargo, estos requerimientos no se aplican si ni usted ni terceros tienen posibilidad de instalar el código objeto modificado en el Producto de Usuario (por ejemplo, el trabajo ha sido instalado en memoria de sólo lectura, ROM): - -El requerimiento de proporcionar Información de Instalación no incluye el hecho de continuar proporcionando servicio de soporte, garantía, o actualizaciones para un trabajo que haya sido modificado o instalado por el destinatario, o para el Producto de Usuario en el que se haya modificado o instalado. El acceso a la red puede ser denegado cuando la propia modificación afecte materialmente y de forma adversa a la operación de la red o viole las reglas y protocolos de comunicación en la red. - -Las Fuentes Correspondientes distribuidas, y las Instrucciones de Instalación proporcionadas de acuerdo con esta cláusula, deben figurar en un formato documentado públicamente (y con una implementación disponible para el público en código fuente), y no deben necesitar claves de acceso especiales para la descompresión, lectura o copia. - -7. Condiciones adicionales. ---------------------------- - -Los «Permisos Adicionales» son condicionantes que amplían los términos de esta Licencia permitiendo excepciones a una o más de sus condiciones. Los Permisos Adicionales que son aplicables al Programa completo deberán ser tratados como si estuviesen incluidos en esta Licencia, hasta los límites de validez impuestos por las leyes aplicables. Si los permisos adicionales se aplicasen sólo a una parte del Programa, esa parte podría ser usada de forma independiente en virtud de dichos permisos, pero el Programa completo seguiría estando afectado por esta Licencia con independencia de los permisos adicionales. - -Cuando distribuya una copia de un trabajo amparado, usted podrá opcionalmente eliminar cualquier permiso adicional de esa copia, o de alguna parte del mismo. (Los permisos adicionales pueden haber establecido que sea requerida su eliminación en ciertos supuestos si usted modifica el trabajo.) Usted puede establecer permisos adicionales en material añadido por usted a un trabajo amparado, sobre el cual tiene o podrá aportar sus permisos de copyright correspondientes. - -Sin contravenir cualquier otra estipulación en esta Licencia, usted podrá, para el material que añada a un trabajo amparado, (si está autorizado por los poseedores de copyright de ese material) añadir condiciones a esta Licencia con los siguientes términos: - - a) Ausencia de garantía o limitación de responsabilidad diferente de los términos establecidos en las cláusulas 15 y 16 de esta Licencia; u - - b) Obligación de mantener determinados avisos legales razonables o atribuciones de autoría en el material o en los Avisos Legales Correspondientes mostrados por los trabajos que lo contengan; o - - c) Prohibir la tergiversación del origen del material, o solicitar que las diferencias respecto a la versión original sean señaladas de forma apropiada en las versiones modificadas del material; o - - d) Limitar la utilización de los nombres de los autores o beneficiarios del material con fines divulgativos; o - - e) Negarse a ofrecer derechos afectados por leyes de registro para el uso de marcas empresariales, registradas o de servicio; o - - f) Exigir indemnización a los autores y poseedores de la licencia de ese material, por parte de cualquier persona que distribuya el material (o versiones modificadas del mismo), estableciendo obligaciones contractuales de responsabilidad sobre el destinatario, para cualquier responsabilidad que estas obligaciones contractuales impongan directamente sobre los autores y poseedores de licencia. - -Cualesquiera otras condiciones adicionales no-permisivas son consideradas «otras restricciones» en el contexto de la cláusula 10. Si el Programa, tal cual lo recibió, o cualquier parte del mismo, contiene un aviso indicando que está amparado por esta Licencia junto a una cláusula de restricción posterior específica, usted podrá suprimir esa cláusula. Si un documento de licencia contiene una restricción de este tipo pero permite modificar la licencia o la distribución en virtud de la presente Licencia, usted podrá añadirla al material de un trabajo amparado por los términos de ese documento de licencia, siempre que dicha restricción no se mantenga tras la modificación de la licencia o la distribución. - -Si añade condiciones para un trabajo amparado, a tenor de lo establecido en la presente cláusula, usted deberá ubicar, en los archivos fuente involucrados, una declaración de los términos adicionales aplicables a esos archivos, o un aviso indicando dónde localizar los términos aplicables. - -Las condiciones adicionales, permisivas o no, deben aparecer por escrito como licencias separadas, o figurar como excepciones; de todas formas, los requisitos anteriores siempre son aplicables. - -8. Cancelación. ---------------- - -Usted no podrá distribuir o modificar un trabajo amparado salvo de la forma en la que se ha previsto expresamente en esta Licencia. Cualquier intento diferente de distribución o modificación será considerado nulo, y automáticamente cancelará sus derechos respecto a esta Licencia (incluyendo cualquier patente conseguida según el párrafo tercero de la cláusula 11). - -Sin embargo, si deja de violar esta Licencia, entonces su licencia desde el poseedor del copyright correspondiente será restituida (a) provisionalmente, a menos que y hasta que el poseedor del copyright dé por terminada explícita y permanentemente su licencia, y (b) permanentemente, si el poseedor del copyright no le ha notificado por algún cauce de la violación no después de los 60 días posteriores al cese. - -Además, su licencia desde el poseedor del copyright correspondiente será restituida permanentemente si el poseedor del copyright le notifica de la violación por algún cauce, es la primera vez que recibe la notificación de violación de esta Licencia (para cualquier trabajo) de ese poseedor de copyright, y usted subsana la violación antes de 30 días desde la recepción del aviso. - -La cancelación de sus derechos según esta cláusula no da por canceladas las licencias de terceros que hayan recibido copias o derechos a través de usted con esta Licencia. Si sus derechos han finalizado y no han sido restituidos de forma permanente, usted no está capacitado para recibir nuevas licencias para el mismo material en virtud de la cláusula 10. - -9. Aceptación no obligatoria por tenencia de copias. ----------------------------------------------------- - -No está obligado a aceptar esta Licencia por recibir o ejecutar una copia del Programa. La distribución de un trabajo amparado surgida simplemente como consecuencia de la transmisión entre usuarios para obtener una copia tampoco requiere aceptación. Sin embargo, únicamente esta Licencia le otorga permiso para distribuir o modificar cualquier trabajo amparado. Estas acciones infringen el copyright si usted no acepta las los términos y condiciones de esta Licencia. Por lo tanto, al modificar o distribuir un trabajo amparado, usted indica que acepta la Licencia. - -10. Herencia automática de licencia para destinatarios. -------------------------------------------------------- - -Cada vez que distribuya un trabajo amparado, el destinatario recibirá automáticamente una licencia desde los poseedores originales, para ejecutar, modificar y distribuir ese trabajo, al amparo de los términos de esta Licencia. Usted no será responsable de asegurar el cumplimiento por terceros de esta Licencia. - -Una «transacción de entidad» es una transacción que transfiere el control de una organización, o todos los bienes sustanciales de una, o subdivide una organización, o fusiona organizaciones. Si la distribución de un trabajo amparado surge de una transacción de entidad, cada parte involucrada en esa transacción que reciba una copia del trabajo, también recibe todas y cada una de las licencias existentes del trabajo que la parte interesada tuviese o pudiese ofrecer según el párrafo anterior, además del derecho a tomar posesión de las Fuentes Correspondientes del trabajo a través de la parte interesada, si está en poder de dicha parte o se puede conseguir con un esfuerzo razonable. - -Usted no podrá imponer restricciones posteriores en el ejercicio de los derechos otorgados o concedidos en virtud de la presente Licencia. Por ejemplo, usted no puede imponer a la licencia pagos, derechos u otros cargos por el ejercicio de los derechos otorgados según esta Licencia; además no podrá iniciar litigios (incluyendo demandas o contrademandas en pleitos) alegando que se infringen patentes por cambiar, usar, vender, ofrecer en venta o importar el Programa, o cualquier parte del mismo. - -11. Patentes. -------------- - -Un «colaborador» es un poseedor de copyright que autoriza el uso del Programa o un trabajo en el que se base el Programa bajo los términos y condiciones establecidos en la presente Licencia. El trabajo con esta licencia se denomina «versión en colaboración» con el colaborador. - -Todas las reivindicaciones de patentes en posesión o controladas por el colaborador se denominan «demandas de patente original», ya sean existentes o adquiridas con posterioridad, que hayan sido infringidas de alguna forma permitida por esta Licencia, al hacer, usar o vender la versión en colaboración, pero sin incluir demandas que sólo sean infracciones como consecuencia de modificaciones posteriores de la versión en colaboración. Para aclarar esta definición, «control» incluye el derecho de conceder sublicencias de patente de forma que no contravenga los requisitos establecidos en la presente Licencia. - -Cada colaborador le concede a usted una licencia de la patente no-exclusiva, global y libre de derechos bajo las reivindicaciones de patente de origen del colaborador, para el uso, modificación, venta, ofertas de venta, importación y otras formas de ejecución, modificación y redistribución del contenido de la versión en colaboración. - -En los siguientes tres párrafos, una «licencia de patente» se refiere a cualquier acuerdo o compromiso expreso y manifiesto, cualquiera que sea su denominación, que no imponga una patente (como puede ser el permiso expreso para ejecutar una patente o acuerdos para no imponer demandas por infracción de patente). «Conceder» estas licencias de patente a un tercero significa llegar a tal tipo de acuerdo o compromiso que no imponga una patente al tercero. - -Si usted distribuye un trabajo amparado, conociendo que está afectado por una licencia de patente, y no están disponibles de forma pública para su copia las Fuentes Correspondientes, sin cargo alguno y bajo los términos de esta Licencia, ya sea a través de un servidor de red público o mediante cualquier otro medio, entonces usted deberá o bien (1) permitir que sean públicas las Fuentes Correspondientes, o (2) tratar de eliminar los beneficios de la licencia de patente para este trabajo en particular, o (3) tratar de extender, de una forma que no contravenga los requisitos de esta Licencia, la licencia de patente a terceros. «Conocer que está afectado» significa que usted tiene conocimiento real de que, para la licencia de patente, la distribución del trabajo amparado en un determinado país, o el uso del trabajo amparado por sus destinatarios en un determinado país, infringiría una o más patentes existentes en ese país que usted considera aplicables por algún motivo. - -Si, de conformidad con alguna transacción o acuerdo(o en un proceso relacionado con ellos), usted distribuye o distribuye con fines de distribución , un trabajo amparado, concediendo una licencia de patente para algún tercero que reciba el trabajo amparado, y autorizándole a usar, distribuir, modificar o distribuir una copia específica del trabajo amparado, entonces la licencia de patente que usted otorgue se extiende automáticamente a todos los receptores del trabajo amparado y cualquier trabajo basado en el mismo. - -Una licencia de patente es «discriminatoria» si no incluye dentro de su ámbito de cobertura, prohíbe el ejercicio, o está condicionada a no ejercitar uno o más de los derechos que están específicamente otorgados por esta Licencia. Usted no debe distribuir un trabajo amparado si está implicado en un acuerdo con terceros que estén relacionados con el negocio de la distribución de software, en el que usted haga pagos relacionados con su actividad de distribución del trabajo, y donde se otorgue, a cualquier receptor del trabajo amparado, una licencia de patente discriminatoria (a) en relación con las copias del trabajo amparado distribuido por usted (o copias hechas a partir de éstas), o (b) directa o indirectamente relacionadas con productos específicos o paquetes que contengan el trabajo amparado, a menos que usted forme parte del acuerdo, o que esa licencia de patente fuese otorgada antes del 28 de marzo de 2007. - -Ninguna disposición de esta Licencia se considerará como excluyente o limitante de la aplicación de cualquier otra licencia o defensas legales contra la violación de las leyes de propiedad intelectual a que pudiera tener derecho bajo la ley de propiedad intelectual vigente. - -12. No condicionamiento de la libertad de terceros. ---------------------------------------------------- - -Si a usted le son impuestas condiciones que contravienen las estipuladas en la presente Licencia (ya sea por orden judicial, acuerdo u otros), no quedará eximido de cumplir las condiciones de esta Licencia. Si usted no puede distribuir un trabajo amparado cumpliendo simultáneamente sus obligaciones con esta Licencia y con cualquier otra pertinente, entonces no podrá distribuirlo de ninguna forma. Por ejemplo, si usted se compromete con términos que le obligan a obtener derechos por la distribución a terceros, la única forma de satisfacer ambos condicionantes y esta Licencia es abstenerse completamente de distribuir el Programa. - -13. Uso conjunto con la Licencia Pública General Affero GNU. ------------------------------------------------------------- - -Sin contravenir las disposiciones de la presente Licencia, usted tendrá permiso para enlazar o combinar cualquier trabajo amparado con otro trabajo amparado por la versión 3 de la Licencia Pública General Affero GNU y formar un solo trabajo combinado, y distribuir el trabajo resultante. Los términos de esta Licencia seguirán siendo aplicables a la parte formada por el trabajo amparado, pero los condicionantes especiales de la Licencia Pública General Affero GNU, en su cláusula 13, relativos a la interacción mediante redes, serán aplicables a la combinación de ambas partes. - -14. Versiones Revisadas de esta Licencia. ------------------------------------------ - -La Fundación para el Software Libre podrá publicar revisiones y/o nuevas versiones de la Licencia Pública General GNU de vez en cuando. Esas versiones serán similares en espíritu a la versión actual, pero podrán diferir en algunos detalles para afrontar nuevos problemas o situaciones. - -A cada versión se le da un número distintivo. Si el Programa especifica que le es aplicable cierto número de versión de la Licencia Pública General o «cualquier versión posterior», usted tendrá la posibilidad de adoptar los términos y condiciones de la versión indicada o de cualquier otra versión posterior publicada por la Fundación para el Software Libre. Si el Programa no especifica un número de versión de la Licencia Pública General, usted podrá elegir cualquier versión que haya sido publicada por la Fundación para el Software Libre. - -Si el Programa especifica que un apoderado/representante puede decidir qué versiones de la Licencia Pública General pueden aplicarse en el futuro, la declaración pública de aceptación que el apoderado/representante haga de una versión le autoriza a usted con carácter permanente a elegir esa versión para el Programa. - -Versiones posteriores de la licencia podrán otorgarle permisos adicionales o diferentes. Sin embargo, no podrán imponerse obligaciones adicionales a cualquier autor o poseedor de copyright como consecuencia de que usted adopte una versión posterior. - -15. Ausencia de Garantía. -------------------------- - -EL PROGRAMA NO TIENE GARANTÃA ALGUNA, HASTA LOS LÃMITES PERMITIDOS POR LAS LEYES APLICABLES. SALVO CUANDO SE ESTABLEZCA LO CONTRARIO POR ESCRITO, EL POSEEDOR DEL COPYRIGHT Y/O TERCEROS PROPORCIONARÃN EL PROGRAMA «TAL CUAL» SIN GARANTÃA DE NINGÚN TIPO, YA SEA EXPLÃCITA O IMPLÃCITA, INCLUYENDO, PERO SIN LIMITARSE A, LAS GARANTÃAS IMPLÃCITAS MERCANTILES Y DE APTITUD PARA UN PROPÓSITO DETERMINADO. USTED ASUMIRà CUALQUIER RIESGO RELATIVO A LA CALIDAD Y RENDIMIENTO DEL PROGRAMA. SI EL PROGRAMA FUESE DEFECTUOSO, USTED ASUMIRà CUALQUIER COSTE DE SERVICIO, REPARACIÓN O CORRECCIÓN. - -16. Limitación de Responsabilidad. ----------------------------------- - -EN NINGÚN CASO, SALVO REQUERIMIENTO POR LEYES APLICABLES O MEDIANTE ACUERDO POR ESCRITO, PODRà UN POSEEDOR DE COPYRIGHT, O UN TERCERO QUE MODIFIQUE O DISTRIBUYA EL PROGRAMA SEGÚN LO INDICADO ANTERIORMENTE, HACERLE A USTED RESPONSABLE DE DAÑO ALGUNO, INCLUYENDO CUALQUIER DAÑO GENERAL, ESPECIAL, OCASIONAL O DERIVADO QUE SURJA DEL USO O LA INCAPACIDAD DE USO DEL PROGRAMA (INCLUYENDO PERO SIN LIMITARSE A LA PÉRDIDA DE DATOS O LA PRESENTACIÓN NO PRECISA DE LOS MISMOS O A PÉRDIDAS SUFRIDAS POR USTED O TERCEROS O AL FALLO DEL PROGRAMA AL INTERACTUAR CON OTROS PROGRAMAS), INCLUSO EN EL CASO DE QUE EL POSEEDOR O UN TERCERO HAYA SIDO ADVERTIDO DE LA POSIBILIDAD DE TALES DAÑOS. - -17. Interpretación de las cláusulas 15 y 16. --------------------------------------------- - -Si la ausencia de garantía y la limitación de responsabilidad descrita anteriormente no tuviesen efecto legal a nivel local en todos sus términos, los juzgados aplicarán las leyes locales que más se aproximen a la exención de responsabilidad civil en lo relativo al Programa, a menos que la copia del Programa esté acompañada mediante pago de una garantía o compromiso de responsabilidad. - - FIN DE TÉRMINOS Y CONDICIONES - - - Cómo aplicar estas condiciones a sus nuevos programas - -Si usted desarrolla un nuevo programa, y quiere darle al público el mayor uso posible del mismo, la mejor forma de conseguirlo es hacerlo software libre para que cualquiera pueda redistribuirlo y modificarlo bajo estas condiciones. - -Para ello, adjunte los siguientes avisos al programa. Es más seguro adjuntarlos al inicio de cada archivo fuente para hacer más explícita la ausencia de garantía; y cada archivo debería tener al menos la línea de «copyright» y un enlace a la versión completa del aviso. - - - Copyright (C) - - Este programa es software libre: usted puede redistribuirlo y/o modificarlo - bajo los términos de la Licencia Pública General GNU publicada - por la Fundación para el Software Libre, ya sea la versión 3 - de la Licencia, o (a su elección) cualquier versión posterior. - - Este programa se distribuye con la esperanza de que sea útil, pero - SIN GARANTÃA ALGUNA; ni siquiera la garantía implícita - MERCANTIL o de APTITUD PARA UN PROPÓSITO DETERMINADO. - Consulte los detalles de la Licencia Pública General GNU para obtener - una información más detallada. - - Debería haber recibido una copia de la Licencia Pública General GNU - junto a este programa. - En caso contrario, consulte . - -Incluya además información de cómo contactar con usted por correo electrónico y ordinario. - -Si el programa es interactivo, haga que muestre un breve aviso como el siguiente cuando se inicie en modo interactivo: - - Copyright (C) - Este programa se ofrece SIN GARANTÃA ALGUNA; - escriba ‘show w’ para consultar los detalles. - Es software libre, y usted puede redistribuirlo bajo ciertas condiciones; - escriba ‘show c’ para más información. - -Los hipotéticos comandos ‘show w’ y ‘show c’ deberían mostrar las partes correspondientes de la Licencia Pública General. Por supuesto, los comandos en su programa podrían ser diferentes; en un interfaz gráfico de usuario, podría usar un mensaje del tipo «Acerca de». - -También debería conseguir que su empresa (si trabaja como programador) o escuela, en su caso, firme una «renuncia de copyright» sobre el programa, si fuese necesario. Para más información a este respecto, y saber cómo aplicar y cumplir la licencia GNU GPL, consulte . - -La Licencia Pública General GNU no permite incorporar sus programas como parte de programas propietarios. Si su programa es una subrutina en una biblioteca, resultaría mucho más útil habilitar el enlace de aplicaciones propietarias a la biblioteca. Si es esto lo que quiere hacer, utilice la Licencia Pública General Reducida GNU en vez de esta Licencia. Pero por favor, consulte primero . - -[QueryBox] -Cuadros de diálogo - -En los cuadros de diálogo puede desplazarse con el teclado usando las flechas o las teclas de las letras resaltadas. - -También se pueden pulsar los botones con el ratón. - -[How to use help] -Uso de la ayuda - -Se pueden utilizar las flechas o el ratón para navegar por el sistema de ayuda. - -La flecha de abajo cambia al siguiente elemento o baja. La tecla de arriba vuelve al elemento anterior o sube. La tecla derecha sigue el enlace activo. La tecla izquierda vuelve a la última página visitada. - -Si el terminal no es compatible con las flechas de cursor se puede avanzar con la barra espaciadora y retroceder con la tecla b (back). El tabulador activa el elemento siguiente y con INTRO se puede entrar al enlace correspondiente. La tecla l (last) permite volver a la última página. - -ESC pulsada dos veces permite salir de la ayuda. - -El botón izquierdo del ratón avanza o sigue enlaces y el botón derecho retrocede o vuelve a la última página. - -La función de todas las teclas en la ayuda: - -Las teclas de desplazamiento genéricasGeneral Movement Keys son válidas. - -tabulador Avanzar al elemento posterior. -Alt-tabulador Retroceder al elemento anterior. -abajo Avanzar elemento o bajar una línea. -arriba Retroceder elemento o subir una línea. -derecha , INTRO Seguir enlace. -izquierda , l Volver a la última página visitada. -F1 Mostrar la ayuda del sistema de ayuda. -n Pasar a la página siguiente. -p Pasar a la página anterior. -c Pasar a la página de contenidos. -F10 , ESC Salir de la ayuda. - -Local variables: -fill-column: 58 -end: diff --git a/recipes/wip/files/mc/source/doc/hlp/hlp-lang-include.am b/recipes/wip/files/mc/source/doc/hlp/hlp-lang-include.am deleted file mode 100644 index a23996fb79..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/hlp-lang-include.am +++ /dev/null @@ -1,10 +0,0 @@ -MAN2HLP=$(top_builddir)/src/man2hlp/man2hlp - -hlpdir = $(pkgdatadir)/help -hlp_DATA = mc.hlp.$(HLP_LANG) - -EXTRA_DIST = xnc.hlp -CLEANFILES = $(hlp_DATA) - -mc.hlp.$(HLP_LANG): $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp $(MAN2HLP) - - $(MAN2HLP) $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp mc.hlp.$(HLP_LANG) diff --git a/recipes/wip/files/mc/source/doc/hlp/hu/Makefile.am b/recipes/wip/files/mc/source/doc/hlp/hu/Makefile.am deleted file mode 100644 index 8626d46959..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/hu/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -HLP_LANG=hu - -include ../hlp-lang-include.am diff --git a/recipes/wip/files/mc/source/doc/hlp/hu/Makefile.in b/recipes/wip/files/mc/source/doc/hlp/hu/Makefile.in deleted file mode 100644 index 6ab2aec905..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/hu/Makefile.in +++ /dev/null @@ -1,649 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/hlp/hu -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(hlpdir)" -DATA = $(hlp_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../hlp-lang-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -HLP_LANG = hu -MAN2HLP = $(top_builddir)/src/man2hlp/man2hlp -hlpdir = $(pkgdatadir)/help -hlp_DATA = mc.hlp.$(HLP_LANG) -EXTRA_DIST = xnc.hlp -CLEANFILES = $(hlp_DATA) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../hlp-lang-include.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) --gnu doc/hlp/hu/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/hlp/hu/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../hlp-lang-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-hlpDATA: $(hlp_DATA) - @$(NORMAL_INSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(hlpdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(hlpdir)" || 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)$(hlpdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(hlpdir)" || exit $$?; \ - done - -uninstall-hlpDATA: - @$(NORMAL_UNINSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(hlpdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(DATA) -installdirs: - for dir in "$(DESTDIR)$(hlpdir)"; 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: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-hlpDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-hlpDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-hlpDATA \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-hlpDATA - -.PRECIOUS: Makefile - - -mc.hlp.$(HLP_LANG): $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp $(MAN2HLP) - - $(MAN2HLP) $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp mc.hlp.$(HLP_LANG) - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/hlp/hu/xnc.hlp b/recipes/wip/files/mc/source/doc/hlp/hu/xnc.hlp deleted file mode 100644 index cc6053cdb7..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/hu/xnc.hlp +++ /dev/null @@ -1,332 +0,0 @@ -[main] - lqwqk k k  - x x x . x . x  - x x x k lqu wqk k lqw tqk n  - x x x x x x x x x x x x x x  - v v v mqv v v v mqu v v mj - qqqqqqCommander qj  - -Ez a GNU Midnight Commander súgója. - -Az interaktív súgó használatának megismeréséhez csak üss egy entertHow to use help. Itt közvetlenül a súgó tartalomjegyzékébeContents juthatsz. - -A Midnight Commander-t a következÅ‘ szerzÅ‘kAUTHORS készítették. - -A Midnight Commander mindenféle garanciaWarranty nélkül kerül kiadásra. Ez szabad szoftver, így továbbadhatod azt a Felhasználási engedélybenLicense meghatározott feltételekkel. - -[License] - - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - - - Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for software and other kinds of works. - - The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. - - Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - - Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuseoccurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and modification follow. - - TERMS AND CONDITIONS - -0. Definitions. ---------------- - - “This License†refers to version 3 of the GNU General Public License. - - “Copyright†also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - - “The Program†refers to any copyrightable work licensed under this License. Each licensee is addressed as “youâ€. “Licensees†and “recipients†may be individuals or organizations. - - To “modify†a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version†of the earlier work or a work “based on†the earlier work. - - A “covered work†means either the unmodified Program or a work based on the Program. - - To “propagate†a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - - To “convey†a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays “Appropriate Legal Notices†to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - - -1. Source Code. ---------------- - - The “source code†for a work means the preferred form of the work for making modifications to it. “Object code†means any non-source form of a work. - - A “Standard Interface†means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - - The “System Libraries†of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Componentâ€, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - - The “Corresponding Source†for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - - The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - - The Corresponding Source for a work in source code form is -that same work. - -2. Basic Permissions. ---------------------- - - All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. --------------------------------------------------------------- - - No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. - - When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. ------------------------------ - - You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey,and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. --------------------------------------- - - You may convey a work based on the Program, or the modificationsto produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified it, and giving a relevant date. - b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all noticesâ€. - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. - - A compilation of a covered work with other separate and independent works, -which are not by their nature extensions of the covered work, and which are not -combined with it such as to form a larger program, in or on a volume of a -storage or distribution medium, is called an “aggregate†if the compilation and -its resulting copyright are not used to limit the access or legal rights of the -compilation's users beyond what the individual works permit. Inclusion of a -covered work in an aggregate does not cause this License to applyto the other -parts of the aggregate. - -6. Conveying Non-Source Forms. ------------------------------- - - You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: - - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - - A “User Product†is either (1) a “consumer productâ€, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used†refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - - “Installation Information†for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - - If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - - The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. --------------------- - - “Additional permissions†are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. - - All other non-permissive additional terms are considered “further restrictions†within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. ---------------- - - You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). - - However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - - Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. ---------------------------------------------- - - You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. - -10. Automatic Licensing of Downstream Recipients. -------------------------------------------------- - - Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. - - An “entity transaction†is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. ------------- - - A “contributor†is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor versionâ€. - - A contributor's “essential patent claims†are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control†includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - - In the following three paragraphs, a “patent license†is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant†such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - - If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying†means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - - A patent license is “discriminatory†if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. ------------------------------------- - - If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - -13. Use with the GNU Affero General Public License. ---------------------------------------------------- - - Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. - -14. Revised Versions of this License. -------------------------------------- - - The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License “or any later version†applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - - Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -[Warranty] -15. Disclaimer of Warranty. ---------------------------- - - 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. - -16. Limitation of Liability. ----------------------------- - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. - -17. Interpretation of Sections 15 and 16. ------------------------------------------ - - If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright†line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - - -Also add information on how to contact you by electronic and paper mail. - - - If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) - This program 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, your program's commands might be different; for a GUI interface, you would use an “about boxâ€. - - You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer†for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - - The GNU 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 Lesser General Public License instead of this License. But first, please read . - -[QueryBox] -LekérdezÅ‘ box - -A lekérdezÅ‘ boxban kezeléséhez a nyíl billentyűket, a szövegrész elejének magadásást, vagy a gombokra történÅ‘ egérkattintást használhatod. - -[How to use help] -Hogyan használjuk a súgót - -A súgóban a navigációhoz a billentyűzet gombjait és az egér gombjait is használhatod. A lefelé mutató nyíl lenyomására a következÅ‘ bejegyzésre ugorhatsz, vagy legördítheted azt. A felfelé mutató nyíl lenyomására ez elÅ‘zÅ‘ bejegyzésre ugorhatsz, vagy felhúzhatod azt. A jobbra mutató nyíl lenyomására a linknek megfelelÅ‘ címre lép. A balra mutató nyíl lenyomására az elÅ‘zÅ‘leg meglátogatott címre lépsz vissza. - -Ha az általad használt terminál nem támogatja a kurzor gombok használatát, használd a szóköz billentyűt az elÅ‘re lépésre, a 'b' gombot a visszalépésre. Használd a TAB gombot a következÅ‘ bejegyzésre való ugráshoz és az ENTER-t a jelenlegi link által megadott címre történÅ‘ lépéshez. Az 'l' (last=utolsó) gombot az elÅ‘zÅ‘leg látogatott oldalra való visszalépésre használhatod. Az ESC lenyomásával kiléphetsz a Súgóból. - -A bal egérgomb lenyomásával követheted a linket, vagy gördíthetsz. A jobb gomb lenyomásával visszatérhetsz az elÅ‘zÅ‘leg látogatott pontra. - -A Súgóban használható összes gomb listája: - -Ãltalános mozgási lehetÅ‘ségek billentyűzettelGeneral Movement Keys. - -tab Mozgás a következÅ‘ elemre. -M-tab Mozgás az elÅ‘zÅ‘ elemre. -down Mozgás a következÅ‘ elemre; a sorokat lefelé - gördíti. -up Mozgás az elÅ‘zÅ‘ elemre; a sorokat felfelé - gördíti. -right, enter Követi a jelenlegi linket. -left, l Visszalép az elÅ‘zÅ‘leg meglátogatott pontra. -F1 Megjeleníti a Súgót a Súgó nézÅ‘vel. -n Ãtlép a következÅ‘ pontra. -p Ãtlép az elÅ‘zÅ‘ pontra. -c A Tartalomjegyzékhez ugrik. -F10, esc Kilép a Súgóból. - -Local variables: -fill-column: 58 -end: diff --git a/recipes/wip/files/mc/source/doc/hlp/it/Makefile.am b/recipes/wip/files/mc/source/doc/hlp/it/Makefile.am deleted file mode 100644 index dd0ed3b797..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/it/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -HLP_LANG=it - -include ../hlp-lang-include.am diff --git a/recipes/wip/files/mc/source/doc/hlp/it/Makefile.in b/recipes/wip/files/mc/source/doc/hlp/it/Makefile.in deleted file mode 100644 index 30c7807f8d..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/it/Makefile.in +++ /dev/null @@ -1,649 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/hlp/it -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(hlpdir)" -DATA = $(hlp_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../hlp-lang-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -HLP_LANG = it -MAN2HLP = $(top_builddir)/src/man2hlp/man2hlp -hlpdir = $(pkgdatadir)/help -hlp_DATA = mc.hlp.$(HLP_LANG) -EXTRA_DIST = xnc.hlp -CLEANFILES = $(hlp_DATA) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../hlp-lang-include.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) --gnu doc/hlp/it/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/hlp/it/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../hlp-lang-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-hlpDATA: $(hlp_DATA) - @$(NORMAL_INSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(hlpdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(hlpdir)" || 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)$(hlpdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(hlpdir)" || exit $$?; \ - done - -uninstall-hlpDATA: - @$(NORMAL_UNINSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(hlpdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(DATA) -installdirs: - for dir in "$(DESTDIR)$(hlpdir)"; 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: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-hlpDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-hlpDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-hlpDATA \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-hlpDATA - -.PRECIOUS: Makefile - - -mc.hlp.$(HLP_LANG): $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp $(MAN2HLP) - - $(MAN2HLP) $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp mc.hlp.$(HLP_LANG) - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/hlp/it/xnc.hlp b/recipes/wip/files/mc/source/doc/hlp/it/xnc.hlp deleted file mode 100644 index 3fccc3dfbb..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/it/xnc.hlp +++ /dev/null @@ -1,334 +0,0 @@ - -[main] - lqwqk k k  - x x x . x . x  - x x x k lqu wqk k lqw tqk n  - x x x x x x x x x x x x x x  - v v v mqv v v v mqu v v mj - qqqqqqCommander qj  - -Questa è la principale schermata della guida interattiva del GNU Midnight Commander . - -Per saperne di più su come usare la guida interattiva, premere semplicemente invioHow to use help. Se lo si desidera, è possibile consultare direttamente il sommarioContents della guida. - -Il Midnight Commander è stato scritto dai suoi autoriAUTHORS. - -Il Midnight Commander NON E' COPERTO DA ALCUNA GARANZIAWarranty. Questo è software libero, lo si può ridistribuire sotto certe condizioniLicenza. - -[Licenza] - - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - - - Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for software and other kinds of works. - - The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. - - Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - - Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuseoccurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and modification follow. - - TERMS AND CONDITIONS - -0. Definitions. ---------------- - - “This License†refers to version 3 of the GNU General Public License. - - “Copyright†also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - - “The Program†refers to any copyrightable work licensed under this License. Each licensee is addressed as “youâ€. “Licensees†and “recipients†may be individuals or organizations. - - To “modify†a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version†of the earlier work or a work “based on†the earlier work. - - A “covered work†means either the unmodified Program or a work based on the Program. - - To “propagate†a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - - To “convey†a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays “Appropriate Legal Notices†to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - - -1. Source Code. ---------------- - - The “source code†for a work means the preferred form of the work for making modifications to it. “Object code†means any non-source form of a work. - - A “Standard Interface†means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - - The “System Libraries†of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Componentâ€, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - - The “Corresponding Source†for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - - The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - - The Corresponding Source for a work in source code form is -that same work. - -2. Basic Permissions. ---------------------- - - All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. --------------------------------------------------------------- - - No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. - - When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. ------------------------------ - - You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey,and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. --------------------------------------- - - You may convey a work based on the Program, or the modificationsto produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified it, and giving a relevant date. - b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all noticesâ€. - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. - - A compilation of a covered work with other separate and independent works, -which are not by their nature extensions of the covered work, and which are not -combined with it such as to form a larger program, in or on a volume of a -storage or distribution medium, is called an “aggregate†if the compilation and -its resulting copyright are not used to limit the access or legal rights of the -compilation's users beyond what the individual works permit. Inclusion of a -covered work in an aggregate does not cause this License to applyto the other -parts of the aggregate. - -6. Conveying Non-Source Forms. ------------------------------- - - You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: - - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - - A “User Product†is either (1) a “consumer productâ€, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used†refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - - “Installation Information†for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - - If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - - The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. --------------------- - - “Additional permissions†are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. - - All other non-permissive additional terms are considered “further restrictions†within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. ---------------- - - You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). - - However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - - Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. ---------------------------------------------- - - You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. - -10. Automatic Licensing of Downstream Recipients. -------------------------------------------------- - - Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. - - An “entity transaction†is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. ------------- - - A “contributor†is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor versionâ€. - - A contributor's “essential patent claims†are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control†includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - - In the following three paragraphs, a “patent license†is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant†such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - - If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying†means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - - A patent license is “discriminatory†if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. ------------------------------------- - - If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - -13. Use with the GNU Affero General Public License. ---------------------------------------------------- - - Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. - -14. Revised Versions of this License. -------------------------------------- - - The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License “or any later version†applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - - Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -[Warranty] -15. Disclaimer of Warranty. ---------------------------- - - 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. - -16. Limitation of Liability. ----------------------------- - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. - -17. Interpretation of Sections 15 and 16. ------------------------------------------ - - If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright†line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - - -Also add information on how to contact you by electronic and paper mail. - - - If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) - This program 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, your program's commands might be different; for a GUI interface, you would use an “about boxâ€. - - You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer†for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - - The GNU 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 Lesser General Public License instead of this License. But first, please read . - -[QueryBox] -Finestre di dialogo di richiesta dati - -Nelle finestre di dialogo di richiesta dati è possibile usare i tasti freccia o la prima lettera per selezionare una voce o cliccare con il mouse sul bottone. - -[How to use help] -Come usare la guida interattiva - -Usare i tasti del cursore o il mouse per navigare nel visualizzatore della guida. - -Premere freccia in giù per spostarsi alla voce successiva o per spostarsi in basso. Premere freccia in su per spostarsi alla voce precedente o per spostarsi in alto. Premere freccia a destra per seguire il collegamento corrente. Premere freccia a sinistra per tornare indietro nello storico dei nodi visitati. - -Se il terminale non supporta i tasti del cursore si può usare la barra spaziatrice per spostarsi in avanti ed il tasto 'b' per tornare indietro. Usare il tasto TAB per spostarsi sulla prossima voce e premere INVIO per seguire il collegamento corrente. Usare il tasto 'l' per tornare indietro nello storico dei nodi visitati. Premere ESC per uscire dal visualizzatore della guida. - -Il tasto sinistro del mouse segue il collegamento o sfoglia le pagine. Il tasto destro del mouse torna indietro nello storico dei nodi visitati. - -Elenco completo dei tasti del visualizzatore della guida: - -Sono accettati i tasti generali di movimentoGeneral Movement Keys. - -tab Va alla voce successiva. -M-tab Va alla voce precedente. -giù Va alla voce successiva o una riga in basso. -su Va alla voce precedente o una riga in alto. -destra, invio Segue il collegamento corrente. -sinistra, l Torna indietro nello storico dei nodi visitati. -F1 Mostra la guida per il visualizzatore della - guida stessa. -n Va al nodo successivo. -p Va al nodo precedente. -c Va al nodo del sommario. -F10, esc Esce dal visualizzatore della guida. - -Local variables: -fill-column: 58 -end: diff --git a/recipes/wip/files/mc/source/doc/hlp/pl/Makefile.am b/recipes/wip/files/mc/source/doc/hlp/pl/Makefile.am deleted file mode 100644 index 8823913096..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/pl/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -HLP_LANG=pl - -include ../hlp-lang-include.am diff --git a/recipes/wip/files/mc/source/doc/hlp/pl/Makefile.in b/recipes/wip/files/mc/source/doc/hlp/pl/Makefile.in deleted file mode 100644 index 668b058590..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/pl/Makefile.in +++ /dev/null @@ -1,649 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/hlp/pl -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(hlpdir)" -DATA = $(hlp_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../hlp-lang-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -HLP_LANG = pl -MAN2HLP = $(top_builddir)/src/man2hlp/man2hlp -hlpdir = $(pkgdatadir)/help -hlp_DATA = mc.hlp.$(HLP_LANG) -EXTRA_DIST = xnc.hlp -CLEANFILES = $(hlp_DATA) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../hlp-lang-include.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) --gnu doc/hlp/pl/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/hlp/pl/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../hlp-lang-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-hlpDATA: $(hlp_DATA) - @$(NORMAL_INSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(hlpdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(hlpdir)" || 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)$(hlpdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(hlpdir)" || exit $$?; \ - done - -uninstall-hlpDATA: - @$(NORMAL_UNINSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(hlpdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(DATA) -installdirs: - for dir in "$(DESTDIR)$(hlpdir)"; 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: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-hlpDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-hlpDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-hlpDATA \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-hlpDATA - -.PRECIOUS: Makefile - - -mc.hlp.$(HLP_LANG): $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp $(MAN2HLP) - - $(MAN2HLP) $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp mc.hlp.$(HLP_LANG) - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/hlp/pl/xnc.hlp b/recipes/wip/files/mc/source/doc/hlp/pl/xnc.hlp deleted file mode 100644 index 7fbaedcbe0..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/pl/xnc.hlp +++ /dev/null @@ -1,331 +0,0 @@ - -[main] - lqwqk k k  - x x x . x . x  - x x x k lqu wqk k lqw tqk n  - x x x x x x x x x x x x x x  - v v v mqv v v v mqu v v mj - qqqqqqCommander qj  - -Główny ekran pomocy programu GNU Midnight Commander . - -Aby dowiedzieć siÄ™, jak używać interaktywnej pomocy, należy nacisnąć klawisz EnterHow to use help. Można też przejść bezpoÅ›rednio do spisu treÅ›ciContents. - -Program GNU Midnight Commander zostaÅ‚ napisany przez jego autorówAUTHORS. - -Program GNU Midnight Commander jest dostarczany BEZ JAKIEJKOLWIEK GWARANCJIWarranty. Niniejszy program jest wolnym oprogramowaniem; można go rozprowadzać dalej na warunkach GNU General Public LicenseLicense. - -[License] - - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - - - Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for software and other kinds of works. - - The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. - - Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - - Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuseoccurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and modification follow. - - TERMS AND CONDITIONS - -0. Definitions. ---------------- - - “This License†refers to version 3 of the GNU General Public License. - - “Copyright†also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - - “The Program†refers to any copyrightable work licensed under this License. Each licensee is addressed as “youâ€. “Licensees†and “recipients†may be individuals or organizations. - - To “modify†a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version†of the earlier work or a work “based on†the earlier work. - - A “covered work†means either the unmodified Program or a work based on the Program. - - To “propagate†a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - - To “convey†a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays “Appropriate Legal Notices†to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - - -1. Source Code. ---------------- - - The “source code†for a work means the preferred form of the work for making modifications to it. “Object code†means any non-source form of a work. - - A “Standard Interface†means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - - The “System Libraries†of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Componentâ€, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - - The “Corresponding Source†for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - - The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - - The Corresponding Source for a work in source code form is -that same work. - -2. Basic Permissions. ---------------------- - - All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. --------------------------------------------------------------- - - No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. - - When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. ------------------------------ - - You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey,and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. --------------------------------------- - - You may convey a work based on the Program, or the modificationsto produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified it, and giving a relevant date. - b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all noticesâ€. - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. - - A compilation of a covered work with other separate and independent works, -which are not by their nature extensions of the covered work, and which are not -combined with it such as to form a larger program, in or on a volume of a -storage or distribution medium, is called an “aggregate†if the compilation and -its resulting copyright are not used to limit the access or legal rights of the -compilation's users beyond what the individual works permit. Inclusion of a -covered work in an aggregate does not cause this License to applyto the other -parts of the aggregate. - -6. Conveying Non-Source Forms. ------------------------------- - - You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: - - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - - A “User Product†is either (1) a “consumer productâ€, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used†refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - - “Installation Information†for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - - If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - - The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. --------------------- - - “Additional permissions†are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. - - All other non-permissive additional terms are considered “further restrictions†within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. ---------------- - - You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). - - However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - - Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. ---------------------------------------------- - - You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. - -10. Automatic Licensing of Downstream Recipients. -------------------------------------------------- - - Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. - - An “entity transaction†is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. ------------- - - A “contributor†is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor versionâ€. - - A contributor's “essential patent claims†are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control†includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - - In the following three paragraphs, a “patent license†is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant†such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - - If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying†means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - - A patent license is “discriminatory†if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. ------------------------------------- - - If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - -13. Use with the GNU Affero General Public License. ---------------------------------------------------- - - Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. - -14. Revised Versions of this License. -------------------------------------- - - The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License “or any later version†applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - - Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -[Warranty] -15. Disclaimer of Warranty. ---------------------------- - - 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. - -16. Limitation of Liability. ----------------------------- - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. - -17. Interpretation of Sections 15 and 16. ------------------------------------------ - - If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright†line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - - -Also add information on how to contact you by electronic and paper mail. - - - If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) - This program 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, your program's commands might be different; for a GUI interface, you would use an “about boxâ€. - - You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer†for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - - The GNU 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 Lesser General Public License instead of this License. But first, please read . - -[QueryBox] -Okna zapytaÅ„ - -W oknach dialogowych zapytaÅ„ można używać klawiszy strzaÅ‚ek lub pierwszych liter, aby wybrać element albo kliknąć na przycisku. - -[How to use help] -Jak używać pomocy - -Do obsÅ‚ugi przeglÄ…darki można używać klawiszy kursora lub myszy. NaciÅ›niÄ™cie strzaÅ‚ki w dół przeniesie do nastÄ™pnego elementu lub przewinie w dół. NaciÅ›niÄ™cie strzaÅ‚ki w górÄ™ przeniesie do poprzedniego elementu lub przewinie w górÄ™, NaciÅ›niÄ™cie strzaÅ‚ki w prawo podąży za zaznaczonym odnoÅ›nikiem. NaciÅ›niÄ™cie strzaÅ‚ki w lewo powróci do poprzednio odwiedzonego wÄ™zÅ‚a. - -JeÅ›li terminal nie obsÅ‚uguje klawiszy kursora, można używać spacji do przewijania do przodu i klawisz B , aby przewijać do tyÅ‚u. Można używać klawisza Tab , aby przechodzić do nastÄ™pnego elementu i klawisza Enter , aby podążyć za zaznaczonym odnoÅ›nikiem. Klawisz L może być używany do przechodzenia do poprzednio odwiedzonego wÄ™zÅ‚a. NaciÅ›niÄ™cie klawisza Esc zakoÅ„czy przeglÄ…darkÄ™ pomocy. - -Lewy przycisk myszy podąży za odnoÅ›nikiem lub przewinie ekran. Prawy przycisk myszy może być używany, aby przechodzić do poprzednio odwiedzonego wÄ™zÅ‚a. - -PeÅ‚na lista klawiszy przeglÄ…darki pomocy: - -Ogólne klawisze ruchuGeneral Movement Keys sÄ… akceptowane. - -Tab NastÄ™pny element. -M-Tab Poprzedni element. -Dół NastÄ™pny element lub przewijanie o wiersz w dół. -Góra Poprzedni element lub przewijanie o wiersz w górÄ™. -Prawo , Enter Podążanie za zaznaczonym odnoÅ›nikiem. -Lewo , l Ostatnio odwiedzony wÄ™zeÅ‚. -F1 Pomoc dla przeglÄ…darki pomocy. -N NastÄ™pny wÄ™zeÅ‚. -P Poprzedni wÄ™zeÅ‚. -C PrzejÅ›cie do Spisu treÅ›ci. -F10 , Esc ZakoÅ„czenie dziaÅ‚anie przeglÄ…darki pomocy. - -Local variables: -fill-column: 58 -end: diff --git a/recipes/wip/files/mc/source/doc/hlp/ru/Makefile.am b/recipes/wip/files/mc/source/doc/hlp/ru/Makefile.am deleted file mode 100644 index c7bd58eff3..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/ru/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -HLP_LANG=ru - -include ../hlp-lang-include.am diff --git a/recipes/wip/files/mc/source/doc/hlp/ru/Makefile.in b/recipes/wip/files/mc/source/doc/hlp/ru/Makefile.in deleted file mode 100644 index faf90778c8..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/ru/Makefile.in +++ /dev/null @@ -1,649 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/hlp/ru -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(hlpdir)" -DATA = $(hlp_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../hlp-lang-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -HLP_LANG = ru -MAN2HLP = $(top_builddir)/src/man2hlp/man2hlp -hlpdir = $(pkgdatadir)/help -hlp_DATA = mc.hlp.$(HLP_LANG) -EXTRA_DIST = xnc.hlp -CLEANFILES = $(hlp_DATA) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../hlp-lang-include.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) --gnu doc/hlp/ru/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/hlp/ru/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../hlp-lang-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-hlpDATA: $(hlp_DATA) - @$(NORMAL_INSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(hlpdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(hlpdir)" || 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)$(hlpdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(hlpdir)" || exit $$?; \ - done - -uninstall-hlpDATA: - @$(NORMAL_UNINSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(hlpdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(DATA) -installdirs: - for dir in "$(DESTDIR)$(hlpdir)"; 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: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-hlpDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-hlpDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-hlpDATA \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-hlpDATA - -.PRECIOUS: Makefile - - -mc.hlp.$(HLP_LANG): $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp $(MAN2HLP) - - $(MAN2HLP) $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp mc.hlp.$(HLP_LANG) - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/hlp/ru/xnc.hlp b/recipes/wip/files/mc/source/doc/hlp/ru/xnc.hlp deleted file mode 100644 index 0c2dcfc969..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/ru/xnc.hlp +++ /dev/null @@ -1,339 +0,0 @@ -[main] - lqwqk k k  - x x x . x . x  - x x x k lqu wqk k lqw tqk n  - x x x x x x x x x x x x x x  - v v v mqv v v v mqu v v mj - qqqqqqCommander qj  - -Ð’Ñ‹ ÑÐµÐ¹Ñ‡Ð°Ñ Ð²Ð¸Ð´Ð¸Ñ‚Ðµ главное окно интерактивной подÑказки программы GNU Midnight Commander . - -Чтобы узнать, как пользоватьÑÑ Ð¿Ð¾Ð´Ñказкой, нажмите клавишу EnterHow to use help, иначе переходите к перечню разделовContents подÑказки. - -Программа Midnight Commander поÑтавлÑетÑÑ ÐБСОЛЮТÐО БЕЗ ВСЯКИХ ГÐРÐÐТИЙГарантиÑ. Это Ñвободно раÑпроÑтранÑемое программное обеÑпечение, Ñозданное группой авторовAUTHORS. Ð’Ñ‹ можете передавать его другим при уÑловии ÑÐ¾Ð±Ð»ÑŽÐ´ÐµÐ½Ð¸Ñ Ñ‚Ñ€ÐµÐ±Ð¾Ð²Ð°Ð½Ð¸Ð¹ лицензии GNUÐ›Ð¸Ñ†ÐµÐ½Ð·Ð¸Ñ (оригинал на английÑком) (прочитайте неофициальный переводЛицензиÑ Ñтой лицензии). - -РуÑÑкий перевод текÑта подÑказки - КоÑтромин Ð’.Ð., 1999 г. - -[Ð›Ð¸Ñ†ÐµÐ½Ð·Ð¸Ñ (оригинал на английÑком)] - - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - - - Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for software and other kinds of works. - - The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. - - Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - - Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuseoccurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and modification follow. - - TERMS AND CONDITIONS - -0. Definitions. ---------------- - - “This License†refers to version 3 of the GNU General Public License. - - “Copyright†also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - - “The Program†refers to any copyrightable work licensed under this License. Each licensee is addressed as “youâ€. “Licensees†and “recipients†may be individuals or organizations. - - To “modify†a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version†of the earlier work or a work “based on†the earlier work. - - A “covered work†means either the unmodified Program or a work based on the Program. - - To “propagate†a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - - To “convey†a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays “Appropriate Legal Notices†to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - - -1. Source Code. ---------------- - - The “source code†for a work means the preferred form of the work for making modifications to it. “Object code†means any non-source form of a work. - - A “Standard Interface†means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - - The “System Libraries†of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Componentâ€, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - - The “Corresponding Source†for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - - The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - - The Corresponding Source for a work in source code form is -that same work. - -2. Basic Permissions. ---------------------- - - All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. --------------------------------------------------------------- - - No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. - - When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. ------------------------------ - - You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey,and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. --------------------------------------- - - You may convey a work based on the Program, or the modificationsto produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified it, and giving a relevant date. - b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all noticesâ€. - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. - - A compilation of a covered work with other separate and independent works, -which are not by their nature extensions of the covered work, and which are not -combined with it such as to form a larger program, in or on a volume of a -storage or distribution medium, is called an “aggregate†if the compilation and -its resulting copyright are not used to limit the access or legal rights of the -compilation's users beyond what the individual works permit. Inclusion of a -covered work in an aggregate does not cause this License to applyto the other -parts of the aggregate. - -6. Conveying Non-Source Forms. ------------------------------- - - You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: - - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - - A “User Product†is either (1) a “consumer productâ€, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used†refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - - “Installation Information†for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - - If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - - The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. --------------------- - - “Additional permissions†are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. - - All other non-permissive additional terms are considered “further restrictions†within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. ---------------- - - You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). - - However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - - Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. ---------------------------------------------- - - You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. - -10. Automatic Licensing of Downstream Recipients. -------------------------------------------------- - - Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. - - An “entity transaction†is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. ------------- - - A “contributor†is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor versionâ€. - - A contributor's “essential patent claims†are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control†includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - - In the following three paragraphs, a “patent license†is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant†such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - - If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying†means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - - A patent license is “discriminatory†if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. ------------------------------------- - - If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - -13. Use with the GNU Affero General Public License. ---------------------------------------------------- - - Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. - -14. Revised Versions of this License. -------------------------------------- - - The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License “or any later version†applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - - Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -[Warranty] -15. Disclaimer of Warranty. ---------------------------- - - 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. - -16. Limitation of Liability. ----------------------------- - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. - -17. Interpretation of Sections 15 and 16. ------------------------------------------ - - If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright†line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - - -Also add information on how to contact you by electronic and paper mail. - - - If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) - This program 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, your program's commands might be different; for a GUI interface, you would use an “about boxâ€. - - You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer†for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - - The GNU 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 Lesser General Public License instead of this License. But first, please read . - -[ЛицензиÑ] - -См. оригинальную верÑию. - -[QueryBox] -Диалоговые окна запроÑов - -Ð’ окнах запроÑов Ð´Ð»Ñ Ð²Ñ‹Ð±Ð¾Ñ€Ð° какого-либо варианта ответа (которые обычно задаютÑÑ Ð² виде Ñкранных кнопок) Ð’Ñ‹ можете иÑпользовать либо клавиши Ñо Ñтрелками, либо выбрать ответ путем Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Ñ Ð²Ñ‹Ð´ÐµÐ»ÐµÐ½Ð½Ð¾Ð¹ в названии кнопки буквой, либо щелкнув по нужной кнопке мышкой. - - -[How to use help] -Как пользоватьÑÑ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ - -При работе Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð¾Ð¹ Midnight Commander практичеÑки в любой момент можно обратитьÑÑ Ðº интерактивной подÑказке, вызов которой оÑущеÑтвлÑетÑÑ Ð½Ð°Ð¶Ð°Ñ‚Ð¸ÐµÐ¼ клавиши F1. Ð”Ð»Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð² окне проÑмотра подÑказки Ð’Ñ‹ можете иÑпользовать клавиши Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ ÐºÑƒÑ€Ñора (Ñтрелки) или мышь. Стрелка вниз вызывает переход к Ñледующей ÑÑылке (выделены голубым фоном) или Ñдвиг текÑта на одну Ñтроку вверх. Стрелка вверх вызывает переход к предыдущей ÑÑылке или Ñдвиг текÑта на одну Ñтроку вверх. Стрелка вправо вызывает переход по ÑÑылке, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð² данный момент выделена Ñиним фоном (Ñ‚ÐµÐºÑƒÑ‰Ð°Ñ ÑÑылка). По Ñтрелке влево проиÑходит переход к ранее проÑмотренным разделам подÑказки. - -ЕÑли Ваш терминал не поддерживает клавиши-Ñтрелки, Ð’Ñ‹ можете иÑпользовать клавишу пробела Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° к Ñледующей Ñтранице подÑказки и клавишу 'b' Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° к предыдущей Ñтранице. Клавиша TAB вызывает переход к Ñледующей ÑÑылке, а нажатие ENTER - переход по текущей ÑÑылке. При проÑмотре подÑказки программа запоминает поÑледовательноÑть переходов по ÑÑылкам и позволÑет вернутьÑÑ Ðº ранее проÑмотренным разделам, воÑпользовавшиÑÑŒ клавишей 'l' (last). Ðажатие на ESC вызывает выход из окна подÑказки. - -По щелчку левой клавиши мыши проиÑходит переход по ÑÑылке или перемещение по текÑту подÑказки. Щелчок правой кнопкой мыши иÑпользуетÑÑ Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´ к ранее проÑмотренным разделам. - -Полный ÑпиÑок управлÑющих комбинаций Ð´Ð»Ñ Ð¾ÐºÐ½Ð° проÑмотра подÑказки: - -Работают вÑе клавиши ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸ÐµÐ¼General Movement Keys. - -tab Переход на Ñледующую ÑÑылку. -M-tab Переход на предыдущую ÑÑылку. -down Переход на Ñледующую ÑÑылку или Ñмещение - текÑта на одну Ñтроку вверх. -up Переход на Ñледующую ÑÑылку или Ñмещение - текÑта на одну Ñтроку вниз. -right, enter Переход по текущей ÑÑылке. -left, l Переход к ранее проÑмотренным разделам. -F1 Помощь по иÑпользованию Ñамой подÑказки. -n Переход к Ñледующему разделу помощи. -p Переход к предыдущему разделу помощи. -c Переход к оглавлению подÑказки. -F10, esc Выход из окна проÑмотра подÑказки. - - - -Local variables: -fill-column: 58 -end: diff --git a/recipes/wip/files/mc/source/doc/hlp/sr/Makefile.am b/recipes/wip/files/mc/source/doc/hlp/sr/Makefile.am deleted file mode 100644 index 04e13d4732..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/sr/Makefile.am +++ /dev/null @@ -1,3 +0,0 @@ -HLP_LANG=sr - -include ../hlp-lang-include.am diff --git a/recipes/wip/files/mc/source/doc/hlp/sr/Makefile.in b/recipes/wip/files/mc/source/doc/hlp/sr/Makefile.in deleted file mode 100644 index 8d491d59f5..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/sr/Makefile.in +++ /dev/null @@ -1,649 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/hlp/sr -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(hlpdir)" -DATA = $(hlp_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../hlp-lang-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -HLP_LANG = sr -MAN2HLP = $(top_builddir)/src/man2hlp/man2hlp -hlpdir = $(pkgdatadir)/help -hlp_DATA = mc.hlp.$(HLP_LANG) -EXTRA_DIST = xnc.hlp -CLEANFILES = $(hlp_DATA) -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../hlp-lang-include.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) --gnu doc/hlp/sr/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/hlp/sr/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../hlp-lang-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-hlpDATA: $(hlp_DATA) - @$(NORMAL_INSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(hlpdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(hlpdir)" || 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)$(hlpdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(hlpdir)" || exit $$?; \ - done - -uninstall-hlpDATA: - @$(NORMAL_UNINSTALL) - @list='$(hlp_DATA)'; test -n "$(hlpdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(hlpdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(DATA) -installdirs: - for dir in "$(DESTDIR)$(hlpdir)"; 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: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-hlpDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-hlpDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-hlpDATA \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-hlpDATA - -.PRECIOUS: Makefile - - -mc.hlp.$(HLP_LANG): $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp $(MAN2HLP) - - $(MAN2HLP) $(top_builddir)/doc/man/$(HLP_LANG)/mc.1 $(srcdir)/xnc.hlp mc.hlp.$(HLP_LANG) - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/hlp/sr/xnc.hlp b/recipes/wip/files/mc/source/doc/hlp/sr/xnc.hlp deleted file mode 100644 index e478741ee9..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/sr/xnc.hlp +++ /dev/null @@ -1,338 +0,0 @@ - -[main] - - lqqk nq  - x x x  - x x lqk w w lqk tqk w w w w - x x x x tqu x x x x tqu x x - v x mqj v v mqj x v v v mqv - mqqqнаредник qqj  - -Ово је главни екран помоћи за ГÐУ-овог поноћног наредника . - -Да биÑте Ñазнали више о томе како да кориÑтите интерактивни ÑиÑтем помоћи потребно је да притиÑнете EnterHow to use help. Можете и одмах отићи на ÑадржајContents помоћи. - -ГÐУ-овог поноћног наредника Ñу напиÑали његови ауториAUTHORS. - -ГÐУ-ов поноћни наредник Ñе иÑпоручује БЕЗ ИКÐКВЕ ГÐРÐÐЦИЈЕWarranty. Ово је Ñлободни Ñофтвер, а ви Ñте позвани да га раÑподелите под одредбама ГÐУ-ове опште јавне лиценцеЛиценца (оригинал на енглеÑком). Погледајте и незваничан превод ГÐУ-ове ОЈЛ на ÑрпÑкиЛиценца (на ÑрпÑком). - -Превод Поноћног наредника и ове датотеке помоћи на ÑрпÑки: Страхиња Радић, <mr99164@alas.matf.bg.ac.yu > СРД `УликÑ', http://uliks.sourceforge.net - -[Лиценца (оригинал на енглеÑком)] - - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - - - Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for software and other kinds of works. - - The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. - - Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - - Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuseoccurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and modification follow. - - TERMS AND CONDITIONS - -0. Definitions. ---------------- - - “This License†refers to version 3 of the GNU General Public License. - - “Copyright†also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - - “The Program†refers to any copyrightable work licensed under this License. Each licensee is addressed as “youâ€. “Licensees†and “recipients†may be individuals or organizations. - - To “modify†a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version†of the earlier work or a work “based on†the earlier work. - - A “covered work†means either the unmodified Program or a work based on the Program. - - To “propagate†a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - - To “convey†a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays “Appropriate Legal Notices†to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - - -1. Source Code. ---------------- - - The “source code†for a work means the preferred form of the work for making modifications to it. “Object code†means any non-source form of a work. - - A “Standard Interface†means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - - The “System Libraries†of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Componentâ€, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - - The “Corresponding Source†for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - - The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - - The Corresponding Source for a work in source code form is -that same work. - -2. Basic Permissions. ---------------------- - - All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. --------------------------------------------------------------- - - No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. - - When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. ------------------------------ - - You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey,and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. --------------------------------------- - - You may convey a work based on the Program, or the modificationsto produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified it, and giving a relevant date. - b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all noticesâ€. - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. - - A compilation of a covered work with other separate and independent works, -which are not by their nature extensions of the covered work, and which are not -combined with it such as to form a larger program, in or on a volume of a -storage or distribution medium, is called an “aggregate†if the compilation and -its resulting copyright are not used to limit the access or legal rights of the -compilation's users beyond what the individual works permit. Inclusion of a -covered work in an aggregate does not cause this License to applyto the other -parts of the aggregate. - -6. Conveying Non-Source Forms. ------------------------------- - - You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: - - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - - A “User Product†is either (1) a “consumer productâ€, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used†refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - - “Installation Information†for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - - If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - - The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. --------------------- - - “Additional permissions†are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. - - All other non-permissive additional terms are considered “further restrictions†within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. ---------------- - - You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). - - However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - - Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. ---------------------------------------------- - - You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. - -10. Automatic Licensing of Downstream Recipients. -------------------------------------------------- - - Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. - - An “entity transaction†is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. ------------- - - A “contributor†is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor versionâ€. - - A contributor's “essential patent claims†are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control†includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - - In the following three paragraphs, a “patent license†is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant†such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - - If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying†means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - - A patent license is “discriminatory†if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. ------------------------------------- - - If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - -13. Use with the GNU Affero General Public License. ---------------------------------------------------- - - Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. - -14. Revised Versions of this License. -------------------------------------- - - The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License “or any later version†applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - - Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -[Warranty] -15. Disclaimer of Warranty. ---------------------------- - - 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. - -16. Limitation of Liability. ----------------------------- - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. - -17. Interpretation of Sections 15 and 16. ------------------------------------------ - - If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright†line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - - -Also add information on how to contact you by electronic and paper mail. - - - If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) - This program 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, your program's commands might be different; for a GUI interface, you would use an “about boxâ€. - - You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer†for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - - The GNU 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 Lesser General Public License instead of this License. But first, please read . - -[Лиценца (на ÑрпÑком)] - -See original License. - -[QueryBox] -Прозори упита - -У дијалозима упита можете да кориÑтите таÑтере Ñа Ñтрелицама или прво Ñлово да биÑте изабрали Ñтавку или можете да притиÑнете дугме миша када Ñе показивач налази изнад дугмета на екрану. - -[How to use help] -Како кориÑтити помоћ - -Можете да кориÑтите курÑорÑке таÑтере да биÑте Ñе кретали у оквиру прегледача помоћи. ПритиÑните Ñтрелицу надоле да биÑте Ñе померили на Ñледећу Ñтавку или клизали надоле. ПритиÑните Ñтрелицу нагоре да биÑте Ñе померили на претходну Ñтавку или клизали нагоре. ПритиÑните Ñтрелицу надеÑно да биÑте пратили текућу везу. ПритиÑните Ñтрелицу налево да биÑте Ñе вратили уназад у оквиру иÑторије поÑећених чворова. - -Ðко ваш терминал не подржава курÑорÑке таÑтере, можете да кориÑтите размакницу да биÑте клизали унапред и b (латинично б) да биÑте клизали уназад. КориÑтите таÑтер TAB да биÑте прешли на Ñледећу Ñтавку а ENTER да биÑте пратили текућу везу. ТаÑтер l (латинично л) Ñе може кориÑтити за враћање уназад у иÑторији чворова које Ñте поÑетили. ПритиÑните таÑтер ESC да биÑте изашли из прегледача помоћи. - -ПритиÑком на лево дугме миша ћете пратити везу или клизати. ПритиÑком на деÑно дугме миша ћете Ñе враћати уназад у иÑторији чворова. - -Потпун ÑпиÑак таÑтера прегледача помоћи: - -Дозвољене Ñу опште пречице за кретањеGeneral Movement Keys. - -tab Помери Ñе на Ñледећу Ñтавку. -M-tab Помери Ñе на претходну Ñтавку. -доле Помери Ñе на Ñлед. Ñтавку или клизај 1 ред надоле. -горе Помери Ñе на прет. Ñтавку или клизај 1 ред нагоре. -деÑно , enter Прати текућу везу. -лево , l Врати Ñе уназад у иÑторији поÑећених чворова. -F1 Прикажи помоћ око прегледача помоћи. -n Иди на Ñледећи чвор. -p Иди на претходни чвор. -c Иди на чвор `Ñадржај'. -F10 , esc Излаз из прегледача помоћи. - -Local variables: -fill-column: 58 -end: diff --git a/recipes/wip/files/mc/source/doc/hlp/xnc.hlp b/recipes/wip/files/mc/source/doc/hlp/xnc.hlp deleted file mode 100644 index c4c4ec4364..0000000000 --- a/recipes/wip/files/mc/source/doc/hlp/xnc.hlp +++ /dev/null @@ -1,331 +0,0 @@ - -[main] - lqwqk k k  - x x x . x . x  - x x x k lqu wqk k lqw tqk n  - x x x x x x x x x x x x x x  - v v v mqv v v v mqu v v mj - qqqqqqCommander qj  - -This is the main help screen for GNU Midnight Commander . - -To learn more on how to use the interactive help facility just press EnterHow to use help. You may want to go directly to the help contentsContents. - -GNU Midnight Commander is written by its authorsAUTHORS. - -GNU Midnight Commander comes with ABSOLUTELY NO WARRANTYWarranty. This is free software, and you are welcome to redistribute it under terms of GNU General Public LicenseLicense. - -[License] - - GNU GENERAL PUBLIC LICENSE - Version 3, 29 June 2007 - -Copyright © 2007 Free Software Foundation, Inc. - - - Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. - - Preamble - - The GNU General Public License is a free, copyleft license for software and other kinds of works. - - The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. 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 them 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 prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. - - For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. 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. - - Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. - - For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. - - Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuseoccurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. - - Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. - - The precise terms and conditions for copying, distribution and modification follow. - - TERMS AND CONDITIONS - -0. Definitions. ---------------- - - “This License†refers to version 3 of the GNU General Public License. - - “Copyright†also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. - - “The Program†refers to any copyrightable work licensed under this License. Each licensee is addressed as “youâ€. “Licensees†and “recipients†may be individuals or organizations. - - To “modify†a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version†of the earlier work or a work “based on†the earlier work. - - A “covered work†means either the unmodified Program or a work based on the Program. - - To “propagate†a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. - - To “convey†a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. - - An interactive user interface displays “Appropriate Legal Notices†to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. - - -1. Source Code. ---------------- - - The “source code†for a work means the preferred form of the work for making modifications to it. “Object code†means any non-source form of a work. - - A “Standard Interface†means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. - - The “System Libraries†of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Componentâ€, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. - - The “Corresponding Source†for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. - - The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. - - The Corresponding Source for a work in source code form is -that same work. - -2. Basic Permissions. ---------------------- - - All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. - - You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. - - Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. - -3. Protecting Users' Legal Rights From Anti-Circumvention Law. --------------------------------------------------------------- - - No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. - - When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. - -4. Conveying Verbatim Copies. ------------------------------ - - You may convey 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; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. - - You may charge any price or no price for each copy that you convey,and you may offer support or warranty protection for a fee. - -5. Conveying Modified Source Versions. --------------------------------------- - - You may convey a work based on the Program, or the modificationsto produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: - - a) The work must carry prominent notices stating that you modified it, and giving a relevant date. - b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all noticesâ€. - c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. - d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. - - A compilation of a covered work with other separate and independent works, -which are not by their nature extensions of the covered work, and which are not -combined with it such as to form a larger program, in or on a volume of a -storage or distribution medium, is called an “aggregate†if the compilation and -its resulting copyright are not used to limit the access or legal rights of the -compilation's users beyond what the individual works permit. Inclusion of a -covered work in an aggregate does not cause this License to applyto the other -parts of the aggregate. - -6. Conveying Non-Source Forms. ------------------------------- - - You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: - - a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. - b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. - c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. - d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. - e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. - - A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. - - A “User Product†is either (1) a “consumer productâ€, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used†refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. - - “Installation Information†for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. - - If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). - - The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. - - Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. - -7. Additional Terms. --------------------- - - “Additional permissions†are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. - - When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. - - Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: - - a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or - b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or - c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or - d) Limiting the use for publicity purposes of names of licensors or authors of the material; or - e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or - f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. - - All other non-permissive additional terms are considered “further restrictions†within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. - - If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. - - Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. - -8. Termination. ---------------- - - You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). - - However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. - - Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. - - Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. - -9. Acceptance Not Required for Having Copies. ---------------------------------------------- - - You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. - -10. Automatic Licensing of Downstream Recipients. -------------------------------------------------- - - Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. - - An “entity transaction†is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. - - You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. - -11. Patents. ------------- - - A “contributor†is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor versionâ€. - - A contributor's “essential patent claims†are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control†includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. - - Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. - - In the following three paragraphs, a “patent license†is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant†such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. - - If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying†means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. - - If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. - - A patent license is “discriminatory†if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. - - Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. - -12. No Surrender of Others' Freedom. ------------------------------------- - - If 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 convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. - -13. Use with the GNU Affero General Public License. ---------------------------------------------------- - - Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. - -14. Revised Versions of this License. -------------------------------------- - - The Free Software Foundation may publish revised and/or new versions of the GNU 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 that a certain numbered version of the GNU General Public License “or any later version†applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. - - If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. - - Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. - -[Warranty] -15. Disclaimer of Warranty. ---------------------------- - - 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. - -16. Limitation of Liability. ----------------------------- - - IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 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. - -17. Interpretation of Sections 15 and 16. ------------------------------------------ - - If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. - - END OF TERMS AND CONDITIONS - - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright†line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - - -Also add information on how to contact you by electronic and paper mail. - - - If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: - - Copyright (C) - This program 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, your program's commands might be different; for a GUI interface, you would use an “about boxâ€. - - You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer†for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . - - The GNU 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 Lesser General Public License instead of this License. But first, please read . - -[QueryBox] -Query boxes - -In the query dialog box you can use the arrow keys or the first letter to select an item or click with the mouse on the button. - -[How to use help] -How to use help - -You can use the cursor keys or mouse to navigate in the help viewer. Press down arrow to move to the next item or scroll down. Press up arrow to move to the previous item or scroll up. Press right arrow to follow the current link. Press left arrow to go back in the history of nodes that you have visited. - -If you terminal doesn't support the cursor keys you can use the space bar to scroll forward and the b (back) key scroll back. Use the TAB key to move to the next item and press ENTER to follow the current link. The l (last) key can be used to go back in the history of nodes you have visited. Press ESC to exit the help viewer. - -The left mouse button will follow the link or scroll. The right mouse button can be used to go back in the history of nodes. - -The full key list of the help viewer: - -General movement keysGeneral Movement Keys are accepted. - -tab Move to the next item. -M-tab Move to the previous item. -down Move to the next item or scroll a line down. -up Move to the previous item or scroll a line up. -right , enter Follow the current link. -left , l Go back in the history of visited nodes. -F1 Show the help for the help viewer. -n Go to the next node. -p Go to the previous node. -c Go to the Contents node. -F10 , esc Exit the help viewer. - -Local variables: -fill-column: 58 -end: diff --git a/recipes/wip/files/mc/source/doc/man/Makefile.am b/recipes/wip/files/mc/source/doc/man/Makefile.am deleted file mode 100644 index 0dbd7ff285..0000000000 --- a/recipes/wip/files/mc/source/doc/man/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -DIST_SUBDIRS = es hu it pl ru sr -if USE_NLS -SUBDIRS = $(DOC_LINGUAS) -endif - -man_MANS = mc.1 mcview.1 - -if USE_INTERNAL_EDIT -man_MANS += mcedit.1 -endif - -if USE_DIFF -man_MANS += mcdiff.1 -endif - -CLEANFILES = $(man_MANS) - -EXTRA_DIST = \ - date-of-man-include.am \ - mc.1.in \ - mcedit.1.in \ - mcview.1.in \ - mcdiff.1.in - -DATE_LANG=en_US.UTF-8 -DATE_FORMAT=%B %Y - -include date-of-man-include.am diff --git a/recipes/wip/files/mc/source/doc/man/Makefile.in b/recipes/wip/files/mc/source/doc/man/Makefile.in deleted file mode 100644 index 4459f6efab..0000000000 --- a/recipes/wip/files/mc/source/doc/man/Makefile.in +++ /dev/null @@ -1,887 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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@ -@USE_INTERNAL_EDIT_TRUE@am__append_1 = mcedit.1 -@USE_DIFF_TRUE@am__append_2 = mcdiff.1 -subdir = doc/man -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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)" -NROFF = nroff -MANS = $(man_MANS) -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 \ - distdir distdir-am -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)` -am__DIST_COMMON = $(srcdir)/Makefile.in \ - $(srcdir)/date-of-man-include.am -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -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" -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -DIST_SUBDIRS = es hu it pl ru sr -@USE_NLS_TRUE@SUBDIRS = $(DOC_LINGUAS) -man_MANS = mc.1 mcview.1 $(am__append_1) $(am__append_2) -CLEANFILES = $(man_MANS) -EXTRA_DIST = \ - date-of-man-include.am \ - mc.1.in \ - mcedit.1.in \ - mcview.1.in \ - mcdiff.1.in - -DATE_LANG = en_US.UTF-8 -DATE_FORMAT = %B %Y -SED_PARAMETERS = \ - -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \ - -e "s/%MAN_VERSION%/@MAN_VERSION@/g" \ - -e "s{%sysconfdir%{@sysconfdir@{g" \ - -e "s{%libexecdir%{@libexecdir@{g" \ - -e "s{%pkglibexecdir%{$(libexecdir)/@PACKAGE@{g" \ - -e "s{%pkgdatadir%{$(datadir)/@PACKAGE@{g" - -MAN_DATE_CMD = \ - LC_ALL=$(DATE_LANG) @PERL_FOR_BUILD@ -CS -MPOSIX -e '\ - @fi=lstat("'$${MAN_FILE}'"); \ - print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null - -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/date-of-man-include.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) --gnu doc/man/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/man/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/date-of-man-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -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) - -# 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" -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 -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 - @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 -check-am: all-am -check: check-recursive -all-am: Makefile $(MANS) -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -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 clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: install-man - -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 Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man1 - -.MAKE: $(am__recursive_targets) install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ - check-am clean clean-generic clean-libtool cscopelist-am ctags \ - ctags-am distclean distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-generic \ - mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \ - uninstall-am uninstall-man uninstall-man1 - -.PRECIOUS: Makefile - - -mc.1: $(srcdir)/mc.1.in - MAN_FILE='$(srcdir)/mc.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mc.1.in' > '$@' - -mcview.1: $(srcdir)/mcview.1.in - MAN_FILE='$(srcdir)/mcview.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mcview.1.in' > '$@' - -@USE_INTERNAL_EDIT_TRUE@mcedit.1: $(srcdir)/mcedit.1.in -@USE_INTERNAL_EDIT_TRUE@ MAN_FILE='$(srcdir)/mcedit.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_INTERNAL_EDIT_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcedit.1.in' > '$@' - -@USE_DIFF_TRUE@mcdiff.1: $(srcdir)/mcdiff.1.in -@USE_DIFF_TRUE@ MAN_FILE='$(srcdir)/mcdiff.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_DIFF_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcdiff.1.in' > '$@' - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/man/date-of-man-include.am b/recipes/wip/files/mc/source/doc/man/date-of-man-include.am deleted file mode 100644 index ede02e478b..0000000000 --- a/recipes/wip/files/mc/source/doc/man/date-of-man-include.am +++ /dev/null @@ -1,32 +0,0 @@ -SED_PARAMETERS = \ - -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \ - -e "s/%MAN_VERSION%/@MAN_VERSION@/g" \ - -e "s{%sysconfdir%{@sysconfdir@{g" \ - -e "s{%libexecdir%{@libexecdir@{g" \ - -e "s{%pkglibexecdir%{$(libexecdir)/@PACKAGE@{g" \ - -e "s{%pkgdatadir%{$(datadir)/@PACKAGE@{g" - -MAN_DATE_CMD = \ - LC_ALL=$(DATE_LANG) @PERL_FOR_BUILD@ -CS -MPOSIX -e '\ - @fi=lstat("'$${MAN_FILE}'"); \ - print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null - -mc.1: $(srcdir)/mc.1.in - MAN_FILE='$(srcdir)/mc.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mc.1.in' > '$@' - -mcview.1: $(srcdir)/mcview.1.in - MAN_FILE='$(srcdir)/mcview.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mcview.1.in' > '$@' - -if USE_INTERNAL_EDIT -mcedit.1: $(srcdir)/mcedit.1.in - MAN_FILE='$(srcdir)/mcedit.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mcedit.1.in' > '$@' -endif - -if USE_DIFF -mcdiff.1: $(srcdir)/mcdiff.1.in - MAN_FILE='$(srcdir)/mcdiff.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mcdiff.1.in' > '$@' -endif diff --git a/recipes/wip/files/mc/source/doc/man/es/Makefile.am b/recipes/wip/files/mc/source/doc/man/es/Makefile.am deleted file mode 100644 index 22a2d1d6ac..0000000000 --- a/recipes/wip/files/mc/source/doc/man/es/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -LANG=es -mandir = @mandir@/$(LANG) - -EXTRA_DIST = mc.1.in - -man_MANS = mc.1 - -CLEANFILES = $(man_MANS) - -DATE_LANG=es_ES.UTF-8 -DATE_FORMAT=%B de %Y - -include ../date-of-man-include.am diff --git a/recipes/wip/files/mc/source/doc/man/es/Makefile.in b/recipes/wip/files/mc/source/doc/man/es/Makefile.in deleted file mode 100644 index 5b780b4241..0000000000 --- a/recipes/wip/files/mc/source/doc/man/es/Makefile.in +++ /dev/null @@ -1,701 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/man/es -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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)" -NROFF = nroff -MANS = $(man_MANS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../date-of-man-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@/$(LANG) -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -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@ -LANG = es -EXTRA_DIST = mc.1.in -man_MANS = mc.1 -CLEANFILES = $(man_MANS) -DATE_LANG = es_ES.UTF-8 -DATE_FORMAT = %B de %Y -SED_PARAMETERS = \ - -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \ - -e "s/%MAN_VERSION%/@MAN_VERSION@/g" \ - -e "s{%sysconfdir%{@sysconfdir@{g" \ - -e "s{%libexecdir%{@libexecdir@{g" \ - -e "s{%pkglibexecdir%{$(libexecdir)/@PACKAGE@{g" \ - -e "s{%pkgdatadir%{$(datadir)/@PACKAGE@{g" - -MAN_DATE_CMD = \ - LC_ALL=$(DATE_LANG) @PERL_FOR_BUILD@ -CS -MPOSIX -e '\ - @fi=lstat("'$${MAN_FILE}'"); \ - print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../date-of-man-include.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) --gnu doc/man/es/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/man/es/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../date-of-man-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -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) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(MANS) -installdirs: - for dir in "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man1 - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-man \ - uninstall-man1 - -.PRECIOUS: Makefile - - -mc.1: $(srcdir)/mc.1.in - MAN_FILE='$(srcdir)/mc.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mc.1.in' > '$@' - -mcview.1: $(srcdir)/mcview.1.in - MAN_FILE='$(srcdir)/mcview.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mcview.1.in' > '$@' - -@USE_INTERNAL_EDIT_TRUE@mcedit.1: $(srcdir)/mcedit.1.in -@USE_INTERNAL_EDIT_TRUE@ MAN_FILE='$(srcdir)/mcedit.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_INTERNAL_EDIT_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcedit.1.in' > '$@' - -@USE_DIFF_TRUE@mcdiff.1: $(srcdir)/mcdiff.1.in -@USE_DIFF_TRUE@ MAN_FILE='$(srcdir)/mcdiff.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_DIFF_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcdiff.1.in' > '$@' - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/man/es/mc.1.in b/recipes/wip/files/mc/source/doc/man/es/mc.1.in deleted file mode 100644 index a1fdc2fc18..0000000000 --- a/recipes/wip/files/mc/source/doc/man/es/mc.1.in +++ /dev/null @@ -1,4205 +0,0 @@ -.\" -*- mode: troff; coding: UTF-8 -*- -.\" Traducido el 6 de septiembre de 1998 por -.\" Francisco Gabriel Aroca Tapia -.\" -.\" Actualizado desde el 6 agosto de 2002 por -.\" David H. Martín Alonso -.\" -.\"TOPICS "Ãndice de Contenidos:" -.TH MC 1 "%DATE_OF_MAN_PAGE%" "MC Versión %MAN_VERSION%" "GNU Midnight Commander" -.\"SKIP_SECTION" -.SH "NOMBRE" -mc \- entorno visual para sistemas tipo Unix. -.\"SKIP_SECTION" -.SH "SINOPSIS" -.B mc -.RB [ \-abcCdfFhPstuUVx "] [" \-l -.IR reg "] [" dir1 " [" dir2 ]] -.RB [ \-e -.RI [ arch "] " ... ] -.RB [ \-v -.IR arch ] -.\"NODE "DESCRIPTION" -.SH "DESCRIPCIÓN" -"Midnight Commander" (Comandante de Medianoche) es -un navegador de directorios/gestor de archivos para -sistemas operativos tipo Unix. -.\"NODE "OPTIONS" -.\"DONT_SPLIT" -.SH "OPCIONES" -.TP -.I \-a, \-\-stickchars -Deshabilita el uso de caracteres gráficos para el dibujo de líneas. -.TP -.I \-b, \-\-nocolor -Fuerza el uso de la pantalla de Blanco y Negro. -.TP -.I \-c, \-\-color -Fuerza el uso del modo color. Véase la sección -.\"LINK2" -Colores -.\"Colors" -para más información. -.TP -.I \-C arg, \-\-colors=arg -Usado para especificar un juego de colores diferentes desde la línea de -órdenes. El formato de arg está documentado en la sección -.\"LINK2" -Colores\&. -.\"Colors" -.TP -.I \-\-configure\-options -Muestra opciones de configuración compiladas. -.TP -.I \-d, \-\-nomouse -Deshabilita el soporte de ratón. -.TP -.I \-e [arch], \-\-edit[=arch] -Iniciar el editor interno. Si se indica un archivo, editarlo. Véase la -página de manual de -.BR "mcedit (1)" . -.TP -.I \-f, \-\-datadir -Muestra las rutas de búsqueda compiladas para archivos de Midnight Commander. -.TP -.I \-F, \-\-datadir\-info -Muestra información más extensa sobre las rutas de búsqueda compiladas -en Midnight Commander. -.TP -.I \-g, \-\-oldmouse -Fuerza el uso de ratón en modo de seguimiento «normal». Se usa para -terminales compatibles con xterm (tmux/screen). -.TP -.I \-k, \-\-resetsoft -Restablece las softkeys a su valor por defecto según la base de datos de -termcap/terminfo. Solo útil en terminales HP cuando las teclas de función -no funcionan. -.TP -.I \-K arch, \-\-keymap=arch -Carga desde un archivo la configuración de teclas para la línea de órdenes. -.TP -.I \-l reg, \-\-ftplog=reg -Guarda el diálogo FTPfs con el servidor en el archivo. -.TP -.I \-\-nokeymap -No cargar asociaciones de teclas desde ningún archivo, utilizar las -teclas nativas del sistema. -.TP -.I \-P arch, \-\-printwd=arch -Al salir del programa, Midnight Commander registrará el último -directorio de trabajo en el archivo indicado. Esta opción no debe ser -usada directamente, sino desde un guión de shell adecuado, para dejar -como directorio activo el directorio que estaba en uso dentro de -Midnight Commander. Consúltese en los archivos -.B %pkglibexecdir%/mc.sh -(usuarios de bash y zsh) y -.B %pkglibexecdir%/mc.csh -(usuarios de tcsh) la manera de definir -.B mc -como un alias para el correspondiente guión de shell. -.TP -.I \-s, \-\-slow -Activa el modo para terminales lentos. En este modo el programa no -dibuja bordes con líneas de caracteres y desactiva el modo detallado. -Si no se rellena la sección [Lines] el marco pseudo\-gráfico estará -formado por espacios; en caso contrario el marco se contruye con -caracteres de texto según los parámetros siguientes: -.TP -.B lefttop -esquina superior izquierda -.TP -.B righttop -esquina superior derecha -.TP -.B centertop -cruz superior central -.TP -.B centerbottom -cruz inferior central -.TP -.B leftbottom -esquina inferior izquierda -.TP -.B rightbottom -esquina inferior derecha -.TP -.B leftmiddle -cruz central izquierda -.TP -.B rightmiddle -cruz central derecha -.TP -.B centermiddle -cruz central -.TP -.B horiz -línea horizontal por defecto -.TP -.B vert -línea vertical por defecto -.TP -.B thinhoriz -línea horizontal fina -.TP -.B thinvert -línea vertical fina -.TP -.I \-S arg, \-\-skin=arg -Permite elegir un «skin» o apariencia para mc. La configuración de las -características de visualización (colores, líneas, etc.) se explica -detalladamente en la sección -.\"LINK2" -Skins\&. -.\"Skins" -.TP -.I \-t, \-\-termcap -Usado solo si el código fue compilado con S\-Lang y terminfo: hace que -Midnight Commander use el valor de la variable de entorno -.B TERMCAP -para obtener la información del terminal, en vez de la base de datos de -terminales del sistema. -.TP -.I \-u, \-\-nosubshell -Deshabilita el uso de shell concurrente (solo tiene sentido si este -Midnight Commander fue construido con soporte de shell concurrente). -.TP -.I \-U, \-\-subshell -Habilita el uso de shell concurrente (solo tiene sentido si este -Midnight Commander fue construido con soporte de subshell opcional). -.TP -.I \-v arch, \-\-view=arch -Iniciar el visor interno para ver el archivo indicado. Véase la página -de manual de -.BR "mcview (1)" . -.TP -.I \-V, \-\-version -Muestra la versión del programa. -.TP -.I \-x, \-\-xterm -Fuerza el modo xterm. Usado cuando se ejecuta en terminales con características de xterm (dos -modos de pantalla, y pueden enviar secuencias de escape de ratón). -.TP -.I \-X, \-\-no\-x11 -No utilizar X11 para obtener el estado de Mayús, Ctrl, Alt. -.PP -Si se especifican los dos directorios, el primer nombre se usará para el directorio a mostrar -en el panel activo; el segundo nombre para el directorio a mostrar en el otro panel. -.PP -Si solo se especifica un directorio, el nombre se usará para el directorio a mostrar en el -panel activo; el valor de «other_dir» de panels.ini será el nombre del directorio mostrado -en el panel pasivo. -.PP -Si no se especifica ningún directorio, el directorio actual se mostrará en el -panel activo; el valor de «other_dir» de panels.ini será el nombre del directorio mostrado -en el panel pasivo. -.\"NODE "Overview" -.SH "Introducción" -La pantalla de Midnight Commander está divida en cuatro partes. La mayor -parte de la pantalla está ocupada por los dos paneles de directorio. Por defecto, -la segunda línea más inferior de la pantalla es la línea de órdenes del sistema, y -la línea inferior muestra las etiquetas de las teclas de función. La línea superior es la -.\"LINK2" -barra de menú\&. -.\"Menu Bar" -La línea de la barra de menú podría no ser visible, pero aparece si pulsamos -en la primea línea de la pantalla con el ratón o pulsamos la tecla F9. -.PP -Midnight Commander pone a la vista dos directorios al mismo -tiempo. Uno de los paneles es el panel actual (hay una barra de selección -en el panel actual). La mayoría de las operaciones tienen lugar en el -panel actual. Algunas operaciones con archivos como Renombrar y Copiar utilizan -por defecto el directorio del panel no seleccionado como destino, pero -siempre solicitan una confirmación previa y podemos cambiarlo. Para más -información, ver las secciones sobre los -.\"LINK2" -Paneles de Directorio\&, -.\"Directory Panels" -los -.\"LINK2" -Menús Izquierdo y Derecho -.\"Left and Right Menus" -y el -.\"LINK2" -Menú de Archivo\&. -.\"File Menu" -.PP -Podemos ejecutar comandos del sistema desde el Midnight Commander simplemente -escribiéndolos. Todo lo que escribamos aparecerá en la línea de órdenes del sistema -y cuando pulsemos -.IR Intro , -Midnight Commander ejecutará estos comandos; ver las secciones -.\"LINK2" -Línea de Órdenes del Sistema -.\"Shell Command Line" -y -.\"LINK2" -Teclas de la Línea de Entrada -.\"Input Line Keys" -para aprender más sobre la línea de órdenes. -.\"NODE "Mouse Support" -.SH "Soporte de Ratón" -Se puede utilizar Midnight Commander con un ratón o mouse. Se activa cuando -estamos ejecutándolo en un entorno gráfico con un terminal tipo -.B xterm(1) -(funciona incluso si realizamos una conexión de telnet, ssh o rlogin a -otra máquina desde el xterm) o si estamos ejecutándolo en una consola Linux -y tenemos el servidor -.B gpm -cargado. -.PP -Cuando pulsamos el botón izquierdo del ratón sobre un archivo en los paneles -de directorios, ese archivo es seleccionado; si lo hacemos con el botón derecho, -el archivo es marcado (o desmarcado, dependiendo del estado previo). -.PP -Una doble pulsación sobre un archivo intentará ejecutar el comando si se trata de -un programa ejecutable; y si la extensión del archivo tiene un programa -.\"LINK2" -asociado a esa extensión\&, -.\"Edit Extension File" -se ejecuta el programa especificado. -.PP -Además, es posible ejecutar los comandos asignados a las teclas de función -pulsando con el ratón sobre las etiquetas de la línea inferior de la pantalla. -.PP -El valor por defecto de auto repetición para los botones del ratón es 400 -milisegundos. Este valor se puede modificar editando el archivo -.\"LINK2" -\&~/.config/mc/ini -.\"Save Setup" -y cambiando el parámetro -.IR mouse_repeat_rate . -.PP -Si estamos ejecutando Midnight Commander con soporte para ratón, podemos -recuperar el comportamiento habitual del ratón (cortar y pegar texto) -manteniendo pulsada la tecla Mayúsculas. -.SH "" -.\"NODE "Keys" -.SH "Teclas" -Algunos comandos en Midnight Commander implican el uso de las teclas -.I Control -(etiquetada habitualmente CTRL o CTL) y -.I Meta -(identificada como ALT o incluso Compose). En este manual usaremos las -siguientes abreviaturas: -.TP -.B Ctrl\- -significa mantener pulsada la tecla Control mientras se pulsa el carácter -. Así, Ctrl\-f sería: manteniendo pulsada la tecla Control teclear f. -.TP -.B Alt\- -significa mantener pulsada la tecla Alt o Meta mientras pulsamos el -carácter . Si no hay tecla Alt ni Meta, pulsar -.IR Esc , -soltar, y entonces pulsar el carácter . -.TP -.B Mayús\- -significa mantener pulsada la tecla de Mayúsculas (o Shift) y teclear -. -.PP -Todas las líneas de entrada en Midnight Commander usan una aproximación -a las asociaciones de teclas del editor GNU Emacs. -.PP -Se pueden redefinir las asociaciones de las teclas. El resto de los -comportamientos de las teclas que se describen aquí hacen referencia al -comportamiento original. Para más información, -véase la sección sobre -.\"LINK2" -.IR "redefinición de teclas" . -.\"Keys_redefine" -.PP -Hay bastantes secciones que hablan acerca de las teclas. Las siguientes -son las más importantes. -.PP -La sección -.\"LINK2" -Menú de Archivo -.\"File Menu" -documenta los atajos de teclado para los comandos que aparecen en -el Menú de Archivo. Esta sección incluye las teclas de función. La mayor parte -de esos comandos realizan alguna acción, normalmente sobre el archivo seleccionado -o sobre los archivos marcados. -.PP -La sección -.\"LINK2" -Paneles de Directorio -.\"Directory Panels" -documenta las teclas que seleccionan un archivo o marcan archivos como -objetivo de una acción posterior (la acción normalmente es una del -menú de archivo). -.PP -La sección -.\"LINK2" -Línea de Órdenes del Sistema -.\"Shell Command Line" -lista las teclas que son usadas para introducir o editar líneas de -comandos. La mayor parte de ellas copian nombres de archivos y demás desde -los paneles de directorio a la línea de órdenes (para evitar un tecleado excesivo) -o acceden al historial de la línea de órdenes. -.PP -.\"LINK2" -Teclas de línea de Entrada -.\"Input Line Keys" -Son usadas para editar líneas de entrada. Esto implica la línea de órdenes -y las líneas de entrada en las ventanas de preguntas. -.\"NODE " Keys_redefine" -.SH " Redefinición de teclas" -La función de ciertas teclas se puede alterar a partir de un mapa de teclado -almacenado en un archivo externo. Inicialmente el programa asigna esas funciones -según el mapa definido en el código fuente. Posteriormente se cargan siempre -los archivos -.B %pkgdatadir%/mc.keymap -y -.BR %sysconfdir%/mc/mc.keymap , -reasignando en el orden marcado las definiciones anteriores. Se cargan después -posibles mapas de teclado creados por el usuario atendiendo por orden de prioridad -a: -.IP -.br -1) Opción de ejecución en línea de órdenes -.B \-K -o -.B \-\-keymap= -.br -2) Variable de entorno -.B MC_KEYMAP -.br -3) Parámetro -.B keymap -en la sección -.B [Midnight\-Commander] -del archivo de configuración. -.br -4) Archivo -.B ~/.config/mc/mc.keymap -.br -.PP -La opción de línea de órdenes, la variable de entorno y el parámetro en el -archivo de configuración pueden proporcionar la ruta absoluta al archivo -de mapa de teclado (con o sin la extensión .keymap). En caso contrario -se procede a realizar una búsqueda por directorios hasta encontrarlo en: -.IP -.br -1) -.B ~/.config/mc -.br -2) -.B %sysconfdir%/mc/ -.br -3) -.B %pkgdatadir%/ -.\"NODE " Miscellaneous Keys" -.SH " Otras Teclas" -Se incluyen aquí las teclas que no encajan en ninguna categoría concreta: -.PP -.B Intro. -Si hay algún texto en la línea de órdenes (la de la parte inferior de -los paneles), entonces ese comando es ejecutado. Si no hay texto en la línea -de comandos entonces si la barra de selección está situada sobre un directorio -Midnight Commander realiza un -.B chdir(2) -al directorio seleccionado y recarga la información en el panel; -si la selección es un archivo ejecutable entonces es ejecutado. Por último, -si la extensión del archivo seleccionado coincide con una de las -extensiones en el -.\"LINK2" -archivo de extensiones -.\"Edit Extension File" -entonces se ejecuta la aplicación correspondiente. -.TP -.B Ctrl\-l -redibuja toda la pantalla de Midnight Commander. -.TP -.B Ctrl\-x c -.\"LINK2" -Cambiar permisos -.\"Chmod" -de un archivo o un conjunto de archivos marcados. -.TP -.B Ctrl\-x o -.\"LINK2" -Cambiar dueño -.\"Chown" -del archivo actual o de los archivos marcados. -.TP -.B Ctrl\-x l -crea enlaces. -.TP -.B Ctrl\-x s -crea enlaces simbólicos con rutas absolutas. -.TP -.B Ctrl\-x v -crea enlaces simbólicos con rutas relativas. Para más información -sobre enlaces simbólicos véase la sección -.\"LINK2" -Menú de Archivo\&. -.\"File Menu" -.TP -.B Ctrl\-x Ctrl\-s -edita enlaces simbólicos. -.TP -.B Ctrl\-x i -cambia el panel opuesto al modo de información. -.TP -.B Ctrl\-x q -cambia el panel opuesto al modo de vista rápida. -.TP -.B Ctrl\-x ! -ejecuta -.\"LINK2" -búsquedas externas\&. -.\"External panelize" -.TP -.B Ctrl\-x h -añade el sitio actual a la lista de -.\"LINK2" -favoritos\&. -.\"Hotlist" -.TP -.B Alt\-! -ejecuta una orden del sistema y muestra su salida en el -.\"LINK2" -visor de archivos\&. -.\"Internal File Viewer" -.TP -.B Alt\-? -.\"LINK2" -buscar archivos\&. -.\"Find File" -.TP -.B Alt\-c -permite -.\"LINK2" -cambiar de directorio\&. -.\"Quick cd" -.TP -.B Ctrl\-o -en la consola de Linux o FreeBSD o bajo un xterm, se muestra la salida -de la orden anterior. En la consola de Linux, Midnight Commander usa un -programa externo (cons.saver) para controlar la copia y restauración de -la pantalla. -.PP -Cuando se haya creado Midnight Commander con soporte de subshell -incluido, podemos pulsar -.I Ctrl\-o -en cualquier momento y volver a la pantalla principal; -para volver a nuestra aplicación bastará con volver a pulsar -.IR Ctrl\-o . -Si tenemos una aplicación suspendida en esta situación, no podremos -ejecutar otros programas desde Midnight Commander hasta que terminemos -la aplicación suspendida. -.\"NODE " Directory Panels" -.SH " Paneles de Directorio" -Esta sección enumera las teclas que operan en los paneles de directorio. -Si queremos saber cómo cambiar la apariencia de los paneles, deberemos -echar un vistazo a la sección -.\"LINK2" -Menús Izquierdo y Derecho\&. -.\"Left and Right Menus" -.TP -.B Tab, Ctrl\-i -cambia el panel actual. El panel activo deja de serlo y el no activo -pasa a ser el nuevo panel activo. La barra de selección se mueve del -antiguo panel al nuevo, desaparece de aquel y aparece en este. -.TP -.B Insertar, Ctrl\-t -para marcar archivos (y/o directorios) como seleccionados podemos usar -la tecla -.I insertar -(secuencia kich1 de terminfo). Para deseleccionar, -basta repetir la operación sobre los archivos y/o directorios antes -marcados. -.TP -.B Alt\-e -permite mostrar nombres en el panel con otra codificación de caracteres. -Los nombres se convierten a la codificación del sistema para mostrarlos. -Para desactivar esta recodificación basta seleccionar la entrada (..) -para el directorio superior. Para cancelar las conversiones en cualquier -directorio seleccionar -.I «Sin traducción» -en el diálogo de selección de código. -.TP -.B Alt\-g, Alt\-r, Alt\-j -usadas para seleccionar el archivo superior en un panel, el archivo central y el inferior del -panel, respectivamente. -.TP -.B Alt\-t -rota el listado de pantalla actual para mostrar el siguiente modo -de listado. Con esto es posible intercambiar rápidamente de un listado -completo al regular o breve, así como al modo de listado definido por el usuario. -.TP -.B Ctrl\-\\\\ (control\-Contrabarra) -muestra la lista de sitios -.\"LINK2" -Favoritos -.\"Hotlist" -y permite cambiar al directorio seleccionado. - -.TP -.PP -.B * N. del T.: -En el teclado castellano, existe un pequeño inconveniente, dado que la -contrabarra, no se consigue con una sola pulsación, por lo que este -método no funciona directamente. - -.TP -.B + \ (más) -usado para seleccionar (marcar) un grupo de archivos. Midnight Commander -ofrecerá distintas opciones. Indicando -.I Solo archivos -los directorios no se seleccionan. Con los -.I Caracteres Comodín -habilitados, se pueden introducir expresiones regulares del tipo empleado en -los patrones de nombres de la shell (poniendo * para cero o más caracteres y ? -para uno o más caracteres). Si los -.I Caracteres Comodín -están deshabilitados, entonces la selección de archivos se realiza con expresiones -regulares normales. Véase la página de manual de -.BR "ed (1)" . -Finalmente, si no se activa -.I Distinguir May/min -la selección se hará sin distinguir caracteres en mayúsculas o minúsculas. -.TP -.B \- (menos) o \\\\ (contrabarra) -usaremos las teclas «\-» o «\\» para deseleccionar un grupo de archivos. Esta es -la operación opuesta a la realizada por la tecla «+». - -.TP -.PP -.B * N. del T.: -La tecla que realiza originalmente la función descrita es la «\-» (menos) -ya que es la utilizada en la aplicación originaria, Comandante Norton. - -.TP -.B Arriba, Ctrl\-p -desplaza la barra de selección a la entrada anterior en el panel. -.TP -.B Abajo, Ctrl\-n -desplaza la barra de selección a la entrada siguiente en el panel. -.TP -.B Inicio, Alt\-< -desplaza la barra de selección a la primera entrada en el panel. -.TP -.B Fin, Alt\-> -desplaza la barra de selección a la última entrada en el panel. -.TP -.B AvPág (Página adelante), Ctrl\-v -desplaza la barra de selección a la página siguiente. -.TP -.B RePág (Página atrás), Alt\-v -desplaza la barra de selección a la página anterior. -.TP -.B Alt\-o -si el otro panel es un panel con lista de archivos y estamos situados en un -directorio en el panel activo actual, entonces otro panel se posiciona -dentro del directorio del panel activo (como la tecla de Emacs -.IR Ctrl\-o ) -en otro caso el otro panel es posicionado el directorio padre -del directorio seleccionado en el panel activo. -.TP -.B Alt\-i -cambiar el directorio en el panel opuesto de manera que coincida con el -panel actual. Si es necesario se cambiará también el panel opuesto a modo -listado, pero si el panel actual no está en modo listado no se cambiará -de modo el otro. -.TP -.B Ctrl\-RePág, Ctrl\-AvPág -solamente bajo la consola Linux: realiza un chdir ".." o al -directorio actualmente seleccionado respectivamente. -.TP -.B Alt\-y -cambia al anterior directorio visitado, equivale a pulsar -.I < -con el ratón. -.TP -.B Alt\-u -cambia al siguiente directorio visitado, equivale a pulsar -.I > -con el ratón. -.TP -.B Alt\-Mayús\-h, Alt\-H -muestra el historial de directorios visitados, equivale a pulsar la -.I v -con el ratón. -.\"NODE " Quick search" -.SH " Búsqueda rápida" -El modo de Búsqueda rápida permite localizar rápidamente nombres de archivos en -los paneles de directorio. Pulsando -.I Ctrl\-s -o -.I Alt\-s -se inicia la búsqueda de un archivo en el panel activo. -.P -Estando activada la búsqueda, las teclas pulsadas se van añadiendo a la cadena -de texto en búsqueda y no a la línea de órdenes. Si la opción -.I Mostrar Mini\-estado -está habilitada, la cadena a buscar se podrá ver en la línea de estado. -Conforme tecleemos, dentro del panel activo la barra de selección se desplazará -al siguiente archivo o directorio cuyo nombre coincida con las letras -introducidas. Se pueden usar las teclas -.I borrar -o -.I suprimir -para corregir errores de escritura. Si pulsamos -.I Ctrl\-s -de nuevo, se busca la siguiente coincidencia. -.P -Si se inicia la búsqueda rápida pulsando dos veces -.I Ctrl\-s -se recuperará el último patrón de búsqueda utilizado. -.P -Aparte de los caracteres propios de los nombres se pueden utilizar también los -caracteres comodín '*' y '?'. -.\"NODE " Shell Command Line" -.SH " Línea de Órdenes del Sistema" -Esta sección enumera las teclas útiles para evitar la excesiva escritura -cuando se introducen órdenes del sistema. -.TP -.B Alt\-Intro -copia el nombre de archivo seleccionado a la línea de órdenes. -.TP -.B Ctrl\-Intro -igual que -.IR Alt\-Intro . -Puede no funcionar en ciertos sistemas o con algunos terminales. -.TP -.B Ctrl\-Mayús\-Intro -copia la ruta completa del archivo actual en la línea de órdenes. Puede -no funcionar en ciertos sistemas o con algunos terminales. -.TP -.B Alt\-Tab -realiza una -.\"LINK2" -terminación automática -.\"Completion" -del nombre de archivo, comando, variable, nombre de usuario y host. -.TP -.B Ctrl\-x t, Ctrl\-x Ctrl\-t -copia los archivos marcados (o si no los hay, el archivo -seleccionado) del panel activo (Ctrl\-x t) o del otro panel (Ctrl\-x Ctrl\-t) a -la línea de órdenes. -.TP -.B Ctrl\-x p, Ctrl\-x Ctrl\-p -la primera secuencia de teclas copia el nombre de la ruta de acceso actual -a la línea de órdenes, y la segunda copia la ruta del otro panel a la -línea de órdenes. -.TP -.B Ctrl\-q -el comando cita (quote) puede ser utilizado para insertar caracteres -que de otro modo serían interpretados por Midnight Commander (como el símbolo '+') -.TP -.B Alt\-p, Alt\-n -usaremos esas teclas para navegar a través del histórico de comandos. Alt\-p devuelve -la última entrada, Alt\-n devuelve la siguiente. -.TP -.B Alt\-h -visualiza el historial para la línea de entrada actual. -.\"NODE " General Movement Keys" -.SH " Teclas Generales de Movimiento" -El visor de ayuda, el visor de archivo y el árbol de directorios usan -un código de control de movimiento común. Por consiguiente, reconocen las -mismas teclas. Además, cada uno reconoce algunas otras teclas propias. -.PP -Otras partes de Midnight Commander utilizan algunas de las mismas -teclas de movimiento, por lo que esta sección podría ser aplicada a ellas también. -.TP -.B Arriba, Ctrl\-p -mueve una línea hacia arriba. -.TP -.B Abajo, Ctrl\-n -mueve una línea hacia abajo. -.TP -.B RePág (Página atrás), Alt\-v -mueve una página completa hacia atrás. -.TP -.B AvPág (Página adelante), Ctrl\-v -mueve una página hacia delante. -.TP -.B Inicio -mueve al principio. -.TP -.B Fin -mueve al final. -.PP -El visor de ayuda y el de archivo reconocen las siguientes teclas -aparte de las mencionadas anteriormente: -.TP -.B b, Ctrl\-b, Ctrl\-h, Borrar, Suprimir -mueve una página completa hacia atrás. -.TP -.B Barra espaciadora -mueve una página hacia delante. -.TP -.B u, d -mueve la mitad de la página hacia atrás o adelante. -.TP -.B g, G -mueve al principio o al final. -.\"NODE " Input Line Keys" -.SH " Teclas de la Línea de Entrada" -Las líneas de entrada (usadas en la -.\"LINK2" -línea de órdenes -.\"Shell Command Line" -y para los cuadros de diálogo en el programa) reconocen esas teclas: -.TP -.B Ctrl\-a -coloca el cursor al comienzo de la línea. -.TP -.B Ctrl\-e -coloca el cursor al final de la línea. -.TP -.B Ctrl\-b, Izquierda -desplaza el cursor una posición a la izquierda. -.TP -.B Ctrl\-f, Derecha -desplaza el cursor una posición a la derecha. -.TP -.B Alt\-f -avanza una palabra. -.TP -.B Alt\-b -retrocede una palabra. -.TP -.B Ctrl\-h, Borrar -borra el carácter anterior. -.TP -.B Ctrl\-d, Suprimir -elimina el carácter de la posición del cursor. -.TP -.B Ctrl\-@ -sitúa una marca para cortar. -.TP -.B Ctrl\-w -copia el texto entre el cursor y la marca a la caché de eliminación y elimina -el texto de la línea de entrada. -.TP -.B Alt\-w -copia el texto entre el cursor y la marca a la caché de eliminación. -.TP -.B Ctrl\-y -restaura el contenido de la caché de eliminación. -.TP -.B Ctrl\-k -elimina el texto desde el cursor hasta el final de la línea. -.TP -.B Alt\-p, Alt\-n -usaremos esas teclas para desplazarnos a través del historial de comandos. Alt\-p nos lleva -a la última entrada, Alt\-n nos sitúa en la siguiente. -.TP -.B Ctrl\-Alt\-h, Alt\-Borrar -borra la palabra anterior. -.TP -.B Alt\-Tab -realiza una -.\"LINK2" -terminación -.\"Completion" -del nombre de archivo, comando, variable, nombre de usuario o host. -.SH "" -.\"NODE "Menu Bar" -.SH "Barra de Menú" -La barra de menú aparece cuando pulsamos F9 o pulsamos el botón del ratón -sobre la primera fila de la pantalla. La barra de menú tiene cinco submenús: "Izquierdo", "Archivo", -"Utilidades", "Opciones" y "Derecho". -.PP -Los -.\"LINK2" -Menús Izquierdo y Derecho -.\"Left and Right Menus" -nos permiten modificar la apariencia de los paneles de directorio -izquierdo y derecho. -.PP -El -.\"LINK2" -Menú de Archivo -.\"File Menu" -lista las acciones que podemos realizar sobre el archivo actualmente seleccionado -o sobre los archivos marcados. -.PP -El -.\"LINK2" -Menú de Utilidades -.\"Command Menu" -lista las acciones más generales y que no guardan relación con -la selección actual de archivos. -.\"NODE " Left and Right Menus" -.SH " Menús Izquierdo y Derecho (Arriba y Abajo)" -La presentación de los paneles de directorio puede ser cambiada desde los menús -.B Izquierdo -y -.B Derecho -(denominados -.B Arriba -y -.B Abajo -si hemos elegido la disposición horizontal de paneles en las opciones de -.\"LINK2" -presentación\&). -.\"Layout" -.\"NODE " Listing Format..." -.SH " Listado..." -La vista en modo -.B "Listado" -se usa para mostrar la lista de archivos. Hay cuatro modos disponibles: -.BR Completo , -.BR Breve , -.BR Largo , -y -.BR "Definido por el usuario" . -.PP -En modo completo se muestra el nombre del archivo, su tamaño y la fecha -y hora de modificación. -.PP -En modo breve se muestran solo los nombres de archivo usando entre 1 y 9 -columnas. Esto permite ver muchas más entradas que en los otros modos. -.PP -El modo largo es similar a la salida de la orden -.BR "ls \-l" . -Este modo requiere todo el ancho de la pantalla. -.PP -Si se elige el modo definido por el usuario, hay que especificar el -formato de presentación. Un formato personalizado tiene que comenzar con -la indicación de tamaño de panel, que puede ser "half" (medio) o "full" -(completo) para tener respectivamente dos paneles de media pantalla o -un único panel a pantalla completa. Tras el tamaño se puede colocar el -número "2" para dividir el panel en dos columnas. -.PP -A continuación van los campos deseados con especificación opcional del -tamaño. Los campos que se pueden emplear son: -.TP -.B name -nombre del archivo. -.TP -.B size -tamaño del archivo. -.TP -.B bsize -forma alternativa para -.BR size . -Muestra el tamaño de los archivos y SUB\-DIR o DIR\-ANT para directorios. -.TP -.B type -carácter de tipo de archivo. Este carácter se asemeja a lo mostrado por -la orden -.BR "ls \-F" : -.B * -para archivos ejecutables, -.B / -para directorios, -.B @ -para enlaces, -.B = -para sockets, -.B \- -para los dispositivos en modo carácter, -.B + -para dispositivos en modo bloque, -.B | -para tuberías, -.B ~ -para enlaces simbólicos a directorios y -.B ! -para enlaces rotos (enlaces que no apuntan a nada). -.TP -.B mark -un asterisco si el archivo está marcado, o un espacio si no lo está. -.TP -.B mtime -fecha y hora de la última modificación del contenido del archivo. -.TP -.B atime -fecha y hora del último acceso al archivo. -.TP -.B ctime -fecha y hora del último cambio del archivo. -.TP -.B perm -cadena representando los permisos del archivo. -.TP -.B mode -valor en octal representando los permisos del archivo. -.TP -.B nlink -número de enlaces al archivo. -.TP -.B ngid -Identificador de Grupo, GID (numérico). -.TP -.B nuid -Identificador de Usuario, UID (numérico). -.TP -.B owner -propietario del archivo. -.TP -.B group -grupo del archivo. -.TP -.B inode -número de inodo del archivo. -.PP -Además, podemos ajustar la apariencia del panel con: -.TP -.B space -un espacio. -.TP -.B | -añadir una línea vertical. -.PP -Para fijar el tamaño de un campo basta añadir -.B : -seguido por el número de caracteres que se desee. Si tras el número -colocamos el símbolo -.B + -el tamaño indicado será el tamaño mínimo, y si hay espacio de sobra se -extenderá más el campo. -.PP -Como ejemplo, el listado -.B Completo -corresponde al formato: -.PP -half type name | size | mtime -.PP -Y el listado -.B Largo -corresponde a: -.PP -full perm space nlink space owner space group space size space mtime -space name -.PP -Este es un bonito formato de pantalla definido por el usuario: -.PP -half name | size:7 | type mode:3 -.PP -Los paneles admiten además los siguientes modos: -.TP -.B "Información" -La vista de información muestra detalles relativos al archivo seleccionado -y, si es posible, sobre el sistema de archivos usado. -.TP -.B "Ãrbol" -La vista en árbol es bastante parecida a la utilidad -.\"LINK2" -árbol de directorios\&. -.\"Directory Tree" -Para más información véase la sección correspondiente. -.TP -.B "Vista Rápida" -En este modo, en el panel aparece un -.\"LINK2" -visor -.\"Internal File Viewer" -reducido que muestra el contenido del archivo seleccionado. Si se activa -el panel (con el tabulador o con el ratón), se dispone de los funciones -usuales del visor. -.\"NODE " Sort Order..." -.SH " Modo de Ordenación..." -Los ocho modos de ordenación son por nombre, por extensión, por hora de modificación, -por hora de acceso, por la hora de modificación de la información del inodo, por tamaño, -por inodo y desordenado. En el cuadro de diálogo del modo de ordenación podemos elegir -el modo de ordenación así como especificar si deseamos que este se realice en orden inverso -chequeando la casilla Invertir. -.PP -Por defecto, los directorios se colocan ordenados antes que los archivos. -Esto se puede cambiar en Configuración dentro del -.\"LINK2" -Menú de Opciones -.\"Options Menu" -activando la opción -.BR "Mezclar archivos y directorios" . -.\"NODE " Filter..." -.SH " Filtro..." -La utilidad filtro nos permite seleccionar con un patrón (por ejemplo -.BR "*.tar.gz" ) -los archivos a listar. Indiferentes al patrón de filtro, siempre se -muestran todos los directorios y enlaces a directorios. -.\"NODE " Reread" -.SH " Releer" -El comando releer recarga la lista de archivos en el directorio. Esto es -útil si otros procesos han creado, borrado o modificado archivos. Si -hemos panelizado los nombres de los archivos en un panel, esto recargará -los contenidos del directorio y eliminará la información panelizada. -Véase la sección -.\"LINK2" -Búsquedas externas -.\"External panelize" -para más información. -.\"NODE " File Menu" -.SH " Menú de Archivo" -Midnight Commander utiliza las teclas de función -.I F1 -\- -.I F10 -como atajos de teclado para los comandos que aparecen en el menú de -Archivo. Las secuencias de escape para las Fkeys son características de -terminfo desde kf1 hasta kf10. En terminales sin soporte de teclas de -función, podemos conseguir la misma funcionalidad pulsando la tecla -.I Esc -seguido de un número entre 1 y 9 ó 0 (correspondiendo a las teclas -.I F1 -a -.I F9 -y -.I F10 -respectivamente). -.PP -El menú de Archivo recoge las siguientes opciones (con los atajos de -teclado entre paréntesis): -.PP -.B Ayuda (F1) -.PP -Invoca el visor hipertexto de ayuda interno. Dentro del -.\"LINK2" -visor de ayuda\&, -.\"Contents" -podemos usar la tecla -.I Tab -para seleccionar el siguiente enlace y la tecla -.I Intro -para seguir ese enlace. Las teclas -.I Espacio -y -.I Borrar -son usadas para mover adelante y atrás en una página de ayuda. Pulsando -.I F1 -de nuevo para obtener la lista completa de teclas válidas. -.PP -.B Menú de Usuario (F2) -.PP -Invoca el -.\"LINK2" -Menú de usuario -.\"Edit Menu File" -El menú de usuario otorga una manera fácil de tener usuarios con un menú -y añadir asimismo características extra a Midnight Commander. -.PP -.B Ver (F3, Mayús\-F3) -.PP -Visualiza el archivo seleccionado. Por defecto invoca el -.\"LINK2" -Visor de Archivos Interno -.\"Internal File Viewer" -pero si la opción "Usar visor interno" está desactivada, invoca un visor -de archivos externo especificado por la variable de entorno -.B VIEWER. -Si -.B VIEWER -no está definida se aplica la variable -.B PAGER -y si esta tampoco, se invoca al comando «view». Con Mayús\-F3, se abre -directamente el visor interno, pero sin realizar ningún tipo de formateo -o preprocesamiento del archivo. -.P -Véanse los -.\"LINK2" -parámetros para el visor externo -.\"Parameters for external editor or viewer" -para saber cómo proporcionar opciones adicionales en línea de órdenes -para visores externos. -.PP -.B Ejecutar y Ver (Alt\-!) -.PP -El comando con los argumentos indicados se ejecuta, y la salida se -muestra usando el visor de archivos interno. Como argumento se ofrece, -por defecto, el nombre seleccionado en el panel. -.PP -.B Editar (F4) -.PP -Invoca el editor -.BR vi , -u otro especificado en la variable de entorno -.BR EDITOR , -o el -.\"LINK2" -Editor de Archivos Interno -.\"Internal File Editor" -si la opción -.I use_internal_edit -está activada. -.P -Véanse los -.\"LINK2" -parámetros para el editor externo -.\"Parameters for external editor or viewer" -para saber cómo proporcionar opciones adicionales en línea de órdenes -para ediotres externos. -.PP -.B Copiar (F5) -.PP -Sobreimpresiona una ventana de entrada con destino por defecto al directorio del -panel no seleccionado y copia el archivo actualmente seleccionado (o -los archivos marcados, si hay al menos uno marcado) al directorio especificado -por el usuario en la ventana. Space for destination file may be preallocated -relative to preallocate_space configure option. Durante este proceso, podemos -pulsar -.IR Ctrl\-c " o " Esc -para anular la operación. Para más detalles sobre la máscara de origen -(que será normalmente * o ^\\(.*\\)$ dependiendo -de la selección de Uso de los patrones del shell) y los posibles comodines en destino -véase -.\"LINK2" -Máscara copiar/renombrar\&. -.\"Mask Copy/Rename" -.PP -En algunos sistemas, es posible hacer la copia en segundo plano pulsando en el botón -de segundo plano con el ratón (o pulsando -.I Alt\-b -en el cuadro de diálogo). Los -.\"LINK2" -Trabajos en Segundo Plano -.\"Background jobs" -son utilizados para controlar los procesos en segundo plano. -.PP -.B Crear Enlace (Ctrl\-x l) -.PP -Crea un enlace al archivo actual. -.PP -.B Crear Enlace Simbólico (Ctrl\-x s) -.PP -Crea un enlace simbólico al archivo actual. Un enlace es como una copia -del archivo, salvo que el original y el destino representan un único -archivo físico, los mismos datos reales. En consecuencia, si editamos -cualquiera de los archivos, los cambios que realicemos aparecerán en -todos los archivos. Reciben también el nombre de alias o accesos -directos. -.PP -Un enlace aparece como un archivo real. Después de crearlo, no hay modo -de decir cuál es el original y cuál el enlace. Si borramos uno de ellos -el otro aún seguirá intacto. Es muy difícil advertir que los archivos -representan la misma imagen. Usaremos estos enlaces cuando no -necesitemos saberlo. -.PP -Un enlace simbólico es, en cambio, solo una referencia al nombre del -archivo original. Si se borra el archivo original, el enlace simbólico -queda sin utilidad. Es bastante fácil advertir que los archivos -representan la misma imagen. Midnight Commander muestra un símbolo "@" -delante del nombre del archivo si es un enlace simbólico a alguna parte -(excepto a un directorio, caso en que muestra una tilde (~)). El archivo -original al cual apunta el enlace se muestra en la línea de estado si la -opción -.I Mostrar Mini\-estado -está habilitada. Usaremos enlaces simbólicos cuando queramos evitar la -confusión que pueden causar los enlaces físicos. -.PP -.B Renombrar/Mover (F6) -.PP -Presenta un diálogo de entrada proponiendo como directorio de destino el -directorio del panel no activo, y mueve allí, o bien los archivos marcados -o en su defecto el archivo seleccionado. El usuario puede introducir en -el diálogo un destino diferente. Durante el proceso, se puede pulsar -.IR Ctrl\-c " o " Esc -para abortar la operación. Para más detalles, véase más arriba la -operación Copiar, dado que la mayoría de los aspectos son similares. -.PP -En algunos sistemas, es posible hacer la copia en segundo plano pulsando -con el ratón en el susodicho botón de segundo plano (o pulsando -.I Alt\-o -en el cuadro de diálogo). Con -.\"LINK2" -Procesos en 2º plano -.\"Background jobs" -se puede controlar estas tareas. -.PP -.B Crear Directorio (F7) -.PP -Presenta un diálogo de entrada y crea el directorio especificado. -.PP -.B Borrar (F8) -.PP -Borra, o bien los archivos marcados o en su defecto el archivo -seleccionado en el panel activo. Durante el proceso, se puede pulsar -.IR Ctrl\-c " o " Esc -para abortar la operación. -.PP -.B Cambiar Directorio (Alt\-c) -Usaremos el comando -.\"LINK2" -Cambiar de directorio -.\"Quick cd" -si tenemos llena la línea de órdenes y queremos hacer un cd a algún lugar. -.PP -.B Seleccionar Grupo (+) -.PP -Se utiliza para seleccionar (marcar) un grupo de archivos. Midnight Commander -ofrecerá distintas opciones. Indicando -.I Solo archivos -los directorios no se seleccionan. Con los -.I Caracteres Comodín -habilitados, se pueden introducir expresiones regulares del tipo empleado en -los patrones de nombres de la shell (poniendo * para cero o más caracteres y ? -para uno o más caracteres). Si los -.I Caracteres Comodín -están deshabilitados, entonces la selección de archivos se realiza con expresiones -regulares normales. Véase la página de manual de -.BR "ed (1)" . -Finalmente, si no se activa -.I Distinguir May/min -la selección se hará sin distinguir caracteres en mayúsculas o minúsculas. -.PP -.B De\-seleccionar Grupo (\\\\) -.PP -Utilizado para deseleccionar un grupo de archivos. Es la operación antagonista al comando -.IR "Selecciona grupo" . -.PP -.B Salir (F10, Mayús\-F10) -.PP -Finaliza Midnight Commander. Mayús\-F10 es usado cuando queremos -salir y estamos utilizando la envoltura del shell. Mayús\-F10 no nos llevará -al último directorio visitado con Midnight Commander, en vez de eso -nos llevará al directorio donde fue invocado Midnight Commander. -.\"NODE " Quick cd" -.SH " Cambiar de directorio" -Este comando es útil si tenemos completa la línea de órdenes y -queremos hacer un -.\"LINK2" -cd -.\"The cd internal command" -a algún lugar sin tener que cortar y pegar sobre la línea. Este comando -sobreimpresiona una pequeña ventana, donde introducimos todo aquello que -es válido como argumento del comando -.B cd -en la línea de órdenes y después pulsamos intro. Este comando caracteriza -todas las cualidades incluidas en el -.\"LINK2" -comando cd interno\&. -.\"The cd internal command" -.\"NODE " Command Menu" -.SH " Menú de Utilidades" -.\"LINK2" -Ãrbol de directorios -.\"Directory Tree" -muestra una figura con estructura de árbol con los directorios. -.PP -.\"LINK2" -Buscar archivos -.\"Find File" -permite buscar un archivo específico. El comando "Intercambiar paneles" -intercambia los contenidos de los dos paneles de directorios. -.PP -El comando "Activa/desactiva paneles" muestra la salida del último -comando del shell. Esto funciona solo en xterm y en una consola Linux y -FreeBSD. -.PP -El comando Compara directorios (Ctrl\-x d) compara los paneles de directorio -uno con el otro. Podemos usar el comando Copiar (F5) para hacer ambos -paneles idénticos. Hay tres métodos de comparación. El método rápido -compara solo el tamaño de archivo y la fecha. El método completo realiza -una comparación completa octeto a octeto. El método de comparación -de solo tamaño solo compara los tamaños de archivo y no chequea los -contenidos o las fechas, solo chequea los tamaños de los archivos. -.PP -El comando Histórico de comandos muestra una lista -de los comandos escritos. El comando seleccionado es copiado a la línea de órdenes. -El histórico de comandos puede ser accedido también tecleando Alt\-p ó Alt\-n. -.PP -.\"LINK2" -Favoritos (Ctrl\-\\) -.\"Hotlist" -permite acceder con facilidad a directorios y sitios utilizados con frecuencia. -.PP -.\"LINK2" -Búsquedas Externas -.\"External panelize" -nos permite ejecutar un programa externo, y llevar la salida de ese -programa al panel actual. -.PP -.\"LINK2" -Editar el archivo de extensiones -.\"Edit Extension File" -nos permite especificar los programas a ejecutar para intentar -ejecutar, ver, editar y realizar un montón de cosas sobre archivos -con ciertas extensiones (terminaciones de archivo). Por ejemplo, asociar la extensión -de los archivos de audio de SUN (.au) con el programa reproductor adecuado. -.\"LINK2" -Editar archivo de menú -.\"Edit Menu File" -se puede utilizar para editar el menú de usuario (el que aparece al -pulsar F2). -.\"NODE " Directory Tree" -.SH " Ãrbol de Directorios" -El comando Ãrbol de directorios muestra una figura con la estructura de los directorios. -Podemos seleccionar un directorio de la figura y Midnight Commander cambiará -a ese directorio. -.PP -Hay dos modos de invocar el árbol. El comando de árbol de directorios -está disponible desde el menú Utilidades. El otro modo es seleccionar la vista en árbol -desde el menú Izquierdo o Derecho. -.PP -Para evitar largos retardos Midnight Commander crea la figura de árbol -escaneando solamente un pequeño subconjunto de todos los directorios. Si -el directorio que queremos ver no está, nos moveremos hasta su directorio padre -y pulsaremos Ctrl\-r (o F2). -.PP -Podemos utilizar las siguientes teclas: -.PP -.\"LINK2" -Teclas de Movimiento General -.\"General Movement Keys" -válidas. -.PP -.B Intro. -En el árbol de directorios, sale del árbol de directorios y cambia al -directorio en el panel actual. En la vista de árbol, cambia a este directorio -en el otro panel y permanece en el modo de vista Ãrbol en el panel actual. -.PP -.B Ctrl\-r, F2 (Releer). -Relee este directorio. Usaremos este comando cuando el árbol de directorios esté anticuado: -hay directorios perdidos o muestra algunos directorios que no existen ya. -.PP -.B F3 (Olvidar). -Borra ese directorio de la figura del árbol. Usaremos esto para eliminar -desorden de la figura. Si queremos que el directorio vuelva a la figura del árbol -pulsaremos F2 en su directorio padre. -.PP -.B F4 (Estático/Dinámico, Dinam/Estát). -Intercambia entre el modo de navegación dinámico (predefinido) y el modo estático. -.PP -En el modo de navegación estático podemos usar las teclas del cursor Arriba y Abajo -para seleccionar un directorio. Todos los directorios conocidos serán mostrados. -.PP -En el modo de navegación dinámico podemos usar las teclas del cursor Arriba y Abajo -para seleccionar el directorio hermano, la tecla Izquierda para situarnos en el directorio -padre, y la tecla Derecha para situarnos en el directorio hijo. Solo los directorios -padre, hijo y hermano son mostrados, el resto son dejados fuera. La figura de árbol cambia -dinámicamente conforme nos desplazamos sobre ella. -.PP -.B F5 (Copiar). -Copia el directorio. -.PP -.B F6 (Renombrar/Mover, RenMov). -Mueve el directorio. -.PP -.B F7 (Mkdir). -Crea un nuevo directorio por debajo del directorio actual. El directorio creado -será así el hijo del directorio del cual depende jerárquicamente (Padre). -.PP -.B F8 (Eliminar). -Elimina este directorio del sistema de archivos. -.PP -.B Ctrl\-s, Alt\-s. -Busca el siguiente directorio coincidente con la cadena de búsqueda. Si no hay -tal directorio esas teclas moverán una línea abajo. -.PP -.B Ctrl\-h, Borrar. -Borra el último carácter de la cadena de búsqueda. -.PP -.B Cualquier otro carácter. -Añade el carácter a la cadena de búsqueda y se desplaza al siguiente directorio -que comienza con esos caracteres. En la vista de árbol debemos primero -activar el modo de búsqueda pulsando -.IR Ctrl\-s . -La cadena de búsqueda se muestra en la línea de estado. -.PP -Las siguientes acciones están disponibles solo en el árbol de directorios. No -son funcionales en la vista de árbol. -.PP -.B F1 (Ayuda). -Invoca el visor de ayuda y muestra esta sección. -.PP -.B Esc, F10. -Sale del árbol de directorios. No cambia el directorio. -.PP -El ratón es soportado. Un -.I doble click -se comporta como pulsar -.IR Intro . -Véase también la sección sobre -.\"LINK2" -soporte de ratón\&. -.\"Mouse Support" -.\"NODE " Find File" -.SH " Buscar Archivos" -La utilidad para Buscar Archivos primero pregunta por el directorio de inicio -y el nombre de archivo a buscar. Pulsando el botón Ãrbol podemos seleccionar -el directorio inicial en el -.\"LINK2" -Ãrbol de directorios\&. -.\"Directory Tree" -.PP -El campo de contenidos puede aceptar expresiones regulares similares a egrep(1). En -ese caso podremos proteger caracteres con significado especial para egrep anteponiendo «\\», -p.ej. si buscamos «strcmp (» tendremos que introducir «strcmp \\(". -.PP -Con la opción «Palabras completas» se puede limitar la búsqueda a archivos donde -la parte coincidente forme una palabra completa. Eso se corresponde con la función -de la opción «\-w» de grep. -.PP -Podemos iniciar la búsqueda pulsando el botón Aceptar. -Durante el proceso de búsqueda podemos detenerla desde el botón Terminar. -.PP -Podemos navegar por la lista de archivos con las teclas del cursor Arriba y Abajo. El botón Chdir -cambiará al directorio del archivo actualmente seleccionado. El botón "Otra vez" preguntará los parámetros para una nueva -búsqueda. El botón Terminar finaliza la operación de búsqueda. El botón Panelizar -colocará los archivos encontrados en el panel actual y así -podremos realizar más operaciones con ellos (ver, copiar, mover, -borrar y demás). Después de panelizar podemos pulsar Ctrl\-r para regresar al listado -normal de archivos. -.PP -Es posible tener una lista de directorios que el comando Buscar Archivo -debería saltar durante la búsqueda (por ejemplo, podemos querer -evitar búsquedas en un CDROM o en un directorio NFS que está montado a través de un -enlace lento). -.PP -Los directorios a ser omitidos deberían ser enumerados en la variable -.B ignore_dirs -en la sección -.B FindFile -de nuestro archivo -.IR ~/.config/mc/ini . -.PP -Los componentes del directorio deberían ser separados por dos puntos, como en -el ejemplo que sigue: -.PP -.nf -[FindFile] -ignore_dirs=/cdrom:/nfs/wuarchive:/afs -.fi -.PP -Debemos valorar la utilización de -.\"LINK2" -Búsquedas externas -.\"External panelize" -en ciertas situaciones. La utilidad Buscar archivos es solo para consultas -simples, pero con Búsquedas externas se pueden hacer exploraciones tan -complejas como queramos. -.\"NODE " External panelize" -.SH " Búsquedas Externas" -Búsquedas externas nos permite ejecutar un programa externo, y -tomar la salida de ese programa como contenido del panel actual. -.PP -Por ejemplo, si queremos manipular en uno de los paneles todos los enlaces -simbólicos del directorio actual, podemos usar búsquedas externas para -ejecutar el siguiente comando: -.PP -.nf -find . \-type l \-print -.fi -.PP -Hasta la finalización del comando, el contenido del directorio del panel no -será el listado de directorios del directorio actual, pero sí todos los archivos -que son enlaces simbólicos. -.PP -Si queremos panelizar todos los archivos que hemos bajado de nuestro servidor ftp, -podemos usar el comando awk para extraer el nombre del archivo -de los archivos de registro (log) de la transferencia: -.PP -.nf -awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog -.fi -.PP -Tal vez podríamos necesitar guardar los comandos utilizados frecuentemente bajo un nombre descriptivo, -de manera que podamos llamarlos rápidamente. Haremos esto tecleando el comando -en la línea de entrada y pulsando el botón "Añadir nuevo". Entonces introduciremos un nombre -bajo el cual queremos que el comando sea guardado. La próxima vez, bastará elegir -ese comando de la lista y no habrá que escribirlo de nuevo. -.\"NODE " Hotlist" -.SH " Favoritos" -Muestra una lista de sitios y directorios guardados y abre en el panel -el lugar seleccionado. Desde el cuadro de diálogo podemos también crear y -eliminar entradas. Para añadir se puede igualmente utilizar Añadir Actual -(Ctrl\-x h), que añade el directorio actual (no el seleccionado) a la lista -de favoritos. Se pide al usuario una etiqueta para identificar la entrada. -.PP -Esto hace más rápido el posicionamiento en los directorios usados -frecuentemente. Deberíamos considerar también el uso de la variable -CDPATH tal y como se describe en -.\"LINK2" -comando cd interno\&. -.\"The cd internal command" -.\"NODE " Edit Extension File" -.SH " Editar el Archivo de Extensiones" -Abre el archivo -.I ~/.config/mc/mc.ext.ini -en nuestro editor. -If this file does not exist and you are not root, it will be copied from -.IR %sysconfdir%/mc/mc.ext.ini . -If you are root, you can choose the file to edit: user's -.I ~/.config/mc/mc.ext.ini -or system\-wide -.IR %sysconfdir%/mc/mc.ext.ini . -The format of this file is described in detail in it. -.\"NODE " Background jobs" -.SH " Trabajos en Segundo Plano" -Nos permite controlar el estado de cualquier proceso de Midnight Commander -en segundo plano (solo las operaciones de copiar y mover archivos pueden realizarse -en segundo plano). Podemos parar, reiniciar y eliminar procesos en segundo plano desde -aquí. -.\"NODE " Edit Menu File" -.SH " Edición del Archivo de Menú" -El menú de usuario es un menú de acciones útiles que puede ser personalizado -por el usuario. Cuando accedemos al menú de usuario se utiliza, si existe, -el archivo .mc.menu del directorio actual, pero solo si es propiedad del -usuario o del superusuario y no es modificable por todos. -Si no se encuentra allí el archivo, se intenta de la misma manera con ~/.config/mc/menu, -y si no, mc utiliza el menú por defecto para todo el sistema -%pkgdatadir%/mc.menu. -.PP -El formato del menú de archivo es muy simple. Todas las líneas, salvo -las que empiezan con espacio o tabulación, son consideradas entradas -para el menú (para posibilitar su uso como atajo de teclado, el primer -carácter sí deberá ser una letra). Las líneas que comienzan con una -tabulación o espacio son los comandos que serán ejecutados cuando la -entrada es seleccionada. -.PP -Cuando se selecciona una opción todas las líneas de comandos de esa -opción se copian en un archivo temporal en el directorio temporal -(normalmente /usr/tmp), y se ejecuta ese archivo. Esto permite al -usuario utilizar en los menús construcciones normales de la shell. -También tiene lugar una sustitución simple de macros antes de ejecutar -el código del menú. Para mayor información, ver -.\"LINK2" -Sustitución de macro\&. -.\"Macro Substitution" -.PP -He aquí un ejemplo de archivo mc.menu: -.PP -.nf -A Vuelca el contenido del archivo seleccionado - od \-c %f - -B Edita un informe de errores y lo envía al superusuario - I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1 - vi $I - mail \-s "Error Midnight Commander" root < $I - rm \-f $I - -M Lee al correo - emacs \-f rmail - -N Lee las noticias de Usenet - emacs \-f gnus - -H Realiza una llamada al navegador hypertexto info - info - -J Copia recursivamente el directorio actual al otro panel - tar cf \- . | (cd %D && tar xvpf \-) - -K Realiza una versión del directorio actual - echo \-n "Nombre del archivo de distribución: " - read tar - ln \-s %d `dirname %d`/$tar - cd .. - tar cvhf ${tar}.tar $tar - -= f *.tar.gz | f *.tgz & t n -X Extrae los contenidos de un archivo tar comprimido - tar xzvf %f -.fi -.PP -.B Condiciones por Defecto -.PP -Cada entrada del menú puede ir precedida por una condición. La condición debe -comenzar desde la primera columna con un carácter '='. Si la condición es -verdadera, la entrada del menú será la entrada por defecto. -.PP -.nf -Sintaxis condicional: = - o: = | ... - o: = & ... - -Sub\-condición es una de las siguientes: - - f ¿el archivo actual encaja con el patrón? - F ¿otro archivo encaja con el patrón? - d ¿el directorio actual encaja con el patrón? - D ¿otro directorio encaja con el patrón? - t ¿archivo actual es de tipo ? - T ¿otro archivo es de tipo ? - ! niega el resultado de la sub\-condición -.fi -.PP -Patrón es un patrón normal del shell o una expresión regular, de acuerdo -con la opción de patrones del shell. Podemos cambiar el valor global de -la opción de los patrones del shell escribiendo "shell_patterns=x" en la primera línea -del archivo de menú (donde "x" es 0 ó 1). -.PP -Tipo es uno o más de los siguientes caracteres: -.PP -.nf - n no directorio - r archivo regular - d directorio - l enlace - c dispositivo tipo carácter - b dispositivo tipo bloque - f tubería (fifo) - s socket - x ejecutable - t marcado (tagged) -.fi -.PP -Por ejemplo 'rlf' significa archivo regular, enlace o cola. El tipo 't' -es un poco especial porque actúa sobre el panel en vez de sobre -un archivo. La condición '=t t' es verdadera si existen archivos marcados en el -panel actual y falsa si no los hay. -.PP -Si la condición comienza con '=?' en vez de '=' se mostrará un trazado de -depuración mientras el valor de la condición es calculado. -.PP -Las condiciones son calculadas de izquierda a derecha. Esto significa que -.nf - = f *.tar.gz | f *.tgz & t n -.fi -es calculado como -.nf - ( (f *.tar.gz) | (f *.tgz) ) & (t n) -.fi -.PP -He aquí un ejemplo de uso de condiciones: -.PP -.nf -= f *.tar.gz | f *.tgz & t n -L Lista el contenido de un archivo tar comprimido - gzip \-cd %f | tar xvf \- -.fi -.PP -.B Condiciones aditivas -.PP -Si la condición comienza con '+' (o '+?') en lugar de '=' (o '=?') es -una condición aditiva. Si la condición es verdadera la entrada de menú será -incluida en el menú. Sin embargo, si la condición es falsa, la entrada de menú no será -incluida en el menú. -.PP -Podemos combinar condiciones por defecto y aditivas comenzando la condición con -\&'+=' o '=+' (o '+=?' o '=+?' si queremos depurar). Si nosotros queremos -condiciones diferentes, una para añadir y otra por -defecto, una entrada de menú con dos líneas de condición, una -comenzando con '+' y otra con '='. -.PP -Los comentarios empiezan con '#'. Las líneas adicionales de comentarios deben empezar -con '#', espacio o tabulación. -.\"NODE " Options Menu" -.SH " Menú de Opciones" -Midnight Commander tiene opciones que pueden ser activadas o desactivadas -a través de una serie de diálogos a los que se accede desde este menú. Una -opción está activada cuando tiene delante un asterisco o una "x". -.PP -En -.\"LINK2" -Configuración -.\"Configuration" -se pueden cambiar la mayoría de opciones de Midnight Commander. -.PP -En -.\"LINK2" -Presentación -.\"Layout" -está un grupo de opciones que determinan la apariencia de mc en la -pantalla. -.PP -En -.\"LINK2" -Paneles -.\"Panel options" -se pueden configurar los paneles del gestor de archivos. -.PP -En -.\"LINK2" -Confirmación -.\"Confirmation" -podemos especificar qué acciones requieren una confirmación del usuario -antes de ser realizadas. -.PP -En -.\"LINK2" -Aspecto -.\"Appearance" -podemos seleccionar un «skin» o apariencia para el programa. -.PP -En -.\"LINK2" -Juego de Caracteres -.\"Display bits" -podemos seleccionar qué caracteres es capaz de mostrar nuestro terminal. -.PP -En -.\"LINK2" -Aprender Teclas -.\"Learn keys" -podemos verificar teclas que no funcionan en algunos terminales y -solucionarlo. -.PP -En -.\"LINK2" -Sistema de Archivos Virtual (VFS) -.\"Virtual FS" -podemos especificar algunas opciones relacionadas con el VFS (Sistema -de Archivos Virtual). -.PP -.\"LINK2" -Guardar Configuración -.\"Save Setup" -guarda los valores actuales de los menús Izquierdo, Derecho y Opciones. -También se guardan algunos otros valores. -.\"NODE " Configuration" -.SH " Configuración" -Este diálogo presenta una serie de opciones divididas en tres grupos: -«Operaciones con Archivos», «Tecla de Escape», «Pausa Después de -Ejecutar» y «Otras Opciones». -.PP -.B Operaciones con Archivos -.PP -.I Operación Detallada. -Controla la visualización de detalles durante las operaciones de -Copiar, Mover y Borrar (i.e., muestra un cuadro de diálogo para cada -operación). Si tenemos un terminal lento, podríamos querer desactivar -la operación detallada. Se desactiva automáticamente si la velocidad de -nuestro terminal es menor de 9600 bps. -.PP -.I Calcular Totales. -Hace que Midnight Commander calcule el total de bytes y el número de -archivos antes de iniciar operaciones de Copiar, Mover y Borrar. Esto -proporciona una barra de progreso más precisa a costa de cierta -velocidad. Esta opción no tiene efecto si la -.I Operación Detallada -no está seleccionada. -.PP -.I Barra de Progreso Clásica. -Con esta opción la barra de progreso para las operaciones de Copiar, -Mover o Borrar avanza de izquierda a derecha. Si se deshabilita, el -sentido de crecimiento refleja el sentido de la copia: del panel -izquierdo al derecho o viceversa. Por defecto, está activa. -.PP -.I Proponer Nombre Mkdir. -Al pulsar F7 para crear un directorio nuevo, la línea de entrada -del diálogo incorpora como sugerencia el nombre del archivo o -directorio actual en el panbel activo. Está deshabilitado por defecto. -.PP -.I Reservar Espacio. -Antes de comenzar una copia reserva espacio para el archivo destino -completo. Por defecto está desactivado. -.PP -.B Tecla de Escape. -.PP -Midnight Commander utiliza la tecla ESC como prefijo para ciertas teclas. -Por ello hay que pulsar ESC dos veces para abandonar los diálogos. Se -puede configurar para que esto se pueda realizar con una única pulsación. -.I Pulsación Única -Por defecto, está deshabilitada. Permite que ESC actúe como prefijo durante -un cierto tiempo (véase abajo la opción -.IR Tiempo ) -al cabo del cual se interpreta ESC para cancelar (ESC ESC). -.PP -.I Tiempo. -Permite configurar el intervalo (en microsegundos) para una pulsación -de ESC autónoma. Por defecto es de un segundo (1000000 microsegundos). -Este intervalo también se puede fijar a través de la variable de entorno -KEYBOARD_KEY_TIMEOUT_US (también en microsegundos) que tiene prioridad -sobre el valor de esta opción Tiempo. -.PP -.B Pausa Después de Ejecutar. -.PP -Después de ejecutar comandos, Midnight Commander puede realizar una pausa, -y darnos tiempo a examinar la salida del comando. Hay tres posibles -valores para esta variable: -.PP -.IR Nunca . -Significa que no queremos ver la salida de nuestros comandos. Si estamos -utilizando la consola Linux o FreeBSD o un xterm, podremos ver la salida -del comando pulsando -.IR Ctrl\-o . -.PP -.IR Solo en Terminales Tontas . -Obtendremos el mensaje de pausa solo en terminales que no sean capaces -de mostrar la salida del último comando ejecutado (en realidad, cualquier -terminal que no sea un xterm o una consola de Linux). -.PP -.IR Siempre . -El programa realizará siempre una pausa después de ejecutar comandos. -.PP -.B Otras Opciones -.PP -.I Usar Editor Interno. -Emplear el editor de archivos interno. Si está desactivada, se editarán -los archivos con el editor especificado por la variable de entorno -.B EDITOR -y si no se especifica ninguno, se usará -.B vi. -Véase la sección sobre el -.\"LINK2" -editor de archivos interno\&. -.\"Internal File Editor" -.PP -.I Usar Visor Interno. -Emplear el visor de archivos interno. Si la opción está desactivada, -el paginador especificado en la variable de entorno -.B PAGER -será el utilizado. -Si no se especifica ninguno, se usará el comando -.B view. -Véase la sección sobre el -.\"LINK2" -visor de archivos interno\&. -.\"Internal File Viewer" -.PP -.I Pedir Nombre al Editar Nuevos. -Si está activada, se pedirá al usuario el nombre de archivo antes de abrir -un archivo nuevo en el editor. -.PP -.I Auto Menús. -Si está activada, el menú de usuario aparece automáticamente al arrancar. -Útil en menús construidos para personas sin conocimientos de Unix. -.PP -.I Menús Desplegables. -Mostrar el contenido de los menús desplegables inmediatamente al presionar -F9. Si está desactivada solo la barra de títulos de los menús está -visible, y será necesario abrir cada menú con las flechas de movimiento -o con las teclas de acceso rápido. -.I Completar: Mostrar Todos. -Por defecto, al completar nombres en situaciones de ambigüedad, Midnight -Commander completa todo lo posible al pulsar -.B Alt\-Tab -y produce un pitido; al intentarlo por segunda vez se muestra una lista -con las posibilidades que han dado lugar a la ambigüedad. Con esta opción, -la lista aparece directamente tras pulsar -.B Alt\-Tab -por primera vez. -.PP -.I Patrones «shell». -Por defecto, las funciones Selección, Deselección y Filtro emplean -expresiones regulares al estilo del shell. Para realizar esto se -realizan las siguientes conversiones: '*' se cambia por '.*' (cero o -más caracteres); '?' por '.' (exactamente un carácter) y '.' por un -punto literal. Si la opción está desactivada, entonces las expresiones -regulares son las descritas en ed(1). -.PP -.I Completar: Mostrar Todos. -Por defecto Midnight Commander presenta todas las posibilidades de -.\"LINK2" -terminación -.\"Completion" -si la compleción es ambigua solo al pulsar -.B Alt\-Tab -por segunda vez. La primera, solo completa todo lo posible y emite -un pitido en caso de ambigüedad. Activando esta opción se muestran -todas las posibilidades directamente con la primera pulsación de -.BR Alt\-Tab . -.PP -.I Hélice de actividad. -Mostrar un guión rotatorio en la esquina superior derecha a modo de -indicador de progreso. -.PP -.I Cd Sigue los Enlaces. -Esta opción, si está seleccionada, hace que Midnight Commander siga la -secuencia de directorios lógica al cambiar el directorio actual, tanto en -el panel como usando el comando cd. Este es el comportamiento por defecto -de la shell bash. Sin esto, Midnight Commander sigue la estructura real -de directorios, y cd .. nos trasladará al padre real del directorio -actual aunque hayamos entrado en ese directorio a través de un enlace, -y no al directorio donde se encontraba el enlace. -.PP -.I Precauciones de Borrado. -Dificulta el borrado accidental de archivos. La opción por defecto en el -diálogo de confirmación de borrado se cambia a "No". Por defecto, esta -opción está desactivada. -.PP -.I Auto\-Guarda Configuración. -Si esta opción está activada, cuando salimos de Midnight Commander las -opciones configurables de Midnight Commander se guardan en el archivo -.IR ~/.config/mc/ini . -.\"NODE " Layout" -.SH " Presentación" -La ventana de presentación nos da la posibilidad de cambiar la -presentación general de la pantalla. Podemos configurar si son visibles -la barra de menú, la línea de órdenes, la línea de sugerencias o la -barra de teclas de Función. En la consola Linux o FreeBSD podemos -especificar cuántas líneas se muestran en la ventana de salida. -.PP -El resto del área de pantalla se utiliza para los dos paneles de -directorio. Podemos elegir si disponemos los paneles vertical u -horizontalmente. La división puede ser simétrica o bien podemos indicar -una división asimétrica. -.PP -Por defecto, todos los contenidos de los paneles se muestran en el mismo -color, pero se puede indicar que -.I permisos -y -.I tipos de archivos -se resalten empleando -.\"LINK2" -colores -.\"Colors" -diferentes. Si se activa el resaltado de permisos, las partes de los -campos de -.I permisos -del -.\"LINK2" -Modo de Listado -.\"Listing Format..." -aplicables al usuario actual de Midnight Commander serán resaltados -usando el color indicado por medio de la palabra clave -.I selected. -Si se activa el resaltado de tipos de archivos, los nombres aparecerán -coloreados según las reglas almacenadas en el archivo -.IR %pkgdatadir%/filehighlight.ini . -Para más información, véase la -sección sobre -.\"LINK2" -Resaltado de nombres\&. -.\"Filenames Highlight" - -.PP -Si se está ejecutando en X Window dentro de un emulador de terminal, -Midnight Commander toma control del titulo de la ventana mostrando allí -el nombre del directorio actual. El título se actualiza cuando sea preciso. -Podemos desactivar la opción de -.I Titular las ventanas Xterm -si el emulador de terminal empleado falla y no se muestran o actualizan -correctamente estos textos. -.\"NODE " Panel options" -.SH " Paneles" -.B Opciones principales -.PP -.I Mostrar Mini\-estado -Si está activa se muestra en la parte inferior de cada panel una línea -con información sobre el archivo seleccionado en cada momento. Por defecto, -está activado. -.PP -.I Tamaños en unidades SI. -Mostrar tamaños de archivos en bytes con prefijos según el SI, Sistema -Internacional de Unidades, o sea, en base de 10. Por defecto, está -desactivada: los tamaños se calculan con prefijos según el IEC, empleando -base de 2. Véase al respecto ISO/IEC 80000-13. -.PP -.I Mezclar Archivos y Directorios. -Cuando esta opción está habilitada, todos los archivos y directorios -se muestran mezclados. Por defecto esta opción está desactivada: los directorios -(y enlaces a directorios) aparecen al principio de la lista, y el resto -de archivos a continuación. -.PP -.I Mostrar Archivos de Respaldo. -Mostrar los archivos terminados en tilde '~'. Si se desactiva no se muestran -(como la opción \-B de ls de GNU). Por defecto, está activo. -.PP -.I Mostrar Archivos Ocultos. -Mostrar los archivos que comiencen con un punto (como ls \-a). Por defecto, -está desactivado. -.PP -.I Recarga Rápida de Directorios. -Hace que Midnight Commander emplee una pequeña trampa al determinar -si los contenidos del directorio han cambiado. El truco consiste en -recargar el directorio solo si el inodo del directorio ha cambiado. Las -recargas se producen si se crean o borran archivos, pero si lo que cambia -es solo el inodo de un archivo del directorio (cambios en el tamaño, -permisos, propietario, etc.) la pantalla no se actualiza. En esos casos, -si tenemos la opción activada, será preciso forzar la recarga de forma -manual (con Ctrl\-r). Por defecto, está desactivado. -.PP -.I Marcar y Avanzar. -Hacer avanzar la barra de selección tras marcar un archivo (con la tecla -.BR insertar ). -Por defecto, está activo. -.PP -.I Invertir Solo Archivos. -Permite invertir la selección solo sobre los archivos. Por defecto, está activo. -Al invertir la selección se aplica solo a archivos, quedando los directorios -como estaban. Si se desactiva, todos los elementos no seleccionados se seleccionan -y viceversa, sean archivos o directorios. -.PP -.I Intercambio de Paneles Simple. -Si los dos paneles contienen listados de directorios, el intercambio simple -supone que ambos paneles intercambian sus posiciones: izquierda por derecha. -Si se desactiva, que es el estado por defecto, los contenidos de los paneles -se intercambian pero se mantienen las opciones de formato y orden de archivos. -.PP -.I Auto Guardar Configuración -Por defecto está desactivado. Si se activa, la configuración de los paneles -se guardará en -.I ~/.config/mc/panels.ini -al salir del programa. -.PP -.B Navegación -.PP -.I Navegación al Estilo Lynx. -Cuando la selección es un directorio y la línea de órdenes está vacía -permite cambiar a él con las flechas de movimiento. Esta opción está -inactiva por defecto. -.PP -.I Avance de Página. -Por defecto, cuando el cursor llega al final o al comienzo del panel -este se desplaza el equivalente a media pantalla. Al desactivarlo el -avance o retroceso se hace línea a línea. -.PP -.I Avance de Página con Ratón. -Controla si el avance en los paneles con la rueda del ratón se hace -por páginas o por líneas. -.PP -.B Resaltar -.PP -Permite que los -.I permisos -y -.I tipos de archivos -queden resaltados con -.\"LINK2" -colores -.\"Colors" -distintivos. Si se habilita el resaltado de permisos, los -.\"LINK2" -campos del listado -.\"Listing Format..." -.I perm -y -.I mode -aplicables al usuario que ejecuta MC se mostrarán destacados en el -color indicado con la clave -.IR selected . -Si se habilita el resaltado de tipo de archivo, los nombres de archivo -se mostrarán coloreados según las reglas contenidas en el archivo de -configuración -.IR %sysconfdir%/mc/filehighlight.ini . -Véase -.\"LINK2" -Resaltado de nombres\&. -.\"Filenames Highlight" -.PP -.B Búsqueda rápida -.PP -Permite configurar si la -.\"LINK2" -Búsqueda rápida -.\"Quick search" -distingue o no mayúsculas en los nombres: ignorar, distinguir o aplicar el mismo -criterio elegido en el orden de los nombres en el panel. -.\"NODE " Confirmation" -.SH " Confirmación" -En este diálogo configuramos las opciones de confirmación de eliminación de archivos, -sobreescritura, ejecución pulsando intro y salir del programa. -.\"NODE " Appearance" -.SH " Aspecto" -Aquí se puede elegir un «skin» o apariencia para usar. -.PP -Véase la sección sobre -.\"LINK2" -Skins -.\"Skins" -para conocer los detalles de los archivos de definición de estos «skins». -.\"NODE " Display bits" -.SH " Juego de caracteres" -Esta opción permite configurar el conjunto de caracteres visibles en la -pantalla. Este puede ser 7\-bits si nuestro terminal/curses soporta -solo siete bits de salida, alguna de las tablas del estándar ISO\-8859 y -diversas codificaciones comunes de PC con ocho bits por carácter, o UTF\-8 -para Unicode. -.PP -Para soportar teclados con caracteres locales debemos marcar la opción de -.IR "Aceptar entrada de 8 bits" . -.\"NODE " Learn keys" -.SH " Aprender teclas" -Este diálogo nos permite comprobar si nuestras teclas F1\-F20, Inicio, Fin, etc. funcionan adecuadamente -en nuestro terminal. A menudo fallan, dado que muchas bases de datos de terminales están mal. -.PP -Podemos movernos alrededor con la tecla Tab, con las teclas de movimiento de vi ('h' izquierda, 'j' -abajo, 'k' arriba y 'l' derecha) y después de pulsar cualquier tecla del cursor (esto -las marcará con OK), entonces podremos usar esa tecla también. -.PP -Para probarlas basta con pulsar cada una de ellas. Tan pronto como pulsamos una tecla y -esta funciona adecuadamente, la marca «✓» debería aparecer junto al nombre de la susodicha -tecla. Una vez que cada tecla queda marcada vuelve a funcionar con normalidad, p. ej. F1 la -primera vez comprobará que F1 funciona perfectamente, pero a partir de ese momento mostrará -la ayuda. Esto mismo es aplicable a las teclas del cursor. La tecla Tab debería funcionar -siempre. -.PP -Si algunas teclas no funcionan adecuadamente, entonces no veremos el OK tras el nombre de la tecla -después de haberla pulsado. Podemos entonces intentar solucionarlo. Haremos esto -pulsando el botón de esa tecla (con el ratón o usando -.IR Tab " e " Intro ). -Entonces un mensaje rojo aparecerá y se nos pedirá que pulsemos la tecla en cuestión. -Si deseamos abortar el proceso, bastará con pulsar -.I Esc -y esperar hasta que el mensaje -desaparezca. Si no, pulsaremos la tecla que nos pide y esperaremos hasta que -el diálogo desaparezca. -.PP -Cuando acabemos con todas las teclas, podríamos Guardar nuestras teclas -en nuestro archivo -.I ~/.config/mc/ini -dentro de la sección [terminal:TERM] (donde TERM es el -nombre de nuestro terminal actual) o descartarlas. Si todas nuestras teclas funcionan -correctamente y no debemos corregir ninguna, entonces (lógico) no se grabará. -.\"NODE " Virtual FS" -.SH " Sistema de Archivos Virtual (VFS)" -Este diálogo permite ajustar opciones del -.\"LINK2" -Sistema de Archivos Virtual (VFS)\&. -.\"Virtual File System" -.PP -Midnight Commander guarda en memoria o en disco información de algunos -de los sistemas de archivos virtuales con el fin de acelerar el acceso -a sus archivos. Ejemplo de esto son los listados descargados desde -servidores FTP o los archivos temporales descomprimidos creados para -acceder rápidamente a los contenidos de archivos tipo tar comprimidos. -.PP -Esas informaciones se conservan para permitirnos navegar, salir y volver a -entrar rápidamente en los correspondientes sistemas de archivos virtuales. -Al cabo de un cierto tiempo sin usarlos deben ser liberados y recuperar -los recursos utilizados. Por defecto ese tiempo es de un minuto, pero -se puede configurar por el usuario. -.PP -También podemos adelantar la liberación de los VFS desde el diálogo de -control de -.IR "Directorios virtuales (VFS)" . -.PP -El -.\"LINK2" -Sistema de Archivos FTP (FTPfs) -.\"FTP File System" -permite navegar por los directorios de servidores FTP remotos. Admite -diversas opciones. -.PP -.I Contraseña de FTP anónimo -es la contraseña a utilizar en conexiones en modo anónimo, esto es, -empleando el nombre de usuario "anonymous". Algunos sitios exigen que -esta sea una dirección de correo electrónico válida, pero tampoco es -conveniente dar nuestra dirección real a desconocidos para protegernos -de los envíos de correo masivo. -.PP -FTPfs conserva en caché los listados de los directorios consultados. -La duración de la caché es el valor indicado tras -.IR "Descartar el caché FTPfs" . -Un valor pequeño ralentiza el proceso porque cualquier pequeña operación -iría siempre acompañada de una conexión con el servidor FTP. -.PP -Se puede configurar un sistema proxy para FTP, aunque los cortafuegos -modernos son transparentes (al menos para FTP pasivo, ver más abajo) -y está opción es generalmente innecesaria. -.PP -Si la opción -.I Usar siempre proxy -no está activa, aún se puede emplear el proxy en casos concretos. Véanse -los ejemplos en la sección -.\"LINK2" -Sistema de Archivos FTP (FTPfs)\&. -.\"FTP File System" -.PP -Si la opción -.I Usar siempre proxy -está puesta, el programa asume que cualquier nombre de máquina -sin puntos es accesible directamente y también consulta el archivo -%sysconfdir%/mc/mc.no_proxy en busca de nombres de máquinas locales (o -dominios completos si el nombre empieza con un punto). En todos los -demás casos se usará siempre el proxy de FTP indicado arriba. -.PP -Se puede usar el archivo -.IR ~/.netrc , -que contiene información de usuarios y contraseñas para determinados -servidores FTP. Para conocer el formato de los archivos .netrc véase la -página de manual sobre -.BR "netrc (5)" . -.PP -.I Usar FTP pasivo -habilita el modo de tranferencia FTP pasivo (la conexión para -transferencia de datos es iniciada por la máquina cliente, no por el -servidor). Esta opción es la recomendada, y de hecho está activada -por defecto. Si se desactiva, la conexión la inicia el servidor, -y puede ser impedida por algún cortafuegos. -.PP -.\"NODE " Save Setup" -.SH " Guardar Configuración" -Al arrancar Midnight Commander se carga la información de inicio del -archivo -.IR ~/.config/mc/ini . -Si este no existe, se cargará la información del -archivo de configuración genérico del sistema, -.IR %pkgdatadir%/mc.ini . -Si el archivo de configuración genérico del sistema no existe, MC utiliza -la configuración por defecto. -.PP -El comando -.I Guardar Configuración -crea el archivo -.I ~/.config/mc/ini -guardando la configuración actual de los menús -.\"LINK2" -Izquierdo, Derecho -.\"Left and Right Menus" -y -.\"LINK2" -Opciones\&. -.\"Options Menu" -.PP -Si se activa la opción -.IR "Auto\-guarda configuración" , -MC guardará siempre la configuración actual al salir. -.PP -Existen también configuraciones que no pueden ser cambiadas desde -los menús. Para cambiarlas hay que editar manualmente el archivo de -configuración. Para más información, véase la sección sobre -.\"LINK2" -Ajustes Especiales\&. -.\"Special Settings" -.SH "" -.\"NODE "Executing operating system commands" -.SH "Ejecutando Órdenes del Sistema Operativo" -Podemos ejecutar comandos tecleando en la línea de órdenes de Midnight -Commander, o seleccionando el programa que queremos ejecutar -en alguno de los paneles y pulsando -.IR Intro . -.PP -Si pulsamos -.I Intro - sobre un archivo que no es ejecutable, Midnight -Commander compara la extensión del archivo seleccionado con las extensiones -recogidas en el -.\"LINK2" -Archivo de Extensiones\&. -.\"Edit Extension File" -Si se produce una coincidencia se ejecutará el código asociado con esa extensión. -Tendrá lugar una -.\"LINK2" -expansión -.\"Macro Substitution" -muy simple antes de ejecutar el comando. -.\"NODE " The cd internal command" -.SH " Comando cd Interno" -El comando -.I cd -es interpretado directamente por Midnight Commander, en vez de pasarlo -al interprete de comandos para su ejecución. Por ello puede que no todas -las posibilidades de expansión y sustitución de macro que hace nuestro -shell estén disponibles, pero sí algunas de ellas: -.PP -.I Sustitución de tilde. -La tilde (~) será sustituida por nuestro directorio de inicio. Si -añadimos un nombre de usuario tras la tilde, entonces será sustituido -por el directorio de entrada al sistema del usuario especificado. -.PP -Por ejemplo, ~coco sería el directorio de un supuesto usuario denominado -"coco", mientras que ~/coco es el directorio coco dentro de nuestro -propio directorio de inicio. -.PP -.I Directorio anterior. -Podemos volver al directorio donde estábamos anteriormente empleando el -nombre de directorio especial '\-' del siguiente modo: -.B cd \- -.PP -.I Directorios en CDPATH. -Si el directorio especificado al comando -.B cd -no está en el directorio actual, entonces Midnight Commander utiliza el -valor de la variable de entorno -.B CDPATH -para buscar el directorio en cualquiera de los directorios enumerados. -.PP -Por ejemplo, podríamos asignar a nuestra variable -.B CDPATH -el valor ~/src:/usr/src, lo que nos permitiría cambiar de directorio -a cualquiera de los directorios dentro de ~/src y /usr/src, desde -cualquier lugar del sistema de archivos, usando solo su nombre relativo -(por ejemplo cd linux podría llevarnos a /usr/src/linux). -.\"NODE " Macro Substitution" -.SH " Sustitución de Macro" -Cuando se accede al -.\"LINK2" -menú de usuario\&, -.\"Edit Menu File" -o se ejecuta un -.\"LINK2" -comando dependiente de extensión\&, -.\"Edit Extension File" -o se ejecuta un comando desde la línea de entrada de comandos, -se realiza una simple sustitución de macro. -.PP -Las macros son: -.PP -.I "%f" -.IP -Archivo actual. -.PP -.I "%d" -.IP -Nombre del directorio actual. -.PP -.I "%F" -.IP -Archivo actual en el panel inactivo. -.PP -.I "%D" -.IP -Directorio del panel inactivo. -.PP -.I "%t" -.IP -Archivos actualmente marcados. -.PP -.I "%T" -.IP -Archivos marcados en el panel inactivo. -.PP -.I "%u" -y -.I "%U" -.IP -Similar a las macros %t y %T, salvo que los archivos quedan desmarcados. -Solo se puede emplear esta macro una vez por cada entrada del archivo de menú -o archivo de extensiones, puesto que para la siguiente vez no quedaría ningún -archivo marcado. -.PP -.I "%s" -y -.I "%S" -.IP -Archivos seleccionados: Los archivos marcados si los hay y si no el -archivo actual. -.PP -.I "%cd" -.IP -Esta es una macro especial usada para cambiar del directorio actual -al directorio especificado frente a él. Esto se utiliza principalmente -como interfaz con el -.\"LINK2" -Sistema de Archivos Virtual\&. -.\"Virtual File System" -.PP -.I "%view" -.IP -Esta macro es usada para invocar al visor interno. Puede ser utilizada -en solitario, o bien con argumentos. Si pasamos algún argumento a esta -macro, deberá ser entre paréntesis. -.IP -Los argumentos son: -.I ascii -para forzar al visor a modo ascii; -.I hex -para forzar al visor a modo hexadecimal; -.I nroff -para indicar al visor que debe interpretar las secuencias de negrita y -subrayado de nroff; -.I unformated -para indicar al visor que no interprete los comandos nroff referentes a texto -resaltado o subrayado. -.PP -.I "%%" -.IP -El carácter % -.PP -.I "%{cualquier texto}" -.IP -Pregunta sobre la sustitución. Un cuadro de entrada es mostrado y el texto dentro -de las llaves se usa como mensaje. La macro es sustituida por el texto -tecleado por el usuario. El usuario puede pulsar -.IR Esc " o " F10 -para cancelar. Esta macro no funciona aún sobre la línea de órdenes. -.\"NODE " The subshell support" -.SH " Soporte de Subshell" -El soporte del subshell es una opción de tiempo de compilación, que funciona con los -shells: bash, tcsh y zsh. -.PP -Cuando el código del subshell es activado Midnight Commander -engendrará una copia de nuestro shell (la definida en la variable -.B SHELL -y si no está definida, el que aparece en el archivo /etc/passwd) -y lo ejecuta en un pseudoterminal, en lugar de invocar un nuevo shell -cada vez que ejecutamos un comando, el comando será pasado al -subshell como si lo hubiésemos escrito. Esto además permite cambiar las -variables de entorno, usaremos las funciones del shell y los alias definidos -que serán válidos hasta salir de Midnight Commander. -.PP -Si estamos usando -.B bash -podremos especificar comandos de arranque -para el subshell en nuestro archivo ~/.local/share/mc/bashrc y -mapas de teclado especiales en el archivo ~/.local/share/mc/inputrc. -Los usuarios de -.B tcsh -podrán especificar los comandos de arranque en el archivo ~/.local/share/mc/tcshrc. -.PP -Cuando utilizamos el código del subshell, podemos suspender aplicaciones en -cualquier momento con la secuencia -.I Ctrl\-o -y volver a Midnight Commander, si interrumpimos una aplicación, no -podremos ejecutar otros comandos externos hasta que quitemos la -aplicación que hemos interrumpido. -.PP -Una característica extra añadida de uso del subshell es que el prompt -mostrado por Midnight Commander es el mismo que estamos usando en -nuestro shell. -.PP -La sección -.\"LINK2 -OPCIONES -.\"OPTIONS" -tiene más información sobre cómo controlar el código del subshell. -.\"NODE "Chmod" -.SH "Cambiar Permisos" -Cambiar Permisos se usa para cambiar los bits de permisos en un grupo de -archivos y directorios. Puede ser invocado con la combinación de teclas Ctrl\-x c. -.PP -La ventana de Cambiar Permisos tiene dos partes \- -.I Permisos -y -.I Archivo -.PP -En la sección Archivo se muestran el nombre del archivo o directorio -y sus permisos en formato numérico octal, así como su propietario y grupo. -.PP -En la sección de Permisos hay un grupo de casillas de selección -que corresponden a los posibles permisos del archivo. Conforme los cambiamos -podemos ver cómo el valor octal va cambiando en la sección Archivo. -.PP -Para desplazarse entre las casillas y botones de la ventana podemos -usar las -.I teclas del cursor -o la -.I tecla de tabulación. -Para marcar o desmarcar casillas y para pulsar los botones -usaremos la -.I barra espaciadora. -Podemos usar los atajos de teclado (las letras destacadas) para accionar -directamente los elementos. -.PP -Para aceptar y aplicar los permisos, usaremos la tecla -.IR Intro . -.PP -Si se trata de un grupo de archivos o directorios, podemos cambiar parte -de los permisos marcándolos (las marcas son los asteriscos a la izquierda de las -casillas) y pulsando el botón -.B [* Poner] -o -.B [* Quitar] -para indicar la acción deseada. Los permisos no marcados conservan, en este -caso, los valores previos. -.PP -Podemos también fijar todos los permisos iguales en todos los archivos -con el botón -.B [Todos] -o solo los permisos marcados con el botón -.B [* Todos]. -En estos casos las casillas indican el estado en que queda cada permiso, igual -que para archivos individuales. -.PP -.B [Todos] -actúa sobre todos los permisos de todos los archivos -.PP -.B [* Todos] -actúa solo sobre los atributos marcados de los archivos -.PP -.B [* Poner] -activa los permisos marcados en los archivos seleccionados -.PP -.B [* Quitar] -desactiva los permisos marcados en los archivos seleccionados -.PP -.B [Aplicar] -actúa sobre todos los permisos de cada archivo, uno a uno -.PP -.B [Cancelar] -cancela Cambiar Permisos -.\"NODE "Chown" -.SH "Cambiar Dueño" -Cambiar Dueño permite cambiar el propietario y/o grupo de un archivo. La tecla -rápida para este comando es Ctrl\-x o. -.\"NODE "Advanced Chown" -.SH "Cambiar Dueño y Permisos" -Cambiar Dueño y Permisos combina -.\"LINK2" -Cambiar Dueño -.\"Chown" -y -.\"LINK2" -Cambiar Permisos -.\"Chmod" -en una única ventana. Se puede así cambiar los permisos, propietario y grupo -del archivo de una sola vez. -.\"NODE "File Operations" -.SH "Operaciones con Archivos" -Cuando copiamos, movemos o borramos archivos, Midnight Commander muestra el -diálogo de operaciones con archivos. En él aparecen los archivos que se estén procesando -y hasta tres barras de progreso. La barra de archivo indica qué parte del archivo actual -va siendo copiada, la barra de contador indica cuántos de los archivos marcados -han sido completados y la barra de bytes nos dice qué parte del tamaño total de archivos -marcados ha sido procesado hasta el momento. Si la operación detallada está desactivada -no se muestran las barras de archivo y bytes. -.PP -En la parte inferior hay dos botones. Pulsando el botón Saltar se -ignorará el resto del archivo actual. Pulsando el botón -Abortar se detendrá la operación y se ignora el resto de archivos. -.PP -Hay otros tres diálogos que pueden aparecer durante operaciones de -archivos. -.PP -El diálogo de error informa sobre una condición de error y tiene tres -posibilidades. Normalmente seleccionaremos el botón Saltar para evitar el archivo -o Abortar para detener la operación. También podemos seleccionar el botón -Reintentar si hemos corregido el problema desde otro terminal. -.PP -El diálogo Reemplazar aparece cuando intentamos copiar o mover un archivo -sobre otro ya existente. El mensaje muestra fechas y tamaños de ambos archivos. -Pulsaremos el botón Sí para sobreescribir el archivo, el botón No -para saltarlo, el botón Todos para sobreescribir todos los archivos, -Ninguno para no sobreescribir en ningún caso y Actualizar para sobreescribir -si el archivo origen es posterior al archivo objeto. Podemos abortar toda la -operación pulsando el botón Abortar. -.PP -El diálogo de eliminación recursiva aparece cuando intentamos borrar -un directorio no vacío. Pulsaremos Sí para borrar el directorio recursivamente, -No para saltar el directorio, Todo para borrar recursivamente todos los directorios -marcados no vacíos y Ninguno para saltarlos todos. Podemos abortar toda la -operación pulsando el botón Abortar. Si seleccionamos el botón Sí o Todo -se nos pedirá confirmación. Diremos "sí" solo si estamos realmente seguros -de que queremos una eliminación recursiva. -.PP -Si hemos marcado archivos y realizamos una operación sobre ellos, solo -los archivos sobre los que la operación fue exitosa son desmarcados. Los archivos -saltados y aquellos en los que la operación falló permanecen marcados. -.\"NODE "Mask Copy/Rename" -.SH "Copiar/Renombrar con Máscara" -Las operaciones de copiar/mover permiten transformar los nombres de los archivos -de manera sencilla. Para ello, hay que procurar una máscara correcta para el -origen y normalmente en la terminación del destino algunos caracteres comodín. -Todos los archivos que concuerden con la máscara origen son copiados/renombrados -según la máscara destino. Si hay archivos marcados, solo aquellos que encajen con -la máscara de origen serán renombrados. -.PP -Hay otras opción que podemos seleccionar: -.PP -Seguir Enlaces indica si los enlaces simbólicos o físicos en el directorio -origen (y recursivamente en sus subdirectorios) producen nuevos enlaces en el -directorio destino o si queremos copiar su contenido. -.PP -Copiar Recursivamente indica qué hacer si en el directorio -destino existe ya un directorio con el mismo nombre que el -archivo/directorio que está siendo copiado. La acción por defecto -es copiar su contenido sobre ese directorio. Habilitando esto -podemos copiar el directorio de origen dentro de ese directorio. -Quizás un ejemplo pueda ayudar: -.PP -Queremos copiar el contenido de un directorio denominado coco a /blas -donde ya existe un directorio /blas/coco. Por defecto, mc copiaría el -contenido en /blas/coco, pero con esta opción se copiaría como -/blas/coco/coco. -.PP -Preservar Atributos indica que se deben conservar los permisos originales -de los archivos, marcas temporales y si somos superusuario también el -propietario y grupo originales. -Si esta opción no está activa se aplica el valor actual de umask. -.PP -.B "Usando Patrones Shell activado" -.PP -Usando Patrones Shell nos permite usar los caracteres comodín '*' y '?' -en la máscara de origen. Funcionará igual que en la línea de órdenes. En -la máscara destino, solo están permitidos los comodines '*' y '\\'. -El primer '*' en la máscara destino corresponde al primer grupo del comodín -en la máscara de origen, el segundo '*' al segundo grupo, etcétera. -El comodín '\\1' corresponde al primer grupo en la máscara de origen, -el comodín '\\2' al segundo y así sucesivamente hasta '\\9'. El comodín '\\0' -es el nombre completo del archivo fuente. -.PP -Dos ejemplos: -.PP -Si la máscara de origen es "*.tar.gz", el destino es "/blas/*.tgz" y el -archivo a copiar es "coco.tar.gz", la copia se hará como "coco.tgz" -en "/blas". -.PP -Supongamos que queremos intercambiar el nombre y la extensión de modo que -"archivo.c" se convierta en "c.archivo". La máscara origen será "*.*" y -la de destino "\\2.\\1". -.PP -.B "Usando Patrones Shell desactivado" -.PP -Cuando la opción de Patrones Shell está desactivada MC no realiza una -agrupación automática. Deberemos usar expresiones '\\(...\\)' en la máscara -origen para especificar el significado de los comodines en la máscara destino. -Esto es más flexible pero también necesita más escritura. Por lo demás, -las máscaras destino son similares al caso de Patrones Shell activos. -.PP -Dos ejemplos: -.PP -Si la máscara de origen es "^\\(.*\\)\\.tar\\.gz$", el destino es -"/blas/*.tgz" y el archivo a ser copiado es "coco.tar.gz", la copia -será "/blas/coco.tgz". -.PP -Si queremos intercambiar el nombre y la extensión para que "archivo.c" -sea "c.archivo", la máscara de origen puede ser -"^\\(.*\\)\\.\\(.*\\)$" y la de destino "\\2.\\1". -.PP -.B "Capitalización" -.PP -Podemos hacer cambios entre mayúsculas y minúsculas en los nombres de archivos. -Si usamos '\\u' o '\\l' en la máscara destino, el siguiente carácter será convertido a -mayúsculas o minúsculas respectivamente. -.PP -Si usamos '\\U' o '\\L' en la máscara destino, los siguientes caracteres -serán convertidos a mayúsculas o minúsculas respectivamente hasta encontrar -\&'\\E' o un segundo '\\U' o '\\L' o el fin del nombre del archivo. -.PP -\&'\\u' y '\\l' tienen prioridad sobre '\\U' y '\\L'. -.PP -Por ejemplo, si la máscara fuente es '*' (con Patrones Shell activo) o '^\\(.*\\)$' -(Patrones Shell desactivado) y la máscara destino es '\\L\\u*' los nombres de archivos -serán convertidos para que tengan su inicial en mayúscula y el resto del nombre en -minúsculas. -.PP -También podemos usar '\\' como carácter de escape evitando la interpretación de todos -estos caracteres especiales. Por ejemplo, '\\\\' es -una contrabarra y '\\*' es un asterisco. -.\"NODE "Select/Unselect Files" -.SH "Seleccionar/Deseleccionar Archivos" -El diálogo permite seleccionar o deseleccionar grupos de archivos y -directorios. La -.\"LINK2" -línea de entrada -.\"Input Line Keys" -permite introducir una expresión regular para los nombres de los -archivos a seleccionar/deseleccionar. -.PP -Indicando -.I Solo archivos -los directorios no se seleccionan. Con los -.I Caracteres Comodín -habilitados, se pueden introducir expresiones regulares del tipo empleado en -los patrones de nombres de la shell (poniendo * para cero o más caracteres y ? -para uno o más caracteres). Si los -.I Caracteres Comodín -están deshabilitados, entonces la selección de archivos se realiza con expresiones -regulares normales. Véase la página de manual de -.BR "ed (1)" . -Finalmente, si no se activa -.I Distinguir May/min -la selección se hará sin distinguir caracteres en mayúsculas o minúsculas. -.\"NODE "Diff Viewer" -.SH "Comparador de Archivos Interno" -El comparador de archivos interno permite comparar dos archivos y editarlos -en el sitio quedando la comparación actualizada sobre la marcha. Se puede -navegar y ver copias de trabajos desde los sistemas de control de versiones -populares (GIT, Subversion, etc). -.PP -El comparador ofrece los siguientes atajos de teclado: -.TP -.B F1 -Invoca el visor de ayuda y muestra esta sección. -.TP -.B F2 -Guarda los archivos modificados. -.TP -.B F4 -Edita el archivo del panel izquierdo. -.TP -.B F14 -Edita el archivo del panel derecho. -.TP -.B F5 -Combina el fragmento actual. Solo se combina el fragmento actual. -.TP -.B F7 -Comenzar una búsqueda. -.TP -.B F17 -Repetir la búsqueda previa. -.TP -.B F10, Esc, q -Salir del comparador. -.TP -.B Alt\-s, s -Mostrar/ocultar el estado de los fragmentos. -.TP -.B Alt\-n, l -Mostrar/ocultar números de línea. -.TP -.B f -Maximizar el panel izquierdo. -.TP -.B = -Igualar el ancho de los paneles. -.TP -.B > -Reducir el panel derecho. -.TP -.B < -Reducir el panel izquierdo. -.TP -.B c -Mostrar/ocultar «^M» para los saltos de línea con carácter de retorno (CR). -.TP -.B 2, 3, 4, 8 -Fijar ancho de tabulaciones. -.TP -.B Ctrl\-u -Intercambia el contenido de los paneles. -.TP -.B Ctrl\-r -Actualizar la pantalla. -.TP -.B Ctrl\-o -Alternar con la pantalla de órdenes del sistema. -.TP -.B Intro, Espacio, n -Avanzar al siguiente fragmento diferente. -.TP -.B Backspace, p -Retroceder al fragmento diferente anterior. -.TP -.B g -Saltar a la línea indicada. -.TP -.B Abajo -Avanzar una línea. -.TP -.B Ariba -Retroceder una línea. -.TP -.B AvPág (Página adelante) -Avanza una página hacia abajo. -.TP -.B RePág (Página atrás) -Retrocede una página hacia arriba. -.TP -.B Inicio, A1 -Va al comienzo de la línea. -.TP -.B Fin -Va al final de la línea. -.TP -.B Ctrl\-Inicio -Vuelve al comienzo del archivo. -.TP -.B Ctrl\-Fin, C1 -Avanza hasta el final del archivo. -.\"NODE "Internal File Viewer" -.SH "Visor de Archivos Interno" -El visor de archivos interno ofrece dos modos de presentación: ASCII y -hexadecimal. Para alternar entre ambos modos, se emplea la tecla F4. -.PP -El visor intenta usar el mejor método disponible en el sistema, según -el tipo de archivo, para mostrar información. Los archivos comprimidos -se descomprimen automáticamente si los programas correspondientes (GNU -gzip ó bzip2) están instalados en el sistema. El propio visor es capaz -de interpretar ciertas secuencias de caracteres que se emplean para -activar los atributos de negrita y subrayado, mejorando la presentación -de los archivos. -.PP -En modo hexadecimal, la función de búsqueda admite texto entre comillas o -valores numéricos. El texto entrecomillado se busca tal cual (retirando -las comillas) y cada número se corresponde a un byte. Unos y otros se -pueden entremezclar como en: -.PP -.nf -"Cadena" \-1 0xBB 012 "otro texto" -.fi -.PP -Nótese que 012 es un número octal y \-1 se convierte en 0xFF. -.PP -He aquí una lista de las acciones asociadas a cada tecla que -Midnight Commander gestiona en el visor interno de archivos. -.PP -.B F1 -Invoca el visor de ayuda de hipertexto interno. -.PP -.B F2 -Cambia el modo de ajuste de líneas en pantalla. - -.TP -.PP -.B * N. del T.: -Envuelta (Ajustada), se muestra toda la información de la línea en la pantalla, de -modo que si esta ocupa más del ancho de la pantalla aparece como si fuese -otra línea aparte o bien desenvuelta (desajustada), truncando el contenido -de la línea que sobresale de la pantalla. Este contenido puede ser -consultado utilizando las teclas del cursor. - -.PP -.B F4 -Cambia entre el modo hexadecimal y el Ascii. -.PP -.B F5 -Ir a la línea. Nos pedirá el número de línea en el que deseamos posicionarnos y -mostrará el archivo a partir de esa línea. -.PP -.B F6, /. -Búsqueda de expresión regular desde la posición actual hacia adelante. -.PP -.B ?, -Búsqueda de expresión regular desde la posición actual hacia atrás. -.PP -.B F7 -Búsqueda normal/ búsqueda en modo hexadecimal. -.PP -.B Ctrl\-s. -Comienza una búsqueda normal si no existe una expresión de búsqueda previa si no -busca la próxima coincidencia. -.PP -.B Ctrl\-r. -Comienza una búsqueda hacia atrás si no había expresión de búsqueda anterior si no -busca la próxima coincidencia. -.PP -.B n. -Buscar la próxima coincidencia. -.PP -.B F8 -Intercambia entre el modo crudo y procesado: esto mostrará el archivo como se encuentra en disco -o si se ha especificado un filtro de visualización en el archivo mc.ext.ini, entonces -la salida filtrada. El modo actual es siempre el contrario al mostrado -en la etiqueta del botón, en tanto que el botón muestra el modo en el que entraremos -con la pulsación de esa tecla. -.PP -.B F9 -Alterna entre la visualización con y sin formato: en el modo con formato -se interpretan algunas secuencias de caracteres para mostrar texto en -negrita y subrayado con diferentes colores. Como en el caso anterior, -la etiqueta del botón muestra el estado contrario al actual. -.PP -.B F10, Esc. -Sale del visor interno. -.PP -.B AvPág, espacio, Ctrl\-v. -Avanza una página hacia abajo. -.PP -.B RePág, Alt\-v, Ctrl\-b, Borrar. -Retrocede una página hacia arriba. -.PP -.B Cursor Abajo -Desplaza el texto una línea hacia arriba, mostrando en la línea inferior de -la pantalla una nueva línea que antes quedaba oculta. -.PP -.B Cursor Arriba -Desplaza una línea hacia abajo. -.PP -.B Ctrl\-l -Redibuja el contenido de la pantalla. -.PP -.B ! -Engendra un nuevo shell en el directorio de trabajo actual. -.PP -.B "[n] m" -Coloca la marca n. -.PP -.B "[n] r" -Salta hasta la marca n. -.PP -.B Ctrl\-f -Salta al archivo siguiente. -.PP -.B Ctrl\-b -Ãdem al archivo anterior. -.PP -.B Alt\-r -Intercambia entre los diferentes modos de regla: desactivado, arriba, abajo. -.PP -Es posible adiestrar al visor de archivos sobre cómo mostrar un archivo, mírese -la sección -.\"LINK2" -Editar Archivo de Extensiones\&. -.\"Edit Extension File" -.\"NODE "Internal File Editor" -.SH "Editor de Archivos Interno" -El editor de archivos interno es un editor a pantalla completa de -avanzadas prestaciones. Puede editar archivos de hasta 64 MB y también -permite modificar archivos binarios. Se inicia pulsando -.B F4 -supuesto que la variable -.I use_internal_edit -esté presente en el archivo de inicialización. -.PP -Las características soportadas actualmente son: copia, desplazamiento, -borrado, corte, y pegado de bloques; deshacer paso a paso; menús -desplegables; inserción de archivos; definición de macros; buscar y -reemplazar usando expresiones regulares); selección de texto con -mayúsculas\-cursor (si el terminal lo soporta); alternancia -insertar\-sobreescribir; plegado de líneas; sangrado automático; tamaño -de tabulación configurable; realce de sintaxis para varios tipos de -archivos; y la opción de pasar bloques de texto por filtros externos -como indent o ispell. -.PP -El editor es muy fácil de usar y no requiere aprendizaje alguno. -Para conocer las teclas asignadas a cada función, basta consultar los -menús correspondientes. Además, las teclas de desplazamiento con la -tecla de mayúsculas seleccionan texto. Se puede seleccionar con el ratón, -aunque podemos recuperar su funcionamiento habitual en terminales (copiar -y pegar) manteniendo pulsada la tecla mayúsculas. -.B Ctrl\-Ins -copia al archivo -.B mcedit.clip -y -.B Mayús\-Ins -pega desde -.BR mcedit.clip . -.B Mayús\-Supr -corta y copia en -.BR mcedit.clip , -y -.B Ctrl\-Supr -elimina el texto resaltado. La tecla -.B Intro -produce un salto de línea con sangrado automático opcional. -.PP -Para definir una macro, pulsar -.B Ctrl\-r -y entonces teclearemos las secuencias de teclas que deseamos sean -ejecutadas. Pulsaremos -.B Ctrl\-r -de nuevo al finalizar. Podemos asignar la macro a la tecla que queramos -pulsando sobre ella. La macro será ejecutada cuando pulsemos -.B Ctrl\-a -seguido de la tecla asignada. También será ejecutada si -pulsamos Meta (Alt), Ctrl, o Escape y la tecla asignada, siempre y cuando -la tecla no sea usada por ninguna otra función. Una vez definida, los comandos de -macro irán al archivo -.B ~/.local/share/mc/mcedit/mcedit.macros -en nuestro directorio de inicio. Podemos eliminar una macro borrando -la línea adecuada en este archivo. -.PP -.B F19 -formateará el bloque seleccionado (sea texto, código -.B C -o -.B C++ -u otro). Esto está controlado por el archivo -.B %pkgdatadir%/edit.indent.rc -que se copia la primera vez que se usa en -.B ~/.local/share/mc/mcedit/edit.indent.rc -en el directorio personal. -.PP -El editor también visualiza caracteres no estadounidenses (160+). Al editar -archivos binarios, debemos configurar los -.B bits de pantalla -a 7 bits en el menú de opciones para mantener el espaciado saneado. -.\"NODE "Completion" -.SH "Terminación" -Permite a Midnight Commander escribir por nosotros. -.PP -Intenta completar el texto escrito antes de la posición -actual. Midnight Commander intenta la terminación tratando -el texto como si fuera una variable (si el texto comienza con -.BR $ ), -nombre de usuario (si el texto empieza por -.BR ~ ), -nombre de máquina (si el texto comienza con -.BR @ ) -o un comando (si estamos en la línea de órdenes en una posición -donde podríamos escribir un comando; las terminaciones posibles entonces -incluyen las palabras reservadas del shell así como comandos internos -del shell) en ese orden. Si nada de lo anterior es aplicable, se intenta -la terminación con nombres de archivo. -.PP -La terminación de nombres de archivo, usuario y máquina funciona en -todas las líneas de entrada; la terminación de comandos es específica de -la línea de órdenes. Si la terminación es ambigua (hay varias -posibilidades diferentes), Midnight Commander pita, y la acción siguiente -depende de la opción -.I Completar: Mostrar Todos -en el diálogo de -.\"LINK2" -Configuración\&. -.\"Configuration" -Si está activada, se despliega inmediatamente junto a la posición actual -una lista con todas las posibilidades donde se puede seleccionar con -las flechas de movimiento e -.B Intro -la entrada correcta. También podemos seguir escribiendo caracteres con lo -que la línea se sigue completando tanto como sea posible y simultáneamente -la primera entrada coincidente de la lista se va resaltando. Si volvemos -a pulsar -.BR Alt\-Tab , -solo las coincidencias permanecen en la lista. Tan pronto -como no haya ambigüedad, la lista desaparece; también podemos quitarla -con las teclas de cancelación -.BR Esc ", " F10 -y las teclas de movimiento a izquierda y derecha. Si -.\"LINK2" -Completar: Mostrar Todos -.\"Configuration" -está desactivado, la lista aparece cuando pulsamos -.B Alt\-Tab -por segunda vez; con la primera Midnight Commander solo emite un pitido. -.PP -Aplica escapes a los símbolos -.BR ? ", " * " y " & -(como \fB\\?\fR, \fB\\*\fR, \fB\\&\fR ) -en los nombres de archivo para evitar su interpretación en expresiones -regulares al realizar sustituciones en la línea de entrada. -.\"NODE "Virtual File System" -.SH "Sistemas de Archivos Virtuales (VFS)" -Midnight Commander dispone de una capa de código de acceso al sistema -de archivos; esta capa se denomina Sistema de Archivos Virtual (VFS). -El Sistema de Archivos Virtual permite a Midnight Commander manipular -archivos no ubicados en el sistema de archivos Unix. -.PP -Midnight Commander incluye actualmente varios Sistemas de Archivos -Virtuales: el sistema de archivos -.IR local , -utilizado para acceder al sistema de archivos Unix habitual; -.I tarfs -para manipular archivos empaquetados con el comando tar y acaso -comprimidos; -.I undelfs -para recuperar archivos borrados en sistemas de archivos de tipo ext2 -(sistema de archivos habitual en Linux); -.I ftpfs -para manipular archivos en sistemas remotos a través de FTP; -.I fish -para manipular archivos a través de conexiones a shell como rsh o ssh. -.PP -Dependiendo de la forma en que fue compilado, puede disponer también de: -.I sftpfs -para manipular archivos en sistemas remotos a través de SFTP. -.PP -Se facilita también un sistema de archivos genérico -.I extfs -(EXternal virtual File System) para extender con facilidad las -posibilidades de VFS empleando guiones y programas externos. -.PP -El código VFS interpretará todos los nombres de ruta usados y los dirigirá -al sistema de archivos correcto. El formato usado para cada uno de los -sistemas de archivos se describe más adelante en su propia sección. -.\"NODE " Tar File System" -.SH " Sistema de archivos Tar (tarfs)" -El sistema de archivos tar y los archivos tar comprimidos pueden consultarse usando -el comando chdir. Para mostrar en el panel el contenido de un archivo tar, cambiamos -de directorio empleando la siguiente sintaxis: -.PP -.I /archivo.tar/utar://[directorio\-dentro\-tar] -.PP -El archivo mc.ext.ini también ofrece un atajo para los archivos tar, esto quiere decir -que normalmente basta con apuntar a un archivo tar y pulsar Intro para entrar en el -archivo tar. Véase la sección -.\"LINK2" -Edición del Archivo de Extensiones -.\"Edit Extension File" -para obtener más detalles sobre cómo hacer esto. -.PP -Ejemplos: -.PP -.nf - mc\-3.0.tar.gz/utar://mc\-3.0/vfs - /ftp/GCC/gcc\-2.7.0.tar/utar:// -.fi -.PP -En este último se indica la ruta completa hasta el archivo tar. - -.\"NODE " FTP File System" -.SH " Sistema de archivos FTP" -FTPfs permite manipular archivos en máquinas remotas. Para utilizarlo -se puede emplear la opción de menú -.I Conexión por FTP -o simplemente emplear la orden -.I cd -como cuando cambiamos habitualmente de directorio, pero indicando -como ruta: -.PP -.I ftp://[!][usuario[:clave]@]maquina[:puerto]/[dir\-remoto] -.PP -Los elementos -.IR usuario , -.I puerto -y -.I directorio\-remoto -son opcionales. Si especificamos el elemento -.IR usuario , -entonces Midnight Commander intentará conectarse con la máquina remota -como ese usuario, y si no, establecerá una conexión en modo anónimo o -con el nombre de usuario indicado en el archivo -.IR ~/.netrc . -El elemento -.I clave -también es opcional, y si está presente, se emplea como contraseña -de acceso. Esta forma de colocar la contraseña como parte del nombre -del directorio virtual no es muy recomendable porque eventualmente puede -aparecer en pantalla y guardarse en el histórico de directorios. -.PP -Si es necesario utilizar un proxy de FTP, se añade un símbolo de exclamación -.B ! -delante del nombre de la máquina. -.PP -Ejemplos: -.PP -.nf - ftp://ftp.nuclecu.unam.mx/linux/local - ftp://tsx\-11.mit.edu/pub/linux/packages - ftp://!detras.barrera.edu/pub - ftp://guest@pcremoto.com:40/pub - ftp://miguel:xxx@servidor/pub - ftp://ftp.um.es/pub -.fi -.PP -La opciones de FTPfs se encuentran entre las opciones de configuración del -.\"LINK2" -Sistema de Archivos Virtual (VFS)\&. -.\"Virtual FS" - -.\"NODE " FIle transfer over SHell filesystem" -.SH " Sistema de archivos a través de SHell" -El FISH es un sistema de archivos por red que permite manipular archivos -en una máquina remota como si estuvieran almacenados localmente. Para -ello es preciso que el sistema remoto esté ejecutando el servidor FISH -o permitir la conexión a una shell de tipo bash. -.PP -Para conectar con la máquina remota basta cambiar de directorio a un -directorio virtual cuyo nombre sea de la forma: -.PP -.I sh://[usuario@]maquina[:opciones]/[directorio\-remoto] -.PP -Los elementos -.IR usuario , -.I opciones -y -.I directorio\-remoto -son opcionales. Si se especifica el elemento -.I usuario -Midnight Commander intentará entrar en la máquina remota como ese -usuario, y si no usará nuestro nombre. -.PP -Como -.I opciones -se puede poner 'C' para usar compresión y 'r' para utilizar una -conexión rsh en vez de ssh. Si se indica el -.IR directorio\-remoto , -se buscará este como primer directorio al conectar con la máquina -remota. -.PP -Ejemplos: -.PP -.nf - sh://solorsh.es:r/linux/local - sh://pepe@quiero.comprension.edu:C/privado - sh://pepe@sincomprimir.ssh.edu/privado -.fi -.\"NODE " SFTP (SSH File Transfer Protocol) filesystem" -.SH " Sistema de archivos SFTP (FTP sobre SSH)" -El sistema de archivos SFTP es un sistema de archivos sobre red -que permite manipular archivos en una máquina remota como si fueran -locales. -.PP -Para conectar con la máquina remota basta cambiar de directorio a un -directorio virtual cuyo nombre sea de la forma: -.PP -.I sftp://[usuario@]maquina:[puerto]/[directorio\-remoto] -.PP -Los elementos -.IR usuario , -.I puerto -y -.I directorio\-remoto -son opcionales. Si se especifica el elemento -.I usuario -Midnight Commander intentará acceder a la máquina remota como ese -usuario, y si no usará nuestro nombre. El -.I puerto -indica el puerto utilizado por el servidor remoto, por defecto 22. -El -.I directorio\-remoto -será el directorio actual tras la conexión. -.PP -Ejemplos: -.PP -.nf - sftp://solorsh.es/linux/local - sftp://pepe:k1abe@quiero.comprension.edu/privado - sftp://pepe@sincomprimir.ssh.edu/privado - sftp://pepe@maquina.ssh.edu:2222/privado -.fi - -.\"NODE " Undelete File System" -.SH " Sistema de archivos de Recuperación" -En sistemas Linux, si el programa de configuración nos preguntó si queríamos usar -las facilidades de recuperación de archivos de ext2fs, tendremos el sistema de archivos -recuperables accesible. -La recuperación de archivos borrados está disponible solo en los sistemas de archivos ext2. El -sistema de archivos recuperable es solo un interface de la librería ext2fs con: -restaurar todos los archivos borrados en un ext2fs y proporciona -la extracción selectiva de archivos en una partición regular. -.PP -Para usar este sistema de archivos, tendremos que hacer un chdir a un nombre de archivo especial -formado por el prefijo "/undel://" y el nombre de archivo donde se encuentra el -sistema de archivos actual. -.PP -Por ejemplo, para recuperar archivos borrados en la segunda partición del -primer disco scsi en Linux, usaríamos el siguiente nombre de ruta: -.PP -.nf - undel://sda2 -.fi -.PP -Esto le llevaría un tiempo a undelfs para cargar la información -antes de empezar a navegar por los archivos allí contenidos. - -.\"NODE " EXTernal File System" -.SH " Sistema de archivos EXTerno (extfs)" -.B extfs -permite incorporar a GNU Midnight Commander numerosas utilidades y tipos -de archivos de manera sencilla, simplemente escribiendo guiones -(scripts). -.PP -Los sistemas de archivos Extfs son de dos tipos: -.PP -1. Sistemas de archivos autónomos, que no están asociados a ningún -archivo existente. Representan algún tipo de información relacionada con -el sistema en forma de árbol de directorios. Se accede a ellos ejecutando -.RI ' "cd nombrefs://" ' -donde nombrefs es el nombre corto que identifica el extfs (ver más -adelante). Ejemplos de estos son audio (lista de pistas de sonido en -el CD) o apt (lista de paquetes de tipo Debian en el sistema). -.PP -Por ejemplo, para listar las pistas de música del CD, escribir -.PP -.nf - cd audio:// -.fi -.PP -2. Sistemas de archivos en un archivo (como rpm, patchfs y más), que -muestran los contenidos de un archivo en forma de árbol de directorios. -Puede tratarse de archivos reales empaquetados o comprimidos en un archivo -(urar, rpm) o archivos virtuales, como puede ser el caso de mensajes -en un archivo de correo electrónico (mailfs) o partes de un archivo de -modificaciones o parches (patchfs). Para acceder a ellos se añade -.RI ' nombrefs:// ' -al nombre del archivo a abrir. Este archivo podría él mismo estar en -otro sistema de archivos virtual. -.PP -Por ejemplo, para listar los contenidos de un archivo documentos.zip -comprimido hay que escribir -.PP -.nf - cd documentos.zip/uzip:// -.fi -.PP -En muchos aspectos, se puede tratar un sistema de archivos externo como -cualquier otro directorio. Podríamos añadirlo a la lista de favoritos o -cambiar a él desde la historia de directorios. Una limitación importante -es que, estando dentro de él, no se puede ejecutar órdenes del sistema, -como por otra parte ocurre en cualquier sistema de archivos VFS no local. -.PP -Midnigth Commander incluye inicialmente guiones para algunos sistemas de -archivos externos: -.TP -.B a -acceder a un disquete DOS/Windows 'A:' -.RI ( "cd a://" ). -.TP -.B apt -monitor del sistema de gestión de paquetes APT de Debian -.RI ( "cd apt://" ). -.TP -.B audio -acceso y audición de CDs -.RI ( "cd audio://" -o -.IR "cd dispositivo/audio://" ). -.TP -.B bpp -paquete de la distribución GNU/Linux Bad Penguin -.RI ( "cd archivo.bpp/bpp://" ). -.TP -.B deb -paquete de la distribución GNU/Linux Debian -.RI ( "cd archivo.deb/deb://" ). -.TP -.B dpkg -paquetes instalados en Debian GNU/Linux -.RI ( "cd deb://" ). -.TP -.B hp48 -ver o copiar archivos a/desde una calculadora HP48 -.RI ( "cd hp48://" ). -.TP -.B lslR -navegación en listados lslR empleados en bastantes sitios FTP -.RI ( "cd filename/lslR://" ). -.TP -.B mailfs -soporte para archivos de correo electrónico tipo mbox -.RI ( "cd archivo_mbox/mailfs://" ). -.TP -.B patchfs -manipulación de archivos de cambios/parches tipo diff -.RI ( "cd archivo/patchfs://" ). -.TP -.B rpm -paquete RPM -.RI ( "cd archivo/rpm://" ). -.TP -.B rpms -base de datos de paquetes RPM instalados -.RI ( "cd rpms://" ). -.TP -.B ulha, urar, uzip, uzoo, uar, uha -herramientas de compresión -.RI ( "cd archivo/xxxx://" -siendo xxxx uno de estos: -.IR ulha , -.IR urar , -.IR uzip , -.IR uzoo , -.IR uar , -.IR uha ). -.PP -Se pueden asociar extensiones o tipos de archivo a un determinado sistema -de archivos externo tal como se describe en la sección sobre cómo -.\"LINK2" -Editar el Archivo de Extensiones -.\"Edit Extension File" -de Midnight Commander. He aquí, a modo de ejemplo, una entrada para -paquetes Debian: -.PP -.nf - regex/\.deb$ - Open=%cd %p/deb:// -.fi -.\"NODE "Colors" -.SH "Colores" -Midnight Commander intentará determinar si nuestro terminal soporta -el uso de color utilizando la base de datos de terminales y nuestro nombre de terminal. Algunas veces -estará confundido, por lo que deberemos forzar el modo en color o deshabilitar el modo de color -usando el argumento \-c y \-b respectivamente. -.PP -Si el programa está compilado con el gestor pantallas S\-Lang -en lugar de ncurses, también chequeará la variable -.BR COLORTERM , -si existe, lo que tiene el mismo efecto que la opción \-c. -.PP -Podemos especificar a los terminales que siempre fuercen el modo en color -añadiendo la variable -.I color_terminals -a la sección Colors del archivo de inicialización. Esto evitará que -Midnight Commander intente la detección de soporte de color. Ejemplo: -.PP -.nf -[Colors] -color_terminals=linux,xterm -.fi -.nf -color_terminals=nombre\-terminal1,nombre\-terminal2... -.fi -.PP -El programa puede compilarse con ncurses y S\-Lang, ncurses no -ofrece la posibilidad de forzar el modo en color: ncurses utiliza la -información de la base de datos de terminales. -.PP -Midnight Commander ofrece una forma de cambiar los colores por defecto. -Actualmente los colores se configuran a través de la variable de entorno -.B MC_COLOR_TABLE -o en la sección Colors del archivo de inicialización. -.PP -En la sección Colors, el mapa de colores por defecto se carga desde la variable -.IR base_color . -Podemos especificar un mapa de colores alternativo para un terminal -utilizando el nombre del terminal como clave en esta sección. Ejemplo: -.PP -.nf -[Colors] -base_color= -xterm=menu=magenta:marked=,magenta:markselect=,red -.fi -.PP -El formato de la definición de color es: -.PP -.nf - =,:= ... -.fi -.PP -los colores son opcionales, y las palabras claves son: normal, selected, -disabled, marked, markselect, errors, input, inputmark, inputunchanged, -commandlinemark, reverse, gauge, header, inputhistory, commandhistory; -los colores de la barra de botones: bbarhotkey, bbarbutton; los colores -de la barra de estado: statusbar; los colores de menú: menunormal, -menusel, menuhot, menuhotsel, menuinactive; los colores de los diálogos: -dnormal, dfocus, dhotnormal, dhotfocus, dtitle; los colores de los diálogos -de error: errdfocus, errdhotnormal, errdhotfocus, errdtitle; los colores -de la ayuda: helpnormal, helpitalic, helpbold, helplink, helpslink, -helptitle; los colores del visor: viewnormal, viewbold, viewunderline, -viewselected; loc colores del editor: editnormal, editbold, editmarked, -editwhitespace, editnonprintable, editlinestate; los colores de los menús -desplegables: pmenunormal, pmenusel, pmenutitle. -.PP -.I header -determina el color del encabezado de los paneles, la línea con los -títulos de columna y el modo de ordenación. -.PP -.I input -determina el color de las líneas de entrada de texto en los diálogos. -.PP -.I gauge (indicador) -determina el color de la parte completada de la barra de progresión (gauge), que muestra -qué porcentaje de archivos fueron copiados etc. de modo gráfico. -.PP -.I disabled -detemina el color de los componentes inactivos. -.PP -Los cuadros de diálogo usan los siguientes colores: -.I dnormal -usado para el texto normal, -.I dfocus -usado para el componente actualmente seleccionado, -.I dhotnormal -usado para diferenciar el color de la tecla activa -en los componentes normales, mientras que el color -.I dhotfocus -se utiliza para el color resaltado en el componente seleccionado. -.PP -Los menús utilizan el mismo esquema equivalente con los nombres menunormal, -menusel, menuhot, menuhotsel and menuinactive en lugar de los anteriores. -.PP -La ayuda utiliza los siguientes colores: -.I helpnormal -texto normal, -.I helpitalic -utilizado para el texto enfatizado con letra itálica en la página del manual, -.I helpbold -usado para el texto enfatizado en negrita en la página del manual, -.I helplink -usado para los hiperenlaces no seleccionados y -.I helpslink -es utilizado para el hiperenlace seleccionado. -.PP -En los menús desplegables: -.I pmenunormal -se usa como color del fondo y de los elementos no seleccionados, -.I menusel -se usa para el elemento seleccionado, -.I pmenutitle -se usa para el titulo del menú. - -.PP -Los colores posibles son: negro (black), gris (gray), rojo (red), rojo brillante (brightred), verde (green), -verde claro (brightgreen), marrón (brown), amarillo (yellow), azul oscuro (blue), azul brillante (brightblue), -rosa (magenta), rosa claro (brightmagenta), -azul celeste (cyan), celeste claro (brightcyan), gris claro (lightgray) y blanco (white). -Hay una palabra clave especial para obtener un fondo transparente. Se trata de 'default'. 'default' -solo se puede utilizar como color de fondo. Otra palabra especial es 'base' que hace referencia a los -colores generales. Cuando se puede disponer de 256 colores se pueden referir como color16 hasta -color255. Ejemplo: -.PP -.nf -[Colors] -base_color=normal=white,default:marked=magenta,default -.fi - -.\"NODE "Skins" -.SH "Skins" -Con los «skins» (pieles, caretas) se puede cambiar la apariencia global de -Midnight Commander. Para ello hay que proporcionar un archivo que contenga -descripciones de colores y formas de trazar las líneas de borde de los -paneles y diálogos. La redefinición de colores es completamente compatible -con la configuración tradicional detallada en la sección sobre -.\"LINK2" -Colores\&. -.\"Colors" -.PP -El archivo se busca, en orden, de varias maneras: -.IP -.br -1) La opción -.B \-S -o -.B \-\-skin= -al ejecutar mc. -.br -2) La variable de entorno -.BR MC_SKIN . -.br -3) El parámetro -.B skin -en la sección -.B [Midnight\-Commander] -del archivo de configuración. -.br -4) El archivo -.BR %sysconfdir%/mc/skins/default.ini . -.br -5) El archivo -.BR %pkgdatadir%/skins/default.ini . - -.PP -En línea de órdenes, en la variable de entorno o el parámetro de la -configuración pueden contener la ruta absoluta al archivo de skin con -o sin su extensión \.ini. De no indicar la ruta se realiza la búsqueda, -en orden, en: -.IP -1) -.BR ~/.local/share/mc/skins/ . -.br -2) -.BR %sysconfdir%/mc/skins/ . -.br -3) -.BR %pkgdatadir%/skins/ . -.br - -.PP -Para más información consultar: -.IP -.\"LINK2" -Descripción de secciones y parámetros -.\"Skins sections" -.br -.\"LINK2" -Definiciones de pares de colores -.\"Skins colors" -.br -.\"LINK2" -Trazado de líneas -.\"Skins lines" -.br -.\"LINK2" -Compatibilidad -.\"Skins oldcolors" -.br - -.\"NODE " Skins sections" -.SH " Descripción de secciones y parámetros" - -La sección -.B [skin] -contiene metadatos del archivo. El parámetro -.I description -proporciona un pequeño texto descriptivo. - -.PP -La sección -.B [filehighlight] -contiene descripciones de pares de colores para el resaltado de nombres -de archivo. Los nombres de parámetros de esta sección tienen que coincidir -con los nombres de sección del archivo -.IR filehighlight.ini . - -Para más información, véase la sección sobre -.\"LINK2" -Resaltado de nombres\&. -.\"Filenames Highlight" - -.PP -La sección -.B [core] -permite definir elementos que se utilizan en otras partes. -.TP -.I _default_ -Colores por defecto. Se utilizará en todas las secciones que -no contengan definición de colores. -.TP -.I selected -cursor. -.TP -.I marked -elementos seleccionados. -.TP -.I markselect -cursor sobre elementos seleccionados. -.TP -.I gauge -color de la parte completada en las barras de progreso. -.TP -.I input -color de los recuadros de texto editable en los dialogos. -.TP -.I inputmark -color de los textos editables en los dialogos. -.TP -.I inputunchanged -color original de los textos editables antes de tocarlos. -.TP -.I commandlinemark -color del texto seleccionado en la línea de órdenes. -.TP -.I reverse -color inverso. - -.PP -La sección -.B [dialog] -define elementos de las ventanas de diálogo salvo los diálogos de error. -.TP -.I _default_ -Colores por defecto para esta sección. Se utilizará [core]._default_ -si no se especifica -.TP -.I dfocus -Color del elemento activo, con el foco. -.TP -.I dhotnormal -Color de las teclas de acceso rápido. -.TP -.I dhotfocus -Color de las teclas de acceso rápido del elemento activo. - -.PP -La sección -.B [error] -define elementos de las ventanas de diálogo de error. -.TP -.I _default_ -Colores por defecto para esta sección. Se utilizará [core]._default_ -si no se especifica. -.TP -.I errdhotnormal -Color de las teclas de acceso rápido. -.TP -.I errdhotfocus -Color de las teclas de acceso rápido del elemento activo. - -.PP -La sección -.B [menu] -define elementos de menú. Esta sección afecta al menú general (activado -con F9) y a los menús de usuario (activados con F2 en la pantalla general -y con F11 en el editor). -.TP -.I _default_ -Colores por defecto para esta sección. Se utilizará [core]._default_ -si no se especifica -.TP -.I entry -Color de las entradas de menú. -.TP -.I menuhot -Color de las teclas de acceso rápido en menú. -.TP -.I menusel -Color de la entrada de menú activa, con el foco. -.TP -.I menuhotsel -Color de las teclas de acceso rápido en la entrada activa de menú. -.TP -.I menuinactive -Color de menú inactiva. - -.PP -La sección -.B [help] -define los elementos de la ventana de ayuda. -.TP -.I _default_ -Colores por defecto para esta sección. Se utilizará [core]._default_ -si no se especifica. -.TP -.I helpitalic -Par de color para elementos en -.BR cursiva . -.TP -.I helpbold -Par de color para elementos -.BR resaltados . -.TP -.I helplink -Color de los enlaces -.TP -.I helpslink -Color del enlace activo, con el foco. - -.PP -La sección -.B [editor] -define los colores de los elementos que se encuentran en el editor. -.TP -.I _default_ -Colores por defecto para esta sección. Se utilizará [core]._default_ -si no se especifica. -.TP -.I editbold -Par de color para elementos -.BR resaltados . -.TP -.I editmarked -Color del texto seleccionado. -.TP -.I editwhitespace -Color de las tabulaciones y espacios al final de línea resaltados. -.TP -.I editlinestate -Color de la línea de estado. - -.PP -La sección -.B [viewer] -define los colores de los elementos que se encuentran en el visor. -.TP -.I viewunderline -Par de color para elementos -.BR subrayados . - -.\"NODE " Skins colors" -.SH " Definiciones de pares de colores" -Cualquier parámetro del archivo de skin puede contener definiciones de -pares de color. -.PP -Un par de colores está formado por el nombre de los dos colores separados -por ';'. El primer color establece el color de frente y el segundo el -color de fondo. Se puede omitir alguno de los dos colores, en cuyo caso -se utilizará el color del par de color por defecto (par de color general -o del par de color por defecto en la sección). -.PP -Ejemplo: -.br -.nf -[core] - # verde sobre negro - _default_=green;black - # verde (por defecto) sobre azul - selected=;blue - # amarillo sobre negro (por defecto) - marked=yellow; -.fi - -.PP -Los nombres de colores permitidos son los que aparecen en la sección -.\"LINK2" -Colores\&. -.\"Colors" - -.\"NODE " Skins lines" -.SH " Trazado de líneas" -Trazos de líneas de la sección -.B [Lines] -del archivo de skins. Por defecto se utilizan líneas sencillas, pero -se pueden redefinir empleando cualquier símbolo utf\-8 (por ejemplo, -líneas dobles). -.PP -.I ¡¡¡ATENCIÓN!!! -Si se compila Midnight Commander empleando la biblioteca de pantalla -ncurses, entonces el trazado de líneas está limitado. Es posible que -solo se puedan utilizar líneas simples. Para consultas y comentarios -contactar con los desarrolladores de ncurses. - -.PP -Descripción de parámetros de la sección -.BR [Lines] : -.TP -.I lefttop -esquina superior izquierda. -.TP -.I righttop -esquina superior derecha. -.TP -.I centertop -unión central en el borde superior. -.TP -.I centerbottom -unión central en el borde inferior. -.TP -.I leftbottom -esquina inferior izquierda. -.TP -.I rightbottom -esquina inferior derecha. -.TP -.I leftmiddle -unión central en el borde izquierdo. -.TP -.I rightmiddle -unión central en el borde derecho. -.TP -.I centermiddle -cruz central. -.TP -.I horiz -línea horizontal. -.TP -.I vert -línea vertical. -.TP -.I thinhoriz -línea horizontal fina. -.TP -.I thinvert -línea vertical fina. - - -.\"NODE " Skins oldcolors" -.SH " Compatibilidad" -Compatibilidad de la asignación de colores empleando archivos de skin -con la configuración general de -.\"LINK2" -Colores\&. -.\"Colors" -.PP -La compatibilidad es completa. En este caso la redefinición de colores -tiene prioridad sobre las definiciones de skin y se completa con esta. - - -.\"NODE "Filenames Highlight" -.SH "Resaltado de nombres" -La sección [filehighlight] de un archivo de skin contiene como claves -los nombres que identificarán cada grupo de resaltado y como valor el -par de colores que le corresponda. El formato de estas parejas se explica -en la sección -.\"LINK2" -Skins\&. -.\"Skins" -.PP -Las reglas de resaltado de nombres en el archivo se encuentran en -.IR %pkgdatadir%/filehighlight.ini . -Los nombres de sección en este archivo tienen que ser iguales a los nombres -empleados en la sección [filehighlight] del archivo de skin en uso. -PP. -Los nombres de los parámetros en estos grupos podrán ser: -.TP -.I type -tipo de archivo. Si existe se ignoran otras opciones. -.TP -.I regexp -expresión regular. Si existe se ignora la opción 'extensions'. -.TP -.I extensions -lista de extensiones de archivos. Separadas por punto y coma. -.TP -.I extensions_case -hace la regla 'extensions' sensible o no a mayúsculas (true o false). -.PP -`type' puede tomar los valores: -.nf -\- FILE (todos los archivos) - \- FILE_EXE -\- DIR (todos los directorios) - \- LINK_DIR -\- LINK (todos los enlaces excepto los rotos) - \- HARDLINK - \- SYMLINK -\- STALE_LINK -\- DEVICE (todos los archivos de dispositivo) - \- DEVICE_BLOCK - \- DEVICE_CHAR -\- SPECIAL (todos los archivos especiales) - \- SPECIAL_SOCKET - \- SPECIAL_FIFO - \- SPECIAL_DOOR -.fi - -.\"NODE "Special Settings" -.SH "Ajustes Especiales" -La mayoría de las opciones de Midnight Commander pueden cambiarse desde -los menús. Sin embargo, hay un pequeño número de ajustes para los que -es necesario editar el archivo de configuración. -.PP -Estas variables se pueden cambiar en nuestro archivo -.IR ~/.config/mc/ini : -.TP -.I clear_before_exec -Por defecto Midnight Commander limpia la pantalla antes de ejecutar un -comando. Si preferimos ver la salida del comando en la parte inferior -de la pantalla, editaremos nuestro archivo -.I ~/mc.ini -y cambiaremos el -valor del campo clear_before_exec a 0. -.TP -.I confirm_view_dir -Al pulsar F3 en un directorio, normalmente Midnight Commander entra -en ese directorio. Si este valor está a 1, entonces el programa -nos pedirá confirmación antes de cambiar el directorio si tenemos -archivos marcados. -.TP -.I ftpfs_retry_seconds -Este valor es el número de segundos que Midnight Commander esperará -antes de intentar volver a conectar con un servidor de ftp que ha denegado el -acceso. Si el valor es cero, el programa no reintentará el acceso. -.TP -.I max_dirt_limit -Especifica cuántas actualizaciones de pantalla pueden saltarse al menos en el visor -de archivos interno. Normalmente este valor no es significativo, porque -el código automáticamente ajusta el número de actualizaciones a saltar de acuerdo -al volumen de pulsaciones de teclas recibidas. Empero, en máquinas muy lentas o -en terminales con autorepetición de teclado rápida, un valor grande puede hacer -que la pantalla se actualice dando saltos. -.IP -Parece ser que poniendo max_dirt_limit a 10 produce el mejor comportamiento, -y este es el valor por defecto. -.TP -.I mouse_move_pages_viewer -Controla cuándo el desplazamiento de pantalla realizado con el ratón se realiza por páginas o línea -a línea en el visor de archivos interno. -.TP -.I only_leading_plus_minus -Produce un tratamiento especial para '+', '\-', '*' en la línea de órdenes (seleccionar, -deseleccionar, selección inversa) solo si la línea de órdenes está vacía. No necesitamos -entrecomillar estos caracteres en la línea de órdenes. Pero no podremos -cambiar la selección cuando la línea de órdenes no esté vacía. -.TP -.I show_output_starts_shell -Esta variable solo funciona si no se utiliza el soporte de subshell. -Cuando utilizamos la combinación -.I Ctrl\-o -para volver a la pantalla de usuario, si está activada, tendremos un -nuevo shell. De otro modo, pulsando cualquier tecla nos devolverá a -Midnight Commander. -.TP -.I timeformat_recent -Cambiar el formato de fecha y hora empleado para fechas dentro de los seis -últimos meses. Véanse las páginas de manual de strftime o date para la descripción -del formato a emplear. Sin esta opción se emplea el formato por defecto. -.TP -.I timeformat_old -Cambiar el formato de fecha y hora empleado para fechas más antiguas que seis -meses. Véanse las páginas de manual de strftime o date para la descripción del formato a -emplear. Sin esta opción se emplea el formato por defecto. -.TP -.I torben_fj_mode -Si este modificador existe, entonces las teclas Inicio y Fin funcionarán de manera -diferente en los paneles, en lugar de mover la selección al primer -o último archivo en los paneles, actuarán como sigue: -.IP -La tecla Inicio: Irá a la línea central del panel, si está bajo ella; sino va a -la primera línea a menos que ya esté allí, en este caso -irá al primer archivo del panel. -.IP -La tecla Fin tiene un comportamiento similar: Irá a la línea central del panel, si -está situada en la mitad superior del panel; si no irá a la línea inferior del panel a menos que -ya estemos ahí, en cuyo caso moverá la selección al último nombre de archivo del panel. -.TP -.I use_file_to_guess_type -Si esta variable está activada (por defecto lo está) se recurrirá al -comando «file» para reconocer los tipos de archivo referidos en el archivo -.\"LINK2" -mc.ext.ini\&. -.\"Edit Extension File" -.TP -.I xtree_mode -Si esta variable está activada (por defecto no) cuando naveguemos -por el sistema de archivos en un panel en árbol, se irá actualizando -automáticamente el otro panel con los contenidos del directorio -seleccionado en cada momento. -.TP -.I fish_directory_timeout -Tiempo de vida por defecto de la caché de directorio. El valor por defecto -de 900 segundos. -.TP -.I clipboard_store -Ruta de acceso y opciones a una utilidad de portapapeles externa como 'xclip' -para cargar texto de un archivo como selección en X Window. -Por ejemplo: -.PP -.nf -clipboard_store=/usr/bin/xclip \-i -.fi -.TP -.I clipboard_paste -Ruta de acceso y opciones a una utilidad de portapapeles externa como 'xclip' -para volcar la selección de X Window a la salida estándar. -Por ejemplo: -.PP -.nf -clipboard_paste=/usr/bin/xclip \-o -.fi -.TP -.I autodetect_codeset -Esta opción permite emplear la orden 'enca' para autodetectar el juego de -caracteres de los archivos de texto para el visor y el editor interno. La -lista de valores posibles se puede obtener con -`enca \-\-list languages | cut \-d : \-f1'. Esta opción tiene que estar -dentro de la sección [Misc]. -.PP -For example: -.PP -.nf -autodetect_codeset=russian -.fi -.\"NODE "Parameters for external editor or viewer" -.SH "Parámetros para editor o visor externo" -Midnight Commander permite especificar opciones para editores y visores -externos. Midnight Commander busca la sección -.I [External editor or viewer parameters] -en el archivo de inicialización del sistema -.B %pkgdatadir%/mc.lib -o en el del usuario -.BR ~/.config/mc/ini . -El nombre de la opción debe coincidir con el nombre (ruta completa) del editor -o visor externo. Su valor puede contener las siguientes variables: -.TP -.I %filename -El nombre del archivo a editar/ver. -.TP -.I %lineno -La línea de comienzo donde abrir el archivo. -.PP -Por ejemplo: -.PP -.nf -[External editor or viewer parameters] - vi=%filename +%lineno - joe=%filename +%lineno - more=%filename +%lineno -.fi -.PP -La línea de comienzo solo se pasa al editor o visor externo cuando se llama -desde la ventana de resultados de -.\"LINK2" -buscar archivo\&. -.\"Find File" -.PP -Si el editor o visor externo se lanza mediante las teclas F3/F4, MC confía en que -el programa (al menos «joe», pero puede que otros también) se comporte abriendo por -defecto el archivo donde se abrió la última vez. MC no evita que el editor o visor -externo pueda guardar y restaurar posiciones en los archivos abiertos. -.\"NODE "Terminal databases" -.SH "Ajustes del Terminal" -Midnight Commander permite hacer ajustes a la base de datos de terminales -del sistema sin necesidad de privilegios de superusuario. El programa -busca definiciones de teclas en el archivo de inicialización del sistema -.B %pkgdatadir%/mc.lib -o en el del usuario -.BR ~/.config/mc/ini , -en la sección "terminal:nuestro\-terminal" y si no en "terminal:general". -Cada línea comienza con el identificador de la tecla, seguido de un signo -de igual y la definición de la tecla. Para representar el carácter de escape -se utiliza \\e y ^x para el carácter control\-x. -.PP -Los identificadores de tecla son: -.PP -.nf -f0 a f20 teclas de función f0 a f20 -bs tecla de borrado -home tecla de inicio -end tecla de fin -up tecla de cursor arriba -down tecla de cursor abajo -left tecla de cursor izquierda -right tecla de cursor derecha -pgdn tecla de avance de página -pgup tecla de retroceso de página -insert tecla de insertar -delete tecla de suprimir -complete tecla para completar -.fi -.PP -Ejemplo: para indicar que la secuencia Escape + [ + O + p corresponde -a la tecla de insertar, hay que colocar en el archivo -.BR ~/.config/mc/ini : -.PP -.nf -insert=\\e[Op -.fi -.PP -También se pueden usar -.IR "secuencias avanzadas" . -Por ejemplo: - -.nf - ctrl\-alt\-right=\\e[[1;6C - ctrl\-alt\-left=\\e[[1;6D -.fi - -.PP -Esto significa que Ctrl + Alt + Izquierda envía la secuencia de escape -\\e[[1;6D y que entonces Midnight Commander debe interpretar "\\e[[1;6D" -como Ctrl\-Alt\-Izquierda. -.PP -El identificador -.I complete -representa la secuencia usada para invocar el mecanismo de completar -nombres. Esto se hace habitualmente con -.IR Alt\-Tab , -pero podemos configurar otras teclas para esta función, especialmente en -teclados que incorporan tantas teclas especiales (bonitas pero inútiles -o infrautilizadas). -.SH "" -.\"NODE "FILES" -.SH "ARCHIVOS AUXILIARES" -Los directorios indicados a continuación pueden variar de una -instalación a otra. También se pueden modificar con la variable de -entorno -.BR MC_DATADIR , -que de estar definida se emplearía en vez de %pkgdatadir%. -.PP -.I %pkgdatadir%/help/mc.hlp -.IP -Archivo de ayuda. -.PP -.I %pkgdatadir%/mc.ext.ini -.IP -Archivo de extensiones por defecto del sistema. -.PP -.I ~/.config/mc/mc.ext.ini -.IP -Archivo de usuario de extensiones y configuración de visor y editor. Si -está presente prevalece sobre el contenido de los archivos del sistema. -.PP -.I %pkgdatadir%/mc.ini -.IP -Archivo de configuración del sistema para Midnight Commander, solo si -el usuario no dispone de su propio -.IR ~/.config/mc/ini . -.PP -.I %pkgdatadir%/mc.lib -.IP -Opciones globales de Midnight Commander. Se aplican siempre a todos los -usuarios, tengan -.I ~/.config/mc/ini -o no. Actualmente solo se emplea para los -.\"LINK2" -ajustes de terminal\&. -.\"Terminal databases" -.PP -.I ~/.config/mc/ini -.IP -Configuración personal del usuario. Si este archivo está presente entonces -se cargará la configuración desde aquí en lugar de desde el archivo de -configuración del sistema. -.PP -.I %pkgdatadir%/hints/mc.hint -.IP -Este archivo contiene los mensajes cortos de ayuda mostrados por el -programa. -.PP -.I %pkgdatadir%/mc.menu -.IP -Este archivo contiene el menú de aplicaciones por defecto para el sistema. -.PP -.I ~/.config/mc/menu -.IP -Menú de aplicaciones personal del usuario. Si está presente será utilizado -en lugar del menú por defecto del sistema. -.PP -.I ~/.cache/mc/Tree -.IP -La lista de directorios para el árbol de directorios y la vista en árbol. -.PP -.I ./.mc.menu -.IP -Menú local definido por el usuario. Si este archivo -está presente será usado en lugar del menú de aplicaciones -personal o de sistema. -.PP -Para cambiar el directorio de incio de MC se puede utilizar la variable de -entorno -.BR MC_PROFILE_ROOT . -El valor de MC_PROFILE_ROOT tiene que ser una ruta absoluta. Si MC_PROFILE_ROOT -no existe o está vacía se usa la variable HOME. Si HOME no existe o está vacía -se recurre a la biblioteca GLib para obtener los directorios de MC. -.\"SKIP_SECTION" -.SH "LICENCIA" -Este programa se distribuye en los términos que recoge la Licencia Pública -General de GNU (GNU General Public License) tal como fue publicada por -la Fundación de Software Libre (Free Software Foundation). La ayuda -integrada con el programa contiene detalles sobre la Licencia y la -carencia de garantía. -.\"NODE "AVAILABILITY" -.SH "DISPONIBILIDAD" -La última versión de este programa se puede encontrar en -http://ftp.midnight\-commander.org/. -.\"NODE "SEE ALSO" -.SH "VÉASE TAMBIÉN" -mcedit(1), sh(1), bash(1), tcsh(1), zsh(1), ed(1), view(1), -terminfo(1), gpm(1). -.PP -.nf -La página web de Midnight Commander está en: - https://www.midnight\-commander.org/ -.fi -.PP -La presente documentación recoge información relativa a la versión 4.8 -(mayo de 2015). Esta traducción no está completamente actualizada con -la versión original en inglés. Para acceder a información sobre -versiones recientes consultar la página de manual en inglés que contiene -información más completa y actualizada. Para ver el susodicho manual -original ejecutar en la línea de órdenes: -.nf - LANG= LC_ALL= man mc -.fi -.\"NODE "AUTHORS" -.SH "AUTORES" -Los autores y contribuciones se recogen en el archivo AUTHORS de la -distribución. -.\"NODE "BUGS" -.SH "ERRORES" -Véase el archivo "TODO" en la distribución para saber qué falta por hacer. -.PP -Para informar de problemas con el programa, introducir una nueva incidencia -en https://www.midnight\-commander.org/. -.PP -Se debe proporcionar una descripción detallada del problema, la -versión del programa (que se obtiene con -.RI ' "mc \-V" ') -y el sistema operativo utilizados. Si el programa «revienta», sería -también útil disponer del estado de la pila. -.\"NODE "TRANSLATION" -.SH "TRADUCCIÓN" -Francisco Gabriel Aroca, 1998. Reformateado y actualizado por David -Martín, 2002\-2015. -.PP -Midnight Commander traducido a castellano por David Martín. diff --git a/recipes/wip/files/mc/source/doc/man/hu/Makefile.am b/recipes/wip/files/mc/source/doc/man/hu/Makefile.am deleted file mode 100644 index ef142b9923..0000000000 --- a/recipes/wip/files/mc/source/doc/man/hu/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -LANG=hu -mandir = @mandir@/$(LANG) - -EXTRA_DIST = mc.1.in - -man_MANS = mc.1 - -CLEANFILES = $(man_MANS) - -DATE_LANG=hu_HU.UTF-8 -DATE_FORMAT=%Y. %B - -include ../date-of-man-include.am diff --git a/recipes/wip/files/mc/source/doc/man/hu/Makefile.in b/recipes/wip/files/mc/source/doc/man/hu/Makefile.in deleted file mode 100644 index dce06f923f..0000000000 --- a/recipes/wip/files/mc/source/doc/man/hu/Makefile.in +++ /dev/null @@ -1,701 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/man/hu -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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)" -NROFF = nroff -MANS = $(man_MANS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../date-of-man-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@/$(LANG) -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -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@ -LANG = hu -EXTRA_DIST = mc.1.in -man_MANS = mc.1 -CLEANFILES = $(man_MANS) -DATE_LANG = hu_HU.UTF-8 -DATE_FORMAT = %Y. %B -SED_PARAMETERS = \ - -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \ - -e "s/%MAN_VERSION%/@MAN_VERSION@/g" \ - -e "s{%sysconfdir%{@sysconfdir@{g" \ - -e "s{%libexecdir%{@libexecdir@{g" \ - -e "s{%pkglibexecdir%{$(libexecdir)/@PACKAGE@{g" \ - -e "s{%pkgdatadir%{$(datadir)/@PACKAGE@{g" - -MAN_DATE_CMD = \ - LC_ALL=$(DATE_LANG) @PERL_FOR_BUILD@ -CS -MPOSIX -e '\ - @fi=lstat("'$${MAN_FILE}'"); \ - print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../date-of-man-include.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) --gnu doc/man/hu/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/man/hu/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../date-of-man-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -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) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(MANS) -installdirs: - for dir in "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man1 - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-man \ - uninstall-man1 - -.PRECIOUS: Makefile - - -mc.1: $(srcdir)/mc.1.in - MAN_FILE='$(srcdir)/mc.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mc.1.in' > '$@' - -mcview.1: $(srcdir)/mcview.1.in - MAN_FILE='$(srcdir)/mcview.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mcview.1.in' > '$@' - -@USE_INTERNAL_EDIT_TRUE@mcedit.1: $(srcdir)/mcedit.1.in -@USE_INTERNAL_EDIT_TRUE@ MAN_FILE='$(srcdir)/mcedit.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_INTERNAL_EDIT_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcedit.1.in' > '$@' - -@USE_DIFF_TRUE@mcdiff.1: $(srcdir)/mcdiff.1.in -@USE_DIFF_TRUE@ MAN_FILE='$(srcdir)/mcdiff.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_DIFF_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcdiff.1.in' > '$@' - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/man/hu/mc.1.in b/recipes/wip/files/mc/source/doc/man/hu/mc.1.in deleted file mode 100644 index 8565256a70..0000000000 --- a/recipes/wip/files/mc/source/doc/man/hu/mc.1.in +++ /dev/null @@ -1,3217 +0,0 @@ -.\" -*- mode: troff; coding: UTF-8 -*- -.\"TOPICS "Tartalomjegyzék" -.TH MC 1 "%DATE_OF_MAN_PAGE%" "MC Version %MAN_VERSION%" "GNU Midnight Commander" -.\"SKIP_SECTION" -.SH "NÉV" -mc \- FájlkezelÅ‘ Unix típusú rendszerekhez -.\"SKIP_SECTION" -.SH "ALKALMAZÃSA" -.B mc -[\-abcCdfhPstuUVx] [\-l log] [dir1 [dir2]] [\-v file] -.\"NODE "DESCRIPTION" -.SH "LEÃRÃS" -A Midnight Commander Unix típusú operációs rendszerekhez készített -könyvtár böngészÅ‘ és filekezelÅ‘ eszköz -.\"DONT_SPLIT" -.\"NODE "OPTIONS" -.SH "OPCIÓK" -.I "\-a" -A kereteket és vonalakat egyszerűsített karakterekkel rajzolja ki -.TP -.I "\-b" -Fekete\-fehér megjelenítés kérése -.TP -.I "\-c" -Engedélyezi a színes megjelenítést; nézd meg a -.\"LINK2" -Színek -.\"Colors" -részt további információkért. -.TP -.I "\-C opció" -Saját parancssori színválaszték beállításához használható. Az -.B opció -használatáról a -.\"LINK2" -Színek -.\"Colors" -részben olvashatsz. -.TP -.I "\-d" -Nem engedélyezi az egér használatát. -.TP -.I "\-f" -Megjeleníti a Midnight Commander fájlainak elérési útvonalát, ahogy azt -a fordításnál beállítottuk. -.TP -.I "\-k" -Törli azon gyorsbillentyűket, amelyek alapértelmezésben a termcap/terminfo -adatbázisból töltÅ‘dnek be. Csak HP terminálokon érdemes használni, -ahol a funkció billentyűk nem működnek. -.TP -.I "\-l fájl" -Fájlba menti a szerverrel lebonyolított ftpfs dialógus adatait. -.TP -.I "\-P" -A program befejezésekor a Midnight Commander kiírja az utolsó -munkakönyvtárat, ez nem használható közvetlenül, csak olyan különleges -shell funkcióval, amely lehetÅ‘vé teszi az aktuális shell könyvtár -helyett a Midnight Commander által utoljára meglátogatott könyvtárra való -átváltást (köszönet a funkcióért és a funkcióhoz szükséges kódért Torben -Fjerdingstad\-nek és Sergey\-nek közreműködésükért). Kérlek, ne csinálj -szó szerinti másolatot a funkció beállításairól. A fájlok forrása a -.I %pkglibexecdir%/mc.sh -(bash és zsh felhasználóknak), illetÅ‘leg a -.I %pkglibexecdir%/mc.csh -(tcsh felhasználóknak) fájl. Ilyenkor, amikor a funkció beállításokat -változtatod, a profil értékeket nem szükséges megváltoztatnod, csak -arról gondoskodj, hogy az MC\-t ne fordítsd eltérÅ‘ beállításokkal. -.PP -A bash és zsh funkciók lehetnének rövidebbek is, de a bash környezete -nem fogadja el a program C\-z háttérbe helyezését. A temp fájlok a saját -~/.mc/tmp könyvtáradban találhatók, mert ez biztonságosabb, mint a közös -írható /tmp könyvtár. -.TP -.I "\-s" -Bekapcsolja a lassú terminál módot, ebben a módban a program nem használja -a sok energiát felemésztÅ‘ vonal karaktereket és az un. bÅ‘vített módot -kikapcsolja. -.TP -.I "\-t" -Ezt csak akkor használd, ha S\-Lang\-gel és terminfo\-val fordítottad a -programot: a -.B TERMCAP -váltózó értékét használja, és nem a rendszer szintű terminál adatbázist. -.TP -.I "\-u" -Nem engedélyezi a konkurrens shell\-ek használatát (csak akkor használható, -ha a Midnight Commandert a "concurrent shell" támogatással fordították). -.TP -.I "\-U" -Engedélyezi a konkurens shell támogatást (csak akkor használható ha -a Midnight Commander fordításakor beállították a subshell támogatást, -mint választható lehetÅ‘séget). -.TP -.I "\-v fájl" -Belép a belsÅ‘ fájlnézÅ‘be a kiválasztott fájl megtekintéséhez. -.TP -.I "\-V" -Megmutatja a program verziószámát. -.TP -.I "\-x" -Belép xterm módba. (Két képernyÅ‘s módban használható, és az egér escape -szekvenciái is használhatóak). -.TP -.I \-X, \-\-no\-x11 -Do not use X11 to get the state of modifiers Alt, Ctrl, Shift -.TP -.I \-g, \-\-oldmouse -Force a "normal tracking" mouse mode. Used when running on -xterm\-capable terminals (tmux/screen). -.PP -Ha megadtad, akkor az elsÅ‘ útvonal tartalma jelenik meg az aktuális -panelen; a második könyvtár útvonal pedig a másik panelen jelenik meg. -.\"NODE "Overview" -.SH "Ãttekintés" -A Midnight Commander képernyÅ‘jének négy része van. Csaknem az egész -képernyÅ‘t a két könyvtár panelre tölti ki. Alapértelmezésben a képernyÅ‘n -alulról a második sor a parancssor, a legalsó sor pedig a funkció gombok -elnevezéseit jeleníti meg. A legfelsÅ‘ sor a -.\"LINK2" -Menüsor -.\"Menu Bar" -A menüsor esetleg nem látható, de könnyen megjeleníthetÅ‘ úgy, hogy a -felsÅ‘ sorra kattintasz az egérrel, vagy lenyomod az F9\-et. -.PP -A Midnight Commander lehetÅ‘vé teszi, hogy egyszerre két panelt -láthassunk. Az egyik a panelek közül az aktív "current" panel -(a kiválasztó sáv az aktív panelen található). Majdnem minden -művelet a jelenlegi panelben történik. Néhány fájlművelet, úgy, mint -átnevezés\-áthelyezés és másolás alapértelmezésben a kiválasztatlan panelt -használja rendeltetési helyként (ne aggódj, végrehajtás elÅ‘tt erre mindíg -rákérdez a megerÅ‘sítés műveletnél). További információkért nézd meg a -.\"LINK2" -Könyvtár panelek\&, -.\"Directory Panels" -a -.\"LINK2" -Bal és Jobb oldali menük -.\"Left and Right Menus" -és a -.\"LINK2" -Fájl menü -.\"File Menu" -részt. -.PP -Futtathatsz rendszer parancsot is a Midnight Commander\-bÅ‘l, annak egyszerű -begépelésével. A megjelenÅ‘ shell parancssorba mindíg begépelheted a -parancsot és az Enter lenyomásakor a Midnight Commander lefuttatja azt; -olvasd el a -.\"LINK2" -Shell parancssor -.\"Shell Command Line" -és a -.\"LINK2" -Beviteli gombok -.\"Input Line Keys" -részt, hogy többet is megtudhass a parancssorról. -.\"NODE "Mouse Support" -.SH "Egér kezelés" -A Midnight Commander eredendÅ‘en tartalmazza az egér támogatást. Ez -aktiválódik, ha -.B xterm(1) -terminálon futtatod (akkor is működik, amikor telnet, vagy rlogin -kapcsolatban vagy egy másik géppel az xterm\-bÅ‘l), vagy, ha Linux konzolon -használod, és a -.B gpm -egér szerver fut. -.PP -Amikor bal gombbal kattintasz a fájlra, a könyvtár panalben a fájl -kiválasztódik; ha a jobb gombbal kattintasz, a fájlt ezzel megjelölöd -(vagy megszünteted azt, az azt megelÅ‘zÅ‘ állapotnak megfelelÅ‘en). -.PP -A fájlra történÅ‘ dupla kattintásra az MC megpróbálja futtani -azt, ha futtatható fájlról van szó; ha a -.\"LINK2" -fájl kiterjesztését -.\"Edit Extension File" -egy adott programhoz már hozzá rendelted, a fájl kiterjesztéséhez -hozzárendelt program lefut. -.PP -Továbbá rájuk kattintva láthatóvá teszi a parancs futtatásához megadott -funkció billentyű elnevezéseket is. -.PP -Ha az egérrel a könyvtár panel legfelsÅ‘ sorára kattintunk, az egy -oldalnyit lapozik visszafelé. Ennek megfelelÅ‘en az alsó sorra kattintva -egy oldalnyit ugrasz elÅ‘re. Ez az eszköze használható a -.\"LINK2" -Súgó nézÅ‘ -.\"Contents" -és a -.\"LINK2" -Könyvtárfa -.\"Directory Tree" -esetén is. -.PP -Az egérgomb automatikus ismétlésének határértéke alapesetben 400 -ezredmásodpercnyi. Ez megváltoztatható az -.\"LINK2" -~/.config/mc/ini -.\"Save Setup" -fájlban a -.I mouse_repeat_rate -paraméter értékének megváltoztatásával. -.PP -Ha a Commander\-t egér támogatással indítottad az eredeti egér -tulajdonságok (szöveg kivágás és beillesztés) a Shift gomb lenyomásával -érhetÅ‘k el. -.\"NODE "Keys" -.SH "Billentyűzet" -Néhány Midnight Commander parancshoz szükséges a -.I Control (~vezérlÅ‘) -(ezeket CTRL\-lal vagy CTL\-lel jelöljük) és a -.I Meta (~Váltó) -(ezeket ALT\-tal vagy néha Compose\-zal jelöljük) gombok használata. Ebben -a leírásban a következÅ‘ rövidítéseket használjuk: -.PP -C\- ilyenkor lenyomva kell tartanod a Control billentyűt addíg, amíg -a megadott karaktert le nem ütöd. Ãgy például a C\-f esetén: tartsd -lenyomva a Control billentyűt, amíg az f\-et begépeled. -.PP -M\- ilyenkor lenyomva kell tartanod a Meta, vagy az Alt billentyűt -addíg, amíg a megfelelÅ‘ karaktert be nem gépeled. Ha ez nem a -Meta, vagy az Alt billentyű, akkor használd az ESC\-et, a megfelelÅ‘ -karakter begépelésekor. A Meta funkció Linux alatt úgy érhetÅ‘ el, -hogy megnyomjuk, majd elengedjük az ESC billentyűt. A Meta funkció az -ezután megnyomott billentyűre vonatkozik! -.PP A Midnight Commander -beviteli eszköze a GNU Emacs szerkesztÅ‘ billentyűzet\-kombinációihoz -hasonlóan működik. -.PP -Több részben is beszélünk majd ezekrÅ‘l a gombokról. Az itt következÅ‘k a -legfontosabbak ezek közül. -.PP -A -.\"LINK2" -Fájl menü -.\"File Menu" -rész tartalmazza a Fájl menü parancsainak billentyűzet gyorskapcsolóit. -Ez a rész tartalmazza még a funkció billentyűket is. Ezen parancsok -jobbára valamilyen műveletet végeznek el, általában a kiválasztott -fájlon, vagy a kijelölt fájlokon. -.PP -A -.\"LINK2" -Könyvtár panelek -.\"Directory Panels" -rész tartamazza azokat a billentyűket, amelyek a késÅ‘bbi műveletekhez -kiválasztják, vagy kijelölik a fájlokat (a művelet általában a Fájl -menüben megtalálható). -.PP -A -.\"LINK2" -Shell Parancssor -.\"Shell Command Line" -felsorolja azokat a gombokat, amelyeket használhatsz a begépeléshez és a -parancssor szerkesztéshez. Ezek átmásolják a fájlnevet a könyvtár -panelbÅ‘l a parancssorba (a túlságosan sok gépelést elkerülendÅ‘), vagy -hozzáférést enged a parancssor elÅ‘zményeihez. -.PP -.\"LINK2" -Beviteli gombok -.\"Input Line Keys" -a beviteli sorok szerkesztésére szolgálnak. Ezen eszközök a -parancssorban és lekérdezÅ‘ dialógus (query dialog) beviteli soraihoz -szükségesek. -.\"NODE " Miscellaneous Keys" -.SH " Különleges gombok" -Itt azon billentyűket találhatod meg, amelyek nem tartoznak bele -egyetlen más kategóriába sem: -.PP -.B Enter. -Ha található valamilyen szöveg a parancssorban (az egyik sor a panelek -aljánál), akkor azt lefuttatja, mint parancsot. Ha nem található szöveg -a parancssorban, és a kiválasztás egy könyvtár felett van a Midnight -Commander\-ben, akkor végrehajtja a -.B chdir(2) -(könyvtárváltás) parancsot a kiválasztott könyvtárra és újraolvassa a -panel információit; ha a kiválasztás egy futtatható fájlon van, akkor -lefuttatja azt. Végül, ha a kiválasztott fájl kiterjesztése szerepel a -.\"LINK2" -társításoknál\&, -.\"Edit Extension File" -akkor a kijelölt parancs fut le. -.PP -.B C\-l -Frissít minden információt a Midnight Commander. -.PP -.B C\-x c -Futtatja a -.\"LINK2" -Chmod -.\"Chmod" -parancsot a fájlon, vagy a kijelölt fájlokon. -.PP -.B C\-x o -Futtatja a -.\"LINK2" -Chown -.\"Chown" -parancsot a fájlon, vagy a kijelölt fájlokon. -.PP -.B C\-x l -Futtatja a link parancsot. -.PP -.B C\-x s -Futtatja a szimbolikus link parancsot. -.PP -.B C\-x i -Beállítja a másik panel információ megjelenítési -módját. -.PP -.B C\-x q -Beállítja a másik panelt a quick view\-ra (villámnézetre). -.PP -.B C\-x ! -Futtatja a -.\"LINK2" -Parancskimenet panel -.\"External panelize" -parancsot. -.PP -.B C\-x h -Futtatja a -.\"LINK2" -könyvtár hozzáadása a KönyvjelzÅ‘khöz -.\"Hotlist" -parancsot. -.PP -.B M\-! -Futtatja a Szűrés (Filtered view) parancsot, a -.\"LINK2" -BelsÅ‘ fájlnézÅ‘nek -.\"Internal File Viewer" -megfelelÅ‘en. -.PP -.B M\-? -Futtatja a -.\"LINK2" -Fájl keresés -.\"Find File" -parancsot. -.PP -.B M\-c -Beugrik a -.\"LINK2" -Gyors cd -.\"Quick cd" -dialógboxba. -.PP -.B C\-o -A parancs futtatásakor xterm\-en Linux, vagy FreeBSD konzolon, megmutatja -az elÅ‘zö parancs kimeneteit. Linux konzolon történÅ‘ futtatáskor a -Midnight Commander egy beépített programot használ (cons.saver) a -képernyÅ‘\-információk elmentésére és visszaállítására. Tehát az MC -képernyÅ‘jét bármikor kikapcsolhatjuk, és visszakapcsolhatjuk. -.PP -Ha a subshell támogatást is befordították, bármikor begépelheted a C\-o -gombokat ahhoz, hogy visszatérhess a Midnight Commander saját -képernyÅ‘jéhez, majd a C\-o gombok használatával visszatérhetsz a -parancsodhoz. Ha az alkalmazásod felfüggesztett állapotba kerül, ennek a -trükknek a használatakor, nem leszel képes futtatni más parancsot a -Midnight Commander\-bÅ‘l addíg, amíg a felfüggesztett alkalmazást meg nem -szakítod. -.\"NODE " Directory Panels" -.SH " Könyvtár panelek" -Ez a rész azon billentyűket sorolja fel, amelyek a könyvtár panelekben -használhatóak. Ha tudni akarod azt, hogy hogyan tudod megváltoztatni a -panelek külsÅ‘ megjelenését, akkor nézd meg a -.\"LINK2" -Bal és jobboldali menük -.\"Left and Right Menus" -részt. -.PP -.B Tab, C\-i -Váltja az aktuális panelt. Az elÅ‘zÅ‘leg inaktív panel lesz a jelenlegi -panel és az elÅ‘zÅ‘leg aktív panel lesz az inaktív panel. A kiválasztó sáv -az elÅ‘zÅ‘leg aktívról átugrik az újonnan aktív panelre. -.PP -.B Insert, C\-t -DEPRECATED! A fájlok kijelölésére az Insert gombot használhatod (a kich1 terminfo -kombináció), vagy a C\-t (Control\-t) kombinációt. A kijelölés -megszüntetéséhez csak újra ki kell jelölni a kijelölt fájlt. -.TP -.B Insert -to tag files you may use the Insert key (the kich1 terminfo sequence). -To untag files, just retag a tagged file. -.TP -.B M\-e -to change charset of panel you may use M\-e (Alt\-e). -Recoding is made from selected codepage into system codepage. To -cancel the recoding you may select "directory up" (..) in active panel. -To cancel the charsets in all directories, select "No translation " in -the dialog of encodings. -.PP -.B M\-g, M\-r, M\-j -A panel legfelsÅ‘, középsÅ‘ és alsó fájljának kiválasztásához használd -sorban a megfelelÅ‘ billentyű\-kombinációt. Linuxban M\-h a "history" -bekapcsolására szolgál. -.PP -.B M\-t -Vált a jelenlegi lista megjelenítési módról a következÅ‘ megjelenítési -módra. Ezzel gyorsan át tudsz váltani a hosszú listáról a rendezett -listára és a felhasználó által definiált listázási módra. -.PP -.B C\-\\\\ (control\-backslash) -Megjeleníti a -.\"LINK2" -KönyvjelzÅ‘ket -.\"Hotlist" -és átvált a kiválasztott könyvtárra. -.PP -.B + \ (plusz) -Ez használható a fájlok csoportjainak kiválasztásához (kijelöléséhez). A -Midnight Commander megjelenít egy ablakot a jelölendÅ‘ csoport pontos -kiterjesztésének megadásához. Ha a -.I Shell kifejezések -opció engedélyezve van, csak a pontos kiterjesztések használhatók a -shell\-ben kiterjesztésként (* jelent egy, vagy több karaktert, a ? -egyetlen karaktert). Ha a -.IR "Shell kifejezések" \-et -kikapcsolva tartjuk, a fájlok kijelölésére a normál kifejezések -használhatóak (lásd -.IR "ed (1)" ). -.PP -.B \\\\ (backslash). -Használd a "\\" gombot a fájlcsoportok kiválasztásának megszüntetéséhez. -Ez a Plusz gomb ellentettje. -.PP -.B crsr up, C\-p -Az elÅ‘zÅ‘ panel\-bejegyzésre mozgatja a kiválasztó sávot. -.PP -.B crsr down, C\-n -A következÅ‘ bejegyzésre lépteti a kiválasztó sávot a panelben. -.PP -.B home, a1, M\-< -A kiválasztó sávot a panel elsÅ‘ bejegyzésére mozgatja. -.PP -.B end, c1, M\-> -A kiválasztó sávot a panel utolsó bejegyzésére mozgatja. -.PP -.B Page Down, C\-v -A kiválasztó sávot egy oldallal lejjebb viszi. -.PP -.B Page Up, M\-v -A kiválasztó sávot egy oldallal feljebb viszi. -.PP -.B M\-o -Ha a másik panel a lista panel és te a könyvtárodon vagy az aktív -panelen, akkor a másik panel tartalma állítódik be a jelenleg aktív -könyvtárban (hasonlóan az Emacs C\-o gombjához), egyébként a másik panel -tartalma állítódik be a jelenlegi könyvtár eredeti könyvtárába. Ha a -kurzor könyvtáron áll, akkor az inaktív panelen megnyitja. -.PP -.B C\-PageUp, C\-PageDown -Csak Linux konzolon történÅ‘ futtatáskor: könyvtárat vált felfelé (..) a -jelenleg kiválasztott könyvtárnak megfelelÅ‘en. -.PP -.B M\-y -Az elÅ‘zÅ‘leg látogatott könyvtárba lép vissza, ami azonos a panel tetején -látható '<' jelre egérrel történÅ‘ kattintással. -.PP -.B M\-u -A következÅ‘ látogatott könyvtárba lép át, azonos a '>' -egérrel történÅ‘ lenyomásával. -.PP -.B M\-S\-h, M\-H -Megjeleníti a könyvtár elÅ‘zményeket, azonos a 'v' egérrel történÅ‘ -lenyomásával. -.\"NODE " Quick search" -.SH " Quick search" -.PP -.B C\-s, M\-s -Elindítja a fájl keresést a könyvtár listában. Amikor a keresés -aktív, a billentyűlenyomások hozzáadódnak a keresett szöveghez a -parancssorban. Ha a -.I Mini fájlinfó -opció engedélyezve van, a keresÅ‘ szöveg a mini\-fájlinfó sorban jelenik -meg. Amikor gépelsz, a mini kiválasztó sáv átlép a következÅ‘ fájlra, -amely a begépelt szöveggel egyezik. A -.IR backspace , -vagy a -.I DEL -gombokat használhatod a gépelési hibák javítására. Ha a C\-s gombokat -használod újra, új keresés kezdhetÅ‘. -.\"NODE " Shell Command Line" -.SH " Shell parancssor" -Ez a rész tartalamazza azokat a billentyű\-kombinációkat, -amiket a túlságosan sok gépelés elkerülésére használhatunk a -shell parancsok begépelésénél. -.PP -.B M\-Enter -A jelenleg kiválasztott parancs nevét átmásolja a parancssorba. -.PP -.B C\-Enter -Azonos az M\-Enter\-rel, de ez csak Linux konzolon működik. -.PP -.B M\-Tab -Fájlnév, parancs, változó, felhasználónév és hostnév -.\"LINK2" -Kiegészítés -.\"Completion" -készítés. A hiányosan bebillenyűzött filenevet kiegészíti. -.PP -.B C\-x t, C\-x C\-t -A parancssorba másolja az aktív panel kijelölt fájlait (ha nincsennek -kijelölt fájlok, a kiválasztott fájlt) (C\-xt), vagy a másik paneléit -(C\-x C\-t). -.PP -.B C\-x p, C\-x C\-p -Az elsÅ‘ billentyű\-sorozat az aktív panel elérési útját átmásolja a -parancssorba, a második billentyű\-sorozat pedig az inaktív panel -könyvtárának elérési útját másolja át a parancssorba. -.PP -.B C\-q -A quote (idézet) parancsot olyan karakterek beillesztésére használhatod, -amelyeket egyébként a Midnight Commander használ (ilyen pl. a '+' -szimbólum). Például a C\-+ elindítja a fájlkijelÅ‘lést ahelyett, hogy -beíródna a parancssorba. A -.B C\-q -segítségével viszont be lehet írni. -.PP -.B M\-p, M\-n -Ezeket a gombokat az elÅ‘zÅ‘leg kiadott parancsok (a history) közötti -böngészésre használhatod. Az M\-p átléptet az elÅ‘zÅ‘ bejegyzésre, az M\-n -átléptet a következÅ‘ bejegyzésre. -.PP -.B M\-h -Megjeleníti a jelenlegi beviteli sor elÅ‘zményeit (history). -.\"NODE " General Movement Keys" -.SH " Ãltalános mozgási lehetÅ‘ségek billentyűzettel" -A Súgó nézÅ‘, a Fájl nézÅ‘ és a Könyvtárfa azonos kódokat használ a -mozgáshoz. Emiatt ezek pontosan ugyanazokat a billentyűket fogadják el. -Ezeken túl néhány olyan van, amely csak az adott eszköz számára -fogadható el. -.PP -A Midnight Commander többi része is használ néhány billentyűt a -mozgáshoz, ezért ebben a részben ezek is használhatók a mozgáshoz. -.PP -.B crsr Up, C\-p -Egy sort ugrik vissza. -.PP -.B crsr Down, C\-n -Egy sort ugrik elÅ‘re. -.PP -.B Prev Page, Page Up, M\-v -Egy teljes oldalnyit ugrik vissza. -.PP -.B Next Page, Page Down, C\-v -Egy teljes oldalnyit ugrik elÅ‘re. -.PP -.B Home, A1 -A fájl elejére ugrik. -.PP -.B End, C1 -A fájl végére ugrik. -.PP -A Súgó nézÅ‘ és a Fájl nézÅ‘ az itt látható további billentyű\-kombinációk -használatát teszi lehetÅ‘vé: -.PP -.B b, C\-b, C\-h, Backspace, Delete -Egy teljes oldalnyit ugrik hátra. -.PP -.B Space bar -Egy teljes oldalnyit ugrik elÅ‘re. -.PP -.B u, d -Egy fél oldalnyit ugrik vissza, vagy elÅ‘re. -.PP -.B g, G -Az elejére, vagy a végére ugrik. -.\"NODE " Input Line Keys" -.SH " Beviteli gombok" -A beviteli sorok (ezek azok, amelyeket a -.\"LINK2" -Shell parancssor -.\"Shell Command Line" -és a programok lekérdezÅ‘ dialógusablakai használnak) a következÅ‘ -billyentyűk használatát engedélyezik: -.PP -.B C\-a -a kurzor a sor elejére ugrik. -.PP -.B C\-e -a kurzor a sor végére ugrik. -.PP -.B C\-b, a kurzort egy pozícióval balra mozgatja. -.PP -.B C\-f, a kurzort egy pozicióval jobbra mozgatja. -.PP -.B M\-f -egy szónyit ugrik elÅ‘re. -.PP -.B M\-b -egy szónyit ugrik vissza. -.PP -.B C\-h, backspace -törli az elÅ‘zÅ‘ (balra esÅ‘) karaktert. -.PP -.B C\-d, Delete -törli az adott pontban lévÅ‘ karaktert (a kurzor alól). -.PP -.B C\-@ -beállítja a kijelölés helyét. -.PP -.B C\-w -kimásolja a szöveget a kurzor és a kijelölt rész közül a kill bufferbe -és a bemeneti sorokat törli a szövegbÅ‘l. -.PP -.B M\-w -kimásolja a szöveget a kurzor és a kijelölt rész közül a kill bufferbe. -.PP -.B C\-y -visszateszi a kill bufferben lévÅ‘ bejegyzést. -.PP -.B C\-k -törli a szöveget a kurzortól a sor végéig. -.PP -.B M\-p, M\-n -Ezen billentyűk segítségével közvetlenül böngészhetünk az elÅ‘zÅ‘leg -kiadott parancsok közt. Az M\-p visszaléptet az elÅ‘zÅ‘ bejegyzésre, az M\-n -pedig átléptet a következÅ‘re. -.PP -.B M\-C\-h, M\-Backspace -egy szót töröl visszafelé. -.PP -.B M\-Tab -Fájlnév, parancs, változó, felhasználónév és hostname -.\"LINK2" -Kiegészítést -.\"Completion" -csinál. -.SH "" -.\"NODE "Menu Bar" -.SH "Menüsor" -A menüsor akkor jelenik meg, ha az F9\-es gombot lenyomod, vagy ha a -képernyÅ‘ legfelsÅ‘ sorára kattintasz. A menüsor öt menüt tartalmaz: -"Bal", "Fájl", "Parancsok", "Beállítások" és "Jobb". -.PP -A -.\"LINK2" -Bal és jobboldali menük -.\"Left and Right Menus" -lehetÅ‘vé teszik a bal és jobb oldali könyvtár panelek külsÅ‘ -megjelenítésének módosítását. -.PP -A -.\"LINK2" -Fájl menü -.\"File Menu" -felsorolja a kiválasztott fájlon, vagy a kijelölt fájlokon végrehajtható -parancsokat. -.PP -A -.\"LINK2" -Parancsok menü -.\"Command Menu" -felsorolja az általános és a jelenleg kiválasztott fájltól, kijelölt -fájloktól függetlenül végrehajtható parancsokat. -.\"NODE " Left and Right Menus" -.SH " Bal és jobboldali menük" -A könyvtárpanelek megjelenése változtatható a -.B "Bal" -és -.B "Jobb" -menükben. -.\"NODE " Listing Format..." -.SH " Fájllista..." -A fájllista módozatok a fájlok megjelenítésének beállítására szolgálnak, -négy különbözÅ‘ listázási mód használható: -.BR Hosszúlista , -.BR Rövidlista , -.B Részleteslista -és a -.BR Felhasználói . -A hosszú könyvtár nézet megmutatja a fájlneveket, a méretüket és a -módosításuk idejét. -.PP -A rövid lista nézet csak a fájl nevét és ezt két oszlopban (ekkor -kétszer, vagy többször annyi fájlt láthatsz mint a többi nézetekben). A -részletes lista tisztán az -.B "ls \-l" -parancs kimenetét jeleníti meg. A részletes lista helyenként képernyÅ‘ -széles is lehet. -.PP -Ha a "Felhasználói" megjelenítési formátumot választod, akkor te tudod -meghatározni azt, hogy mi is jelenjen meg a panelekben. -.PP -A felhasználói megjelenítésnek a panel méretét megadó bejegyzéssel kell -kezdÅ‘dnie. Ez lehet "half" (fél), vagy "full" (teljes), ezek határozzák -meg azt, hogy a panelek fél, illetve teljes képernyÅ‘ szélesen -jelenjenek\-e meg. -.PP -A panel méretének magadása után, meghatározhatod azt, hogy a panel két -oszlopot tartalmazzon, egy "2"\-es hozzáadásával a felhasználói -formátumot megadó szöveghez. -.PP -Ezután az opcionális fájl jellemzÅ‘k neveit kell megadnod. Az itt -megjelenített értékek használhatóak: -.TP -.B name -a fájl nevét jeleníti meg. -.TP -.B size -a fájl méretét jeleníti meg. -.TP -.B bsize -ez a -.B size -formátum egyik formája. Megjeleníti a fájlok és könyvtárak méretét, ha -az utóbbi tartalmaz SUB\-DIR\-t vagy UP\-\-DIR\-t. -.TP -.B type -megjelenít egy egykarakteres érték típust. Ez a karakter állítja be azt, -hogy mit jelenítsen meg az -.B "ls \-F" -flaggel. A csillag\-jel a futtatható fájlokhoz, a "slash" jel (törtvonal) -a könyvtárakhoz, a "at\-sign" a linkekhez, az "equal" (egyenlÅ‘ség) jel a -socket\-ekhez, a "hyphen" a karakteres eszközökhöz, a pluszjel a blokk -eszközökhöz, a "pipe" a fifo\-hoz, a "tilde" a könyvtárak szimbolikus -linkjeihez és a felkiáltójel a stalled szimlinkekhez (linkek, amik -sehova sem mutatnak) használhatók. -.TP -.B mark -a kijelölt fájl megjelölése, csillagozása, space, ha a fájl nem -kijelölt. -.TP -.B mtime -a fájl utolsó módosításának (modify) ideje. -.TP -.B atime -a fájl utolsó hozzáférésének (access) ideje. -.TP -.B ctime -a fájl készítésének (create) ideje. -.TP -.B perm -a megjelenített szöveg a fájl jelenlegi hozzáférési jogainak -(permission) bitjeit mutatja. -.TP -.B mode -a fájl jelenlegi nyolcas számrendszerbeli hozzáférését mutató bit -értéke. -.TP -.B nlink -a fájlra mutató linkek száma. -.TP -.B ngid -a GID (a csoport azonosító kódja; szám). -.TP -.B nuid -a UID (felhasználó azonosító kódja; szám). -.TP -.B owner -a fájl tulajdonosa. -.TP -.B group -a fájl csoportja. -.TP -.B inode -a fájl inódja (helyfoglalása a harddiszken). -.PP -Ezeken kívül még a következÅ‘ érték megnevezések adhatók meg az értékek -megjelenítéskori rendezéséhez: -.TP -.B space -helykitöltÅ‘ a megjelenítési formátumban. -.TP -.B | -ez a karakter használható arra, hogy függÅ‘leges vonalat jelenítsünk meg. -.PP -Egy érték fix méretének megadásához (mezÅ‘szélesség megadás), csak egy -\&':'\-ra van szükséged és azt követÅ‘en a megjelenített érték karaktereinek -számára, ha a szám egy '+' jelet követ, akkor a méret meghatározás a -minimum érték szélességet adja meg, ha a program több helyet talál a -képernyÅ‘n, mint ami az alap megjelenítéshez szükséges, ki tudja -használni a maradékot is, az értékek helyének kinyújtásával. -.PP -Például a -.B Hosszú lista -megjelenítés ehhez a formátumhoz hasonló: -.PP -half type name | size | mtime -.PP -A -.B Részletes lista -megjelenítés ennek a formátumnak megfelelÅ‘: -.PP -full perm space nlink space owner space group space size space mtime -space name -.PP -Érdemes például ezt kipróbálni: -.PP -half name | size:7 | type mode:3 -.PP -A Paneleket még a következÅ‘ módokba lehet állítani: -.TP -.B Infó -Az infó nézet a jelenleg kiválasztott fájlra vonatkozó adatokat mutatja, -és, ha látható információ a jelenlegi fájlrendszerrÅ‘l, akkor azt is. -.TP -.B Könyvtárfa -A könyvtárfa nézet azonos a -.\"LINK2" -Könyvtárfa -.\"Directory Tree" -eszközzel. Lásd az errÅ‘l szóló részt további információkért. -.TP -.B GyorsnézÅ‘ke -Ebben a módban a panel átvált -.\"LINK2" -BelsÅ‘ fájlnézÅ‘re\&, -.\"Internal File Viewer" -amely megjeleníti a jelenleg kiválasztott fájl tartalmát, ha a panelt -választod ki (a tab billentyűvel, vagy az egérrel), elérhetÅ‘vé válnak a -fájlnézÅ‘ parancsai. -.\"NODE " Sort Order..." -.SH " Rendezés..." -Nyolc rendezési sorrend található itt: Név szerinti, Kiterjesztés -szerinti, Módosítás ideje szerinti, Elérés ideje szerinti, az inode -információk módosítása szerinti, Méret szerinti, az Inode szerinti és a -Rendezetlen elrendezés. A Rendezés dialógus ablakban választhatsz a -rendezési szabályok közül és megadhatod azt is, hogy a megjelenítés a -kijelölt rendezési sorrenddel ellentétes legyen a megfelelÅ‘ box -kijelölésével. -.PP -Alapértelmezésben a könyvtárak a fájlok elÅ‘tt találhatók, de ez -megváltoztatható a -.\"LINK2" -Beállításokban -.\"Options Menu" -.RB ( "Minden fájl vegyesen" -opciójával). -.\"NODE " Filter..." -.SH " Szűrés" -A szűrés parancs engedélyezi számodra azt, hogy meghatározhasd a shell -mintát (például -.BR *.tar.gz ), -ha csak az ilyen fájlokat szeretnéd megjeleníteni. Tekintet nélkül -a filter kiegészítésre, a könyvtárak, és a könyvtárakra mutató linkek -megjelennek a könyvtár panelben. -.\"NODE " Reread" -.SH " Frissít" -A frissítés parancs újraolvassa a könyvtár fájl listáját. Ez más -processzekben is használható, amikor készítünk egy új fájlt, vagy törlünk -fájlokat. Ha a panelbe mentett fájlneveket használod, a panel újra fogja -olvastatni a könyvtár bejegyzéseket és törli ezen információkat (Lásd a -.\"LINK2" -Parancskimenet panel -.\"External panelize" -részt további információkért). -.\"NODE " File Menu" -.SH " Fájl menü" -A Midnight Commander az F1 \- F10 gombokat, mint gyorsbillentyűket -használja a Fájl menü parancsainak végrehajtásához. Az F\-es gombok -(funkciógombok) a TERMINFO kf1 ... kf10 escape szekvenciáit használják. Ha -a terminálon nincs funkciógomb támogatás, neked kell néhány funkciót -végrehajtanod az ESC (META) gomb és az 1\-tÅ‘l 9\-ig terjedÅ‘ és a 0 számok -használatával ( F1\-tÅ‘l F9\-ig és F10 egyenként megfelelÅ‘en). -.PP -A Fájl menü a következÅ‘ parancsokat tartalmazza (a gyorsbillentyűk -megjegyzésként megtalálhatóak): -.PP -.B Súgó (F1) -.PP -Segítségül hívja a beépített hypertext Súgó nézÅ‘t. A -.\"LINK2" -Súgó nézÅ‘n\&, -.\"Contents" -belül a Tab gombot használhatod a következÅ‘ link kiválasztására és az -Enter gombot a link követésére. A Space és a Backspace gombok az elÅ‘re\- -és hátralépésre használhatóak a súgó oldalon belül. Az F1 újbóli -lenyomására egy teljes listát kapsz az elérhetÅ‘ gombokról. -.PP -.B Menü (F2) -.PP -Ez segítségül hívja a -.\"LINK2" -felhasználói menüt\&. -.\"Edit Menu File" -A felhasználói menü könnyű használatot biztosít az új menükkel és az -extra eszközökkel a Midnight Commander\-hez. -.PP -.B Megnéz (F3, Shift\-F3) -.PP -Megmutatja a jelenlegi fájlt. Alapértelmezésben ehhez a -.\"LINK2" -BelsÅ‘ fájlnézÅ‘t -.\"Internal File Viewer" -használja, de ha a "BelsÅ‘ NézegetÅ‘" opció ki van kapcsolva, a -.B PAGER -környezeti változóban megadott külsÅ‘ fájlnézÅ‘t fogja használni. Ha a -.B PAGER -értéke sincs megadva, a "view" parancsot fogja használni. Ha a -Shift\-F3\-at használod, a fájlnézÅ‘ minden formázás, vagy átszerkesztés -nélkül nyitja meg a fájlt. -.PP -.B Szűrés... (M\-!) -.PP -Ez egy parancssort jelenít meg a kiadandó parancshoz és a hozzá tartozó -kiegészítés magadásához (a kiegészítés alapértelmezésben a jelenleg -kiválasztott fájl neve), a parancs kimeneteit a belsÅ‘ fájl nézÅ‘vel -nézhetjük meg. -.PP -.B Szerkesztés (F4) -.PP -Alapértelmezésben a -.B vi -editort használja, vagy az -.B EDITOR -környezeti változóban megadott szerkesztÅ‘t, vagy a -.\"LINK2" -BelsÅ‘ fájl szerkesztÅ‘t\&, -.\"Internal File Editor" -ha a belsÅ‘ szerkesztÅ‘ be van kapcsolva. -.PP -.B Másol (F5) -.PP -Egy beviteli ablakot jelenít meg, amely alapértelmezésben a nem -kiválasztott panel könyvtárát adja meg rendeltetési helyként, majd -átmásolja a kiválasztott fájlt (vagy kijelölt fájlokat, ha egynél több -fájlról van szó) a beviteli ablakban megadott könyvtárba. Space for -destination file may be preallocated relative to preallocate_space -configure option. A folyamat -futását a C\-c, vagy ESC lenyomásával szakíthatod meg. A forrás maszk -beállításairól (ami általában a *, vagy a ^\\(.*\\)$ közül valamelyik. -EzekrÅ‘l a "Shell kifejezések" beállításnál, illetve a -.\"LINK2" -Kijelölt fájlok másolása vagy áthelyezése -.\"Mask Copy/Rename" -rendeltetésénél olvashatsz. -.PP -Néhány rendszeren a láthatóság beállítható a háttérben történÅ‘ -másoláshoz a background gomb kijelölésével (vagy a M\-b lenyomásával a -dialógboxban). A -.\"LINK2" -Háttérmunkák -.\"Background jobs" -a háttér processzek beállítására használható. -.PP -.B Link (C\-x l) -.PP -Hard linket csinál a fájlhoz. -.PP -.B SymLink (C\-x s) -.PP -Szimbolikus linket készít a jelenlegi fájlhoz. Azoknak, amik nem tudják -mire jók ezek a linkek: kapcsolatot hoz létre a fájlhoz a fájl egy -kicsiny másolatával, ám a forrás fájlnév és a célfájl fájlneve ugyanazt -a fájlt jeleníti meg. Például, ha szerkeszted ezeket a fájlokat, minden -változtatás, amit elvégzel, mindkét fájlban végrehajtódik. Néhányan a -linkeket alias\-nak (~álnév), vagy gyorsbillyentyűnek hívják. -.PP -A hard link valós fájlként látszik. Elkészítése után nem lehet megmondani -azt, hogy melyik az eredeti és melyik a link. Ha ezek közül az egyiket -törlöd, a másik sértetlen marad. Ez nagyon eltér attól, hogy egy fájl -önmaga másolataként jelenjen meg. Akkor használj hard linket, amikor -nem igazán tudod mit akarsz csinálni. -.PP -A szimbolikus link az eredeti fájl nevére vonatkozik. Ha az eredeti fájlt -töröljük, a szimbolikus link használhatatlan lesz. Ezt elég egyszerű -úgy megjegyezni, hogy ez a fájlok megjelenítése más néven. A Midnight -Commander "@"\-jelet jelenít meg a fájlnév elÅ‘tt, ha az szimbolikus linkkel -mutat valahova (a könyvtárakat kivéve, ahol tilde (~) jelet mutat). Az -eredeti fájl, ahova mutat a link, láthatóvá válik a mini\-fájlinfó sorban, -ha a -.I "Mini fájlinfó" -opciót engedélyezted. Használj szimbolikus linket, ha el akarod kerülni -az összevisszaságot, amit a hard link okozhat. -.PP -.B Ãtnevezés, vagy mozgatás (F6) -.PP -Egy beviteli ablakot jelenít meg, amely alapértelmezésben a nem -kiválasztott panel könyvtárát adja meg rendeltetési helyként, és -átmásolja a kiválasztott fájlt (vagy kijelölt fájlokat, ha egynél -több fájlról van szó) a beviteli ablakban megadott könyvtárba úgy, -hogy az eredeti helyérÅ‘l letörli. A folyamat futását a C\-c, vagy az -ESC lenyomásával megszakíthatod. További részletekért lásd a Másolás -műveletet az elöbbiekben, mivel több dolog azonos. -.PP -Néhány rendszeren a láthatóság beállítható a háttérben történÅ‘ másolás a -.B Háttérben gomb -kijelölésével (vagy a M\-b lenyomásával a dialógboxban). A -.\"LINK2" -Háttérmunkák -.\"Background jobs" -használható a háttér processzek beállítására is. -.PP -.B Új könyvtár (F7) -.PP -Megnyit egy beviteli dialógus ablakot, amelyben megadhatod a készítendÅ‘ -könyvtár jellemzÅ‘it. -.PP -.B Törlés (F8) -.PP -Törli a kiválasztott fájlt, vagy kijelölt fájlokat, vagy könyvtárakat -az aktuális panelben. A folyamatot a C\-c, vagy az ESC lenyomásával -megszakíthatod. -.PP -.B Gyors cd (M\-c) -Használd a -.\"LINK2" -Gyors cd -.\"Quick cd" -parancsot, ha teljes parancssort akarsz alkalmazni a könyvtárváltáshoz. -.PP -.B Csoport kiválasztás (+) -.PP -Ez a fájlok csoportjainak kiválasztására (kijelölésére) használható. A -Midnight Commander promptot (dialógus ablakot) jelenít meg a csoport -meghatározásának leírására. Ha a -.I Shell kifejezések -et engedélyezted, a pontos beírásnak megfelelÅ‘ fájlnevek választódnak -ki a shell\-ben (*\-ot helyezve az üres\-, vagy a több karakterhez és ?\-et -helyezve egy adott karakter helyére). Ha a -.IR "Shell kifejezések" \-et -kikapcsoltad, akkor a fájlok kijelölése a szabványos kifejezésekkel -(regular expression) történik (lásd -.IR "ed (1)" ). -.PP -.B Csoport kiválasztás megszüntetése (\) -.PP -A fájlcsoportok kiválasztottságának megszüntetésére szolgál. Ez a -.I "Csoport kiválasztás" -parancs ellentéte. -.PP -.B Kilépés (F10, Shift\-F10) -.PP -Leállítja a Midnight Commander\-t. A Shift\-F10 akkor használható a -kilépéshez, ha rejtett shellt használsz. A Shift\-F10 nem a Midnight -Commander\-rel utoljára meglátogatott könyvtárat Å‘rzi meg, hanem a Midnight -Commander induláskori könyvtárát. -.\"NODE " Quick cd" -.SH " Gyors cd" -Ez a parancs akkor használható, amikor a teljes parancssort akarod a -.\"LINK2" -cd -.\"The cd internal command" -parancshoz használni, parancssor nélkül. Ez a parancs egy kis dialógus -ablakot jelenít meg, amelybe bármit begépelhetsz, amit a parancssorban a -.B cd -parancs után begépeltél volna, és ezután használd az entert.Ez az eszkÅ‘z -mindenben ugyanaz, mint a -.\"LINK2" -belsÅ‘ cd parancs\&. -.\"The cd internal command" -.\"NODE " Command Menu" -.SH " Parancsok menü" -A -.\"LINK2" -Könyvtárfa -.\"Directory Tree" -parancs lehetÅ‘vé teszi számodra azt, hogy fa szerkezetben jelenítsd meg -a könyvtárakat. -.PP -A -.\"LINK2" -Fájl keresés -.\"Find File" -parancs lehetÅ‘vé teszi számodra a speciális fájlok megkeresését. A -"Panelek felcserélése" parancs felcseréli a két könyvtár panel -tartalmát. -.PP -A "Panelok ki\-be" parancs megmutatja az utolsó shell parancs kimenetét. -Ez csak xterm\-en, Linux\-on és FreeBSD konzolon működik. -.PP -A Könyvtár összehasonlítás (C\-x d) parancs összehasonlítja a könyvtár -paneleket egymással. Ilyenkor használható a Másol (F5) parancs a panelek -azonossá tételére. Ennek három formája van. A gyors változat csak a fájlok -méretét, és dátumát vizsgálja meg. Az alapos változat teljesen, byte\-ról -byte\-ra végzi el a vizsgálatot. A 'Csak fájlhossz' -szerinti változat csak a fájlméretet hasonlítja össze és nem ellenÅ‘rzi -le a dátumukat. -.PP -A Parancssor elÅ‘zmények parancs megmutatja a begépelt parancsok -listáját. Az itt kiválasztott parancs átmásolódik a parancssorba. A -Parancssor elÅ‘zmények a M\-p, vagy a M\-n begépelésével is elérhetÅ‘. -.PP -A -.\"LINK2" -KönyvjelzÅ‘k (C\-\\) -.\"Hotlist" -parancs felveszi a jelenlegi könyvtárat a gyakran használt könyvtárak -közé. -.PP -A -.\"LINK2" -Parancskimenet panel -.\"External panelize" -lehetÅ‘vé teszi számodra külsÅ‘ parancsok futtatását, majd a program -tartalmát a jellegi panelbe teszi. -.PP -A -.\"LINK2" -Társítások -.\"Edit Extension File" -lehetÅ‘vé teszik számodra a futtatandó programok meghatározását, a -kiválasztott fájl kiterjesztésének (fájlnév vége) megfelelÅ‘en akkor, ha -futtatod, megtekinted a tartalmát, átszerkeszted vagy más egyéb dolgot -szeretnél vele csinálni. A -.\"LINK2" -Menu editor edit -.\"Edit Menu File" -parancs a felhasználói menü szerkesztésére használható (ami az F2 -lenyomásával elérhetÅ‘). -.\"NODE " Directory Tree" -.SH " Könyvtárfa" -A Könyvtárfa parancs fa formában mutatja meg a könyvtárakat. EbbÅ‘l a -listából kiválaszthatsz egy könyvtárat és a Midnight Commander abba a -könyvtárba lép át. -.PP -Két lehetÅ‘ség van a fa megjelenítésére. Az igazi könyvtárfa parancs -elérhetÅ‘ a Parancsok menübÅ‘l. A másik mód a Bal, vagy a Jobb menüben a -fa nézet kiválasztása. -.PP -A Midnight Commander a fa nézet készítéséhez csak minden könyvtár belsÅ‘ -beállításait szkenneli le, így magszabadít téged a hosszú várakozástól. Ha -megtalálod a megtekinteni kívánt könyvtárat, menj rá a szülökönyvtárára -és nyomd le a C\-r\-t (vagy az F2\-t). -.PP -A következÅ‘ gombokat használhatod: -.PP -.\"LINK2" -Ãltalános mozgási lehetÅ‘ségek billentyűzettel\&. -.\"General Movement Keys" -.PP -.B Enter. -A Könyvtárfánál kilép a Könyvtárfából és a jelenlegi panelben átváltja -a könyvtárat. Fa nézetben átvált erre a könyvtárra a másik panelben és -a jelenlegi panelben marad a fa nézet. -.PP -.B C\-r, F2 (Újraolvasás). -Újraolvassa ezt a könyvtárat. Ezt akkor használd, ha a fa nézet -aktualitását vesztette: ez megkeresi a belsÅ‘ könyvtárakat és megmutat -néhány belsÅ‘ könyvtárat, amely eddig nem létezett. -.PP -.B F3 (Elfelejt). -Törli ezt a könyvtárat a fa nézetbÅ‘l. Ezt az összevisszaság eltüntetésére -használhatod a fa nézetben. Ha vissza akarsz tenni egy könyvtárat a fa -nézetbe, nyomd le az F2\-t a szülÅ‘ könyvtáron állva. -.PP -.B F4 (Statikus\-Dinamikus). -Vált a dinamikus (alapértelmezett) és a statikus böngészÅ‘ mód között. -.PP -A statikus böngészÅ‘ módban a Fel és Le gombokat használhatod a könyvtár -kiválasztására. Minden ismert könyvtár látható. -.PP -A dinamikus böngészÅ‘ módban a Fel és Le gombokat a testvér könyvtárak -kiválasztására, a Bal gombot a szülÅ‘ könyvtárra való lépéshez és a Jobb -gombot az alárendelt könyvtárra lépéshez. Csak a szülÅ‘, a testvér és -az alárendelt könyvtár látható, a többi nem. A fa nézet a dinamikus -váltáshoz használhatod. -.PP -.B F5 (Másolás). -A könyvtárat másolja. -.PP -.B F6 (Ãtnevezés vagy mozgatás). -Ãthelyezi a könyvtárat. -.PP -.B F7 (Létrehoz Könyvtárat). -Új könyvtárat készít a könyvtár -alá. -.PP -.B F8 (Töröl). -Törli a könyvtárat a fájlrendszerbÅ‘l. -.PP -.B C\-s, M\-s -Megkeresi a következÅ‘ könyvtárat, amely megfelel a keresett szövegnek. -Ha nincs ilyen könyvtár, akkor egy sorral lejjebb lép. -.PP -.B C\-h, Backspace -Törli az utolsó karaktert a keresési -szövegben. -.PP -.B Bármely más karakter. -Karaktert tesz hozzá a keresési szöveghez és átlép a következÅ‘ olyan -könyvtárra, amely ezekkel a karakterekkel kezdÅ‘dik. A fa nézetben -elÅ‘ször a C\-s\-sel tudod aktiválni a keresést. A keresett szöveg a mini -fájlinfó sorban jelenik meg. -.PP -A további műveletek csak a könyvtárfában érhetÅ‘ek el. Ezeket a fa nézet -nem támogatja. -.PP -.B F1 (Súgó) -Belép a Súgó nézÅ‘be és megjeleníti ezt a részt. -.PP -.B Esc, F10 -Kilép a Könyvtárfából. Nem vált könyvtárat. -.PP -Az egér használható. A dupla kattintás egy Enter\-nek felel meg. További -információkat az -.\"LINK2" -Egér kezelés -.\"Mouse Support" -részben találhatsz. -.\"NODE " Find File" -.SH " Fájl keresés" -A Fájl keresés eszköz elÅ‘ször megkérdezi a keresés induló könyvtárát, -majd a keresett fájlnevet. A Könyvtárfa gomb lenyomásával kiválaszthatod -az induló könyvtárat a -.\"LINK2" -Könyvtárfa -.\"Directory Tree" -nézetbÅ‘l. -.PP -A tartalom mezÅ‘ben szabványos kifejezéseket is használhatunk megadásával -(man egrep(1)). Használd az egrep escape (kilépés) karakterét (backslash, -\\). Például, ha az "strcmp (" szöveget keresed, ezt így add meg: -"strcmp \\(" (a dupla idézÅ‘jel nélkül). -.PP -Az Oké gomb lenyomásával indíthatod el a keresést. Keresés közben a -keresés leállítható a Felfüggeszt gombbal és folytatható a Folytatás -gombbal. -.PP -Böngészhetsz a fájllistában a le és fel gombok használatával. Az Ugrás -gombbal a jelenlegi könyvtárat fel tudod cserélni a kiválasztott -fájléval. Az Újra gomb az új keresés paramétereit megkérdezi tÅ‘led. A -Kilép gomb bezárja a keresés műveletet. A Panelba gomb a elhelyezi a -jelenlegi könyvtárban a keresett fájlokat, így további műveletek -végezhetÅ‘ek velük (megtekintés, másolás, mozgatás, törlés és a többi). A -panelba helyezés művelet után a C\-r lenyomásával visszatérhetsz a normál -fájl listához. -.PP -Lehetséges azon könyvtárak listájának megadása, amelyeket át szeretnénk -ugrani a Fájl Keresés parancs használata során (például ha a keresés -során el szeretnéd kerülni a CDROM\-ot, vagy az NFS könyvtárait amelyeket -slow linkkel csatoltak). -.PP -Az átlépendÅ‘ könyvtárakat a -.B ignore_dirs -változó állítja be az ~/.config/mc/ini fájlod -.B FindFile -részében. -.PP -A könyvtár elemeket kettÅ‘sponttal tudod elválasztani egymástól, emire -itt egy példát is láthatsz: -.PP -.nf -[FindFile] -ignore_dirs=/cdrom:/nfs/wuarchive:/afs -.fi -.PP -A -.\"LINK2" -Parancskimenet panel -.\"External panelize" -parancs használatos néhány műveletben. -.PP -A Fájl keresés parancs egyszerű lekérdezÅ‘ eljárás, amely a -Parancskimenet panelt használja a szükséges fájlok megkeresésére. -.\"NODE " External panelize" -.SH " Parancskimenet panel" -A Parancskimenet panel lehetvé teszi számodra külsÅ‘ program futtatását, -és a parancs kimenetének megjelenítését a jelenlegi panelben. -.PP -Például, ha egyszerre szeretnéd módosítani a jelenlegi könyvtár összes -szimbolikus linkjét a jelenlegi panelben, a következÅ‘ parancsot is -használhatod a parancskimenet panelben: -.PP -.nf -find . \-type l \-print -.fi -.PP -A parancs befejeztével a panelban lévÅ‘ könyvtár\-bejegyzések száma nem -nagyobb mint a jelenlegi könyvtáré, de minden szimbolikus link fájlt -tartalmaz. -.PP -Ha minden olyan fájlt meg akarsz jeleníteni a panelben, amelyet ftp -szerverrÅ‘l töltöttél le, használhatod az awk parancsot az átmásolt -fájlok neveit tartalmazó log fájl tartalmának megjelenítésére: -.PP -.nf -awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog -.fi -.PP -A gyakran használt parancsokat elmentheted egy számodra egyértelmű -néven, így azokat gyorsan újra elÅ‘hívhatod a késÅ‘bbiekben is. Úgy tudsz -ilyen parancsokat létrehozni, hogy begépeled a parancsot a beviteli -mezÅ‘be, és lenyomod az Új gombot. Ekkor begépelheted azt a nevet, -amilyen néven el szeretnéd menteni a parancsot. KövetkezÅ‘ alkalommal -csak ki kell választanod a parancsot a listából ahhoz, hogy ne kelljen -mégegyszer begépelned azt. -.\"NODE " Hotlist" -.SH " KönyvjelzÅ‘k" -A KönyvjelzÅ‘k parancs megmutatja a gyorslistában szereplÅ‘ könyvtárakat. -A Midnight Commander a kiválasztott értéknek megfelelÅ‘ könyvtárra -váltja át a panel tartalmát. A KönyvjelzÅ‘k dialógus ablakból kiveheted a -már létezÅ‘ elnevezés\-\-könyvtár párokat, és hozzáadhatsz újakat is. -Továbbiak hozzáadásához a Hozzáadás a kedvencekhez parancsot -használhatod (C\-x h), amely a jelenlegi könyvtárat hozzáadja a -könyvjelzÅ‘khöz. A felhasználó ezután egyéni megnevezéssel hivatkozhat a -könyvtárra. -.PP -Ezzel a gyakran használt könyvtárakhoz ugorhatunk. A CDPATH változó -használatát megtekintheted a -.\"LINK2" -A cd belsÅ‘ parancs -.\"The cd internal command" -leírásánál. -.\"NODE " Edit Extension File" -.SH " Társítások" -Ez az -.I ~/.config/mc/mc.ext.ini -szerkesztéséhez segítségül fogja hívni a szövegszerkesztÅ‘det. -If this file does not exist and you are not root, it will be copied from -.IR %sysconfdir%/mc/mc.ext.ini . -If you are root, you can choose the file to edit: user's -.I ~/.config/mc/mc.ext.ini -or system\-wide -.IR %sysconfdir%/mc/mc.ext.ini . -The format of this file is described in detail in it. -.\"NODE " Background jobs" -.SH " Háttérmunkák" -Ezzel szabályozhatod néhány Commander háttérfolyamat állapotát (csak a -másolás és a mozgatás fájlműveletek tehetÅ‘k háttérbe). Ezeket a -háttérmunkákat állíthatod le, indíthatod újra, lÅ‘heted ki itt. A -linuxban futó background processzekre hatástalan. -.\"NODE " Edit Menu File" -.SH " Menü szerkesztés" -A felhasználói menüt a felhasználó testre szabhatja. Ez az aktulis -könyvtár .mc.menu fájlja, ha az létezik, de csak, ha az a felhasználó -(illetve a root) a tulajdonosa, és nem lehet bárki számára írható. Ha -nem talál ilyen fájlt, az -.I ~/.config/mc/menu -keresése a következÅ‘ lépés, egyébként pedig az mc az alapértelmezett -rendszerszintű menüt használja, pl.: -.IR %pkgdatadir%/mc.menu , -esetleg %sysconfdir%/mc/mc.menu. -.PP -A menü fájl formátuma nagyon egyszerű. A sorok, amelyek bármivel -kezdÅ‘dhetnek, de a space, vagy a tab megkülönböztetett menübejegyzések -(gyorsbillentyűként definiálható az elsÅ‘ karakter). Minden olyan sor ami -szóközzel, tabulátorral kezdÅ‘dik, parancs, amit lefuttat az mc, ha -kiválasztottad a bejegyzést. -.PP -Ha az opciót kiválasztod, a parancssor bemásolódik egy ideiglenes fájlba -a temp könyvtárba (ez vagy az /usr/tmp, vagy a /tmp), és ilyenkor a fájl -lefut. Ez lehetÅ‘vé teszi a felhasználónak normál shell parancslista -(script) készítését a menüben. Továbbá egyszerű Makrók helyezhetÅ‘k el -benne, amelyek a menü kód futtatása elÅ‘tt futnak le. További -információkért lásd a -.\"LINK2" -Macro HelyettesítÅ‘ -.\"Macro Substitution" -részt. -.PP -Egy példa az mc.menu fájlra: -.PP -.nf -A A kiválasztott fájlok listázása oktális formában - od \-c %f - -B A hiba leírás szerkesztése és elküldése a root\-nak - I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1 - vi $I - mail \-s "Midnight Commander bug" root < $I - rm \-f $I - -M Levél olvasás - emacs \-f rmail - -N A Usenet hírek elolvasása - emacs \-f gnus - -H Az info hypertext böngészÅ‘ elindítása - info - -J A jelenlegi könyvtár rekurzív átmásolása a másikba - tar cf \- . | (cd %D && tar xvpf \-) - -K Az aktuális könyvtárról archiválása - echo \-n "Name of distribution file: " - read tar - ln \-s %d `dirname %d`/$tar - cd .. - tar cvhf ${tar}.tar $tar - -= f *.tar.gz | f *.tgz & t n -X A kijelölt tömörített tar fájl kicsomagolása - tar xzvf %f -.fi -.PP -.B Alapértelmezett Feltételek -.PP -Néhány menü bejegyzés irányadó feltételként szerepelhet. A feltétel eslÅ‘ -oszlopában az '=' karakternek kell lennie. Ha a feltétel igaz, a -menüpont alapértelmezett bejegyzéssé fog válni. -.PP -.nf -Feltétel szintaktika: = - vagy: = | ... - vagy: = & ... - -A belsÅ‘ feltétel az alábbiak közül valamelyik: - - y a jelenlegi fájlminta szintaktikusan - illeszkedik? - csak menüszerkesztéshez - f jelenlegi fájlminta egyezik? - F egyéb fájlminta egyezik? - d jelenlegi könyvtár minta egyezik? - D más könyvtár minta egyezik? - t jelenlegi fájltípus? - T más fájltípus? - x ez futtatható fájlnév? - ! a belsÅ‘ feltételek ellentéte -.fi -.PP -A minta lehet a shell által értelmezett, vagy lehet szabványos -kifejezés. Felülírhatod a rendszerszintű értékeket a Shell kifejezések -opcióval a "shell_patterns=x" beírásával a menü fájl elsÅ‘ sorában (ahol az -"x" a 0 és 1 közül valamelyik lehet). -.PP -A következÅ‘ karakterek közül egyet, vagy többet is begépelhetsz: -.PP -.nf - n nem könyvtár - r szabályos fájl - d könyvtár - l link - c speciális karakter - b speciális blokk - f fifo - s socket - x futtatható fájl - t fájl kijelölve -.fi -.PP -Például az 'rlf' bejegyzés esetén lehet fájl, link, vagy fifo. A 't' -típus egy kicsit különleges, mert nem fájlon, hanem panelen dolgozik. A -\&'=t t' feltétel igaz akkor, ha a jelenlegi panelben vannak kijelölt -fájlok és hamis, ha nincsennek. -.PP -Ha a feltétel '=?'\-lel kezdÅ‘dik '=' helyett, a hibakeresÅ‘ (debug) -kimenete jelenik meg, mialatt akkor a feltétel eredményét a program -kiértékeli. -.PP -A feltételek kiértékelése balról\-jobbra történik. Ennek megfelelÅ‘en: -.nf - = f *.tar.gz | f *.tgz & t n -.fi -kibontva: -.nf - ( (f *.tar.gz) | (f *.tgz) ) & (t n) -.fi -.PP -Egy példa a feltételek használatára: -.PP -.nf -= f *.tar.gz | f *.tgz & t n -L Listázza az aktuális tar archívumot - gzip \-cd %f | tar xvf \- -.fi -.PP -.B Járulékos feltételek -.PP -Ha a feltétel '+'\-szal (vagy '+?'\-lel) kezdÅ‘dik az '=' (vagy '=?') -helyett, ez járulékos feltétel. Ha a feltétel igaz, a menü bejegyzés -megjelenik a menüben. Ha a feltétel hamis, a menü bejegyzés nem jelenik -meg. -.PP -Kombinálhatod is az alapértelmezett és a járulékos feltételeket a -feltétel sorának '+='\-lel, vagy '=+'\-szal (vagy '+=?'\-lel és '=+?\-lel', -ha hiba követÅ‘t is szeretnél) kezdésével. Ha két eltérÅ‘ feltételt -szeretnél használni, egyet járulékosként és egyet alapértelmezettként, -két feltételsort kell készítened; egyet '+'\-szal kezdÅ‘dÅ‘en és egy -másikat '='\-lel kezdÅ‘dÅ‘en. -.PP -A magyarázat sorát '#'\-kal kell kezdened. A kiegészítÅ‘ magyarázat sorait -\&'#'\-kal, space\-szel, vagy tab\-bal kell kezdened. -.\"NODE " Options Menu" -.SH " Beállítások" -A Midnight Commander rendelkezik néhány olyan opcióval, amely lehetÅ‘vé -teszi a be\- illetve a kikapcsolását néhány dialógus eszköznek, amely az -adott menübÅ‘l elérhetÅ‘. Az opció engedélyezett, ha csillag, vagy "x" áll -elÅ‘tte. -.PP -A -.\"LINK2" -Beállítások -.\"Configuration" -parancs dialógus ablakot nyit meg, amelyben a Midnight Commander fÅ‘bb -beállításait elvégezheted. -.PP -A -.\"LINK2" -Megjelenés -.\"Layout" -parancs dialógus ablakot jelenít meg, amelyben az mc képernyÅ‘n történÅ‘ -megjelenésének opcióit találod egy csokorban. -.PP -A -.\"LINK2" -MegerÅ‘sítés -.\"Confirmation" -parancs dialógus ablakot jelenít meg, amelyben meg tudod adni azt, hogy -mely műveletekhez kell megerÅ‘sítést kérni. -.PP -A -.\"LINK2" -KépernyÅ‘bitek -.\"Display bits" -parancs dialógus ablakot nyit meg, amellyel beállíthatod azt, hogy -milyen karakterek jelenhessenek meg a terminálodon. -.PP -A -.\"LINK2" -Billentyűzet tanítás -.\"Learn keys" -dialódus ablakot jelenít meg, amelyben megvizsgálhatod azokat a -gombokat, amelyek nem működnek néhány terminálon, és kijavíthatod Å‘ket. -.PP -A -.\"LINK2" -Csatolt fájlrendszer... -.\"Virtual FS" -parancs olyan dialógus ablakot jelenít meg, amelyben VFS\-hez kapcsolódó -opciókat adhatod meg. -.PP -A -.\"LINK2" -Beállítások mentése -.\"Save Setup" -parancs elmenti a Bal, Jobb és a Beállítások jelenlegi értékeit. Néhány -egyéb beállítás is elmentÅ‘dik. -.\"NODE " Configuration" -.SH " Az MC konfigurálása" -A dialógus ablalban lévÅ‘ opciók három csoportra bonthatók: Panel -Beállítások, Futtatás után vár... és Egyéb. -.PP -.B Panel Beállítások -.PP -.I Backup fájlt mutat. -Alapértelmezésben a Midnight Commander nem mutatja a '~'\-re végzödÅ‘ -fájlokat (a GNU' \-B opciójának megfelelÅ‘en). -.PP -.I Rejtett fájlt mutat. -Alapértelmezésben a Midnight Commander láthatóvá teszi a ponttal kezdÅ‘dÅ‘ -fájlokat (az ls \-a \-hoz hasonlóan). -.PP -.I Kijelölés után lefele lép -Alapértelmezésben, amikor kijelölsz egy fájlt (a Insert -gomb közül valamelyikkel,) a kiválasztó sáv lefelé mozdul el. -.PP -.I LegördülÅ‘ menük. -Amikor ezt az opciót engedélyezed, az -.B F9 -gomb lenyomásakor a menü le fog ereszkedni, egyébként te csak a menü -címét tudod megjeleníteni és ezek után tudod kiválasztani a menü -bejegyzést a nyíl gombokkal, vagy annak megjelölt betűjével, és csak -ekkortól tudsz menüpontot kiválasztani. -.PP -.I Minden fájl vegyesen. -Ha ezt az opciót engedélyezted, a fájlok és könyvtárak vegyesen jelennek -meg. Ha az opció ki van kapcsolva, a felsorolás a könyvtárakkal (és a -könyvtár linkekkel) fog kezdÅ‘dni, és ezeket az egyéb fájlok követik. -.PP -.I Gyors könyvtárlista. -Ez az opció alapértelmezésben ki van kapcsolva. Ha bekapcsolod a gyors -könyvtárlista funkciót, a Midnight Commander egy trükköt fog használni -akkor, ha a könyvtár tartalma megváltozik. A trükk az, hogy csak -akkor olvassa újra a könyvtárat, ha a könyvtár inode\-ja megváltozott; -ez azt jelenti, hogy csak fájl létrehozásakor, és törlésekor kerül -újraolvasásra. Ha valami a könyvtárban lévÅ‘ fájl inode\-jában történik -(fájlméret\-változás, módok, és tulajdonosok változnak, stb.) a -megjelenítés nem kerül frisítésre. Ebben az esetben, ha az opció be van -kapcsolva, kézzel tudod újraolvastatni a könyvtár tartalmát (a -.IR C\-r \-rel). -.PP -.B Futtatás után vár -.PP -Az általad kiadott parancs lefutása után a Midnight Commander várhat -amiatt, hogy meg tudd vizsgálni a parancs kimenetét. Három beállítás -adható meg ennek a változónak: -.I Soha -Abban az esetben, ha te nem kívánod látni azt, hogy mit írt ki a -parancs. Ha Linux, vagy FreeBSD konzolt, vagy xterm\-et használsz, a -parancs kimenete a -.I C\-o -begépelésével megjeleníthetÅ‘. -.I Buta terminálokon -várakozási üzenetet fogsz kapni azon a terminálon, amely nem képes -megmutatni az utolsóként kiadott parancs kimenetét (bármilyen terminálon, -amely nem xterm, vagy nem Linux konzol). -.I Mindig -A program mindig vár, miután a parancsod lefutott. -.PP -.B Egyéb beállítások -.PP -.I Részletes műveletinfó. -Ez van bejelölve akkor, ha a fájl -Másolás, Ãtnevezés és Törlés műveletek részletesek (pl., egy -dialógus ablakot jelenít meg néhány művelethez). Ha lassú -terminálod van, beállíthatod azt, hogy ne legyenek részletes -műveletek. Automatikusan kikapcsolódik ez a beállítás, ha a -terminálod sebessége kissebb mint 9600 bps. -.PP -.I Byteok számítása -Ha ez az opció engedélyezve van, a Midnight Commander számítja a teljes -byte méretet és a teljes fájlszámot a Másolás, Ãtnevezés és a Törlés -műveleteknél. Ez a funkció ellát téged több pontos folyamat sávval, -kiegészítve azt néhány sebességgel. Ez az opció nem látható, ha a -.IR "Részletes műveletinfó" t -nem engedélyezted. -.PP -.I Shell mintázatok -Alapesetben a Kiválasztás, Kiválasztás megszüntetése és a Szűrés -parancsok a shell\-nek megfelelÅ‘ pontos kiterjesztéseket használják. A -következÅ‘ konverzió átalakítások vannak jelenleg: a '*' kicserélÅ‘dik -a '.*'\-gal (zeró, vagy több karakter); a '?' kicserélÅ‘dik a '.'\-tal -(pontosan egy karakter) és a '.' a szó szerinti ponttal. Ha az opció nem -engedélyezett, akkor a szokásos kiterjesztések azonosak a ed\-ben lévÅ‘kkel: -.IR "man ed" . -.PP -.I Beállítások automatikus mentése -Ha ez az opciót bekapcsoltad, amikor kilépsz a Midnight Commander\-bÅ‘l, -az MC opcióinak beállításait az ~/.config/mc/ini fájlba menti. -.PP -.I Auto menük. -Ha ez az opció engedélyezett, a felhasználói menü megjelenik az mc -indításkor. Különösen azok számára ajánlott, akik nem szoktak hozzá a -UNIX\-os környezethez. -.PP -.I BelsÅ‘ szövegszerkesztÅ‘ -Ha ez az opció engedélyezve van, a beépített fájlszerkesztÅ‘t használja a -fájlok szerkesztésére. Ha az opciót nem engedélyezzük, az mc az -.B EDITOR -környezeti változóban megadottat használja. Ha ez sincs megadva, a -.BR vi \-t -fogja használni. Lásd a -.\"LINK2" -BelsÅ‘ fájlszerkesztÅ‘\&. -.\"Internal File Editor" -részben. -.PP -.I BelsÅ‘ nézegetÅ‘. -Ha ezt az opciót engedélyeztük, a beépített fájlnézÅ‘t fogja a fájlok -tartalmának megtekintéséhez használni a program. Ha nem engedélyeztük, a -.B PAGER -környezeti változóban megadott pager értéket használja. Ha nincs megadva -a pager értéke, a -.B Megnéz -parancsot használja. Lásd a -.\"LINK2" -BelsÅ‘ fájlnézÅ‘ -.\"Internal File Viewer" -részben. -.PP -.I Kiegészítés: minden mutat -Alapértelmezésben a Midnight Commander megjelenít minden elem -.\"LINK2" -Kiegészítést\&. -.\"Completion" -Ha a kiegészítésben bizonytalan vagy, nyomd le az -.BR M\-Tab \-ot -és a második alkalommal kiegészíti, elsÅ‘ alkalommal csak annyit jelenít -meg, mint amennyit lát, és ebben az esetben a kétértelműség miatt egy -beep hangot is kapsz. Ha látni szeretnéd az összes kiegészítést, az elsÅ‘ -.B M\-Tab -lenyomása után, engedélyezd ezt az opciót. -.PP -.I Forgó törtjel -Ha ezt az opciót engedélyezted, a Midnight Commander forgó törtjelet -jelenít meg a jobb felsÅ‘ sarokban, mutatva ezzel azt, hogy munka van -folyamatban. -.PP -.I Mozgás, mint lynx\-ben -Ha ezt az opciót engedélyezted, a nyíl gombokat, mint automatikus -könyvtárváltókat használhatod ha az aktuális kiválasztás egy belsÅ‘ -könyvtár és a shell parancssor elérhetÅ‘. Alapértelmezésben ez a -beállítás ki van kapcsolva. -.PP -.I Cd követi a linket -Ez az opció, ha be van állítva, akkor a Midnight Commander követi a -könyvtárak logikai kapcsolatait ha könyvtárat váltasz valamelyik -panelben, vagy a cd parancsot használod. Ez alapértelmezésben a bash -jellemzÅ‘je. Amikor ez nincs beállítva, a Midnight Commander a valós -könyvtárszerkezetet követi, úgy, mint amikor a cd..\-t gépeled be, a -könyvtáron keresztül átlépsz a "szülÅ‘" könyvtárba, és nem abba a -könyvtárba, amelyre a link mutat. -.PP -.I Biztonságos törlés -Ha ezt az opciót engedélyezted, a fájlok közvetlen szándék nélkül -törlését megnehezíted. Alapesetben egy "MegerÅ‘sítés" dialógus ablaknan -választhatunk az "Igen" és "Nem" gombok között törléskor. Alapesetben ez -az opció nem engedélyezett. -.\"NODE " Layout" -.SH " Megjelenés" -A Megjelenés dialógus ablakban megváltoztathatod a képernyÅ‘\-megjelenés -beállításait. Beállíthatod azt, hogy a menüsor, a parancssor, a tippek -és a funkcióbillentyűk láthatóak legyenek\-e. Linux, vagy FreeBSD -konzolon megadhatod azt, hogy hány sorban legyen látható a megjelenÅ‘ -ablak. -.PP -A képernyÅ‘ nyugalomban lévÅ‘ részén két panelt használhatunk. Megadhatod -azt, hogy vízszintesen, vagy függÅ‘legesen ossza\-e fel a képernyÅ‘t a -két panel. A felosztás lehet egyenlÅ‘ arányú, vagy te is megadhatod az -arány mértékét. -.PP -Alapesetben a könyvtár panelokban lévÅ‘ fájlok csak néhány színnel kerülnek -megjelenítésre, de te azt is megadhatod, hogy a -.I jogosultságok -vagy a -.I fájltípusok -jelenjenek\-e meg speciális -.\"LINK2" -Színekkel\&. -.\"Colors" -Ha pl. a jogosultságokat kérted, a -.I jogok -és a -.I mode -értékek a Midnight Commander\-t futtató felhasználó jogainak megfelelÅ‘en -láthatók a -.\"LINK2" -Fájllistában -.\"Listing Format..." -a -.I kiválasztás -színével. Ez különösen elÅ‘nyös, ha a könyvtárunkban más felhasználó -fájljai is elÅ‘fordulnak. Ha a fájltípus megjelölést engedélyezted, -a fájlok a fájltípusuknak megfelelÅ‘en jelennek meg (pl. könyvtár, core -fájl, futtatható fájl, stb.). -.PP -Ha a -.I Mini fájlinfó -opciót engedélyezted, egy sor lesz látható a panel alján, a látható, -jelenleg is kiválasztott bejegyzések információival. -.\"NODE " Confirmation" -.SH " MegerÅ‘sítés" -Ebben a menüben tudod beállítani enter lenyomására a törlés, -felülírás, futtatás, és programból történÅ‘ kilépés -MegerÅ‘sítésének opcióit. -.\"NODE " Display bits" -.SH " KépernyÅ‘bitek" -Ez az ablak a megjelenített karakterek tartományának beállítására -szolgál. Ez a beállítás lehet 7\-bites, ha terminálod, vagy -megjelenítésed csak a hét bites karaktereket támogatja; az -ISO\-8859\-1\-ben az ISO\-8859\-1\-es karaktetábla valamennyi karaktere -megjeleníthetÅ‘; végül teljes 8 biten azokon a terminálokon, ahol teljes -8 bitet meg tudsz jeleníteni. A két utolsó megjelenítési forma képes az -Å‘ és ű betűk kivételével az összes magyar betűt kijelezni a BelsÅ‘ -filenézÅ‘ben. -.\"NODE " Learn keys" -.SH " Billentyűzet tanítás" -Ebben a dialógus ablakban tudod letesztelni azt, hogy terminálodon az -F1\-F20, Home, End, stb. gombok megfelelÅ‘en működnek\-e. Ezek gyakran nem -működnek, mióta néhány Terminál adatbázis megváltozott. -.PP -A mezÅ‘ket a Tab gombbal és a vi mozgató gombjaival ('h' balra, 'j' le, -\&'k' fel és 'l' jobbra) járhatod körbe. Ha egy kurzor gombot legalább -egyszer megnyomsz, OK\-val jelöli; kilépéskor ez a állapot elmenthetÅ‘. -.PP -Ezek közül bármelyiket tesztelheted a gomb lenyomásával. Amint -lenyomtad, a gomb megfelelÅ‘en fog működni, és egy OK jelenik meg a gomb -neve mellett. Amelyik gomb OK\-val jelölÅ‘dik meg, általában az -használható. Az F1 az elsÅ‘ alkalommal csak le fogja ellenÅ‘rizni, hogy -megfelelÅ‘en műkÅ‘dik\-e, másodszor már a súgót jeleníti meg. A tab gomb -továbbra is működni fog. -.PP -Ha néhány gomb nem működik megfelelÅ‘en, akkor nem jelenik meg OK a gomb -neve után. Ilyenkor lehetÅ‘séged van kijavítani ezt. Ezt ennek a gombnak -a lenyomásával (egér, vagy a Tab gombbal és az Enter\-rel) tudod -kijavítani. Ekkor egy piros színű üzenet jelenik meg amely arra kér -téged, hogy üsd le a megfelelÅ‘ gombot. Ha ezt meg akarod szakítani, csak -nyomd le az Esc\-et, és várj amíg az üzenet el nem tűnik. Egyébként a -begépelt gomb lesz az megkérdezett gombbal azonosított. Ezután a -dialógus ablak eltűnik. -.PP -Amikor végeztél minden gombbal, ezt elmentheted a Mentés gombbal az -~/.config/mc/ini fájlba, a [terminal:TERM] részbe (ahol a TERM a jelenlegi -terminál neve), vagy elvetheted. Ha minden gombod megfelelÅ‘en működik, -és nem javítottál semmit, akkor (természetesen) nem fog menteni semmit -sem. -.\"NODE " Virtual FS" -.SH " Csatolt (látszólagos) fájlrendszer" -Ez az opció lehetÅ‘vé teszi számodra a -.\"LINK2" -Csatolt fájlrendszer -.\"Virtual File System" -informcáció cache\-ének beállítását. -.PP -A Midnight Commander a memóriában tárolja a csatolt fájlrendszer -információit a fájlrendszeren lévÅ‘ fájlok gyorsabb elérése érdekében -(Például, könyvtár listázás trükkje távoli ftp szerverek esetén). -.PP -Azonfelül a tömörített fájlok tartalmához való hozzáféréskor (például, -tömörített tar fájlok) a Midnight Commander készít egy kitömörített temp -fájlt a merevlemezeden. -.PP -A memóriában és a temp fájlban lévÅ‘ információk között van némi idÅ‘beni -különbség, te a hozzáférési sebesség maximalizálása miatt átállíthatod a -cached információk újraolvasási paramétereit. -.PP -A Tar Fájlrendszer elég ügyesen kezeli a tar fájlokat: csak beolvassa a -könyvtár bejegyzéseket, és amikor szükséges a tar fájlban tárolt -információk használata, újraolvassa azokat, és kinyeri a szükséges -infókat. -.PP -Igazából a tar fájlok tömörítettek maradnak (alap tar fájlok fajtái -esetében), és mivel ezek a fájlok természetes fájlok (a tar fájlok -könyvtár\-bejegyzéseinek kiolvasására nem kell várni), a tar fájlrendszer -a fájlt a lemez temp könyvtárba kitömöríti, ilyenkor a kitömörített -tarfájl hozzáférhetÅ‘, mint szabványos tar fájl. -.PP -Ha elkezdjük böngészni a merevlemezen található tar fájlokat, majd -elkezdjük nézni a többit, elveszne a rájuk vonatkozó információ. A -Midnight Commander a memória cache\-ben tárolja ezeket egy idÅ‘re, hogy -gyorsabb legyen az újraolvasásuk. Az alap frissítési idÅ‘ egy perc. -.PP -Az -.\"LINK2" -FTP fájlrendszer -.\"FTP File System" -az ftp szerverrÅ‘l beolvasott könyvtárszerkezetet éppígy a cache\-ben -tárolja. A cache frissítési ideje az -.I ftpfs cache elévülési idÅ‘ -opcióban konfigurálható. Alacsony érték esetén minden művelet nagyon -lassúvá válhat az FTP fájlrendszeren, mivel minden művelet az ftp szerver -lekérdezésével történik. -.PP -Ezenfelül definiálhatod a proxy host\-ot az ftp adatforgalomhoz, és -beállíthatod a Midnight Commander\-t, hogy mindíg használja a proxy -host\-ot. Az ezzel kapcsolatos információkat lásd az -.\"LINK2" -FTP fájlrendszernél\&. -.\"FTP File System" -.\"NODE " Save Setup" -.SH " Beállítások mentése" -A Midnight Commander indításkor megpróbálja az indítási információkat -beolvasni az -.I ~/.config/mc/ini -fájlból. Ha ez a fájl nem létezik, ezeket az információkat a -rendszerszintű konfigurációs fájlból fogja beolvasni, amelyek a -.I %pkgdatadir%/mc.ini -fájlban találhatóak meg. Ha ez a rendszerszintű konfigurációs fájl sem -létezik, a MC az alapértelmezett beállításokat használja. -.PP -A -.I Beállítások mentése -parancs elmenti a -.\"LINK2" -Bal és Jobb oldali menü -.\"Left and Right Menus" -és a -.\"LINK2" -Beállítások -.\"Options Menu" -menü beállításait az ~/.config/mc/ini fájlba. -.PP -Ha aktiválod az -.I Auto Beállításmentés -opciót a MC mindíg elmenti a beállításait kilépéskor. -.PP -Még vannak beállítások, amelyek nem állíthatóak be a menükbÅ‘l. Ezek -beállításához használd a kedvenc fájlszerkesztÅ‘det. Lásd a -.\"LINK2" -Speciális Beállítások -.\"Special Settings" -részt a további információkért. -.SH "" -.\"NODE "Executing operating system commands" -.SH "Az operációs rendszer parancsainak futtatása" -Közvetlenül futtathatod a parancsokat azok begépelésével a Midnight -Commander beviteli sorába, vagy a futtatandó program kiválaszátásval -valamely panelben a kiválasztó sáv segítségével, és az Enter -használatával. -.PP -Ha az Enter\-t az adott fájl felett lenyomod, nem indul el azonnal, hanem -a Midnight Commander leellenÅ‘rzi a kiválasztott fájl kiterjesztését a -.\"LINK2" -Társításokban -.\"Edit Extension File" -találhatónak megfelelÅ‘en. Ha talál egyezést, akkor a kódnak megfelelÅ‘ -bejegyzést futtatja. Egy nagyon egyszerű -.\"LINK2" -Macro HelyettesítÅ‘ -.\"Macro Substitution" -végzi ezt el a parancs futtatása elÅ‘tt. -.\"NODE " The cd internal command" -.SH " A cd belsÅ‘ parancs" -A -.I cd -parancs végrehajtását a Midnight Commander nem adja át a shellnek. Tehát -a shellben értelmezett makrók és helyettesítések helyett a saját -beállításai szerint dolgozik: -.PP -.I Tilde helyettesítés -A (~) karakter helyettesíti a home könyvtár nevét, ha hozzáfűzöl bármely -felhasználói nevet, akkor az MC a megadott felhasználó saját HOME -könyvtárára ugrik. -.PP -Például a ~guest a guest felhasználó könyvtárára mutat, amíg a ~/guest a -guest könyvtárra a te home könyvtáradban. -.PP -.I ElÅ‘zÅ‘ könyvtár -Vissza tudsz ugrani abba a könyvtárba, ahol elÅ‘zÅ‘leg voltál a '\-' -speciális könyvtárnévvel így: -.B cd \- -.PP -.I CDPATH könyvtárak -Ha a könyvtármeghatározás a -.B cd -parancs és nem a jelenlegi könyvtár, akkor a Midnight Commander a -.B CDPATH -környezeti változót keresi a könyvtárnevek között. -.PP -Például te beállítod a -.B CDPATH -változót az ~/src:/usr/src\-re, lehetÅ‘vé teszi számodra azt, hogy bármely -könyvtárról a fájlrendszeren belül a relatív név használatával bárhonnan -átléphess az ~/src\-be, vagy az /usr/src\-be bárhonnan (például a -.I cd linux -az /usr/src/linux könyvtárba léptet át). -.\"NODE " Macro Substitution" -.SH " Makro helyettesítÅ‘" -Amikor belépsz a -.\"LINK2" -felhasználói menübe\&, -.\"Edit Menu File" -vagy a -.\"LINK2" -társítások parancsot\&, -.\"Edit Extension File" -futtatod, illetve a parancsot a parancssorból futtatod, a Makró -HelyettesítÅ‘t használod. -.PP -A makrók: -.PP -.I "%i" -.IP -A space\-szel jelölt rész, amely azonos a kurzor oszlop pozíciójával. -Csak menü szerkesztéshez. -.PP -.I "%y" -.IP -A jelenlegi fájl szintaktikájának típusa. Csak menü szerkesztéshez. -.PP -.I "%k" -.IP -A blokk fájl neve. -.PP -.I "%e" -.IP -A hiba fájl neve. -.PP -.I "%m" -.IP -A jelenlegi menu neve. -.PP -.I "%f" -és -.I "%p" -.IP -A jelenlegi fájl neve. -.PP -.I "%n" -.IP -Csak a jelenlegi fájlnév kiterjesztés nélkül. -.PP -.I "%x" -.IP -A jelenlegi fájl kiterjesztése. -.PP -.I "%d" -.IP -A jelenlegi könyvtár neve. -.PP -.I "%F" -.IP -A jelenlegi fájl a nem kijelölt panelben. -.PP -.I "%D" -.IP -A könyvtár neve a nem kiválasztott panelben. -.PP -.I "%t" -.IP -A jelenleg kijelölt fájlok. -.PP -.I "%T" -.IP -A kijelölt fájlok a nem aktív panelben. -.PP -.I "%u" -és -.I "%U" -.IP -Azonos a %t és a %T makrókkal, de hozzáadáskor a fájlok nem kerülnek -kijelölésre. Ezt a makrót csak egyszer használhatod egy menü fájlon -belül, vagy fájl kiterjesztésben bekezdés esetén, mivel a következÅ‘ -alkalommal ezek nem lesznek kijelölt fájlok. -.PP -.I "%s" -és -.I "%S" -.IP -A kiválasztott, kijelölt fájlok, ha vannak ilyenek. Egyébként a jelenlegi -fájlok. -.PP -.I "%cd" -.IP -Ez a speciális makro, ami arra használható, hogy a jelenlegi könyvtárat -lecserélhessük az elÅ‘tte levÅ‘ könyvtárra. Ezt elsÅ‘sorban a -.\"LINK2" -Csatolt fájlrendszernél -.\"Virtual File System" -használhatjuk. -.PP -.I "%view" -.IP -Ez a makro használható a belsÅ‘ fájlnézÅ‘ meghívására. Ez a makro -használható egyedül, vagy kiegészítésekkel is. Ha ezen makro bármely -kiegészítését használod, akkor annak zárójelen belül kell lennie. A -kiegészítések a következÅ‘k: -.I ascii -a fájlnézÅ‘ ascii módú használatához; -.I hex -a hex mód használatához; a -.I nroff -mondja meg a fájlnézÅ‘nek az nroff a félkövér és az aláhúzás -szekvenciáját; az -.I unformated -mondja meg a fájlnézÅ‘nek azt, hogy az nroff paranccsal készített -vastagítása és aláhúzása nem használható. -.PP -.I "%%" -.IP -A % karakter -.PP -.I "%{valamilyen szöveg}" -.IP -Súgó a kiegészítéshez. Beviteli ablak jelenik meg, és a szöveg -magyarázatként jelenik meg. A makró a felhasználó által begépelendÅ‘ -szöveget helyettesíti. Ezt az ESC, vagy az F10 lenyomásával tudja törölni -a felhasználó. Ez a makró jelenleg még nem működik a parancssorban. -.\"NODE " The subshell support" -.SH " A subshell támogatás" -A subshell támogatás fordításkori opció, amely a shellek alkalmazásával -működik: bash, tcsh and zsh. -.PP -Amikor a subshell kódot aktiváljuk, a Midnight Commander létrehozza a -shell\-ed másolatát (azét, amelyik a -.B SHELL -változóban definiálva van, vagy ilyen nincs, akkor az /etc/passwd fájlban -találhatóét) és egy ál\-terminált fog futtatni, ahelyett, hogy minden -parancsfuttatáskor az új shellt aktiválná, a parancs a subshellt fogja -használni, ha megadtál ilyet. Ez lehetÅ‘vé teszi számodra azt is, hogy -megváltoztasd a környezeti változókat is, a shell funkciók használatával -és megadva az értéküket, amelyeket a Midnight Commander\-bÅ‘l való kilépésig -használni fog. -.PP -Ha -.BR bash \-t -használsz, a subshell indító parancsait megadhatod az ~/.local/share/mc/bashrc -fájlban, és tetszÅ‘leges billentyűzet térképet az ~/.local/share/mc/inputrc fájlban. A -.B tcsh -felhasználóknak az indítási parancsokat az ~/.local/share/mc/tcshrc fájlban van -lehetÅ‘ségük megadni. -.PP -Amikor a subshell kódot használod, bármikor megszakíthatod az -alkalmazásokat -.BR C\-o \-val, -és visszaugrasz a Midnight Commander\-be. Ha félbeszakítod az alkalmazást, -nincs lehetÅ‘séged más külsÅ‘ parancsot futtatni, amíg ki nem lépsz a -megszakított alkalmazásból. -.PP -A subshell által használt további eszköz a Midnight Commander által -megjelenített prompt, amely ugyanaz, mint amit a jelenleg használt shell -is használ. -.PP -Az OPTIONS részben további információkat olvashatsz arról, hogy hogyan -vezérelheted a subshell kódot. -.\"NODE "Chmod" -.SH "Chmod (hozzáférési jogosultság)" -A Chmod ablak a fájlok, könyvtárak attribútum bitjeinek beállítására -szolgál. A -.I C\-x c -billenytűkombinációval is indítható ez a funkció. -.PP -A Chmod ablak két részbÅ‘l áll \- -.I Jogosultság -és -.I Ãllomány -(Az Ãllomány szó itt fájlt, vagy könyvtárnevet jelent). -.PP -Az Ãllomány részben megjelenik a fájlok, illetve könyvtárak neve, és a -hozzáférési jogok nyolcas számrendszerbeli formátumban, úgyanúgy mint a -tulajdonos és a csoport neve. -.PP -A Jogosultság részben az Ãllomány attribútumbitjének megfelelÅ‘ sorban a -check gombot kell kijelölni. Változtatáskor a nyolcas számrendszerbeli -atribútumbitek megváltozott értékét az Ãllomány részben láthatod. -.PP -A widgetek közötti mozgáshoz (gombok, és check gombok) a -.IR "kurzor billentyűket" , -vagy a -.I Tab -gombot használhatod. A check gombok kijelöléséhez, vagy a gombok -kijelöléséhez használd a -.I Space -gombot. Ezeken kívül még használhatsz gyorsbillentyűket is, a gombok -gyorsabb kiválasztásához (a megjelölt betük a gombokon). -.PP -Az attribútum bitek beállítására használd az Enter gombot. -.PP -Amikor könyvtárak, vagy fájlok csoportjával dolgozol, csak rá kell -kattintanod a megfelelÅ‘ bitre annak kijelöléséhez, vagy a kijelölés -törléséhez. Amikor kiválasztottad azokat a biteket, amiket meg akarsz -változtatni, válasz ki egy gombot a művelet gombok közül (Bekapcsol, -vagy Töröl). -.PP -Végül, az itt megadott beállításoknak megfelelÅ‘en állítsuk be -az attribútumokat a -.B [Mind] -gombbal, ami az összes kijelölt fájlon végrehajtja a beállítást. -.PP -A -.B [Beállít] -csak a kijelölt attribútumokat állítja be a fájlokhoz. -.PP -A -.B [Bekapcsol] -a megjelölt biteket állítja be az összes fájlhoz. -.PP -A -.B [Töröl] -a megjelölt attribútum biteket törli a kiválasztott fájloknál. -.PP -Az -.B [Ok] -egyetlen fájlhoz állítja be az attributumot. -.PP -A -.B [Mégsem] -kilép Chmod parancs módból. -.\"NODE "Chown" -.SH "Chown (Tulajdonos változtatása)" -A Chown parancs a fájl tulajdonos, vagy csoport azonosítójának -beállítására szolgál. A parancs gyorsbillentyűje a C\-x o. -.\"NODE "Chown\-advanced" -.SH "Haladó (bÅ‘vített) Chown" -A Haladó Chown parancs a -.\"LINK2" -Chmod -.\"Chmod" -és a -.\"LINK2" -Chown -.\"Chown" -parancsok kombinációja egyetlen ablakban. Egyszerre tudod megváltoztatni -a fájlok jogosultságait, és tulajdonos, vagy csoport azonosítóját. -.\"NODE "File Operations" -.SH "Fájl műveletek" -Amikor fájlokat másolsz, mozgatsz, vagy törölsz, a Midnight Commander a -Fájl műveletek dialógus ablakot jeleníti meg. Majd megjeleníti az -elkezdett művelet fájljait, ahol jobbára három folyamatsávot jelenít -meg. A fájl sáv azt mutatja meg, hogy a kijelölt fájlok közül a jelenleg -másolt fájlnak mekkora részén hajtotta végre a művelet. A Darab sáv azt -mutatja meg, hogy a kijelölt fájlok közül hányat dolgozott fel eddig. A -bájt sáv azt mutatja meg, hogy a kijelölt fájlok teljes méretének -mekkora része került már átmásolásra. Ha a Részletes műveletinfó ki van -kapcsolva, a fájl és a bájtok sáv nem jelenik meg. Két gomb található a -dialógus ablak alján. A KövetkezÅ‘ gomb lenyomásával át tudod lépni a -jelenlegi fájlt. A Megszakít gomb megszakítja a műveletet, a fájlok -visszamaradó részével nem történik semmi. -.PP -Van három másik dialógus ablak is, amelyekkel a fájl műveleteknél -találkozhatsz. -.PP -A hiba dialógus ablak a hiba körülményeiröl értesít bennünket, és három -választási lehetÅ‘séget tartalmaz. Normálisan a KövetkezÅ‘ gomb, amellyel -átlépheted a jelenlegi fájlt, vagy a Megszakít gomb, amellyel -megszakíthatod a további műveleteket, között választhatsz. Választhatod -még az Újra gombot is, ha egy másik virtuális terminálról ki tudtad -javítani a hibát. -.PP -"A fájl már létezik" dialógus ablak jelenik meg, ha megpróbálod -másolással, vagy áthelyezéssel felülírni a már létezÅ‘ fájlt. A dialógus -ablak megmutatja mindkét fájl méretét és dátumát. Az Igen gombbal -felüliratod a fájlt, a Nem gombbal átléped a fájlt, a Mind gombbal -felüliratod az összes fájlt, a Nem gombbal átléped az összes hasonló -fájlt és a Frissít gombbal felüliratod a fájlt, ha a célfájl nem azonos -dátumú a forrás fájllal. A Megszakít gomb lenyomásával bárhol -megszakíthatod a műveletet. -.PP -A rekurzív törlés dialógus ablak jelenik meg akkor, amikor egy olyan -könyvtárat akarsz törölni, amely nem üres. Az Igen gomb lenyomásakor -rekurzívan törli a könyvtárat, a Nem lenyomásakor átlépi a könyvtárat, a -Mind gomb lenyomásakor törli az összes könyvtárat, és a nem gomb átlépi -az összes olyan könyvtárat, amely nem üres. A Megszakít gomb -lenoymásával bárhol megállíthatod a folyamatot. Ha az Igen, vagy a Mind -gombot választod egy MegerÅ‘sítés. Az "Igen"\-t csak akkor válaszd, ha -teljesen biztos vagy abban, hogy rekurzívan akarsz törölni. -.PP -Ha vannak kijelölt fájlok, azok kijelöltsége a művelet sikeres -végrehajtása után megszűnik. A művelet megszakításkor a kihagyott fájlok -kijelöltek maradnak. -.\"NODE "Mask Copy/Rename" -.SH "Kijelölt fájlok másolása vagy áthelyezése" -A másolás, vagy mozgatás művelet a fájlok átnevezésének legegyszerűbb -módja. Ennek elvégzéséhez meg kell határoznod a megfelelÅ‘ forrás -maszkot, és általában a cél részben a rendeltetés szerinti maszknak -megfelelÅ‘en. Minden forrás maszkkal azonos fájl átmásolásra vagy -átnevezésre kerül a cél maszknak megfelelÅ‘en. Ha vannak kijelölt fájlok, -csak a kijelölt fájlokra vonatkozik a átnevezett forrás maszk. -.PP -Ezen kívül vannak egyéb opciók is, amiket még beállíthatsz: -.PP -A link követés megadja vajon symlink, vagy hardlink készült\-e a forrás -könyvtárban (rekurzívan belsÅ‘ könyvtáraknál), és új linket kell\-e -csinálni a cél könyvtárba, vagy csak át kell másolnod a bejegyzést. -.PP -"LétezÅ‘ könyvtárba belép" megmondja azt, hogy történjék, ha azonos nevű -célkönyvtár létezik, mint amelyet elkezdtünk másolni. Az alapértelmezett -művelet ilyenkor az, hogy ebbe a könyvtárba történÅ‘ átmásoláskor, -lehetÅ‘vé teszi számodra azt, hogy a forrás könyvtárat átmásold. Talán -egy példa segíteni fog: -.PP -Neked a foo könyvtár tartalmát át kell másolnod a /bla/foo könyvtárba, -amely már létezik. Normálisan (amikor az Ugrás (Dive) nincs beállítva), -az mc be fogja másolni ezt a /bla/foo könyvtárba. Az opció -engedélyezésekor a bejegyzéseket a /bla/foo/foo könyvtárba fogod -másolni, mivel a könyvtár már létezik. -.PP -Az "Attributumok megÅ‘rzése" megmondja azt, vajon az eredeti fájlok -jogosultságait, idÅ‘adatait, és (ha root vagy) az eredeti fájlok UID és -GID értéekit. Ha ez az opció nincs beállítva, az umask jelenlegi értékét -fogja használni a funkció. -.PP -.B "Shell kifejezések be" -.PP -Amikor a "Shell mintát használ" kifejezések opció be van kapcsolva, a -forrás maszkhoz használhatsz használhatod a '*' és a '?' maszkokat. Ezek -használhatóak a shellben is. A cél maszkhoz csak '*' és '\\' maszk -használható. A célmaszk elsÅ‘ '*' maszkja megfelel a forrás maszk elsÅ‘ -maszk csoportjának, a második '*' megfelel a második csoportnak, és így -tovább. A '\\1' maszk megfelel a forrás maszk elsÅ‘ maszk csoportjának, a -\&'\\2' maszk megfelel a második csoportnak, és ez így megy '\\9'\-ig. A -\&'\\0' maszk jelentése: a forrás fájl teljes neve. -.PP -Két példa: -.PP -Ha a forrás maszk, "*.tar.gz" a rendeltetésé a "/bla/*.tgz", a másolandó -fájl a "foo.tar.gz", \- a másolat a "/bla" könyvtárban található -"foo.tgz" lesz. -.PP -Tételezzük fel azt, hogy fel akarod cserélni a fájlnevet a -kiterjesztéssel, például a "file.c"\-t a "c.file"\-lal, és a többit. Ennek -a forrásmaszkja a "*.*" lesz, a rendeltetésé pedig a "\\2.\\1". -.PP -.B "Shell kifejezések ki" -.PP -Amikor a shell kifejezések opció ki van kapcsolva az MC a továbbiakban -nem csoportosít automatikusan. Az '\\(...\\)' kiegészítést kell -használnod a forrásmaszkban, a célmaszk specifikációnak meagadásához. Ez -jóval gördülékenyebb módszernel tűnik, de több gépelést igényel. -Egyébként a cél maszk használata egyszerűbb, ha a Shell kifejezések -opció be van kapcsolva. -.PP -.B Kisbetű\-nagybetű csere" -.PP -Magváltoztathatod a fájlnév betűnagyságát. Ha a '\\u'\-t, vagy a '\\l'\-t -használod a cél maszkban, a következÅ‘ karaktert naggyá, vagy kicsivé -konvertálja. -.PP -Ha a '\\U'\-t, vagy '\\L'\-t használod a cél maszkban a következÅ‘ -karakterek naggyá, illetve kicsivé fognak változni egészen addig, amíg -\&'\\E', vagy '\\U', '\\L', vagy a fájlnév vége következik. -.PP -Az '\\u' és '\\l' erÅ‘sebb az '\\U'\-nál és az '\\L'\-nél. -.PP -Például, ha a forrás maszk '*' (Shell kifejezés be van kapcsolva), vagy -\&'^\\(.*\\)$' (Shell kifejezés ki van kapcsolva) és a célmaszk '\\L\\u*' -a fájl nevek eleje nagybetűsre konvertálódik, a többi betű pedig -kicsire. -.PP -Ezeken kívül még használhatod a '\\' karaktert, mint hivatkozó -karaktert. Például a '\\\\'\-t a backslash\-hez és a '\\*'\-et a -csillaghoz. -.\"NODE "Internal File Viewer" -.SH "BelsÅ‘ fájlnézÅ‘" -A BelsÅ‘ fájlnézÅ‘ két megjelenítési módra képes: ASCII és hex. A két mód -közötti váltásra használd az F4\-es billentyűt. Ha a GNU gzip programot -telepítetted, szükség esetén ezzel automatikusan kitömöríti a fájlokat. -.PP -A fájlnézÅ‘ megpróbálja megállapítani a legjobb módot az információk -megjelenítéséhez a rendszerednek, vagy a fájl típusának megfelelÅ‘en. A -BelsÅ‘ fájlnézÅ‘ használ néhány szövegrészletet a vastag, és az aláhúzott -szövegattribútumok megjelenítésére azért, hogy a fájl megjelenítése -szebb legyen. -.PP -Amikor hex módban vagy, a keresés funkcióban lehetÅ‘vé teszi -hexadecimális értékek használatát. -.PP -Használhatsz kevert hivatkozást is ezen értékeknek megfelelÅ‘en: "Szöveg" -0xFE 0xBB "további szöveg". A szöveg értékek közötti részt és a -hivatkozás szövegét nem veszi figyelembe. -.PP -Ez a lista tartalmazza azokat a gombokat, amelyekhez művelet kapcsolódik -a Midnight Commander belsÅ‘ fájlnézÅ‘jében. -.PP -.B F1 -Elindítja a beépített hypertext súgót. -.PP -.B F2 -Ãtvált sortörés módba. -.PP -.B F4 -Ãtvált hex módba. -.PP -.B F5 -Sorra lép. Egy promptot jelenít meg a sor számának megadására, és -magjeleníti azt. -.PP -.B F6, /. -Szabványos kifejezés keresése. -.PP -.B ?, -Szabványosos kifejezés keresése visszafelé. -.PP -.B F7 -Normál keresés / hex módú keresés. -.PP -.B C\-s -Normál keresést indít el, ha nem volt megelÅ‘zÅ‘ kifejezés keresés, -egyébként a következÅ‘ elÅ‘fordulást keresi meg. -.PP -.B C\-r. -Keresés visszafelé, ha nem volt megelÅ‘zÅ‘ kifejezés keresés, egyébként a -következÅ‘ elÅ‘fordulást keresi meg. -.PP -.B n. -A következÅ‘ egyezÅ‘t keresi. -.PP -.B F8 -Vált a Nyers és Feldolgozott mód között: ez a fájlt, úgy mutatja meg, -ahogy megtalálta, vagy, ha folyamatszűrÅ‘ meg van adva az mc.ext.ini fájlban, -akkor a szűrÅ‘ kimenetét. A Jelenlegi mód mindig a másik, mit amit a gomb -felirata mutat. -.PP -.B F9 -Vált a formázott\-nem formázott mód között: amikor a formázott mód be van -kapcsolva, néhány szöveg elemet, a vastagítást és az aláhúzást eltérÅ‘ -színnel jelenít meg. A menüsorban mindíg a másik felirat látható, -jelezve, hogy milyen módba lehet átkapcsolni. -.PP -.B F10, Esc. -Kilép a BelsÅ‘ fájlnézÅ‘bÅ‘l. -.PP -.B next\-page, space, C\-v. -Egy lapot lapoz elÅ‘re. -.PP -.B prev\-page, M\-v, C\-b, backspace. -Egy lapot lapoz vissza. -.PP -.B down\-gomb -Egy sort gördít elöre. -.PP -.B up\-gomb -Egy sort gördít vissza. -.PP -.B C\-l -Frissíti képernyÅ‘t. -.PP -.B "[n] m" -Beállítja az n kijelölést. -.PP -.B "[n] r" -Az n kijelölésre ugrik. -.PP -.B C\-f -A következÅ‘ fájlra ugrik. -.PP -.B C\-b -Az elözÅ‘ fájlra ugrik. -.PP -.B M\-r -Ki\- és bekapcsolja a vonalzót. -.PP -Ez a rész a fájl fájlnézÅ‘vel történÅ‘ megjelenítésének leírását -tartalmazta, lásd még a -.\"LINK2" -Társítások -.\"Edit Extension File" -részt. -.\"NODE "Internal File Editor" -.SH "BelsÅ‘ fájlszerkesztÅ‘" -A BelsÅ‘ fájlszerkesztÅ‘ egy rengeteg eszközzel ellátott, de egyszerű -teljes képernyÅ‘s szerkesztÅ‘. Az -.B F4 -gomb segítségével lehet elindítani az inicializáló fájl -.I use_internal_edit -opciójának megfelelÅ‘ beállításokkal. A kezelt fájlnál 16 MByte\-os -mérethatárral rendelkezik, és hibátlanul lekezeli a bináris fájlokat is. -.PP -Az eszközök, amielyek használhatók: Blokk másolás, mozgatás, törlés, -kivágás, beillesztés; -.I "billentyű a billentyű visszavonására"; -legördülÅ‘ menük; fájl beillesztés; makró készítés; szabványos kifejezés -keresés és csere; shift\-kurzor MSW\-MAC szöveg kijelölés (csak linux konzolon); -beillesztés\-felülírás beállítás váltása; és a pipe szöveg blokkokkal a -shell parancsok közvetlen elérése. -.PP -A szerkesztÅ‘ használata nagyon egyszerű és nem igényel magyarázatot. -Annak megtekintéséhez, hogy melyik gomb mit csinál, a megfelelÅ‘ -legördülÅ‘ menü megtekintése szükséges. Egyéb gombok: Shift és nyíl -billentyűk a szöveg kijelöléséhez. A -.B Ctrl\-Ins -kimásolja a szöveget a -.BR mcedit.clip \-be -és a -.B Shift\-Ins -beilleszti azt a mcedit.clip\-bÅ‘l. A -.B Shift\-Del -kivágja a szöveget a -.BR mcedit.clip \-be, -és a -.B Ctrl\-Del -törli a kijelölt szöveget. A lezáró billentyűként szintén használható a -Return az automatikus bekezdéssel. Az egér kijelölés is működik, -kijelölhetsz egérrel a shift gomb lenyomásával, amíg a normál terminál -egeret csak a szöveg megjelölésére használhatod. -.PP -Macró megadásához nyomd le a -.BR Ctrl\-R \-t -és ekkor add meg a vezérlÅ‘ gombokat a futtatandó folyamat megadásához. -Nyomd le a -.BR Ctrl\-R \-t -újra, ha ezt be akarod fejezni. Ekkor a makróhoz bármilyen billentyűt -hozzárendelhetsz az adott gomb lenyomásával. A makró lefut a -.B Ctrl\-A -és a megadott gomb lenyomásakor. A makró lefuttatható még akkor is, ha -lenyomod a Váltó (Alt), Ctrl, vagy az Esc\-et és a megadott gombot, -feltételezve azt, hogy a gombot nem használja más funkció. Miután -megadtad, a makro parancs a home könyvtárad -.B ~/.local/share/mc/mcedit/mcedit.macros -fájljába kerül. A makrót a fájl megfelelÅ‘ sorának törlésével végezheted -el. -.PP -Az -.B F19 -formázza a szöveget -.RB ( C ", " C++ , -vagy más kódra) amikor ez a rész -.BR kijelölt . -Ennek használatához elöször egy futtatható fájlt kell készítened -.B ~/.local/share/mc/mcedit/edit.indent.rc -néven. Szerkeszd ezt szkriptet, ha szükséges. -.PP -A szerkesztÅ‘ megjeleníti még a nem\-amerikai karaktereket is (160 -fölött). Amikor bináris fájlokat szerkesztesz, a Beállításoknál -beállíthatod a -.B KépernyÅ‘biteket -7 bitre a térközök tisztasága miatt. -.\"NODE "Completion" -.SH "Kiegészítés" -A Midnight Commander begépeli neked a kívánt szöveget. -.PP -Megkísérli kiegészíteni a szöveget a jelenlegi pozíciótól. Az MC -kiegészíti a szöveget (ha a szöveg -.BR $ \-ral -kezdÅ‘dik), felhasználónevet (ha a szöveg -.BR ~ \-vel -kezdÅ‘dik), hostnevet (ha a szöveg -.BR @ \-lel -kezdÅ‘dik), vagy parancsot (ha a parancssor azon részén állsz, ahova -a parancsot kell begépelni, megjeleníti a kiegészítést, ha a shell -tartalmazza a szót, és az a shell beépített parancsa). Ha ezek közül -egyik sem egyezik, akkor fájlnév kiegészítéssel próbálkozik. -.PP -A fájlnév, felhasználónév, változó és hostnév kiegészítése működik az -összes beviteli sorban, a parancskiegészítés csak a parancssorban. Ha -a kiegészítés kétértelmű (több érték megjelenítése lehetséges), a MC -hangjelzést ad és a -.\"LINK2" -Beállítások -.\"Configuration" -dialogbox -.I kiegészítés: összes -opciójának megfelelÅ‘en hajtja végre a további műveleteket. Ha ez az -opció be van állítva, az összes megjeleníthetÅ‘ elem egy listában jelenik -meg a jelenlegi pozíciótól kezdÅ‘dÅ‘en, a fel\-le nyilak segítségével, és -az -.BR Enter \-rel -tudod kiegészíteni a bejegyzésed. Ezen kívűl, még begépelhetsz az elsÅ‘ -helyre akkor, amikor a listában megjelenített összes kiegészítés eltér -az általad kívánttól. Ha újra lenyomod a -.BR M\-Tab \-ot, -egy listarészlet jelenik meg a listában, egyébként pedig csak az elsÅ‘ -egyezÅ‘ elem, amely az összes kijelölt karakterrel egyezik. Hamarosan a -kétértelműség meg fog szűnni, a dialógus ablak eltűnik, amit az -.B Esc -.B F10 -és a bal, illetve a jobb nyíl billentyűkkel is megtehetsz. Ha a -.\"LINK2" -kiegészítés: összes -.\"Configuration" -nincs beállítva, a dialógus ablak csak a -.B M\-Tab -második lenyomására jelenik meg, az elsÅ‘ lenyomáskor, az MC csak -hangjelzést ad. -.\"NODE "Virtual File System" -.SH "Csatolt (látszólagos) fájlrendszer" -A Midnight Commander kód rétegekkel biztosítja azt, hozzáférj a -fájlrednszerhez; Ez a kód réteg arra képes, hogy átváltson csatolt -fájlrendszerre. A csatolt fájlrendszerre történÅ‘ átváltás lehetÅ‘vé teszi -a Midnight Commander számára azt, hogy a fájl műveleteket végezzen akkor -is, ha a fájlok nincsenek a UNIX fájlrendszeren. -.PP -Jelenleg a Midnight Commander a következÅ‘ Csatolt Fájlrendszerekkel -rendelkezik (VFS): a helyi fájlrendszert a szokásos Unix fájlrendszeren -lévÅ‘ fájlokhoz használja; az ftpfs\-t, az FTP protokollal rendelkezÅ‘ -távoli gépek fájlainak módosítására használja; a tarfs\-t a tar -és tömörített tar fájlok módosítására használja; az undelfs\-t, a -törölt fájlok visszaállítására használja az ext2\-es fájlrendszeren -(az alapértelmezett fájlrendszer Linux rendszereken), a fish (a fájlok -shellen keresztüli módosításához, mint pl. rsh és ssh) és végül az mcfs -(a Midnight Commander fájlrendszere), amely hálózat alapú fájlrendszer. -.PP -A VFS kódváltója minden elérési útvonal leírást értelmez és -követi azt a megfelelÅ‘ fájlrendszerrel, azt, hogy melyik -rendszeren melyik használatos, azt a késÅ‘bbiekben a -megfelelÅ‘ résznél találhatod meg. -.\"NODE " FTP File System" -.SH " FTP fájlrendszer" -Az ftpfs lehetÅ‘vé teszi számodra azt, hogy távoli gépeken -használjunk fájlokat, ennek használatához, próbáld ki a -panel FTP kapcsolat... parancsát (elérhetÅ‘ a menübÅ‘l), vagy -közvetlenül átválthatsz a jelenlegi könyvtárból a cd -parancs használatával, valahogy így: -.PP -.I ftp://[!][felhasználó[:jelszó]@]machine[:port]/[távoli\-könyvtár] -.PP -A -.I felhasználó, port -és a -.I távoli\-könyvtár -elemek opcionálisak. Ha megadod a -.I felhasználó -elemet, akkor a Midnight Commander a távoli gépre megpróbál ezzel a -felhasználónévvel belépni, egyébként a te bejelentkezÅ‘ nevedet fogja -használni. Opcionális a -.I jelszó -elem, ha meg van adva akkor ezt a jelszót fogja használni a -bejelentkezéshez. Ajánlott ennek használata (soha ne tartsd ezeket a -gyorslistádban, kivéve ha beállítod a megfelelÅ‘ jogosultságokat, és még -ekkor sem lesz minden esetben tökéletesen biztonságos megoldás). -.PP -Példák: -.PP -.nf - ftp://ftp.nuclecu.unam.mx/linux/local - ftp://tsx\-11.mit.edu/pub/linux/packages - ftp://!behind.firewall.edu/pub - ftp://guest@remote\-host.com:40/pub - ftp://miguel:xxx@server/pub -.fi -.PP -Tűzfalon keresztüli kapcsolat létrehozásához, az ftp://! kiegészítés -használatára van szükséged (pl., felkiáltójel a dupla perjel után) -ahhoz, hogy a Midnight Commander használni tudja a proxy host\-ot az ftp -átvitelhez. A -.\"LINK2" -Csatolt fájlrendszer... -.\"Virtual FS" -dialógus ablakban tudod beállítani a proxy host tulajdonságait. -.PP -A -.\"LINK2" -Csatolt fájlrendszer... -.\"Virtual FS" -dialógus ablak másik beállítandó opciója az -.I ftp proxy\-n keresztül -opció. Ez beállítja a program számára azt, hogy mindig használja a proxy -host\-ot. Ha ez a változó be van állítva, akkor a program két dolgot -csinál: konzultál a %sysconfdir%/mc/mc.no_proxy fájl soraival, hogy azok -tartalmazzák\-e a host nevet, mint helyi eszközt (ha a host neve ponttal -kezdÅ‘dik, akkor ezt domainként tartja számon), és feltételezi azt, hogy -a pont nélküli hostnevek közvetlenül felodhatók. -.PP -Ha ftpfs kódot használsz csomagszűrÅ‘ router esetén, akkor nincs -lehetÅ‘séged a fájlok megszokott módon történÅ‘ megnyitására, ezért neked -kell a program számára megadnod azt, hogy a fájlokat passzív módon -nyissa meg. Ennek használatához állítsd be az -ftpfs_use_passive_connections opciót az indító fájlban. -.PP -A Midnight Commander a könyvtárlistát a cache\-ben tárolja. A -cache frissítésének ideje a -.\"LINK2" -Csatolt fájlrendszer... -.\"Virtual FS" -dialógus ablakban végezhetÅ‘ el. Ez komikus helyzetet idézhet elÅ‘ akkor, -amikor változtatást hajtasz végre a könyvtárban, és az nem jelenik meg -addíg, amíg a cache\-t nem iratod újra a C\-r gombbal. Ez sajátos -jellegzetesség (amikor tapasztalod ezt a hibát, gondolj arra, hogy az -ftpfs\-el megváltoztatott fájlok esetleg az Atlanti\-óceán másik oldalán -vannak). -.\"NODE " Tar File System" -.SH " Tar fájlrendszer" -A Tar fájlrendszer gondoskodik arról, hogy csak olvasható módon a chdir -parancs használatával hozzáférhess a tar fájlaidhoz és tömörített tar -fájljaidhoz. A könyvtár tar fájlra történÅ‘ átváltásához a tar fájlodat a -következÅ‘ szintaktikájú parancs segítségével tudod átváltani könyvtárrá: -.PP -.I /filename.tar:utar/[dir\-inside\-tar] -.PP -Az mc.ext.ini fájl már tartalmaz gyorsbillentyűket a tar fájlokhoz, ezért -csak rá kell mutatnod a tar fájlra és le kell nyomnod az entert ahhoz, -hogy beléphess a tar fájlba, ehhez nézd meg a -.\"LINK2" -Társítások -.\"Edit Extension File" -részt, hogy megismerhesd az ezzel kapcsolatos információkat: -.PP -Példák: -.PP -.nf - mc\-3.0.tar.gz/utar://mc\-3.0/vfs - /ftp/GCC/gcc\-2.7.0.tar/utar:// -.fi -.PP -Az utóbbi meghatározás a tar arhívum teljes elérési útját tartalmazza. -.\"NODE " FIle transfer over SHell filesystem" -.SH " Fájl áthelyezése a Shell fájlrendszeren túlra" -A fish fájlrendszer hálózat alapú fájlrendszer, amely lehetÅ‘vé teszi -műveletek végrehajtását a távoli gépeken, mintha azok a saját gépeden -lennének. Ennek használatához a másik oldali gépnek futtatnia kell a -fish szervert, vagy bash kompatibilis shellel kell rendelkeznie. -.PP -A távoli géphez történÅ‘ kapcsolódáshoz csak könyvtárat kell váltanod a -következÅ‘ formátumnak megfelelÅ‘ könyvtárba: -.PP -.nf -sh://[felhasználó@]machine[:opciók];/[távoli\-könyvtár]; -.fi -.PP -A -.IR felhasználó , -.I opciók -és a -.I távoli\-könyvtár -elemek opcionálisak. Ha megadod a -.I felhasználó -elemet, akkor a Midnight Commander megpróbál belépni a távoli gépre -ezzel a felhasználó névvel, egyébként pedig a te belépÅ‘ nevedet -használja. -.PP -A 'C' -.I opció -a tömörítéshez használatos; a 'rsh' az rsh használatához az ssh helyett. -Ha a -.I távoli\-könyvtár -elemet beírtad, a távoli gépnek ezt a könyvtárát állítod be. -.PP -Példák: -.PP -.nf - sh://onlyrsh.mx:r/linux/local - sh://joe@want.compression.edu:C/private - sh://joe@noncompressed.ssh.edu/private -.fi -.\"NODE " Undelete File System" -.SH " Törlés visszaállítása" -(csak ext2; second extended filesystem) -.PP -Linux rendszereken, ha azt válaszolod a konfiguráláskor, hogy használni -akarod az ext2fs törlés visszavonás lehetÅ‘ségét, akkor lehetÅ‘séged lesz -a törlés művelet visszavonására. A Törlés visszaállítása funkció csak -ext2 fájlrendszeren végezhetÅ‘ el. A Törlés visszaállítása csak -csatlakozó eszköz az ext2fs library\-hoz: helyrehozza az összes törölt -fájlnevet az ext2fs\-en, megjeleníti Å‘ket és a kiválasztott fájlokat a -kiteszi a megadott partícióra. -.PP -Ezen fájlrendszer használatához abba a speciális fájlrendszerbe kell -belépned, amely "undel://" meghatározással kezdÅ‘dik, és annak az aktuális -fájlrendszernek a nevét tartalmazza, ahol a visszaállítani kívánt file -található. -.PP -Például, ha a törölt fájlokat az elsÅ‘ scsi lemez második partícióján -szeretnénk visszaállítani, akkor a következÅ‘ elérési utat kell -megadnunk: -.PP -.nf - undel://sda2 -.fi -.PP -Persze várakozni kell, amíg az undelfs a szükséges információkat -beolvassa, a fájl böngészés megkezdése elÅ‘tt. -.\"NODE " EXTernal File System" -.SH " EXTernal File System" -.B extfs -allows to integrate numerous features and file types into GNU Midnight -Commander in an easy way, by writing scripts. -.PP -Extfs filesystems can be divided into two categories: -.PP -1. Stand\-alone filesystems, which are not associated with any existing -file. They represent certain system\-wide data as a directory tree. -You can invoke them by typing -.RI ' "cd fsname://" ' -where fsname is an extfs short name (see below). Examples of such -filesystems include audio (list audio tracks on the CD) or apt (list of -all Debian packages in the system). -.PP -For example, to list CD\-Audio tracks on your CD\-ROM drive, type -.PP -.nf - cd audio:// -.fi -.PP -2. 'Archive' filesystems (like rpm, patchfs and more), which represent -contents of a file as a directory tree. It can consist of 'real' files -compressed in an archive (urar, rpm) or virtual files, like messages -in a mailbox (mailfs) or parts of a patch (patchfs). To access such -filesystems -.RI ' fsname:// ' -should be appended to the archive name. Note that the archive itself -can be on another vfs. -.PP -For example, to list contents of a zip archive documents.zip type -.PP -.nf - cd documents.zip/uzip:// -.fi -.PP -In many aspects, you could treat extfs like any other directory. For -instance, you can add it to the hotlist or change to it from directory -history. An important limitation is that you cannot invoke shell -commands inside extfs, just like any other non\-local VFS. -.PP -Common extfs scripts included with Midnight Commander are: -.TP -.B a -access 'A:' DOS/Windows diskette -.RI ( "cd a://" ). -.TP -.B apt -front end to Debian's APT package management system -.RI ( "cd apt://" ). -.TP -.B audio -audio CD ripping and playing -.RI ( "cd audio://" -or -.IR "cd device/audio://" ). -.TP -.B bpp -package of Bad Penguin GNU/Linux distribution -.RI ( "cd file.bpp/bpp://" ). -.TP -.B deb -package of Debian GNU/Linux distribution -.RI ( "cd file.deb/deb://" ). -.TP -.B dpkg -Debian GNU/Linux installed packages -.RI ( "cd deb://" ). -.TP -.B hp48 -view and copy files to/from a HP48 calculator -.RI ( "cd hp48://" ). -.TP -.B lslR -browsing of lslR listings as found on many FTPs -.RI ( "cd filename/lslR://" ). -.TP -.B mailfs -mbox\-style mailbox files support -.RI ( "cd mailbox/mailfs://" ). -.TP -.B patchfs -extfs to handle unified and context diffs -.RI ( "cd filename/patchfs://" ). -.TP -.B rpm -RPM package -.RI ( "cd filename/rpm://" ). -.TP -.B rpms -RPM database management -.RI ( "cd rpms://" ). -.TP -.B ulha, urar, uzip, uzoo, uar, uha -archivers -.RI ( "cd archive/xxxx://" -where xxxx is one of: -.IR ulha , -.IR urar , -.IR uzip , -.IR uzoo , -.IR uar , -.IR uha ). -.PP -You could bind file type/extension to specified extfs as described in the -.\"LINK2" -Edit Extension File -.\"Edit Extension File" -section. Here is an example entry for Debian packages: -.PP -.nf - regex/\.deb$ - Open=%cd %p/deb:// -.fi -.\"NODE "Colors" -.SH "Színek" -A Midnight Commander megpróbálja megállapítani azt, hogy a terminál -amelyet használsz, támogatja\-e a színhasználatot a terminál adatbázis és -a terminál név segítségével. Néha ez összezavarodhat, ezért -elÅ‘fordulhat, hogy neked kell megmondanod azt, hogy színes, vagy -színtelen módot használjon a \-c illetve a \-b kiegészítéssel. -.PP -Ha a programot a S\-Lang képernyÅ‘ kezelÅ‘vel fordították az ncurses -helyett, szintén le fogja ellenÅ‘rizni a -.B COLORTERM -változó értékét, ha be van állítva, ez olyan hatású, mintha a \-c flaggal -indítottál volna. -.PP -Magadhatod azt a terminálnak, hogy mindíg a színes módot használja a -Colors részben -.I color_terminals -változónál az indító fájlban. Ãgy a terminál színtámogatásának vizsgálatát -a Midnight Commander nem végzi el. Például: -.PP -.nf -[Colors] -color_terminals=linux,xterm -color_terminals=terminal\-name1,terminal\-name2... -.fi -.PP -A program mindkét opcióval fordítható (ncurses és S\-Lang). Az ncurses nem -jelent feltétlenül színes üzemmódot; csak a terminál adatbázist használja. -.PP -A Midnight Commander lehetÅ‘séget nyújt az alapértelmezett színek -beállítására. Jelenleg a színek a -.B MC_COLOR_TABLE -környezeti változóban, vagy a Colors részben definiálhatók az indító -fájlban. -.PP -Az alapértelmezett színtérképet a Colors rész a -.I base_color -változójából olvassa ki. Megadhatsz ettÅ‘l eltérÅ‘ színtérképet is, a -terminál nevének kulcsszóként való használatával. Példa: -.PP -.nf -[Colors] -base_color= -xterm=menu=magenta:marked=,magenta:markselect=,red -.fi -.PP -A színmeghatározás formátuma: -.PP -.nf - =,:= ... -.fi -.PP -A színek opcionálisak, a kulcsszavak a következÅ‘k: normal, selected, -marked, markselect, errors, input, reverse, gauge; A menü színek: menunormal, -menusel, menuhot, menuhotsel, menuinactive; A dialog színek: dnormal, dfocus, -dhotnormal, dhotfocus; Súgó színek: helpnormal, helpitalic, helpbold, -helplink, helpslink; FájlnézÅ‘ színek: viewunderline; Speciális kijelölés -színei: executable, directory, link, stalelink, device, special, core; -Viewer colors are: viewnormal, viewbold, viewunderline, viewselected. -SzerkesztÅ‘ színei: editnormal, editbold, editmarked, editnonprintable. -.PP -.I input -maghatározza a beviteli sorok színét a dialogus ablakora vonatkozóan. -.PP -.I gauge -meghatározza a folyamat\-mutató sáv (gauge) kitöltött részének, amely pl. -azt mutatja, hogy a fájl másolásakor annak hány százaléka másolásolódott -már át a grafikus megjelenítésben. -.PP -A dialógus ablakok a következÅ‘ színeket használják: -.I dnormal -a normál szöveghez, -.I dfocus -a jelenleg kiválasztott szövegelemekhez, -.I dhotnormal -a gyorsbillentyűk színei, amelyek eltérnek a normál szöveg színétÅ‘l, -aholis a -.I dhotfocus -színt használjuk a jelenleg kiválasztott komponensekhez. -.PP -A menük azonos sémát használnak a menunormal, menusel, menuhot, menuhotsel és a -menuinactive részeknél. -.PP -A súgó a következÅ‘ színeket használja: -.I helpnormal -a normál szöveghez, -.I helpitalic -ahhoz a szöveghez, amelyet dÅ‘lt betűvel szeretnénk nyomatékosítani -akarunk a manualban, -.I helpbold -ahhoz a szöveghez, amelyet félkövérrel szeretnénk nyomatékosítani a man -oldalon, -.IR helplink \-et -a nem kiválaszott hyperlinkekhez használjuk és a -.IR helpslink \-et -a kiválasztott hyperlinkekhez. -.PP -A kiemelés színei azt határozzák meg, a fájlok hogyan jelenjenek meg -akkor, ha a kiemelés engedélyezve van (lásd a -.\"LINK2" -Megjelenés részt\&). -.\"Layout" -.I directory -a könyvtárakhoz, és a könyvtárak szimbolikus linkjeihez használatos; -.I executable -a futtatható fájlokhoz; -.I link -a szimbolikus linkekhez, amelyekk még létezÅ‘ek, és nem könyvtárra -mutató linkek; -.I stalelink -az elvesztett szimbolikus linkekhez; -.I device -\- karakter és blokk eszközökhöz; -.I special -a speciális fájlokhoz, mint pl.FIFO\-k és az IPC socket\-ek; -.I core -a core fájlokhoz. -.PP -A megjeleníthetÅ‘ színek: black (fekete), gray (szürke), red (piros), -brightred (világospiros), green (zöld), brightgreen (világoszöld), brown -(barna), yellow (sárga), blue (kék), brightblue (világoskék), magenta -(bíborvörös), brightmagenta (világos bíborvörös), cyan, brightcyan -(világos zöldeskék), lightgray (világosszürke) és a white (fehér). Van -külön speciális kulcsszó az átlátszó háttérhez. Ez a 'default' -(alapértelmezett). Csak a 'default'\-ot tudod háttérszínként használni. -Példa: -.PP -.nf -[Colors] -base_color=normal=white,default:marked=magenta,default -.fi -.\"NODE "Special Settings" -.SH "Speciális Beállítások" -A legtöbb Midnight Commander beállítás a menükbÅ‘l is elérhetÅ‘. Ãm van -néhány beállítás, ami csak a setup fájl szerkesztésével állítható be. -.PP -Ezeket a változókat az ~/.config/mc/ini fájlban állíthatod be: -.PP -.I clear_before_exec -.IP -Alapértelmezésben a Midnight Commander törli a képernyÅ‘t, mielÅ‘tt -futtatna egy parancsot. Ha a parancs kimenetét a képernyÅ‘ alján -szeretnéd látni, az ~/mc.ini fájlban javítsd ki a clear_before_exec -értékét 0\-ra. -.PP -.I confirm_view_dir -.IP -Ha lenyomod az F3 gombot a könyvtár felett állva, normálisan a MC belép -a könyvtárba. Ha ez a flag 1\-re van állítva, akkor az MC kijelölt fájlok -esetén megerÅ‘sítÅ‘ kérdést fog feltenni, mielÅ‘tt könyvtárat váltana. -.PP -.I ftpfs_retry_seconds -.IP -Ez az érték az a szám, amely megadja azt, hogy Commander mennyit várjon -mielÅ‘tt megpróbál újra kapcsolódni az ftp szerverre, elutasítás esetén. -Ha az érték nulla, akkor nem próbálkozik újra a kapcsolatteremtéssel. -.PP -.I ftpfs_use_passive_connections. -.IP -Ez az opció alapesetben ki van kapcsolva. Ez teszi az ftpfs kódot -használhatóvá passzív megnyitás módúvá a letöltött fájloknál. Ezt akkor -használják, ha csomagszűrÅ‘ routert használnak. Ez az opció csak akkor -működik, ha a nem használsz ftp proxy\-t. -.PP -.I max_dirt_limit -.IP -Meghatározza azt, hogy hány képernyÅ‘frissítést tudjon átlépni a BelsÅ‘ -fájlnézÅ‘. Normálisan ez az érték nem meghatározott, mivel a kód -automatikusan módosítja a képfrissítés sebességét, ha túl gyosran ütöd -le egymás után a billentyűket. Habár a nagyon lassú gépeken, vagy, ha -nagy billenty\ ismétlési sebességet állítottunk, a nagy érték tudja -megfelelÅ‘en frissíteni a képernyÅ‘t. A legjobb az ha a max_dirt_limit -értékét 10\-re állítod, és ez az alapértelmezett érték. -.PP -.I mouse_move_pages -.IP -Vezérel akkor, amikor a panelben az egérrel legördítesz oldalanként, -vagy sorról sorra. -.PP -.I mouse_move_pages_viewer -.IP -Vezérel akkor, amikor a panelben az egérrel legördítesz egy oldala -oldalanként, vagy sorról sorra a BelsÅ‘ fájlnézÅ‘ben. -.PP -.I old_esc_mode -.IP -Alapesetben a Midnight Commander az ESC gombot a gomb rendeltetésének -megfelelÅ‘en használja (Meta) (old_esc_mode=0), ha beállítod ezt az -opciót, (old_esc_mode=1), akkor az ESC gomb egy másodpercig vár, és, ha -ilyenkor nem nyomsz le egy kiegészítÅ‘ gombot, az ESC műveletet -megszakító gombként fog működni (ESC ESC). -.PP -.I only_leading_plus_minus -.IP -speciálisan kezeli a '+', '\-', '*' karaktereket a parancssorban -(kiválasztás, kiválasztás megszüntetése, megfordítja a kiválasztást), de -csak akkor, ha a parancssor üres. A parancssorban nem kell idézÅ‘jelek -közé tenni. Amikor a parancssor nem üres, nem tudjuk megváltoztatni a -kiválasztást. -.PP -.I panel_scroll_pages -.IP -Ha be van állítva (alapértelmezésben), a panel egy fél képernyÅ‘nyit fog -fel\-le gördülni, ha a kurzor eléri a panel végét, vagy elejét, egyébként -csak egy fájlt fog legördítani ilyenkor. -.PP -.I show_output_starts_shell -.IP -Ez a változó csak akkor működik, ha a subshell támogatást nem használod. -Amikor a C\-o billentyű kombinációt használod, visszalépsz a felhasználói -képernyÅ‘re, ha "egy" a beállítás, akkor a shellt frissíted. Egyébként -bármely gomb lenyomásával visszatérhetsz a Midnight Commander\-hez. -.PP -.I torben_fj_mode -.IP -Ha ez a flag be van állítva, akkor a home és az end gombok kissé -eltérÅ‘en fognak működni a panelekben, a kiválasztást a panel elsÅ‘ és -utolsó fájljára mozgatja, s a következÅ‘képp működik: A home gombnál: -Felmegy a középsÅ‘ sorra, ha lejjebb volt; egyébként a felsÅ‘ sor lép -addíg, amíg el nem éri a legfelsÅ‘ sort, ebben ez esetben ez lesz a panel -elsÅ‘ fájlja. Az end gomb működése hasonló: Lemegy a középsÅ‘ sorra, ha -felette volt; egyébként a legalsó sorra lép addíg, amíg el nem éri az -utolsó fájl a panelben. -.PP -.I use_file_to_guess_type -.IP -Ha ez a változó be van állítva (alapértelmezésben) meg foja jelölni azt -a fájl parancsot, amelyhez a -.\"LINK2" -Társításokban -.\"Edit Extension File" -a fájl típusnál egyezÅ‘t talált. -.PP -.I xtree_mode -.IP -Ha ez a változó be van kapcsolva (alapértelmezésben ki van kapcsolva), -akkor, amikor a fájlrendszert a Fa panelben böngészed, az automatikusan -újraolvassa a másik panelt a kiválasztott könyvtárnak megfelelÅ‘ -tartalommal. -.\"NODE "Terminal databases" -.SH "Terminál adatbázisok" -A Midnight Commander lehetÅ‘séget nyújt a terminál adatbázis root jogok -használata nélküli módosítására. A Midnight Commander a rendszer indító -fájlban (az mc.lib fájlt a Midnight Commander library könyvtárában -találjuk), vagy az ~/.config/mc/ini file "terminal:your\-terminal\-name" részében -keres, és, a "terminal:general" rész minden sora tartalmazza azokat a -billentyűzet szimbólumokat az egyenlÅ‘ségjelet és a definiált szimbólumot -követÅ‘en, amelyeket te mag akarsz határozni. A \\e speciális formátumot -az escape és a ^x\-t a control\-x karakter megjelenítésére használhatod. -.PP -A látható billentyű szimbólumok: -.PP -.nf -f0\-tól f20\-ig Funkció billentyűk f0\-f20 -bs backspace -home home gomb -end end gomb -up kurzor fel gomb -down kurzor le gomb -left kurzor balra gomb -right kurzor jobbra gomb -pgdn page down gomb -pgup page up gomb -insert az insert karakter -delete a delete karakter -complete a lezáró -.fi -.PP -Például ahhoz, hogy az insert gomb az Escape + [+ O + p\-pel legyen -azonos, az alábbiakat állítsd be az ini fájlban: -.PP -.nf -insert=\\e[Op -.fi -.PP -A -.I complete -billentyű szimbólum megjeleníti az escape szekvenciát, amely a leállító -folyamatot indítja el, az M\-tab\-bal indítható el, de definiálhatsz más -gombokat is ugyanerre a folyamatra (azokon a billentyűzeteken, ahol -valamelyik gomb nem használható). -.SH "" -.\"NODE "FILES" -.SH "Fájlok" -A progam minden ezzel kapcsolatos infomációt az -.BR MC_DATADIR -környezeti változóban tárol. Ha ezt a változót nem állítottuk be, akkor -ez vissza fog állítódni a /usr könyvtárra. -.PP -.I %pkgdatadir%/help/mc.hlp -.IP -A program súgó fájlja. -.PP -.I %pkgdatadir%/mc.ext.ini -.IP -Az alapértelmezett rendszerszintű kiterjesztés fájl. -.PP -.I ~/.config/mc/mc.ext.ini -.IP -A felhasználó saját kiterjesztései, nézet beállítások és szerkesztési -beállítások. Ezek felülbírálják a rendszerszintű fájl bejegyzéseit, ha -van ilyen. -.PP -.I %pkgdatadir%/mc.ini -.IP -Az alapértelmezett rendszerszintű Midnight Commander beállítás, amelyet -csak akkor használ, ha a felhasználónak nincs saját ~/.config/mc/ini fájlja. -.PP -.I %pkgdatadir%/mc.lib -.IP -A Midnight Commander globális beállításai. Az ebben a fájlban elvégzett -beállítások minden felhasználó Midnight Commander\-jére vonatkoznak, ez -használható a site\-globális terminál beállításaihoz. -.PP -.I ~/.config/mc/ini -.IP -A felhasználó saját beállításai. Ha ez a fájl elérhetÅ‘, akkor a -beállítások ebbÅ‘l a fájlból olvasódnak be a rendszerszintű indító fájl -helyett. -.PP -.I %pkgdatadir%/hints/mc.hint -.IP -Ez a fájl tartalmazza a program által megjelenített útmutattásokat -(cookie\-kat). -.PP -.I %pkgdatadir%/mc.menu -.IP -Ez a fájl azonos a rendszerszintű alkalmazás menüvel. -.PP -.I ~/.config/mc/menu -.IP -A falhasználó saját alkalmazás menüje. Ha ez a fájl elérhetÅ‘ a -rendszerszintű alkalmazás menü helyett ezt fogja használni. -.PP -.I ~/.cache/mc/Tree -.IP -A könyvtárlista a Könyvtárfa és a Fa nézethez. Minden sor egy -bejegyzés. Minden sor perjellel kezdik a teljes könyvtár neveknél. A -sorok egy számmal kezdÅ‘dnek, amik azonosak az elözÅ‘ könyvtáréval. Ha ezt -a fájlt el akarod készíteni a következÅ‘ parancsot használd: -.nf -find / \-type d \-print | sort > ~/.cache/mc/Tree" -.fi -Normálisan nincs erre szükséged, mert a Midnight Commander automatikusan -frissíti ezt. -.PP -.I ./.mc.menu -.IP -Helyi felhasználó által definiált menü. Ha ez a fájl létezik, ezt -használja a home, vagy rendszerszintű alkalmazás menü helyett. -.PP -To change default home directory of MC, you can use -.BR MC_PROFILE_ROOT -environment variable. The value of MC_PROFILE_ROOT must be an absolute path. -If MC_PROFILE_ROOT is unset or empty, HOME variable is used. If HOME is unset -or empty, MC directories are get from GLib library. -.\"NODE "AVAILABILITY" -.SH "A Midnight Commander frissítése" -A program legutolsó verzióját az ftp.nuclecu.unam.mx címen a -/linux/local könyvtárban találhatod meg, Európából pedig a -sunsite.mff.cuni.cz címen a /GNU/mc könyvtárban és az ftp.teuto.de címen -az /lmb/mc könyvtárban. -.\"NODE "SEE ALSO" -.SH "Lásd még..." -ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1), tcsh(1), -zsh(1). -.PP -.nf -A Midnight Commander World Wide Web oldalának címe a -következÅ‘: - https://www.midnight\-commander.org/ -.fi -.\"NODE "AUTHORS" -.SH "SzerzÅ‘k" -Miguel de Icaza (miguel@roxanne.nuclecu.unam.mx), Janne Kukonlehto -(jtklehto@paju.oulu.fi), Radek Doulik (rodo@ucw.cz), Fred Leeflang -(fredl@nebula.ow.org), Dugan Porter (dugan@b011.eunet.es), Jakub Jelinek -(jj@sunsite.mff.cuni.cz), Ching Hui (mr854307@cs.nthu.edu.tw), Andrej -Borsenkow (borsenkow.msk@sni.de), Norbert Warmuth -(nwarmuth@privat.circular.de), Mauricio Plaza -(mok@roxanne.nuclecu.unam.mx), Paul Sheer (psheer@icon.co.za) and Pavel -Machek (pavel@ucw.cz) are the developers of this package; Alessandro -Rubini (rubini@ipvvis.unipv.it) has been especially helpful debugging -and enhancing the program's mouse support, John Davis -(davis@space.mit.edu) also made his S\-Lang library available to us under -the GPL and answered my questions about it, and the following people -have contributed code and many bug fixes (in alphabetical order): -.PP -Adam Tla/lka (atlka@sunrise.pg.gda.pl), alex@bcs.zp.ua (Alex I. -Tkachenko), Antonio Palama, DOS port (palama@posso.dm.unipi.it), Erwin -van Eijk (wabbit@corner.iaf.nl), Gerd Knorr (kraxel@cs.tu\-berlin.de), -Jean\-Daniel Luiset (luiset@cih.hcuge.ch), Jon Stevens -(root@dolphin.csudh.edu), Juan Francisco Grigera, Win32 port -(j\-grigera@usa.net), Juan Jose Ciarlante (jjciarla@raiz.uncu.edu.ar), -Ilya Rybkin (rybkin@rouge.phys.lsu.edu), Marcelo Roccasalva -(mfroccas@raiz.uncu.edu.ar), Massimo Fontanelli (MC8737@mclink.it), -Pavel Roskin (proski@gnu.org), Sergey Ya. Korshunoff -(seyko2@gmail.com), Thomas Pundt (pundtt@math.uni\-muenster.de), Timur -Bakeyev (timur@goff.comtat.kazan.su), Tomasz Cholewo -(tjchol01@mecca.spd.louisville.edu), Torben Fjerdingstad -(torben.fjerdingstad@uni\-c.dk), Vadim Sinolitis (vvs@nsrd.npi.msu.su) -and Wim Osterholt (wim@djo.wtm.tudelft.nl). -.\"NODE "BUGS" -.SH "Hibák bejelentése" -Nézd meg a disztribúció TODO fájlát, hogy megtudhasd, milyen teendÅ‘k -vannak még vissza. -.PP -Ha a programmal kapcsolatos problémád van, akkor azt küld el az alábbi -levélcímre: mc\-devel@lists.midnight-commander.org. -.PP -Gondoskodj arról, hogy tartalmazza a hiba minél pontosabb -meghatározását, a futtatott program verziószámát (az mc \-V parancs meg -fogja jeleníttetni ezt), az operációs rendszert, amin futtatod a -programot amikor az összeomlott, méltányolni fogjuk a részletes leírást. diff --git a/recipes/wip/files/mc/source/doc/man/it/Makefile.am b/recipes/wip/files/mc/source/doc/man/it/Makefile.am deleted file mode 100644 index 51ae6a8d76..0000000000 --- a/recipes/wip/files/mc/source/doc/man/it/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -LANG=it -mandir = @mandir@/$(LANG) - -EXTRA_DIST = mc.1.in - -man_MANS = mc.1 - -CLEANFILES = $(man_MANS) - -DATE_LANG=it_IT.UTF-8 -DATE_FORMAT=%B %Y - -include ../date-of-man-include.am diff --git a/recipes/wip/files/mc/source/doc/man/it/Makefile.in b/recipes/wip/files/mc/source/doc/man/it/Makefile.in deleted file mode 100644 index bc9cdf2a4c..0000000000 --- a/recipes/wip/files/mc/source/doc/man/it/Makefile.in +++ /dev/null @@ -1,701 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/man/it -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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)" -NROFF = nroff -MANS = $(man_MANS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../date-of-man-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@/$(LANG) -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -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@ -LANG = it -EXTRA_DIST = mc.1.in -man_MANS = mc.1 -CLEANFILES = $(man_MANS) -DATE_LANG = it_IT.UTF-8 -DATE_FORMAT = %B %Y -SED_PARAMETERS = \ - -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \ - -e "s/%MAN_VERSION%/@MAN_VERSION@/g" \ - -e "s{%sysconfdir%{@sysconfdir@{g" \ - -e "s{%libexecdir%{@libexecdir@{g" \ - -e "s{%pkglibexecdir%{$(libexecdir)/@PACKAGE@{g" \ - -e "s{%pkgdatadir%{$(datadir)/@PACKAGE@{g" - -MAN_DATE_CMD = \ - LC_ALL=$(DATE_LANG) @PERL_FOR_BUILD@ -CS -MPOSIX -e '\ - @fi=lstat("'$${MAN_FILE}'"); \ - print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../date-of-man-include.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) --gnu doc/man/it/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/man/it/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../date-of-man-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -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) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(MANS) -installdirs: - for dir in "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man1 - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-man \ - uninstall-man1 - -.PRECIOUS: Makefile - - -mc.1: $(srcdir)/mc.1.in - MAN_FILE='$(srcdir)/mc.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mc.1.in' > '$@' - -mcview.1: $(srcdir)/mcview.1.in - MAN_FILE='$(srcdir)/mcview.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mcview.1.in' > '$@' - -@USE_INTERNAL_EDIT_TRUE@mcedit.1: $(srcdir)/mcedit.1.in -@USE_INTERNAL_EDIT_TRUE@ MAN_FILE='$(srcdir)/mcedit.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_INTERNAL_EDIT_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcedit.1.in' > '$@' - -@USE_DIFF_TRUE@mcdiff.1: $(srcdir)/mcdiff.1.in -@USE_DIFF_TRUE@ MAN_FILE='$(srcdir)/mcdiff.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_DIFF_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcdiff.1.in' > '$@' - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/man/it/mc.1.in b/recipes/wip/files/mc/source/doc/man/it/mc.1.in deleted file mode 100644 index c434d45ea4..0000000000 --- a/recipes/wip/files/mc/source/doc/man/it/mc.1.in +++ /dev/null @@ -1,3215 +0,0 @@ -.\" -*- mode: troff; coding: UTF-8 -*- -.\" Tradotto dal 15 agosto 2002 da -.\" Marco Ciampa -.\" Chi vuole contribuire aggiunga il nome qui sotto. -.\" Yuri -.\" -.\" Come succede per tutte le traduzioni ho dovuto fare dei compromessi. -.\" Il più importante (e che mi provoca tuttora dei dubbi) è stato la -.\" traduzione dei comandi Chmod, Chown e Advanced Chown con Permessi, -.\" Proprietario e Proprietario avanzato rispettivamente. Lo spirito che -.\" mi ha mosso in questa direzione è stato il desiderio di rendere mc più -.\" user frendly che coerente con altre traduzioni, visto il ruolo che si -.\" è conquistato soprattutto nei nuovi utenti. -.\" Altro esempio è l'uso (per questioni 'estetiche') indifferente di -.\" selezionato e marcato, quando il contesto rendeva ovvio il significato. -.\" E ancora (ma vedo che è diventata una saggia abitudine anche nella -.\" traduzione di altri programmi) il non rispettare l'uso delle maiuscole -.\" per marcare particolari comandi, uso che crea soprattutto confusione -.\" secondo il mio modesto parere. -.\" -.\" Prego mantenere la linea di traduzione generale (per quanto possibile). -.\" -.\"TOPICS "Indice degli argomenti:" -.TH MC 1 "%DATE_OF_MAN_PAGE%" "MC Version %MAN_VERSION%" "GNU Midnight Commander" -.\"SKIP_SECTION" -.SH "NOME" -mc \- interfaccia visuale per sistemi tipo Unix. -.\"SKIP_SECTION" -.SH "USO" -.B mc -[\-abcCdfhPstuUVx] [\-l log] [dir1 [dir2]] [\-e [file]] [\-v file] -.\"NODE "DESCRIPTION" -.SH "DESCRIZIONE" -Il Midnight Commander è un file manager per sistemi operativi di tipo Unix. -.\"DONT_SPLIT" -.\"NODE "OPTIONS" -.SH "OPZIONI" -.TP -.I "\-a" -Disabilita l'uso dei caratteri grafici per il disegno delle linee. -.TP -.I "\-b" -Forza la visualizzazione in bianco e nero. -.TP -.I "\-c" -Forza la modalità colore; consultare la sezione -.\"LINK2" -colori -.\"Colors" -per ulteriori informazioni. -.TP -.I "\-C arg" -Usato per specificare un set di colori differente a riga di comando. -Il formato di arg è documentato nella sezione -.\"LINK2" -colori\&. -.\"Colors" -.TP -.I "\-d" -Disabilita il supporto mouse. -.TP -.I "\-e [file]" -Esegue l'editor interno. Se il file viene specificato, lo apre alla -partenza. Vedere anche -.BR "mcedit (1)" . -.TP -.I "\-f" -Mostra i percorsi di ricerca compilati per i file del Midnight Commander. -.TP -.I "\-k" -Reimposta i softkeys ai valori predefiniti dal database termcap/terminfo. -Utile solo su terminali HP quando non vanno i tasti funzione. -.TP -.I "\-l file" -Salva il dialogo ftpfs con il server in file. -.TP -.I "\-P file" -Quest'opzione indica al Midnight Commander di stampare l'ultima -directory di lavoro sul file specificato. -Questa funzione non è fatta per un uso diretto, ma dovrebbe essere -utilizzata da una speciale funzione shell che imposti automaticamente -l'ultima directory corrente della shell come l'ultima directory in cui -stava il Midnight Commander. Prelevate i file -.B %pkglibexecdir%/mc.sh -(utenti bash e zsh) o rispettivamente -.B %pkglibexecdir%/mc.csh -(utenti tcsh) per definire -.B mc -come un alias allo script di shell appropriato. -.TP -.I "\-s" -Abilita il modo terminale lento, in questa modalità il programma -non disegna le linee e disabilita la modalità prolissa. -.TP -.I "\-t" -Usata solo se il codice è stato compilato con S\-Lang e terminfo: fa -in modo che il Midnight Commander usi il valore della variabile -.B TERMCAP -per le informazioni sul terminale invece delle informazioni di sistema -sul database terminali. -.TP -.I "\-u" -Disabilita l'uso della shell concorrente (ha senso solo se il -Midnight Commander è stato compilato con il supporto per la shell -concorrente). -.TP -.I "\-U" -Abilita l'uso della shell concorrente (ha senso solo se il -Midnight Commander è stato compilato con il supporto per la shell -concorrente impostato come una caratteristica opzionale). -.TP -.I "\-v file" -Lancia il visualizzatore interno per il file specificato. -.TP -.I "\-V" -Mostra la versione del programma. -.TP -.I "\-x" -Forza la modalità xterm. Usata quando è in funzione su terminali -abilitati\-xterm (due modalità video e in grado di spedire sequenze -mouse di escape). -.TP -.I \-X, \-\-no\-x11 -Do not use X11 to get the state of modifiers Alt, Ctrl, Shift -.TP -.I \-g, \-\-oldmouse -Force a "normal tracking" mouse mode. Used when running on -xterm\-capable terminals (tmux/screen). -.PP -Se specificato, il primo percorso è la directory mostrata nel -pannello selezionato; il secondo è la directory mostrata nell'altro -pannello. -.\"NODE "Overview" -.SH "Panoramica" -Lo schermo del Midnight Commander è diviso in quattro parti. Quasi tutto -lo spazio è occupato dai due pannelli directory. Come impostazione -predefinita la seconda riga dal fondo è la riga di comando, mentre -quella in basso mostra le etichette dei tasti funzione. La riga più in -alto è la -.\"LINK2" -riga dei menu\&. -.\"Menu Bar" -La barra dei menu può essere invisibile, ma compare se clicchi la -riga più in alto con il mouse o se premi il tasto F9. -.PP -Il Midnight Commander fornisce la vista di due directory -contemporaneamente. Uno dei due pannelli è quello corrente (la barra -di selezione è presente solo in questo). Quasi tutte le operazioni -hanno luogo nel pannello corrente. Alcune azioni come Rinomina e -Copia usano la directory del pannello non selezionato come valore -predefinito di destinazione (ma si richiede sempre una conferma prima). -Per informazioni aggiuntive, vedere le sezioni sui -.\"LINK2" -pannelli directory\&, -.\"Directory Panels" -i -.\"LINK2" -menu sinistra e destra -.\"Left and Right Menus" -e -.\"LINK2" -menu file\&. -.\"File Menu" -.PP -E' possibile eseguire comandi di sistema dal Midnight Commander -semplicemente battendoli. Ogni cosa scritta apparirà sulla riga di -comando e quando si preme l'invio il Midnight Commander eseguirà la -riga di comando appena battuta; leggere le sezioni -.\"LINK2" -shell a riga di comando -.\"Shell Command Line" -e -.\"LINK2" -tasti della riga di ingresso -.\"Input Line Keys" -per saperne di più sulla riga di comando. -.\"NODE "Mouse Support" -.SH "Supporto mouse" -Il Midnight Commander è fornito di supporto mouse. Esso viene -attivato ogniqualvolta lo si esegue in un terminale -.B xterm(1) -(funziona anche se si fa una connessione telnet, ssh o rlogin con -un'altra macchina da un xterm) o se sta funzionando su una console Linux -e si ha il mouse server -.B gpm -in funzione. -.PP -Quando si fa clic con il tasto sinistro in un file nel pannello -directory, il file viene selezionato; se si fa clic con il tasto destro -il file viene marcato (o smarcato, a seconda dello stato precedente). -.PP -Se il file è un programma eseguibile, il doppio clic su di esso lo eseguirà -altrimenti se il -.\"LINK2" -file estensioni -.\"Edit Extension File" -ha un programma specifico per quell'estensione del file, il suddetto programma -verrà eseguito. -.PP -E' anche possibile eseguire i comandi assegnati ai tasti funzione -cliccando sulle etichette dei tasti. -.PP -Se un tasto del mouse viene premuto sulla riga in cima al pannello directory, -il pannello sfoglia di una pagina in alto. Allo stesso modo, un clic sulla -riga in basso provocherà un cambio di pagina in basso. Questo metodo dei bordi -funziona anche nel -.\"LINK2" -visualizzatore dell'aiuto -.\"Contents" -e nell' -.\"LINK2" -albero directory\&. -.\"Directory Tree" -.PP -L'auto ripetizione predefinita per il mouse è di 400 millisecondi. Questo -valore può essere cambiato modificando il file -.\"LINK2" -\&~/.config/mc/ini -.\"Save Setup" -e cambiando il parametro -.IR mouse_repeat_rate . -.PP -Se il Commander sta funzionando con il supporto mouse, si può saltarlo -ed ottenere il funzionamento del mouse normale (taglia e incolla di testo) -tenendo premuto il tasto Maiuscole. -.SH "" -.\"NODE "Keys" -.SH "Tasti" -Alcuni comandi nel Midnight Commander presuppongono l'uso dei tasti -.I Control -(talvolta chiamato CTRL o CTL) e -.I Meta -(talvolta chiamato ALT o anche Compose). In questo manuale si utilizzeranno -le seguenti abbreviazioni: -.TP -.B C\- -significa premere il tasto control mentre si batte il carattere . -Perciò C\-f sarà: premi e tieni premuto il tasto Control e premi f. -.TP -.B M\- -significa premere il tasto Meta o Alt mentre si batte . -Se non c'è un tasto Meta o Alt, premere -.IR ESC , -rilasciarlo, poi premere il carattere . -.TP -.B S\- -significa premere il tasto Maiuscole mentre si batte il carattere . -.PP -Tutte le linee di ingresso nel Midnight Commander usano un'approssimazione -dei tasti usati dall'editor GNU Emacs. -.PP -Ci sono molte sezioni che parlano dei tasti. Le seguenti sono le -più importanti. -.PP -La sezione -.\"LINK2" -menu file -.\"File Menu" -documenta le abbreviazioni di tasti per i comandi che appaiono nel -menu file. Questa sezione include i tasti funzione. Molti di questi comandi -lavorano sui file selezionati o sui file marcati. -.PP -La sezione -.\"LINK2" -pannelli directory -.\"Directory Panels" -documenta i tasti che selezionano o marcano i file come oggetto -per una seguente azione (l'azione normalmente deriva dal menu file). -.PP -La sezione -.\"LINK2" -shell a riga di comando -.\"Shell Command Line" -elenca i tasti utilizzati per immettere e modificare linee di comando. -Molti di questi copiano nomi di file o altro dal pannello directory -alla riga di comando (per evitare troppo lavoro di battitura) o per -accedere alla cronologia comandi. -.PP -I -.\"LINK2" -tasti della riga di ingresso -.\"Input Line Keys" -sono usati per modificare le righe di ingresso. Cioè sia la riga di comando -che le righe di ingresso nelle finestre di interrogazione. -.\"NODE " Miscellaneous Keys" -.SH " Tasti vari" -Qua ci sono alcuni tasti che non sono classificabili in nessuna delle -altre categorie: -.TP -.B Invio -se c'è del testo nella riga di comando (quella in fondo ai pannelli), -allora quel comando viene eseguito. Se non c'è testo nella riga di -comando allora se la barra di selezione è sopra una directory il -Midnight Commander esegue un -.B chdir(2) -alla directory selezionata e ricarica le informazioni sul pannello; -se la selezione è un file eseguibile allora esso viene eseguito. -Per ultimo, se l'estensione del file selezionato corrisponde ad una -delle estensioni presenti nel -.\"LINK2" -file estensioni\&, -.\"Edit Extension File" -il comando corrispondente viene eseguito. -.TP -.B C\-l -ridisegna tutto nel Midnight Commander. -.TP -.B C\-x c -esegue il comando -.\"LINK2" -chmod -.\"Chmod" -su un file o su un gruppo di file marcati. -.TP -.B C\-x o -esegue il comando -.\"LINK2" -chown -.\"Chown" -sul file corrente o sui file marcati. -.TP -.B C\-x l -crea un collegamento. -.TP -.B C\-x s -crea un collegamento simbolico. -.TP -.B C\-x i -imposta la modalità della visualizzazione dell'altro pannello a informazioni. -.TP -.B C\-x q -imposta la modalità della visualizzazione dell'altro pannello a vista rapida. -.TP -.B C\-x ! -esegue il comando -.\"LINK2" -pannellizza comando\&. -.\"External panelize" -.TP -.B C\-x h -esegue il comando aggiungi directory alla lista -.\"LINK2" -directory favorite\&. -.\"Hotlist" -.TP -.B M\-! -esegue il comando vista filtrata, descritto in -.\"LINK2" -visualizzatore di file interno\&. -.\"Internal File Viewer" -.TP -.B M\-? -esegue il comando -.\"LINK2" -trova file\&. -.\"Find File" -.TP -.B M\-c -mostra la finestra -.\"LINK2" -cambia dir veloce\&. -.\"Quick cd" -.TP -.B C\-o -quando il programma viene eseguito in una console Linux o FreeBSD o in -un xterm, mostrerà il risultato del comando precedente. Eseguito in -console Linux, il Midnight Commander usa un programma esterno -(cons.saver) per gestire il salvataggio e recupero delle informazioni -sullo schermo. -.PP -Se è stato compilato il supporto alla subsell, è possibile premere C\-o -in ogni momento per tornare alla schermata principale del Midnight Commander; -per tornare all'applicazione basta premere C\-o. Se si ha un'applicazione -sospesa usando questo trucco, non si sarà in grado di eseguire altri -programmi dal Midnight Commander finché non si terminerà l'applicazione -sospesa. -.\"NODE " Directory Panels" -.SH " Pannelli directory" -Questa sezione elenca i tasti che operano sui pannelli directory. -Se si desidera sapere come cambiare la visualizzazione dei pannelli, -date un'occhiata alla sezione su -.\"LINK2" -menu sinistra e destra\&. -.\"Left and Right Menus" -.TP -.B Tab, C\-i -cambia il pannello corrente. L'altro pannello diventa il nuovo pannello -corrente mentre il pannello corrente diventa l'altro pannello. -La barra di selezione si sposta dal vecchio pannello al nuovo corrente. -.TP -.B Ins, C\-t -DEPRECATED! per marcare i file si può usare il tasto di Inserimento (la sequenza -teminfo kich1) o la sequenza C\-t (Control\-t). Per smarcare i file -basta marcare un file già marcato. -.TP -.B Insert, C\-t -to tag files you may use the Insert key (the kich1 terminfo sequence). -To untag files, just retag a tagged file. -.TP -.B M\-e -to change charset of panel you may use M\-e (Alt\-e). -Recoding is made from selected codepage into system codepage. To -cancel the recoding you may select "directory up" (..) in active panel. -To cancel the charsets in all directories, select "No translation " in -the dialog of encodings. -.TP -.B M\-g, M\-r, M\-j -usato per selezionare rispettivamente il file superiore, il file centrale o -quello inferiore in un pannello. -.TP -.B M\-t -cambia il modo di visualizzazione corrente per mostrare la modalità -successiva. In questo modo è possibile cambiare velocemente da listati -lunghi a listati normali a listati definiti dall'utente. -.TP -.B C\-\\\\ (control\-barra retroversa) -mostra le -.\"LINK2" -directory favorite -.\"Hotlist" -e va alla directory selezionata. -.TP -.B + \ (più) -viene utilizzato per selezionare (marcare) un gruppo di file. Il Midnight -Commander richiederà un'espressione regolare per descrivere il gruppo. -Quando i -.I modelli della shell -sono abilitati, le espressioni regolari sono molto simili alle espressioni -regolari in una shell (* significa zero o più caratteri e ? un carattere). Se i -.I modelli della shell -sono disabilitati, la marcatura dei file viene fatta con le normali espressioni -regolari (vedere ed (1)). -.TP -.B \\\\ (barra retroversa) -usare il tasto "\\" per deselezionare un gruppo di file. Questo è l'opposto -del tasto più. -.TP -.B freccia\-su, C\-p -sposta la barra di selezione alla voce precedente nel pannello. -.TP -.B freccia\-giù, C\-n -sposta barra di selezione alla voce successiva nel pannello. -.TP -.B home, a1, M\-< -sposta la barra di selezione alla prima voce nel pannello. -.TP -.B fine, c1, M\-> -sposta la barra di selezione all'ultima voce nel pannello. -.TP -.B pagina\-giù, C\-v -sposta la barra di selezione di una pagina in basso. -.TP -.B pagina\-su, M\-v -sposta la barra di selezione di una pagina in alto. -.TP -.B M\-o -rende la directory corrente del pannello corrente, la directory -corrente dell'altro pannello. Mette l'altro pannello in modalità -elenco se necessario. Se il pannello corrente è pannellizzato, -l'altro non diventa pannellizzato. -.TP -.B C\-PaginaSu, C\-PaginaGiù -solo quando si esegue in console Linux: rispettivamente cambia -directory a ".." e alla directory correntemente selezionata. -.TP -.B M\-y -sposta la directory precedente nella cronologia, equivalente a -premere '<' con il mouse. -.TP -.B M\-u -sposta la directory successiva nella cronologia, equivalente a -premere '>' con il mouse. -.TP -.B M\-S\-h, M\-H -mostra la cronologia directory, equivalente a premere 'v' con il mouse. -.\"NODE " Quick search" -.SH " Quick search" -.TP -.B C\-s, M\-s -inizia una ricerca nella directory. Quando la ricerca è attiva i dati -immessi dall'utente vengono aggiunti alla stringa di ricerca invece -della riga di comando. Se l'opzione -.I Mostra mini\-stato -è abilitata, la stringa di ricerca viene mostrata nella riga di -mini\-stato. Scrivendo, la barra di selezione si muove al prossimo -file che comincia con le lettere battute. I tasti -.I backspace -o -.I canc -possono essere utilizzati per correggere errori di battitura. Se viene premuto -nuovamente, viene ricercata la corrispondenza successiva. -.\"NODE " Shell Command Line" -.SH " Shell a riga di comando" -Questa sezione elenca i tasti utili ad evitare troppe battiture -nell'immissione dei comandi. -.TP -.B M\-Invio -copia nella riga di comando il nome del file attualmente selezionato. -.TP -.B C\-Invio -come M\-Invio, ma funziona solo dalla console Linux. -.TP -.B M\-Tab -esegue automaticamente il -.\"LINK2" -completamento -.\"Completion" -del nome del file, variabile, nome utente e nome host. -.TP -.B C\-x t, C\-x C\-t -copia i file marcati (o se non vi sono file marcati, il file selezionato) -del pannello corrente (C\-x t) o dell'altro pannello (C\-x C\-t) sulla -riga di comando. -.TP -.B C\-x p, C\-x C\-p -la prima sequenza di tasti copia il percorso corrente sulla riga di comando -e la seconda copia il percorso del pannello non selezionato sulla riga -di comando. -.TP -.B C\-q -il comando di inserimento letterale serve per inserire caratteri che -sarebbero altrimenti interpretati dal Midnight Commander (come il simbolo '+') -.TP -.B M\-p, M\-n -Usa questi tasti per navigare attraverso la cronologia comandi. M\-p va alla voce -precedente, M\-n va alla successiva. -.TP -.B M\-h -mostra la cronologia per la riga di ingresso corrente. -.\"NODE " General Movement Keys" -.SH " Tasti generali di movimento" -Il visualizzatore dell'aiuto, il visualizzatore dei file e l'albero directory -usano un codice comune per gestire il movimento. Per questa ragione essi -accettano esattamente gli stessi tasti. Ognuno di questi però accetta anche -altri tasti indipendenti. -.PP -Diverse parti del Midnight Commander usano gli stessi tasti di -movimento, questa sezione riguarda quelle parti. -.TP -.B Su, C\-p -si sposta di una riga indietro. -.TP -.B Giù, C\-n -si sposta di una riga avanti. -.TP -.B Pag. Prec., Pagina Su, M\-v -si sposta di una pagina in alto. -.TP -.B Pag. Succ., Pagina Giù, C\-v -si sposta di una pagina in basso. -.TP -.B Home, A1 -si sposta all'inizio. -.TP -.B Fine, C1 -si sposta alla fine. -.PP -In aggiunta a quelli menzionati sopra, il visualizzatore dell'aiuto accetta -i seguenti tasti: -.TP -.B b, C\-b, C\-h, Backspace, Canc -si sposta di una pagina in alto. -.TP -.B Barra spaziatrice -si sposta di una pagina in basso. -.TP -.B u, d -si sposta di mezza pagina in alto o in basso. -.TP -.B g, G -si sposta all'inizio o alla fine. -.\"NODE " Input Line Keys" -.SH " Tasti di riga di ingresso" -I tasti di riga di ingresso (sono usati -per la -.\"LINK2" -riga di comando -.\"Shell Command Line" -e per i dialoghi di richiesta dati nel programma) accettano -questi tasti: -.TP -.B C\-a -sposta il cursore all'inizio della riga. -.TP -.B C\-e -sposta il cursore alla fine della riga -.TP -.B C\-b, freccia\-sinistra -sposta il cursore di una posizione a sinistra. -.TP -.B C\-f, freccia\-destra -sposta il cursore di una posizione a destra. -.TP -.B M\-f -sposta il cursore di una parola in avanti. -.TP -.B M\-b -sposta il cursore di una parola indietro. -.TP -.B C\-h, backspace -cancella il carattere precedente. -.TP -.B C\-d, Canc -cancella il carattere nel punto (sopra il cursore). -.TP -.B C\-@ -imposta il marcatore per tagliare. -.TP -.B C\-w -copia il testo tra il cursore e il marcatore in un kill buffer -e rimuove il testo dalla riga di ingresso. -.TP -.B M\-w -copia il testo tra il cursore ed il marcatore in un kill buffer. -.TP -.B C\-y -inserisce il contenuto del kill buffer. -.TP -.B C\-k -elimina il testo dal cursore alla fine della riga. -.TP -.B M\-p, M\-n -usa questi tasti per navigare attraverso la cronologia dei comandi. M\-p -posiziona sull'ultima voce, M\-n posiziona sulla seguente. -.TP -.B M\-C\-h, M\-Backspace -cancella una parola indietro. -.TP -.B M\-Tab -fa del nomefile, comando, variabile, nomeutente e nomehost il -.\"LINK2" -completamento -.\"Completion" -automatico. -.SH "" -.\"NODE "Menu Bar" -.SH "Barra dei menu" -La barra dei menu compare premendo F9 o cliccando con il mouse sopra la riga -superiore dello schermo. La barra menu possiede cinque menu: "Sinistra", "File", -"Comando", "Opzioni" e "Destra". -.PP -I -.\"LINK2" -menu sinistra e destra -.\"Left and Right Menus" -permettono di modificare l'aspetto dei pannelli directory di -sinistra e di destra. -.PP -Il -.\"LINK2" -menu file -.\"File Menu" -elenca le azioni che possono essere condotte sui file correntemente selezionati -o marcati. -.PP -Il -.\"LINK2" -menu comando -.\"Command Menu" -elenca le azioni più generali e non ha relazione con il file correntemente -selezionati o marcati. -.PP -Il -.\"LINK2" -menu opzioni -.\"Options Menu" -elenca le azioni che permettono di personalizzare il Midnight Commander. -.\"NODE " Left and Right Menus" -.SH " Menu sinistra e destra (sopra e sotto)" -L'apparenza dei pannelli directory è modificabile tramite i menu -.B sinistra -e -.B destra -(vengono chiamati -.B sopra -e -.B sotto -se la divisione pannello nella finestra -.\"LINK2" -aspetto -.\"Layout" -del menu opzioni è orizzontale). -.\"NODE " Listing Format..." -.SH " Modalità lista..." -La modalità lista serve a mostrare un elenco di file; ci sono quattro -modalità elenco disponibili: -.BR completa , -.BR breve , -.B lunga -e -.BR "definita dall'utente" . -La modalità completa mostra il nome del file, l'ampiezza del file e -la data di modifica. -.PP -La modalità breve mostra solo il nome del file in due colonne -(perciò mostrando il doppio del numero dei file che nelle altre -modalità). La modalità lunga è simile a quella del comando -.BR "ls \-l" . -La modalità lunga usa tutta l'ampiezza dello schermo. -.PP -Se si sceglie il formato definibile dall'utente, è necessario specificare -il formato della vista. -.PP -Il formato definibile dall'utente deve cominciare con una specifica -dell'ampiezza del pannello. Questa può essere "half" o "full", che descrive -un pannello di mezza grandezza o completa rispettivamente. -.PP -Dopo l'ampiezza del pannello, è possibile specificare la modalità a -due colonne aggiungendo il numero "2" alla stringa di formato. -.PP -Dopodiché si aggiunge il nome dei campi con una specifica di ampiezza -opzionale. Questi sono i campi disponibile per la visualizzazione: -.TP -.B name -mostra il nome del file. -.TP -.B size -mostra l'ampiezza del file. -.TP -.BR bsize -è una forma alternativa del formato -.B size -mostra l'ampiezza del file e per le directory mostra solo -SUB\-DIR o UP\-\-DIR. -.TP -.B type -mostra un campo di un carattere. Questo carattere è simile a quello -mostrato dal comando ls con la flag \-F \- -.B * -per i file eseguibili, -.B / -per le directory, -.B @ -per i collegamenti, -.B = -per i socket, -.B \- -per i dispositivi a carattere, -.B + -per i dispositivi a blocchi, -.B | -per le pipe, -.B ~ -per i collegamenti simbolici a directory e -.B ! -per i collegamenti simbolici stallati (che non puntano a niente). -.TP -.B mark -un asterisco se il file è marcato, uno spazio se non lo è. -.TP -.B mtime -la data dell'ultima modifica al file. -.TP -.B atime -la data dell'ultimo accesso al file. -.TP -.B ctime -la data della creazione del file. -.TP -.B perm -una stringa che rappresenta i bit dei permessi del file. -.TP -.B mode -un valore ottale con i permessi correnti del file. -.TP -.B nlink -il numero dei collegamenti al file. -.TP -.B ngid -il GID (numerico). -.TP -.B nuid -l'UID (numerico). -.TP -.B owner -il proprietario del file. -.TP -.B group -il gruppo del file. -.TP -.B inode -l'inode del file. -.PP -Puoi usare ache questi campi per sistemare la visualizzazione: -.TP -.B space -uno spazio nel formato visualizzazione. -.TP -.B | -aggiunge una linea verticale al formato di visualizzazione. -.PP -Per forzare un campo ad un'ampiezza fissa (una specifica di ampiezza), -basta semplicemente aggiungere -.B : -ed il numero dei caratteri che si vuole che il campo abbia. Se il -numero è seguito dal simbolo -.BR + , -allora la specifica definisce l'ampiezza minima \- se il programma -trova che serve più spazio sullo schermo, espanderà il campo. -.PP -Per esempio la modalità -.B completa -corrisponde a questo formato: -.PP -half type name | size | mtime -.PP -E quella -.B lunga -corrisponde a questo formato: -.PP -full perm space nlink space owner space group space size space mtime -space name -.PP -Questa è una modalità interessante: -.PP -half name | size:7 | type mode:3 -.PP -I pannelli possono anche essere impostati alle modalità seguenti: -.TP -.B "Informazioni" -La modalità informazioni mostra alcuni dati relativi al file -correntemente selezionato e se possibile informazioni circa il file -system corrente. -.TP -.B "Albero" -La vista ad albero è abbastanza simile al comando -.\"LINK2" -albero directory\&. -.\"Directory Tree" -Vedere la sezione corrispondente per maggiori informazioni. -.TP -.B "Vista rapida" -In questa modalità il pannello si imposta come un -.\"LINK2" -visualizzatore -.\"Internal File Viewer" -ridotto che mostra i contenuti del file correntemente selezionato; -se si seleziona il pannello (con il tasto tab o con il mouse), si ha -accesso ai normali comandi del visualizzatore. -.\"NODE " Sort Order..." -.SH " Ordina per..." -Gli otto possibili ordinamenti sono per nome, estensione, data -di modifica, data di accesso, data di modifica informazioni di -inode, ampiezza, per inode e non ordinato. Nella finestra di dialogo -di ordinamento è possibile scegliere il tipo di ordinamento ed è anche -possibile specificare se si desidera l'ordinamento inverso selezionando -la voce inverso. -.PP -Normalmente le directory sono ordinate prima dei file ma quest'impostazione -può essere modificata dal -.\"LINK2" -menu opzioni -.\"Options Menu" -(opzione -.BR "mescola tutti i file" ). -.\"NODE " Filter..." -.SH " Filtro..." -Il comando di filtro permette di specificare un modello (per esempio -.BR "*.tar.gz" ) -che il file deve corrispondere per essere visualizzato. Malgrado -il modello del filtro, le directory e i collegamenti a directory -vengono sempre visualizzati sul pannello directory. -.\"NODE " Reread" -.SH " Ricarica" -Il comando ricarica l'elenco dei file nella directory. E' utile -se un'altro processo ha creato o rimosso dei file. Se -si ha pannellizzato dei nomi di file in un pannello, questo ricaricherà -il contenuto della directory e rimuoverà le informazioni pannellizzate -(vedere sezione -.\"LINK2" -pannellizza comando -.\"External panelize" -per ulteriori informazioni). -.\"NODE " File Menu" -.SH " Menu file" -Il Midnight Commander usa i tasti F1 \- F10 come tasti veloci -per i comandi che appaiono nel menu file. Le sequenze di escape -per i tasti funzione sono capacità terminfo da kf1 a kf10. Su terminali -senza supporto per i tasti funzione, è possibile ottenere la stessa -funzionalità premendo il tasto ESC e un numero da 1 a 9 più lo 0 -(corrispondentemente ai tasti da F1 a F9 e F10 rispettivamente). -.PP -Il file menu comprende i comandi seguenti (tasti veloci tra parentesi): -.PP -.B Aiuto (F1) -.PP -Invoca il visualizzatore incorporato di ipertesti per l'aiuto. -All'interno del -.\"LINK2" -visualizzatore aiuto\&, -.\"Contents" -è possibile usare il tasto tab per selezionare il successivo collegamento -e il tasto invio per seguirlo. I tasti Barra spaziatrice e Backspace vengono -utilizzati per muoversi avanti e indietro nella pagina di aiuto. Premere F1 -nuovamente per ottenere la lista completa dei tasti accettati. -.PP -.B Menu (F2) -.PP -Invoca il -.\"LINK2" -menu utente\&. -.\"Edit Menu File" -Il menu utente fornisce un modo semplice per dare agli utenti un menu ed -aggiungere nuove funzionalità al Midnight Commander. -.PP -.B Visualizza (F3, Maiusc\-F3) -.PP -Visualizza il file correntemente selezionato. Nell'impostazione predefinita -viene invocato il -.\"LINK2" -visualizzatore interno di file -.\"Internal File Viewer" -ma se l'opzione "Usa visualizzatore interno" è deselezionata, verrà invocato -un visualizzatore esterno specificato dalla variabile ambiente -.BR PAGER . -Se -.B PAGER -non è definita, verrà invocato il comando "view". Se si usa invece il comando -Maiusc\-F3, il visualizzatore verrà invocato senza nessun tipo di formattazione -o preprocessamento sul file. -.PP -.B Vista filtrata (M\-!) -.PP -Questo tasto richiede all'utente un comando ed i suoi argomenti (l'argomento -predefinito è il nome del file attualmente selezionato), il risultato di tale -comando viene mostrato nel visualizzatore di file interno. -.PP -.B Cambia (F4) -.PP -Invoca l'editor -.B vi -o l'editor specificato nella variabile d'ambiente -.B EDITOR -oppure -.\"LINK2" -l'editor di file interno -.\"Internal File Editor" -se l'opzione, "usa editor interno" è stata impostata. -.PP -.B Copia (F5) -.PP -Mostra una finestra di dialogo con destinazione predefinita alla -directory del pannello non selezionato, che copia il file selezionato (o -i file marcati, se ce n'è almeno uno) sulla directory specificata -dall'utente nella finestra di dialogo. Space for destination -file may be preallocated relative to preallocate_space configure option. -Durante il processo è possibile -premere C\-c o ESC per abortire l'operazione. Per maggiori dettagli sulla -maschera sorgente (che sarà normalmente * o ^\\(.*\\)$ a seconda -dell'impostazione di "modelli della shell") o sui caratteri jolly sulla -destinazione vedere -.\"LINK2" -maschera copia/rinomina\&. -.\"Mask Copy/Rename" -.PP -In alcuni sistemi è possibile eseguire la copia in background cliccando -sul bottone background (o premendo M\-b nella finestra di dialogo). Il -comando -.\"LINK2" -processi in background -.\"Background jobs" -è utile per controllarne l'andamento. -.PP -.B Collegamento (C\-x l) -.PP -Crea un collegamento fisico (hard link) al file corrente. -.PP -.B Collegamento Simbolico (C\-x s) -.PP -Crea un collegamento simbolico al file corrente. Per chi non sapesse -cosa sono i collegamenti: creare un collegamento ad un file è come -copiare il file ma sia il nome sorgente che destinazione rappresentano -la stessa immagine fisica del file. Per esempio, se si modifica uno dei -due file, tutti i cambiamenti appariranno su tutti i file. Alcuni li -chiamano anche alias o scorciatoie (o link come in originale inglese). -.PP -Un collegamento fisico appare come un file reale. Dopo che sia stato -creato non c'è modo di distinguere quale sia il collegamento e quale sia -l'originale. Se si cancella uno dei due l'altro rimarrà intatto. E' molto -difficile notare che i file rappresentano la stessa immagine. Usate i -collegamenti fisici quando non volete proprio saperlo. -.PP -Un collegamento simbolico è un riferimento al nome del file originale. -Se il file originale viene cancellato, il collegamento è inutile. -E' facile distinguere i collegamenti simbolici dall'immagine stessa. -Se il file è un collegamento simbolico a qualcosa, il Midnight Commander -mostra un simbolo "@" davanti al nome del file (eccetto se punta ad una -directory, nel qualcaso mostrerà una tilde (~)). -Il file originale sul quale punta il collegamento simbolico viene mostrato -sulla riga di mini\-stato se -.I "Mostra Mini\-stato" -è abilitata. Usare i collegamenti simbolici se si vuole evitare la confusione -che creano i collegamenti fisici. -.PP -.B Rinomina/Sposta (F6) -.PP -Mostra una finestra di dialogo con destinazione predefinita alla -directory del pannello non selezionato, che sposta il file selezionato (o -i file marcati, se ce n'è almeno uno) sulla directory specificata dall'utente -nella finestra di dialogo. Durante il processo è possibile -premere C\-c o ESC per abortire l'operazione. Per maggiori dettagli vedere la -sezione precedente Copia, dato che il comando è molto simile. -.PP -In alcuni sistemi è possibile eseguire la copia in background cliccando -sul bottone background (o premendo M\-b nella finestra di dialogo). Il -comando -.\"LINK2" -processi in background -.\"Background jobs" -è utile per controllarne l'andamento. -.PP -.B Crea Directory (F7) -.PP -Mostra una finestra di dialogo che crea la directory specificata. -.PP -.B Elimina (F8) -.PP -Cancella il file correntemente selezionato o i file marcati nel -pannello corrente. Durante il processo è possibile premere C\-c -o ESC per abortire l'operazione. -.PP -.B Cambia dir veloce (M\-c) -Usare il comando -.\"LINK2" -Cambia Dir veloce -.\"Quick cd" -se si vuole cambiare directory corrente e si ha la riga di comando occupata. -.PP -.B Seleziona gruppo (+) -.PP -Viene utilizzato per selezionare (marcare) un gruppo di file. Il -Midnight Commander richiedera un'espressione regolare per descrivere il -gruppo; se l'opzione -.I modelli della shell -è abilitata, l'espressione regolare è simile al file globbing nella shell -(* significa zero o più caratteri e ? significa un carattere). Se l'opzione -.I modelli della shell -è disabilitata, allora la selezione dei file viene eseguita con le normali -espressioni regolari (vedere ed (1)). -.PP -.B Deseleziona gruppo (\\\\) -.PP -Usata per deselezionare un gruppo di file. E' l'opposto di del comando -.IR "Seleziona gruppo" . -.PP -.B Uscita (F10, Maiusc\-F10) -.PP -Termina l'esecuzione del Midnight Commander. Maiusc\-F10 viene usata se -si esce e si sta usando lo shell wrapper. Maiusc\-F10 in tal caso non -vi porterà all'ultima directory utilizzata dal Midnight Commander ma -vi lascerà nella directory dalla quale avete fatto partire il Midnight -Commander. -.\"NODE " Quick cd" -.SH " Cambia dir veloce" -Questo comando è utile se si ha la riga di comando piena e si vuole -eseguire -.\"LINK2" -cd -.\"The cd internal command" -per cambiare directory senza dover cancellare e riscrivere la riga di comando. -Questo comando fa uscire una piccola finestra di dialogo che richiede -l'immissione degli stessi argomenti che si darebbero al comando -.B cd -a riga di comando. Questo ha le stesse caratteristiche già presenti nel -comando -.\"LINK2" -comando interno cd\&. -.\"The cd internal command" -.\"NODE " Command Menu" -.SH " Menu comando" -Il comando -.\"LINK2" -albero directory -.\"Directory Tree" -mostra un disegno ad albero delle directory. -.PP -Il comando -.\"LINK2" -trova file -.\"Find File" -permette di cercare un file specifico. Il comando "Scambia pannelli" -scambia il contenuto dei due pannelli directory. -.PP -Il comando "attiva/disattiva pannelli" mostra il risultato dell'ultimo -comando shell. Quest'ultimo funziona solo su xterm e sulle console Linux -e FreeBSD. -.PP -Il comando Confronta directory (C\-x d) confronta il contenuto dei -pannelli directory uno con l'altro. E' poi possibile usare il comando -Copia (F5) per rendere i pannelli identici. Ci sono tre metodi di -confronto. Il metodo veloce confronta solo l'ampiezza e la data del -file. Il metodo completo fa un confronto byte\-per\-byte. Il metodo -solo dimensione confronta solo l'ampiezza dei -file e non controlla il contenuto né la data del file. -.PP -Il comando cronologia comandi mostra un'elenco dei comandi battuti. Il -comando selezionato viene copiato sulla riga di comando. Alla cronologia -comandi vi si può accedere premendo M\-p o M\-n. -.PP -Il comando -.\"LINK2" -directory favorite (C\-\\) -.\"Hotlist" -permette un cambio più veloce dalla directory corrente ad una di quelle usate -più spesso. -.PP -Il comando -.\"LINK2" -pannellizza comando -.\"External panelize" -permette di eseguire un coamndo esterno e di mettere il risultato nel pannello -corrente. -.PP -Il comando -.\"LINK2" -modifica file estensioni -.\"Edit Extension File" -permette di specificare i programmi che devono essere eseguiti quando -si prova ad eseguire, visualizzare, modificare e un mucchio di altre -cose, file con una specifica estensione (la fine del nome del file). -Il comando -.\"LINK2" -modifica file menu -.\"Edit Menu File" -serve a modificare il menu utente (che appare premendo F2). -.\"NODE " Directory Tree" -.SH " Albero directory" -Il comando albero directory mostra una rappresentazione ad albero delle -directory. Selezionando una directory dalla rappresentazione il -Midnight Commander cambierà a quella directory. -.PP -Ci sono due modi di invocare l'albero. Il vero comando di albero directory -è accessibile dal menu Comandi. L'altro modo è di selezionare la vista ad -albero dai menu Sinistra o Destra. -.PP -Per evitare i lunghi ritardi il Midnight Commander crea la rappresentazione ad -albero scansionando solo una piccola porzione di tutte le directory. -Se manca la directory che si vuole visualizzare, spostarsi sulla sua directory -genitrice e premere C\-r (o F2). -.PP -E' possibile utilizzare i tasti seguenti: -.PP -Sono accettati i -.\"LINK2" -tasti generali di movimento\&. -.\"General Movement Keys" -.PP -.B Invio. -Nell'albero directory, esce dall'albero della directory e lo cambia -alla directory corrente nel pannello selezionato. Nella vista ad albero, -cambia a questa directory nell'altro pannello e rimane nella modalità -vista ad albero in quello corrente. -.PP -.B C\-r, F2 (Ricarica). -Ricarica la directory. Usare questo comando quando la rappresentazione ad -albero non è aggiornata: mancano directory o mostra alcune sottodirectory -che non esistono più. -.PP -.B F3 (Scorda). -Cancella questa directory dalla rappresentazione ad albero. Usare questo -comando per eliminare la confusione dal'albero. Se si vuole nuovamente -visualizzare l'albero completo premere F2 nella sua directory genitrice. -.PP -.B F4 (Statico/Dinamico). -Cambia tra modo di navigazione dinamico (predefinito) e statico. -.PP -Nella navigazione statica si usano i tasti Su e Giù per -selezionare la directory. Tutte le directory conosciute vengono mostrate. -.PP -Nella navigazione dinamica si usano i tasti Su e Giù per selezionare -una directory sorella, il tasto Sinistra sposta sulla directory genitrice -e il tasto Destra sposta sulla directory figlia. Solo i parenti, sorelle -e figlie, vengono mostrate; le altre sono tralasciate. La rappresentazione -ad albero cambia dinamicamente come la si attraversa. -.PP -.B F5 (Copia). -Copia la directory. -.PP -.B F6 (RinSpo). -Sposta la directory. -.PP -.B F7 (CreDir). -Crea una nuova directory sotto questa directory. -.PP -.B F8 (CancDir). -Cancella questa directory dal file system. -.PP -.B C\-s, M\-s. -Cerca la prossima directory che corrisponde alla stringa di ricerca. -Se tale directory non esiste, questi tasti faranno scendere di una riga -(il cursore). -.PP -.B C\-h, Backspace. -Cancella l'ultimo carattere nella stringa di ricerca. -.PP -.B Qualsiasi altro carattere. -Aggiunge un carattere alla stringa di ricerca e sposta alla nuova directory -che comincia con questi caratteri (il cursore). Nella vista ad albero -si deve prima attivare la ricerca premendo C\-s. La stringa di ricerca è -visibile nella riga di mini stato. -.PP -Le azioni seguenti sono disponibili solo nell'albero directory. -Non sono supportate nella vista ad albero. -.PP -.B F1 (Aiuto). -Invoca il visualizzatore dell'aiuto e mostra questa sezione. -.PP -.B Esc, F10. -Esce dalla rappresentazione ad albero. Non cambia directory. -.PP -Il mouse è supportato. Un doppio clic si comporta come premere Invio. -Vedere anche la sezione -.\"LINK2" -supporto mouse\&. -.\"Mouse Support" -.\"NODE " Find File" -.SH " Trova file" -Il comando trova file domanda prima la directory di inizio per la -ricerca ed il nome del file da cercare. Premendo il tasto albero -puoi selezionare la directory di partenza -.\"LINK2" -dall'albero directory\&. -.\"Directory Tree" -.PP -Il campo contenuto accetta espressioni regolari simili a egrep(1). Ciò -significa che è necessario proteggere i caratteri con significati speciali per -egrep con "\\", per esempio se si ricerca "strcmp (" si dovrà immettere -"strcmp \\(" (senza le virgolette). -.PP -Per far partire la ricerca premere il tasto Ok. -E' possibile bloccare la ricerca con il tasto Sospende e farla riprendere -con il tasto Continua. -.PP -E' possibile navigare l'elenco file con i tasti freccia Su e Giù. -Il tasto Chdir cambierà la directory corrente a quella del file selezionato. -Il tasto Ripete chiederà nuovamente i parametri per una nuova ricerca. -Il tasto Uscita esce dal comando Trova. Il tasto Pannellizza -metterà i file trovati sul pannello di directory corrente cosicché si -possa svolgere ulteriori operazioni su di essi (visualizzazione, copia, -spostamento, e così via). Dopo la pannellizzazione è possibile premere C\-r -per ripristinare la vista normale dei file. -.PP -E' possibile avere una lista di directory che il comando trova file dovrebbe -saltare durante la ricerca (per esempio, si può evitare di fare ricerche su -un CDROM o su una directory NFS montata attraverso un collegamento lento). -.PP -Le directory che devono essere saltate devono essere impostate nella variabile -.B ignore_dirs -nella sezione -.B FindFile -del file ~/.config/mc/ini. -.PP -Le directory devono essere separate da una virgola, come nell'esempio: -.PP -.nf -[FindFile] -ignore_dirs=/cdrom:/nfs/wuarchive:/afs -.fi -.PP -Si può prendere in considerazione l'uso del comando -.\"LINK2" -pannellizza comando -.\"External panelize" -per operazioni particolari. Il comando trova file serve solo per -ricerche semplici mentre usando pannellizza comando si può fare -ricerche complesse come si vuole. -.\"NODE " External panelize" -.SH " Pannellizza comando" -Pannellizza comando permette di eseguire un programma esterno, e -mettere il risultato del programma nel pannello corrente. -.PP -Per esempio, se si vuole manipolare in uno dei pannelli tutti i collegamenti -simbolici nella directory corrente, basta usare pannellizza comando per -eseguire il seguente: -.PP -.nf -find . \-type l \-print -.fi -.PP -Al completamento del comando, il contenuto del pannello non sarà più -il listato della directory ma tutti i file che rappresentano -collegamenti simbolici. -.PP -Volendo pannellizzare tutti i file che sono stati scaricati dal -proprio server ftp preferito, si può usare questo comando awk per -estrarre il nome del file dal file di log del traferimento: -.PP -.nf -awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog -.fi -.PP -Se si desidera si può salvare i comandi di pannellizzazione usati più -spesso con uno nome più descrittivo, in maniera da richiamarli più velocemente. -Per fare ciò basta battere il comando sulla riga di ingresso e premere il tasto -Aggiungi nuovo. Poi si deve dare un nome al quale associare il comando che si -desidera salvare. La prossima volta sarà possibile scegliere quel comando -dall'elenco e non servirà ribatterlo nuovamente. -.\"NODE " Hotlist" -.SH " Directory favorite" -Il comando Directory favorite mostra le etichette delle directory nell'elenco -delle favorite. Il Midnight Commander andrà alla directory corrispondente -all'etichetta selezionata. Dalla finestra delle favorite si possono rimuovere -etichette/directory già create ed aggiungerne di nuove. Per aggiungere -velocemente nuove directory basta usare il comando Aggiungi alle favorite -(C\-x h), che aggiunge la directory corrente alla lista delle favorite, -richiedendo l'etichetta per identificarla. -.PP -Questo rende più veloce il cd verso directory usate spesso. Considera l'uso della -variabile CDPATH come descritto in -.\"LINK2" -comando cd interno\&. -.\"The cd internal command" -.\"NODE " Edit Extension File" -.SH " Modifica file estensioni" -Questo comando invocherà l'editor sul file -.IR ~/.config/mc/mc.ext.ini . -If this file does not exist and you are not root, it will be copied from -.IR %sysconfdir%/mc/mc.ext.ini . -If you are root, you can choose the file to edit: user's -.I ~/.config/mc/mc.ext.ini -or system\-wide -.IR %sysconfdir%/mc/mc.ext.ini . -The format of this file is described in detail in it. -.\"NODE " Background jobs" -.SH " Processi in background" -Questo comando permette di controllare lo stato di ogni processo -in background del Midnight Commander (in background possono essere -eseguite solo operazioni di copia e rinomina). Da qui si può bloccare, -far ripartire e uccidere un lavoro in background. -.\"NODE " Edit Menu File" -.SH " Modifica file menu" -Il menu utente è un menu di comandi utili che possono essere -personalizzati dall'utente. Quando si accede al menu utente, viene -utilizzato, se esiste, il file .mc.menu dalla directory corrente, -ma solo se è di proprietà dell'utente o di root e se non è scrivibile -a tutti. Se tale file non viene trovato, mc alla stessa maniera -prova con ~/.config/mc/menu altrimenti usa il menu di sistema -%pkgdatadir%/mc.menu. -.PP -Il formato del file menu è molto semplice. Le righe che cominciano -con qualsiasi cosa che non sia uno spazio o una tabulazione sono -considerate voci per il menu (per fare in modo di usarle anche come -scelta rapida, il primo carattere deve essere una lettera). Tutte le -righe che cominciano con uno spazio o un tab sono i comandi che verranno -eseguiti quando la voce viene selezionata. -.PP -Quando un'opzione viene selezionata tutte le linee di comando dell'opzione -vengono copiate in un file temporaneo nella directory temporanea (normalmente -/usr/tmp) e poi il file viene eseguito. Ciò permette all'utente di mettere -normali costrutti shell nei menu. Prima dell'esecuzione del codice del menu -ha luogo una semplice sostituzione di macro. Per ulteriori informazioni vedere -.\"LINK2" -sostituzione macro\&. -.\"Macro Substitution" -.PP -Ecco un esempio di un file mc.menu: -.PP -.nf -A Mostra un dump del file correntemente selezionato - od \-c %f - -B Modifica un rapporto bachi e lo spedisce a root - I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1 - vi $I - mail \-s "Midnight Commander bug" root < $I - rm \-f $I - -M Legge la posta - emacs \-f rmail - -N Legge le news - emacs \-f gnus - -H Chiama il visualizzatore ipertestuale info - info - -J Copia la directory corrente nell'altro pannello ricorsivamente - tar cf \- . | (cd %D && tar xvpf \-) - -K Crea un rilascio della directory corrente - echo \-n "Nome del file di distribuzione: " - read tar - ln \-s %d `dirname %d`/$tar - cd .. - tar cvhf ${tar}.tar $tar - -= f *.tar.gz | f *.tgz & t n -X Estrae il contenuto di un file tar compresso - tar xzvf %f -.fi -.PP -.B Condizioni Predefinite -.PP -Ogni voce di menu può essere preceduta da una condizione. La condizione -deve cominciare nella prima colonna con un carattere '='. Se la condizione -è vera, la voce di menu sarà la voce predefinita. -.PP -.nf -Sintassi condizione: = - oppure: = | ... - oppure: = & ... - -Sotto\-condizione è una delle seguenti: - - y sintassi della corrispondenza modello file corrente? - (solo per modifica menu). - f corrispondenza modello file corrente? - F corrispondenza modello altro file? - d corrispondenza modello directory corrente? - D corrispondenza modello altra directory? - t file corrente di tipo? - T altro file di tipo? - x nomefile è eseguibile? - ! nega il risultato di una sotto\-condizione -.fi -.PP -Modello è un normale modello della shell o un'espressione regolare, -a seconda dell'opzione modelli della shell. E' possibile scavalcare -il valore globale dell'opzione modelli della shell scrivendo -"shell_patterns=x" sulla prima riga del file menu (dove "x" è 0 o 1). -.PP -.nf -Tipo è uno o più dei seguenti caratteri: - - n non directory - r file regolare - d directory - l collegamento - c carattere speciale - b blocco speciale - f fifo (pipe) - s socket - x eseguibile - t marcato -.fi -.PP -Per esempio 'rlf' significa file regolare, collegamento o fifo. Il -tipo 't' è particolare perché agisce sul pannello invece che sul file. -La condizione '=t t' è vera se ci sono file marcati nel pannello corrente -e falsa se non ce ne sono. -.PP -Se la condizione comincia con '=?' invece che '=' una traccia di debug -sarà mostrata ogniqualvolta viene calcolato il valore della condizione. -.PP -Le condizioni sono calcolate da sinistra a destra. Ciò significa che -.nf - = f *.tar.gz | f *.tgz & t n -.fi -viene calcolata come -.nf - ( (f *.tar.gz) | (f *.tgz) ) & (t n) -.fi -.PP -Ecco un esempio dell'uso delle condizioni: -.PP -.nf -= f *.tar.gz | f *.tgz & t n -L Elenca i contenuti di un archivio compresso tar - gzip \-cd %f | tar xvf \- -.fi -.PP -.B Condizioni Addizione -.PP -Se la condizione comincia con '+' (o '+?') invece che '=' (o '=?') è -una condizione addizione. Se la condizione è vera la voce di menu sarà -inclusa nel menu. Se la condizione è falsa la voce di menu non sarà -inclusa nel menu. -.PP -E' possibile combinare condizioni predefinite e addizione iniziando -la condizione con '+=' o '=+' (o '+=?' o '=+?' se vuoi una traccia di -debug). Se si vuole usare due differenti condizioni, una per addizionale -e l'altra per predefinita, si può precedere una voce di menu con due righe -di condizione, una che comincia con '+' e l'altra con '='. -.PP -I commenti cominciano con '#'. Linee di commento aggiuntive devono cominciare con -\&'#', spazi o tabulazioni. -.\"NODE " Options Menu" -.SH " Menu opzioni" -Il Midnight Commander possiede alcune opzioni che possono essere -abilitate e disabilitate in molte finestre di dialogo accessibili -da questo menu. Le opzioni sono abilitate se hanno un "x" di fronte -ad esse. -.PP -Il comando -.\"LINK2" -configurazione -.\"Configuration" -mostra una finestra di dialogo dalla quale è possibile cambiare -molte delle inpostazioni del Midnight Commander. -.PP -Il comando -.\"LINK2" -aspetto -.\"Layout" -mostra una finestra di dialogo con la quale è possibile impostare molte -opzioni relative a come mc appare sullo schermo. -.PP -Il comando -.\"LINK2" -conferme -.\"Confirmation" -mostra una finestra di dialogo dalla quale è possibile specificare per -quali azioni si vuole una richiesta di conferma. -.PP -Il comando -.\"LINK2" -mostra bit -.\"Display bits" -mostra una finestra di dialogo dalla quale è possibile selezionare quali -caratteri il vostro terminale è capace di mostrare. -.PP -Il comando -.\"LINK2" -impara tasti -.\"Learn keys" -mostra una finestra di dialogo dalla quale è possibile controllare i tasti -che non appaiono funzionare su alcuni terminali ed è possibile aggiustare. -.PP -Il comando -.\"LINK2" -FS virtuale -.\"Virtual FS" -mostra una finestra di dialogo con la quale è possibile impostare alcune -opzioni relative al VFS. -.PP -Il comando -.\"LINK2" -salva configurazione -.\"Save Setup" -salva le impostazioni correnti dei menu sinistra, destra e opzioni. Viene salvato -anche un piccolo numero di altre opzioni. -.\"NODE " Configuration" -.SH " Configurazione" -Le opzioni in questa finestra sono divise in tre gruppi: -Opzioni del pannello, Pausa dopo l'esecuzione e Altre opzioni. -.PP -.B Opzioni del pannello -.PP -.I Mostra file di backup. -Se abilitata, il Midnight Commander mostrerà i file che terminano con una tilde. -Altrimenti essi non verranno mostrati (come nell'opzione \-B del comando GNU ls). -.PP -.I Mostra file nascosti. -Se abilitata, il Midnight Commander mostrerà tutti i file che cominciano con -un punto (come ls \-a). -.PP -.I Cursore in basso mentre seleziona. -Se abilitata, la barra di selezione si muoverà in basso dopo aver selezionato -un file (sia con tasto Ins). -.PP -.I Rilascia menu a cascata. -Quando quest'opzione è abilitata, la discesa dei menu sarà attivata non appena -si preme il tasto -.BR F9 . -Altrimenti si otterrà solo il titolo del menu e si dovrà attivare il menu con -i tasti freccia o con i tasti di selezione rapida. -E' raccomandata se si stanno usando i tasti di selezione rapida. -.PP -.I Mescola tutti i file. -Se quest'opzione è abilitata, tutti i file e le directory vengono mostrati -mescolati insieme. Se l'opzione è spenta, le directory (e i collegamenti a -sottodirectory) vengono mostrati all'inizio dell'elenco con gli altri file -a seguire. -.PP -.I Aggiornamento rapido directory. -Se quest'opzione è abilitata, il Midnight Commander userà un trucco per -determinare se i contenuti della directory sono cambiati. Il trucco consiste -nel ricaricare la directory solo se l'i\-node della directory è cambiato. -Ciò significa che la ricarica accade solo quando i file vengono creati o -cancellati. Se quello che cambia è l'i\-node di un file nella directory -(cambia l'ampiezza di un file, cambiano il proprietario o le flag, etc.) -la visualizzazione non viene aggiornata. In questi casi se l'opzione è -abilitata, è necessario ricaricare la directory manualmente (con C\-r). -.PP -.B Pausa dopo l'esecuzione -.PP -Dopo l'esecuzione di comandi, il Midnight Commander può fermarsi, in -maniera da permettere di esaminare il risultato del comando. Ci sono -tre possibili impostazioni per questa variabile: -.IP -.I Mai. -Significa che non si vuole vedere il risultato del comando. Se si sta -usando la console Linux o FreeBSD o un xterm, ci sarà la possibilità di -vedere il risultato del comando premendo C\-o. -.IP -.I Su terminali stupidi. -Si avrà il messaggio di pausa su quei terminali che non sono in grado di -mostrare il risultato dell'ultimo comando eseguito (qualsiasi terminale -che non sia un xterm o una console Linux o FreeBSD). -.IP -.I Sempre. -Il programma si fermerà dopo l'esecuzione di tutti i comandi. -.PP -.B Altre opzioni -.PP -.I Operazioni prolisse. -Quest'opzione decide se le operazioni di Copia, Spostamento o Cancellazione -saranno prolisse (cioè se mostreranno una finestra di dialogo per ogni -operazione). Se si ha un terminale lento potresti voler disabilitare -quest'opzione. Viene automaticamente spenta se la velocità del proprio -terminale è inferiore a 9600 bps. -.PP -.I Calcola totali. -Se quest'opzione è abilitata, il Midnight Commander calcolerà i totali -delle ampiezze in byte e il numero totale dei file prima di ogni operazione di -Copia, Spostamento o Cancellazione. Questo genererà una barra di progressione -più accurata a discapito di un po' di velocità. Quest'opzione non ha effetto se -.I Operazioni prolisse -è disabilitata. -.PP -.I Modelli della shell. -Normalmente i comandi Seleziona, Deseleziona e Filtro usano espressioni -regolari di tipo shell. Le seguenti conversioni vengono eseguite per -ottenere questo risultato: '*' viene rimpiazzato da '.*' (zero o più -caratteri); '?' viene rimpiazzato da '.' (esattamente un carattere) e '.' -dal carattere letterale punto. Se l'opzione è disabilitata, allora le -espressioni regolari sono quelle descritte in ed(1). -.PP -.I Autosalva configurazione. -Se quest'opzione è abilitata, quando si esce dal Midnight Commander le -opzioni configurabili del Midnight Commander vengono salvate nel file -~/.config/mc/ini. -.PP -.I Menu automatici. -Se quest'opzione è abilitata, il menu utente sarà invocato alla partenza. -Utile per creare menu per utenti non abituati a unix. -.PP -.I Usa editor interno. -Se quest'opzione è abilitata, verrà usato l'editor integrato interno per -modificare i file. Se l'opzione è disabilitata, verrà usato l'editor -specificato dalla variabile ambiente -.BR EDITOR . -Se nessun editor è stato specificato, verrà usato -.BR vi . -Vedere la sezione -.\"LINK2" -editor di file interno\&. -.\"Internal File Editor" -.PP -.I Usa il visualizzatore interno. -Se quest'opzione è abilitata, verrà usato il visualizzatore di file -interno per visualizzare i file. Se l'opzione è disabilitata, verrà -utilizzato il visualizzatore specificato dalla variabile ambiente -.BR PAGER . -Se il visualizzatore non è definito, verrà usato il comando -.BR view . -Vedere sezione -.\"LINK2" -visualizzatore file interno\&. -.\"Internal File Viewer" -.PP -.I Completamento: visualizza tutto -Normalmente il Midnight Commander -mostra tutti i possibili -.\"LINK2" -completamenti -.\"Completion" -se il completamento è -ambiguo se si preme -.B M\-Tab -una seconda volta, la prima completa per quanto possibile -e, in caso di ambiguità, emette un suono. Se si vuole vedere -tutti i possibili completamenti già alla pressione del primo -.RB M\-Tab , -abilitare quest'opzione. -.PP -.I Barre che girano. -Se quest'opzione è abilitata, il Midnight Commander mostra -una barra rotante nell'angolo in alto a destra come indicatore -di progressione. -.PP -.I Navigazione stile Lynx. -Se quest'opzione è abilitata, è possibile usare i tasti freccia per -cambiare automaticamente directory se la selezione corrente è -una subdirectory e se la riga di comando è vuota. Normalmente -quest'opzione è spenta. -.PP -.I Cd segue i collegamenti. -Quest'opzione, se impostata, fa in modo che il Midnight Commander -segua la catena logica delle directory, quando si cambia la directory -corrente in ogni pannello o usando il comando cd. Questo è il -comportamento predefinito di bash. Quando non è impostata, il -Midnight Commander segue la reale struttura della directory, perciò -eseguendo cd .. se si è entrati in una directory attraverso un -collegamento, ci porterà alla genitrice reale della directory corrente -e non alla directory dov'era il collegamento. -.PP -.I Cancellazione sicura. -Se quest'opzione è abilitata, la cancellazione non intenzionale dei file -sarà più difficile. La preimpostazione della finestra di dialogo della -conferma cambia da "Si" a "No". Normalmente quest'opzione è -disabilitata. -.\"NODE " Layout" -.SH " Aspetto" -La finestra di aspetto da la possibilità di cambiare l'aspetto generale -dello schermo. Si può specificare la visibilità della barra dei menu, -della riga dei comandi, della riga dei suggerimenti o della riga dei -tasti funzione. Sulle console Linux o FreeBSD si può impostare quante -righe siano visibili sulla finestra di uscita. -.PP -Il resto dell'area dello schermo viene usata per i due pannelli directory. -Si può specificare se l'area venga divisa dai due pannelli in direzione -verticale o orizzontale. La divisione può essere uguale o si può dividere -in maniera asimmetrica. -.PP -Normalmente i contenuti dei pannelli directory sono visualizzati dello stesso -colore, ma si può specificare se i -.I permessi -e i -.I tipi di file -siano evidenziati con speciali -.\"LINK2" -colori\&. -.\"Colors" -Se l'evidenziazione dei permessi è abilitata, i campi -.I permessi -e -.I modalità -.\"LINK2" -dello schermo -.\"Listing Format..." -valide per l'utente che usa il Midnight Commander -sono evidenziati con il colore definito con la parolachiave -.IR selezionata . -Se l'evidenziazione del tipo di file è abilitata, i file vengono colorati -a seconda del tipo (per esempio directory, file core, eseguibili, ...). -.PP -Se l'opzione -.I Mostra mini\-stato -è abilitata, una riga di informazioni di stato circa la voce correntemente -selezionata viene mostrata sul fondo dei pannelli. -.\"NODE " Confirmation" -.SH " Conferme" -In questo menu è possibile configurare le opzioni di conferma per la -cancellazione e sovrascrittura dei file, esecuzione dei file premendo invio e -per l'uscita dal programma. -.\"NODE " Display bits" -.SH " Mostra bit" -Viene usata per configurare la quantità dei caratteri visibili sullo -schermo. Quest'impostazione può essere 7 bit, se il terminale/libreria_curses -supporta solo sette bit in uscita, ISO\-8859\-1 se mostra tutti i caratteri -nella mappa ISO\-8859\-1 e uscita completa a 8 bit per quei terminali che possono -visualizzare tutti i caratteri a 8 bit. -.\"NODE " Learn keys" -.SH " Impara tasti" -Questa finestra di dialogo permette di controllare e ridefinire i tasti -funzione, i tasti freccia e alcuni altri tasti per farli funzionare -correttamente sul terminale corrente. Spesso non funzionano dato che -molti database di terminali sono incompleti o errati. -.PP -Ci si può muovere con il tasto Tab e con i tasti di movimento di vi ('h' -sinistra, 'j' giù, 'k' su e 'l' destra). Una volta premuti e riconosciuti -i tasti di movimento del cursore, si possono tranquillamente utilizzare. -.PP -E' possibile provare i tasti semplicemente premendoli ognuno. Quando si preme -un tasto ed è riconosciuto correttamente, appare un OK accanto al nome di -quel tasto. Una volta che il tasto è marcato OK, esso comincia a funzionare -regolarmente, per esempio premendo il tasto F1, la prima volta controllerà -il funzionamento, ma dopodiché mostrerà la schermata di aiuto. Lo stesso -dicasi per i tasti freccia. -Il tasto Tab dovrebbe funzionare sempre. -.PP -Se alcuni tasti non funzionano correttamente, non si vedrà apparire -l'OK dopo la pressione di quel tasto. Allora è possibile ridefinirlo. -Fatelo, premendo il bottone corrispondente al nome del tasto (con il mouse -o premendo Invio o Spazio, dopo aver selezionato il bottone con Tab o con -le frecce). Ecco che un messaggio apparirà richiedendo di premere quel tasto. -Fatelo ed aspettate che la finestra sparisca. Se si vuole annullare, basta -premere Esc una volta ed aspettare. -.PP -Quando si è finito con tutti i tasti, è possibile salvarli. Le definizioni -dei tasti che si è ridefinito saranno scritte nella sezione [terminal:TERM] -del vostro ~/.config/mc/ini file (dove TERM è il nome del terminale corrente). Le -definizioni dei tasti che già funzionavano correttamente non vengono salvate. -.\"NODE " Virtual FS" -.SH " FS virtuale " -Quest'opzione permette di controllare l'impostazione della cache informazioni -del -.\"LINK2" -file system virtuale\&. -.\"Virtual File System" -.PP -Il Midnight Commander tiene in memoria le informazioni -relative ad alcuni dei file system virtuali per accelerare -l'accesso all'elenco dei file nel file system (per esempio, -l'elenco dei file scaricato dai server ftp). -.PP -Inoltre, per accedere al contenuto dei file compressi (per -esempio file tar compressi) il Midnight Commander deve creare -un file temporaneo non compresso sul disco. -.PP -Siccome sia le informazioni in memoria che i file temporanei su -disco occupano risorse, si può voler impostare i parametri delle -informazioni della cache per ridurre l'uso delle risorse o per -massimizzare la velocità di accesso ai file system usati spesso. -.PP -A causa del formato degli archivi tar, il -.I filesystem tar -necessita di leggere l'intero file solo per caricare le voci dei -file. Dato che molti file tar sono compressi (i file -tar non compressi sono una specie in via di estinzione), -il file system tar deve decomprimere il file su disco, -in una locazione temporanea per poi accedervi come un file tar -normale. -.PP -Ora, visto che noi tutti amiamo navigare nei file e nei file tar -dappertutto su disco, succede spesso che si lascia un file tar per -poi rientrarvi successivamente. Siccome la decompressione è lenta, -il Midnight Commander conserverà l'informazione in memoria per un -tempo limitato, allo scadere del quale, tutte le risorse associate -al file system verranno liberate. La scadenza predefinita è impostata -a un minuto. -.PP -Il -.\"LINK2" -file system FTP -.\"FTP File System" -(ftpfs) permette di navigare le directory su server FTP remoti. Esso -possiede diverse opzioni. -.PP -.I Password ftp anonimo -è la password utilizzata per accedere come "anonimo". Alcuni siti -richiedono un indirizzo email valido. D'altra parte, probabilmente -non si vuole dare il vostro indirizzo email reale a siti non di fiducia, -specialmente se non si sta usando filtri anti spam. -.PP -L'ftpfs mantiene l'elenco della directory che scarica dal server ftp -in una cache. Il tempo di scadenza della cache è configurabile -con l'opzione -.IR "scadenza cache directory ftpfs" . -Un valore basso per quest'opzione può rallentare ogni operazione sul -file system ftp perché ogni operazione è accompagnata da una -richiesta al server ftp. -.PP -E' possibile definire un host proxy per fare trasferimenti ftp. -Notare che molti firewall moderni sono totalmente trasparenti almeno -per i trasferimenti FTP passivi (vedere di seguito), perciò i proxy -ftp sono considerati obsoleti. -.PP -Se -.I usa sempre ftp proxy -non è impostata, è possibile usare il punto escamativo per abilitare -il proxy per certi host. Vedere la sezione -.\"LINK2" -file system FTP -.\"FTP File System" -per gli esempi. -.PP -Se quest'opzione è impostata, il programma farà due cose: consulterà -il file %sysconfdir%/mc/mc.no_proxy per le righe contenenti nomi host -locali (se il nome host comincia con un punto, è considerato un -dominio) e assumendo che ogni nome host senza punti nel nome sia -direttamente accessibile. Tutti gli altri host verranno contattati -attraverso il proxy host specificato. -.PP -E' possibile abilitare l'uso del file -.I ~/.netrc -che mantiene i nomi di accesso e le password per i server ftp. Vedere -netrc (5) per una descrizione del formato .netrc. -.PP -.I Usa modalità passiva -abilita l'uso della modalità FTP passiva quando la connessione per -il trasferimento file è iniziata dal client, non dal server. -Quest'opzione è raccomandata e preimpostata. Se quest'opzione è spenta, -la connessione dati viene iniziata dal server. Questo potrebbe non -funzionare con alcuni firewall. -.\"NODE " Save Setup" -.SH " Salva configurazione" -Alla partenza il Midnight Commander prova a caricare le informazioni di -inizializzazione dal file ~/.config/mc/ini. Se questo file non esiste, -caricherà le informazioni dal file di configurazione di sistema -posizionato in %pkgdatadir%/mc.ini. Se il file di configurazione di -sistema non esiste, MC userà le impostazioni predefinite. -.PP -Il comando -.I salva configurazione -crea il file ~/.config/mc/ini salvando le impostazioni correnti -dei menu -.\"LINK2" -sinistra, destra -.\"Left and Right Menus" -e -.\"LINK2" -opzioni\&. -.\"Options Menu" -.PP -Se si attiva l'opzione -.IR "autosalva configurazione" , -MC salverà sempre le impostazioni correnti all'uscita. -.PP -Esistono anche impostazioni che non possono essere cambiate dai menu. -Per cambiare queste impostazioni è necessario modificare il file di -configurazione con il vostro editor preferito. Vedere sezione -.\"LINK2" -impostazioni speciali -.\"Special Settings" -per ulteriori informazioni. -.SH "" -.\"NODE "Executing operating system commands" -.SH "Esecuzione comandi del sistema operativo" -E' possibile eseguire comandi del sistema operativo direttamente -nella riga di comando del Midnight Commander o selezionando il -programma che si vuole eseguire con la barra di selezione in uno -dei pannelli e premendo Invio. -.PP -Se si preme Invio su di un file che non è eseguibile, il Midnight -Commander confronta l'estensione del file selezionato con ciò -che trova nel -.\"LINK2" -file estensioni\&. -.\"Edit Extension File" -Se viene trovata una corrispondenza, verrà eseguito il codice associato. -Verrà eseguita una semplice -.\"LINK2" -espansione di macro -.\"Macro Substitution" -prima di eseguire il comando. -.\"NODE " The cd internal command" -.SH "Il comando cd interno" -Il comando -.I cd -non viene passato alla shell per l'esecuzione ma viene interpretato -dal Midnight Commander. Perciò esso non può gestire tutte quelle -simpatiche espansioni di macro e sostituzioni che fa la shell, malgrado -alcune le possa ancora fare: -.PP -.I Sostituzione della tilde. -La (~) verrà sostituita con la vostra directory home e se si appende -un nome utente dopo la tilde, allora verrà sostituita con la directory -di login dell'utente indicato. -.PP -Per esempio, ~ospite è la directory home dell'utente ospite, mentre -~/ospite è la directory ospite nella vostra home directory. -.PP -.I Directory precedente. -E' possibile saltare alla directory dove si era precedentemente usando -il nome directory speciale '\-' così: -.B cd \- -.PP -.I Directory CDPATH. -Se la directory indicata al comando -.B cd -non è nella directory corrente, il Midnight Commander userà il -valore della viariabile ambiente -.B CDPATH -per cercare la directory in ognuna delle directory nominate. -.PP -Per esempio si può impostare la variabile -.B CDPATH -a ~/src:/usr/src, permettendo di cambiare directory verso ognuna -delle directory presenti nelle directory ~/src e /usr/src da qualunque -parte nel file system (per esempio cd linux vi porterà in -/usr/src/linux). -.\"NODE " Macro Substitution" -.SH " Sostituzione di macro" -Quando si accede ad un -.\"LINK2" -menu utente\&, -.\"Edit Menu File" -o si esegue un -.\"LINK2" -comando dipendente dall'estensione\&, -.\"Edit Extension File" -o si esegue un comando dalla riga di ingresso, -viene eseguita una semplice sostituzione di macro. -.PP -Le macro sono: -.TP -.I "%i" -Indentazione di spazi, uguale alla colonna della -posizione del cursore. Solo per la modifica menu. -.TP -.I "%y" -Il tipo di sintassi del file corrente. Solo per la modifica menu. -.TP -.I "%k" -Nome del file di blocco. -.TP -.I "%e" -Nome del file di errore. -.TP -.I "%m" -Nome del menu corrente. -.TP -.IR "%f" e "%p" -Nome del file corrente. -.TP -.I "%x" -L'estensione del file corrente. -.TP -.I "%b" -Nome del file corrente ma senza estensione. -.TP -.I "%d" -Nome della directory corrente. -.TP -.I "%F" -Il file corrente nel pannello non selezionato. -.TP -.I "%D" -La directory corrente nel pannello non selezionato. -.TP -.I "%t" -I file attualmente marcati. -.TP -.I "%T" -I file attualmente marcati nel pannello non selezionato. -.TP -.IR "%u" e "%U" -Simili alle macro %t e %T, in aggiunta i file vengono deselezionati. -E' possibile usare questa macro solo una volta per voce di menu file -o per voce di file estensione, dato che la volta successiva non ci -saranno file marcati. -.TP -.IR "%s" e "%S" -I file selezionati se ce ne sono. Altrimenti il file corrente. -.TP -.I "%cd" -Questa è una macro speciale usata per cambiare la directory corrente -alla directory specificata di fronte ad essa. Usata principalmente -come interfaccia al -.\"LINK2" -file system virtuale\&. -.\"Virtual File System" -.TP -.I "%view" -Questa macro serve per invocare il visualizzatore interno. Può essere -usata da sola o con argomenti. Se si passa argomenti a questa macro, -questi dovrebbero essere racchiusi da parentesi. -.IP -Gli argomenti sono: -.I ascii -per forzare il visualizzatore in modo ascii; -.I hex -per forzare il visualizzatore in modo esadecimale; -.I nroff -per dire al visualizzatore che deve interpretare le sequenze di -grassetto e sottolineato di nroff; -.I unformatted -per dire al visualizzatore di non interpretare i comandi nroff -per rendere il testo grassetto o sottolineato. -.TP -.I "%%" -Il carattere % -.TP -.I "%{testo}" -Visualizza una richiesta di sostituzione. Viene mostrata una finestra -contenente il testo all'interno delle graffe. La macro viene sostituita -dal testo immesso dall'utente. L'utente può premere ESC o F10 per annullare. -Questa macro non funziona ancora sulla riga di comando. -.TP -.I "%var{ENV:default}" -Se la variabile di ambiente -.I ENV -non è impostata, la sostituzione prenderà -.IR default . -Altrimenti, verrà sostituito il valore di -.IR ENV . -.\"NODE " The subshell support" -.SH " Supporto alla subshell" -Il supporto alla subshell è una opzione di compilazione che lavora -con le seguenti shell: bash, tcsh e zsh. -.PP -Quando il codice di subshell è attivato il Midnight Commander -genererà un processo copia concorrente della shell (quella definita -dalla variabile -.B SHELL -e se non è definita, prenderà quella presente nel file /etc/passwd) -e lo eseguirà in un pseudo terminale; invece di invocare una nuova -shell ogniqualvolta si esegue un comando, il comando verrà passato -alla subshell come se lo si avesse battuto personalmente. Questo -permette di cambiare le variabili di ambiente, usare funzioni della -shell e definire alias che rimangono validi fintanto che non si -esca dal Midnight Commander. -.PP -Se si sta usando -.B bash -si può specificare comandi alla partenza della subshell nel file -~/.local/share/mc/bashrc e mappature speciali della tastiera nel file -~/.local/share/mc/inputrc. -.B tcsh -gli utenti possono specificare comandi alla partenza nel file -~/.local/share/mc/tcshrc. -.PP -Quando il codice della subshell viene utilizzato, si può sospendere -l'applicazione in ogni momento con la sequenza C\-o e saltare nuovamente -al Midnight Commander; se si interrompe un'applicazione, non si sarà -in grado di eseguire altri comandi esterni finché non si esce -dall'applicazione interrotta. -.PP -Una caratteristica aggiuntiva dell'usare la subshell è data dal -fatto che il prompt mostrato dal Midnight Commander sarà lo stesso -di quello utilizzato dalla shell. -.PP -La sezione -.\"LINK2" -OPZIONI -.\"OPTIONS" -contiene informazioni aggiuntive riguardo come controllare il codice -della subshell. -.\"NODE "Chmod" -.SH "Permessi" -La finestra Permessi serve a cambiare i bit di attributo in gruppi di -file o directory. La si può invocare con la combinazione di tasti C\-x c. -.PP -La finestra dei Permessi ha due parti \- -.I Permessi -e -.IR File . -.PP -La sezione File mostra il nome del file o della directory ed i suoi -permessi in forma ottale, oltre che il proprietario ed il gruppo. -.PP -Nella sezione Permessi c'è un set di caselle che corrispondono -agli attributi dei file. Come si cambia il bit di attributo, -si può vedere il valore in ottale aggiornato nella sezione File. -.PP -Per muoversi attraverso le sezioni (bottoni e caselle) usare i -.I tasti freccia -oppure -.IR Tab . -Per cambiare lo stato delle caselle o per selezionare un bottone -usare lo -.IR Spazio . -Si può usare anche i tasti di scelta rapida sui bottoni per attivarli -velocemente. I tasti di scelta rapida corrispondono alle lettere evidenziate -dei bottoni. -.PP -Per impostare i bit degli attributi, usare il tasto Invio. -.PP -Quando si lavora con un gruppo di file o directory, basta cliccare sui -bit che si vogliono impostare o cancellare. Una volta selezionati i bit -da cambiare, selezionare una delle azioni (Imposta marcati o Cancella -marcati). -.PP -Infine, per impostare gli attributi esattamente come specificato, usare -il tasto -.BR "[Imposta tutti]" , -che agisce su tutti i file marcati. -.PP -.B [Modifica tutti] -modifica solo gli attributi marcati su tutti i file. -.PP -.B [Imposta marcati] -pone a uno i bit marcati degli attributi di tutti i file selezionati. -.PP -.B [Cancella marcati] -pone a zero i bit marcati degli attributi di tutti i file selezionati. -.PP -.B [Imposta] -imposta gli attributi di un file. -.PP -.B [Cancella] -cancella il comando Permessi. -.\"NODE "Chown" -.SH "Proprietario" -Il comando proprietario serve a cambiare il proprietario/gruppo di un -file. Il tasto di scelta rapida per questo comando è C\-x o. -.\"NODE "Advanced Chown" -.SH "Proprietario avanzato" -Il comando Proprietario avanzato consiste nel comando -.\"LINK2" -permessi -.\"Chmod" -e -.\"LINK2" -proprietario -.\"Chown" -combinati assieme in una finestra. E' così possibile cambiare i permessi -ed il proprietario/gruppo dei file in un sol colpo. -.\"NODE "File Operations" -.SH "Operazioni sui file" -Quando si copia, sposta o cancella dei file il Midnight Commander -mostra la finestra di operazioni sui file. Essa mostra i file sui cui -si sta operando attualmente e ci possono essere fino a tre barre di -progressione. La barra file mostra quanta parte del file corrente è -stata copiata. La barra conteggio mostra quanti dei file selezionati -sono stati gestiti. La barra byte comunica quanto dell'ampiezza totale -dei file selezionati è stata elaborato. Se l'opzione operazioni prolisse -è deselezionata, non verranno mostrate la barra file e la barra byte. -.PP -Ci sono due bottoni sul fondo della finestra di dialogo. Premendo -il tasto Salta si salterà il resto del file. Premendo il tasto -Esci si bloccherà tutta l'operazione ed il resto dei file saranno -ignorati. -.PP -Ci sono tre altre finestre di dialogo che si possono incontrare -durante le operazioni sui file. -.PP -La finestra di dialogo di errore informa circa le condizioni di -errore ed ha tre scelte. Normalmente si seleziona il tasto -Salta per saltare il file o Esci per bloccare l'operazione. E' -possibile anche selezionare il tasto Riprova se nel frattempo si ha -risolto il problema da un'altro terminale. -.PP -La finestra di dialogo di rimpiazzo viene mostrata quando si tenta -di copiare o spostare un file sopra un file esistente. La finestra -mostra la data e la dimensione di tutti e due i file. Premere il -tasto Si per rimpiazzare il file, No per saltare il file, Tutti per -sovrascrivere tutti i file, Nessuno per non sovrascriverli mai e -Aggiorna per sovrascriverli solo se il file sorgente è più recente -del file di destinazione. E' possibile bloccare l'intera operazione -premendo il tasto Esci. -.PP -La finestra di dialogo della cancellazione ricorsiva appare quando -si tenta di cancellare una directory che non è vuota. Premere il -tasto Si per cancellare la directory ricorsivamente o No per -saltare la directory, il tasto Tutto per cancellare tutte le -directory non vuote e Nessuno per saltare tutte le directory non -vuote. Per fermare l'intera operazione premere il tasto Esci. -Se si seleziona il tasto Si o Tutto verrà richiesta una conferma. -Premere "si" solo se si è veramente sicuri di voler fare una -cancellazione ricorsiva. -.PP -Se si hanno dei file marcati e si esegue un'operazione su di essi, solo -i file sui quali l'operazione ha avuto successo verranno deselezionati. -I file su cui è fallita l'operazione o che sono stati saltati vengono -lasciati marcati. -.\"NODE "Mask Copy/Rename" -.SH "Maschera Copia/Rinomina" -L'operazione di copia/rinomina permette di cambiare il nomi dei file in -maniera semplice. Per farlo, è necessario specificare la maschera di -sorgente corretta e generalmente, nella parte finale della destinazione, -specificare alcuni caratteri jolly. -Tutti i file corrispondenti alla maschera sorgente sono -copiati/rinominati secondo la maschera destinazione. Se ci sono file -marcati, vengono rinominati solo i file marcati che corrispondono alla -maschera sorgente. -.PP -Queste le opzioni che possono essere impostate: -.PP -Segue i collegamenti, specifica se creare i collegamenti simbolici o no -(hard link), presenti nella directory sorgente (e ricorsivamente nelle -sue sotto directory) come nuovi collegamenti oppure se invece si -desidera che venga copiato il loro contenuto. -.PP -In una sottodir se esiste già, specifica cosa fare se nella -directory obiettivo esiste una directory con lo stesso nome del -file/directory in copia. L'azione predefinita è di copiare -il suo contenuto in quella directory, ma selezionando quest'opzione -si può copiare la directory sorgente in questa directory. -Forse un esempio aiuterà: -.PP -Si vuole copiare il contenuto di una directory pallo su /pinco/pallo, -che è una directory che esiste già. Normalmente (quando l'opzione -non è impostata), mc farebbe la copia in /pinco/pallo. Abilitando -quest'opzione verrà eseguita la copia in /pinco/pallo/pallo, perché -la directory esiste già. -.PP -Mantiene gli attributi, specifica se si vuole preservare i permessi -originali del file, le date e se si è l'utente root, gli attributi -UID e GID. Se quest'opzione non è impostata verrà rispettato il valore -corrente di umask. -.PP -.B "Usa i modelli della shell, opzione abilitata" -.PP -Quando l'opzione dei modelli della shell è abilitata è possibile usare -i caratteri jolly '*' e '?' nella maschera sorgente. Questi lavorano -come nella shell. Nella maschera obbiettivo sono permessi solo i caratteri -jolly '*' e '\\'. Il primo carattere jolly '*' nella maschera -obbiettivo corrisponde al primo gruppo di caratteri jolly nella maschera -sorgente, il secondo '*' al secondo gruppo e così via. Il carattere -jolly '\\1' corrisponde al primo gruppo di caratteri jolly nella maschera -sorgente, '\\2' corrisponde al secondo gruppo e così via fino al '\\9'. -Il carattere jolly '\\0' rappresenta tutto il nome del file sorgente. -.PP -Due esempi: -.PP -Se la maschera sorgente è "*.tar.gz", la destinazione è "/bla/*.tgz" e -il file da copiare è "foo.tar.gz", la copia sarà "foo.tgz" in "/bla". -.PP -Supponiamo si voglia scambiare la base e l'estensione di un file cosicché -"file.c" divenga "c.file" e così via. La maschera sorgente per questa -operazione sarà "*.*" e la destinazione sarà "\\2.\\1". -.PP -.B "Usa i modelli della shell, opzione disabilitata" -.PP -Quando l'opzione dei modelli della shell è disabilitata, MC non -esegue più il raggruppamento automatico. E' necessario usare -espressioni tipo '\\(...\\)' nella maschera sorgente per dare significato -ai caratteri jolly nella maschera obbiettivo. Altrimenti le maschere -obbiettivo si trovano nella situazione di quando i modelli della shell -sono abilitati. -.PP -Due esempi: -.PP -Se la maschera sorgente è "^\\(.*\\)\\.tar\\.gz$", la destinazione è -"/bla/*.tgz" e il file da copiare è "foo.tar.gz", la copia sarà -"/bla/foo.tgz". -.PP -Supponiamo che si voglia scambiare la base e l'estensione di un file -cosicché "file.c" divenga "c.file" e così via. La maschera sorgente per -questa operazione sarà "^\\(.*\\)\\.\\(.*\\)$" e la destinazione sarà -"\\2.\\1". -.PP -.B "Conversioni Maiuscole/Minuscole" -.PP -E' anche possibile cambiare tra maiuscole e minuscole i caratteri dei file. -Se si usa '\\u' o '\\l' nella maschera obbiettivo, il carattere successivo -sarà convertito rispettivamente in maiuscolo o minuscolo. -.PP -Se si usa '\\U' o '\\L' nella maschera obbiettivo, il caratteri successivi -saranno convertiti rispettivamente in maiuscolo o minuscolo fino alla -prossima corrispondenza di '\\E' o '\\U', '\\L' o alla fine del nome del file. -.PP -Notare che '\\u' e '\\l' sono più forti di '\\U' e '\\L'. -.PP -Per esempio, se la maschera sorgente è '*' (modelli della shell abilitati) -o '^\\(.*\\)$' (modelli della shell disabilitati) e la maschera obbiettivo -è '\\L\\u*' i nomi dei file saranno convertiti ad avere maiuscola iniziale -ed il resto minuscolo. -.PP -Si può usare '\\' come carattere di protezione. Per esempio, '\\\\' è -una barra retroversa e '\\*' è un asterisco. -.\"NODE "Internal File Viewer" -.SH "Visualizzatore di file interno" -Il visualizzatore di file interno fornisce due modalità di visualizzazione: -ASCII e esadecimale. Per passare da una modalità all'altra, usare il tasto F4. -Se si ha il programma GNU gzip installato, esso verrà usato automaticamente -per decomprimere i file al volo. -.PP -Il visualizzatore tenterà di usare il metodo migliore fornito dal sistema -o a seconda del tipo di file, per mostrare le informazioni. Il visualizzatore -interno interpreterà alcune sequenze di stringa per impostare gli attributi -di grassetto e sottolineato, per mostrare al meglio i file. -.PP -In modalità esadecimale, la funzione di ricerca accetta testo protetto e -costanti numeriche. Il testo protetto viene confrontato esattamente dopo -la rimozione della protezione. Ogni numero rappresenta un byte. E' possibile -mescolare testo protetto con costanti come nell'esempio: -.PP -.nf -"Stringa" \-1 0xBB 012 "ancora testo" -.fi -.PP -Notare che 012 è un numero ottale. \-1 viene convertito in 0xFF. -.PP -Ecco un'elenco di azioni associate ad ogni tasto che il Midnight Commander -gestisce nel visualizzatore di file interno. -.PP -.B F1 -Invoca il visualizzatore ipertestuale dell'aiuto. -.PP -.B F2 -Abilita/disabilita la funzione di a capo automatico. -.PP -.B F4 -Abilita/disabilita la modalità esadecimale. -.PP -.B F5 -Vai alla riga. Questo comando richiederà un numero di riga e mostrerà -quella riga. -.PP -.B F6, /. -Ricerca tramite espressione regolare. -.PP -.B ?, -Ricerca in ordine inverso, tramite espressione regolare. -.PP -.B F7 -Ricerca normale / ricerca in modalità esadecimale. -.PP -.B C\-s, F17, n. -Inizia una ricerca normale, se non c'era già un'espressione di -ricerca, altrimenti trova la prossima occorrenza. -.PP -.B C\-r. -Inizia una ricerca normale in ordine inverso, se non c'era già -un'espressione di ricerca, altrimenti trova la prossima occorrenza. -.PP -.B F8 -Cambia tra modalità Normale/Filtrata: questo mostrerà il file come si -trova su disco o se è stato specificato un filtro nel file mc.ext.ini, come -esce dal filtro. La modalità corrente è sempre quella diversa da quella -mostrata dall'etichetta del tasto, dato che il bottone rappresenta la -modalità nella quale si entra premendolo. -.PP -.B F9 -Cambia tra modalità non formattata e formattata: quando la modalità è -formattata, il visualizzatore interpreterà alcune sequenze di stringa -per rappresentare il grassetto e il sottolineato con colori diversi. -Anche per questa funzione, l'etichetta sul tasto rappresenta la modalità -non corrente. -.PP -.B F10, Esc. -Esce dal visualizzatore di file interno. -.PP -.B pagina\-giù, spazio, C\-v. -Sfoglia di una pagina in avanti. -.PP -.B pagina\-sù, M\-v, C\-b, backspace. -Sfoglia di una pagina indietro. -.PP -.B freccia\-in\-basso -Si sposta di una riga in avanti. -.PP -.B up\-key -Si sposta di una riga indietro. -.PP -.B C\-l -Ridisegna lo schermo. -.PP -.B C\-o -Passa alla subshell e mostra la schermata dei comandi. -.PP -.B "[n] m" -Imposta l'indice n. -.PP -.B "[n] r" -Salta all' indice n. -.PP -.B C\-f -Salta al file successivo. -.PP -.B C\-b -Salta al file precedente. -.PP -.B M\-r -Abilita/disabilita il righello. -.PP -E' anche possibile istruire il visualizzatore su come mostrare un file, -vedere la sezione -.\"LINK2" -modifica file estensioni\&. -.\"Edit Extension File" -.\"NODE "Internal File Editor" -.SH "Editor di file interno" -L'editor di file interno fornisce molte delle funzioni dei più -diffusi editor a pieno schermo. Viene invocato tramite -.B F4 -sempre che l'opzione -.I use_internal_edit -sia impostata nel file di inizializzazione. Esso ha un limite estensibile -di sedici megabyte e gestisce i file binari senza problemi. -.PP -Le funzioni che allo stato attuale supporta sono: copia, -spostamento, cancellazione, taglia e incolla di blocchi; -.IR "tasto per l'annullamento" ; -menu a discesa, inserimento file, definizione di macro, ricerca e -sostituzione di espressioni regolari; evidenziazione di testo maiuscole\-freccia -MSW\-MAC (solo per la console Linux); scambio tra inserimento\-rimpiazzo e -un'opzionale flusso di blocchi di testo attraverso comandi shell come indent. -.PP -L'editor è molto semplice da usare e non richiede apprendimento. -Per vedere cosa fanno i tasti, basta consultare il menu a -discesa appropriato. Gli altri tasti sono: maiusc + tasti freccia -produce la selezione del testo. -.B Ctrl\-Ins -copia nel file -.B mcedit.clip -e -.B Shift\-Ins -incolla da mcedit.clip. -.B Shift\-Del -taglia in -.BR mcedit.clip , -e -.B Ctrl\-Del -cancella il testo selezionato. -Funziona anche l'evidenziazione con il mouse che, come al solito, si può -utilizzare come in un normale terminale, premendo contemporaneamente -il tasto Maiuscole mentre si fa clic trascinando con il mouse. -.PP -Per definire una macro, premere -.B Ctrl\-R -poi premere i tasti che si voglia essere eseguiti. Premere nuovamente -.B Ctrl\-R -quando si ha finito. E' possibile assegnare una macro a qualsiasi tasto -si preme. La macro viene eseguita quando si preme -.B Ctrl\-A -e poi il tasto assegnato. La macro viene eseguita anche se si -preme il tasto Meta, Ctrl, o Esc e il tasto assegnato, basta che il tasto -non sia già assegnato a qualche altra funzione. Una volta definiti, i -macro comandi finiscono nel file -.B ~/.local/share/mc/mcedit/mcedit.macros -nella propria directory home. E' possibile cancellare una macro cancellando -la riga appropriata nel suddetto file. -.PP -.B F19 -formatterà il blocco evidenziato correntemente (testo, codice -.B C -o -.B C++ -o altro). Questo comportamento viene controllato dal file -.B %pkgdatadir%/edit.indent.rc -che viene copiato nel -.B ~/.local/share/mc/mcedit/edit.indent.rc -nella propria directory home la prima volta che lo si usa. -.PP -L'editor visualizza snche caratteri non\-americani (160+). Quando si modifica -file binari, si dovrebbe impostare -.B mostra bit -a 7 bit nel menu opzioni, per mantenere la spaziatura pulita. -.\"NODE "Completion" -.SH "Completamento" -Ovvero lascia che il Midnight Commander scriva per te. -.PP -Tentativi per eseguire un completamento del testo prima della posizione -corrente. MC tenta il completamento trattando il testo come una variabile -(se il testo comincia con -.BR $ ), -nomeutente (se il testo comincia con -.BR ~ ), -nomehost (se il testo comincia con -.BR @ ) -o comando (se si è sulla riga di comando nell'atto di battere un comando, -allora possibili completamenti includerebbero parole riservate e comandi -integrati della shell). Se nessuno di questi produce una corrispondenza, -viene tentato un completamento del nome del file. -.PP -Completamenti di nomefile, nomeutente, variabili e nomehost funzionano -su tutte le righe di ingresso, il completamento dei comandi invece è -specifico della riga di comando. -Se il completamento è ambiguo (ci sono più possibilità differenti), -MC emette un suono e l'azione seguente dipenderà a seconda delle impostazioni -dell'opzione -.I completamento: visualizza tutto -nella finestra -.\"LINK2" -configurazione\&. -.\"Configuration" -Se è abilitata, un elenco di tutte le possibilità viene mostrato vicino -alla posizione corrente per poter selezionare con i tasti freccia e -.B Invio -la voce corretta. Si può anche battere le prime lettere nelle quali le varie -possibilità differiscono per muoversi in un sottoinsieme di tutte le -possibilità e completare il più possibile. Se si preme nuovamente -.BR M\-Tab , -verrà mostrato solo il sottoinsieme nella finestra dell'elenco, altrimenti -la prima voce che corrisponde a tutti i caratteri precedenti verrà evidenziata. -Non appena non c'è più ambiguità, la finestra scompare, ma la si può nascondere -con i tasti di cancellamento -.BR Esc , -.B F10 -e i tasti di freccia sinistra e destra. Se -.\"LINK2" -completamento: visualizza tutto -.\"Configuration" -è disabilitato, la finestra viene mostrata solo se si preme -.B M\-Tab -una seconda volta; la prima volta MC emette solo un suono. -.\"NODE "Virtual File System" -.SH "File system virtuale" -Il Midnight Commander è provvisto di uno strato di codice per -accedere al file system; questo strato di codice è conosciuto anche -con il nome di commutazione di file system virtuale. La commutazione -del file system virtuale permette al Midnight Commander di manipolare -file all'interno di un file system non di tipo Unix. -.PP -Attualmente il Midnight Commander viene confezionato con alcuni File -System Virtuali (VFS): il file system locale, usato per accedere al -normale file system Unix; l'ftpfs, usato per manipolare file su sistemi -remoti con il protocollo FTP; il tarfs, usato per manipolare file tar -e file tar compressi; l'undelfs, usato per recuperare file cancellati -su file system di tipo ext2 (il file system predefinito per sistemi -Unix), fish (per manipolare file su connessioni shell come rsh e ssh) e -per ultimo l'mcfs (file system del Midnight Commander), un file system -basato sulla rete. -.PP -Il codice di commutazione di file system interpreta tutti i nomi di -percorso utilizzati e li dirige al file system corretto; il formato -utilizzato per ognuno di questi file system viene descritto più avanti -nella sezioni apposite. -.\"NODE " FTP File System" -.SH " File system FTP" -Il file system FTP (ftpfs) permette di manipolare file su macchine remote. -Per utilizzarlo, si può usare il pannello del comando -.I Connessione FTP -(accessibile dalla barra dei menu) oppure si può cambiare direttamente -la directory corrente con un comando -.I cd -verso un percorso simile al seguente: -.PP -.I ftp://[!][utente[:pass]@]macchina[:porta]/[dir\-remota] -.PP -Gli elementi -.IR utente , -.I porta -e -.I dir\-remota -sono opzionali. Se si specifica l'elemento -.IR utente , -allora il Midnight Commander tenterà di collegarsi alla macchina remota -come quell'utente, altrimenti userà il vostro nome di login o il nome -di login prelevato dal file -.IR ~/.netrc . -L'elemento opzionale -.I pass -è la parola d'ordine per la connessione. L'uso della password nel nome VFS -della directory non è raccomandabile, dato che può apparire sullo schermo in -chiaro e può essere salvato nella cronologia directory. -.PP -Per abilitare l'uso del proxy FTP, anteporre -.B ! -(un punto esclamativo) al nome host. -.PP -Esempi: -.PP -.nf - ftp://ftp.nuclecu.unam.mx/linux/local - ftp://tsx\-11.mit.edu/pub/linux/packages - ftp://!dietro.il.firewall.edu/pub - ftp://guest@host\-remoto.com:40/pub - ftp://miguel:xxx@server/pub -.fi -.PP -Controllare la finestra di dialogo -.\"LINK2" -file system virtuale -.\"Virtual FS" -per le opzioni ftpfs. -.\"NODE " Tar File System" -.SH " File system Tar" -Il file system tar fornisce un accesso in sola lettura ai file tar -e tar compressi usando il comando chdir. Per cambiare la directory corrente -al file tar usare la seguente sintassi: -.PP -.I /nomefile.tar/utar://[dir\-dentro\-tar] -.PP -Il file mc.ext.ini già fornisce un collegamento per il file tar; ciò -significa che normalmente basta selezionare un file tar e premere invio -per entrare nel file tar, vedere la sezione -.\"LINK2" -modifica file estensioni -.\"Edit Extension File" -per i dettagli su come questo viene fatto. -.PP -Esempi: -.PP -.nf - mc\-3.0.tar.gz/utar://mc\-3.0/vfs - /ftp/GCC/gcc\-2.7.0.tar/utar:// -.fi -.PP -L'ultima riga, specifica il percorso completo dell'archivio tar. -.\"NODE " FIle transfer over SHell filesystem" -.SH " Trasferimento di file su FIlesystem di SHell (FISH)" -Il file system fish è un file system basato sulla rete che permette di -manipolare i file di una macchina remota come fossero locali. Per usarlo, -l'altra parte deve avere un server fish o avere una shell compatibile -bash. -.PP -Per collegarsi ad una macchina remota, basta solo fare cd -in una speciale directory il cui nome ha il seguente formato: -.PP -.nf -sh://[utente@]macchina[:opzioni]/[dir\-remota] -.fi -Gli elementi -.IR utente , -.I opzioni -e -.I dir\-remota -sono opzionali. Se si specifica l'elemento -.I utente -allora il Midnight Commander tenterà di connettersi alla macchina remota -con quell'utente, altrimenti userà il nome di login. -.PP -Le -.I opzioni -sono 'C' \- usa la compressione e 'rsh' per usare rsh invece -di ssh. Se l'elemento -.I dir\-remota -è presente, la directory corrente sulla macchina remota sarà impostata -a questo valore. -.PP -Esempi: -.PP -.nf - sh://solorsh.mx:r/linux/locale - sh://joe@vuole.lacompressione.edu:C/privato - sh://joe@noncompresso.ssh.edu/privato -.fi -.\"NODE " Undelete File System" -.SH " Recupero file cancellati" -Su sistemi Linux, se si richiede, tramite configure, di usare la -caratteristica di undelete del file system ext2, si avrà accesso al -file system di recupero file cancellati. Il recupero file cancellati è -disponibile solo su file system di tipo ext2. Il file system è solo -un'interfaccia alla libreria ext2fs che: recupera tutti i nomi dei -file cancellati su un fs ext2 e fornisce ed estrae i file selezionati -in una partizione normale. -.PP -Per usare questo file system, è necessario entrare nella directory -con il nome speciale formato dal prefisso "undel://" e dal nome del -file system dove il file risiede. -.PP -Per esempio, per recuperare file cancellati sulla seconda partizione -del primo disco SCSI su Linux, si dovrà usare il seguente percorso: -.PP -.nf - undel://sda2 -.fi -.PP -Il recupero può metterci un po' di tempo per caricare le informazioni -necessarie per poter cominciare a navigare attraverso i file. -.\"NODE " EXTernal File System" -.SH " EXTernal File System" -.B extfs -allows to integrate numerous features and file types into GNU Midnight -Commander in an easy way, by writing scripts. -.PP -Extfs filesystems can be divided into two categories: -.PP -1. Stand\-alone filesystems, which are not associated with any existing -file. They represent certain system\-wide data as a directory tree. -You can invoke them by typing -.RI ' "cd fsname://" ' -where fsname is an extfs short name (see below). Examples of such -filesystems include audio (list audio tracks on the CD) or apt (list of -all Debian packages in the system). -.PP -For example, to list CD\-Audio tracks on your CD\-ROM drive, type -.PP -.nf - cd audio:// -.fi -.PP -2. 'Archive' filesystems (like rpm, patchfs and more), which represent -contents of a file as a directory tree. It can consist of 'real' files -compressed in an archive (urar, rpm) or virtual files, like messages -in a mailbox (mailfs) or parts of a patch (patchfs). To access such -filesystems -.RI ' fsname:// ' -should be appended to the archive name. Note that the archive itself -can be on another vfs. -.PP -For example, to list contents of a zip archive documents.zip type -.PP -.nf - cd documents.zip/uzip:// -.fi -.PP -In many aspects, you could treat extfs like any other directory. For -instance, you can add it to the hotlist or change to it from directory -history. An important limitation is that you cannot invoke shell -commands inside extfs, just like any other non\-local VFS. -.PP -Common extfs scripts included with Midnight Commander are: -.TP -.B a -access 'A:' DOS/Windows diskette -.RI ( "cd a://" ). -.TP -.B apt -front end to Debian's APT package management system -.RI ( "cd apt://" ). -.TP -.B audio -audio CD ripping and playing -.RI ( "cd audio://" -or -.IR "cd device/audio://" ). -.TP -.B bpp -package of Bad Penguin GNU/Linux distribution -.RI ( "cd file.bpp/bpp://" ). -.TP -.B deb -package of Debian GNU/Linux distribution -.RI ( "cd file.deb/deb://" ). -.TP -.B dpkg -Debian GNU/Linux installed packages -.RI ( "cd deb://" ). -.TP -.B hp48 -view and copy files to/from a HP48 calculator -.RI ( "cd hp48://" ). -.TP -.B lslR -browsing of lslR listings as found on many FTPs -.RI ( "cd filename/lslR://" ). -.TP -.B mailfs -mbox\-style mailbox files support -.RI ( "cd mailbox/mailfs://" ). -.TP -.B patchfs -extfs to handle unified and context diffs -.RI ( "cd filename/patchfs://" ). -.TP -.B rpm -RPM package -.RI ( "cd filename/rpm://" ). -.TP -.B rpms -RPM database management -.RI ( "cd rpms://" ). -.TP -.B ulha, urar, uzip, uzoo, uar, uha -archivers -.RI ( "cd archive/xxxx://" -where xxxx is one of: -.IR ulha , -.IR urar , -.IR uzip , -.IR uzoo , -.IR uar , -.IR uha ). -.PP -You could bind file type/extension to specified extfs as described in the -.\"LINK2" -Edit Extension File -.\"Edit Extension File" -section. Here is an example entry for Debian packages: -.PP -.nf - regex/\.deb$ - Open=%cd %p/deb:// -.fi -.\"NODE "Colors" -.SH "Colori" -Il Midnight Commander tenta di stabilire se il terminale corrente -supporta i colori usando il database dei terminali e il nome del -terminale corrente. Capita che possa sbagliarsi, perciò si può essere -costretti a forzare la modalità a colori o a disabilitarla usando -rispettivamente le opzioni \-c e \-b. -.PP -Se il programma è compilato con il manager dello schermo S\-Lang invece -che ncurses, controllerà se è impostata anche la variabile -.B COLORTERM, -con lo stesso effetto dell'opzione \-c. -.PP -E' possibile specificare i terminali su cui si vuole forzare sempre -la modalità colore aggiungendo la variabile -.I color_terminals -nella sezione Colors del file di inizializzazione. -Questo previene il Midnight Commander dal tentare di controllare se -il terminale supporta i colori. Per esempio: -.nf -[Colors] -color_terminals=linux,xterm -.fi -.nf -color_terminals=nome_terminale\-1,nome\-terminale\-2... -.fi -.PP -Il programma può essere compilato sia con il supporto di ncurses che -di S\-Lang ma ncurses non fornisce alcun modo per forzare la modalità -colore: ncurses userà solo le informazioni nel database dei terminali. -.PP -Il Midnight Commander fornisce un modo per cambiare i colori predefiniti. -Attualmente i colori sono configurati usando la variabile ambiente -.B MC_COLOR_TABLE -o la sezione Colors nel file di inizializzazione. -.PP -Nella sezione Colors, la mappa dei colori predefinita viene caricata -dalla variabile -.IR base_color . -Si può specificare una mappa colori alternativa per un terminale -usando il nome del terminale come chiave nella sezione. Esempio: -.PP -.nf -[Colors] -base_color= -xterm=menu=magenta:marked=,magenta:markselect=,red -.fi -.PP -Il formato della definizione dei colori è: -.PP -.nf - =,:= ... -.fi -.PP -I colori sono opzionali e le parolechiave sono: normal, selected, marked, -markselect, errors, input, reverse, gauge. I colori dei menu sono: menunormal, -menusel, menuhot, menuhotsel, menuinactive. I colori delle finestre di -dialogo sono: dnormal, dfocus, dhotnormal, dhotfocus. I colori dell'aiuto -sono: helpnormal, helpitalic, helpbold, helplink, helpslink. -Il colore del visualizzatore è: viewunderline. -Colori speciali di evidenziazione: executable, directory, link, device, -special, core. -I colori dell'viewer sono: viewnormal, viewbold, viewunderline, viewselected. -I colori dell'editor sono: editnormal, editbold, editmarked, editnonprintable. -.PP -.I input -determina il colore delle righe di input usate delle finestre di dialogo. -.PP -.I gauge -determina il colore della parte riempita della barra di progressione -(gauge), che mostra quanta percentuale del file è stata copiata o -altro in forma grafica. -.PP -Le finestre di dialogo usano i colori seguenti: -.I dnormal -usata per il testo normale, -.I dfocus -è il colore usato per il componente correntemente selezionato, -.I dhotnormal -è il colore usato per differenziare il tasto di scelta rapida -nei componenti normali, mentre il colore -.I dhotfocus -viene usato per il colore evidenziato nel componente correntemente -selezionato. -.PP -I menu usano lo stesso schema ma usano invece i selettori menunormal, menusel, -menuhot, menuhotsel e menuinactive. -.PP -L'aiuto usa i seguenti colori: -.I helpnormal -viene usato per il testo normale, -.I helpitalic -viene usato per il testo enfatizzato con il corsivo nelle pagine del manuale, -.I helpbold -viene usato per il testo enfatizzato con il grassetto nelle pagine del manuale, -.I helplink -viene usato per un collegamento non selezionato e -.I helpslink -viene usato per un collegamento selezionato. -.PP -I colori speciali di evidenziazione determinano come i file -vengono visualizzati quando l'evidenziazione dei file è -abilitata (vedere sezione -.\"LINK2" -aspetto\&). -.\"Layout -.I directory -usata per directory o collegamenti simbolici a directory; -.I executable -per il file eseguibili; -.I link -viene usata per i collegamenti simbolici che non sono nè interrotti -nè connessi a directory; -.I stalelink -usata per collegamenti simbolici interrotti; -.I device -\- dispositivi a caratteri e blocchi; -.I special -usata per i file speciali, come pipe e socket; -.I core -usata per i file core. -.PP -I colori possibili sono: black, gray, red, brightred, green, -brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta, -cyan, brightcyan, lightgray e white. Inoltre c'è una speciale parola -chiave per lo sfondo trasparente. Essa è 'default'. Il 'default' può -essere usato solo come colore di sfondo. Esempio: -.nf -[Colors] -base_color=normal=white,default:marked=magenta,default -.fi -.\"NODE "Special Settings" -.SH "Impostazioni speciali" -Molte delle impostazioni del Midnight Commander possono essere cambiate -dai menu. Comunque, c'è un piccolo numero di impostazioni che possono -essere cambiate solo agendo sul file di configurazione. -.PP -Queste sono le variabili che possono essere impostate nel file ~/.config/mc/ini: -.TP -.I clear_before_exec -Il valore predefinito del Midnight Commander è di cancellare lo schermo -prima dell'esecuzione di un comando. Se si preferisce vedere il risultato -di un comando in fondo allo schermo, si modifichi la copia locale del file -~/.config/mc/ini e si cambi il valore del campo clear_before_exec a 0. -.TP -.I confirm_view_dir -Se si preme F3 su di una directory, normalmente MC entra nella directory. -Se questa opzione è impostata a 1, MC chiederà una conferma prima di -cambiare directory se si hanno dei file marcati. -.TP -.I ftpfs_retry_seconds -Questo valore è il numero di secondi che il Midnight Commander aspetta -prima di tentare di riconnettersi ad un ftp server che ha negato -l'autenticazione. Se il valore è zero, l'autenticazione non verrà ritentata. -.TP -.I max_dirt_limit -Specifica al massimo quanti aggiornamenti possono essere saltati nel -visualizzatore di file interno. Normalmente questo valore non è -significativo, dato che il codice automaticamente aggiusta il numero -da saltare a seconda della velocità con cui arrivano le pressioni dei -tasti. Comunque, su macchine molto lente o su terminali con un'auto -ripetizione dei tasti molto veloce, un grande valore può rendere gli -aggiornamenti dello schermo troppo instabili. -.IP -Sembra che impostare max_dirt_limit a 10 porta i migliori risultati, -e questo è il valore predefinito. -.TP -.I mouse_move_pages -Controlla il fatto che lo scorrimento con il mouse sui pannelli sia fatto -per pagine o per righe. -.TP -.I mouse_move_pages_viewer -Controlla se lo scorrimento del mouse nel visualizzatore di file interno -sia fatto per pagine o per righe. -.TP -.I old_esc_mode -Normalmente il Midnight Commander tratta il tasto ESC come un prefisso -(old_esc_mode=0), ma se si imposta quest'opzione (old_esc_mode=1), -allora il tasto ESC agirà come un tasto di prefisso per un secondo, e -se non vengono premuti altri tasti, allora il tasto ESC sarà interpretato -come un tasto di cancellazione (ESC ESC). -.TP -.I only_leading_plus_minus -Permette una gestione speciale per '+', '\-', '*' nella riga di comando -(selezione, deselezione, selezione inversa) solo se la riga di comando è -vuota. Non è necessario proteggere questi caratteri nel mezzo della riga -di comando ma non è possibile cambiare selezione se la riga di comando -non è vuota. -.TP -.I panel_scroll_pages -Se impostata (valore predefinito), i pannelli scorrono di metà -quando il cursore raggiunge la fine o l'inizio del pannello, -altrimenti scorrono di un file per volta. -.TP -.I show_output_starts_shell -Questa variabile lavora solo se non si sta usando il supporto della -subshell. Quando si usano i tasti C\-o per tornare allo schermo utente, -se quest'opzione è impostata, si avrà una nuova shell. Altrimenti, -premendo qualsiasi tasto si tornerà al Midnight Commander. -.TP -.I torben_fj_mode -Se quest'opzione è impostata, allora i tasti inizio e fine lavoreranno -leggermente differentemente sui pannelli. Invece che muovere le selezioni -al primo e ultimo file del pannello, agiranno nel modo seguente: -.IP -Il tasto inizio: va alla riga centrale, se sotto di essa, altrimenti -va alla riga in cima a meno che non ci sia già; in tal caso andrà al -primo file del pannello. -.IP -Il tasto fine ha un comportamento simile: va giù alla riga centrale -se era sopra di essa, altrimenti va alla riga di fondo a meno che non -ci sia già; in tal caso sposterà la selezione all'ultimo file del -pannello. -.TP -.I use_file_to_guess_type -Se questa variabile è abilitata (valore predefinito) userà il comando -file per trovare delle corrispondenze sui tipi di file elencati nel -.\"LINK2" -file mc.ext.ini\&. -.\"Edit Extension File" -.TP -.I xtree_mode -Se questa variabile è impostata (il valore predefinito è no) quando -si naviga il file system su un pannello ad albero, automaticamente -ricaricherà l'altro pannello con il contenuto della directory -selezionata. -.\"NODE "Terminal databases" -.SH "Database di terminali" -Il Midnight Commander fornisce una maniera per correggere il database -dei terminali si sistema senza richiedere i privilegi di -amministratore (root). Il Midnight Commander ricerca nel file di -inizializzazione di sistema (il file mc.lib collocato nella directory -di libreria del Midnight Commander) e nel file ~/.config/mc/ini la sezione -"terminal:nome\-del\-terminale\-in\-uso" e poi la sezione "terminal:general", -ogni riga della sezione contiene il simbolo chiave che si vuol definire, -seguito da un segno di uguale e la definizione per quel tasto. -E' possibile usare la forma speciale \\e per rappresentare il carattere -di escape e ^x per rappresentare il carattere control\-x. -.PP -I simboli chiave possibili sono: -.PP -.nf -f0 a f20 tasti funzione f0\-f20 -bs backspace -home tasto inizio -end tasto fine -up tasto freccia in su -down tasto freccia in giù -left tasto freccia a sinistra -right tasto freccia a destra -pgdn tasto pagina in giù -pgup tasto pagina in su -insert tasto inserimento -delete tasto cancellazione -complete per fare il completamento -.fi -.PP -Per esempio, per definire il tasto di inserimento come escape + [ + O + p -impostare il seguente nel file ini: -.PP -.nf -insert=\\e[Op -.fi -.PP -Il tasto di -.I completamento -rappresenta le sequenze di escape usate per invocare il processo di -completamento, invocato tramite M\-tab, ma ridefinibile ad altri tasti -per fare lo stesso lavoro (su quelle tastiere con tonnellate di -simpatici tasti dappertutto). -.SH "" -.\"NODE "FILES" -.SH "FILE" -Il programma recupera tutte le informazioni relative al proprio funzionamento -dalla variabile ambiente -.BR MC_DATADIR , -e se la variabile non è impostata, passerà alla directory %pkgdatadir% . -.PP -.I %pkgdatadir%/help/mc.hlp -.IP -Il file di aiuto per il programma. -.PP -.I %pkgdatadir%/mc.ext.ini -.IP -Il file delle estensioni di sistema predefinito. -.PP -.I ~/.config/mc/mc.ext.ini -.IP -Le estensioni dell'utente, la configurazione del visualizzatore e -dell'editor di file. Se presenti, questi file si sovrappongono ai file di -sistema. -.PP -.I %pkgdatadir%/mc.ini -.IP -La configurazione di sistema predefinita per il Midnight Commander, usata solo -se l'utente non possiede il proprio file ~/.config/mc/ini. -.PP -.I %pkgdatadir%/mc.lib -.IP -Le impostazioni globali per il Midnight Commander. La modifica di questo -file influisce su tutti gli utenti, che abbiano o no il file ~/.config/mc/ini . -Attualmente vengono caricate solo le -.\"LINK2" -impostazioni del terminale -.\"Terminal databases" -da mc.lib. -.PP -.I ~/.config/mc/ini -.IP -La configurazione dell'utente. Se questo file è presente, la configurazione -viene caricata da qui invece che dal file di sistema. -.PP -.I %pkgdatadir%/hints/mc.hint -.IP -Questo file contiene i suggerimenti (dritte) mostrate dal programma. -.PP -.I %pkgdatadir%/mc.menu -.IP -Questo file contiene il menu di sistema per le applicazioni. -.PP -.I ~/.config/mc/menu -.IP -Il menu utente per le applicazioni. Se presente viene usato al posto -del menu delle applicazioni di sistema. -.PP -.I ~/.cache/mc/Tree -.IP -L'elenco di directory per l'albero directory e per la vista ad albero. -.PP -.I ./.mc.menu -.IP -Menu locale definito dall'utente. Se questo file è presente viene usato -al posto del menu delle applicazioni utente o di sistema. -.PP -To change default home directory of MC, you can use -.BR MC_PROFILE_ROOT -environment variable. The value of MC_PROFILE_ROOT must be an absolute path. -If MC_PROFILE_ROOT is unset or empty, HOME variable is used. If HOME is unset -or empty, MC directories are get from GLib library. -.\"SKIP_SECTION" -.SH "LICENZA" -Questo programma è distribuito sotto i termini della Licenza Generale -GNU come pubblicata dalla Free Software Foundation. Vedere l'aiuto integrato -per i dettagli sulla licenza e sulla mancanza di garanzie. -.\"NODE "AVAILABILITY" -.SH "REPERIBILITA'" -L'ultima versione di questo programma si trova su -http://ftp.midnight\-commander.org/. -.\"NODE "SEE ALSO" -.SH "VEDERE ANCHE" -ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1), -tcsh(1), zsh(1). -.PP -.nf -La pagina Web del Midnight Commander: - https://www.midnight\-commander.org/ -.fi -.\"NODE "AUTHORS" -.SH "AUTORI" -Miguel de Icaza (miguel@ximian.com), Janne Kukonlehto -(jtklehto@paju.oulu.fi), Radek Doulik (rodo@ucw.cz), Fred -Leeflang (fredl@nebula.ow.org), Dugan Porter (dugan@b011.eunet.es), -Jakub Jelinek (jj@sunsite.mff.cuni.cz), Ching Hui -(mr854307@cs.nthu.edu.tw), Andrej Borsenkow (borsenkow.msk@sni.de), -Norbert Warmuth (nwarmuth@privat.circular.de), -Mauricio Plaza (mok@roxanne.nuclecu.unam.mx), Paul Sheer -(psheer@icon.co.za), Pavel Machek (pavel@ucw.cz) e Pavel Roskin -(proski@gnu.org) sono gli sviluppatori di questo pacchetto. -Alessandro Rubini (rubini@ipvvis.unipv.it) ha dato un notevole -contribuito nella correzione e nel miglioramento del supporto del -mouse nel programma, John Davis (davis@space.mit.edu) ha reso -disponibile la sua libreria S\-lang sotto la licenza GPL e ha risposto -alle mie domande su di essa; le seguenti persone hanno contribuito -al codice e in molte correzioni (in ordine alfabetico): -.PP -Adam Tla/lka (atlka@sunrise.pg.gda.pl), -alex@bcs.zp.ua (Alex I. Tkachenko), Antonio Palama, -DOS port (palama@posso.dm.unipi.it), Erwin van Eijk -(wabbit@corner.iaf.nl), Gerd Knorr (kraxel@cs.tu\-berlin.de), -Jean\-Daniel Luiset (luiset@cih.hcuge.ch), Jon Stevens -(root@dolphin.csudh.edu), Juan Francisco Grigera, port su piattaforma Win32 -(j\-grigera@usa.net), Juan Jose Ciarlante (jjciarla@raiz.uncu.edu.ar), -Ilya Rybkin (rybkin@rouge.phys.lsu.edu), Marcelo Roccasalva -(mfroccas@raiz.uncu.edu.ar), Massimo Fontanelli (MC8737@mclink.it), -Sergey Ya. Korshunoff (seyko2@gmail.com), Thomas Pundt -(pundtt@math.uni\-muenster.de), Timur Bakeyev -(timur@goff.comtat.kazan.su), Tomasz Cholewo -(tjchol01@mecca.spd.louisville.edu), Torben Fjerdingstad -(torben.fjerdingstad@uni\-c.dk), Vadim Sinolitis (vvs@nsrd.npi.msu.su) -e Wim Osterholt (wim@djo.wtm.tudelft.nl). -.\"NODE "BUGS" -.SH "BACHI" -Vedere il file TODO nella distribuzione per informazioni su -quello che rimane ancora da fare. -.PP -Se si vuole fare un rapporto di un problema nel programma, si prega di -spedire un messaggio di posta a questo indirizzo: -mc\-devel@lists.midnight-commander.org. -.PP -Nel rapporto è necessario fornire una descrizione dettagliata del baco, -la versione del programma (mc \-v mostra quest'informazione), il sistema -operativo su cui si sta facendo girare il programma e, se il programma -va in crash, è gradita una traccia dello stack. - diff --git a/recipes/wip/files/mc/source/doc/man/mc.1.in b/recipes/wip/files/mc/source/doc/man/mc.1.in deleted file mode 100644 index ebce30ef6e..0000000000 --- a/recipes/wip/files/mc/source/doc/man/mc.1.in +++ /dev/null @@ -1,4401 +0,0 @@ -.\" -*- mode: troff; coding: UTF-8 -*- -.\"TOPICS "Topics:" -.TH MC 1 "%DATE_OF_MAN_PAGE%" "MC Version %MAN_VERSION%" "GNU Midnight Commander" -.\"SKIP_SECTION" -.SH "NAME" -mc \- Visual shell for Unix\-like systems. -.\"SKIP_SECTION" -.SH "SYNOPSIS" -.B mc -[\-abcCdfhPstuUVx] [\-l log] [dir1 [dir2]] [\-e [file] ...] [\-v file] -.\"NODE "DESCRIPTION" -.SH "DESCRIPTION" -GNU Midnight Commander is a directory browser/file manager for -Unix\-like operating systems. -.\"NODE "OPTIONS" -.\"DONT_SPLIT" -.SH "OPTIONS" -.TP -.I \-a, \-\-stickchars -Disable usage of graphic characters for line drawing. -.TP -.I \-b, \-\-nocolor -Force black and white display. -.TP -.I \-c, \-\-color -Force color mode, please check the section -.\"LINK2" -Colors -.\"Colors" -for more information. -.TP -.I \-C arg, \-\-colors=arg -Specify a different color set in the command line. The format of arg is -documented in the -.\"LINK2" -Colors -.\"Colors" -section. -.TP -.I \-\-configure\-options -Display configure options. -.TP -.I \-d, \-\-nomouse -Disable mouse support. -.TP -.I \-e [file], \-\-edit[=file] -Start the internal editor. If the file is specified, open it on -startup. See also -.BR "mcedit (1)" . -.TP -.I \-f, \-\-datadir -Display the compiled\-in search paths for Midnight Commander files. -.TP -.I \-F, \-\-datadir\-info -Display extended info about compiled\-in paths for -Midnight Commander. -.TP -.I \-g, \-\-oldmouse -Force a "normal tracking" mouse mode. Used when running on -xterm\-capable terminals (tmux/screen). -.TP -.I \-k, \-\-resetsoft -Reset softkeys to their default from the termcap/terminfo -database. Only useful on HP terminals when the function keys don't work. -.TP -.I \-K file, \-\-keymap=file -Specify a name of keymap file in the command line. -.TP -.I \-l file, \-\-ftplog=file -Save the ftpfs dialog with the server in file. -.TP -.I \-\-nokeymap -Don't load key bindings from any file, use default hardcoded keys. -.TP -.I \-P file, \-\-printwd=file -Print the last working directory to the specified file. This option is -not meant to be used directly. Instead, it's used from a special shell -script that automatically changes the current directory of the shell to -the last directory Midnight Commander was in. Source the file -.B %pkglibexecdir%/mc.sh -(bash and zsh users) or -.B %libexecdir%/mc.csh -(tcsh users) respectively to define -.B mc -as an alias to the appropriate shell script. -.TP -.I \-s, \-\-slow -Turn on the slow terminal mode, in this mode the program will not draw -expensive line drawing characters and will toggle verbose mode off. -.TP -.I \-S arg, \-\-skin=arg -Specify a name of skin in the command line. Technology of skins is -documented in the -.\"LINK2" -Skins -.\"Skins" -section. -.TP -.I \-t, \-\-termcap -Used only if the code was compiled with S\-Lang and terminfo: it makes -Midnight Commander use the value of the -.B TERMCAP -variable for the terminal information instead of the information on -the system wide terminal database -.TP -.I \-u, \-\-nosubshell -Disable use of the concurrent shell (only makes sense if Midnight -Commander has been built with concurrent shell support). -.TP -.I \-U, \-\-subshell -Enable use of the concurrent shell support (only makes sense if the -Midnight Commander was built with the subshell support set as an -optional feature). -.TP -.I \-v file, \-\-view=file -Start the internal viewer to view the specified file. See also -.BR "mcview (1)" . -.TP -.I \-V, \-\-version -Display the version of the program. -.TP -.I \-x, \-\-xterm -Force xterm mode. Used when running on xterm\-capable terminals (two -screen modes, and able to send mouse escape sequences). -.TP -.I \-X, \-\-no\-x11 -Do not use X11 to get the state of modifiers Alt, Ctrl, Shift -.PP -If both paths are specified, the first path name is the directory to show -in the active panel; the second path name is the directory to be shown in -the other panel. -.PP -If one path is specified, the path name is the directory to show -in the active panel; value of "other_dir" from panels.ini is the directory -to be shown in the passive panel. -.PP -If no paths are specified, current directory is shown in the active panel; -value of "other_dir" from panels.ini is the directory to be shown in -the passive panel. -.\"NODE "Overview" -.SH "Overview" -The screen of Midnight Commander is divided into four parts. -Almost all of the screen space is taken up by two directory panels. -By default, the second line from the bottom of the screen is the -shell command line, and the bottom line shows the function key labels. -The topmost line is the -.\"LINK2" -menu bar line\&. -.\"Menu Bar" -The menu bar line may not be visible, but appears if you click the -topmost line with the mouse or press the F9 key. -.PP -Midnight Commander provides a view of two directories at the same -time. One of the panels is the current panel (a selection bar is in -the current panel). Almost all operations take place on the current -panel. Some file operations like Rename and Copy by default use the -directory of the unselected panel as a destination (don't worry, they -always ask you for confirmation first). For more information, see the -sections on the -.\"LINK2" -Directory Panels\&, -.\"Directory Panels" -the -.\"LINK2" -Left and Right Menus -.\"Left and Right Menus" -and the -.\"LINK2" -File Menu\&. -.\"File Menu" -.PP -You can execute system commands from Midnight Commander by simply -typing them. Everything you type will appear on the shell command line, -and when you press Enter, Midnight Commander will execute the -command line you typed; read the -.\"LINK2" -Shell Command Line -.\"Shell Command Line" -and -.\"LINK2" -Input Line Keys -.\"Input Line Keys" -sections to learn more about the command line. -.\"NODE "Mouse Support" -.SH "Mouse Support" -Midnight Commander comes with mouse support. It is activated -whenever you are running on an -.B xterm(1) -terminal (it even works if you take a telnet, ssh or rlogin connection to -another machine from the xterm) or if you are running on a Linux -console and have the -.B gpm -mouse server running. -.PP -When you left click on a file in the directory panels, that file is -selected; if you click with the right button, the file is marked (or -unmarked, depending on the previous state). -.PP -Double\-clicking on a file will try to execute the command if it is -an executable program; and if the -.\"LINK2" -extension file -.\"Edit Extension File" -has a program specified for the file's extension, the specified -program is executed. -.PP -Also, it is possible to execute the commands assigned to the function -key labels by clicking on them. -.PP -The default auto repeat rate for the mouse buttons is 400 -milliseconds. This may be changed to other values by editing the -.\"LINK2" -\&~/.config/mc/ini -.\"Save Setup" -file and changing the -.I mouse_repeat_rate -parameter. -.PP -If you are running Midnight Commander with the mouse support, you -can get the default mouse behavior (cutting and pasting text) by holding -down the Shift key. -.SH "" -.\"NODE "Keys" -.SH "Keys" -Some commands in Midnight Commander involve the use of the -.I Control -(sometimes labeled CTRL or CTL) and the -.I Meta -(sometimes labeled ALT or even Compose) keys. In this manual we will -use the following abbreviations: -.TP -.B C\- -means hold the Control key while typing the character . -Thus C\-f would be: hold the Control key and type f. -.TP -.B Alt\- -means hold the Meta or Alt key down while typing . -If there is no Meta or Alt key, type -.IR Esc , -release it, then type the character . -.TP -.B S\- -means hold the Shift key down while typing . -.PP -All input lines in Midnight Commander use an approximation to -the GNU Emacs editor's key bindings (default). -.PP -You may redefine key bindings. See -.\"LINK2" -.I redefine hotkey bindings -.\"Keys_redefine" -.PP -for more info. All other key bindings (described in this manual) are relative -to default behavior. - -.PP -There are many sections which tell about the keys. The following are -the most important. -.PP -The -.\"LINK2" -File Menu -.\"File Menu" -section documents the keyboard shortcuts for the commands appearing in -the File menu. This section includes the function keys. Most of these -commands perform some action, usually on the selected file or the -tagged files. -.PP -The -.\"LINK2" -Directory Panels -.\"Directory Panels" -section documents the keys which select a file or tag files as a -target for a later action (the action is usually one from the file -menu). -.PP -The -.\"LINK2" -Shell Command Line -.\"Shell Command Line" -section list the keys which are used for entering and editing command -lines. Most of these copy file names and such from the directory -panels to the command line (to avoid excessive typing) or access the -command line history. -.PP -.\"LINK2" -Input Line Keys -.\"Input Line Keys" -are used for editing input lines. This means both the command line and -the input lines in the query dialogs. - -.\"NODE " Keys_redefine" -.SH " Redefine hotkey bindings" -Hotkey bindings may be read from external file (keymap\-file). -Initially, Midnight Commander creates key bindings using keymap defined -in the source code. Then, two files -.B %pkgdatadir%/mc.keymap -and -.B %sysconfdir%/mc/mc.keymap -are loaded always, sequentially reassigned key bindings defined earlier. -User\-defined keymap\-file is searched on the following algorithm (to the first one found): -.IP -.br -1) command line option -.B \-K -or -.B \-\-keymap= -.br -2) Environment variable -.B MC_KEYMAP -.br -3) Parameter -.B keymap -in section -.B [Midnight\-Commander] -of config file. -.br -4) File -.B ~/.config/mc/mc.keymap -.br -.PP -Command line option, environment variable and parameter in config file may -contain the absolute path to the keymap\-file (with the extension \.keymap -or without it). Search of keymap\-file will occur in (to the first one found): -.IP -.br -1) -.B ~/.config/mc -.br -2) -.B %sysconfdir%/mc/ -.br -3) -.B %pkgdatadir%/ - -.\"NODE " Miscellaneous Keys" -.SH " Miscellaneous Keys" -Here are some keys which don't fall into any of the other categories: -.TP -.B Enter -if there is some text in the command line (the one at the bottom of -the panels), then that command is executed. If there is no text in the -command line then if the selection bar is over a directory the -Midnight Commander does a -.B chdir(2) -to the selected directory and reloads the information on the panel; -if the selection is an executable file then it is executed. Finally, -if the extension of the selected file name matches one of the -extensions in the -.\"LINK2" -extensions file -.\"Edit Extension File" -then the corresponding command is executed. -.TP -.B C\-l -repaint all the information in Midnight Commander. -.TP -.B C\-x c -run the -.\"LINK2" -Chmod -.\"Chmod" -command on a file or on the tagged files. -.TP -.B C\-x o -run the -.\"LINK2" -Chown -.\"Chown" -command on the current file or on the tagged files. -.TP -.B C\-x l -run the hard link command. -.TP -.B C\-x s -run the absolute symbolic link command. -.TP -.B C\-x v -run the relative symbolic link command. See the -.\"LINK2" -File Menu -.\"File Menu" -section for more information about symbolic links. -.TP -.B C\-x i -set the other panel display mode to information. -.TP -.B C\-x q -set the other panel display mode to quick view. -.TP -.B C\-x ! -execute the -.\"LINK2" -External panelize -.\"External panelize" -command. -.TP -.B C\-x h -run the -.\"LINK2" -add directory to hotlist -.\"Hotlist" -command. -.TP -.B Alt\-! -executes the Filtered view command, described in the -.\"LINK2" -view command\&. -.\"Internal File Viewer" -.TP -.B Alt\-? -executes the -.\"LINK2" -Find file -.\"Find File" -command. -.TP -.B Alt\-c -pops up the -.\"LINK2" -quick cd -.\"Quick cd" -dialog. -.TP -.B C\-o -when the program is being run in the Linux or FreeBSD console or under -an xterm, it will show you the output of the previous command. When ran -on the Linux console, Midnight Commander uses an external program -(cons.saver) to handle saving and restoring of information on the -screen. -.PP -When the subshell support is compiled in, you can type C\-o at any time -and you will be taken back to Midnight Commander's main screen, to -return to your application just type C\-o. If you have an application -suspended by using this trick, you won't be able to execute other -programs from Midnight Commander until you terminate the suspended -application. -.\"NODE " Directory Panels" -.SH " Directory Panels" -This section lists the keys which operate on the directory panels. If -you want to know how to change the appearance of the panels take a -look at the section on -.\"LINK2" -Left and Right Menus\&. -.\"Left and Right Menus" -.TP -.B Tab, C\-i -change the current panel. The old other panel becomes the new current -panel and the old current panel becomes the new other panel. The -selection bar moves from the old current panel to the new current -panel. -.TP -.B Insert, C\-t -to tag files you may use the Insert key (the kich1 terminfo sequence). -To untag files, just retag a tagged file. -.TP -.B Alt\-e -to change charset of panel you may use Alt\-e (M\-e). -Recoding is made from selected codepage into system codepage. To -cancel the recoding, select "No translation" in the dialog of encodings. -.TP -.B Alt\-g, Alt\-r, Alt\-j -used to select the top file in a panel, the middle file and the bottom one, -respectively. -.TP -.B Alt\-t -toggle the current display listing to show the next display listing -format. -With this it is possible to quickly switch to brief listing, long -listing, user defined listing format, and back to the default. -.TP -.B C\-\\\\ (control\-backslash) -show the -.\"LINK2" -directory hotlist -.\"Hotlist" -and change to the selected directory. -.TP -.B + \ (plus) -this is used to select (tag) a group of files. Midnight Commander -will prompt for a selection options. When -.I Files only -checkbox is on, only files will be selected. If -.I Files only -is off, as files as directories will be selected. -When -.I Shell Patterns -checkbox is on, the regular expression is much like the filename globbing -in the shell (* standing for zero or more characters and ? standing -for one character). If -.I Shell Patterns -is off, then the tagging of files is done with normal regular -expressions (see ed (1)). When -.I Case sensitive -checkbox is on, the selection will be case sensitive characters. -If -.I Case sensitive -is off, the case will be ignored. -.TP -.B \\\\ (backslash) -use the "\\" key to unselect a group of files. This is the opposite of -the Plus key. -.TP -.B up\-key, C\-p -move the selection bar to the previous entry in the panel. -.TP -.B down\-key, C\-n -move the selection bar to the next entry in the panel. -.TP -.B home, a1, Alt\-< -move the selection bar to the first entry in the panel. -.TP -.B end, c1, Alt\-> -move the selection bar to the last entry in the panel. -.TP -.B next\-page, C\-v -move the selection bar one page down. -.TP -.B prev\-page, Alt\-v -move the selection bar one page up. -.TP -.B Alt\-o -If the currently selected file is a directory, load that directory on -the other panel and moves the selection to the next file. If the -currently selected file is not a directory, load the parent directory -on the other panel and moves the selection to the next file. -.TP -.B Alt\-i -make the current directory of the current panel also the current -directory of the other panel. Put the other panel to the listing mode -if needed. If the current panel is panelized, the other panel doesn't -become panelized. -.TP -.B C\-PageUp, C\-PageDown -only when supported by the terminal: change to ".." and to the currently -selected directory respectively. -.TP -.B Alt\-y -moves to the previous directory in the history, equivalent to clicking -the -.I < -with the mouse. -.TP -.B Alt\-u -moves to the next directory in the history, equivalent to clicking the -.I > -with the mouse. -.TP -.B Alt\-S\-h, Alt\-H -displays the directory history, equivalent to depressing the 'v' with -the mouse. -.\"NODE " Quick search" -.SH " Quick search" -The Quick search mode allows you to perform fast file search in file panel. -Press -.I C\-s -or -.I Alt\-s -to start a filename search in the directory listing. -.P -When the search is active, the user input will be added to the search string -instead of the command line. If the -.I Show mini\-status -option is enabled the search string is shown on the mini\-status -line. When typing, the selection bar will move to the next file -starting with the typed letters. The -.I Backspace -or -.I DEL -keys can be used to correct typing mistakes. If C\-s is pressed -again, the next match is searched for. -.P -If quick search is started with double pressing of C\-s, the previous quick -search pattern will be used for current search. -.P -Besides the filename characters, you can also use wildcard -characters '*' and '?'. -.\"NODE " Shell Command Line" -.SH " Shell Command Line" -This section lists keys which are useful to avoid excessive typing when -entering shell commands. -.TP -.B Alt\-Enter -copy the currently selected file name to the command line. -.TP -.B C\-Enter -same a Alt\-Enter. May not work on remote systems and some terminals. -.TP -.B C\-S\-Enter -copy the full path name of the currently selected file to the command -line. May not work on remote systems and some terminals. -.TP -.B Alt\-Tab -does the filename, command, variable, username and hostname -.\"LINK2" -completion -.\"Completion" -for you. -.TP -.B C\-x t, C\-x C\-t -copy the tagged files (or if there are no tagged files, the selected -file) of the current panel (C\-x t) or of the other panel (C\-x C\-t) to -the command line. -.TP -.B C\-x p, C\-x C\-p -the first key sequence copies the current path name to the command -line, and the second one copies the unselected panel's path name to -the command line. -.TP -.B C\-q -the quote command can be used to insert characters that are otherwise -interpreted by Midnight Commander (like the '+' symbol) -.TP -.B Alt\-p, Alt\-n -use these keys to browse through the command history. Alt\-p takes you -to the last entry, Alt\-n takes you to the next one. -.TP -.B Alt\-h -displays the history for the current input line. -.\"NODE " General Movement Keys" -.SH " General Movement Keys" -The help viewer, the file viewer and the directory tree use common -code to handle moving. Therefore they accept exactly the same -keys. Each of them also accepts some keys of its own. -.PP -Other parts of Midnight Commander use some of the same movement -keys, so this section may be of use for those parts too. -.TP -.B Up, C\-p -moves one line backward. -.TP -.B Down, C\-n -moves one line forward. -.TP -.B Prev Page, Page Up, Alt\-v -moves one page up. -.TP -.B Next Page, Page Down, C\-v -moves one page down. -.TP -.B Home, A1 -moves to the beginning. -.TP -.B End, C1 -move to the end. -.PP -The help viewer and the file viewer accept the following keys in -addition the to ones mentioned above: -.TP -.B b, C\-b, C\-h, Backspace, Delete -moves one page up. -.TP -.B Space bar -moves one page down. -.TP -.B u, d -moves one half of a page up or down. -.TP -.B g, G -moves to the beginning or to the end. -.\"NODE " Input Line Keys" -.SH " Input Line Keys" -The input lines (they are used for the -.\"LINK2" -command line -.\"Shell Command Line" -and for the query dialogs in the program) accept these keys: -.TP -.B C\-a -puts the cursor at the beginning of line. -.TP -.B C\-e -puts the cursor at the end of the line. -.TP -.B C\-b, move\-left -move the cursor one position left. -.TP -.B C\-f, move\-right -move the cursor one position right. -.TP -.B Alt\-f -moves one word forward. -.TP -.B Alt\-b -moves one word backward. -.TP -.B C\-h, Backspace -delete the previous character. -.TP -.B C\-d, Delete -delete the character in the point (over the cursor). -.TP -.B C\-@ -sets the mark for cutting. -.TP -.B C\-w -copies the text between the cursor and the mark to a kill buffer and -removes the text from the input line. -.TP -.B Alt\-w -copies the text between the cursor and the mark to a kill buffer. -.TP -.B C\-y -yanks back the contents of the kill buffer. -.TP -.B C\-k -kills the text from the cursor to the end of the line. -.TP -.B Alt\-p, Alt\-n -Use these keys to browse through the command history. Alt\-p takes you -to the last entry, Alt\-n takes you to the next one. -.TP -.B Alt\-C\-h, Alt\-Backspace -delete one word backward. -.TP -.B Alt\-Tab -does the filename, command, variable, username and hostname -.\"LINK2" -completion -.\"Completion" -for you. -.SH "" -.\"NODE "Menu Bar" -.SH "Menu Bar" -The menu bar pops up when you press F9 or click the mouse on the top -row of the screen. The menu bar has five menus: "Left", "File", -"Command", "Options" and "Right". -.PP -The -.\"LINK2" -Left and Right Menus -.\"Left and Right Menus" -allow you to modify the appearance of the left and right directory -panels. -.PP -The -.\"LINK2" -File Menu -.\"File Menu" -lists the actions you can perform on the currently selected file or -the tagged files. -.PP -The -.\"LINK2" -Command Menu -.\"Command Menu" -lists the actions which are more general and bear no relation to the -currently selected file or the tagged files. -.PP -The -.\"LINK2" -Options Menu -.\"Options Menu" -lists the actions which allow you to customize Midnight Commander. -.\"NODE " Left and Right Menus" -.SH " Left and Right (Above and Below) Menus" -The outlook of the directory panels can be changed from the -.B Left -and -.B Right -menus (they are named -.B Above -and -.B Below -when the horizontal panel split is chosen from the -.\"LINK2" -Layout -.\"Layout" -options dialog). -.\"NODE " Listing Format..." -.SH " Listing Format..." -The listing mode view is used to display a listing of files, there are -four different listing formats available: -.BR Full , -.BR Brief , -.B Long -and -.BR User . -The full directory view shows the file name, the size of the file and -the modification time. -.PP -The brief view shows only the file name and it has from 1 up to 9 columns -(therefore showing more files unlike other views). The long view -is similar to the output of -.B "ls \-l" -command. The long view takes the whole screen width. -.PP -If you choose the "User" display format, then you have to specify -the display format. -.PP -The user display format must start with a panel size specifier. This -may be "half" or "full", and they specify a half screen panel and a -full screen panel respectively. -.PP -After the panel size, you may specify how many listings to fit in the -panel, side\-by\-side (in other words: how many times to repeat the -fields horizontally). This defaults to 1. You may change this by adding a -number from 1 to 9 to the format string. -.PP -After this you add the name of the fields with an optional size -specifier. This are the available fields you may display: -.TP -.B name -displays the file name. -.TP -.B size -displays the file size. -.TP -.B bsize -is an alternative form of the -.B size -format. It displays the size of the files and for directories it just -shows SUB\-DIR or UP\-\-DIR. -.TP -.B type -displays a one character wide type field. This character is similar to -what is displayed by ls with the \-F flag \- -.B * -for executable files, -.B / -for directories, -.B @ -for links, -.B = -for sockets, -.B \- -for character devices, -.B + -for block devices, -.B | -for pipes, -.B ~ -for symbolic links to directories and -.B ! -for stale symlinks (links that point nowhere). -.TP -.B mark -an asterisk if the file is tagged, a space if it's not. -.TP -.B mtime -file's last modification time. -.TP -.B atime -file's last access time. -.TP -.B ctime -file's status change time. -.TP -.B perm -a string representing the current permission bits of the file. -.TP -.B mode -an octal value with the current permission bits of the file. -.TP -.B nlink -the number of links to the file. -.TP -.B ngid -the GID (numeric). -.TP -.B nuid -the UID (numeric). -.TP -.B owner -the owner of the file. -.TP -.B group -the group of the file. -.TP -.B inode -the inode of the file. -.PP -Also you can use following keywords to define the panel layout: -.TP -.B space -a space in the display format. -.TP -.B | -add a vertical line to the display format. -.PP -To force one field to a fixed size (a size specifier), you just add -.B : -followed by the number of characters you want the field to have. If the -number is followed by the symbol -.BR + , -then the size specifies the minimal field size \- if the program finds -out that there is more space on the screen, it will then expand that -field. -.PP -For example, the -.B Full -display corresponds to this format: -.PP -half type name | size | mtime -.PP -And the -.B Long -display corresponds to this format: -.PP -full perm space nlink space owner space group space size space mtime -space name -.PP -This is a nice user display format: -.PP -half name | size:7 | type mode:3 -.PP -Panels may also be set to the following modes: -.TP -.B "Info" -The info view display information related to the currently -selected file and if possible information about the current file -system. -.TP -.B "Tree" -The tree view is quite similar to the -.\"LINK2" -directory tree -.\"Directory Tree" -feature. See the section about it for more information. -.TP -.B "Quick View" -In this mode, the panel will switch to a reduced -.\"LINK2" -viewer -.\"Internal File Viewer" -that displays the contents of the currently selected file, if you -select the panel (with the tab key or the mouse), you will have access -to the usual viewer commands. -.\"NODE " Sort Order..." -.SH " Sort Order..." -The eight sort orders are by name, by extension, by modification time, -by access time, and by inode information modification time, by size, -by inode and unsorted. In the Sort order dialog box you can choose -the sort order and you may also specify if you want to sort in reverse -order by checking the reverse box. -.PP -By default directories are sorted before files but this can be changed -from the -.\"LINK2" -Panel options -.\"Panel options" -menu (option -.BR "Mix all files" ). -.\"NODE " Filter..." -.SH " Filter..." -The filter command allows you to specify a shell pattern (for example -.BR "*.tar.gz" ) -which the files and directories must match to be shown. -The -.\"LINK2" -input line -.\"Input Line Keys" -allow enter the pattern of file/directory names that will be shown -in the panel. -.PP -When -.I Files only -checkbox is on, only files will be matched to the filter, and all -directories will be shown. Otherwise, as files as directories will -be filtered. When -.I Shell Patterns -checkbox is on, the regular expression is much like the filename globbing -in the shell (* standing for zero or more characters and ? standing -for one character). Otherwise, the matching of files/directories is done -with normal regular expressions (see ed(1)). When -.I Case sensitive -checkbox is on, the filtering will be case sensitive characters. Otherwise, -the case will be ignored. -.\"NODE " Reread" -.SH " Reread" -The reread command reload the list of files in the directory. It is -useful if other processes have created or removed files. -.\"NODE " File Menu" -.SH " File Menu" -Midnight Commander uses the F1 \- F10 keys as keyboard shortcuts -for commands appearing in the file menu. The escape sequences for the -function keys are terminfo capabilities kf1 trough kf10. On terminals -without function key support, you can achieve the same functionality by -pressing the Esc key and then a number in the range 1 through 9 and 0 -(corresponding to F1 to F9 and F10 respectively). -.PP -The File menu has the following commands (keyboard shortcuts in parentheses): -.PP -.B Help (F1) -.PP -Invokes the built\-in hypertext help viewer. Inside the -.\"LINK2" -help viewer\&, -.\"Contents" -you can use the Tab key to select the next link and the Enter key to -follow that link. The keys Space and Backspace are used to move -forward and backward in a help page. Press F1 again to get the full -list of accepted keys. -.PP -.B Menu (F2) -.PP -Invoke the -.\"LINK2" -user menu\&. -.\"Edit Menu File" -The user menu provides an easy way to provide users with a menu and -add extra features to Midnight Commander. -.PP -.B View (F3, F13) -.PP -View the currently selected file. By default this invokes the -.\"LINK2" -Internal File Viewer -.\"Internal File Viewer" -but if the option "Use internal view" is off, it invokes an external -file viewer specified by the -.B VIEWER -environment variable. If -.B VIEWER -is undefined, the -.B PAGER -environment variable is tried. If -.B PAGER -is also undefined, the "view" command is invoked. If you use F13 -instead, the viewer will be invoked without doing any formatting or -preprocessing to the file. -.P -See -.\"LINK2" -parameters for external viewer -.\"Parameters for external editor or viewer" -for explain how you may specify an extended command line options -for external viewers. -.PP -.B Filtered View (Alt\-!) -.PP -This command prompts for a command -and its arguments (the argument defaults to the currently selected -file name), the output from such command is shown in the internal file -viewer. -.PP -.B Edit (F4, F14) -.PP -Press F4 to edit the highlighted file. Press F14 (usually F14) -to start the editor with a new, empty file. -Currently they invoke the -.B vi -editor, or the editor specified in the -.B EDITOR -environment variable, or the -.\"LINK2" -Internal File Editor -.\"Internal File Editor" -if the use_internal_edit option is on. -.P -See -.\"LINK2" -parameters for external editor -.\"Parameters for external editor or viewer" -for explain how you may specify an extended command line options -for external editors. -.PP -.B Copy (F5, F15) -.PP -Press F5 to pop up an input dialog to copy the currently selected file (or -the tagged files, if there is at least one file tagged) to the -directory/filename you specify in the input dialog. The destination -defaults to the directory in the non\-selected panel. Space for destination -file may be preallocated relative to preallocate_space configure option. -During this process, you can press C\-c or Esc to abort the operation. -For details about source mask (which will be usually either * or ^\\(.*\\)$ -depending on setting of Use shell patterns) and possible wildcards in the -destination see -.\"LINK2" -Mask copy/rename\&. -.\"Mask Copy/Rename" -.PP -F15 (usually F15) is similar, but defaults to the directory in the -selected panel. It always operates on the selected file, regardless of -any tagged files. -.PP -On some systems, it is possible to do the copy in the background by -clicking on the background button (or pressing Alt\-b in the dialog -box). The -.\"LINK2" -Background Jobs -.\"Background jobs" -is used to control the background process. -.PP -.B Link (C\-x l) -.PP -Create a hard link to the current file. -.PP -.B Absolute symlink (C\-x s) -.PP -Create a absolute symbolic link to the current file. -.PP -.B Relative symLink (C\-x v) -.PP -Create a relative symbolic link to the current file. -.PP -To those of you who don't know what links are: creating a link to a file -is a bit like copying the file, but both the source filename and the destination -filename represent the same file image. For example, if you edit one of these -files, all changes you make will appear in both files. Some people call -links aliases or shortcuts. -.PP -A hard link appears as a real file. After making it, there is no way of -telling which one is the original and which is the link. If you delete -either one of them the other one is still intact. It is very difficult -to notice that the files represent the same image. Use hard links when -you don't even want to know. -.PP -A symbolic link is a reference to the name of the original file. If -the original file is deleted the symbolic link is useless. It is quite -easy to notice that the files represent the same image. Midnight -Commander shows an "@"\-sign in front of the file name if it is a -symbolic link to somewhere (except to directory, where it shows a tilde (~)). -The original file which the link points to is shown on mini\-status line if the -.I "Show mini\-status" -option is enabled. Use symbolic links when you want to avoid the -confusion that can be caused by hard links. -.PP -When you press "C\-x s" Midnight Commander will automatically fill in the -complete path+filename of the original file and suggest a name for the link. -You can change either one. -.PP -Sometimes you may want to change the absolute path of the original into -a relative path. An absolute path starts from the root directory: -.PP -.I /home/frodo/mc/mc \-> /home/frodo/new/mc -.PP -A relative link describes the original file's location starting from the -location of the link itself: -.PP -.I /home/frodo/mc/mc \-> ../new/mc -.PP -You can force Midnight Commander to suggest a relative path by pressing -"C\-x v" instead of "C\-x s". -.PP -.B Rename/Move (F6, F16) -.PP -Press F6 to pop up an input dialog to copy the currently selected file (or -the tagged files, if there is at least one file tagged) to the -directory/filename you specify in the input dialog. The destination -defaults to the directory in the non\-selected panel. For more details -look at Copy (F5) operation above, most of the things are quite similar. -.PP -F16 (usually F16) is similar, but defaults to the directory in the -selected panel. It always operates on the selected file, regardless of -any tagged files. -.PP -On some systems, it is possible to do the copy in the background by -clicking on the background button (or pressing Alt\-b in the dialog -box). The -.\"LINK2" -Background Jobs -.\"Background jobs" -is used to control the background process. -.PP -.B Mkdir (F7) -.PP -Pop up an input dialog and creates the directory specified. -.PP -.B Delete (F8) -.PP -Delete the currently selected file or the tagged files in the -currently selected panel. During the process, you can press C\-c or -Esc to abort the operation. -.PP -.B Quick cd (Alt\-c) -Use the -.\"LINK2" -quick cd -.\"Quick cd" -command if you have full command line and want to cd somewhere. -.PP -.B Select group (+) -.PP -This is used to select (tag) a group of files. Midnight Commander -will prompt for a selection options. When -.I Files only -checkbox is on, only files will be selected. If -.I Files only -is off, as files as directories will be selected. -When -.I Shell Patterns -checkbox is on, the regular expression is much like the filename globbing -in the shell (* standing for zero or more characters and ? standing -for one character). If -.I Shell Patterns -is off, then the tagging of files is done with normal regular -expressions (see ed (1)). When -.I Case sensitive -checkbox is on, the selection will be case sensitive characters. -If -.I Case sensitive -is off, the case will be ignored. -.PP -.B Unselect group (\\\\) -.PP -Used to unselect a group of files. This is the opposite of the -.I "Select group" -command. -.PP -.B Quit (F10, S\-F10) -.PP -Terminate Midnight Commander. S\-F10 is used when you want to -quit and you are using the shell wrapper. S\-F10 will not take you -to the last directory you visited with Midnight Commander, instead -it will stay at the directory where you started Midnight Commander. -.\"NODE " Quick cd" -.SH " Quick cd" -This command is useful if you have a full command line and want to -.\"LINK2" -cd -.\"The cd internal command" -somewhere without having to yank and paste the command line. This command -pops up a small dialog, where you enter everything you would enter after -.B cd -on the command line and then you press enter. This features all the things -that are already in the -.\"LINK2" -internal cd command\&. -.\"The cd internal command" -.\"NODE " Command Menu" -.SH " Command Menu" -The -.\"LINK2" -Directory tree -.\"Directory Tree" -command shows a tree figure of the directories. -.PP -The -.\"LINK2" -"Find file" -.\"Find File" -command allows you to search for a specific file. -.PP -The "Swap panels" command swaps the contents of the two directory panels. -.PP -The "Switch panels on/off" command shows the output of the last shell command. -This works only on xterm and on Linux and FreeBSD console. -.PP -The "Compare directories" command compares the directory -panels with each other. You can then use the Copy (F5) command to make -the panels identical. There are three compare methods. The quick method -compares only file size and file date. The thorough method makes a -full byte\-by\-byte compare. The size\-only -compare method just compares the file sizes and does not check the -contents or the date times, it just checks the file size. -.PP -The -.\"LINK2" -"External panelize" -.\"External panelize" -allows you to execute an external program, and make the output of that -program the contents of the current panel. -.PP -The "Command history" command shows a list of typed commands. The -selected command is copied to the command line. The command history -can also be accessed by typing Alt\-p or Alt\-n. -.PP -The -.\"LINK2" -"Directory hotlist" -.\"Hotlist" -command makes changing of the current directory to often used directories -faster. -.PP -The -.\"LINK2" -"Screen list" -.\"Screen selector" -command shows a dialog window with the list of currently running -internal editors, viewers and other MC modules that support this mode. -.PP -The -.\"LINK2" -"Edit extension file" -.\"Edit Extension File" -command allows you to specify programs to executed when you try to -execute, view, edit and do a bunch of other thing on files -with certain extensions (filename endings). -.PP -The -.\"LINK2" -"Edit Menu File" -.\"Edit Menu File" -command may be used for editing the user menu (which appears by -pressing F2). -.\"NODE " Directory Tree" -.SH " Directory Tree" -The Directory Tree command shows a tree figure of the directories. You -can select a directory from the figure and Midnight Commander will -change to that directory. -.PP -There are two ways to invoke the tree. The real directory tree command -is available from Commands menu. The other way is to select tree view -from the Left or Right menu. -.PP -To get rid of long delays, Midnight Commander creates the tree -figure by scanning only a small subset of all the directories. If the -directory which you want to see is missing, move to its parent -directory and press C\-r (or F2). -.PP -You can use the following keys: -.TP -.\"LINK2" -General movement keys -.\"General Movement Keys" -are accepted. -.TP -.B Enter. -In the directory tree, exits the directory tree and changes to this -directory in the current panel. In the tree view, changes to this -directory in the other panel and stays in tree view mode in the -current panel. -.TP -.B C\-r, F2 (Rescan). -Rescan this directory. Use this when the tree figure is out of date: -it is missing subdirectories or shows some subdirectories which don't -exist any more. -.TP -.B F3 (Forget). -Delete this directory from the tree figure. Use this to remove clutter -from the figure. If you want the directory back to the tree figure -press F2 in its parent directory. -.TP -.B F4 (Static/Dynamic). -Toggle between the dynamic navigation mode (default) and the static -navigation mode. -.PP -In the static navigation mode you can use the Up and Down keys to -select a directory. All known directories are shown. -.PP -In the dynamic navigation mode you can use the Up and Down keys to -select a sibling directory, the Left key to move to the parent -directory, and the Right key to move to a child directory. Only the -parent, sibling and children directories are shown, others are left -out. The tree figure changes dynamically as you traverse. -.TP -.B F5 (Copy). -Copy the directory. -.TP -.B F6 (RenMov). -Move the directory. -.TP -.B F7 (Mkdir). -Make a new directory below this directory. -.TP -.B F8 (Delete). -Delete this directory from the file system. -.TP -.B C\-s, Alt\-s. -Search the next directory matching the search string. If there is -no such directory these keys will move one line down. -.TP -.B C\-h, Backspace. -Delete the last character of the search string. -.TP -.B Any other character. -Add the character to the search string and move to the next directory -which starts with these characters. In the tree view you must first -activate the search mode by pressing C\-s. The search string is shown -in the mini status line. -.PP -The following actions are available only in the directory tree. They -aren't supported in the tree view. -.TP -.B F1 (Help). -Invoke the help viewer and show this section. -.TP -.B Esc, F10. -Exit the directory tree. Do not change the directory. -.PP -The mouse is supported. A double\-click behaves like Enter. See -also the section on -.\"LINK2" -mouse support\&. -.\"Mouse Support" -.\"NODE " Find File" -.SH " Find File" -The Find File feature first asks for the start directory for the -search and the filename to be searched for. By pressing the Tree -button you can select the start directory from the -.\"LINK2" -directory tree -.\"Directory Tree" -figure. -.PP -The "File name" input field contains a filename pattern to be searched -for. It is interpreted as a shell pattern or as a regular expression -depending on the state of the "Using shell patterns" checkbox. An empty -value is valid and matches any file name. -.PP -The "Content" input field contains a string to search for within the -files. Leave this field empty to disable searching file contents. -.PP -Option "Whole words" allows select only those files containing matches that -form whole words. Like grep \-w. -.PP -You can start the search by pressing the OK button. -During the search you can stop from the Stop button and continue from -the Start button. -.PP -You can browse the filelist with the up and down arrow keys. The Chdir -button will change to the directory of the currently selected -file. The Again button will ask for the parameters for a new -search. The Quit button quits the search operation. The Panelize -button will place the found files to the current directory panel so -that you can do additional operations on them (view, copy, move, -delete and so on). To return to the normal file listing, change directory -to "..". -.PP -The 'Enable ignore directories' checkbox and input field below it -allow one to set up the list of directories that should be skip during the search -files (for example, you may want to avoid searches on a CD\-ROM or on a NFS -directory that is mounted across a slow link). List components must be separated -with a colon, here is an example: -.PP -.nf -/cdrom:/nfs/wuarchive:/afs -.fi -.PP -Relative paths are supported also. The following example shows how to skip special -directories of version control systems: -.nf -/cdrom:/nfs/wuarchive:/afs:.svn:.git:CVS -.fi -.PP -Attention: input field can contain a dot (.), this means the current absolute path. -.PP -You may consider using the -.\"LINK2" -External panelize -.\"External panelize" -command for some operations. Find file command is for simple queries -only, while using External panelize you can do as mysterious searches -as you would like. -.\"NODE " External panelize" -.SH " External panelize" -The External panelize allows you to execute an external program, and -make the output of that program the contents of the current panel. -.PP -For example, if you want to manipulate in one of the panels all the -symbolic links in the current directory, you can use external -panelization to run the following command: -.PP -.nf -find . \-type l \-print -.fi -.PP -Upon command completion, the directory contents of the panel will no -longer be the directory listing of the current directory, but all the -files that are symbolic links. -.PP -If you want to panelize all of the files that have been downloaded -from your FTP server, you can use this awk command to extract the file -name from the transfer log files: -.PP -.nf -awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog -.fi -.PP -You may want to save often used panelize commands under a descriptive name, -so that you can recall them quickly. You do this by typing the command on -the input line and pressing Add new button. Then you enter a name under -which you want the command to be saved. Next time, you just choose that -command from the list and do not have to type it again. -.\"NODE " Hotlist" -.SH " Hotlist" -The Directory hotlist command shows the labels of the directories -in the directory hotlist. Midnight Commander will change to the -directory corresponding to the selected label. From the hotlist dialog, -you can remove already created label/directory pairs and add new ones. -To add new directories quickly, you can use the Add to hotlist command -(C\-x h), which adds the current directory into the directory hotlist, -asking just for the label for the directory. -.PP -This makes cd to often used directories faster. You may consider using the -CDPATH variable as described in -.\"LINK2" -internal cd command -.\"The cd internal command" -description. -.\"NODE " Edit Extension File" -.SH " Edit Extension File" -This will invoke your editor on the file -.IR ~/.config/mc/mc.ext.ini . -If this file does not exist and you are not root, it will be copied from -.IR %sysconfdir%/mc/mc.ext.ini . -If you are root, you can choose the file to edit: user's -.I ~/.config/mc/mc.ext.ini -or system\-wide -.IR %sysconfdir%/mc/mc.ext.ini . -The format of this file is described in detail in it. -.\"NODE " Background jobs" -.SH " Background Jobs" -This lets you control the state of any background Midnight Commander -process (only copy and move files operations can be done in the -background). You can stop, restart and kill a background job from -here. -.\"NODE " Edit Menu File" -.SH " Edit Menu File" -The user menu is a menu of useful actions that can be customized by -the user. When you access the user menu, the -file .mc.menu from the current directory is used if it exists, -but only if it is owned by user or root and is not world\-writable. -If no such file found, ~/.config/mc/menu is tried in the same way, -and otherwise mc uses the default system\-wide menu -%pkgdatadir%/mc.menu. -.PP -The format of the menu file is very simple. Lines that start with -anything but space or tab are considered entries for the menu (in -order to be able to use it like a hot key, the first character should -be a letter). All the lines that start with a space or a tab are the -commands that will be executed when the entry is selected. -.PP -When an option is selected all the command lines of the option are -copied to a temporary file in the temporary directory (usually -/usr/tmp) and then that file is executed. This allows the user to put -normal shell constructs in the menus. Also simple macro substitution -takes place before executing the menu code. For more information, see -.\"LINK2" -macro substitution\&. -.\"Macro Substitution" -.PP -Here is a sample mc.menu file: -.PP -.nf -A Dump the currently selected file - od \-c %f - -B Edit a bug report and send it to root - I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1 - vi $I - mail \-s "Midnight Commander bug" root < $I - rm \-f $I - -M Read mail - emacs \-f rmail - -N Read Usenet news - emacs \-f gnus - -H Call the info hypertext browser - info - -J Copy current directory to other panel recursively - tar cf \- . | (cd %D && tar xvpf \-) - -K Make a release of the current subdirectory - echo \-n "Name of distribution file: " - read tar - ln \-s %d `dirname %d`/$tar - cd .. - tar cvhf ${tar}.tar $tar - -= f *.tar.gz | f *.tgz & t n -X Extract the contents of a compressed tar file - tar xzvf %f -.fi -.PP -.B Default Conditions -.PP -Each menu entry may be preceded by a condition. The condition must -start from the first column with a '=' character. If the condition is -true, the menu entry will be the default entry. -.PP -.nf -Condition syntax: = - or: = | ... - or: = & ... - -Sub\-condition is one of following: - - y syntax of current file matching pattern? - (for edit menu only) - f current file matching pattern? - F other file matching pattern? - d current directory matching pattern? - D other directory matching pattern? - t current file of type? - T other file of type? - x is it executable filename? - ! negate the result of sub\-condition -.fi -.PP -Pattern is a normal shell pattern or a regular expression, according -to the shell patterns option. You can override the global value of -the shell patterns option by writing "shell_patterns=x" on the first -line of the menu file (where "x" is either 0 or 1). -.PP -Type is one or more of the following characters: -.PP -.nf - n not a directory - r regular file - d directory - l link - c character device - b block device - f FIFO (pipe) - s socket - x executable file - t tagged -.fi -.PP -For example 'rlf' means either regular file, link or fifo. The 't' -type is a little special because it acts on the panel instead of the -file. The condition '=t t' is true if there are tagged files in the -current panel and false if not. -.PP -If the condition starts with '=?' instead of '=' a debug trace will be -shown whenever the value of the condition is calculated. -.PP -The conditions are calculated from left to right. This means -.nf - = f *.tar.gz | f *.tgz & t n -.fi -is calculated as -.nf - ( (f *.tar.gz) | (f *.tgz) ) & (t n) -.fi -.PP -Here is a sample of the use of conditions: -.PP -.nf -= f *.tar.gz | f *.tgz & t n -L List the contents of a compressed tar\-archive - gzip \-cd %f | tar xvf \- -.fi -.PP -.B Addition Conditions -.PP -If the condition begins with '+' (or '+?') instead of '=' (or '=?') it -is an addition condition. If the condition is true the menu entry will -be included in the menu. If the condition is false the menu entry will -not be included in the menu. -.PP -You can combine default and addition conditions by starting condition -with '+=' or '=+' (or '+=?' or '=+?' if you want debug trace). If you -want to use two different conditions, one for adding and another for -defaulting, you can precede a menu entry with two condition lines, one -starting with '+' and another starting with '='. -.PP -Comments are started with '#'. The additional comment lines must start -with '#', space or tab. -.\"NODE " Options Menu" -.SH " Options Menu" -Midnight Commander has some options that may be toggled on and -off in several dialogs which are accessible from this menu. Options -are enabled if they have an asterisk or "x" in front of them. -.PP -The -.\"LINK2" -Configuration -.\"Configuration" -command pops up a dialog from which you can change most of settings of -Midnight Commander. -.PP -The -.\"LINK2" -Layout -.\"Layout" -command pops up a dialog from which you specify a bunch of options how mc -looks like on the screen. -.PP -The -.\"LINK2" -Panel options -.\"Panel options" -command pops up a dialog from which you specify options of file manager panels. -.PP -The -.\"LINK2" -Confirmation -.\"Confirmation" -command pops up a dialog from which you specify which actions you want to -confirm. -.PP -The -.\"LINK2" -Appearance -.\"Appearance" -command pops up a dialog from which you specify the skin. -.PP -The -.\"LINK2" -Display bits -.\"Display bits" -command pops up a dialog from which you may select which characters is your -terminal able to display. -.PP -The -.\"LINK2" -Learn keys -.\"Learn keys" -command pops up a dialog from which you test some keys which are not working -on some terminals and you may fix them. -.PP -The -.\"LINK2" -Virtual FS -.\"Virtual FS" -command pops up a dialog from which you specify some VFS related options. -.PP -The -.\"LINK2" -Save setup -.\"Save Setup" -command saves the current settings of the Left, Right and Options -menus. A small number of other settings is saved, too. -.\"NODE " Configuration" -.SH " Configuration" -The options in this dialog are divided into several groups: "File -operation options", "Esc key mode", "Pause after run" and "Other options". -.PP -.B File operation options -.PP -.I Verbose operation. -This toggles whether the file Copy, Rename and Delete operations are -verbose (i.e., display a dialog box for each operation). If you have a -slow terminal, you may wish to disable the verbose operation. It is -automatically turned off if the speed of your terminal is less than -9600 bps. -.PP -.I Compute totals. -If this option is enabled, Midnight Commander computes total byte -sizes and total number of files prior to any Copy, Rename and Delete -operations. This will provide you with a more accurate progress bar -at the expense of some speed. This option has no effect, if -.I Verbose operation -is disabled. -.PP -.I Classic progressbar. -If this option is enabled, the progressbar of Copy/Move/Delete operations -is always grown form left to right. If disabled, the growing direction -of progressbar follows to direction of Copy/Move/Delete operation: -from left panel to right one and vice versa. Enabled by default. -.PP -.I Mkdir autoname. -When you press F7 to create a new directory, the input line in popup dialog -will be filled by name of current file or directory in active panel. -Disabled by default. -.PP -.I Preallocate space. -Preallocate space for whole target file, if possible, before copy operation. -Disabled by default. -.PP -.B Esc key mode. -.PP -By default, Midnight Commander treats the Esc key as a key prefix. -Therefore, you should press Esc code twice to exit a dialog. But there is -a possibility to use a single press of Esc key for that action. -.PP -.I Single press. -By default this option is disabled. If you'll enable it, the Esc key -will act as a prefix key for set up time interval (see -.I Timeout -option below), and if no extra keys have arrived, then the Esc key -is interpreted as a cancel key (Esc Esc). -.PP -.I Timeout. -This options is used to setup the time interval (in microseconds) -for single press of Esc key. By default, this interval is one second -(1000000 microseconds). Also the timeout can be set via KEYBOARD_KEY_TIMEOUT_US -environment variable (also in microseconds), which has higher priority -than Timeout option value. -.PP -.B Pause after run -.PP -After executing your commands, Midnight Commander can pause, so -that you can examine the output of the command. There are three -possible settings for this variable: -.PP -.I Never. -Means that you do not want to see the output of your command. If you -are using the Linux or FreeBSD console or an xterm, you will be able to -see the output of the command by typing C\-o. -.PP -.I On dumb terminals. -You will get the pause message on terminals that are not capable of -showing the output of the last command executed (any terminal that is -not an xterm or the Linux console). -.PP -.I Always. -The program will pause after executing all of your commands. -.PP -.B Other options -.PP -.I Use internal editor. -If this option is enabled, the built\-in file editor is used to edit -files. If the option is disabled, the editor specified in the -.B EDITOR -environment variable is used. -If no editor is specified, -.B vi -is used. See the section on the -.\"LINK2" -internal file editor\&. -.\"Internal File Editor" -.PP -.I Use internal viewer. -If this option is enabled, the built\-in file viewer is used to view -files. If the option is disabled, the pager specified in the -.B PAGER -environment variable is used. -If no pager is specified, the -.B view -command is used. See the section on the -.\"LINK2" -internal file viewer\&. -.\"Internal File Viewer" -.PP -.I Ask new file name. -If this option is enabled, file name is asked before open new file in editor. -.PP -.I Auto menus. -If this option is enabled, the user menu will be invoked at startup. -Useful for building menus for non\-unixers. -.PP -.I Drop down menus. -When this option is enabled, the pull down menus will be activated as -soon as you press the F9 key. Otherwise, you will only get the menu title, -and you will have to activate the menu either with the arrow keys or with -the hotkeys. It is recommended if you are using hotkeys. -.PP -.I Shell Patterns. -By default the Select, Unselect and Filter commands will use shell\-like -regular expressions. The following conversions are performed to achieve -this: the '*' is replaced by '.*' (zero or more characters); the '?' -is replaced by '.' (exactly one character) and '.' by the literal -dot. If the option is disabled, then the regular expressions are the -ones described in ed(1). -.PP -.I Complete: show all. -By default, Midnight Commander pops up all possible -.\"LINK2" -completions -.\"Completion" -if the completion is ambiguous only when you press -.B Alt\-Tab -for the second time. For the first time, it just completes as much as -possible and beeps in the case of ambiguity. Enable this option if you -want to see all possible completions even after pressing -.B Alt\-Tab -the first time. -.PP -.I Rotating dash. -If this option is enabled, the -Midnight Commander shows a rotating dash in the upper right corner -as a work in progress indicator. -.PP -.I Cd follows links. -This option, if set, causes Midnight Commander to follow the -logical chain of directories when changing current directory -either in the panels, or using the cd command. This is the default -behavior of bash. When unset, Midnight Commander follows the -real directory structure, so cd .. if you've entered that directory -through a link will move you to the current directory's real parent -and not to the directory where the link was present. -.PP -.I Safe delete. -If this option is enabled, deleting files and directory hotlist entries -unintentionally becomes more difficult. The default selection in the -confirmation dialogs for deletion changes from -.B Yes -to -.BR No . -This option is disabled by default. -.PP -.I Safe overwrite. -If this option is enabled, overwriting files unintentionally becomes -more difficult. The default selection in the overwrite confirmation dialog -changes from -.B Yes -to -.BR No . -This option is disabled by default. -.PP -.I Auto save setup. -If this option is enabled, when you exit Midnight Commander, the -configurable options of Midnight Commander are saved in the -~/.config/mc/ini file. -.\"NODE " Layout" -.SH " Layout" -The layout dialog gives you a possibility to change the general layout -of screen. The options in this dialog are divided into several groups: -"Panel split", "Console output" and "Other options". -.PP -.B Panel split -.PP -The rest of the screen area is used for the two directory panels. You -can specify whether the area is split to the panels in -.I Vertical -or -.I Horizontal -direction. Panel layout can be changed using Alt\-, (Alt\-comma) shortcut. -.PP -.I Equal split. -By default, panels have equal sizes. Using this option you can specify -an unequal split. -.PP -.B Console output -.PP -On the Linux or FreeBSD console you can specify how many lines are shown -in the output window. This option is available if Midnight Commander runs -on native console only. -.PP -.B Other options -.PP -.I Menu bar visible. -If enabled, main menu of Midnight Commander is always visible on the top row -of screen above panels. Enabled by default. -.PP -.I Command prompt. -If enabled, command line is available. Enabled by default. -.PP -.I Keybar visible. -If enabled, 10 labels associated with F1\-F10 keys are located at the bottom -row of screen. Enabled by default. -.PP -.I Hintbar visible. -If enabled, the one\-line hints are visible below panels. Enabled by default. -.PP -.I XTerm window title. -When run in a terminal emulator for X11, Midnight Commander sets the -terminal window title to the current working directory and updates it -when necessary. If your terminal emulator is broken and you see some -incorrect output on startup and directory change, turn off this option. -Enabled by default. -.PP -.I Show free space. -If enabled, free space and total space of current file system is shown -at the bottom frame of panel. Enabled by default. -.\"NODE " Panel options" -.SH " Panel options" -.B Main panel options -.PP -.I Show mini\-status. -If enabled, one line of status information about the currently selected item -is shown at the bottom of the panels. Enabled by default. -.PP -.I Use SI size units. -If this option is enabled, Midnight Commander will use SI prefixes (base 10) -when displaying any byte sizes. If disabled (default), Midnight Commander will -use IEC prefixes (base 2). -.PP -.I Mix all files. -If this option is enabled, all files and directories are shown mixed -together. If the option is disabled (default), directories (and links to -directories) are shown at the beginning of the listing, and other files below. -.PP -.I Show backup files. -If enabled, Midnight Commander will show files ending with a tilde. -Otherwise, they won't be shown (like GNU's ls option \-B). Enabled by default. -.PP -.I Show hidden files. -If enabled, Midnight Commander will show all files that start with -a dot (like ls \-a). Disabled by default. -.PP -.I Fast directory reload. -If this option is enabled, Midnight Commander will use a trick to -determine if the directory contents have changed. The trick is to reload -the directory only if the i\-node of the directory has changed; this means -that reloads only happen when files are created or deleted. If what -changes is the i\-node for a file in the directory (file size changes, -mode or owner changes, etc) the display is not updated. In these cases, -if you have the option on, you have to rescan the directory manually -(with C\-r). Disabled by default. -.PP -.I Mark moves down. -If enabled, the selection bar will move down when you mark a file (with -Insert key). Enabled by default. -.PP -.I Reverse files only. -Allow revert selection of files only. Enabled by default. -If enabled, the reverse selection is applied to files only, not to directories. -The selection of directories is untouched. If off, the reverse selection -is applied to files as well to directories: all unselected items become -selected, and vice versa. -.PP -.I Simple swap. -If both panels contain file listing, simple swap means that panels exchange -its screen positions: left panel become right one, and vice versa. If this -option is unchecked, file listing panels exchange its content keeping listing -format and sort options. Unchecked by default. -.PP -.I Auto save panels setup. -If this option is enabled, when you exit Midnight Commander, the -current settings of panels are saved in the ~/.config/mc/panels.ini file. -Disabled by default. -.PP -.B Navigation -.PP -.I Lynx\-like motion. -If this option is enabled, you may use the arrows keys to automatically -chdir if the current selection is a subdirectory and the shell command -line is empty. By default, this setting is off. -.PP -.I Page scrolling. -If set (the default), panel will scroll by half the display when the -cursor reaches the end or the beginning of the panel, otherwise it -will just scroll a file at a time. -.PP -.I Center scrolling. -If set, panel will scroll when the cursor reaches the middle of the -panel column, only hitting the top or bottom of the panel when actually on -the first or last file. This behavior applies when scrolling one file -at a time, and does not apply to the page up/down keys. -.PP -.I Mouse page scrolling. -Controls whenever scrolling with the mouse wheel is done by pages or -line by line on the panels. -.PP -.B File highlight -.PP -You can specify whether -.I permissions -and -.I file types -should be highlighted with distinctive -.\"LINK2" -Colors\&. -.\"Colors" -If the permission highlighting is enabled, the parts of the -.I perm -and -.I mode -.\"LINK2" -display fields -.\"Listing Format..." -which apply to the user running Midnight Commander are highlighted with -the color defined by the -.I selected -keyword. If the file type highlighting is enabled, file names are colored -according to rules described in -%sysconfdir%/mc/filehighlight.ini -file. See -.\"LINK2" -Filenames Highlight -.\"Filenames Highlight" -for more info. -.PP -.B Quick search -.PP -You can specify how the -.\"LINK2" -Quick search -.\"Quick search" -mode should work: case insensitively, case sensitively or be matched -to the panel sort order: case sensitive or not. -.\"NODE " Confirmation" -.SH " Confirmation" -In this dialog you configure the confirmation options for file deletion, -overwriting files, execution by pressing enter, quitting the program, -directory hotlist entries deletion and history cleanup. -.\"NODE " Appearance" -.SH " Appearance" -In this dialog you can select the skin to be used and enable shadow -for dialogs and drop down menus. -.PP -See the -.\"LINK2" -Skins -.\"Skins" -section for technical details about the skin definition files. -.PP -.I Shadows. -If this option is enabled, all dialogs and drop down menus will have a shadow. -.\"NODE " Display bits" -.SH " Display bits" -This is used to configure the range of visible characters on the -screen. This setting may be 7\-bits if your terminal/curses supports -only seven output bits, ISO\-8859\-1 displays all the characters in the -ISO\-8859\-1 map and full 8 bits is for those terminals that can display -full 8 bit characters. -.\"NODE " Learn keys" -.SH " Learn keys" -This dialog allows you to test and redefine functional keys, cursor -arrows and some other keys to make them work properly on your terminal. -They often don't, since many terminal databases are incomplete or broken. -.PP -You can move around with the Tab key and with the vi moving keys ('h' -left, 'j' down, 'k' up and 'l' right). Once you press any cursor movement -key and it is recognized, you can use that key as well. -.PP -You can test keys just by pressing each of them. When you press a -key and it is recognized properly, OK should appear next to the name -of that key. Once a key is marked OK it starts working as usually, -e.g. F1 pressed the first time will just check that the F1 key works, -but after that it will show help. The same applies to the arrow keys. -The Tab key should be working always. -.PP -If some keys do not work properly then you won't see OK appear after -pressing one of these. Then you may want to redefine it. Do it by pressing -the button with the name of that key (either by the mouse or by Enter -or Space after selecting the button with Tab or arrows). Then a message -box will appear asking you to press that key. Do it and wait until the -message box disappears. If you want to abort, just press Escape once -and wait. -.PP -When you finish with all the keys, you can Save them. The definitions -for the keys you have redefined will be written into the [terminal:TERM] -section of your ~/.config/mc/ini file (where TERM is the name of your current -terminal). The definitions of the keys that were already working properly -are not saved. -.\"NODE " Virtual FS" -.SH " Virtual FS" -This option gives you control over the settings of the -.\"LINK2" -Virtual File System\&. -.\"Virtual File System" -.PP -Midnight Commander keeps in memory the information related to some -of the virtual file systems to speed up the access to the files in the -file system (for example, directory listings fetched from FTP servers). -.PP -Also, in order to access the contents of compressed files (for example, -compressed tar files), Midnight Commander needs to create temporary -uncompressed files on your disk. -.PP -Since both the information in memory and the temporary files on disk -take up resources, you may want to tune the parameters of the cached -information to decrease your resource usage or to maximize the speed of -access to frequently used file systems. -.PP -Because of the format of the tar archives, the -.I Tar filesystem -needs to read the whole file just to load the file entries. Since most -tar files are usually kept compressed (plain tar files are species in -extinction), the tar file system has to uncompress the file on the disk -in a temporary location and then access the uncompressed file as a -regular tar file. -.PP -Now, since we all love to browse files and tar files all over the disk, -it's common that you will leave a tar file and then re\-enter it later. -Since decompression is slow, Midnight Commander will cache the -information in memory for a limited time. When the timeout expires, all -the resources associated with the file system are released. The default -timeout is set to one minute. -.PP -The -.\"LINK2" -FTP File System -.\"FTP File System" -(ftpfs) allows you to browse directories on remote FTP servers. It has -several options. -.PP -.I ftp anonymous password -is the password used when you login as "anonymous". Some sites require -a valid e\-mail address. On the other hand, you probably don't want to -give your real e\-mail address to untrusted sites, especially if you are -not using spam filtering. -.PP -ftpfs keeps the directory listing it fetches from a FTP server in a cache. -The cache expire time is configurable with the -.I ftpfs directory cache timeout -option. A low value for this option may slow down every operation on -the ftpfs because every operation would require sending a request to the -FTP server. -.PP -You can define an FTP proxy host for doing FTP. Note that most modern -firewalls are fully transparent at least for passive FTP (see below), so -FTP proxies are considered obsolete. -.PP -If -.I Always use ftp proxy -is not set, you can use the exclamation sign to enable proxy for certain -hosts. See -.\"LINK2" -FTP File System -.\"FTP File System" -for examples. -.PP -If this option is set, the program will do two things: consult the -%sysconfdir%/mc/mc.no_proxy file for lines containing host names that -are local (if the host name starts with a dot, it is assumed to be a -domain) and to assume that any hostnames without dots in their names are -directly accessible. All other hosts will be accessed through the -specified FTP proxy. -.PP -You can enable using -.I ~/.netrc -file, which keeps login names and passwords for ftp servers. See netrc -(5) for the description of the .netrc format. -.PP -.I Use passive mode -enables using FTP passive mode, when the connection for data transfer is -initiated by the client, not by the server. This option is recommended -and enabled by default. If this option is turned off, the data -connection is initiated by the server. This may not work with some -firewalls. -.\"NODE " Save Setup" -.SH " Save Setup" -At startup, Midnight Commander tries to load initialization information -from the ~/.config/mc/ini file. -If this file doesn't exist, the system\-wide file -.B %sysconfdir%/mc/mc.ini -is used. If this file doesn't exist, the system\-wide file -.B %pkgdatadir%/mc.ini -is used. If this file doesn't exist, MC uses the default settings. -.PP -The -.I Save Setup -command creates the ~/.config/mc/ini file by saving the -current settings of the -.\"LINK2" -Left, Right -.\"Left and Right Menus" -and -.\"LINK2" -Options -.\"Options Menu" -menus. -.PP -If you activate the -.I auto save setup -option, MC will always save the current settings when exiting. -.PP -There also exist settings which can't be changed from the menus. To -change these settings you have to edit the setup file with your -favorite editor. See the section on -.\"LINK2" -Special Settings -.\"Special Settings" -for more information. -.SH "" -.\"NODE "Executing operating system commands" -.SH "Executing operating system commands" -You may execute commands by typing them directly in Midnight -Commander's input line, or by selecting the program you want to -execute with the selection bar in one of the panels and hitting Enter. -.PP -If you press Enter over a file that is not executable, Midnight -Commander checks the extension of the selected file against the -extensions in the -.\"LINK2" -Extensions File\&. -.\"Edit Extension File" -If a match is found then the code associated with that extension is -executed. A very simple -.\"LINK2" -macro expansion -.\"Macro Substitution" -takes place before executing the command. -.\"NODE " The cd internal command" -.SH " The cd internal command" -The -.I cd -command is interpreted by Midnight Commander, it is not passed to -the command shell for execution. Thus it may not handle all of the -nice macro expansion and substitution that your shell does, although it -does some of them: -.PP -.I Tilde substitution. -The (~) will be substituted with your home directory, if you append a -username after the tilde, then it will be substituted with the login -directory of the specified user. -.PP -For example, ~guest is the home directory for the user guest, while -~/guest is the directory guest in your home directory. -.PP -.I Previous directory. -You can jump to the directory you were previously by using the special -directory name '\-' like this: -.B cd \- -.PP -.I CDPATH directories. -If the directory specified to the -.B cd -command is not in the current directory, then Midnight Commander -uses the value in the environment variable -.B CDPATH -to search for the directory in any of the named directories. -.PP -For example you could set your -.B CDPATH -variable to ~/src:/usr/src, allowing you to change your directory to -any of the directories inside the ~/src and /usr/src directories, from -any place in the file system by using its relative name (for example -cd linux could take you to /usr/src/linux). -.\"NODE " Macro Substitution" -.SH " Macro Substitution" -When accessing a -.\"LINK2" -user menu\&, -.\"Edit Menu File" -or executing an -.\"LINK2" -extension dependent command\&, -.\"Edit Extension File" -or running a command from the command line input, a simple macro -substitution takes place. -.PP -The macros are: -.TP -.I %i -The indent of blank space, equal the cursor column position. For edit -menu only. -.TP -.I %y -The syntax type of current file. For edit menu only. -.TP -.I %k -The block file name. -.TP -.I %e -The error file name. -.TP -.I %m -The current menu name. -.TP -.IR %f " and " %p -In file manager user menu: the current file name in selected panel. -In mcedit user menu: the name of opened file. -.TP -.I %x -The extension of current file name. -.TP -.I %b -The current file name without extension. -.TP -.I %d -The current directory name. -.TP -.I %F -The current file in the unselected panel. -.TP -.I %D -The directory name of the unselected panel. -.TP -.I %t -The currently tagged files. -.TP -.I %T -The tagged files in the unselected panel. -.TP -.IR %u " and " %U -Similar to the %t and %T macros, but in addition the files are untagged. -You can use this macro only once per menu file entry or extension file -entry, because next time there will be no tagged files. -.TP -.IR %s " and " %S -The selected files: The tagged files if there are any. Otherwise the -current file. -.TP -.I %cd -This is a special macro that is used to change the current directory -to the directory specified in front of it. This is used primarily as -an interface to the -.\"LINK2" -Virtual File System\&. -.\"Virtual File System" -.TP -.I %view -This macro is used to invoke the internal viewer. This macro can be -used alone, or with arguments. If you pass any arguments to this -macro, they should be enclosed in brackets. -.IP -The arguments are: -.I ascii -to force the viewer into ascii mode; -.I hex -to force the viewer into hex mode; -.I nroff -to tell the viewer that it should interpret the bold and underline -sequences of nroff; -.I unformatted -to tell the viewer to not interpret nroff commands for making the text -bold or underlined. -.TP -.I %% -The % character -.TP -.I %{some text} -Prompt for the substitution. An input box is shown and the text inside -the braces is used as a prompt. The macro is substituted by the text -typed by the user. The user can press Esc or F10 to cancel. This macro -doesn't work on the command line yet. -.TP -.I %var{ENV:default} -If environment variable -.I ENV -is unset, the -.I default -is substituted. Otherwise, the value of -.I ENV -is substituted. -.\"NODE " The subshell support" -.SH " The subshell support" -The subshell support is a compile time option, that works with the -shells: bash, ash (BusyBox and Debian), (o/m)ksh, tcsh, zsh and fish. -.PP -When the subshell support is active, Midnight Commander will -spawn a concurrent copy of your shell (the one defined in the -.B SHELL -variable and if it is not defined, then the one in the /etc/passwd -file) and run it in a pseudo terminal, instead of invoking a new shell -each time you execute a command, the command will be passed to the -subshell as if you had typed it. This also allows you to change the -environment variables, use shell functions and define aliases that are -valid until you quit Midnight Commander. -.PP -.B bash -users may specify startup commands in ~/.local/share/mc/bashrc (fallback ~/.bashrc) -and special keyboard maps in ~/.local/share/mc/inputrc (fallback ~/.inputrc). -.PP -.B ash/dash -users (BusyBox or Debian) may specify startup commands in ~/.local/share/mc/ashrc (fallback ~/.profile). -.PP -.B ksh/oksh -users (PD ksh variants) may specify startup commands in ~/.local/share/mc/kshrc -(fallback -.I ENV -or ~/.profile). -.PP -.B mksh -users (MirBSD ksh) may specify startup commands in ~/.local/share/mc/mkshrc -(fallback -.I ENV -or ~/.mkshrc). -.PP -.B zsh -users may specify startup commands in ~/.local/share/mc/.zshrc (fallback ~/.zshrc). -.PP -.B tcsh, fish -users cannot specify mc-specific startup commands at present. They have to rely on -shell-specific startup files. -.PP -The following paragraphs are relevant only when the subshell support is -active: -.PP -You can suspend applications at any -time with the sequence C\-o and jump back to Midnight Commander, if -you interrupt an application, you will not be able to run other -external commands until you quit the application you interrupted. -.PP -The basic prompt displayed by Midnight Commander is of the form -"user@host:current_path$ ". When using a capable shell, like Bash, the -prompt displayed by Midnight Commander will be the same prompt that you -are currently using in your shell. -.PP -(There's a known problem when using fish: the prompt is displayed only in -full screen mode (Ctrl-o), not when the panels are visible.) -.PP -The -.\"LINK2" -OPTIONS -.\"OPTIONS" -section has more information on how you can control subshell usage (-U/-u). -Furthermore, to set a specific subshell different from your current SHELL variable or -login shell defined in /etc/passwd, you may call MC like this: -.B SHELL=/bin/myshell mc -.\"NODE "Chmod" -.SH "Chmod" -The Chmod window is used to change the attribute bits in a group of -files and directories. It can be invoked with the C\-x c key combination. -.PP -The Chmod window has two parts \- -.I Permissions -and -.IR File . -.PP -In the File section are displayed the name of the file or directory -and its permissions in octal form, as well as its owner and group. -.PP -In the Permissions section there is a set of check buttons which -correspond to the file attribute bits. As you change the attribute -bits, you can see the octal value change in the File section. -.PP -To move between the widgets (buttons and check buttons) use the -.I arrow keys -or the -.I Tab -key. To change the state of the check buttons or to select a button -use -.I Space. -You can also use the hotkeys on the buttons to quickly activate them. -Hotkeys are shown as highlighted letters on the buttons. -.PP -To set the attribute bits, use the Enter key. -.PP -When working with a group of files or directories, you just click on -the bits you want to set or clear. Once you have selected the bits -you want to change, you select one of the action buttons (Set marked -or Clear marked). -.PP -Finally, to set the attributes exactly to those specified, you can use -the -.B [Set all] -button, which will act on all the tagged files. -.PP -.B [Marked all] -set only marked attributes to all selected files -.PP -.B [Set marked] -set marked bits in attributes of all selected files -.PP -.B [Clean marked] -clear marked bits in attributes of all selected files -.PP -.B [Set] -set the attributes of one file -.PP -.B [Cancel] -cancel the Chmod command -.\"NODE "Chown" -.SH "Chown" -The Chown command is used to change the owner/group of a file. The hot -key for this command is C\-x o. -.\"NODE "Advanced Chown" -.SH "Advanced Chown" -The Advanced Chown command is the -.\"LINK2" -Chmod -.\"Chmod" -and -.\"LINK2" -Chown -.\"Chown" -command combined into one window. You can change the permissions and -owner/group of files at once. -.\"NODE "Chattr" -.SH "Chattr" -The Chattr window is used to change the attributes of a group of files -and directories on a Linux file system. It can be invoked with the C\-x e -key combination. -.PP -Not all attributes are supported or utilized by all filesystems. -List of available attribute flags is represented as a set of check buttons -which correspond to the attribute flags (see -.B chattr(1) -for details). As you change the attribute flags, you can see the symbolic -value change below file name. -.PP -To move between the widgets (buttons and check buttons) use the -.I arrow keys -or the -.I Tab -key. To change the state of the check buttons or to select a button use -.BR Space . -.PP -To set the attributes, use the Enter key. -.PP -When working with a group of files or directories, you just click on -the flags you want to set or clear. Once you have selected the flags -you want to change, you select one of the action buttons (Set marked -or Clear marked). -.PP -Finally, to set the attributes exactly to those specified, you can use -the -.B [Set all] -button, which will act on all the tagged files. -.PP -.B [Marked all] -set only marked attributes to all selected files. -.PP -.B [Set marked] -set marked flags in attributes of all selected files. -.PP -.B [Clean marked] -clear marked flags in attributes of all selected files. -.PP -.B [Set] -set the attributes of one file. -.PP -.B [Cancel] -cancel the Chattr command. -.\"NODE "File Operations" -.SH "File Operations" -When you copy, move or delete files, Midnight Commander shows the -file operations dialog. It shows the files currently being processed -and uses up to two progress bars. The file bytes bar indicates the -percentage of the current file that has been processed so far. The -total bytes bar indicates the percentage of the total size of the tagged -files that has been handled. Counters that show how many of the tagged -files have been handled are displayed. If the -.I Verbose -option is off, the file bytes bar and total bytes bar are not shown. -.PP -There are three buttons at the bottom of the dialog: -.TP -.B [Skip] -button to skip the rest of the current file. -.TP -.B [Suspend] -button to suspend the file operation and button transforms to the -.B [Continue] -one which continue the suspended operation. -.TP -.B [Abort] -button to abort the whole operation, the rest of the files are skipped. -.PP -There are three other dialogs which you can run into during the file -operations. -.PP -The error dialog informs about error conditions and has four choices: -.TP -.B [Ignore] -button to ignore this error. -.TP -.B [Ignore all] -button to ignore this and all future errors. -.TP -.B [Abort] -button to abort the operation altogether. -.TP -.B [Retry] -button to continue if you fixed the problem from another terminal. -.PP -The replace dialog is shown when you attempt to copy or move a file on -the top of an existing file. The dialog shows the dates and sizes of -the both files. There are the following buttons in this dialog: -.TP -.B [Yes] -button to overwrite the file. -.TP -.B [No] -button to skip the file. -.TP -.B [Append] -button to append the source file to the target one. -.TP -.B [Reget] -button to append the rest of the source file to the target one. -This button is displayed only if the size of the target file -is non-zero and less than the size of the source file. -.TP -.B [All] -button to overwrite all the files. -.TP -.B [Older] -button to overwrite if the source file is newer than the target file. -.TP -.B [None] -button to never overwrite files -.TP -.B [Smaller] -button to overwrite if the source file size is less than the target one. -.TP -.B [Size differs] -button to overwrite files with different sizes. -.TP -.B [Abort] -button to abort the whole operation. -.PP -If the -.B Don't overwrite with zero length file -checkbox is on, the zero\-sized source files don't overwrite the -non\-zero\-sized target files. -.PP -The recursive delete dialog is shown when you try to delete a directory -which is not empty. There are the following buttons in this dialog: -.TP -.B [Yes] -button to delete the directory recursively. -.TP -.B [No] -button to skip the directory. -.TP -.B [All] -button to delete all the directories. -.TP -.B [None] -button to skip all the non\-empty directories. -.TP -.B [Abort] -button to abort the whole operation. -.PP -If you have tagged files and perform an operation on them only the files -on which the operation succeeded are untagged. Failed and skipped files -are left tagged. -.\"NODE "Mask Copy/Rename" -.SH "Mask Copy/Rename" -The copy/move operations let you translate the names of files in an -easy way. To do it, you have to specify the correct source mask and -usually in the trailing part of the destination specify some wildcards. -All the files matching the source mask are copied/renamed according to -the target mask. If there are tagged files, only the tagged files -matching the source mask are renamed. -.PP -There are other options which you can set: -.PP -.B Follow links -.PP -determines whether make the symlinks and hardlinks in the source -directory (recursively in subdirectories) new links in the target -directory or whether would you like to copy their content. -.PP -.B Dive into subdirs -.PP -determines the behavior when the source directory is about to be copied, -but the target directory already exists. The default action is to copy -the contents of the source directory into the target directory. -Enabling this option causes copying the source directory itself into the -target directory. -.PP -For example, you want to copy directory -.I /foo -containing file -.I bar -to -.IR /bla/foo , -which is an already existing directory. Normally (when -.B Dive into subdirs -is not set), mc would copy file -.I /foo/bar -into the file -.IR /bla/foo/bar . -By enabling this option the -.I /bla/foo/foo -directory will be created, and -.I /foo/bar -will be copied into -.IR /bla/foo/foo/bar . -.PP -.B Preserve attributes -.PP -determines whether to preserve the permissions, timestamps and (if you -are root) the ownership of the original files. If this option is not -set, the current value of the umask will be respected. -.PP -.B Use shell patterns -.PP -When this option is on you can use the '*' and '?' wildcards in the source -mask. They work like they do in the shell. In the target mask only the '*' -and '\\' wildcards are allowed. The first '*' wildcard in the target -mask corresponds to the first wildcard group in the source mask, -the second '*' corresponds to the second group and so on. The '\\1' wildcard -corresponds to the first wildcard group in the source mask, the '\\2' wildcard -corresponds to the second group and so on all the way up to '\\9'. -The '\\0' wildcard is the whole filename of the source file. -.PP -Two examples: -.PP -If the source mask is "*.tar.gz", the destination is "/bla/*.tgz" and the -file to be copied is "foo.tar.gz", the copy will be "foo.tgz" in "/bla". -.PP -Suppose you want to swap basename and extension so that "file.c" would -become "c.file" and so on. The source mask for this is "*.*" and the -destination is "\\2.\\1". -.PP -.B Use shell patterns off -.PP -When the shell patterns option is off the MC doesn't do automatic -grouping anymore. You must use '\\(...\\)' expressions in the source -mask to specify meaning for the wildcards in the target mask. This is -more flexible but also requires more typing. Otherwise target masks -are similar to the situation when the shell patterns option is on. -.PP -Two examples: -.PP -If the source mask is "^\\(.*\\)\\.tar\\.gz$", the destination is -"/bla/*.tgz" and the file to be copied is "foo.tar.gz", the copy -will be "/bla/foo.tgz". -.PP -Let's suppose you want to swap basename and extension so that "file.c" -will become "c.file" and so on. The source mask for this is -"^\\(.*\\)\\.\\(.*\\)$" and the destination is "\\2.\\1". -.PP -.B Case Conversions -.PP -You can also change the case of the filenames. If you use '\\u' -or '\\l' in the target mask, the next character will be converted to -uppercase or lowercase correspondingly. -.PP -If you use '\\U' or '\\L' in the target mask, the next characters will -be converted to uppercase or lowercase correspondingly up to the -next '\\E' or next '\\U', '\\L' or the end of the file name. -.PP -The '\\u' and '\\l' are stronger than '\\U' and '\\L'. -.PP -For example, if the source mask is '*' ( -.I Use shell patterns -on) or '^\\(.*\\)$' ( -.I Use shell patterns -off) and the target mask is '\\L\\u*' the file names will be converted -to have initial upper case and otherwise lower case. -.PP -You can also use '\\' as a quote character. For example, '\\\\' is -a backslash and '\\*' is an asterisk. -.PP -.B Stable symlinks -.PP -commands Midnight Commander, that it should change symlinks in the target, -so that they'll point to the same location as it did before. With absolute -symbolic links this does nothing, but if you have a relative one, it will -recompute its value, adding necessary ../ and other directory parts and making -the value as short as possible (most modern filesystems keep short symlinks -inside inodes and thus don't waste much disk space). - -.\"NODE "Select/Unselect Files" -.SH "Select/Unselect Files" -The dialog of group of files and directories selection or uselection. -The -.\"LINK2" -input line -.\"Input Line Keys" -allow enter the regular expression of filenames that will be -selected/unselected. -.PP -When -.I Files only -checkbox is on, only files will be selected. If -.I Files only -is off, as files as directories will be selected. -When -.I Shell Patterns -checkbox is on, the regular expression is much like the filename globbing -in the shell (* standing for zero or more characters and ? standing -for one character). If -.I Shell Patterns -is off, then the tagging of files is done with normal regular -expressions (see ed (1)). When -.I Case sensitive -checkbox is on, the selection will be case sensitive characters. -If -.I Case sensitive -is off, the case will be ignored. -.\"NODE "Diff Viewer" -.SH "Internal Diff Viewer" -The mcdiff is a visual diff tool. You can compare two files and edit them -in\-place (diffs are updated dynamically). You can browse and view a working -copy from popular version control systems (GIT, Subversion, etc). -.PP -Following shortcuts are available in internal diff viewer of Midnight -Commander. -.TP -.B F1 -Invoke the built\-in hypertext help viewer. -.TP -.B F2 -Save modified files. -.TP -.B F4 -Edit file of the left panel in the internal editor. -.TP -.B F14 -Edit file of the right panel in the internal editor. -.TP -.B F5 -Merge the current hunk. Only the current hunk will be merged. -.TP -.B F7 -Start search. -.TP -.B F17 -Continue search. -.TP -.B F10, Esc, q -Exit from diff viewer. -.TP -.B Alt\-s, s -Toggle show of hunk status. -.TP -.B Alt\-n, l -Toggle show of line numbers. -.TP -.B f -Maximize left panel. -.TP -.B = -Make panels equal in width. -.TP -.B > -Reduce the size of the right panel. -.TP -.B < -Reduce the size of the left panel. -.TP -.B c -Toggle show of trailing carriage return (CR) symbol as ^M. -.TP -.B 2, 3, 4, 8 -Set tabulation size -.TP -.B C\-u -Swap contents of diff panels. -.TP -.B C\-r -Refresh the screen. -.TP -.B C\-o -Switch to the subshell and show the command screen. -.TP -.B Enter, Space, n -Find next diff hunk. -.TP -.B Backspace, p -Find previous diff hunk. -.TP -.B g -Go to line. -.TP -.B Down -Scroll one line forward. -.TP -.B Up -Scroll one line backward. -.TP -.B PageUp -Move one page up. -.TP -.B PageDown -Moves one page down. -.TP -.B Home, A1 -Moves to the line beginning. -.TP -.B End -Moves to the line end. -.TP -.B C\-Home -Move to the file beginning. -.TP -.B C\-End, C1 -Move to the file end. -.\"NODE "Internal File Viewer" -.SH "Internal File Viewer" -The internal file viewer provides two display modes: ASCII and hex. -To toggle between modes, use the F4 key. -.PP -The viewer will try to use the best method provided by your system or -the file type to display the information. -Some character sequences, which appear most often in preformatted manual -pages, are displayed bold and underlined, thus making a pretty display -of your files. -.PP -When in hex mode, the search function accepts text in quotes and -constant numbers. Text in quotes is matched exactly after removing -the quotes. Each number matches one byte. You can mix quoted text -with constants like this: -.PP -.nf -"String" 34 0xBB 012 "more text" -.fi -.PP -Numbers are always interpreted in hex. In the example above, "34" is -interpreted as 0x34. The prefix "0x" isn't really needed: we could type -"BB" instead of "0xBB". And "012" is interpreted as 0x12, not as an octal -number. -.PP -Here is a listing of the actions associated with each key that the -Midnight Commander handles in the internal file viewer. -.TP -.B F1 -Invoke the built\-in hypertext help viewer. -.TP -.B F2 -Toggle the wrap mode. -.TP -.B F4 -Toggle the hex mode. -.TP -.B F5 -Goto. You can specify a line number, offset or percentage of file size -of position that you want to view. -.TP -.B F7, /, ? -Start search. These keys call the dialog window that allows you to set up -the search options. If key is ? the "Backwards" option is on. -.TP -.B C\-s -Continue forward search. -.TP -.B C\-r -Continue reverse search. -.TP -.B F17, n -Continue search in the chosen direction. -.TP -.B N -Temporary change the search direction: backwards if forward search is chosen, -and vice versa. -.TP -.B F8 -Toggle Raw/Parsed mode: This will show the file as found on disk or if -a processing filter has been specified in the mc.ext.ini file, then the -output from the filter. Current mode is always the other than written -on the button label, since on the button is the mode which you enter -by that key. -.TP -.B F9 -Toggle the format/unformat mode: when format mode is on the viewer -will interpret some string sequences to show bold and underline with -different colors. Also, on button label is the other mode than current. -.TP -.B F10, Esc. -Exit the internal file viewer. -.TP -.B PageDown, space, C\-v. -Scroll one page forward. -.TP -.B PageUp, Alt\-v, C\-b, Backspace. -Scroll one page backward. -.TP -.B Down -Scroll one line forward. -.TP -.B Up -Scroll one line backward. -.TP -.B C\-l -Refresh the screen. -.TP -.B C\-o -Switch to the subshell and show the command screen. -.TP -.B "[n] m" -Set the mark n. -.TP -.B "[n] r" -Jump to the mark n. -.TP -.B C\-f -Jump to the next file. -.TP -.B C\-b -Jump to the previous file. -.TP -.B Alt\-r -Toggle the ruler. -.TP -.B Alt\-e -to change charset of displayed text may use Alt\-e (M\-e). -Recoding is made from selected codepage into system codepage. To -cancel the recoding you may select "" in charset -selection dialog. -.PP -It's possible to instruct the file viewer how to display a file, look -at the -.\"LINK2" -Edit Extension File section -.\"Edit Extension File" - -.\"NODE "Internal File Editor" -.SH "Internal File Editor" -The internal file editor is a full\-featured full screen editor. It can -edit files up to 64 megabytes. It is possible to edit binary files. -The internal file editor is invoked using -.B F4 -if the -.I use_internal_edit -option is set in the initialization file. -.PP -The features it presently supports are: block copy, move, delete, cut, -paste; key for key undo; pull\-down menus; file insertion; macro -commands; regular expression search and replace; S\-arrow text highlighting -(if supported by the terminal); insert\-overwrite toggle; word wrap; -autoindent; tunable tab size; syntax highlighting for various file -types; and an option to pipe text blocks through shell commands like -indent and ispell. -.PP -Sections: -.IP -.\"LINK2" -Options of editor in ini\-file -.\"Internal File Editor / options" -.PP -The editor is very easy to use and requires no tutoring. To see what -keys do what, just consult the appropriate pull\-down menu. Other keys -are: Shift movement keys do text highlighting. -.B C\-Ins -copies to the file -.B mcedit.clip -and -.B S\-Ins -pastes from mcedit.clip. -.B S\-Del -cuts to -.BR mcedit.clip , -and -.B C\-Del -deletes highlighted text. Mouse highlighting also works, and you -can override the mouse as usual by holding down the shift key -while dragging the mouse to let normal terminal mouse highlighting -work. -.PP -To define a macro, press -.B C\-R -and then type out the key -strokes you want to be executed. Press -.B C\-R -again when finished. You can then assign the macro to any key you -like by pressing that key. The macro is executed when you press -.B C\-A -and then the assigned key. The macro is also executed if -you press Meta, Ctrl, or Esc and the assigned key, provided that the -key is not used for any other function. Once defined, the macro -commands go into the file -.B ~/.local/share/mc/mcedit/mcedit.macros -You can delete a macro by deleting the -appropriate line in this file. -.PP -To change charset of displayed text may use Alt\-e (M\-e). -Recoding is made from selected codepage into system codepage. To -cancel the recoding you may select "" in charset -selection dialog. -.PP -.B F19 -will format the currently highlighted block (plain text or C or C++ -code or another). This is controlled by the -file -.B %pkgdatadir%/edit.indent.rc -which is copied to -.B ~/.local/share/mc/mcedit/edit.indent.rc -in your home directory the first time you use it. -.PP -The editor also displays non\-us characters (160+). When editing -binary files, you should set -.B display bits -to 7 bits in the options menu to keep the spacing clean. - -.\"NODE "Internal File Editor / options" -.SH "Options of editor in ini\-file" - -Some editor options of ini\-file are described in this section. -Options are placed in [Midnight\-Commander] section -.TP -.I editor_wordcompletion_collect_entire_file -Search autocomplete candidates in entire of file or just from -begin of file to cursor position (0) - -.\"NODE "Screen selector" -.SH "Screen selector" -Midnight Commander supports running many internal modules (such as -editor, viewer and diff viewer) simultaneously and switching between -them without closing open files. Using several file managers at a time, -however, is not currently supported. -.PP -Let's call each of these modules a screen. There are three ways to -switch between screens, using one of these global shortcuts: -.TP -.B Alt\-} -switch to the next screen; -.TP -.B Alt\-{ -switch to the previous screen; -.TP -.B Alt\-` -open a dialog window with the list of currently open screens (or use the -"Screen list" menu item). -.\"NODE "Completion" -.SH "Completion" -Let Midnight Commander type for you. -.PP -Attempt to perform completion on the text before current position. MC -attempts completion treating the text as variable (if the text begins -with -.BR $ ), -username (if the text begins with -.BR ~ ), -hostname (if the text begins with -.BR @ ) -or command (if you are on the command line in the position where you -might type a command, possible completions then include shell reserved -words and shell built\-in commands as well) in turn. If none of these -matches, filename completion is attempted. -.PP -Filename, username, variable and hostname completion works on all input -lines, command completion is command line specific. If the completion -is ambiguous (there are more different possibilities), MC beeps and the -following action depends on the setting of the -.\"LINK2" -Complete: show all -.\"Configuration" -option in the -.\"LINK2" -Configuration -.\"Configuration" -dialog. If it is enabled, a list of all possibilities pops up next to -the current position and you can select with the arrow keys and -.B Enter -the correct entry. You can also type the first letters in which the -possibilities differ to move to a subset of all possibilities and -complete as much as possible. If you press -.B Alt\-Tab -again, only the subset will be shown in the listbox, otherwise the first -item which matches all the previous characters will be highlighted. As -soon as there is no ambiguity, dialog disappears, but you can hide it by -canceling keys -.BR Esc , -.B F10 -and left and right arrow keys. If -.\"LINK2" -Complete: show all -.\"Configuration" -is disabled, the dialog pops up only if you press -.B Alt\-Tab -for the second time, for the first time MC just beeps. -.PP -Apply escaping of \fB?\fR, \fB*\fR, and \fB&\fR symbols (as \fB\\?\fR, \fB\\*\fR, -and \fB\\&\fR) in filenames to disallow use them as metasymbols in regular -expressions when substitution is performed in the input line. - -.\"NODE "Virtual File System" -.SH "Virtual File System" -Midnight Commander is provided with a code layer to access the file -system; this code layer is known as the virtual file system switch. The -virtual file system switch allows Midnight Commander to manipulate -files not located on the Unix file system. -.PP -Currently, Midnight Commander is packaged with some Virtual File -Systems (VFS): the -.I local -file system, used for accessing the regular Unix file system; the -.IR ftpfs , -used to manipulate files on remote systems with the FTP protocol; the -.IR tarfs , -used to manipulate tar and compressed tar files; the -.IR undelfs , -used to recover deleted files on ext2 file systems (the default file -system for Linux systems), -.I shell -(for manipulating files over shell connections such as rsh and ssh). -If the code was compiled with -.I sftpfs -(for manipulating files over SFTP connections). -.PP -A generic -.I extfs -(EXTernal virtual File System) is provided in order to easily expand -VFS capabilities using scripts and external software. -.PP -The VFS switch code will interpret all of the path names used and will -forward them to the correct file system, the formats used for each one -of the file systems is described later in their own section. -.\"NODE " FTP File System" -.SH " FTP File System" -The FTP File System (ftpfs) allows you to manipulate files on remote -machines. To actually use it, you can use the -.I FTP link -item in the menu or directly change your current directory using the -.I cd -command to a path name that looks like this: -.PP -.I ftp://[!][user[:pass]@]machine[:port]/[remote\-dir] -.PP -The -.IR user , -.I port -and -.I remote\-dir -elements are optional. If you specify the -.I user -element, Midnight Commander will login to the remote machine as that -user, otherwise it will use anonymous login or the login name from the -.I ~/.netrc -file. The optional -.I pass -element is the password used for the connection. Using the password in -the VFS directory name is not recommended, because it can appear on the -screen in clear text and can be saved to the directory history. -.PP -To enable using FTP proxy, prepend -.B ! -(an exclamation sign) to the hostname. -.PP -Examples: -.PP -.nf - ftp://ftp.nuclecu.unam.mx/linux/local - ftp://tsx\-11.mit.edu/pub/linux/packages - ftp://!behind.firewall.edu/pub - ftp://guest@remote\-host.com:40/pub - ftp://miguel:xxx@server/pub -.fi -.PP -Please check the -.\"LINK2" -Virtual File System -.\"Virtual FS" -dialog box for ftpfs options. -.\"NODE " Tar File System" -.SH " Tar File System" -The tar file system provides you with read\-only access to your tar -files and compressed tar files by using the chdir command. To change -your directory to a tar file, you change your current directory to the -tar file by using the following syntax: -.PP -.I /filename.tar/utar://[dir\-inside\-tar] -.PP -The mc.ext.ini file already provides a shortcut for tar files, this means -that usually you just point to a tar file and press return to enter -into the tar file, see the -.\"LINK2" -Edit Extension File -.\"Edit Extension File" -section for details on how this is done. -.PP -Examples: -.PP -.nf - mc\-3.0.tar.gz/utar://mc\-3.0/vfs - /ftp/GCC/gcc\-2.7.0.tar/utar:// -.fi -.PP -The latter specifies the full path of the tar archive. -.\"NODE " FIle transfer over SHell filesystem" -.SH " FIle transfer over SHell filesystem" -The shell file system is a network based file system that allows you to -manipulate the files in a remote machine as if they were local. To use -this, the other side has to have bash\-compatible shell. -.PP -To connect to a remote machine, you just need to chdir -into a special directory which name is in the following -format: -.PP -.I sh://[user@]machine[:options]/[remote\-dir] -.PP -The -.I user, -.I options -and -.I remote\-dir -elements are optional. If you specify the -.I user -element, Midnight Commander will try to login on the remote -machine as that user, otherwise it will use your login name. -.PP -The available -.I options -are: -.nf - 'C' \- use compression; - 'r' \- use rsh instead of ssh; - port \- specify the port used by remote server. -.fi -If the -.I remote\-dir -element is present, your current directory on the remote machine will be -set to this one. -.PP -Examples: -.PP -.nf - sh://onlyrsh.mx:r/linux/local - sh://joe@want.compression.edu:C/private - sh://joe@noncompressed.ssh.edu/private - sh://joe@somehost.ssh.edu:2222/private -.fi -.\"NODE " SFTP (SSH File Transfer Protocol) filesystem" -.SH " SFTP (SSH File Transfer Protocol) filesystem" -The SFTP file system is a network based file system that allows you to -manipulate the files in a remote machine as if they were local. -.PP -To connect to a remote machine, you just need to chdir -into a special directory which name is in the following -format: -.PP -.I sftp://[user@]machine:[port]/[remote\-dir] -.PP -The -.I user, -.I port -and -.I remote\-dir -elements are optional. If you specify the -.I user -element, Midnight Commander will try to login on the remote -machine as that user, otherwise it will use your login name. -.I port -\- specify the port used by remote server (22 by default). -If the -.I remote\-dir -element is present, your current directory on the remote machine will be -set to this one. -.PP -Examples: -.PP -.nf - sftp://onlyrsh.mx/linux/local - sftp://joe:password@want.compression.edu/private - sftp://joe@noncompressed.ssh.edu/private - sftp://joe@somehost.ssh.edu:2222/private -.fi -.PP -When establishing the connection, server key fingerprint is verified using -the ~/.ssh/known_hosts file. If the host/key pair is not found or the host is found, -but the key doesn't match, an appropriate message is shown. -There are three buttons in the message dialog: -.PP -.B [Yes] -add new host/key pair to the ~/.ssh/known_hosts file and continue. -.PP -.B [Ignore] -do not add new host/key pair to the ~/.ssh/known_hosts file, but continue -nevertheless (at you own risk). -.PP -.B [No] -abort connection. -.\"NODE " Undelete File System" -.SH " Undelete File System" -On Linux systems, if you asked configure to use the ext2fs undelete -facilities, you will have the undelete file system available. -Recovery of deleted files is only available on ext2 file systems. The -undelete file system is just an interface to the ext2fs library to -retrieve all of the deleted files names on an ext2fs and provides and -to extract the selected files into a regular partition. -.PP -To use this file system, you have to chdir into the special file name -formed by the "undel://" prefix and the file name where the actual -file system resides. -.PP -For example, to recover deleted files on the second partition of the -first SCSI disk on Linux, you would use the following path name: -.PP -.nf - undel://sda2 -.fi -.PP -It may take a while for the undelfs to load the required information -before you start browsing files there. -.\"NODE " EXTernal File System" -.SH " EXTernal File System" -.B extfs -allows you to integrate numerous features and file types into GNU Midnight -Commander in an easy way, by writing scripts. -.PP -Extfs filesystems can be divided into two categories: -.PP -1. Stand\-alone filesystems, which are not associated with any existing -file. They represent certain system\-wide data as a directory tree. -You can invoke them by typing -.I "cd fsname://" -where fsname is an extfs short name (see below). Examples of such -filesystems include audio (list audio tracks on the CD) or apt (list of -all Debian packages in the system). -.PP -For example, to list CD\-Audio tracks on your CD\-ROM drive, type -.PP -.nf - cd audio:// -.fi -.PP -2. 'Archive' filesystems (like rpm, patchfs and more), which represent -contents of a file as a directory tree. It can consist of 'real' files -compressed in an archive (urar, rpm) or virtual files, like messages -in a mailbox (mailfs) or parts of a patch (patchfs). To access such -filesystems -.I fsname:// -should be appended to the archive name. Note that the archive itself -can be on another vfs. -.PP -For example, to list contents of a zip archive documents.zip type -.PP -.nf - cd documents.zip/uzip:// -.fi -.PP -In many aspects, you could treat extfs like any other directory. For -instance, you can add it to the hotlist or change to it from directory -history. An important limitation is that you cannot invoke shell -commands inside extfs, just like any other non\-local VFS. -.PP -Common extfs scripts included with Midnight Commander are: -.TP -.B a -access 'A:' DOS/Windows diskette -.RI ( "cd a://" ). -.TP -.B apt -front end to Debian's APT package management system -.RI ( "cd apt://" ). -.TP -.B audio -audio CD ripping and playing -.RI ( "cd audio://" -or -.IR "cd device/audio://" ). -.TP -.B bpp -package of Bad Penguin GNU/Linux distribution -.RI ( "cd file.bpp/bpp://" ). -.TP -.B deb -package of Debian GNU/Linux distribution -.RI ( "cd file.deb/deb://" ). -.TP -.B dpkg -Debian GNU/Linux installed packages -.RI ( "cd deb://" ). -.TP -.B hp48 -view and copy files to/from a HP48 calculator -.RI ( "cd hp48://" ). -.TP -.B lslR -browsing of lslR listings as found on many FTPs -.RI ( "cd filename/lslR://" ). -.TP -.B mailfs -mbox\-style mailbox files support -.RI ( "cd mailbox/mailfs://" ). -.TP -.B patchfs -extfs to handle unified and context diffs -.RI ( "cd filename/patchfs://" ). -.TP -.B rpm -RPM package -.RI ( "cd filename/rpm://" ). -.TP -.B rpms -RPM database management -.RI ( "cd rpms://" ). -.TP -.B ulha, urar, uzip, uzoo, uar, uha -archivers -.RI ( "cd archive/xxxx://" -where xxxx is one of: -.IR ulha , -.IR urar , -.IR uzip , -.IR uzoo , -.IR uar , -.IR uha ). -.PP -You could bind file type/extension to specified extfs as described in the -.\"LINK2" -Edit Extension File -.\"Edit Extension File" -section. Here is an example entry for Debian packages: -.PP -.nf - regex/\.deb$ - Open=%cd %p/deb:// -.fi -.\"NODE "Colors" -.SH "Colors" -Midnight Commander will try to detect if your terminal supports -color using the terminal database and your terminal name. Sometimes -it gets confused, so you may force color mode or disable color mode -using the \-c and \-b flag respectively. -.PP -If the program is compiled with the S\-Lang screen manager instead of -ncurses, it will also check the variable -.B COLORTERM, -if it is set, it has the same effect as the \-c flag. -.PP -You may specify terminals that always force color mode -by adding the -.I color_terminals -variable to the Colors section of the initialization file. This will -prevent Midnight Commander from trying to detect if your terminal -supports color. Example: -.PP -.nf -[Colors] -color_terminals=linux,xterm -color_terminals=terminal\-name1,terminal\-name2... -.fi -.PP -The program can be compiled with both ncurses and S\-Lang, ncurses does -not provide a way to force color mode: ncurses uses just the -information in the terminal database. -.PP -Midnight Commander provides a way to change the default colors. -Currently the colors are configured using the environment variable -.B MC_COLOR_TABLE -or the Colors section in the initialization file. -.PP -In the Colors section, the default color map is loaded from the -.I base_color -variable. You can specify an alternate color map for a terminal by -using the terminal name as the key in this section. Example: -.PP -.nf -[Colors] -base_color= -xterm=menu=magenta:marked=,magenta:markselect=,red -.fi -.PP -The format for the color definition is: -.PP -.nf - =,,:=... -.fi -.PP -The colors are optional, and the keywords are: normal, selected, disabled, marked, -markselect, errors, input, inputmark, inputunchanged, commandlinemark, -reverse, gauge, header, inputhistory, commandhistory. Button bar colors are: -bbarhotkey, bbarbutton. Status bar color: statusbar. Menu colors are: menunormal, -menusel, menuhot, menuhotsel, menuinactive. Dialog colors are: dnormal, dfocus, -dhotnormal, dhotfocus, dtitle. Error dialog colors are: errdfocus, errdhotnormal, -errdhotfocus, errdtitle. Help colors are: helpnormal, helpitalic, helpbold, -helplink, helpslink, helptitle. Viewer colors are: viewnormal, viewbold, -viewunderline, viewselected. Editor colors are: editnormal, editbold, editmarked, -editwhitespace, editnonprintable, editlinestate. Popup menu colors are: pmenunormal, -pmenusel, pmenutitle. -.PP -.I header -determines the color of panel header, the line that contains column titles -and sort mode indicator. -.PP -.I input -determines the color of input lines used in query dialogs. -.PP -.I gauge -determines the color of the filled part of the progress bar (gauge), -which is used to show the user the progress of file operations, such as -copying. -.PP -.I disabled -determines the color of the widget that cannot be selected. -.PP -The dialog boxes use the following colors: -.I dnormal -is used for the normal text, -.I dfocus -is the color used for the currently selected component, -.I dhotnormal -is the color used to differentiate the hotkey color in normal -components, whereas the -.I dhotfocus -color is used for the highlighted color in the currently selected -component. -.PP -Menus use the same scheme but uses the menunormal, menusel, menuhot, menuhotsel -and menuinactive tags instead. -.PP -Help uses the following colors: -.I helpnormal -is used for normal text, -.I helpitalic -is used for text which is emphasized in italic in the manual page, -.I helpbold -is used for text which is emphasized in bold in the manual page, -.I helplink -is used for not selected hyperlinks and -.I helpslink -is used for selected hyperlink. -.PP -Popup menu uses following colors: -.I pmenunormal -is used for non\-selected menu items and as a main color of popup menu window, -.I pmenusel -is used for selected menu item, -.I pmenutitle -is used for popup menu title. -.PP -The possible colors are: black, gray, red, brightred, green, -brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta, -cyan, brightcyan, lightgray and white. And there is a special keyword -for transparent background. It is 'default'. The 'default' can only be -used for background color. Another special keyword "base" means mc's main -colors. When 256 colors are available, they can be specified either as -color16 to color255, or as rgb000 to rgb555 and gray0 to gray23. Example: -.PP -.nf -[Colors] -base_color=normal=white,default:marked=magenta,default -.fi -.PP -Attributes can be any of bold, italic, underline, reverse and blink, appended by a -plus sign if more than one are desired. The special word "none" means no -attributes, without attempting to fall back to base_color. Example: -.PP -.nf -menuhotsel=yellow;black;bold+underline -.fi - -.\"NODE "Skins" -.SH "Skins" -You can change the appearance of Midnight Commander. -To do this, you must specify a file that contain descriptions of colors -and lines to draw boxes. Redefining of the colors is entirely compatible -with the assignment of colors, as described in Section -.\"LINK2" -Colors\&. -.\"Colors" -.PP -If your skin contains any true\-color definitions, you should define -the 'truecolors' key set to TRUE value in [skin] section. If true\-color -is not used but 256\-color is, you should define '256colors' instead. -.PP -A skin\-file is searched on the following algorithm (to the first one found): -.IP -.br -1) command line option -.B \-S -or -.B \-\-skin= -.br -2) Environment variable -.B MC_SKIN -.br -3) Parameter -.B skin -in section -.B [Midnight\-Commander] -in config file. -.br -4) File -.B %sysconfdir%/mc/skins/default.ini -.br -5) File -.B %pkgdatadir%/skins/default.ini - -.PP -Command line option, environment variable and parameter in config file may -contain the absolute path to the skin\-file (with the extension \.ini -or without it). Search of skin\-file will occur in (to the first one found): -.IP -1) -.B ~/.local/share/mc/skins/ -.br -2) -.B %sysconfdir%/mc/skins/ -.br -3) -.B %pkgdatadir%/skins/ -.br - -.PP -For getting extended info, refer to: -.IP -.\"LINK2" -Description of section and parameters -.\"Skins sections" -.br -.\"LINK2" -Color pair definitions -.\"Skins colors" -.br -.\"LINK2" -Color and attribute aliases -.\"Skins aliases" -.br -.\"LINK2" -Draw lines -.\"Skins lines" -.br -.\"LINK2" -Compatibility -.\"Skins oldcolors" -.br - -.\"NODE " Skins sections" -.SH " Description of section and parameters" - -Section -.B [skin] -contain metainfo for skin\-file. Parameter -.I description -contain short text about skin. - -.PP -Section -.B [filehighlight] -contain descriptions of color pairs for filenames highlighting. -Name of parameters must be equal to names of sections into -filehighlight.ini file. -See -.\"LINK2" -Filenames Highlight -.\"Filenames Highlight" -for getting more info. - -.PP -Section -.B [core] -describes the elements that are used everywhere. -.TP -.I _default_ -Default color pair. Used in all other sections if they not contain -color definitions -.TP -.I selected -cursor -.TP -.I marked -selected data -.TP -.I markselect -cursor on selected data -.TP -.I gauge -color of the filled part of the progress bar -.TP -.I input -color of input lines used in query dialogs -.TP -.I inputmark -color of input selected text -.TP -.I inputunchanged -color of input text before first modification or cursor movement -.TP -.I commandlinemark -color of selected text in command line -.TP -.I reverse -reverse color -.PP -Section -.B [dialog] -describes the elements that are placed on dialog windows (except error dialogs). -.TP -.I _default_ -Default color for this section. Used [core]._default_ if not specified -.TP -.I dfocus -Color of active element (in focus) -.TP -.I dhotnormal -Color of hotkeys -.TP -.I dhotfocus -Color of hotkeys in focused element - -.PP -Section -.B [error] -describes the elements that are placed on error dialog windows -.TP -.I _default_ -Default color for this section. Used [core]._default_ if not specified -.TP -.I errdhotnormal -Color of hotkeys -.TP -.I errdhotfocus -Color of hotkeys in focused element - -.PP -Section -.B [menu] -describes the elements that are placed in menu. This section describes -system menu (called by F9) and user\-defined menus (called by F2 in panels -and by F11 in editor). -.TP -.I _default_ -Default color for this section. Used [core]._default_ if not specified -.TP -.I entry -Color of menu items -.TP -.I menuhot -Color of menu hotkeys -.TP -.I menusel -Color of active menu item (in focus) -.TP -.I menuhotsel -Color of menu hotkeys in focused menu item -.TP -.I menuinactive -Color of inactive menu - -.PP -Section -.B [help] -describes the elements that are placed on help window. -.TP -.I _default_ -Default color for this section. Used [core]._default_ if not specified -.TP -.I helpitalic -Color pair for element with -.B italic -attribute -.TP -.I helpbold -Color pair for element with -.B bold -attribute -.TP -.I helplink -Color of links -.TP -.I helpslink -Color of active link (on focus) - -.PP -Section -.B [editor] -describes the colors of elements placed in editor. -.TP -.I _default_ -Default color for this section. Used [core]._default_ if not specified -.TP -.I editbold -Color pair for element with -.B bold -attribute -.TP -.I editmarked -Color of selected text -.TP -.I editwhitespace -Color of tabs and trailing spaces highlighting -.TP -.I editlinestate -Color for line state area - -.PP -Section -.B [viewer] -describes the colors of elements placed in viewer. -.TP -.I viewunderline -Color pair for element with -.B underline -attribute - -.\"NODE " Skins colors" -.SH " Color pair definitions" -Any parameter in skin\-file contain definition of color pair. -.PP -Color pairs described as two colors and the optional attributes -separated by ';'. First field sets the foreground color, second -field sets background color, third field sets the attributes. -Any of the fields may be omitted, in this case value will be -taken from default color pair (global color pair or from default -color pair of this section). -.PP -Example: -.br -.nf -[core] - # green on black - _default_=green;black - # green (default) on blue - selected=;blue - # yellow on black (default) - # underlined yellow on black (default) - marked=yellow;;underline -.fi - -.PP -Possible colors (names) and attributes are described in -.\"LINK2" -Colors\&. -.\"Colors" -section. - -.\"NODE " Skins aliases" -.SH " Color and attribute aliases" -This optional section might define aliases for single colors (not color pairs) -as well as combination of attributes; in other words, for semicolon\-separated -fragments of parameters. Aliases can refer to other aliases as long as they -don't form a loop. -.PP -Example: -.br -.nf -[aliases] - myfavfg=green - myfavbg=black - myfavattr=bold+italic -[core] - _default_=myfavfg;myfavbg;myfavattr -.fi - -.\"NODE " Skins lines" -.SH " Draw lines" -Lines sets in section -.B [Lines] -into skin\-file. By default single lines are used, but you may redefine -to usage of any utf\-8 symbols (like to lines, for example). -.PP -.I WARNING!!! -When you build Midnight Commander with the ncurses screen library -usage of drawing lines is limited! -Possible only drawing a single lines. -For all questions and comments please contact the developers of ncurses. - -.PP -Descriptions of parameters -.BR [Lines] : -.TP -.I lefttop -left\-top line fragment. -.TP -.I righttop -right\-top line fragment. -.TP -.I centertop -down branch of horizontal line -.TP -.I centerbottom -up branch of horizontal line -.TP -.I leftbottom -left\-bottom line fragment -.TP -.I rightbottom -right\-bottom line fragment -.TP -.I leftmiddle -right branch of vertical line -.TP -.I rightmiddle -left branch of vertical line -.TP -.I centermiddle -cross of lines -.TP -.I horiz -horizontal line -.TP -.I vert -vertical line -.TP -.I thinhoriz -thin horizontal line -.TP -.I thinvert -thin vertical line - - -.\"NODE " Skins oldcolors" -.SH " Compatibility" - -Appointment of color by skin\-files fully compatible with -the appointment of the colors described in -.\"LINK2" -Colors\&. -.\"Colors" -section. -.PP -In this case, reassignment of colors has priority over the skin file and is -complementary. - -.\"NODE "Filenames Highlight" -.SH "Filenames Highlight" -Section [filehighlight] in current skin\-file contains key names as -highlight groups and values as color pairs. Color pairs is documented -in -.\"LINK2" -Skins -.\"Skins" -section. -.PP -Rules of filenames highlight are placed in %pkgdatadir%/filehighlight.ini file -(~/.config/mc/filehighlight.ini). -Name of section in this file must be equal to parameters names in -[filehighlight] section (in current skin\-file). -.PP -Keys in these groups are: -.TP -.I type -file type. If present, all other options are ignored. -.TP -.I regexp -regular expression. If present, 'extensions' option is ignored. -.TP -.I extensions -list of extensions of files. Separated by ';' sign. -.TP -.I extensions_case -(make sense only with 'extensions' parameter) make 'extensions' -rule case sensitive (true) or not (false). -.PP -`type' key may have values: -.nf -\- FILE (all files) - \- FILE_EXE -\- DIR (all directories) - \- LINK_DIR -\- LINK (all links except stale link) - \- HARDLINK - \- SYMLINK -\- STALE_LINK -\- DEVICE (all device files) - \- DEVICE_BLOCK - \- DEVICE_CHAR -\- SPECIAL (all special files) - \- SPECIAL_SOCKET - \- SPECIAL_FIFO - \- SPECIAL_DOOR -.fi -.PP - -.\"NODE "Special Settings" -.SH "Special Settings" -Most of Midnight Commander settings can be changed from the -menus. However, there are a small number of settings which can only be -changed by editing the setup file. -.PP -These variables may be set in your ~/.config/mc/ini file: -.TP -.I clear_before_exec -By default, Midnight Commander clears the screen before executing a -command. If you would prefer to see the output of the command at the -bottom of the screen, edit your ~/.config/mc/ini file and change the value of -the field clear_before_exec to 0. -.TP -.I confirm_view_dir -If you press F3 on a directory, normally MC enters that directory. If -this flag is set to 1, then MC will ask for confirmation before changing -the directory if you have files tagged. -.TP -.I ftpfs_retry_seconds -This value is the number of seconds Midnight Commander will wait -before attempting to reconnect to an FTP server that has denied the -login. If the value is zero, the login will no be retried. -.TP -.I max_dirt_limit -Specifies how many screen updates can be skipped at most in the internal -file viewer. Normally this value is not significant, because the code -automatically adjusts the number of updates to skip according to the -rate of incoming keystrokes. However, on very slow machines or -terminals with a fast keyboard auto repeat, a big value can make screen -updates too jumpy. -.IP -It seems that setting max_dirt_limit to 10 causes the best behavior, -and that is the default value. -.TP -.I mouse_move_pages_viewer -Controls if scrolling with the mouse is done by pages or line by line -on the internal file viewer. -.TP -.I only_leading_plus_minus -Allow special treatment for '+', '\-', '*' in the command line (select, -unselect, reverse selection) only if the command line is empty. You -don't need to quote those characters in the middle of the command line. -On the other hand, you cannot use them to change selection when the -command line is not empty. -.TP -.I alternate_plus_minus -If true, use '+', '\-', '\\' and '*' keys normally. For select/unselect, -use 'Alt\-+', 'Alt\--' and 'Alt\-*'. -.TP -.I show_output_starts_shell -This variable only works if you are not using the subshell support. -When you use the C\-o keystroke to go back to the user screen, if this -one is set, you will get a fresh shell. Otherwise, pressing any key -will bring you back to Midnight Commander. -.TP -.I timeformat_recent -Change the time format used to display dates less than 6 months from -now. -See strftime or date man page for the format specification. If this -option is absent, default timeformat is used. -.TP -.I timeformat_old -Change the time format used to display dates older than 6 months from -now or for dates in the future. -See strftime or date man page for the format specification. If this -option is absent, default timeformat is used. -.TP -.I torben_fj_mode -If this flag is set, then the home and end keys will work slightly -different on the panels, instead of moving the selection to the first -and last files in the panels, they will act as follows: -.IP -The home key will: Go up to the middle line, if below it; else go to the -top line unless it is already on the top line, in this case it will go -to the first file in the panel. -.IP -The end key has a similar behavior: Go down to the middle line, if over -it; else go to the bottom line unless you already are at the bottom -line, in such case it will move the selection to the last file name in -the panel. -.TP -.I use_file_to_guess_type -If this variable is on (the default) it will spawn the file command to -match the file types listed on the -.\"LINK2" -mc.ext.ini file\&. -.\"Edit Extension File" -.TP -.I xtree_mode -If this variable is on (default is off) when you browse the file system -on a Tree panel, it will automatically reload the other panel with the -contents of the selected directory. -.TP -.I shell_directory_timeout -This variable holds the lifetime of a directory cache entry in seconds. The -default value is 900 seconds. -.TP -.I clipboard_store -This variable contains path (with options) to the external clipboard -utility like 'xclip' to read text into X selection from file. -For example: -.PP -.nf -clipboard_store=xclip \-i -.fi -.TP -.I clipboard_paste -This variable contains path (with options) to the external clipboard -utility like 'xclip' to print the selection to standard out. -For example: -.PP -.nf -clipboard_paste=xclip \-o -.fi -.TP -.I autodetect_codeset -This option allows use the `enca' command to autodetect codeset of text files -in internal viewer and editor. List of valid values can be obtain by the -`enca \-\-list languages | cut \-d : \-f1' command. Option must be located -in the [Misc] section. -.PP -For example: -.PP -.nf -autodetect_codeset=russian -.fi -.\"NODE "Parameters for external editor or viewer" -.SH "Parameters for external editor or viewer" -Midnight Commander provides a way for specify an options for external editors -and viewers. Midnight Commander tries to search the -"[External editor or viewer parameters]" section in the system initialization file -(the mc.lib file located in Midnight Commander's library directory) -and then in the ~/.config/mc/ini file. The option name should be equal to the name -(full pathname) of external editor or viewer. The option value can contain following -variables: -.TP -.I %filename -The filename to edit/view. -.TP -.I %lineno -The start line in the opening file. -.PP -For example: -.PP -.nf -[External editor or viewer parameters] - vi=%filename +%lineno - joe=%filename +%lineno - more=%filename +%lineno -.fi -.PP -Start line is passed to the external editor/viewer only if it is called from the -.\"LINK2" -Find file -.\"Find File" -results window. -.PP -If external editor/viewer is launched via F4/F3 keys, MC hopes that program -(at least "joe", but probably others too) has an own feature that by default -opens the file where it was last open. MC doesn't prevent external editor/viewer -to save and restore position in opened files. -.\"NODE "Terminal databases" -.SH "Terminal databases" -Midnight Commander provides a way to fix your system terminal -database without requiring root privileges. Midnight Commander -searches in the system initialization file (the mc.lib file located in -Midnight Commander's library directory) and in the -~/.config/mc/ini file for the section -"terminal:your\-terminal\-name" and then for the section -"terminal:general", each line of the section contains a key symbol that -you want to define, followed by an equal sign and the definition for the -key. You can use the special \\e form to represent the escape character -and the ^x to represent the control\-x character. -.PP -The possible key symbols are: -.PP -.nf -f0 to f20 Function keys f0\-f20 -bs backspace -home home key -end end key -up up arrow key -down down arrow key -left left arrow key -right right arrow key -pgdn page down key -pgup page up key -insert the insert character -delete the delete character -complete to do completion -.fi -.PP -For example, to define the key insert to be the Escape + [ + O + p, you -set this in the ini file: -.PP -.nf -insert=\\e[Op -.fi - -.PP -Also now you can use -.I extended learn keys. -For example: - -.nf - ctrl\-alt\-right=\\e[[1;6C - ctrl\-alt\-left=\\e[[1;6D -.fi - -.PP -This means that ctrl+alt+left sends a \\e[[1;6D escape sequence -and therefore Midnight Commander interprets "\\e[[1;6D" as C\-Alt\-Left. - -.PP -The -.I complete -key symbol represents the escape sequences used to invoke the completion -process, this is invoked with Alt\-tab, but you can define other keys to do -the same work (on those keyboard with tons of nice and unused keys -everywhere). -.SH "" -.\"NODE "FILES" -.SH "FILES" -Full paths below may vary between installations. They are also affected -by the -.B MC_DATADIR -environment variable. If it's set, its value is used instead of -%pkgdatadir% in the paths below. -.PP -.I %pkgdatadir%/help/mc.hlp -.IP -The help file for the program. -.PP -.I %pkgdatadir%/mc.ext.ini -.IP -The default system\-wide extensions file. -.PP -.I ~/.config/mc/mc.ext.ini -.IP -User's own extension, view configuration and edit configuration -file. They override the contents of the system wide files if present. -.PP -.I %sysconfdir%/mc/mc.ini -.RE -.I %pkgdatadir%/mc.ini -.IP -System\-wide setup files for Midnight Commander, used only if the user -doesn't have his own -.B ~/.config/mc/ini -file. If %sysconfdir%/mc/mc.ini exists, %pkgdatadir%/mc.ini isn't used. -.PP -.I %pkgdatadir%/mc.lib -.IP -Global settings for Midnight Commander. Settings in this file -affect all users, whether they have ~/.config/mc/ini or not. Currently, only -.\"LINK2" -terminal settings -.\"Terminal databases" -are loaded from mc.lib. -.PP -.I ~/.config/mc/ini -.IP -User's own setup. If this file is present then the setup is loaded -from here instead of the system\-wide startup file. -.PP -.I %pkgdatadir%/hints/mc.hint -.IP -This file contains the hints displayed by the program. -.PP -.I %pkgdatadir%/mc.menu -.IP -This file contains the default system\-wide applications menu. -.PP -.I ~/.config/mc/menu -.IP -User's own application menu. If this file is present it is used instead -of the system\-wide applications menu. -.PP -.I ~/.cache/mc/Tree -.IP -The directory list for the directory tree and tree view features. -.PP -.I ~/.local/share/mc.menu -.IP -Local user\-defined menu. If this file is present, it is used instead of -the home or system\-wide applications menu. -.PP -To change default root directory of MC, you can use -.B MC_PROFILE_ROOT -environment variable. The value of MC_PROFILE_ROOT must be an absolute path. -If MC_PROFILE_ROOT is unset or empty, HOME variable is used. If HOME is unset -or empty, MC directories are get from GLib library. -.\"SKIP_SECTION" -.SH "LICENSE" -This program is distributed under the terms of the GNU General Public -License as published by the Free Software Foundation. See the built\-in -help for details on the License and the lack of warranty. -.\"NODE "AVAILABILITY" -.SH "AVAILABILITY" -The latest version of this program can be found at -http://ftp.midnight\-commander.org/. -.\"NODE "SEE ALSO" -.SH "SEE ALSO" -ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1), -tcsh(1), zsh(1). -.PP -.nf -Midnight Commander's page on the World Wide Web: - https://www.midnight\-commander.org/ -.fi -.\"NODE "AUTHORS" -.SH "AUTHORS" -Authors and contributors are listed in the AUTHORS file in the source -distribution. -.\"NODE "BUGS" -.SH "BUGS" -See the file TODO in the distribution for information on what remains to -be done. -.PP -If you want to report a problem with the program, please create bugreport -at https://www.midnight\-commander.org/. -.PP -Provide a detailed description of the bug, the version of the program -you are running -.RI ( "mc \-V" -displays this information), the operating system you are running the -program on. If the program crashes, we would appreciate a stack trace. diff --git a/recipes/wip/files/mc/source/doc/man/mcdiff.1.in b/recipes/wip/files/mc/source/doc/man/mcdiff.1.in deleted file mode 100644 index 4461b73648..0000000000 --- a/recipes/wip/files/mc/source/doc/man/mcdiff.1.in +++ /dev/null @@ -1,97 +0,0 @@ -.TH MCDIFF 1 "%DATE_OF_MAN_PAGE%" "MC Version %MAN_VERSION%" "GNU Midnight Commander" -.SH NAME -mcdiff \- Internal diff viewer of GNU Midnight Commander. -.SH USAGE -.B mcdiff -[\-bcCdfhstVx?] file1 file2 -.SH DESCRIPTION -.LP -mcdiff is a link to -.BR mc , -the main GNU Midnight Commander executable. Executing GNU Midnight -Commander under this name requests starting the internal diff viewer -which compares -.I file1 -and -.I file2 -specified on the command line. -.SH OPTIONS -.TP -.I "\-b" -Force black and white display. -.TP -.I "\-c" -Force color mode on terminals where -.B mcdiff -defaults to black and white. -.TP -.I "\-C =,,:= ..." -Specify a different color set. See the -.B Colors -section in mc(1) for more information. -.TP -.I "\-d" -Disable mouse support. -.TP -.I "\-f" -Display the compiled\-in search paths for Midnight Commander files. -.TP -.I "\-t" -Used only if the code was compiled with S\-Lang and terminfo: it makes -the Midnight Commander use the value of the -.B TERMCAP -variable for the terminal information instead of the information on -the system wide terminal database -.TP -.I "\-V" -Displays the version of the program. -.TP -.I "\-x" -Forces xterm mode. Used when running on xterm\-capable terminals (two -screen modes, and able to send mouse escape sequences). -.PP -.SH COLORS -The default colors may be changed by appending to the -.B MC_COLOR_TABLE -environment variable. Foreground and background colors pairs may be -specified for example with: -.PP -.nf -MC_COLOR_TABLE="$MC_COLOR_TABLE:\\ -normal=lightgray,black:\\ -selected=black,green" -.fi -.PP -.SH FILES -.I %pkgdatadir%/mc.hlp -.IP -The help file for the program. -.PP -.I %pkgdatadir%/mc.ini -.IP -The default system\-wide setup for GNU Midnight Commander, used only if -the user's own ~/.config/mc/ini file is missing. -.PP -.I %pkgdatadir%/mc.lib -.IP -Global settings for the Midnight Commander. Settings in this file -affect all users, whether they have ~/.config/mc/ini or not. -.PP -.I ~/.config/mc/ini -.IP -User's own setup. If this file is present, the setup is loaded from -here instead of the system\-wide startup file. -.PP -.SH LICENSE -This program is distributed under the terms of the GNU General Public -License as published by the Free Software Foundation. See the built\-in -help of the Midnight Commander for details on the License and the lack -of warranty. -.SH AVAILABILITY -The latest version of this program can be found at -http://ftp.midnight\-commander.org/. -.SH SEE ALSO -mc(1), mcedit(1), mcview(1) -.PP -.SH BUGS -Bugs should be reported to https://www.midnight\-commander.org/. diff --git a/recipes/wip/files/mc/source/doc/man/mcedit.1.in b/recipes/wip/files/mc/source/doc/man/mcedit.1.in deleted file mode 100644 index 2869af70e7..0000000000 --- a/recipes/wip/files/mc/source/doc/man/mcedit.1.in +++ /dev/null @@ -1,661 +0,0 @@ -.TH MCEDIT 1 "%DATE_OF_MAN_PAGE%" "MC Version %MAN_VERSION%" "GNU Midnight Commander" -.SH NAME -mcedit \- Internal file editor of GNU Midnight Commander. -.SH SYNOPSIS -.B mcedit -[\-bcCdfhstVx?] [+lineno] [file1] [file2] ... -.PP -.B mcedit -[\-bcCdfhstVx?] file1:lineno[:] file2:lineno[:] ... -.SH DESCRIPTION -.LP -mcedit is a link to -.BR mc , -the main GNU Midnight Commander executable. Executing GNU Midnight Commander -under this name runs the internal editor and opens files -specified on the command line. The editor is based on the terminal version of -.B cooledit -\- standalone editor for X Window System. -.SH OPTIONS -.TP -.I "+lineno" -Go to the line specified by number (do not put a space between the -.I "+" -sign and the number). Several line numbers are allowed but only the last one -will be used, and it will be applied to the first file only. -.TP -.I "\-b" -Force black and white display. -.TP -.I "\-c" -Force ANSI color mode on terminals that don't seem to have color -support. -.TP -.I "\-C =,,:= ..." -Specify a different color set. See the -.B Colors -section in mc(1) for more information. -.TP -.I "\-d" -Disable mouse support. -.TP -.I "\-f" -Display the compiled\-in search path for GNU Midnight Commander data -files. -.TP -.I "\-t" -Force using termcap database instead of terminfo. This option is only -applicable if GNU Midnight Commander was compiled with S\-Lang library -with terminfo support. -.TP -.I "\-V" -Display the version of the program. -.TP -.I "\-x" -Force xterm mode. Used when running on xterm\-capable terminals (two -screen modes, and able to send mouse escape sequences). -.SH FEATURES -The internal file editor is a full\-featured windowed editor. It can -edit several files at the same time. Maximum size of each file is 64 -megabytes. It is possible to edit binary files. The features it presently -supports are: block copy, move, delete, cut, paste; key for key undo; -pull\-down menus; file insertion; macro commands; regular expression -search and replace; shift\-arrow text highlighting (if supported by -the terminal); insert\-overwrite toggle; autoindent; tunable tab size; -syntax highlighting for various file types; and an option to pipe text -blocks through shell commands like indent and ispell. -.PP -Each file is opened in its own window in full\-screen mode. Window control -in mcedit is similar to the window control in other multi\-window program: -double click on window title maximizes the window to full\-screen or restores -window size and position; left\-click on window title and mouse drag moves -the window in editor area; left\-click on low\-right frame corner and mouse drag -resizes the window. These actions can be made using "Window" menu. -.SH KEYS -The editor is easy to use and can be used without learning. The -pull\-down menu is invoked by pressing F9. You can learn other keys from -the menu and from the button bar labels. -.PP -In addition to that, Shift combined with arrows does text highlighting -(if supported by the terminal): -.B Ctrl\-Ins -copies to the file -.BR ~/.cache/mc/mcedit/mcedit.clip , -.B Shift\-Ins -pastes from -.BR ~/.cache/mc/mcedit/mcedit.clip , -.B Shift\-Del -cuts to -.BR ~/.cache/mc/mcedit/mcedit.clip , -and -.B Ctrl\-Del -deletes highlighted text. Mouse highlighting also works on some -terminals. To use the standard mouse support provided by your terminal, -hold the Shift key. Please note that the mouse support in the terminal -doesn't share the clipboard with -.BR mcedit . -.PP -The completion key (usually -.B "Meta\-Tab" -or -.BR "Escape Tab" ) -completes the word under the cursor using the words used in the file. -.SH MACRO -.PP -To define a macro, press -.B Ctrl\-R -and then type out the keys you want to be executed. Press -.B Ctrl\-R -again when finished. The macro can be assigned to any key by pressing that key. -The macro is executed when you press the assigned key. -.PP -The macro commands are stored in section -.B [editor] -it the file -.BR ~/.local/share/mc/mc.macros . -.PP -External scripts (filters) can be assigned into the any hotkey by edit -.B mc.macros -like following: -.PP -.nf -[editor] -ctrl\-W=ExecuteScript:25; -.fi -.PP -This means that ctrl\-W hotkey initiates the -.I ExecuteScript(25) -action, then editor handler translates this into execution of -.B ~/.local/share/mc/mcedit/macros.d/macro.25.sh -shell script. -.PP -External scripts are stored in -.B ~/.local/share/mc/mcedit/macros.d/ -directory and must be named as -.B macro.XXXX.sh -where -.B XXXX -is the number from 0 to 9999. -See -.B Edit Menu File -for more detail about format of the script. -.PP -Following macro definition and directives can be used: -.TP -.I #silent -If this directive is set, then script starts without interactive subshell. -.TP -.I %c -The cursor column position number. -.TP -.I %i -The indent of blank space, equal the cursor column. -.TP -.I %y -The syntax type of current file. -.TP -.I %b -The block file name. -.TP -.I %f -The current file name. -.TP -.I %n -Only the current file name without extension. -.TP -.I %x -The extension of current file name. -.TP -.I %d -The current directory name. -.TP -.I %F -The current file in the unselected panel. -.TP -.I %D -The directory name of the unselected panel. -.TP -.I %t -The currently tagged files. -.TP -.I %T -The tagged files in the unselected panel. -.TP -.IR %u " and " %U -Similar to the -.I %t -and -.I %T -macros, but in addition the files are untagged. You can use this macro -only once per menu file entry or extension file entry, because next time -there will be no tagged files. -.TP -.IR %s " and " %S -The selected files: The tagged files if there are any. Otherwise the -current file. -.PP -Feel free to edit this files, if you need. -Here is a sample external script: -.PP -.nf -l comment selection - TMPFILE=`mktemp ${MC_TMPDIR:\-/tmp}/up.XXXXXX` || exit 1 - echo #if 0 > $TMPFILE - cat %b >> $TMPFILE - echo #endif >> $TMPFILE - cat $TMPFILE > %b - rm \-f $TMPFILE -.fi -.PP -If some keys don't work, you can use -.B Learn Keys -in the -.B Options -menu. -.SH CODE NAVIGATION -.B mcedit -can be used for navigation through code with tags files created by etags -or ctags commands. If there is no TAGS file code navigation will not work. -For example, in case of exuberant\-ctags for C language command will be: -.PP -ctags \-e \-\-language\-force=C \-R ./ -.PP -.B Meta\-Enter -shows list box to select item under cursor (cursor should stand at the end -of the word). -.PP -.B Meta\-Minus -where minus is symbol "\-" goes to previous function in navigation list -(like browser's Back button). -.PP -.B Meta\-Equal -where equal is symbol "=" goes to next function in navigation list -(like browser's Forward button). -.PP -.SH SYNTAX HIGHLIGHTING -.B mcedit -supports syntax highlighting. This means that keywords and contexts -(like C comments, string constants, etc) are highlighted in different -colors. The following section explains the format of the file -.BR ~/.local/share/mc/syntax/Syntax . -If this file is missing, system\-wide -.B %pkgdatadir%/syntax/Syntax -is used. -The file -.B ~/.local/share/mc/syntax/Syntax -is rescanned on opening of every new editor file. The file contains -rules for highlighting, each of which is given on a separate line, and -define which keywords will be highlighted with what color. -.PP -The file is divided into sections, each beginning with a line with the -.B file -command. The sections are normally put into separate files using the -.B include -command. -.PP -The -.B file -command has three arguments. The first argument is a regular expression -that is applied to the file name to determine if the following section -applies to the file. The second argument is the description of the file -type. It is used in -.BR cooledit ; -future versions of -.B mcedit -may use it as well. The third optional argument is a regular expression -to match the first line of text of the file. The rules in the following -section apply if either the file name or the first line of text matches. -.PP -A section ends with the start of another section. Each section is -divided into contexts, and each context contains rules. A context is a -scope within the text that a particular set of rules belongs to. For -instance, the text within a C style comment (i.e. between -.B /* -and -.BR */ ) -has its own color. This is a context, although it has no further rules -inside it because there is probably nothing that we want highlighted -within a C comment. -.PP -A trivial C programming section might look like this: -.PP -.nf -file .\\*\\\\.c C\\sProgram\\sFile (#include|/\\\\\\*) - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_ - -# default colors -define comment brown -context default - keyword whole if yellow - keyword whole else yellow - keyword whole for yellow - keyword whole while yellow - keyword whole do yellow - keyword whole switch yellow - keyword whole case yellow - keyword whole static yellow - keyword whole extern yellow - keyword { brightcyan - keyword } brightcyan - keyword '*' green - -# C comments -context /\\* \\*/ comment - -# C preprocessor directives -context linestart # \\n red - keyword \\\\\\n brightred - -# C string constants -context " " green - keyword %d brightgreen - keyword %s brightgreen - keyword %c brightgreen - keyword \\\\" brightgreen -.fi -.PP -Each context starts with a line of the form: -.PP -.B context -.RB [ exclusive ] -.RB [ whole | wholeright | wholeleft ] -.RB [ linestart ] -.I delim -.RB [ linestart ] -.I delim -.RI [ foreground ] -.RI [ background ] -.RI [ attributes ] -.PP -The first context is an exception. It must start with the command -.PP -.B context default -.RI [ foreground ] -.RI [ background ] -.RI [ attributes ] -.PP -otherwise -.B mcedit -will report an error. The -.B linestart -option specifies that -.I delim -must start at the beginning of a line. The -.B whole -option tells that -.I delim -must be a whole word. To specify that a word must begin on the word -boundary only on the left side, you can use the -.B wholeleft -option, and similarly a word that must end on the word boundary is specified by -.BR wholeright . -.PP -The set of characters that constitute a whole word can be changed at any -point in the file with the -.B wholechars -command. The left and right set of characters can be set separately -with -.PP -.B wholechars -.RB [ left | right ] -.I characters -.PP -The -.B exclusive -option causes the text between the delimiters to be highlighted, but not -the delimiters themselves. -.PP -Each rule is a line of the form: -.PP -.B keyword -.RB [ whole | wholeright | wholeleft ] -.RB [ linestart ] -.I string foreground -.RI [ background ] -.RI [ attributes ] -.PP -Context or keyword strings are interpreted, so that you can include tabs -and spaces with the sequences \\t and \\s. Newlines and backslashes are -specified with \\n and \\\\ respectively. Since whitespace is used as a -separator, it may not be used as is. Also, \\* must be used to specify -an asterisk. The * itself is a wildcard that matches any length of -characters. For example, -.PP -.nf - keyword '*' green -.fi -.PP -colors all C single character constants green. You also could use -.PP -.nf - keyword "*" green -.fi -.PP -to color string constants, but the matched string would not be allowed -to span across multiple newlines. The wildcard may be used within -context delimiters as well, but you cannot have a wildcard as the last -or first character. -.PP -Important to note is the line -.PP -.nf - keyword \\\\\\n brightgreen -.fi -.PP -This line defines a keyword containing the backslash and newline -characters. Since the keywords are matched before the context -delimiters, this keyword prevents the context from ending at the end of -the lines that end in a backslash, thus allowing C preprocessor -directive to continue across multiple lines. -.PP -The possible colors are: black, gray, red, brightred, green, -brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta, -cyan, brightcyan, lightgray and white. The special keyword "default" means -the terminal's default. Another special keyword "base" means mc's main -colors, it is useful as a placeholder if you want to specify attributes -without modifying the background color. When 256 colors are available, -they can be specified either as color16 to color255, or as rgb000 to rgb555 -and gray0 to gray23. -.PP -If the syntax file is shared with -.BR cooledit , -it is possible to specify different colors for -.B mcedit -and -.B cooledit -by separating them with a slash, e.g. -.PP -.nf -keyword #include red/Orange -.fi -.PP -.B mcedit -uses the color before the slash. See cooledit(1) for supported -.B cooledit -colors. -.PP -Attributes can be any of bold, italic, underline, reverse and blink, appended by a -plus sign if more than one are desired. -.PP -Comments may be put on a separate line starting with the hash sign (#). -.PP -If you are describing case insensitive language you need to use -.B caseinsensitive -directive. It should be specified at the beginning of syntax file. -.PP -Because of the simplicity of the implementation, there are a few -intricacies that will not be dealt with correctly but these are a minor -irritation. On the whole, a broad spectrum of quite complicated -situations are handled with these simple rules. It is a good idea to -take a look at the syntax file to see some of the nifty tricks you can -do with a little imagination. If you cannot get by with the rules I -have coded, and you think you have a rule that would be useful, please -email me with your request. However, do not ask for regular expression -support, because this is flatly impossible. -.PP -A useful hint is to work with as much as possible with the things you -can do rather than try to do things that this implementation cannot deal -with. Also remember that the aim of syntax highlighting is to make -programming less prone to error, not to make code look pretty. -.PP -The syntax highlighting can be toggled using Ctrl\-s shortcut. -.SH COLORS -The default colors may be changed by appending to the -.B MC_COLOR_TABLE -environment variable. Foreground and background colors pairs may be -specified for example with: -.PP -.nf -MC_COLOR_TABLE="$MC_COLOR_TABLE:\\ -editnormal=lightgray,black:\\ -editbold=yellow,black:\\ -editmarked=black,cyan" -.fi -.SH OPTIONS -Most options can be set from Options dialog box. See the -.B Options -menu. The following options are defined in -.B ~/.config/mc/ini -and have obvious counterparts in the dialog box. You can modify them to -change the editor behavior, by editing the file. Unless specified, a 1 -sets the option to on, and a 0 sets it to off, as usual. -.TP -.I use_internal_edit -This option is ignored when invoking -.BR mcedit . -.TP -.I editor_tab_spacing -Interpret the tab character as being of this length. -Default is 8. You should avoid using -other than 8 since most other editors and text viewers -assume a tab spacing of 8. Use -.B editor_fake_half_tabs -to simulate a smaller tab spacing. -.TP -.I editor_fill_tabs_with_spaces -Never insert a tab character. Rather insert spaces (ascii 32) to fill to the -desired tab size. -.TP -.I editor_return_does_auto_indent -Pressing return will tab across to match the indentation -of the first line above that has text on it. -.TP -.I editor_backspace_through_tabs -Make a single backspace delete all the space to the left -margin if there is no text between the cursor and the left -margin. -.TP -.I editor_fake_half_tabs -This will emulate a half tab for those who want to program -with a tab spacing of 4, but do not want the tab size changed -from 8 (so that the code will be formatted the same when displayed -by other programs). When editing between text and the left -margin, moving and tabbing will be as though a tab space were -4, while actually using spaces and normal tabs for an optimal fill. -When editing anywhere else, a normal tab is inserted. -.TP -.I editor_option_save_mode -Possible values 0, 1 and 2. The save mode (see the options menu also) -allows you to change the method of saving a file. Quick save (0) saves -the file immediately, truncating the disk file to zero length (i.e. -erasing it) and then writing the editor contents to the file. This -method is fast, but dangerous, since a system error during a file save -will leave the file only partially written, possibly rendering the data -irretrievable. When saving, the safe save (1) option enables creation -of a temporary file into which the file contents are first written. In -the event of a problem, the original file is untouched. When the -temporary file is successfully written, it is renamed to the name of the -original file, thus replacing it. The safest method is create backups -(2): a backup file is created before any changes are made. You -can specify your own backup file extension in the dialog. Note that -saving twice will replace your backup as well as your original file. -.TP -.I editor_word_wrap_line_length -Line length to wrap at. Default is 72. -.TP -.I editor_backup_extension -Symbol to add to name of backup files. Default is "~". -.TP -.I editor_line_state -Show state line of editor. Currently it shows current line number (in the future -it might show things like folding, breakpoints, etc.). M\-n toggles this option. -.TP -.I editor_visible_spaces -Toggle "show visible trailing spaces". If editor_visible_spaces=1, they are shown -as '.' -.TP -.I editor_visible_tabs -Toggle "show visible tabs". If editor_visible_tabs=1, tabs are shown as '<\-\-\-\->' -.TP -.I editor_persistent_selections -Do not remove block selection after cursor movement. -.TP -.I editor_drop_selection_on_copy -Reset selection after copy to clipboard. -.TP -.I editor_cursor_beyond_eol -Allow moving cursor beyond the end of line. -.TP -.I editor_cursor_after_inserted_block -Allow moving cursor after inserted block. -.TP -.I editor_syntax_highlighting -enable syntax highlighting. -.TP -.I editor_edit_confirm_save -Show confirmation dialog on save. -.TP -.I editor_option_typewriter_wrap -to be described -.TP -.I editor_option_auto_para_formatting -to be described -.TP -.I editor_option_save_position -Save file position on exit. -.TP -.I source_codepage -Symbol representation of codepage name for file (i.e. CP1251, ~ \- default). -.TP -.I editor_group_undo -Combine UNDO actions for several of the same type of action (inserting/overwriting, -deleting, navigating, typing) -.TP -.I editor_wordcompletion_collect_entire_file -Search autocomplete candidates in entire file (1) or just from -beginning of file to cursor position (0). -.TP -.I editor_wordcompletion_collect_all_files -Search autocomplete candidates from all loaded files (1, default), not only from -the currently edited one (0). -.TP -.I spell_language -Spelling language (en, en\-variant_0, ru, etc) installed with aspell -package (a full list can be obtained using 'aspell' utility). -Use -.B spell_language = NONE -to disable aspell support. Default value is 'en'. Option must be located -in the [Misc] section. -.TP -.I editor_stop_format_chars -Set of characters to stop paragraph formatting. If one of those characters -is found in the beginning of line, that line and all following lines of paragraph -will be untouched. Default value is -"\fB-\fR\fB+\fR\fB*\fR\fB\\\fR\fB,\fR\fB.\fR\fB;\fR\fB:\fR\fB&\fR\fB>\fR". -.TP -.I editor_state_full_filename -Show full path name in the status line. If disabled (default), only base name of the -file is shown. -.SH MISCELLANEOUS -The editor also displays non\-us characters (160+). When editing -binary files, you should set -.B display bits -to 7 bits in Midnight Commander's options menu to keep the spacing -clean. -.SH FILES -.I %pkgdatadir%/help/mc.hlp -.IP -The help file for the program. -.PP -.I %pkgdatadir%/mc.ini -.IP -The default system\-wide setup for GNU Midnight Commander, used only if -the user's own ~/.config/mc/ini file is missing. -.PP -.I %pkgdatadir%/mc.lib -.IP -Global settings for Midnight Commander. Settings in this file -affect all users, whether they have ~/.config/mc/ini or not. -.PP -.I %pkgdatadir%/syntax/* -.IP -The default system\-wide syntax files for mcedit, used only if -the corresponding user's own file in -.B ~/.local/share/mc/syntax/ -is missing. -.PP -.I ~/.config/mc/ini -.IP -User's own setup. If this file is present then the setup is loaded -from here instead of the system\-wide setup file. -.PP -.I ~/.local/share/mc/mcedit/ -.IP -User's own directory where block commands are processed and saved and -user's own syntax files are located. -.SH LICENSE -This program is distributed under the terms of the GNU General Public -License as published by the Free Software Foundation. See the built\-in -help of Midnight Commander for details on the License and the lack -of warranty. -.SH AVAILABILITY -The latest version of this program can be found at -http://ftp.midnight\-commander.org/. -.SH SEE ALSO -cooledit(1), mc(1), gpm(1), terminfo(1), scanf(3). -.SH AUTHORS -Paul Sheer (psheer@obsidian.co.za) is the original author of -Midnight Commander's internal editor. -.SH BUGS -Bugs should be reported to https://www.midnight\-commander.org/. diff --git a/recipes/wip/files/mc/source/doc/man/mcview.1.in b/recipes/wip/files/mc/source/doc/man/mcview.1.in deleted file mode 100644 index 89dc7fa345..0000000000 --- a/recipes/wip/files/mc/source/doc/man/mcview.1.in +++ /dev/null @@ -1,95 +0,0 @@ -.TH MCVIEW 1 "%DATE_OF_MAN_PAGE%" "MC Version %MAN_VERSION%" "GNU Midnight Commander" -.SH NAME -mcview \- Internal file viewer of GNU Midnight Commander. -.SH SYNOPSIS -.B mcview -[\-bcCdfhstVx?] file -.SH DESCRIPTION -.LP -mcview is a link to -.BR mc , -the main GNU Midnight Commander executable. Executing GNU Midnight -Commander under this name requests staring the internal viewer and -opening the -.I file -specified on the command line. -.SH OPTIONS -.TP -.I "\-b" -Force black and white display. -.TP -.I "\-c" -Force color mode on terminals where -.B mcview -defaults to black and white. -.TP -.I "\-C =,,:= ..." -Specify a different color set. See the -.B Colors -section in mc(1) for more information. -.TP -.I "\-d" -Disable mouse support. -.TP -.I "\-f" -Display the compiled\-in search paths for Midnight Commander files. -.TP -.I "\-t" -Used only if the code was compiled with S\-Lang and terminfo: it makes -Midnight Commander use the value of the -.B TERMCAP -variable for the terminal information instead of the information on -the system wide terminal database -.TP -.I "\-V" -Displays the version of the program. -.TP -.I "\-x" -Forces xterm mode. Used when running on xterm\-capable terminals (two -screen modes, and able to send mouse escape sequences). -.PP -.SH COLORS -The default colors may be changed by appending to the -.B MC_COLOR_TABLE -environment variable. Foreground and background colors pairs may be -specified for example with: -.PP -.nf -MC_COLOR_TABLE="$MC_COLOR_TABLE:\\ -normal=lightgray,black:\\ -selected=black,green" -.fi -.PP -.SH FILES -.I %pkgdatadir%/help/mc.hlp -.IP -The help file for the program. -.PP -.I %pkgdatadir%/mc.ini -.IP -The default system\-wide setup for GNU Midnight Commander, used only if -the user's own ~/.config/mc/ini file is missing. -.PP -.I %pkgdatadir%/mc.lib -.IP -Global settings for Midnight Commander. Settings in this file -affect all users, whether they have ~/.config/mc/ini or not. -.PP -.I ~/.config/mc/ini -.IP -User's own setup. If this file is present, the setup is loaded from -here instead of the system\-wide startup file. -.PP -.SH LICENSE -This program is distributed under the terms of the GNU General Public -License as published by the Free Software Foundation. See the built\-in -help of Midnight Commander for details on the License and the lack -of warranty. -.SH AVAILABILITY -The latest version of this program can be found at -http://ftp.midnight\-commander.org/. -.SH SEE ALSO -mc(1), mcedit(1) -.PP -.SH BUGS -Bugs should be reported to https://www.midnight\-commander.org/. diff --git a/recipes/wip/files/mc/source/doc/man/pl/Makefile.am b/recipes/wip/files/mc/source/doc/man/pl/Makefile.am deleted file mode 100644 index 8aa93d4f69..0000000000 --- a/recipes/wip/files/mc/source/doc/man/pl/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -LANG=pl -mandir = @mandir@/$(LANG) - -EXTRA_DIST = mc.1.in - -man_MANS = mc.1 - -CLEANFILES = $(man_MANS) - -DATE_LANG=pl_PL.UTF-8 -DATE_FORMAT=%B %Y - -include ../date-of-man-include.am diff --git a/recipes/wip/files/mc/source/doc/man/pl/Makefile.in b/recipes/wip/files/mc/source/doc/man/pl/Makefile.in deleted file mode 100644 index 034fb85812..0000000000 --- a/recipes/wip/files/mc/source/doc/man/pl/Makefile.in +++ /dev/null @@ -1,701 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/man/pl -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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)" -NROFF = nroff -MANS = $(man_MANS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../date-of-man-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@/$(LANG) -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -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@ -LANG = pl -EXTRA_DIST = mc.1.in -man_MANS = mc.1 -CLEANFILES = $(man_MANS) -DATE_LANG = pl_PL.UTF-8 -DATE_FORMAT = %B %Y -SED_PARAMETERS = \ - -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \ - -e "s/%MAN_VERSION%/@MAN_VERSION@/g" \ - -e "s{%sysconfdir%{@sysconfdir@{g" \ - -e "s{%libexecdir%{@libexecdir@{g" \ - -e "s{%pkglibexecdir%{$(libexecdir)/@PACKAGE@{g" \ - -e "s{%pkgdatadir%{$(datadir)/@PACKAGE@{g" - -MAN_DATE_CMD = \ - LC_ALL=$(DATE_LANG) @PERL_FOR_BUILD@ -CS -MPOSIX -e '\ - @fi=lstat("'$${MAN_FILE}'"); \ - print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../date-of-man-include.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) --gnu doc/man/pl/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/man/pl/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../date-of-man-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -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) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(MANS) -installdirs: - for dir in "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man1 - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-man \ - uninstall-man1 - -.PRECIOUS: Makefile - - -mc.1: $(srcdir)/mc.1.in - MAN_FILE='$(srcdir)/mc.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mc.1.in' > '$@' - -mcview.1: $(srcdir)/mcview.1.in - MAN_FILE='$(srcdir)/mcview.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mcview.1.in' > '$@' - -@USE_INTERNAL_EDIT_TRUE@mcedit.1: $(srcdir)/mcedit.1.in -@USE_INTERNAL_EDIT_TRUE@ MAN_FILE='$(srcdir)/mcedit.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_INTERNAL_EDIT_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcedit.1.in' > '$@' - -@USE_DIFF_TRUE@mcdiff.1: $(srcdir)/mcdiff.1.in -@USE_DIFF_TRUE@ MAN_FILE='$(srcdir)/mcdiff.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_DIFF_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcdiff.1.in' > '$@' - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/man/pl/mc.1.in b/recipes/wip/files/mc/source/doc/man/pl/mc.1.in deleted file mode 100644 index b163e06830..0000000000 --- a/recipes/wip/files/mc/source/doc/man/pl/mc.1.in +++ /dev/null @@ -1,2925 +0,0 @@ -.\" -*- mode: troff; coding: UTF-8 -*- -.\"PrzetÅ‚umaczone przez by Macieja Wojciechowskiego wojciech@staszic.waw.pl -.TH MC 1 "%DATE_OF_MAN_PAGE%" "MC Version %MAN_VERSION%" "GNU Midnight Commander" -.\"SKIP_SECTION" -.SH NAZWA -mc \- wizualny interpetator poleceÅ„ dla systemów Unixopodobnych -.\"SKIP_SECTION" -.SH UÅ»YTKOWANIE -.B mc -[\-abcCdfPstuUVx] [\-l log] [kat1 [kat2]] [\-v plik] -.\"NODE "DESCRIPTION" -.SH OPIS -Midnight Commander jest przeszukiwarkÄ… katalogów/menedżerem plików dla systemów -Unixopodobnych -.\"NODE "OPTIONS" -.\"DONT_SPLIT" -.SH OPCJE -.TP -.I \-a -Wyłącza używanie symboli graficznych przy rysowaniu ramek. -.TP -.I \-b -Wymusza wyÅ›wietlanie czarno\-biaÅ‚e. -.TP -.I \-c -Wymusza wyÅ›wietlanie w kolorze, zobacz sekcjÄ™ -.B Kolory -żeby zasiÄ™gnąć szerszej informacji. -.TP -.I \-C arg -Używane do wybierania innego koloru, który ma być obecny w linii poleceÅ„. Format -argumentu -.I arg -jest opisany w sekcji -.BR Kolory . -.TP -.I \-d -Wyłącza używanie myszy. -.TP -.I \-f -WyÅ›wietla wkompilowane Å›cieżki, w których Mindnight Commander szuka swoich -plików. -.TP -.I \-k -Resetuje "miÄ™kkie" klawisze do ich standardowych funkcji z termcap/terminfo. -Użyteczne tylko przy terminalach HP, kiedy klawisze funkcyjne nie dziaÅ‚ajÄ…. -.TP -.I \-l plik -Zachowuje logi z serwerów ftp do pliku -.IR plik . -.TP -.I \-P -Przy zakoÅ„czeniu programu, Midnight Commander wydrukuje na ekranie katalog, -w którym pracowaliÅ›my na koÅ„cu; to w poÅ‚aczeniu z funkcjÄ… napisanÄ… poniżej -pozwoli ci na przeglÄ…danie swoich katalogów i automatyczne przejÅ›cie do -tego, -w którym byÅ‚eÅ› ostatnio (dziÄ™kujÄ™ Torbenowi Fjerdingstadowi i Sergeyowi za wkÅ‚ad -w tÄ™ funkcjÄ™ oraz za kod źródÅ‚owy, który wprowadzili w życie). -.nf -użytkownicy basha i zsh: - -mc () -{ - MC=$HOME/tmp/mc$$\-"$RANDOM" - %bindir%/mc \-P "$@" > "$MC" - cd "`cat $MC`" - rm "$MC" - unset MC; -} - -użytkownicy tcsh: -alias mc 'setenv MC `%bindir%/mc \-P \!*`; cd $MC; unsetenv MC' -.fi -Wiem, że ta funkcja mogÅ‚aby być krótsza dla basha i zsh, ale maÅ‚e cudzysÅ‚owy -nie zaakceptowaÅ‚y by zawieszenia programu kombinacjÄ… -.BR C\-z . -.TP -.I \-s -Włącza tryb powolnego terminala, w którym program nie bÄ™dzie rysowaÅ‚ zbyt -obciążajÄ…cych znaków graficznych oraz wyłączy opcjÄ™ weryfikacji. -.TP -.I \-t -Używane tylko jeÅ›li kod byÅ‚ skompilowany przy użyciu S\-Langa i terminfo: -powoduje, że Midnight Commander bÄ™dzie używać zmiennej Å›rodowiskowej -.B TERMCAP -do pokazywania informacji terminala, zamiast informacji w systemowej bazie -typów terminali. -.TP -.I \-u -Wyłącza używanie równolegÅ‚ej powÅ‚oki (ma sens tylko jeÅ›li -Midnight Commander byÅ‚ kompilowany z obsÅ‚ugÄ… równolegÅ‚ych powÅ‚ok). -.TP -.I \-U -Włącza użycie jednoczesnego inerpretatora poleceÅ„ (ma sens tylko jeÅ›li Midnight -Commander byÅ‚ zbudowany z ustawieniem powÅ‚oki w tle jako opcji dodatkowej). -.TP -.I \-v plik -Włącza wbudowany podglÄ…d w celu obejrzenia wybranego pliku -.IR plik . -.TP -.I \-V -WyÅ›wietla wersjÄ™ programu. -.TP -.I \-x -Wymusza włączenie trybu xterm. Używane kiedy dziaÅ‚a siÄ™ na terminalach wyposażonych -w opcje xterm (dwa tryby ekranu i możliwość wysyÅ‚ania myszÄ… sygnałów wyjÅ›cia). -.TP -.I \-X, \-\-no\-x11 -Do not use X11 to get the state of modifiers Alt, Ctrl, Shift -.TP -.I \-g, \-\-oldmouse -Force a "normal tracking" mouse mode. Used when running on -xterm\-capable terminals (tmux/screen). -.PP -JeÅ›li wybrano, pierwszy katalog używany jest do wyÅ›wietlenia w pierwszym panelu. -Drugi wyÅ›wietlany jest w drugim panelu. -.\"NODE "Overview" -.SH Opis -Ekran Midnight Commandera podzielony jest na cztery części. Prawie caÅ‚y obszar -ekranu zajmujÄ… dwa panele. Standardowo przedostatnia od doÅ‚u linijka ekranu, -przeznaczona jest do wpisywania poleceÅ„, a ostatnia pokazuje klawisze funkcyjne. -Najwyższy wiersz jest wierszem menu. Może on być niewidoczny, ale pojawia siÄ™ zawsze -po klikniÄ™ciu w najwyższÄ… liniÄ™ ekranu, albo po wciÅ›niÄ™ciu klawisza F9. -.PP -Midnight Commander pozwala na oglÄ…danie dwóch paneli w tym samym czasie. -Jeden z nich jest panelem aktywnym (podÅ›wietlona linia wyboru znajduje siÄ™ wÅ‚aÅ›nie -w nim). Niemal wszystkie operacje wykonuje siÄ™ na panelu aktywnym. -Niektóre operacje, jak -np. kopiowanie, zmiana nazwy używajÄ… jako domyÅ›lnego miejsca docelowego -katalogu otwartego w panelu nieaktywnym -(nie martw siÄ™, zawsze zostaniesz poproszony o -potwierdzenie takiej operacji). W celu zasiÄ™gniÄ™cia szerszych informacji zajrzyj -do działów -.BR "Panele katalogów" , " Lewe i prawe menu " oraz " Menu plików" . -.PP -Możesz wywoÅ‚ywać dowolne komendy systemowe po prostu wpisujÄ…c je. Wszystko co -piszesz pojawia siÄ™ w linii poleceÅ„ i po naciÅ›niÄ™ciu klawisza Enter zostanie -wykonane przez Midnight Commandera. Przeczytaj sekcjÄ™ -.BR "Linia powÅ‚oki i Linia wejÅ›ciowa klawiszy" , -żeby nauczyć siÄ™ wiÄ™cej na ten temat. -.PP -.\"NODE "Mouse Support" -.SH "ObsÅ‚uga myszy" -Midnight Commander obsÅ‚uguje mysz. ModuÅ‚ ten jest uruchamiany wtedy kiedy -korzystasz z terminala -.BR xterm (1) -(dziaÅ‚a nawet wtedy, kiedy łączysz siÄ™ przez telnet albo rlogin z innym komputerem -z terminala xterm) lub jeÅ›li korzystasz z linuksa na konsoli z zainstalowanym -serwerem -.BR gpm (1). -.PP -Kiedy klikniesz lewym przyciskiem na panel z katalogami, plik zostanie -wybrany jako aktywny; jeÅ›li klikniesz prawym przyciskiem zostanie on -zaznaczony [lub odznaczony \- w zależnoÅ›ci od jego aktualnego stanu \- -dziaÅ‚anie podobne do klawisza -.B Insert -\- przyp. tÅ‚umacza]. -.PP -Podwójne klikniÄ™cie w plik spowoduje wykonanie pliku, jeÅ›li jest on wykonywalny, -a jeÅ›li rozszerzenie pliku jest rozpoznawane przez Midnight Commander'a i dostÄ™pny -jest odpowiedni program, jest on uruchamiany. -.PP -Możliwe jest również wykonywanie komend przypisanych klawiszom funkcyjnym -przez klikniÄ™cie w nie. -.PP -JeÅ›li klikniÄ™cie odbÄ™dzie siÄ™ w rejonie górnej lini panelu z katalogami, zostanie -on przewiniÄ™ty jednÄ… stronÄ™ wstecz. Podobnie klikniÄ™cie na dolnÄ… ramkÄ™ przewija -tekst jednÄ… stronÄ™ do przodu. Ta opcja klikania w ramki dziaÅ‚a również przy -przeglÄ…daniu pomocy i przy drzewie katalogów. -.PP -Standardowo czas autopowtórzenia przy klikaniu myszÄ… wynosi 400 milisekund. -TÄ™ wartość można zmienić edytujÄ…c plik -\&~/.config/mc/ini -i zmieniajÄ…c parametr -.IR mouse_repeat_rate . -.PP -JeÅ›li używasz Midnight Commandera z obsÅ‚ugÄ… myszy, możesz "przeszczepiać" -kawaÅ‚ki tekstów i używać standardowych zastosowaÅ„ myszki (kopiowanie i -wklejanie) za pomocÄ… klawisza Shift. -.SH "" -.\"NODE "Keys" -.SH "Klawisze" -Niektóre komendy Midnight Commandera wywoÅ‚uje siÄ™ kombinacjÄ… klawiszy -.I Control -(czasem opisywanego jako CTRL lub CTL) lub -.I Meta -(opisywanego ALT lub nawet Compose). W tym manualu (pliku pomocy) bÄ™dziemy -używać nastÄ™pujÄ…cych kombinacji: -C\- \- znaczy: trzymajÄ…c klawisz Control naciÅ›nij -. WiÄ™c C\-f bÄ™dzie oznaczać: trzymajÄ…c Control, naciÅ›nij f. -.PP -M\- \- znaczy, że trzymajÄ…c klawisz Meta lub alt naciskamy . -JeÅ›li na twojej klawiaturze nie ma ani klawisza Alt ani Meta, naciÅ›nij ESC, puść -go i wtedy naciÅ›nij [skutek ten sam, acz jednak użycie trochÄ™ -mniej przyjemne i bardziej skomlikowane \- przyp. tÅ‚umacza]. -.PP -Wszystkie linie wprowadzajÄ…ce Midnight Commandera używajÄ… w przybliżeniu tych -samych przypisaÅ„ klawiszy co wersja GNU edytora Emacs. -.PP -Jest wiele sekcji mówiÄ…cych o klawiszach. Ta nastÄ™pujÄ…ca jest najważniejsza. -.PP -Sekcja -.\"LINK2" -.I Menu plików -.\"File Menu" -opisuje skróty klawiszowe do komend pojawiajÄ…cych siÄ™ w menu plików. Ta sekcja -zawiera funkcjÄ™ klawiszy. WiÄ™kszość z tych komend wywoÅ‚uje jakÄ…Å› akcjÄ™ przede -wszystkim na jednym lub kilku wybranych plikach. -.PP -Sekcja -.\"LINK2" -.I Panele katalogowe -.\"Directory Panels" -opisuje klawisze, które zaznaczajÄ… plik lub pliki jako docelowe do dalszych -dziaÅ‚aÅ„ (akcjÄ… jest najczęściej jedna z tych przedstawionych w menu plików). -.PP -Sekcja -.I Komendy linii poleceÅ„ -wypisuje listÄ™ klawiszy, które sÄ… używane do wprowadzania lub edytowania -tekstów w wierszu poleceÅ„. WiÄ™kszość z nich kopiuje nazwy, i inne tego typu, -z panelu katalogów do linii poleceÅ„ (żeby uniknąć ich przepisywania), lub -pozwala zwiedzić historiÄ™ komend linii poleceÅ„. -.PP -.I Klawisze linii wejÅ›ciowych -sÄ… używane do edytowania linii na wejÅ›ciu (przy wpisywaniu). Oznacza, -to że stosuje siÄ™ je zarówno -do linii poleceÅ„ jak do okien dialogowych. -.PP -.\"NODE " Miscellaneous Keys" -.SH "Klawisze różne" -Jest tu kilka klawiszy, które nie kwalifikujÄ… siÄ™ do żadnej z wymienionych -powyżej grup: -.PP -.BR Enter . -JeÅ›li jest wpisany jakiÅ› tekst w linii poleceÅ„ (na samym dole, pod panelami), -to wpisana komenda jest wykonywana. JeÅ›li nic nie jest wpisane, i linia wyboru -jest na jakimÅ› katalogu, Midnight Commander wykonuje komendÄ™ -.BR chdir (2) -(zmiana katalogu) do wybranego katalogu i odÅ›wieża zawartość panelu; jeÅ›li -linia wyboru jest na pliku wykonywalnym jest on wykonywany. I wreszcie jeÅ›li -rozszerzenie pliku zgadza siÄ™ z obÅ‚ugiwanym przez programy zewnÄ™trzne, które -sÄ… obsÅ‚ugiwane prze Midnight Commandera, sÄ… one wywoÅ‚ywane z owym programem. -.PP -.BR C\-l . -Od nowa rysuje wszystkie informacje okna Midnight Commandera. -.PP -.BR "C\-x c" . -Uruchamia komendÄ™ Chmod dla aktualnego pliku lub zaznaczonych plików. -.PP -.BR "C\-x o" . -Uruchamia komendÄ™ Chown dla aktualnego pliku lub zaznaczonych plików. -.PP -.BR "C\-x l" . -Uruchamia komendÄ™ dowiÄ…zywania. -.PP -.BR "C\-x s" . -Uruchamia komendÄ™ miÄ™kkiego dowiÄ…zywania. -.PP -.BR "C\-x i" . -Zmienia aktywny panel. -.PP -.BR "C\-x q" . -PrzeÅ‚acza nieaktywny panel w tryb "quick view". -.PP -.BR "C\-x !" . -Wykonuje komendÄ™ z zewnÄ™trznego panelu. -.PP -.BR "C\-x h" . -Uruchamia komendÄ™ dodawania katalogów do hotlisty. -.PP -.BR M\-! . -Uruchamia komendÄ™ filtrowanego podglÄ…du, opisanego w sekcji -.IR PodglÄ…d . -.PP -.BR M\-? . -Uruchamia komendÄ™ szukania pliku. -.PP -.BR M\-c . -Włącza okno dialogowe quick cd (szybkiej zmiany katalogów) -.PP -.BR C\-o . -JeÅ›li program jest uruchamiany na konsoli typu Linux lub FreeBSD lub też -na konsoli xterm, pokaże wyjÅ›cie ostatnio wykonywanego programu. JeÅ›li -uruchomiono Midnight Commandera na konsoli type Linux, MC używa -zewnÄ™trznego programu (cons.saver) w celu zachowywyania i odzyskiwania -informacji na ekranie komputera. -.PP -JeÅ›li użycie trybu powÅ‚oki w tle jest wkompilowane, możesz nacisnąć -C\-o w dowolnej chwili i zostataniesz przeniesiony z powrotem bezpoÅ›rednio -do głównego okna Midnight Commandera, żeby powrócić do wykonywania aplikacji -po prostu naciÅ›nij znów C\-o. JeÅ›li masz zawieszonÄ… aplikacjÄ™ wÅ‚aÅ›nie przez -użycie tego triku, nie bÄ™dziesz mógÅ‚ "odpalać" innych programów spod Midnight -Commandera dopóki nie zamkniesz zawieszonego programu. -.PP -Aby dowiedzieć siÄ™ czegoÅ› na temat polskiech liter w Midnight Commanderze -przeczytaj sekcjÄ™ -.IR "Polskie litery" . -.PP -.\"NODE " Directory Panels" -.SH " Panel Katalogów" -Sekcja opisuje klawisze, które operujÄ… na panelu katalogów. JeÅ›li chcesz -wiedzieć jak zmienić panele zobacz sekcjÄ™ -.IR "Lewe i prawe menu" . -.PP -.BR Tab ", " C\-i . -Zmienia aktywny panel. Stary panel staje siÄ™ w tym momencie aktywnym panelem, -a aktywny staje siÄ™ starym. Linia wyboru zmienia swoje poÅ‚ożenia do aktywnego -panelu. -.PP -.BR Insert ", " C\-t . -DEPRECATED! Do zaznaczania plików możesz używać klawisza Insert lub C\-t. Å»eby odznaczyć plik -po prostu zaznacz jakiÅ› już zaznaczony. -.TP -.B Insert -to tag files you may use the Insert key (the kich1 terminfo sequence). -To untag files, just retag a tagged file. -.TP -.B M\-e -to change charset of panel you may use M\-e (Alt\-e). -Recoding is made from selected codepage into system codepage. To -cancel the recoding you may select "directory up" (..) in active panel. -To cancel the charsets in all directories, select "No translation " in -the dialog of encodings. -.PP -.BR M\-g ", " M\-r ", " M\-j . -Używane do wybierania najwyższego, Å›rodkowego i najniższego pliku w panelu. -.PP -.BR M\-t . -Przełącza tryb wyÅ›wietlania do nastÄ™pnego możliwego. UżywajÄ…c tej opcji -Å‚atwo jest przejść szybko z dÅ‚ugiego do krótkiego trybu wyÅ›wietlania -jak również do tego zdefiniowanego przez użytkownika. -.PP -.B C\-\\\\ -(control\-backslash). -Pokazuje hotlistÄ™ katalogów i zmienia katalog do wybranego przez użytkownika. -.PP -.B + -(plus). -Używane do zaznaczania grupy plików. Midnight Commander zapyta o -wyrażenie opisujÄ…cÄ… grupÄ™. JeÅ›li opcja -.I Shell Patterns -jest włączona, typ wyrażeÅ„ jest bardzo podobny do tego w powÅ‚oce -(* dla zera i wiÄ™cej znaków i ? dla jednego znaku). JeÅ›li zaÅ› opcja -.I Shell Patterns -jest wyłączona, sposób zaznaczania plików jest zgodny z ustawieniami -(zobacz -.BR ed (1)). -.PP -.B \\\\ -(backslash). -Używaj znaków "\\" do odznaczania grupy plików. Jest to przeciwieÅ„stwo klawisza -plus. -.PP -.BR "strzaÅ‚ka do góry" ", " C\-p . -Przenosi liniÄ™ wyboru do poprzedniej pozycji w panelu. -.PP -.BR "strzaÅ‚ka do doÅ‚u" ", " C\-n . -Przenosi liniÄ™ wyboru do nastÄ™pnej pozycji w panelu. -.PP -.BR home ", " a1 ", " M\-< . -Przenosi liniÄ™ wyboru do pierwszej pozycji w panelu. -.PP -.BR end ", " c1 ", " M\-> . -Przenosi liniÄ™ wyboru do ostatniej pozycji w panelu. -.PP -.BR PageDown ", " C\-v . -Przenosi liniÄ™ wyboru jednÄ… stronÄ™ do doÅ‚u. -.PP -.BR PageUp ", " M\-v . -Przenosi liniÄ™ wyboru jednÄ… stronÄ™ do góry. -.PP -.BR M\-o . -JeÅ›li drugi panel jest zwykÅ‚ym panelem wyÅ›wietlajÄ…cym i w aktywnym panelu -stoisz na katalogu, drugi panel bÄ™dzie -pokazywać zawartość -akutalnego katalogu (tak jak w Emacsie kombinacja C\-o). JeÅ›li nie stoisz -na katalogu zawartoÅ›ciÄ… drugiego katalogu stanie siÄ™ katalog o jedno piÄ™tro -wyższy od aktualnego. -.PP -.BR C\-PageUp ", " C\-PageDown . -DziaÅ‚a tylko na konsoli typu Linux: wykonuje przejÅ›cie do katalogu ".." lub -do aktualnie wybranego, w zależnoÅ›ci od kombinacji. -.PP -.BR M\-y . -Przenosi do poprzedniego katalogu w historii, podobne do klikniÄ™cia myszkÄ…. -\&'<'. -.PP -.BR M\-u . -Przechodzi do nastÄ™pnego katalogu w historii, podobne do klikniÄ™cie myszkÄ… -w '>'. -.PP -.BR M\-S\-h ", " M\-H . -WyÅ›wietla historiÄ™ katalogów, podobne dziaÅ‚anie do klikniÄ™cia myszkÄ… 'v'. -.PP -.\"NODE " Quick search" -.SH " Quick search" -.PP -.BR C\-s ", " M\-s . -Uruchamia szukanie pliku w katalogu na podstawie jego nazwy. Kiedy szukanie -jest aktywne, każde naciÅ›niÄ™cie klawisza doda jeden znak do poszukiwania -zamiast wypisania go linii poleceÅ„. JeÅ›li opcja -.I "Show mini\-status" -jest włączona, szukany ciÄ…g znaków pojawia siÄ™ w linii mini\-statusu. Kiedy -wpisujemy znak, linia wyboru przemieszcza siÄ™ do nastÄ™pnego pliku zaczynajÄ…cego -siÄ™ od podanych liter. Klawisze -.I backspace -lub -.I del -mogÄ… być używane do poprawiania błędów. JeÅ›li C\-s zostanie naciÅ›niÄ™te ponownie, -Midnight Commander rozpoczyna szukanie nastÄ™pnego pliku -zaczynajÄ…cego siÄ™ od podanych znaków. -.\"NODE " Shell Command Line" -.SH " Linia PowÅ‚oki" -Ta sekcja opisuje klawisze, które sÄ… użyteczne do efektywniejszego -wpisywania podczas podawania komend powÅ‚oki. -.PP -.BR M\-Enter . -Kopiuje nazwÄ™ aktualniego wybranego pliku do linii poleceÅ„. -.PP -.BR C\-Enter . -To samo co M\-Enter, dziaÅ‚a tylko na konsoli typu Linux. -.PP -.BR M\-Tab . -Wykonuje dokoÅ„czenie nazw plików, komend, zmiennych, użytkowników, nazw hostów -za Ciebie. -.PP -.BR "C\-x t" ", " "C\-x C\-t" . -Kopiuje nazwy zaznaczonych plików (lub jeÅ›li nie ma zaznaczonych \- aktywnego) -w aktywnym (C\-x t) lub nieaktywnym panelu (C\-x C\-t) do linii poleceÅ„. -.PP -.BR "C\-x p" ", " "C\-x C\-p" . -Pierwsza kombinacja kopiuje peÅ‚nÄ… Å›cieżkÄ™ z aktywnego, a druga z nieaktywnego -panelu. -.PP -.BR C\-q . -Komenda 'quote' (cytuj) może być używana do wpisywania do wiersza poleceÅ„ znaków, które -normalnie przechwytywane sÄ… przez Commandera (tak jak znak '+'). -.PP -.BR M\-p ", " M\-n . -Używaj tych klawiszy, żeby przeglÄ…dać historiÄ™ komend. M\-p wyÅ›wietla poprzedniÄ…, -a M\-n nastÄ™pnÄ… komendÄ™. -.PP -.BR M\-h . -WyÅ›wietla historiÄ™ aktualnej linii poleceÅ„. -.PP -.\"NODE " General Movement Keys" -.SH " Podstawowe klawisze ruchu" -PrzeglÄ…darka pomocy, podglÄ…d plików i drzewo katalogów używajÄ… podobnych -klawiszy do przemieszczania. Przez to akceptujÄ… dokÅ‚adnie te same klawisze. -Każde z nich z resztÄ… traktujÄ… je jako swoje wÅ‚asne. -.PP -Niektóre partie Midnight Commandera również używajÄ… tych klawiszy, -wiÄ™c niniejsza sekcja może być użyteczna również dla tych partii. -.PP -.BR "strzaÅ‚ka w górÄ™" ", " C\-p . -Przechodzi jednÄ… liniÄ™ wstecz. -.PP -.BR "strzaÅ‚ka w dół" ", " C\-n . -Przechodzi jednÄ… liniÄ™ naprzód. -.PP -.BR "Page Up" ", " M\-v . -Przechodzi jednÄ… stronÄ™ wstecz. -.PP -.BR "Next Page" ", " "Page Down" ", " C\-v . -Przechodzi jednÄ… stronÄ™ naprzód. -.PP -.BR Home ", " A1 . -Przechodzi do poczÄ…tku. -.PP -.BR End ", " C1 . -Przechodzi na koniec. -.PP -PrzeglÄ…darka pomocy i podglÄ…d plików akceptujÄ… nastÄ™pujÄ…ce klawisze -(poza tymi opisanymi powyżej). -.PP -.BR b ", " C\-b ", " C\-h ", " Backspace ", " Delete . -Przechodzi jednÄ… stronÄ™ wstecz. -.PP -.BR "klawisz spacji" . -Przechodzi jednÄ… stronÄ™ naprzód. -.PP -.BR u ", " d . -Przechodzi pół strony naprzód lub wstecz. -.PP -.BR g ", " G . -Przechodzi do poczÄ…tku lub do koÅ„ca. -.PP -.\"NODE " Input Line Keys" -.SH " Linia wejÅ›ciowa klawiszy" -Linie wejÅ›ciowe (te używane w linii komend i w oknach dialogowych), akceptujÄ… -nastÄ™pujÄ…ce klawisze: -.PP -.BR C\-a . -umieszcza kursor na poczÄ…tku linii. -.PP -.BR C\-e . -umieszcza kursor na koÅ„cu linii. -.PP -.BR C\-b ", " move\-left . -przenosi kursor o jednÄ… pozycjÄ™ w lewo. -.PP -.BR C\-f ", " move\-right . -przenosi kursor o jednÄ… pozycjÄ™ w prawo. -.PP -.BR M\-f . -przesuwa kursor o jedno sÅ‚owo naprzód. -.PP -.BR M\-b . -przesuwa kursor o jedno sÅ‚owo wstecz. -.PP -.BR C\-h ", " backspace . -kasuje poprzedni znak. -.PP -.BR C\-d ", " Delete . -kasuje znak w miejscu kursora (nad nim). -.PP -.BR C\-@ . -wstawia zaznaczenie do kasowanie (patrz nastÄ™pne pozycje). -.PP -.BR C\-w . -kopiuje tekst spomiÄ™dzy kursora i zaznaczenia do bufora i usuwa go z linii -poleceÅ„. -.PP -.BR M\-w . -to samo co C\-w tylko, że nie usuwa tekstu z linii. -.PP -.BR C\-y . -wstawia spowrotem zawartość wyciÄ™tego bufora. -.PP -.BR C\-k . -wycina tekst od kursora do koÅ„ca linii. -.PP -.BR M\-p ", " M\-n . -Używaj tych klawiszy, żeby przeglÄ…dać historiÄ™ komend. M\-p wyÅ›wietla poprzedniÄ…, -a M\-n nastÄ™pnÄ…. -.PP -.BR M\-C\-h ", " M\-Backspace . -kasuje jedno sÅ‚owo wstecz (poprzednie). -.PP -.BR M\-Tab . -Wykonuje dokoÅ„czenie nazw plików, komend, zmiennych, użytkowników, nazw hostów -za Ciebie. -.PP -.SH "" -.\"NODE "Menu Bar" -.SH "Linia menu" -Linia menu uaktywnia siÄ™ kiedy wciskasz klawisz F9 lub kiedy klikasz myszkÄ… -na najwyższy wiersz ekranu. Linia menu ma pięć podmenu: "left", "file", command", -"options" i "right" (po polsku to jest "lewe", "plik", "komendy", "opcje", -"prawe"). -.PP -Lewe i prawe menu pozwalajÄ… ci na modyfikacje wyglÄ…du lewego i prawego panelu -katalogowego. -.PP -Menu plik pozwala na wykonanie akcji na aktualnym lub zaznaczonych plikach. -.PP -Menu komend mieÅ›ci w sobie możliwe do wykonania akcje, które sÄ… dużo bardziej -globalne i nie majÄ… zwiÄ…zku z aktualnym i zaznaczonymi plikami. -.PP -.\"NODE " Left and Right Menus" -.SH " Lewe i prawe menu" -WyglÄ…d panelu katalogowego może zostać zmieniony poprzez menu -.B left -i -.BR right . -.PP -.\"NODE " Listing Format..." -.SH " Tryby wyÅ›wietlania (Listing modes)" -Tryby wyÅ›wietlania sÄ… używane do zmienia ustawieÅ„ przy wyÅ›wietlaniu. -DostÄ™pne sÄ… cztery różne tryby: -.BR Full , -.BR Brief , -.B Long -i -.BR User . -Tryb "Full" pokazuje nazwÄ™, rozmiar i czas modyfikacji pliku. -.PP -Tryb "Brief" pokazuje tylko nazwÄ™ pliku i ma dwie kolumny (dziÄ™ki temu -może pokazywać nawet dwa razy wiÄ™cej niż inne tryby). Tryb "Long" jest -podobny do wyniku polecenia -.BR "ls \-l" . -Zabiera on szerokość caÅ‚ego ekranu. -.PP -JeÅ›li wybierzesz tryb "user" (użytkownika), bÄ™dziesz mógÅ‚ wybrać wÅ‚asny -sposób wyÅ›wietlania. -.PP -Tryb użytkownika musi zaczynać siÄ™ od okreÅ›lenia wielkoÅ›ci panelu. Może -to być "half" (pół) lub "full" (caÅ‚y) i okreÅ›la, czy ma być widoczny -jeden duży panel na caÅ‚y ekran czy dwa mniejsze. -.PP -Po rozmiarze panelu możesz włączyć tryb dwóch kolumn panelu. Robi siÄ™ -to dodajÄ…c liczbÄ™ "2" do tekstu formatu. -.PP -Po tym wpisujesz już nazwy pól z podaniem opcjonalnej wielkoÅ›ci. -Wszystkie możliwe pola jakich możesz użyć to: -.TP -.B name -wyÅ›wietla nazwÄ™ pliku. -.TP -.B size -wyÅ›wietla wielkość pliku. -.TP -.B bsize -jest alternatywÄ… dla format -.BR size . -WyÅ›wietla rozmiar plików, a dla katalogów po prostu wyÅ›wietla tekst -"SUB\-DIR" lub "UP\-\-DIR". -.TP -.B type -wyÅ›wietla jednoznakowy opis typu pliku. Ten znak jest taki sam co ten -wyÅ›wietlany prze komendÄ™ ls z flagÄ… \-F. WyÅ›wietlana jest gwiazdka -dla plików wykonywalnych, -ukoÅ›nik dla katalogów, maÅ‚pa (@) dla dowiÄ…zaÅ„, znak równoÅ›ci dla gniazd, -minus dla urzÄ…dzeÅ„ niestniejÄ…cych, znak plus dla urzÄ…dzeÅ„ istniejÄ…cych, -pionowÄ… kreskÄ™ (|) dla kolejek FIFO, tyldÄ™ dla dowiÄ…zaÅ„ -symbolicznych, i wykrzyknik dla dowiÄ…zaÅ„ wskazujÄ…cych na nieistniejÄ…cy plik. -.TP -.B mark -Gwiazdka jeÅ›li plik jest zaznaczony, spacja jeÅ›li nie jest. -.TP -.B mtime -czas ostatniej modyfikacji pliku. -.TP -.B atime -czas ostatniego dostÄ™pu do pliku. -.TP -.B ctime -czas utworzenia pliku. -.TP -.B perm -tekst reprezentujÄ…cy aktualne uprawnienia do pliku. -.TP -.B mode -wartość (cyfrowa) przedstawiajÄ…ca prawa do pliku. -.TP -.B nlink -liczba dowiÄ…zaÅ„ do pliku. -.B ngid -GID (numeryczny). -.TP -.B nuid -UID (numeryczny). -.TP -.B owner -wÅ‚aÅ›ciciel pliku. -.TP -.B group -grupa pliku. -.TP -.B inode -numer i\-wÄ™zÅ‚a pliku. -.PP -Możesz również używać nastÄ™pujÄ…cych znaków dla zmiany wyÅ›wietlania: -.TP -.B space -spacja w formacie wyÅ›wietlania. -.TP -.B | -Ten znak jest używany w celu dodania pionowej linii od formatu wyÅ›wietlania. -.PP -Å»eby wymusić szerokość pola, po prostu dodaj ':' a potem ilość znaków jakie -chcesz żeby miaÅ‚o pole. JeÅ›li numer zaczyna siÄ™ od '+', to szerokość nie może -być mniejsza od podanej, jeÅ›li program zobaczy, że jest jeszcze trochÄ™ -miejsca na ekranie, rozszerzy to pole. -.PP -Na przykÅ‚ad tryb -.B Full -wyÅ›wietla w formacie: -.PP -half type name | size | mtime -.PP -A format -.B Long -wyÅ›wietla w formacie: -.PP -full perm space nlink space owner space group space size space mtime -space name -.PP -A to jest caÅ‚kiem Å‚adny tryb użytkownika: -.PP -half name | size:7 | type mode:3 -.PP -Panele mogÄ… być również przestawione do nastÄ™pujÄ…cych trybów: -.TP -.B Info -Tryb info wyÅ›wietla informacjÄ™ o aktualnie zaznaczonym pliku i (jeÅ›li -to możliwe) o systemie plików. -.TP -.B Tree (drzewo) -Widok drzewa jest caÅ‚kiem podobny do widoku -.\"LINK2" -Drzewa katalogów\&. -.\"Directory Tree" -Zobacz tÄ™ sekcjÄ™ jeÅ›li chcesz siÄ™ dowiedzieć czegoÅ› na ten temat. -.TP -.B Quick View -W tym trybie, panele zostanÄ… przełączone w tryb zredukowanego podglÄ…du -wyÅ›wietlajÄ…cego zawartość aktualnego pliku. JeÅ›li zaznaczysz panel -(klawiszem tab lub myszkÄ…), bÄ™dziesz miaÅ‚ dostÄ™p do wiÄ™kszoÅ›ci komend -podglÄ…du. -.\"NODE " Sort Order..." -.SH " PorzÄ…dek sortowania (Sort order...)" -Istnieje osiem porzÄ…dków sortowania. Przez: nazwÄ™, rozszerzenie, -datÄ™ modyfikacje, datÄ™ odczytu, datÄ™ zmiany, rozmiar, -numeru i\-wÄ™zÅ‚a i niesortowane. PorzÄ…dek sortowanie możesz wybrać w oknie -dialogowym porzÄ…dku sortowania. Możliwe jest również wybranie porzÄ…dku -wstecznego (od tyÅ‚u). -.PP -Standardowo, katalogi sÄ… sortowane przed plikami, ale może to być zmienione -przez opcjÄ™ -.BR "Mix all files (mieszaj wszystkie pliki)" . -.PP -.\"NODE " Filter..." -.SH " Filtry (Filter...)" -Komenda filtra pozwala ci na podanie rozszerzenia, które musi być speÅ‚nione, -żeby pliki byÅ‚y widoczne (na przykÅ‚ad -.BR "*.tar.gz" ). -Niezależnie od filtru katalalogi i dowiÄ…zania do katalogów sÄ… zawsze pokazywane. -.PP -.\"NODE " Reread" -.SH " OdÅ›wież (Reread)" -Komenda odÅ›wież odÅ›wieża widok wszystkich plików w katalogów. Jest to użyteczne -jeÅ›li inny proces stworzyÅ‚ lub usunÄ…Å‚ jakiÅ› pliki. JeÅ›li użyÅ‚eÅ› panelu -zewnÄ™trznego, wszystkie informacje zostanÄ… przywrócone do prawdziwego stanu. -.\"NODE " File Menu" -.SH "Menu plików (File menu)" -.PP -Midnight Commander używa klawiszy F1 \- F10 jako skrótów klawiszowych do komend -wystÄ™pujÄ…cych w menu plików. Na terminalach bez funkcji klawiszowych (F1 \- F10) -można używać kombinacji klawisza Escape i numeru ( odpowiednio 1 dla F1, -2 dla F2 itd. ) -.PP -Menu plików ma nastÄ™pujÄ…ce komendy (skróty klawiszowe umieszczone sÄ… -na dole ekranu): -.PP -.B Pomoc (F1) -.PP -WywoÅ‚uje wbudowanÄ… przeglÄ…darkÄ™ plików pomocy. WewnÄ…trz niej można używać -klawisza Tab żeby przejść do nastÄ™pnego dowiÄ…zania, Enter -żeby przejść do wybranego dowiÄ…zania. Klawisze Spacji i Backspace sÄ… używane -do poruszania siÄ™ naprzód i wstecz na stronach pomocy. NaciÅ›nij klawisz -F1 żeby uzyskać peÅ‚nÄ… listÄ™ dostÄ™pnych klawiszy w pomocy. -.PP -.B Menu (F2) -.PP -WywoÅ‚uje menu użytkownika. Menu użytkownika jest Å‚atwym w użyciu narzÄ™dziem -sÅ‚użącym do obsÅ‚ugi zewnÄ™trznych programów i dodatkowych opcji Midnight -Commandera. -.PP -.B PodglÄ…d (F3, Shift\-F3) -.PP -Włącza podglÄ…d aktualnie wybranego pliku. Standardowowo wywoÅ‚ywany jest -wbudowany podglÄ…d plików, ale jeÅ›li opcja "Use internal view" jest wyłączona, -wywoÅ‚ywany jest zewnÄ™trzny program do poglÄ…du, wskazywany przez zmiennÄ… -.BR PAGER . -JeÅ›li jednak zmienna -.B PAGER -nie zostaÅ‚a jeszcze zdefiniowana, wywoÅ‚ywana jest komenda "view". JeÅ›li użyjesz -kombinacji klawiszy -.BR Shift\-F3 , -poglÄ…d zostanie wywoÅ‚any bez jakiegokolwiek -formatownia pliku. -.PP -.B Filtrowany podglÄ…d (M\-!) -.PP -Ta kombinacja klawiszy oczekuje na komendÄ™ i jej argument (argumentem standardowo -jest wybrany aktualnie plik), caÅ‚e wyjÅ›cie programu przekierowywane jest do pliku, -który zostaje automatycznie wyÅ›wietlony na ekranie w trybie podglÄ…du. -.PP -.B Edycja (F4) -.PP -Aktualnie ta komenda wywoÅ‚uje edytor -.BR vi (1) -lub edytor wybrany w zmiennej Å›rodowiskowej, lub wbudowany wewnÄ™trzny edytor -plików jeÅ›li opcja use_internal_edit jest włączona. -.PP -.B Kopiuj (F5) -.PP -Włącza okno dialogowe, w którym standardowo znajduje siÄ™ Å›cieżka do -katalogu w -nieaktywnym panelu, po czym kopiuje aktualny plik (lub wybrane -jeÅ›li wybrano jakiekolwiek) do katalogu, który wybraliÅ›my w oknie dialogowym. -Space for destination file may be preallocated relative to preallocate_space -configure option. -Podczas procesu kopiowania możesz go w każdej chwili przerwać wciskajÄ…c C\-c lub -Esc. Å»eby dowiedzieć siÄ™ czegoÅ› wiÄ™cej na temat jokerów w Å›cieżce źródÅ‚owej -(którymi najczęściej bÄ™dÄ… * lub ^\\(.*\\)$) i innych możliwych okreÅ›leÅ„ w -katalogu docelowym zobacz kategoriÄ™ -.B "Maski kopiowania/przenoszenia" -.PP -Na niektórych systemach możliwe jest kopiowanie w tle, robi siÄ™ to klikajÄ…c -na przycisk backgorund (lub naciskajÄ…c kombinacjÄ™ M\-b w oknie dialogowym). -Background Jobs jest używane do kontrolowania prac w tle. -.PP -.B Link (C\-x l) -.PP -Tworzy sztywne dowiÄ…zanie do aktualnego pliku. -.PP -.B SymLink (C\-x s) -.PP -Tworzy symboliczne dowiÄ…zanie do aktualnego pliku. Dla tych, którzy nie wiedzÄ… -co to jest dowiÄ…zanie: tworzenie dowiÄ…zania do pliku jest tak jak kopiowanie -pliku, z tym tylko, -że zarówno plik źródÅ‚owy i docelowy reprezentujÄ… ten sam plik. Na przykÅ‚ad, -jeÅ›li edytujesz jeden z tych plików, zmiany, które czynisz pojawiajÄ… siÄ™ w obu -plikach. Niektórzy mówiÄ… na dowiÄ…zania aliasy lub skróty. -.PP -Twarde dowiÄ…zanie wydaje siÄ™ być prawdziwym plikiem. Po stworzeniu go -nie ma możliwoÅ›ci -rozróżnienia, który z plików jest oryginalny, a który jest dowiÄ…zaniem. -Jest bardzo -ciężko zauważyć, że wskazujÄ… one na ten sam plik. -Używaj dowiÄ…zaÅ„ twardych wtedy kiedy nie chcesz tego wiedzieć. -.PP -DowiÄ…zanie symboliczne jest tylko odwoÅ‚aniem do oryginalnego pliku. -JeÅ›li ten plik -zostanie wyrzucony, dowiÄ…zanie stanie siÄ™ bezużyteczne. Jest caÅ‚kiem Å‚atwo -zauważyć, -że pliki odnoszÄ… siÄ™ w gruncie rzeczy do tego samego. Midnight Commander -pokazuje znak "@" przed nazwÄ… pliku jeÅ›li jest dowiÄ…zaniem -symbolicznym do innych -(poza katalogami, przed którymi pokazuje tyldÄ™ (~)). Oryginalny plik wskazywany -przez dowiÄ…zanie jest pokazywany w linii mini\-statusu, jeÅ›li opcja -.I "Show mini\-status" -jest włączona. Używaj dowiÄ…zaÅ„ symbolicznych, jeÅ›li chcesz unikąć problemów z -rozpoznawaniem twardych dowiÄ…zaÅ„. -.PP -.B Zmiana nazwy/przeniesienie (F6) -.PP -Włącza okno dialogowe, gdzie standardowo wpisana jest nazwa katalogu w -nieaktywnym panelu, i przenosi aktualnie wybrany plik (lub zaznaczone jeÅ›li -choć jeden jest zaznaczony) do katalogu wpisanego w oknie dialogowym. Podczas -procesu przenoszenia możesz użyć kombinacji klawiszy C\-c lub ESC, żeby przerwać -operacjÄ™. Po wiÄ™cej szczegółów zobacz operacjÄ™ -.B Kopiuj -opisanÄ… powyżej. WiÄ™kszość rzeczy jest caÅ‚kiem podobna. -.PP -Na niektórych systemach możliwe jest przenoszenie w tle, robi siÄ™ to klikajÄ…c -na przycisk background (lub naciskajÄ…c kombinacjÄ™ M\-b w oknie dialogowym). -Background Jobs jest używane do kontrolowania prac w tle. -.PP -.B "Utwórz katalog (F7)" -.PP -Włącza menu dialogowe i zakÅ‚ada katalog o podanej nazwie -.PP -.B Kasuj (F8) -.PP -Kasuje aktualnie wybrany lub zaznaczone pliki w aktywnym panelu. Podczas -procesu możesz nacisnąć C\-C lub Esc żeby przerwać operacjÄ™. [skasowane pliki -nie bÄ™dÄ… jednak odzyskane \- przyp. tÅ‚umacza]. -.PP -.B Zaznacz grupÄ™ (+) -.PP -Używane do zaznaczania grupy plików. Midnight Commander bÄ™dzie żądaÅ‚ tekstu -opisujÄ…cego grupÄ™ plików. JeÅ›li opcja -.I Shell Patterns -jest włączona, tekst bÄ™dzie traktowany jako globalny dla interpretatora (* -oznacza zero lub wiÄ™cej znaków a ? oznacza jeden znak). JeÅ›li opcja -.I Shell Patterns -jest wyłączona, wtedy zaznaczanie plików jest robione z zastosowaniem norm -zewnÄ™trznych (zobacz ed (1)). -.PP -.B Odznacz grupÄ™ (\\\\) -.PP -Używane do odznaczania grupy plików. Jest przeciwieÅ„stwem komendy -.IR "Zaznacz pliki" . -.PP -.B Wyjdź (F10, Shift\-F10) -.PP -Zamyka Midnight Commandera. Shift\-F10 jest używany jeÅ›li używasz -"wrappera" powÅ‚oki. Shift\-F10 nie przeniesie ciÄ™ do katalogu, w którym -byÅ‚eÅ› ostatnio w Midnight Commanderze, zamiast tego przejdzie do katalogu, -z którego uruchomiÅ‚eÅ› program. -.PP -.\"NODE " Quick cd" -.SH " Szybka zmiana katalogów (Quick cd) M\-c" -Ta komenda jest bardzo użyteczna, jeÅ›li masz już peÅ‚nÄ… liniÄ™ poleceÅ„, a -chcesz przejść do innego katalogu. Uruchamia ona maÅ‚e okno dialogowe, -w którym podajesz to co po normalnej komendzie -.B cd -po czym naciskasz Enter. Wszystkie opcje sÄ… dokÅ‚adnie takie same jak we -wbudowanej komendzie cd. -.PP -.\"NODE " Command Menu" -.SH " Menu komend (Command Menu)" -Komenda drzewo katalogów (Directory tree) pokazuje drzewo katalogów. -.PP -Komenda "Find file" szuka pliku speÅ‚niajÄ…cego podane warunki, natomiast komenda -"Swap panels" zamienia zawartoÅ›ci obu paneli. -.PP -Komenda "Panels on/off" pokazuje wyjÅ›cie ostatniej komendy interpetatora -poleceÅ„. DziaÅ‚a ona tylko na terminalach typu Linux lub FreeBSD. -.PP -Komenda porównywania katalogów (Compare directories) (C\-x d) porównuje -zawartoÅ›ci panelu katalogowego z drugim. Możesz potem użyc Kopiuj (F5) -żeby stworzyć dwa dokÅ‚adnie identyczne panele. Metoda "quick" porównuje -tylko i wyłącznie rozmiary plików i ich daty. Metoda "thorough" porównuje -pliki bajt po bajcie. Metoda "size\-only" zwraca uwagÄ™ tylko na rozmiar plików. -Nie ma dla niej żadnego znaczenia czy plik ma innÄ… datÄ™ lub zawartość, liczy -siÄ™ tylko rozmiar. -.PP -Komenda historii komend (Command history) pokazuje listÄ™ wpisanych komend. -Ta, którÄ… wybierzesz, jest kopiowana do linii poleceÅ„. Do historii komend -można mieć dostÄ™p również przy użyciu kombinacji M\-p lub M\-n. -.PP -Komenda hotlisty katalogów (Directory hotlist) (C\-\\) pozwala na zmienianie -katalogów do tych najczęściej używanych dużo szybciej. -.PP -Komenda panelu zewnÄ™trznego (External panelize) pozwala na wykonywania programów -zewnÄ™trznych i ustawienia zawartoÅ›ci paneli na to co zwróciÅ‚a wywoÅ‚ana -komenda. -.PP -Komenda edycji rozszerzeÅ„ plików (Edit Extension File) pozwala na wÅ‚asny wybór -programów, które majÄ… być używane do wykonywania plików z podanymi -rozszerzeniami. Komenda edycji pliku menu (Edit Menu File) może być używana do -edytowania menu użytkownika (tego, które pojawia siÄ™ po naciÅ›niÄ™ciu kombinacji -F2). -.PP -.\"NODE " Directory Tree" -.SH " Drzewo katalogów (Directory Tree)" -Możesz wybierać katalogi z drzewa katalogów i Midnight Commander przejdzie do -wybranego przez Ciebie katalogu. -.PP -SÄ… dwa sposoby wywoÅ‚ywania drzewa. Prawdziwa komenda drzewa katalogów jest -dostÄ™pna z menu komend. InnÄ… metodÄ… jest wybranie drzewa z menu "lewego" bÄ…dź -"prawego". -.PP -Å»eby nie mieć zbyt dużych opóźnieÅ„ Midnight Commander skanuje tylko małą -ilość katalogów (tÄ™ potrzebnÄ… w danej chwili). JeÅ›li jakiegoÅ› katalogu nie -widać przejdź do jego katalogu nadrzÄ™dnego i naciÅ›nij C\-r (lub F2). -.PP -Możesz używać nastÄ™pujÄ…cych klawiszy: -.PP -Generalne klawisze ruchu sÄ… akceptowane. -.PP -.BR Enter . -W drzewie katalogów, wychodzi z trybu drzewa i przechodzi znów do trybu -zwykÅ‚ego panelu. W podglÄ…dzie drzewa zmienia katalog w drugim panelu i zostaje -w trybie podglÄ…du drzewa w panelu aktywnym. -.PP -.BR C\-r ", " F2 " (Rescan)." -OdÅ›wieża aktualny katalog. Używane jeÅ›li drzewo nie jest już aktualne. Nie -pokazuje katalogów, które już istniejÄ… lub pokazuje te, których już nie ma. -.PP -.BR F3 " (Forget)." -Usuwa aktualny katalog z drzewa katalogów. Używaj tego jeÅ›li chcesz usunąć -"Å›miecÄ…ce" i niepotrzebne katalogi z wyÅ›wietlania. Å»eby byÅ‚y one znów -widoczne wystarczy nacisnąć F2. -.PP -.BR F4 " (Static/Dynamic)." -Przełącza pomiÄ™dzy dynamicznym (standardowo) i statycznym trybem nawigacji. -.PP -W trybie statycznym możesz używać strzaÅ‚ek do doÅ‚u i do góry do wybierania -katalogu. Wszystkie zwiedzone katalogi sÄ… widoczne. -.PP -W trybie dynamicznym możesz używać strzaÅ‚ek w celu wybrania równorzÄ™dnego -katalogu, strzaÅ‚ki w lewo żeby dostać siÄ™ do katalogu domowego, strzaÅ‚ki -w prawo w celu dostania siÄ™ do katalogu podrzÄ™dnego. Widoczne jest tylko -najbardziej aktualne drzewo katalogów. Drzewo zmienia siÄ™ wiÄ™c dynamicznie -podczas twojego przemieszczania. -.PP -.B F5 -(Copy). -Kopiuje katalog. -.PP -.B F6 -(RenMov). -Przenosi katalog. -.PP -.B F7 -(Mkdir). -Tworzy nowy katalog poniżej aktualnego. -.PP -.B F8 -(Delete). -Kasuje katalog z systemu plików. -.PP -.BR C\-s ", " M\-s . -Szuka natÄ™pnego katalogu speÅ‚niajÄ…cego podane warunki szukania. JeÅ›li taki -nie istnieje te klawisze spowodujÄ… przemieszczenie siÄ™ o jednÄ… liniÄ™ w dół. -.PP -.BR C\-h ", " Backspace . -Kasuje ostatni znak w ciÄ…gu znaków do poszukiwania. -.PP -.BR "Jakikolwiek inny klawisz" . -Dodaje klawisz do ciÄ…gu znaków do szukania i przenosi do najbliższego -katalogu, którego nazwa zaczyna siÄ™ od tych znaków. W podglÄ…dzie drzewa musisz -najpierw uaktywnić szukanie naciskajÄ…c C\-s. CiÄ…g szukajÄ…cy jest pokazywany -w linii mini\-statusu. -.PP -NastÄ™pujÄ…ce klawisze sÄ… dostÄ™pne tylko w drzewie katalogów. Nie dziaÅ‚ajÄ… one -w poglÄ…dzie katalogów. -.PP -.B F1 -(Help). -WywoÅ‚uje podglÄ…d pomocy i pokazuje tÄ™ sekcjÄ™. -.PP -.BR Esc ", " F10 . -Wychodzi z drzewa. Nie zmienia katalogów. -.PP -Mysz jest obsÅ‚ugiwana. Podwójne klikniÄ™cie ma znaczenie identyczne do -klawisza Enter. Zobacz również sekcjÄ™ -.IR "ObsÅ‚uga myszy" . -.PP -.\"NODE " Find File" -.SH " Znajdź plik (Find File)" -Komenda znajdź plik najpierw pyta siÄ™ o startowy katalog do przeszukiwania -i o nazwÄ™ pliku, który ma być znaleziony. WciskajÄ…c przycisk "Tree" (drzewo) -możesz wybrać katalog startowy z drzewa katalogów. -.PP -Pole trzecie akceptuje wszystkie wyrażenia podobne do tych w egrep(1). -Oznacza to, że musisz rozpoczynać znaki o specjalnym znaczeniu kombinacjÄ… -"\\" np. szukajÄ…c "strcmp (" bÄ™dziesz musiaÅ‚ wpisać "strcmp \\(" (bez -cudzysÅ‚owów oczywiÅ›cie). -.PP -Możesz zacząć przeszukiwanie naciskajÄ…c przycisk Ok. Podczas szukania możesz -zatrzymać proces przy użyciu przycisku Stop i kontynuować po naciÅ›niÄ™ciu -Startu. -.PP -Możesz przeglÄ…dać liste znalezionych plików za pomocÄ… strzaÅ‚ek do doÅ‚u -i do góry. Komenda Chdir przejdzie do katalogu aktualnie wybranego. Przycisk -Again zapyta siÄ™ o nowe parametry do szukania (rozpocznie proces od nowa). -Przycisk Quit koÅ„czy przeszukiwanie. Przycisk Panelize umieÅ›ci znalezione -pliki w aktywnym panelu katalogowym tak, że bÄ™dziesz mógÅ‚ wykonywać na nich -standardowe czynnoÅ›ci (podglÄ…d, kopiowanie, przenoszenie, kasowanie itp.). -Po spanelizowaniu wystarczy naciÅ›nąć C\-r żeby powrócić do normalnego trybu. -.PP -Możliwe jest posiadanie listy katalogów, których szukanie plików nie -powinno uwzglÄ™dniać (na przykÅ‚ad możesz chcieć ominąć przeszukiwanie CDROMu -i innych podmontowanych systemów plików). -.PP -Katalogi do omijania powinny być umieszczone w zmiennej -.B ignore_dirs -w sekcji -.B FindFile -twojego pliku ~/.config/mc/ini. -.PP -SkÅ‚adowe katalogów powinny być oddzielone od siebie przez Å›redniki, to jest -przykÅ‚ad: -.PP -.nf -[FindFile] -ignore_dirs=/cdrom:/nfs/wuarchive:/afs -.fi -.PP -Możesz woleć używać panelu zewnÄ™trznego do wykonywania niektórych operacji. -Szukanie pliku jest dobre tylko dla prostych zapytaÅ„. UżywajÄ…c panelu -zewnÄ™trznego możesz dokonywać tak skomplikowanych wyszukiwaÅ„ jak tylko -pragniesz. -.PP -.\"NODE " External panelize" -.SH " Panel zewnÄ™trzny" -Panel zewnÄ™trzny pozwala ci na wykonywanie zewnÄ™trznych programów i -oglÄ…danie ich wyjÅ›cia jako zawartoÅ›ci aktywnego panelu. -.PP -Na przykÅ‚ad, jeÅ›li chcesz aby w aktywnym panelu wyÅ›wietlone zostaÅ‚y -wszystkie dowiÄ…zania w aktywnym katalogu, możesz użyć panelu zewnÄ™trznego -i nastÄ™pujÄ…cej komendy: -.PP -.nf -find . \-type l \-print -.fi -Zanim komenda zakoÅ„czy dziaÅ‚anie, zawartość katalogów nie bÄ™dzie już dÅ‚użej -zawartoÅ›ciÄ… aktualnego katalogu, ale wszystkie pliki bÄ™dÄ… symbolicznymi -dowiÄ…zaniami. -.PP -JeÅ›li chcesz wyÅ›wietlić wszystkie pliki, które Å›ciÄ…gnÄ…Å‚eÅ› ze swoich -serwerów ftp, możesz użyć tej komendy awk żeby wypisać nazwÄ™ pliku z -logów transferu: -.PP -.nf -awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog -.fi -.PP -Możesz zapisać sobie czÄ™sto używane komendy pod jakÄ…Å› nazwÄ…, po to -żeby móc ich potem używać dużo Å‚atwiej. Robisz to po prostu wpisujÄ…c komendÄ™ -w linii wejÅ›ciowej, a potem naciskająć przycisk Add. Potem wpisujesz nazwÄ™, -pod jakÄ… ta komenda ma być widoczna. NastÄ™pnym razem po prostu wybierasz -tÄ™ komendÄ™ z listy i nie musisz już wpisywać jej ponownie. -.PP -.\"NODE " Hotlist" -.SH " Hotlist" -Hotlista katalogów pokazuje nazwy katalogów wprowadzonych do hotlisty. -Midnight Commander zmieni miejsce do tego, które wskazuje nazwa katalogu. -Z hotlisty możesz wyrzucać już dodane pozycje par nazw/wskazaÅ„ i dodawać nowe. -Dla dodawania możesz wykorzystać kombinacjÄ™ (C\-x h), która dodaje -Å›cieżkÄ™ -aktualnego katalogu do hotlisty. Użytkownik musi tylko podać pod jakÄ… -nazwÄ… ma być ten katalog widoczny. -.PP -Powoduje to przechodzenie do częściej przeglÄ…danych katalogów znacznie szybciej. -Możesz używać ciÄ…gle wartoÅ›ci CDPATH opisanej w sekcji WewnÄ™trzne -przemieszczanie. -.PP -.\"NODE " Edit Extension File" -.SH " Edycja rozszerzeÅ„ pliów (Edit Extension File)" -Ta komenda wywoÅ‚a twój edytor na plik -.IR ~/.config/mc/mc.ext.ini . -If this file does not exist and you are not root, it will be copied from -.IR %sysconfdir%/mc/mc.ext.ini . -If you are root, you can choose the file to edit: user's -.I ~/.config/mc/mc.ext.ini -or system\-wide -.IR %sysconfdir%/mc/mc.ext.ini . -The format of this file is described in detail in it. -PP -.\"NODE " Background Jobs" -.SH " Prace w tle (Background jobs)" -PozwalajÄ… ci one kontrolować status jakichkolwiek procesów wykonywanych -w tle -przez Midnight Commandera (tylko operacje kopiowania i przenoszenia, mogÄ… -być wykonywane w tle). Z tego menu możesz zastopować, zresetować i "zabić" -proces w tle. -.PP -.\"NODE " Edit Menu File" -.SH " Edycja menu użytkownika (Edit Menu File)" -Menu użytkownika jest bardzo użytecznym menu, które może być tworzone -w sposób dowolny, przez użytkownika. Kiedy tylko próbujesz coÅ› zrobić -przy użyciu tego menu, Å‚adowany jest plik .mc.menu z aktualnego katalogu, ale -tylko wtedy kiedy jest on w posiadaniu użytkownika lub roota i mamy do niego -prawa zapisu. JeÅ›li takiego nie ma próbuje siÄ™ z plikiem ~/.config/mc/menu z tymi -samymi zaÅ‚ożeniami, jeÅ›li jego też nie ma \- używa siÄ™ standardowego pliku -systemowego, który znajduje siÄ™ w %pkgdatadir%/mc.menu. -.PP -Format pliku z menu użytkownika jest bardzo prosty. Linie zaczynajÄ…ce siÄ™ -od czegokolwiek innego niż spacja lub tabulacja, sÄ… traktowane jako -wtyczki do menu (aby móc używać ich potem jako gorÄ…cych klawiszy, dobrze -jest aby pierwszy znak byÅ‚ literÄ…). Wszystkie linie zaczynajÄ…ce od spacji -lub tabulacji, sÄ… komendami, które majÄ… być wykonane jeÅ›li wtyczka zostanie -wybrana. -.PP -Kiedy opcja zostaje wybrana, wszystkie komendy należące do tej opcji -kopiowane sÄ… do pliku w katalogu tymczasowym (najczęściej do /usr/tmp), a -potem plik jest wykonywany. Pozwala to użytkownikowi wkÅ‚adać normalne -konstrukcje powÅ‚oki do konstrukcji kodu wykonywanego. Po wiÄ™cej -informacji zobacz, używania makr. -.PP -To jest przykÅ‚adowy plik mc.menu: -.PP -.nf -A Wyrzuć aktualny plik. - od \-c %f - -B Stwórz raport o błędzie i wyÅ›lij do roota. - I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1 - vi $I - mail \-s "Błąd Midnight Commandera" root < $I - rm \-f $I - -M Przeczytaj pocztÄ™. - emacs \-f rmail - -N Przeczytaj grupÄ™ dyskucyjnÄ…. - emacs \-f gnus - -J Skopiuj rekursywnie caÅ‚y aktualny katalog. - tar cf \- . | (cd %D && tar xvpf \-) - -= f *.tar.gz | f *.tgz & t n -X Zdekompresuj skompresowany plik tar. - tar xzvf %f -.fi -.PP -.B Standardowe warunki -.PP -Każda opcja może być opatrzona w warunki. Warunek musi zaczynać siÄ™ od -pierwszej kolumny i od znaku '='. JeÅ›li warunek jest prawdziwy, opcja -stanie siÄ™ opcjÄ… domyÅ›lnÄ…. -.PP -.nf -SkÅ‚adnia warunku: = - lub: = | ... - lub: = & ... - -Warunek jest jednym z nastÄ™pujÄ…cych: - - f aktualny plik zgodny z wzorcem? - F plik w drugim panelu zgodny z wzorcem? - d aktualny katalog speÅ‚niajÄ…cy wzorzec? - D katalog w drugim panelu speÅ‚niajÄ…cy wzorzec? - t aktualny pliku typu typ? - T plik w drugim panelu typu typ? - ! zaprzeczenie warunku -.fi -.PP -Wzorzec jest normalnym wzorcem powÅ‚oki lub wyrażeniem, -podobnym do wzorca powÅ‚oki. Możesz zmienić globalne ustawienia -wzorców powÅ‚oki piszÄ…c "shell_patterns=x" w pierwszej linii menu -użytkownika (x jest równe 0 lub 1). -.PP -.nf -Typ jest jednym lub wiÄ™cej z podanych znaków: - - n nie katalog - r zwykÅ‚y plik - d katalog - l dowiÄ…zanie - c specjalny znak - b specjalny blok - f fifo - s gniazdo - x wykonywalny - t zaznaczony -.fi -.PP -Na przykÅ‚ad 'rlf' oznacza zwykÅ‚y plik, dowiÄ…zanie lub fifo. Typ 't' jest -trochÄ™ odmienny ponieważ dotyczy panelu a nie pliku. Warunek '=t t' jest -prawdziwy jeÅ›li sÄ… jakieÅ› zaznaczone pliki w aktywnym panelu, a faÅ‚szywy jeÅ›li -nie ma. -.PP -JeÅ›li warunek rozpoczyna siÄ™ od '=?' zamiast '=' droga przechodzenia -przez warunki bÄ™dzie pokazywana -za każdym razem kiedy warunek bÄ™dzie obliczany [przydatne do wyszukiwania błędów -\- przyp. tÅ‚umacza]. -.PP -Warunki sÄ… obliczane od lewej do prawej. Oznacza to, że -.nf - = f *.tar.gz | f *.tgz & t n -.fi -jest liczone tak samo jak -.nf - ( (f *.tar.gz) | (f *.tgz) ) & (t n) -.fi -.PP -To jest prosty przykÅ‚ad zastosowania tych warunków: -.PP -.nf -= f *.tar.gz | f *.tgz & t n -L Listuje zawartość skompresowanego archiwum tar - gzip \-cd %f | tar xvf \- -.fi -.PP -.B Warunki dodania -.PP -JeÅ›li warunek rozpoczyna siÄ™ od znaku '+' (lub '+?') zamiast od '=' (lub '=?') -jest to warunek dodania. JeÅ›li warunek jest prawdziwy, opcja menu bÄ™dzie -dołączona do menu. JeÅ›li nie jest prawdziwy, nie bÄ™dzie ona w nim zawarty. -.PP -Możesz łączyć ze sobÄ… standardowe i dodane warunki zaczynajÄ…c warunek od -kombinacji -\&'+=' lub '=+' (lub '+=?' lub '=+?' jeÅ›li chcesz zobaczyć trasÄ™ błędów). -JeÅ›li chcesz użyć różnych warunków, dodanego i standardowego, -możesz poprzedzić wpis menu dwoma wierszami warunkowymi. Jednym zaczynajÄ…cym -siÄ™ od znaku '+', a drugim od '='. -.PP -Wszelkie komentarze rozpoczynajÄ… siÄ™ od znaku '#'. -.PP -.\"NODE " Options Menu" -.SH " Menu opcji (Options Menu)" -Midnight Commander ma niektóre opcje, które mogÄ… być włączane lyb wyłączane -w różnych oknach dialogowych z tego menu. Opcja jest włączona jeÅ›li widnieje -przed niÄ… gwiazdka lyb "x". -.PP -Komenda -.I Configuration -włącza okno dialogowe, z którego możesz zmienić -wiÄ™kszość ustawieÅ„ Midnight Commandera. -.PP -Menu -.I Layout -pozwala na zmianÄ™ wielu ustawieÅ„, które majÄ… znaczÄ…cy wpÅ‚yw -na to jak MC bÄ™dzie wyglÄ…daÅ‚ na ekranie. -.PP -Menu -.I Confirmation -włącza okno dialogowe, w którym możesz ustawić przy wykonaniu -których operacji chcesz być pytany o potwierdzenie. -.PP -Menu -.I Display bits -pozwala okreÅ›lić jakiego typu znaki twój terminal jest -w stanie wyÅ›wietlić. -.PP -Menu -.I Learn Keys -pokazuje okno dialogowe, w którym możesz poznać -które klawisze nie dziaÅ‚ajÄ… i w razie problemów naprawić to. -.PP -Menu -.I Virtual FS -pokazuje okno, w którym możesz zmienić niektóre ustawienia -dotyczÄ…ce systemów VFS. -.PP -Komenda -.I Save Setup -zachowuje wszystkie ustawienia z menu Lewego, Prawego i Opcji. -.PP -.\"NODE " Configuration" -.SH " Konfiguracja" -Opcje w tym oknie sÄ… podzielone na trzy grupy: -opcje panelu (Panel Options), zatrzymaj po uruchomieniu (Pause after run) i -inne opcje (Other Options). -.PP -.B Opcje panelu -.PP -.I Show Backup Files. -Standardowo Midnight Commander nie wyÅ›wietla plików koÅ„czÄ…cych siÄ™ znakiem -\&'~' (tak jak komenda ls \-B w wersji GNU). -.PP -.I Show Hidden Files. -Standardowo Midnight Commander wyÅ›wietla wszystkie pliki zaczynajÄ…ce siÄ™ -od kropki (tak jak ls \-a). -.PP -.I Mark moves down. -Standardowo kiedy zaznaczasz plik (zarówno przy klawisze Insert) -linia wyboru przenosi siÄ™ o jedno w dół. -.PP -.I Drop down menus. -Kiedy ta opcja jest włączona, kiedy naciskasz klawisz -.B F9 -menu bÄ™dzie aktywowane, w przeciwnym wypadku zostaniesz tylko przeniosiony -do tytułów w tym menu i bÄ™dziesz musiaÅ‚ wybrać opcjÄ™ rÄ™cznie przy użyciu -strzaÅ‚ek bÄ…dź też przy użyciu pierwszej litery z nazwy konkretnego menu. -.PP -.I Mix all files. -JeÅ›li ta opcja jest włączona, wszystkie pliki i katalogi sÄ… pomieszane razem. -JeÅ›li zaÅ› jest wyłączona, katalogi (i dowiÄ…zania do nich), sÄ… listowane na -poczÄ…tku a pozostaÅ‚e pliki dopiero za nimi. -.PP -.I Fast directory reload. -Standardowo ta opcja jest wyłączona. JeÅ›li jÄ… włączysz Midnight Commander -bÄ™dzie używaÅ‚ triku do sprawdzenia czy zawartość katalogu siÄ™ zmieniÅ‚a. -Trik polega na tym, że sprawdza siÄ™ i\-wÄ™zeÅ‚ katalogu i jeÅ›li siÄ™ on zmieniÅ‚ -to katalog jest Å‚adowany na nowo. Oznacza to przeÅ‚adowywanie zawartoÅ›ci panelu -tylko wtedy, kiedy tworzysz lub kasujesz pliki. JeÅ›li robisz inne zmiany -(rozmiaru, wÅ‚aÅ›ciciela, uprawnieÅ„, grupy itp.) bÄ™dziesz musiaÅ‚ rÄ™cznie przeÅ‚adować -widok (np. używajÄ…c kombinacji klawiszy C\-r). -.PP -.B Zatrzymaj po uruchomieniu -.PP -Po wykonaniu komendy, Midnight Commander może zrobić pauzÄ™, po to abyÅ› -mógÅ‚ spokojnie przejrzeć wyjÅ›cie ostatniej komendy. SÄ… trzy możliwe wartoÅ›ci -dla tej zmiennej: -.IP -.I Nigdy (Never) -Oznacza, że nie chcesz widzieć wyjÅ›cia twojej komendy. JeÅ›li używasz -termianala typu Linux lub FreeBSD czy też xterm, bÄ™dziesz mógÅ‚ jednak -zobaczyć jej wyjÅ›cie naciskajÄ…c C\-o. -.IP -.I "On dumb terminals" -BÄ™dziesz miaÅ‚ pauzÄ™ po uruchomieniu na terminalach, które nie sÄ… w stanie -pokazywać widoku ostatniej komendy (na wszystkich terminalach, które nie sÄ… -xtermami lub Linux). -.IP -.I Zawsze (Always) -Program zatrzyma siÄ™ po wykonaniu każdej z twoich komend. -.PP -.B Inne opcje -.PP -.I Operacje weryfikacji (Verbose operation). -Przełącza czy podczas kopiowania, kasowania, przenoszenia plików ma być -pokazywane okno dialogowe pokazujÄ…ce stopieÅ„ zaawansowania. JeÅ›li masz powolny -terminal, możesz chcieć wyłączyć weryfikacjÄ™. Jest to wykonywane automatycznie -za ciebie jeÅ›li twój terminal jest wolniejszy niż 9600 bps. -.PP -.I Zliczaj wszystko (Compute totals). -JeÅ›li ta opcja jest włączona, Midnight Commander zlicza wszytkie bajty -plików, które sÄ… przeznaczone do kopiowania, przenoszenia, kasowania. Spowoduje -to wyÅ›wietlanie dużo bardziej zaawansowanego wskaźnika postÄ™pu w zamian -zmiejszajÄ…c trochÄ™ prÄ™dkość. Ta opcja nie ma żadnego znaczenia jeÅ›li opcja -.I Verbose operation -jest wyłączona. -.PP -.I Wzorce powÅ‚oki (Shell patterns). -Standardowo komendy zaznacz (Select), odznacz (Unselect), i filtruj (Filter) -bÄ™dÄ… używać wyrażeÅ„ takich samych jak powÅ‚oka. Oznacza to, że -gwiazdka oznacza zero lub wiÄ™cej znaków, znak zapytania dokÅ‚adnie jeden znak, -a każdy inny znak sam siebie. JeÅ›li ta opcja jest wyłączona, stosowane sÄ… -te, których używa w komenda -.BR ed (1). -.PP -.I Auto Save Setup. -JeÅ›li ta opcja jest włączona, kiedy wychodzisz z Midnight Commandera -konfiguracja MC zostanie zachowana automatycznie (bez pytania) -do pliku ~/.config/mc/ini. -.PP -.I Auto menus. -JeÅ›li ta opcja jest włączona, menu użytkownika bÄ™dzie włączone na starcie. -Użyteczne do budowania menu dla nie unixowców. -.PP -.I Używaj wewnÄ™trznego edytora (Use internal editor). -JeÅ›li ta opcja jest włączona, do edycji plików używany jest wbudowany -edytor plików. JeÅ›li ta opcja jest wyłączona, używany bÄ™dzie edytor wybrany -w zmiennej -.BR EDITOR . -JeÅ›li żaden edytor nie zostaÅ‚ wybrany, używany bÄ™dzie -.BR vi (1). -Zobacz sekcjÄ™ WewnÄ™trzny edytor plików. -.PP -.I Używaj wewnÄ™trznego podglÄ…du (Use internal viewer). -JeÅ›li ta opcja jest włączona, wbudowany podglÄ…d pliku jest używany do oglÄ…dania -pliku. JeÅ›li ta opcja jest wyłączona, używany jest podglÄ…d wybrany w zmiennej -.BR PAGER . -JeÅ›li żaden podglÄ…d nie zostaÅ‚ wybrany, wywoÅ‚ywana jest komenda -.BR view . -Zobacz sekcjÄ™ Wbudowany podglÄ…d plików. -.PP -.I DokaÅ„czanie: pokaż wszystkie (Complete: show all). -Standardowo Midnight Commander pokazuje wszystkie możliwe dokoÅ„czenia -jeÅ›li jest ich wiÄ™cej, kiedy naciÅ›niesz drugi raz klawisz -.BR M\-Tab , -za pierwszym razem, po prostu dokaÅ„cza to na ile można i wydaje krótki -dźwiÄ™k. JeÅ›li chcesz widzieć wszystkie możliwoÅ›ci po pierwszym naciÅ›niÄ™ciu -.B M\-Tab -włącz tÄ™ opcjÄ™. -.PP -.I Obrotowy myÅ›lnik (Rotating dash). -JeÅ›li ta opcja jest włączona, Midnight Commander bÄ™dzie pokazywaÅ‚ obracajÄ…cy -siÄ™ myÅ›lnik w lewym górnym rogu, jeÅ›li bÄ™dzie akurat w trakcie wykonywania -jakiegoÅ› procesu. -.PP -.I Lynx\-like motion. -JeÅ›li ta opcja jest włączona, możesz używać strzaÅ‚ek przemieszczenia -żeby automatycznie zmieniać katalog jeÅ›li aktualnie wybrany katalog jest -podkatalogiem, a linia poleceÅ„ jest pusta. Standardowo ta opcja jest wyłączona. -.PP -.I DowiÄ…zania podążajÄ…ce cd (Cd follows links). -Ta opcja, jeÅ›li jest włączona, zmusza Midnight Commandera żeby podążaÅ‚ -za Å‚aÅ„cuchem katalogów przy zmienianiu go w panelu czy za pomocÄ… komendy cd. -To jest standardowe zachowanie basha. JeÅ›li jest wyłączona, Midnight Commander -podąża za prawdziwÄ… strukturÄ… katalogów, wiÄ™c cd .. jeÅ›li wszedÅ‚eÅ› do -katalogu poprzez dowiÄ…zanie, przeniesie ciÄ™ do prawdziwego katalogu na dysku, a nie -tam gdzie wskazywaÅ‚o dowiÄ…zanie. -.PP -.I Bezpieczne kasowanie (Safe delete). -JeÅ›li ta opcja jest włączona, nieumyÅ›lne kasowanie plików stanie siÄ™ -dużo trudniejsze. Standardowy wybór w linii potwierdzenia zmienia siÄ™ z -"Yes" na "No". Standardowo ta opcja jest wyłączona. -.PP -.\"NODE " Layout" -.SH " WyglÄ…d (Layout)" -Meny wyglÄ…d pozwala ci na różne warianty zmieniania ogólnego wyglÄ…du -zewnÄ™trznego ekranu. Możesz wybrać, czy linia menu, linia poleceÅ„, linia -hintów (pomocy) i linia klawiszy funkcyjnych majÄ… być widoczne. Na -konsolach typu Linux lub FreeBSD możesz wybrać ile linii ma być -pokazywanych na wyjÅ›ciu okna. -.PP -Reszta powierzchni ekranu jest używana przez dwa panele katalogowe. Możesz -wybrać nawet czy panele majÄ… być uÅ‚ożone poziomo czy pionowo. -KolejnÄ… możliwoÅ›ciÄ… jest zmiana ich standardowej szerokoÅ›ci (bÄ…dź wysokoÅ›ci). -Jest ona standardowo równa, ale można to zmienić. -.PP -Standardowo caÅ‚a zawartość panelu katalogowego jest wyÅ›wietlana tÄ… samÄ… barwÄ…, -ale możesz zmienić to tak aby -.I uprawnienia -i -.I typy plików -byÅ‚y wyÅ›wietlane specjalnym podÅ›wietlonym kolorem. -JeÅ›li podÅ›wietlanie uprawnieÅ„ jest włączone, część pól (ta z -.I uprawnieniami -i -.IR "typami plików" ) -bÄ™dzie podÅ›wietlona przy użyciu koloru wybranego jako -.IR selected . -JeÅ›li podÅ›wietlanie jest włączone, pliki sÄ… kolorowane w zależnośći od swojego -typu (np. katalogi, pliki typu core, wykonywalne, ...). -.PP -JeÅ›li opcja -.I Show Mini\-Status -jest włączona, jeden wiersz informacji statusowych na temat aktualnie -wybranej rzeczy w panelu, bÄ™dzie pokazany na dole panelu. -.PP -.\"NODE " Confirmation" -.SH " Potwierdzanie (Confirmation)" -W tym menu możesz skonfigurować opcje potwierdzania dla kasowania, -zastÄ™powania, wykonywania przez naciÅ›niÄ™cie klawisza Enter, jak również -wychodzenia z programu. -.PP -.\"NODE " Display bits" -.SH " WyÅ›wietlanie znaków (Display bits)" -Używane do konfigurowania zakresu znaków widocznych potem na ekranie. -To ustawienie może być 7\-bitowe jeÅ›li twój terminal obsÅ‚uguje tylko -siedmiobitowe wyjÅ›cie, ISO\-8859\-1 wyÅ›wietla wszystkie znaki z mapy -ISO\-8859\-1 a peÅ‚ny 8 bitowy przeznaczony jest dla tych terminali, które radzÄ… -sobie z wyÅ›wietlaniem znaków oÅ›miobitowych. -.PP -Zobacz sekcjÄ™ -.IR "Polskie znaki" , -po wiÄ™cej szczegółów na temat ich używania w Midnight Commanderze. -.PP -.\"NODE " Learn keys" -.SH " Nauka klawiszy (Learn keys)" -W tym oknie możesz przetestować czy twoje klawisz F1\-F20, Home, End itp. -pracujÄ… poprawnie na twoim terminalu. CzÄ™sto nie dziaÅ‚ajÄ… tak, ponieważ -bazy danych terminali sÄ… poniszczone. -.PP -Przemieszczać siÄ™ możesz za pomocÄ… klawisza Tab, za pomocÄ… klawiszy ruchu -edytora vi ('h' lewo, 'j' dół, 'k' góra i 'l' prawo) i po tym jak już raz -naciÅ›niesz danÄ… strzaÅ‚kÄ™ (zaznaczy siÄ™ ona na OK), za ich pomocÄ… również. -.PP -Klawisze testujesz po prostu naciskajÄ…c każdy z nich. Jak tylko naciÅ›niesz -klawisz i pracuje on zupeÅ‚nie poprawnie, obok nazwy klawisza powinno pojawić -siÄ™ OK. Kiedy klawisz jest już sprawdzony, zaczyna pracować normalnie (np. F1 -wciÅ›niÄ™ty po raz pierwszy po prostu pokaże, że ten klawisz dziaÅ‚a, ale -naciÅ›niÄ™ty po raz drugi pokaże pomoc). Taka sama sytuacja powtarza siÄ™ przy strzaÅ‚kach. -Klawisz Tab powinien pracować zawsze. -.PP -JeÅ›li niektóre klawisze nie pracujÄ… poprawnie, nie zobaczysz OK obok ich nazwy -po naciÅ›niÄ™ciu ich. Możesz chcieć je naprawić. Robisz to najeżdżajÄ…c na -odpowiedni przycisk dla tego klawisza i naciskajÄ…c Enter. Pokaże siÄ™ wtedy -czerwona wiadomość i zostaniesz poproszony o podanie odpowiedniego klawisza. -JeÅ›li chcesz zrezygnować, po prostu naciÅ›nij Esc i poczekaj do czasu kiedy -wiadomość zniknie. W przeciwnym wypadku wciÅ›nij klawisz, który sobie życzysz -i również poczekaj na znikniÄ™cie okna. -.PP -Kiedy skoÅ„czysz już ze wszystkimi klawiszami, możesz nacisnąć Save -żeby zachować zmiany do pliku ~/.config/mc/ini do sekcji [terminal:TERM] (gdzie -TERM jest nazwÄ… twojego aktualnego terminala) lub po prostu odrzucić je. -.PP -.\"NODE " Virtual FS" -.SH " Wirtualny system plików (Virtual FS)" -Ta opcja daje ci kontrolÄ™ nad ustawieniami informacji wirtualnego systemu -plików. -Midnight Commander zachowuje w pamiÄ™ci informacje zwiÄ…zane z niektórymi -wirtualnymi systemami plików, po to żeby kolejne połączenia przebiegaÅ‚y dużo -szybciej (np. Å›ciÄ…gane listy katalogów z serwerów ftp). -.PP -Niemniej jednak, żeby mieć dostÄ™p do zawartoÅ›ci skompresowanego -pliku (np. skompresowanego pliku tar) Midnight Commander musi -stworzyć tymczasowy nieskompresowany plik na twoim dysku. -.PP -Dopiero kiedy informacje w pamiÄ™ci i tymczasowe pliki na dysku sÄ… zgodne z -zasobami, możesz chcieć zmienić parametry informacji znajdujÄ…cych siÄ™ w -buforze podrÄ™cznym po to, żeby zmniejszyć obciążenie dysku do mninimum albo do -zmaksymalizowania prÄ™dkoÅ›ci dostÄ™pu do najczęściej używanych systemów -plików. -.PP -System plików tar jest caÅ‚kiem inteligentny jeÅ›li chodzi o przechowywanie -plików: po prostu Å›ciÄ…ga wejÅ›cia do katalogów i kiedy chcemy wiÄ™cej -szczegółów o nim to system je dla nas Å›ciÄ…ga. -.PP -W rzeczywistoÅ›ci jednak, pliki tar najczęściej trzymane sÄ… jako -skompresowane i jako iż natura tych plików nie pozwala na oglÄ…danie ich bez -dekompresji (nie ma tam -widocznych od razu wejść do katalogów), system plików musi być najpierw -zdekompresowany na dysk do pliku tymczasowego i dopiero potem MC ma do niego -dostÄ™p taki jak do normalnego pliku typu tar. -.PP -Teraz, kiedy tak kochamy odwiedzać różne pliki i zwiedzać systemy -plików typu tar na caÅ‚ym dysku, jest caÅ‚kiem prawdopodobne, że wyjdziesz -z takiego pliku, a po krótkim czasie bÄ™dziesz chciaÅ‚ wejdść -do niego spowrotem. -Ponieważ dekompresja jest powolna, Midnight Commander bÄ™dzie robiÅ‚ -kopie plików w pamiÄ™ci na okreÅ›lony czas, po upÅ‚ywie którego pliki -zostanÄ… skasowane a miejsce zajmowane przez nie zwolnione. Standardowo ten -czas ustawiony jest na jednÄ… minutÄ™. -.PP -System plików FTP trzyma listÄ™ katalogów z odwiedzanego przez nas -serwera w buforze podrÄ™cznym. Jego ważność konfigurowana jest za pomocÄ… opcji -.IR ftpfs directory cache timeout . -MaÅ‚a wartość dla tej opcji może spowolnić wszystkie operacje na systemach -ftp ponieważ każda operacja bÄ™dzie wymagać kolejnych zapytaÅ„ do serwera. -.PP -Ponadto możesz zdefiniować serwer proxy dla transferów ftp i skonfigurować -Midnight Commandera tak, aby zawsze go używaÅ‚. Zobacz sekcjÄ™ -System plików FTP (FTP File System) po wiÄ™cej szczegółów. -.\"NODE " Save Setup" -.SH " Zapisz ustawienia (Save Setup)" -Na starcie Midnight Commander bÄ™dzie próbowaÅ‚ odczytać opcje startowe -z pliku ~/.config/mc/ini. JeÅ›li on nie istnieje, odczyta on konfiguracje z -ogólnodostÄ™pnego pliku %pkgdatadir%/mc.ini. JeÅ›li on też nie istnieje MC -użyje swoich domyÅ›lnych ustawieÅ„. -.PP -Komenda -.I Save Setup -tworzy plik ~/.config/mc/ini zachowujÄ…c aktualne ustawienia lewego, prawego menu, -jak również menu opcji. -.PP -JeÅ›li wÅ‚aczysz opcjÄ™ -.IR "auto save setup" , -MC zawsze bÄ™dzie zachowywaÅ‚ standardowe ustawienie podczas wychodzenia. -.PP -IstniejÄ… również ustawienia, które nie mogÄ… być zmienione z poziomu menu. -Dla tych ustawieÅ„ musisz wyedytować swój plik konfiguracyjny za pomocÄ… -twojego ulubionego edytora. Zobacz sekcjÄ™ Specjalne ustawienia po wiÄ™cej -informacji. -.PP -.SH "" -.\"NODE "Executing operating system commands" -.SH "Wykonywanie poleceÅ„ systemu operacyjnego (Executing operating system commands)" -Możesz wykonywać komendy wpisujÄ…c je bezpoÅ›rednio do linii poleceÅ„ Midnight -Commandera, lub wybierajÄ…c program, który chcesz wykonać za pomocÄ… klawiszy -przemieszczenia i nacisnąć Enter. -.PP -JeÅ›li naciÅ›niesz Enter na pliku, który nie jest wykonywalny, Midnight Commander -sprawdzi rozszerzenie pliku i porówna je z rozszerzeniami wybranymi w pliku -rozszerzeÅ„ (Extensions File). JeÅ›li jakaÅ› pozycja siÄ™ zgadza, wykonywana -jest komenda (raczej bardziej rozszerzone makro) powiÄ…zana z tym rozszerzeniem. -.PP -.\"NODE " The cd internal command" -.SH " Wbudowana komenda cd (The cd internal command)" -Komenda cd jest interpretowana przez Midnight Commandera, nie -dokÅ‚adnie tak samo jak wykonuje to powÅ‚oka. Przez to rozkaz cd nie może zawierać -wielu skÅ‚adników makr, które sÄ… standardowo dostÄ™pne, jednak niektórych -potrafi używać: -.PP -.I Tylda -Znak tyldy (~) jest zawsze równoznaczny z wpisaniem nazwy katalogu domowego. -JeÅ›li po znaku tyldy dodasz jakiÅ› login użytkownika, zostanie on zastÄ…piony -przez katalog domowy wybranego użytkownika. -.PP -Na przykÅ‚ad, ~guest jest katalogiem domowym użytkownika guest, podczas -kiedy ~/guest jest katalogiem guest w twoim katalogu domowym. -.PP -.I Poprzedni katalog (Previous directory) -Możesz przeskakiwać do katalogu, w którym byÅ‚eÅ› poprzednio, używajÄ…c specjalnej -nazwy katalogu '\-' tak jak: -.B cd \- -.PP -.I katalogi CDPATH -JeÅ›li katalog wybrany do przejÅ›cia nie jest w naszym aktualnym katalogu, to -Midnight Commander używa Å›cieżki w zmiennej -.B CDPATH -do szukania w jakimkolwiek z wymienionych tam katalogów. -.PP -Na przykÅ‚ad, możesz ustawić swojÄ… zmiennÄ… -.B CDPATH -na katalogi ~/src:/usr/src, pozwalajÄ…c na zmianÄ™ katalogów na jakikolwiek -inny wewnÄ…trz ~/src i /usr/src, z miejsca w którym jesteÅ› (np. cd linux -przeniesie ciÄ™ do katalogu /usr/src/linux). -.PP -.\"NODE " Macro Substitution" -.SH " ObsÅ‚uga makr (Macro Substitution)" -.PP -Kiedy używamy menu użytkownika, wykonujemy plik o znajomym rozszerzeniu, lub -wykonujemy komendÄ™ z linii poleceÅ„, możemy użyć kilku bardzo prostych makr. -.PP -SÄ… to: -.PP -.I "%f" -.IP -Nazwa aktualnego pliku. -.PP -.I "%d" -.IP -Nazwa aktulnego katalogu. -.PP -.I "%F" -.IP -Nazwa pliku w niewybranym panelu. -.PP -.I "%D" -.IP -Nazwa katalogu w niewybranym panelu. -.PP -.I "%t" -.IP -Aktualnie zaznaczone pliki. -.PP -.I "%T" -.IP -Pliki zaznaczone w nieaktywnym panelu. -.PP -.I "%u" -i -.I "%U" -.IP -Podobne w dziaÅ‚aniu do %t i do %T jednak z tÄ… różnicÄ…, że pliki po ich -użyciu zostanÄ… odznaczone. Oznacza to, że można ich użyć tylko raz w jednym -menu, ponieważ potem nie bÄ™dzie już żadnych plików zaznaczonych. -.PP -.I "%s" -i -.I "%S" -.IP -Wybiera: zaznaczone pliki jeÅ›li sÄ… jakieÅ›, w przeciwnym razie aktualny -plik. -.PP -.I "%cd" -.IP -To jest specjalne makro, które jest używane do zmieniania aktualnego katalogu -na wybrany katalog, na którego froncie jesteÅ›my. Jest to używane przede -wszystkim jako interfejs do wirtualnych systemów plików. -.PP -.I "%view" -.IP -To makro jest używane żeby włączać wbudowany podglÄ…d plików. Może być -ono pojedynczo lub z grupÄ… argumentów. JeÅ›li postanawiasz używać któregokolwiek -z tych argumentów musisz je koniecznie wziąć w nawiasy. -.IP -Argumentami sÄ…: -.I ascii -aby wymusić podglÄ…d w trybie ascii; -.I hex -aby wymusić podglÄ…d w trybie szesnastkowym; -.I nroff -przekazuje podglÄ…dowi, że powinien interpretować pogrubione -i podkreÅ›lone sekwencje programu nroff; -.I unformated -aby przekazać podglÄ…dowi, żeby nie interpretowaÅ‚ komend nroff aby zrobić -tekst pogrubiony lub podkreÅ›lony. -.PP -.I "%%" -.IP -Znak % -.PP -.I "%{jakiÅ› tekst}" -.IP -Pyta siÄ™ o zmiennÄ…. Pokazuje siÄ™ okienko wejÅ›ciowe i tekst wewnÄ…trz klamerek -używany jest jako zachÄ™ta (prompt). Makro jest zastÄ™powane tekstem wpisanym -przez użytkownika. Użytkownik może nacisnąć ESC lub F10 aby anulować. To -makro nie dziaÅ‚a jeszcze w linii poleceÅ„. -.PP -.\"NODE " The subshell support" -.SH " ObsÅ‚uga podpowÅ‚oki (The subshell support)" -PodpowÅ‚oka (powÅ‚oka w tle) jest opcjÄ…, która musi być wybrana przy kompilacji, -dziaÅ‚a ona z powÅ‚okami: bash, tcsh i zsh. -.PP -JeÅ›li powÅ‚oka w tle jest włączona do komplilacji, Midnight Commander bÄ™dzie -sobie tworzyÅ‚ kopie twojej powÅ‚oki (tej zdefiniowanej w zmiennej -.BR SHELL , -a jeÅ›li nie ma, to bÄ™dzie czerpaÅ‚ bezpoÅ›rednio z pliku /etc/passwd) -i odpalaÅ‚ pseudo terminal, zamiast wywoÅ‚ywać nowÄ… powÅ‚okÄ™ za każdym razem -kiedy wywoÅ‚ujesz komendÄ™, komenda bÄ™dzie przekazana powÅ‚oce w tle, -jak tylko jÄ… napiszesz. To pozwala ci na zmianÄ™ wielu zmiennych, używanie -funkcji powÅ‚oki i zdefiniowanych aliasów, które sÄ… ważne dopóki nie wyjdziesz -z Midnight Commandera. -.PP -JeÅ›li używasz -.B basha -możesz wybrać startowe komendy twojej powÅ‚oki w tle w pliku ~/.local/share/mc/bashrc, -a ustawienia klawiatury w ~/.local/share/mc/inputrc. -Użytkownicy -.B tcsh -mogÄ… wstawiać komendy startowe do pliku ~/.local/share/mc/tcshrc. -.PP -JeÅ›li kod powÅ‚oki w tle jest użyty, możesz zawiesić aplikacjÄ™ w dowolnej chwili -po prostu naciskajÄ…c kombinacjÄ™ C\-o i przeskakujÄ…c spowrotem do Midnight -Commandera, jeÅ›li zawiesisz jakÄ…Å› aplikacjÄ™ nie bÄ™dziesz mógÅ‚ używać innych -zewnÄ™trznych komend zanim nie wyjdziesz z aplikacji, którÄ… przerwaÅ‚eÅ›. -.PP -Extra dodatkiem do używania powÅ‚oki w tle jest to, że zachÄ™ta widoczna -w Midnight Commanderze jest tÄ… samÄ…, którÄ… aktualnie używasz w powÅ‚oce. -.PP -Zobacz sekcjÄ™ Opcje po wiÄ™cej informacji na temat tego, jak możesz -kontrolować powÅ‚okÄ™ w tle. -.PP -.\"NODE "Chmod" -.SH "Chmod" -Okno Chmod jest używane do zmieniania atrybutów grupy plików lub katalogów. -Może być ono wywoÅ‚ane kombinacjÄ… C\-x c. -.PP -Okno Chmod ma dwie części \- -.I Uprawnienia (Permissions) -i -.I Plik (File) -.PP -W sekcji Plik wyÅ›wietlana jest nazwa pliku lub katalogu i jego uprawnienia -w formie liczbowej jak również wÅ‚aÅ›ciciel i grupa. -.PP -W sekcji Uprawnienia jest kilka przycisków, z których każdy odpowiada -za odpowiednie uprawnienie do pliku. Podczas zmieniania atrybutów, widzisz -jak zmienia siÄ™ wartość liczbowa w oknie Plik. -.PP -Do poruszania pomiÄ™dzy okienkami (przyciskami i polami do zaznaczania) używaj -.I strzaÅ‚ek -lub klawisza -.IR tab . -Aby zmienić pola lub wcisnąć przycisk używaj klawisza -.IR spacji . -Możesz również używać "gorÄ…cych liter" aby go wybrać -(sÄ… one podÅ›wietlonymi literami na przyciskach). -.PP -Aby uaktywnić wprowadzone zmiany wciÅ›nij Enter. -.PP -Kiedy pracujesz z grupÄ… plików, lub katalogów, możesz kliknąć na -bit, który chcesz wybrać lub wyczyÅ›cić. Kiedy już wybraÅ‚eÅ› bity, -które chcesz zmienić, możesz wcisnąć jeden z przycisków aktywujÄ…cych -.RI ( "Set marked" -lub -.IR "Clear marked" ). -.PP -I w koÅ„cu, aby wprowadzić dokÅ‚adnie takie zmiany jak wybraÅ‚eÅ›, użyj -przycisku -.BR "[Set all]" , -który zadziaÅ‚a na wszystkich wybranych plikach. -.PP -.B [Marked all] -włącza tylko zaznaczone atrybuty do wybranych plików. -.PP -.B [Set marked] -włącza zaznaczone bity w atrybutach wszystkich wybranych plików. -.PP -.B [Clean marked] -czyÅ›ci zaznaczone bity z atrybutów zaznaczonych plików. -.PP -.B [Set] -ustawia atrybuty jednego pliku. -.PP -.B [Cancel] -unieważnia komendÄ™ chmod. -.PP -.\"NODE "Chown" -.SH "Chown" -Komenda chown jest używana do zmiany wÅ‚aÅ›ciela/grupy pliku. Skrótem -klawiszowym jest kombinacja C\-x o. -.PP -.\"NODE "Advanced Chown" -.SH "Zaawansowane chown (Advanced Chown)" -Zaawansowane chown jest komendÄ… łączÄ…cÄ… w sobie komendy chmod i chown. -Możesz za jednym zamachem zmienić atrybuty i wÅ‚aÅ›ciela/grupÄ™ pliku. -.PP -.\"NODE "File Operations" -.SH "Operacje na plikach (File Operations)" -Kiedy kopiujesz, przenosisz lub kasujesz pliki, Midnight Commander pokazuje -okno opisowe operacji na pliku. Pokazuje nazwÄ™ pliku, na którym -aktualnie dokonuje siÄ™ operacja. Widoczne sÄ… co najwyżej trzy linie postÄ™pu. -Pierwsza (file) mówi nam jak duża część pliku zostaÅ‚a już przekopiowana. -Druga (bytes) mówi jak duża część wszystkich zaznaczonych plików zostaÅ‚a -przekopiowana jak do tej pory. Trzecia (count) mówi jaka ilość plików -zostaÅ‚a już przekopiowana. JeÅ›li opcja verbose jest wyłączona, linia -file i bytes nie jest pokazywana. -.PP -SÄ… dwa przyciski na dole okna dialogowego. NaciskajÄ…c przycisk Skip -ominiemy resztÄ™ aktualnie "ruszanego" pliku. NaciskajÄ…c przycisk Abort -zatrzymamy całą operacjÄ™, pominiemy resztÄ™ plików. -.PP -SÄ… trzy inne okna dialogowe, które mogÄ… siÄ™ włączyć podczas operacji -na plikach. -.PP -Okno błędów informuje nas o błędach zaistniaÅ‚ych podczas operacji -na pliku. SÄ… w nim trzy możliwoÅ›ci wyboru. Przycisk Skip mówi żeby -pominąć wybrany plik, przycisk Abort żeby przerwać całą operacjÄ…, -a Retry aby ponowić próbÄ™ (np. kiedy usunÄ…Å‚eÅ› problem korzystajÄ…c -z innego terminala). -.PP -Okno zastÄ™powania jest pokazywane kiedy próbujesz przenieść lub -przekopiować plik, a taki już w miejscu docelowym istnieje. Okno pokazuje -daty i wielkoÅ›ci obu plików. NaciÅ›nij przycisk Yes aby nadpisać (zastÄ…pić) -stary plik nowym, No aby pominąć ten plik, alL aby zastÄ…pić wszystkie pliki, -nonE aby nigdy nie zastÄ™pować i Update aby zastÄ…pić ale tylko wtedy kiedy -plik źródÅ‚owy jest nowszy niż docelowy. Całą operacjÄ™ możesz przerwać -naciskajÄ…c przycisk Abort. -.PP -Okno rekursywnego kasowania jest pokazywane kiedy próbujesz skasować -katalog, który nie jest pusty. NaciÅ›nij przycisk Yes aby skasować -katalog rekursywnie, No aby pominąć katalog, alL aby skasować wszystkie -katalogi rekursywnie i nonE aby pominąć wszystkie katalogi, które nie sÄ… -puste. Możesz przerwać całą opecjÄ… naciskajÄ…c przycisk Abort. JeÅ›li -wybraÅ‚eÅ› przycisk Yes lub alL bÄ™dziesz zapytany o potwierdzenie. Wybierz -"yes" tylko jeÅ›li jesteÅ› pewien, że chcesz skasować wszystko rekursywnie. -.PP -JeÅ›li zaznaczyÅ‚eÅ› pliki, i wykonujesz operacje tylko na nich, to jeÅ›li -operacja siÄ™ udaÅ‚a zostanÄ… one odznaczone, te, na których operacja -nie przebiegÅ‚a caÅ‚kowicie pomyÅ›lnie, pozostanÄ… zaznaczone. -.PP -.\"NODE "Mask Copy/Rename" -.SH "Maski kopiowania/przenoszenia (Mask Copy/Rename)" -Operacje przenoszenia i kopiowania pozwalajÄ… ci na tÅ‚umaczenie nazw -plików w Å‚atwy sposób. Aby to zrobić, musisz wybrać odpowiedniÄ… maskÄ™ -źródÅ‚owÄ… i najczęściej w nazwie docelowej użyć gwiazdek. -Wszystkie pliki pasujÄ…ce do maski źródÅ‚owej sÄ… kopiowane/przenoszone -w zgodzie z maskÄ… docelowÄ…. JeÅ›li sÄ… jakieÅ› pliki zaznaczone, tylko one sÄ… -brane pod uwagÄ™ przy wybieraniu plików. -.PP -SÄ… jeszcze inne opcje, które możesz ustawić: -.PP -Opcja -.I Follow links -mówi czy dowiÄ…zania i dowiÄ…zania twarde w katalogu źródÅ‚owym powinny być przenoszone -jako dowiÄ…zania czy też powinna być przegrywana ich zawartość (plik, na -który wskazujÄ…). -.PP -Opcja -.I Dive into subdirs ... -mówi co program ma robić, kiedy kopiuje siÄ™ katalog, a taki już istnieje. -Standardowo kopiuje siÄ™ pliki do wewnÄ…trz już istniejÄ…cego katalogu (dodaje), -po włączeniu tej opcji kopiuje siÄ™ katalog źródÅ‚owy do wnÄ™trza tego katalogu. -Może przykÅ‚ad pomoże: -.PP -Chcesz przekopiować zawartość katalogu foo do /bla/foo, które -już istnieje. Normalnie (Dive nie jest włączone), mc skopiuje to dokÅ‚adnie -do /bla/foo. Po włączeniu tej opcji zawartość zostanie skopiowana -do /bla/foo/foo ponieważ ten katalog już istnieje. -.PP -Opcja -.I Preserve attributes -mówi czy zachowywać oryginalne atrybuty pliku, czasy i jeÅ›li jesteÅ› -rootem to nawet numery UID i GID. JeÅ›li ta opcja jest wyłączona -używana jest aktualna wartość zmiennej umask. -.PP -.B "Use shell patterns on" -.PP -JeÅ›li opcja obsÅ‚ugi wzorców powÅ‚oki jest włączona, możesz używać znaków '*' i -\&'?' w maskach źródÅ‚owych. DziaÅ‚ajÄ… one tak jak w powÅ‚oce. W masce docelowej możesz -używać tylko '*' i '\\'. Pierwsza maska '*' w nazwie docelowej -odnosi sie do pierwszej gwiazdki w masce źródÅ‚owej, druga do drugiej itd. -Joker '\\1' odnosi siÄ™ do pierwszego jokera w masce źródÅ‚owej, '\\2' odnosi -siÄ™ do drugiego i tak dalej aż do '\\9'. Joker '\\0' oznacza peÅ‚nÄ… nazwÄ™ -pliku źródÅ‚owego. -.PP -Dwa przykÅ‚ady: -.PP -JeÅ›li maska źródÅ‚owa jest "*.tar.gz", a miejscem docelowym jest "/bla/*.tgz" -i plikiem, który ma zostać przekopiowany jest "foo.tar.gz", to kopiÄ… bÄ™dzie -"foo.tgz" w katalogu "/bla". -.PP -Załóżmy, że chcesz zaminieć miejscami nazwÄ™ i rozszerzenie pliku, tak, że -plik "plik.c" ma być zmieniony na "c.plik" itp. Maska źródÅ‚owa powinna być -nastÄ™pujÄ…ca: "*.*", natomiast docelowa: "\\2.\\1". -.PP -.B "Use shell patterns off" -.PP -Kiedy wzorce powÅ‚oki sÄ… wyłączone, MC nie dokonuje automatycznego grupowania -plików. Musisz użyć wyrażenia'\\(...\\)' w masce źródÅ‚owej aby zasygnalizować -istnienie jokerów w masce docelowej. Jest to trochÄ™ Å‚atwiejsze, ale też -wymaga aby trochÄ™ siÄ™ napisać. Z drugiej jednak strony, makra sÄ… bardzo -podobne tych używanych kiedy wzorce powÅ‚oki sÄ… włączone. -.PP -Dwa przykÅ‚ady: -.PP -JeÅ›li maskÄ… źródÅ‚owÄ… jest "^\\(.*\\)\\.tar\\.gz$", docelowÄ… jest -"/bla/*.tgz" -i plikiem do przekopiowania jest "foo.tar.gz", kopiÄ… bÄ™dzie "/bla/foo.tgz". -.PP -Załóżmy, że chemy zamienić miejscami nazwÄ™ i rozszerzenia, tak, że plik -"plik.c" bÄ™dzie siÄ™ nazywaÅ‚ "c.plik" itp. MaskÄ… źródÅ‚owÄ… powinno być -"^\\(.*\\)\\.\\(.*\\)$", a docelowÄ… "\\2.\\1". -.PP -.B "Konwersje nazwy (Case Conversions)" -.PP -Możesz również zmieniać nazwy plików. JeÅ›li użyjesz '\\u' lub -\&'\\l' w masce docelowej, nastÄ™pny znak bÄ™dzie przekonwertowany na -duży lub maÅ‚y, zależnie od podanej opcji. -.PP -JeÅ›li użyjesz '\\U' lub '\\L' w masce docelowej, nastÄ™pne znaki bÄ™dÄ… -zmieniane na maÅ‚e lub duże (zależnie od opcji), aż do napotkania znaku -\&'\\E' lub nastÄ™pnych '\\U', '\\L' bÄ…dź też koÅ„ca linii. -.PP -Konwersje '\\u' i '\\l' majÄ… wyższy priorytet niż '\\U' i '\\L'. -.PP -Na przykÅ‚ad, jeÅ›li maskÄ… źródÅ‚owÄ… jest '*' (shell patterns on) lub '^\\(.*\\)$' -(shell patterns off) i maskÄ… docelowÄ… jest '\\L\\u*', nazwa pliku bÄ™dzie -miaÅ‚a pierwszÄ… literÄ™ dużą, ale pozostaÅ‚e już maÅ‚e, niezależnie od obecnej -nazwy. -.PP -Możesz również używać '\\' aby "podkreÅ›lić" znak. Na przykÅ‚ad, '\\\\' jest -backsleshem, a '\\*' jest gwiazdkÄ…. -.PP -.\"NODE "Internal File Viewer" -.SH "Wbudowany podglÄ…d plików" -Wbudowany podglÄ…d plików pozwala na dwa tryby wyÅ›mietlania: ASCII i hex. -Aby przełączać siÄ™ pomiÄ™dzy tymi trybami używaj klawisza F4. JeÅ›li masz -zainstalowany program GNU gzip, bÄ™dzie on automatycznie używany do dekompresji -plików w przypadku wystÄ…pienia takiej potrzeby. -.PP -PodglÄ…d plików bÄ™dzie próbowaÅ‚ użyć najlepszej metody zalecanej przez system -lub rozszerzenie pliku. Wbudowany podglÄ…d plików bÄ™dzie interpretowaÅ‚ wiele -ciÄ…gów znaków, i włączaÅ‚ podkreÅ›lenie lub pogrubienie, powodujÄ…c tym samym -dużo przyjemniejszy wyglÄ…d plików. -.PP -Kiedy jesteÅ› w trybie hex, funkcja szukania akceptuje tekst w cudzysÅ‚owach -równie dobrze jak wartoÅ›ci szesnastkowe. -.PP -Możesz mieszać ciÄ…gi znaków ze staÅ‚ymi tak jak: "CiÄ…g" 0xFE 0xBB -"wiÄ™cej tekstu". CiÄ…g pomiÄ™dzy staÅ‚ymi i cudzysÅ‚owami jest po prostu -ignorowany. -.PP -Tu jest lista akcji powiÄ…zanych z każdym klawiszem, który Midnight Commander -obsÅ‚uguje w wewnÄ™trznym poglÄ…dzie. -.PP -.B F1 -WywoÅ‚uje wbudowanÄ… przeglÄ…darkÄ™ pomocy. -.PP -.B F2 -Przełącza tryb zawijania. -.PP -.B F4 -Przełącza tryb wyÅ›wietlania. -.PP -.B F5 -Idź do linii. Zostaniesz zapytany o numer linii i zostanie ona wyÅ›wietlona na -ekranie twojego monitora. -.PP -.BR F6 ", " / . -Szukaj wyrażeÅ„ w dalszej części. -.PP -.B ?, -Wsteczne wyszukiwanie wyrażenia. -.PP -.B F7 -Normalne wyszukiwanie\wyszukiwanie w trybie hex. -.PP -.BR C\-s . -Zaczyna normalne szukanie jeÅ›li nie byÅ‚o żadnego wczeÅ›niej, w przeciwnym -razie szuka nastÄ™pnego wystÄ…pienia. -.PP -.BR C\-r . -Zaczyna szukanie wsteczne jeÅ›li jeszcze żadnego nie byÅ‚o, w przeciwnym -razie szuka nastÄ™pnego wystÄ…pienia. -.PP -.BR n . -Szuka nastÄ™pnego wystÄ…pienia. -.PP -.B F8 -Przełącza tryby Raw i Parsed. Pokaże to plik w postaci takiej w jakiej -zostaÅ‚ znaleziony na dysku, lub jeÅ›li zostaÅ‚ wybrany jakiÅ› filtr, bÄ…dź -też plik speÅ‚nia wymagania w pliku mc.ext.ini, wyÅ›wietlane jest to co -przekazuje filtr. Aktualne ustawienie jest zawsze przeciwne niż to napisane -na przycisku, przycisk wskazuje zawsze to co siÄ™ stanie po jego -naciÅ›niÄ™ciu. -.PP -.B F9 -Przełącza pomiÄ™dzy trybami format i unformat. Kiedy tryb formatu jest -włączony podglÄ…d bÄ™dzie interpretowaÅ‚ niektóre sentencje i pokazywaÅ‚ -tekst pogrubiony i podkreÅ›lony innymi kolorami. Wynika z tego, że przycisk -wskazuje co innego niż jest aktualnie (patrz wyżej). -.PP -.BR F10 ", " Esc . -Wychodzi z wbudowanego podglÄ…du. -.PP -.BR "Page Down" ", " space ", " C\-v . -Przewija jednÄ… stronÄ™ naprzód. -.PP -.BR "Page Up" ", " M\-v ", " C\-b ", " backspace . -Przewija jednÄ… stronÄ™ wstecz. -.PP -.BR "strzaÅ‚ka w dół" . -Przewija jednÄ… liniÄ™ naprzód. -.PP -.BR "strzaÅ‚ka w górÄ™" . -Przewija jednÄ… liniÄ™ wstecz. -.PP -.BR C\-l . -OdÅ›wieża ekran. -.PP -.BR C\-f . -Przeskakuje do nastÄ™pnego pliku. -.PP -.BR C\-b . -Przeskakuje do poprzedniego pliku. -.PP -.BR M\-r . -Przełącza linijkÄ™. -.PP -Możliwe jest poinstruowanie podglÄ…du pliku jak ma wyÅ›wietlać plik, zobacz -sekcjÄ™ Edycja pliku rozszerzeÅ„. -.\"NODE "Internal File Editor" -.SH "Wbudowany edytor plików" -Wbudowany edytor plików ma wiÄ™kszość funkcji posiadanych przez inne -edytory peÅ‚no\-ekranowe. Jest wywoÅ‚ywany po naciÅ›niÄ™ciu klawisza -.B F4 -o ile opcja -.I use_internal_edit -jest ustawiona w pliku startowyn. Ma maksymalny rozmiar pliku wynoszÄ…cy -szesnaÅ›cie megabajtów i potrafi bez skazy edytować pliki binarne. -.PP -Opcje, które aktualnie posiada to: kopiowanie, przenoszenie, kasowanie, -wycinanie i wklejanie bloków; -.IR "klawisz dla klawisza undo" ; -rozciÄ…gane menu; wklejanie plików; definiowanie makr; szukanie i -zastÄ™powanie wyrażeÅ„ regularnych; strzaÅ‚ki z Shiftem zaznaczajÄ…ce teksty -w stylu MSW\-MAC (tylko dla konsoli typu Linux); przełączanie trybu -wstawiania\-zastÄ™powania; opcja pozwalajÄ…ca na "przerzucenie" bloku tekstu -przez komendÄ™ powÅ‚oki jak na przykÅ‚ad indent. -.PP -Edytor jest bardzo prosty w użyciu i nie wymaga żadnego przygotowania. Aby -zobaczyć jakie sÄ… klawisze po prostu obejrzyj odpowiednie menu -rozwijalne. Inne klawisze to: przemieszczanie z Shiftem zaznaczajÄ…ce tekst. -.B Ctrl\-Ins -kopiuje do pliku -.B mcedit.clip -a -.B Shift\-Ins -wkleja z pliku mcedit.clip. -.B Shift\-Del -Wycina do -.BR mcedit.clip , -a -.B Ctrl\-Del -kasuje zaznaczony tekst. Klawisze dokoÅ„czenia również dajÄ… Enter z -automatycznym wciÄ™ciem. PodÅ›wietlanie myszÄ… również dziaÅ‚a, -i możesz je przesÅ‚onić i spowodować normalne zaznaczanie tekstu (takie jak -obsÅ‚uguje terminal) po prostu trzymajÄ…c klawisz Shift. -.PP -Aby zdefiniować makro, naciÅ›nij -.B Ctrl\-R -i potem naciÅ›nij klawisze, które chcesz aby byÅ‚y wykonywane. NaciÅ›nij -ponownie -.B Ctrl\-R -kiedy skoÅ„czysz. Możesz również przyporzÄ…dkować makro do dowolnego klawisza -jaki chcesz naciskajÄ…c ten klawisz. Makro jest wykonywane kiedy naciÅ›niesz -.B Ctrl\-A -i przyporzÄ…dkowany klawisz. Makro jest wykonywane również jeÅ›li naciÅ›niesz -klawisz Meta, Ctrl, lub Esc i wybrany klawisz, jednak tylko jeÅ›li ten -klawisz nie jest używane przez inne funkcje. Raz zdefiniowane, makro -wÄ™druje sobie do pliku -.B ~/.local/share/mc/mcedit/mcedit.macros -w twoim katalogu domowym. Możesz skasować makro kasujÄ…c odpowiedniÄ… liniÄ™ z -tego pliku. -.PP -.B F19 -sformatuje format C jeÅ›li jest podÅ›wietlony. Å»eby to dziaÅ‚aÅ‚o, stwórz -wykonywalny plik -.B ~/.local/share/mc/mcedit/edit.indent.rc -w twoim katalogu domowym zawierajÄ…cy poniższe: -.PP -.nf -#!/bin/sh -/usr/bin/indent \-kr \-pcs ~/.cache/mc/mcedit/mcedit.block>& /dev/null -cat /dev/null > ~/.cache/mc/mcedit/cooledit.error -.fi -.PP -Edytor wyÅ›wietla również znaki nieamerykaÅ„skie (160+). Kiedy edytujesz plik -binarny, powinieneÅ› ustawić opcjÄ™ -.B display bits -do 7 bitów w menu opcji, aby utrzymać przejrzystość odstÄ™pów miÄ™dzy znakami. -.PP -Zobacz sekcjÄ™ Polskie znaki, aby poznać szczegóły na temat używania -polskich znaków w Midnight Commanderze. -.PP -.\"NODE "Completion" -.SH DokaÅ„czanie -.PP -Pozwól Midnight Commanderowi pisać za ciebie. -.PP -Spróbuj użyć dokoÅ„czenia na tekÅ›cie przed aktualnÄ… pozycjÄ…. MC próbuje -dokoÅ„czyć tekst jako zmiennÄ… (jeÅ›li tekst zaczyna siÄ™ od znaku -.BR $ ), -nazwÄ™ użytkownika (jeÅ›li tekst zaczyna siÄ™ od znaku -.BR ~ ), -nazwÄ™ hosta (jeÅ›li tekst zaczyna siÄ™ od znaku -.BR @ ) -lub komendÄ™ (jeÅ›li jesteÅ› w linii komend w pozycji gdzie możesz wpisać -jakÄ…Å› komendÄ™, możliwe dokoÅ„czenia bÄ™dÄ… zawierać również zarezerwowane -sÅ‚owa i wbudowane komendy powÅ‚oki). JeÅ›li żaden z powyższych warunków nie -jest speÅ‚niony, próbuje siÄ™ dokaÅ„czać nazwÄ™ pliku. -.PP -Nazwa pliku, nazwa użytkownika i hosta, pracuje we wszystkich liniach -wejÅ›cia, dokaÅ„czanie komend pracuje tylko w wybranych. JeÅ›li dokaÅ„czanie -jest rozbudowane (jest wiÄ™cej różnych możliwoÅ›ci), MC wyda krótki dźwiÄ™k, a -nastÄ™pna akcja bÄ™dzie zależeć od wartoÅ›ci zmiennej -.I Complete: show all -w menu konfiguracja. JeÅ›li jest ona włączona, zostanie wyÅ›wietlona lista -wszystkich możliwych nazw. WÅ‚aÅ›ciwÄ… nazwÄ™ możesz wybrać za pomocÄ… strzaÅ‚ek -a potem naciskajÄ…c klawisz -.B Enter -na wÅ‚aÅ›ciwej pozycji. Możesz także nacisnąć pierwsze litery, którymi różniÄ… -siÄ™ możliwoÅ›ci aby odrzucić tak dużą część dokoÅ„czeÅ„ jak to tylko możliwe. -JeÅ›li naciÅ›niesz znowu -.BR M\-Tab , -pokazane zostanÄ… tylko te pozycje, które zaczynajÄ… siÄ™ od kolejnych -podanych liter. Kiedy nie maja już wiÄ™cej możliwoÅ›ci, okno znika, ale -możesz je wczeÅ›niej schować używajÄ…c klawiszy anulujÄ…cych: -.BR Esc , -.B F10 -oraz strzaÅ‚ek w lewo i prawo. JeÅ›li -Complete: show all -jest wyłączone, okno z listÄ… włącza siÄ™ dopiero wtedy, kiedy naciskasz -.B M\-Tab -po raz drugi. Za pierwszym razem MC wydaje tylko krótki dźwiÄ™k. -.PP -.\"NODE "Virtual File System" -.SH "Wirtualny system plików (Virtual File System)" -Midnight Commander jest dostarczany z kodem pozwalajÄ…cy na dostÄ™p do -systemów plików. Ten kod nazywany jest wirtualnym systemem plików. Pozwala on -Midnight Commanderowi manipulować plikami trzymanymi na systemach nie -Unixowych. -.PP -Aktualnie Midnight Commander jest wyposażony w niektóre wirtualne systemy -plików (VFS): lokalny system plików, używany do dostÄ™pu do typowych -systemów plików Unixowych; ftpfs używanego do manipulowania plikami na -zdalnych systemach na poprzez protokół FTP; tarfs używany do manipulania -plikami w systemach tar i w skompresowanych systemach tar; undelfs, używany -do odzyskiwania skasowanych plików na systemach typu ext2 (standardowy -system pracy systemu Linux), fish (do manipulowania plikami poprzez -połączenia powÅ‚ok takich jak rsh czy ssh) i w koÅ„cu system mcfs (system -plików Midnight Commandera), oparty o sieć. -.PP -Kod VFS potrafi interpretować poprawnie wszystkie nazwy Å›cieżek i przekazuje -je do wÅ‚aÅ›ciwego systemu plików. Format używany dla każdego z systemów plików -jest opisany w swojej oddzielnej sekcji. -.PP -.\"NODE " FTP File System" -.SH " System plików FTP (FTP File System)" -Ftpfs pozwala na manipulowanie plikami na zdalnych komputerach, do -normalnego użytku, możesz próbować używać panelowych komend FTP i dowiÄ…zaÅ„ -(dostÄ™pnych z linii menu) lub zmienić Å›cieżkÄ™ bezpoÅ›rednio za pomocÄ… zwykÅ‚ej -komendy cd wyglÄ…dajÄ…cej tak jak poniżej: -.PP -.I ftp://[!][użytkownik[:hasÅ‚o]@]komputer[:port]/[zdalny\-katalog] -.PP -Parametry -.IR użytkownik , -.I port -i -.I zdalny katalog -sÄ… opcjonalne. JeÅ›li wybierzesz element -.I użytkownik -Midnight Commander spróbuje zalogować siÄ™ na zdalnym komputerze jako -zadany użytkownik, w przeciwnym razie użyje twojego loginu. Opcjonalne jest -również -.IR hasÅ‚o , -jeÅ›li jest obecne zostanie użyte do nawiÄ…zania połączenia. To użycie nie -jest zalecane (tak samo jak trzymanie tego w twojej hotliÅ›cie, -dopóki nie ustawisz odpowiednich uprawnieÅ„, aby nikt niepowoÅ‚any nie miaÅ‚ -do tego dostÄ™pu). -.PP -PrzykÅ‚ady: -.PP -.nf - ftp://ftp.nuclecu.unam.mx/linux/local - ftp://tsx\-11.mit.edu/pub/linux/packages - ftp://!behind.firewall.edu/pub - ftp://guest@remote\-host.com:40/pub - ftp://miguel:xxx@server/pub -.fi -.PP -Aby połączyć siÄ™ z serwerem znajdujÄ…cym siÄ™ za firewallem, bÄ™dziesz musiaÅ‚ -użyc przedrostka ftp://! aby wymusić na Midnight Commanderze używanie -serwera proxy do transferu danch. Serwer proxy definiuje siÄ™ w oknie -dialogowym wirtualnego systemu plików. -.PP -InnÄ… możliwoÅ›ciÄ… jest ustawienie opcji -.I Always use ftp proxy -w oknie konfiguracyjnym wirtualnego systemu plików. Skonfiguruje -to program tak, aby zawsze -używaÅ‚ serwera proxy. JeÅ›li ta zmienna jest ustawiona, program bÄ™dzie robiÅ‚ -dwie rzeczy: konsultowaÅ‚ plik %sysconfdir%/mc/mc.no_proxy w celu znalezienia linii -zawierajÄ…cych nazwy serwerów, które sÄ… lokalne (jeÅ›li nazwa hosta zaczyna -siÄ™ od kropki, uznaje siÄ™, że jest to domena) i sprawdza czy jakieÅ› hosty -bez kropek w nazwie sÄ… widoczne bezpoÅ›rednio. -.PP -JeÅ›li używasz systemu ftpfs bÄ™dÄ…c za routerem filtrujÄ…cym, który nie -pozwala ci na używanie standardowej metody otwierania plików, możesz -chcieć wymusić na programie używanie trybu passive\-open. Aby tego używać -ustaw opcjÄ™ ftpfs_use_passive_connections w pliku inicjujÄ…cym. -.PP -Midnight Commander przechowuje listÄ™ katalogów w buforze podrÄ™cznym. Czas wyrzucania -bufora jest ustawiany w oknie dialogowym Wirtualnego Systemu Plików. To ma -Å›miesznÄ… wÅ‚aÅ›ciwość takÄ…, że nawet kiedy wystÄ…piÄ… jakieÅ› zmiany w katalogu, nie -bÄ™dÄ… one pokazane w strukturze katalogów, dopóki nie wymusisz tego przy -użyciu kombinacji C\-r. To jest dobre rozwiÄ…zanie (jeÅ›li myÅ›lisz, że to jest -bug, to pomyÅ›l o pracy na zdalnych systemach poÅ‚ożonych po drugiej stronie -Atlantyku przy użyciu ftpfs :) ). -.PP -.\"NODE " Tar File System" -.SH " System plików tar (Tar File System)" -System plików tar pozwala na dostÄ™p w trybie tylko\-do\-odczytu do plików typu -tar i do skompresowanych plików typu tar, za pomocÄ… komendy chdir. Aby -zmienić katalog na plik tar, możesz zmienić aktualny katalog używajÄ…c -nastÄ™pujÄ…cej konstrukcji: -.PP -.I /nazwa_pliku.tar:utar/[katalogu\-wewnÄ…trza\-archiwum] -.PP -Plik mc.ext.ini pozwala już na tworzenie skrótów do plików tar, oznacza to, że -możesz wybrać jakiÅ› plik tar i nacisnąć enter aby do niego wejść, zobacz -sekcjÄ™ Edycja pliku rozszerzeÅ„ po wiÄ™cej szczegółów na temat tego jak -zostaÅ‚o to pomyÅ›lane. -.PP -PrzykÅ‚ady -.PP -.nf - mc\-3.0.tar.gz/utar://mc\-3.0/vfs - /ftp/GCC/gcc\-2.7.0.tar/utar:// -.fi -.PP -Późniejszy podaje peÅ‚nÄ… Å›cieżkÄ™ archiwum tar. -.\"NODE " FIle transfer over SHell filesystem" -.SH " Transfer plików pomiÄ™dzy systemami plików (FIle transfer over SHell filesystem)" -.PP -System plików fish jest systemem opartym na sieci, który pozwala na -manipulowanie plikami na obcej maszynie tak jakby byÅ‚y one lokalne. Aby -tego używać, druga strona musi również mieć ustawiony serwer fish, lub musi -mieć powÅ‚okÄ™ kompatybilnÄ… z bashem. -.PP -Aby połączyć siÄ™ z obcÄ… maszynÄ…, musisz tylko zmienić katalog do -specjalnego katalogu, którego nazwa jest w nastÄ™pujÄ…cym formacie: -.PP -.nf -sh://[użytkownik@]komputer[:opcje];/[zdalny\-katalog]; -.fi -Elementy -.IR użytkownik , -.I opcje -i -.I zdalny katalog -sÄ… opcjonalne. JeÅ›li podasz -.I użytkownika -Midnight Commander spróuje zalogować siÄ™ na obcy komputer jako zadany -użytkownik w przeciwnym razie użyty zostanie twój login. -.PP -Jako -.I opcja -może wystÄ…pić 'C' \- włącza kompresje i 'rsh' \- włącza rsh zamist ssh. JeÅ›li -.I zdalny\-katalog -istnieje, twój aktualny katalog na zdalnym komputerze bÄ™dzie ustawiony -na niego. -.PP -PrzykÅ‚ady: -.PP -.nf - sh://onlyrsh.mx:r/linux/local - sh://joe@want.compression.edu:C/private - sh://joe@noncompressed.ssh.edu/private -.fi -.\"NODE " Undelete File System" -.SH " Odzyskiwanie plików" -Na systemach Linuksowych, jeÅ›li dodaÅ‚eÅ› w konfiguracji opcjÄ™ przywracania -skasowanych plików z systemów ext2, bÄ™dziesz w stanie to robić. Odzyskiwanie -plików jest możliwe tylko i wyłącznie na systemach typu ext2. Przywracany -system plików jest tylko nakÅ‚adkÄ… na bibliotekÄ™ ext2fs: odzyskiwanie nazw -wszystkich skasowanych plików i próba uczynienia z nich normalnej partycji. -.PP -Å»eby używać tych systemów plików, bÄ™dziesz musiaÅ‚ przejść od specjalnego -pliku, którego nazwa skÅ‚ada siÄ™ z przedrostka "undel://" i nazwy pliku, -w której ów plik rezyduje. -.PP -Na przykÅ‚ad, aby odzyskać skasowane pliki z drugiej partycji pierwszego -dysku scsi Linux, bÄ™dziesz musiaÅ‚ użyć nastÄ™pujÄ…cej Å›cieżki: -.PP -.nf - undel:///dev/sda2 -.fi -.PP -Może to chwilkÄ™ potrwać zanim pliki zostanÄ… pokazane i bÄ™dziesz mógÅ‚ je -normalnie oglÄ…dać. -.\"NODE " EXTernal File System" -.SH " EXTernal File System" -.B extfs -allows to integrate numerous features and file types into GNU Midnight -Commander in an easy way, by writing scripts. -.PP -Extfs filesystems can be divided into two categories: -.PP -1. Stand\-alone filesystems, which are not associated with any existing -file. They represent certain system\-wide data as a directory tree. -You can invoke them by typing -.RI ' "cd fsname://" ' -where fsname is an extfs short name (see below). Examples of such -filesystems include audio (list audio tracks on the CD) or apt (list of -all Debian packages in the system). -.PP -For example, to list CD\-Audio tracks on your CD\-ROM drive, type -.PP -.nf - cd audio:// -.fi -.PP -2. 'Archive' filesystems (like rpm, patchfs and more), which represent -contents of a file as a directory tree. It can consist of 'real' files -compressed in an archive (urar, rpm) or virtual files, like messages -in a mailbox (mailfs) or parts of a patch (patchfs). To access such -filesystems -.RI ' fsname:// ' -should be appended to the archive name. Note that the archive itself -can be on another vfs. -.PP -For example, to list contents of a zip archive documents.zip type -.PP -.nf - cd documents.zip/uzip:// -.fi -.PP -In many aspects, you could treat extfs like any other directory. For -instance, you can add it to the hotlist or change to it from directory -history. An important limitation is that you cannot invoke shell -commands inside extfs, just like any other non\-local VFS. -.PP -Common extfs scripts included with Midnight Commander are: -.TP -.B a -access 'A:' DOS/Windows diskette -.RI ( "cd a://" ). -.TP -.B apt -front end to Debian's APT package management system -.RI ( "cd apt://" ). -.TP -.B audio -audio CD ripping and playing -.RI ( "cd audio://" -or -.IR "cd device/audio://" ). -.TP -.B bpp -package of Bad Penguin GNU/Linux distribution -.RI ( "cd file.bpp/bpp://" ). -.TP -.B deb -package of Debian GNU/Linux distribution -.RI ( "cd file.deb/deb://" ). -.TP -.B dpkg -Debian GNU/Linux installed packages -.RI ( "cd deb://" ). -.TP -.B hp48 -view and copy files to/from a HP48 calculator -.RI ( "cd hp48://" ). -.TP -.B lslR -browsing of lslR listings as found on many FTPs -.RI ( "cd filename/lslR://" ). -.TP -.B mailfs -mbox\-style mailbox files support -.RI ( "cd mailbox/mailfs://" ). -.TP -.B patchfs -extfs to handle unified and context diffs -.RI ( "cd filename/patchfs://" ). -.TP -.B rpm -RPM package -.RI ( "cd filename/rpm://" ). -.TP -.B rpms -RPM database management -.RI ( "cd rpms://" ). -.TP -.B ulha, urar, uzip, uzoo, uar, uha -archivers -.RI ( "cd archive/xxxx://" -where xxxx is one of: -.IR ulha , -.IR urar , -.IR uzip , -.IR uzoo , -.IR uar , -.IR uha ). -.PP -You could bind file type/extension to specified extfs as described in the -.\"LINK2" -Edit Extension File -.\"Edit Extension File" -section. Here is an example entry for Debian packages: -.PP -.nf - regex/\.deb$ - Open=%cd %p/deb:// -.fi -.SH Polskie znaki -Midnight Commander bardzo dobrze radzi sobie z obsÅ‚ugÄ… znaków -nieamerykaÅ„skich (160+) w tym polskich. Ważne jest aby mieć ustawione -polskie znaki na konsoli (tzn. aby powÅ‚oka je obsÅ‚ugiwaÅ‚a). JeÅ›li używasz -basha musisz tylko ustawić w pliku inputrc ( /etc/inputrc lub ~/.inputrc) -nastÄ™pujÄ…ce wartoÅ›ci: -.PP -.nf -set meta\-flag on -set convert\-meta off -set output\-meta on -.fi -.PP -w pliku /etc/sysconfig/i18n: -.PP -.nf -SYSFONT=lat2u\-16 -SYSFONTACM=iso02 -.fi -.PP -natomiast w pliku /etc/sysconfig keyboard: -.PP -.nf -KEYTABLE=pl -.fi -.PP -Potem użyj poleceÅ„ -.I /sbin/setsysfont -i -.IR "loadkeys pl" . -[Zwróć uwagÄ™ na to, że te pliki sÄ… charakterystyczne dla dystrybucji -RedHat, jeÅ›li masz innÄ… i wiesz jak to ustawić, to napisz do mnie, a ja to -tu dopiszÄ™ [ patrz tÅ‚umacz na dole ;)) ]]. -.PP -Teraz wystarczy już tylko włączyć odpowiednie opcje w menu opcji (klawisz -F9). W menu opcji wybieramy -.I Display bits -i włączamy opcje -.I ISO 8859\-1 -oraz -.IR "Full 8 bits input" . -Potem zapisujemy konfiguracjÄ™ w opcje | Save setup. -.PP -I gotowe \- polskie literki dziaÅ‚ajÄ… również w podglÄ…dzie i wbudowanym -edytorze plików. -.PP -.\"NODE "Colors" -.SH Kolory -Midnight Commander próbuje sprawdzić czy twój terminal obsÅ‚uguje -kolory używajÄ…c bazy danych terminali. Czasami jest to zmieniane -przez różne flagi startowe, np. możesz wymusić wyÅ›wietlanie czarno\-biaÅ‚e -lub kolorowe startujÄ…c z opcjÄ… odpowiednio \-b i \-c. -.PP -JeÅ›li program jest skompilowany z menedżerem ekranu S\-Lang zamiast ncurses, -sprawdzi on również wartość zmiennej -.BR COLORTERM . -JeÅ›li jest ustawiona, ma takie samo znaczenie jak opcja \-c. -.PP -Możesz wybrać terminale, które zawsze żądajÄ… wyÅ›wietlania w kolorze, -poprzez dodanie ich do pozycji -.I color_terminals -w sekcji pliku startujÄ…cego. Uchroni to Midnight Commandera przed próbami -odkrycia typu twojego terminala. Na przykÅ‚ad -.nf -[Colors] -color_terminals=linux,xterm -.fi -.nf -color_terminals=terminal\-name1,terminal\-name2... -.fi -.PP -Program może być skompilowany zarówno z bibliotekami S\-Lang jak i ncurses. -Ncurses nie obsÅ‚uguje metody wymuszania wyÅ›wietlania, zawsze sprawdza w bazie danych -terminali. -.PP -Midnight Commander umożliwia również zmianÄ™ standardowych barw ekranu. -Aktualnie kolory sÄ… skonfigurowane przy użyciu zmiennej -.B MC_COLOR_TABLE -w sekcji Colors pliku startowego. -.PP -W sekcji kolorów, standardowa mapa kolorów jest Å‚adowana ze zmiennej -.IR base_color . -Możesz wybrać swojÄ… wÅ‚asnÄ… mapÄ™ dla terminala poprzez użycie nazwy terminala -jako klucza w tej sekcji. Na przykÅ‚ad: -.PP -.nf -[Colors] -base_color= -xterm=menu=magenta:marked=,magenta:markselect=,red -.fi -.PP -Format definicji kolorów jest nastÄ™pujÄ…cy: -.PP -.nf - =,:= ... -.fi -.PP -Kolory sÄ… opcjonalne, a sÅ‚owa kluczowe sÄ… nastÄ™pujÄ…ce: normal, selected, -marked, markselect, errors, input, reverse menunormal, menusel, menuhot, menuhotsel, -menuinactive, gauge; kolory okien dialogowych: dnormal, dfocus, dhotnormal, -dhotfocus; Kolory pomocy: helpnormal, helpitalic, helpbold, helplink, -helpslink; Kolory podglÄ…du: viewunderline; Specjalne tryby podÅ›wietlenia: -executable, directory, link, device, special. Viewer colors are: viewnormal, -viewbold, viewunderline, viewselected. Editor colors are: editnormal, editbold, -editmarked, editwhitespace, editnonprintable, editlinestate. Popup menu colors -are: pmenunormal, pmenusel, pmenutitle. -[nie tÅ‚umaczyÅ‚em nazw z racji tego, że trzeba je stosować w ich angielskim -brzmieniu \- jeÅ›li jesteÅ› aż tak zaawansowany, użyj sÅ‚ownika]. -.PP -Okna dialogowe mogÄ… mieć nastÄ™pujÄ…ce kolory: -.I dnormal -używany do normalnego tekstu, -.I dfocus -jest kolorem używanym do wyÅ›wietlania aktualnego komponentu, -.I dhotnormal -jest kolorem używanym do odróżnienia klawiszy w normalnych komponentach, -a -.I dhotfocus -jest używany do wyÅ›wietlania owych w aktualnie wybranym. -.PP -Menu używa tego samego schematu, ale jako nazw kolorów używa menunormal, menusel, -menuhot, menuhotsel i menuinactive. -.PP -Pomoc używa nastÄ™pujÄ…cych kolorów: -.I helpnormal -używany do normalnego tekstu, -.I helpitalic -używa tej samej czcionki, którÄ… wykorzystuje manual do wyÅ›wietlania -czcionki typu italic, -.I helpbold -tak samo jak wyżej tylko czcionki sÄ… typu bold, -.I helplink -używane dla niewybranych jeszcze dowiÄ…zaÅ„ i -.I helpslink -używane dla już wybranych. -.PP -.I gauge -pokazuje kolor wypeÅ‚nienia pokazywany przy wskaźniku postÄ™pu [ang. gauge], -ukazujÄ…cym ile procent pliku zostaÅ‚o przekopiowane itp. w graficzny sposób. -.PP -Dla trybu wysokiego podÅ›wietlania -.I directory -jest używane jako kolor do wyÅ›wietlania katalogów; -.I executable -dla plików wykonywalnych; -.I link -do wyÅ›wietlania dowiÄ…zaÅ„; -.I device -do wyÅ›wietlania plików urzÄ…dzeÅ„ (devices); -.I special -dla plików specjalnych, takich jak gniazda FIFO i IPC; -.I core -dla wyÅ›wietlania plików typu core (zobacz również tÄ™ opcjÄ™ w sekcji Specjalne -ustawienia). -.PP -Możliwe kolory to: black, gray, red, brightred, green, -brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta, -cyan, brightcyan, lightgray and white. [sorry, że ich nazw nie tÅ‚umaczyÅ‚em, -ale używać ich trzeba w oryginalnym brzmieniu :))]. -.PP -.\"NODE "Special Settings" -.SH "Specjalne ustawienia" -WiÄ™kszość ustawieÅ„ Midnight Commandera może być zmieniana z poziomu menu. -Pomimo tego jest pewna ilość ustawieÅ„, których zmiana możliwa jest jedynie -poprzez zmianÄ™ w plikach konfiguracyjnych. -.PP -Opcje mogÄ… być ustawione w twoim pliku ~/.config/mc/ini : -.PP -.I clear_before_exec. -.IP -Standardowo Midnight Commander czyÅ›ci ekran przed wykonaniem komendy. -JeÅ›li chciaÅ‚byÅ› widzieć wyjÅ›cie komendy na dole ekranu, wyedytuj twój plik -~/mc/ini i zmieÅ„ pole clear_before_exec na 0. -.PP -.I confirm_view_dir. -.IP -JeÅ›li naciskasz F3 na katalogu, normalnie MC wchodzi do niego. JeÅ›li ta opcja -ma wartość 1, MC zapyta siÄ™ o potwierdzenie przed wejÅ›ciem do tego -katalogu, jeÅ›li masz zaznaczone jakieÅ› pliki. -.PP -.I drop_menus. -.IP -JeÅ›li ta opcja jest ustawiona, kiedy naciskasz klawisz F9, rozciÄ…gane menu -bÄ™dzie od razu rozÅ‚ożone, w przeciwnym wypadku znajdziesz siÄ™ po prostu -w najwyższym wierszu ekranu traktowanym jako menu. BÄ™dziesz musiaÅ‚ użyć strzaÅ‚ek -lub pierwszych literek, aby wybrać konkretne menu. -.PP -.I ftpfs_retry_seconds. -.IP -Wartość jest iloÅ›ciÄ… sekund, przez które Midnight Commander bÄ™dzie czekaÅ‚ -cierpliwie zanim rozpocznie łączenie siÄ™ z serwerem ftp od nowa. Dzieje -siÄ™ to wtedy kiedy serwer odmówiÅ‚ połączenia lub hasÅ‚o jest nieprawidÅ‚owe. -JeÅ›li wartość wynosi zero, nie nastÄ…pi próba ponownego połączenia z serwerem. -.PP -.I ftpfs_use_passive_connections. -.IP -Standardowo ta opcja jest wyłączona. Powoduje ona, że ftpfs otwiera połączenia -pasywne dla transmisji danych. Jest to używane przez ludzi, którzy siedzÄ… -za ruterami filtrujÄ…cymi. DziaÅ‚a to tylko wtedy, kiedy nie używasz serwera -ftp proxy. -.PP -.I max_dirt_limit. -.IP -Opisuje jak wiele odÅ›wieżeÅ„ ekranu może być maksymalnie ominiÄ™te we wbudowanym -podglÄ…dzie plików. Normalnie ta wartość jest ważna, gdyż MC automatycznie -dostosowuje liczbÄ™ odÅ›wieżeÅ„ do liczby naciÅ›niÄ™tych klawiszy. Chociaż na bardzo -wolnych komputerach lub na klawiaturach z szybkim powtarzaniem klawiszy, -duża wartość mogÅ‚aby spowodować skoki ekranu i utratÄ™ pÅ‚ynnoÅ›ci. -.IP -Wydaje siÄ™, że wartość 10 dla max_dirt_limit jest najlepszym ustawieniem -i to jest wartość standardowa tej funkcji. -.PP -.I mouse_move_pages. -.IP -Kontroluje czy przewijanie w panelu za pomocÄ… myszki odbywa siÄ™ strona po -stronie czy linijka po linjce. -.PP -.I mouse_move_pages_viewer. -.IP -Tak samo jak wyżej tylko, że we wbudowanym wewnÄ™trznym podglÄ…dzie plików. -.PP -.I navigate_with_arrows. -.IP -JeÅ›li ta opcja jest włączona, możesz używać strzaÅ‚ek do automatycznego -przemieszczanie siÄ™ pomiÄ™dzy katalogami, jeÅ›li linia poleceÅ„ jest pusta. -(dotyczy to strzeÅ‚ek w bok). -.PP -.I nice_rotating_dash -.IP -JeÅ›li jest włączony, Midnight Commander bÄ™dzie pokazywaÅ‚ w lewym górnym -rogu obracajÄ…cy siÄ™ myÅ›lnik kiedy bÄ™dzie wykonywaÅ‚ jakiÅ› proces. -.PP -.I old_esc_mode -.IP -Standardowo Midnight Commander traktuje klawisz ESC jako przedrostek -(old_esc_mode=0). JeÅ›li włączysz tÄ™ opcjÄ™ (old_esc_mode=1), to klawisz -ESC bÄ™dzie przedrostkiem dla innego klawisza, ale jeÅ›li ten nie nastÄ…pi, -bÄ™dzie on zinterpretowany jako klawisz anulowania (tak jak ESC ESC). -.PP -.PP -.I only_leading_plus_minus -.IP -zmienia znaczenia znaków '+', '\-', '*' w linii komend (wybór, odznaczenie, -odwrócenie zaznaczenia). Standardowo dziaÅ‚ajÄ… one tylko wtedy kiedy linia -poleceÅ„ jest pusta. JeÅ›li coÅ› jest w niej już napisane, znaki te sÄ… traktowane -jako normalne. Jest to przydatne gdyż najczęściej w trakcie pisania nie chcemy -zmieniać zaznaczenia. Jednak czasami ... \- wystarczy przestawić tÄ™ opcjÄ™ -i klawisze te bÄ™dÄ… zawsze dziaÅ‚ać. -.I panel_scroll_pages -.IP -JeÅ›li ustawione (standardowo), panel bÄ™dzie przewijany o poÅ‚owÄ™ za każdym -razem kiedy kursor dochodzi do dolnej lub górnej linii, w przeciwnym wypadku -przewijanie bÄ™dzie siÄ™ odbywać linia po linii. -.PP -.I show_output_starts_shell -.IP -Ta opcja pracuje jeÅ›li nie używasz obsÅ‚ugi powÅ‚oki w tle. Kiedy -użyjesz kombinacji klawiszy C\-o i ta opcja jest włączona, bÄ™dziesz -miaÅ‚ nowÄ… powÅ‚okÄ™. JeÅ›li nie, dowolny klawisz przywróci znów Midnight -Commandera (C\-o dziaÅ‚a jak podglÄ…d). -.PP -.I show_all_if_ambiguous. -.IP -Standardowo Midnight Commander pokazuje wszystkie możliwe dokoÅ„czenia -jeÅ›li jest ich wiÄ™cej i naciÅ›niÄ™to kombinacjÄ™ -.B M\-Tab -po raz drugi, za pierwszym razem dokoÅ„czone zostanie tylko tyle ile jest to -możliwe i jeÅ›li bÄ™dzie wiÄ™cej możliwoÅ›ci sÅ‚ychać bÄ™dzie krótkie bipniÄ™cie. -JeÅ›li chcesz widzieć wszystkie możliwe dokoÅ„czenia już po pierwszym naciÅ›niÄ™ciu -.BR M\-Tab , -zmieÅ„ tÄ™ opcjÄ™ na 1. -.PP -.I torben_fj_mode -.IP -JeÅ›li ta opcja jest włączona, klawisze home i end bÄ™dÄ… dziaÅ‚aÅ‚y troszkÄ™ -inaczej w panelach, zamiast przemieszczać liniÄ™ wyboru do pierwszej lub -ostatniej linii w panelu, bÄ™dÄ… dziaÅ‚aÅ‚y tak jak jest to opisane poniżej: -.IP -Klawisz home bÄ™dzie: przechodziÅ‚ do Å›rodkowej linii, jeÅ›li jest pod niÄ…; w -przeciwnym wypadku bÄ™dzie przechodziÅ‚ do najwyższej linii w panelu, jeÅ›li -już w niej jest, bÄ™dzie przechodziÅ‚ do pierwszego pliku w panelu. -.IP -Klawisz end ma podobne zastosowanie: przechodzi do Å›rodkowej linii, jeÅ›li -jest nad niÄ…; w przeciwnym wypadku przechodzi do najniższej linii w panelu, -chyba że już siÄ™ w niej znajduje, wtedy przechodzi do ostatniego pliku w -panelu. -.PP -.I highlight_mode -Standardowo wszystkie informacje w panelach sÄ… wyÅ›wietlane tym samym -kolorem. JeÅ›li ta warość jest ustawiona na 1, to -.I uprawnienia -lub -.I tryb -bÄ™dÄ… wyÅ›wietlane przy użyciu podÅ›wietlonej barwy, tak aby pokazać -ustawienia dla użytkownika. Tak wiÄ™c prawa do odczytu, zapisu i wykonywania -bÄ™dÄ… wyÅ›wietlane na żółto (tzn. kolorem -.IR selected ). -W dodatku jeÅ›li ta zmienna jest ustawiona na 2, to caÅ‚e linie sÄ… -wyÅ›wietlane w kolorze odpowiadajÄ…cym ich typowi (zobacz sekcjÄ™ Kolory). -PodÅ›wietlenie uprawnieÅ„ również pracuje w tym trybie. -.PP -.I use_file_to_guess_type -.IP -JeÅ›li ta zmienna jest ustawiona (standardowo) próbuje siÄ™ dostosować -rozszerzenie pliku do tego wybranego w pliku mc.ext.ini. -.PP -.I xtree_mode -.IP -JeÅ›li ta opcja jest włączona (standardowo tak nie jest) kiedy przeglÄ…dasz plik -w panelu drzewa, bÄ™dzie on automatycznie przeÅ‚adowywaÅ‚ drugi panel na -zawartość wybranego katalogu. -.PP -.\"NODE "Terminal databases" -.SH Baza danych terminali (Terminal databases) -Midnight Commander pozwala ci na naprawienie bazy danych terminali bez -posiadania uprawnieÅ„ roota. Midnight Commander szuka w pliku startowym -(mc.lib poÅ‚ożonego w katalogach z bibliotekami Midnight Commandera) lub w -pliku ~/.config/mc/ini sekcji "terminal:nazwa\-twojego\-terminala" i potem sekcji -"terminal:general", każda linia sekcji zawiera symbol klawisza, który -chcesz zdefiniować, zaczynajÄ…ce siÄ™ do znaku równoÅ›ci i definicji klawisza. -Możesz użyć kombinacji \\E aby reprezentować znak escape i ^x aby -reprezentować znak Control\-x. -.PP -Możliwymi klawiszami symboli sÄ…: -.PP -.nf -f0 do f20 Klawisze funkcyjne f0\-f20 -bs backspace -home klawisz home -end klawisz end -up strzaÅ‚ka w górÄ™ -down strzaÅ‚ka w dół -left strzaÅ‚ka w lewo -right strzaÅ‚ka w prawo -pgdn klawisz page down -pgup klawisz page up -insert znak insert -delete znak delete -complete do dokaÅ„czania -.fi -.PP -Na przykÅ‚ad, aby zdefiniować klawisz insert jako Escape + [ + O + p, możesz -ustawić to pliku ini: -.PP -.nf -insert=\\E[Op -.fi -.PP -Symbol klawisza -.I complete -reprezentuje sekwencjÄ™ wyjÅ›cia używanÄ… do wywoÅ‚ywania procesu dokaÅ„czania, -jest to wywoÅ‚ywane kombinacjÄ… M\-tab, ale możesz zdefiniować inne klawisze -do wykonywania tych samych funkcji (na tych klawiaturach z tonÄ… fajnych i -zupeÅ‚nie bezużytecznych klawiszy). -.PP -.SH "" -.\"NODE "FILES" -.SH PLIKI -.PP -Program bÄ™dzie pobieraÅ‚ wszystkie swoje informacje ze zmiennej -.BR MC_DATADIR , -jeÅ›li jest ona nie ustawiona to znowu przetwarzany jest katalog /usr. -.PP -%pkgdatadir%/help/mc.hlp -.IP -Plik pomocy dla programu. -.PP -%pkgdatadir%/mc.ext.ini -.IP -Standardowy plik rozszerzeÅ„ plików. -.PP -~/.config/mc/mc.ext.ini -.IP -WÅ‚asny plik użytkownika, konfiguruje podglÄ…d i edycje plików. Ma wyższy -priorytet niż plik systemowy. -.PP -%pkgdatadir%/mc.ini -.IP -Standardowy plik setupu do Midnight Commandera, używany tylko wówczas, -kiedy użytkownik nie ma swojego wÅ‚asnego pliku ~/.config/mc/ini. -.PP -%pkgdatadir%/mc.lib -.IP -Globalne ustawienia Midnight Commandera. Ustawienia w tym pliku sÄ… -uwzglÄ™dniane przez wszystkie sesje Midnight Commandera, użyteczne do -definiowania ogólnosystemowych ustawieÅ„ terminali. -.PP -~/.config/mc/ini -.IP -WÅ‚asny setup użytkownika. JeÅ›li ten plik jest dostÄ™pny, jest Å‚adowany -zamiast pliku globalnego. -.PP -%pkgdatadir%/hints/mc.hint -.IP -Plik zawierajÄ…cy podpowiedzi (hints) wyÅ›wietlane przez program. -.PP -%pkgdatadir%/mc.menu -.IP -Ten plik zawiera informacje o ogólnosystemowych aplikacjach w menu. -.PP -~/.config/mc/menu -.IP -WÅ‚asny plik menu użytkownika. JeÅ›li ten plik jest obecny jest używany -zamiast pliku globalnego. -.PP -~~/.cache/mc/tree -.IP -Lista katalogów drzewa katalogów i podglÄ…du drzewa. Jedna linia jest jednym -wejÅ›ciem. Linie zaczynajÄ…ce siÄ™ od ukoÅ›nika sÄ… peÅ‚nymi nazwami katalogów. -Linie zaczynajÄ…ce siÄ™ od numeru majÄ… tyle znaków ile poprzedni katalog. -JeÅ›li chcesz możesz stworzyć plik używajÄ…c komendy "find / \-type d -\-print | sort > ~/.cache/mc/tree". Normalnie nie ma sensu tego czynić, gdyż -Midnight Commander robi to sam za ciebie. -.PP -\&./.mc.menu -.IP -Lokalny plik zdefiniowany przez użytkownika. JeÅ›li ten plik jest dostÄ™pny, -jest używany zamiast pliku w katalogu domowym i ogólnosystemowego. -.PP -To change default home directory of MC, you can use -.BR MC_PROFILE_ROOT -environment variable. The value of MC_PROFILE_ROOT must be an absolute path. -If MC_PROFILE_ROOT is unset or empty, HOME variable is used. If HOME is unset -or empty, MC directories are get from GLib library. -.\"SKIP_SECTION" -.SH LICENCJA -Program jest dystrybuowany na zasadach licencji GNU General Public License -dopóki jako publikowany przez Free Software Foundation. Zobacz wbudowanÄ… -pomoc po wiÄ™cej szczegółów na temat licencji i braku gwarancji. -.\"NODE "AVAILABILITY" -.SH DOSTĘPNOŚĆ -Najnowsza wersja programu jest do zdobycia na serwerze ftp.nuclecu.unam.mc w -katalogu /linux/local i w Europie na serwerze sunsite.mff.cuni.cz w katalogu -/GNU/mc i na serwerze ftp.teuto.de w katalogu /lmb/mc. -.\"NODE "SEE ALSO" -.SH ZOBACZ TAKÅ»E -ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1), -tcsh(1), zsh(1). -.PP -.nf -Strona Midnight Commander w sieci World Wide Web: - https://www.midnight\-commander.org/ -.fi -.PP -.\"NODE "AUTHORS" -.SH AUTORZY -Miguel de Icaza (miguel@roxanne.nuclecu.unam.mx), Janne Kukonlehto -(jtklehto@paju.oulu.fi), Radek Doulik (rodo@ucw.cz), Fred -Leeflang (fredl@nebula.ow.org), Dugan Porter (dugan@b011.eunet.es), -Jakub Jelinek (jj@sunsite.mff.cuni.cz), Ching Hui -(mr854307@cs.nthu.edu.tw), Andrej Borsenkow (borsenkow.msk@sni.de), -Norbert Warmuth (nwarmuth@privat.circular.de), -Mauricio Plaza (mok@roxanne.nuclecu.unam.mx), Paul Sheer -(psheer@icon.co.za) and Pavel Machek (pavel@ucw.cz) are the developers -of this package; -Alessandro Rubini (rubini@ipvvis.unipv.it) has been especially helpful -debugging and enhancing the program's mouse support, John Davis -(davis@space.mit.edu) also made his S\-Lang library available to us -under the GPL and answered my questions about it, and the following -people have contributed code and many bug fixes (in alphabetical -order): -.PP -Adam Tla/lka (atlka@sunrise.pg.gda.pl), -alex@bcs.zp.ua (Alex I. Tkachenko), Antonio Palama, -DOS port (palama@posso.dm.unipi.it), Erwin van Eijk -(wabbit@corner.iaf.nl), Gerd Knorr (kraxel@cs.tu\-berlin.de), -Jean\-Daniel Luiset (luiset@cih.hcuge.ch), Jon Stevens -(root@dolphin.csudh.edu), Juan Francisco Grigera, Win32 port -(j\-grigera@usa.net), Juan Jose Ciarlante (jjciarla@raiz.uncu.edu.ar), -Ilya Rybkin (rybkin@rouge.phys.lsu.edu), Marcelo Roccasalva -(mfroccas@raiz.uncu.edu.ar), Massimo Fontanelli (MC8737@mclink.it), -Pavel Roskin (pavel_roskin@geocities.com), -Sergey Ya. Korshunoff (seyko2@gmail.com), Thomas Pundt -(pundtt@math.uni\-muenster.de), Timur Bakeyev -(timur@goff.comtat.kazan.su), Tomasz Cholewo -(tjchol01@mecca.spd.louisville.edu), Torben Fjerdingstad -(torben.fjerdingstad@uni\-c.dk), Vadim Sinolitis (vvs@nsrd.npi.msu.su) -and Wim Osterholt (wim@djo.wtm.tudelft.nl). -.PP -.\"NODE "BUGS" -.SH BÅĘDY -W pliku TODO dystrybucji znajdziesz informacje na temat tego, co -pozostaÅ‚o jeszcze do zrobienia. -.PP -JeÅ›li chcesz zgÅ‚osić kÅ‚opoty z programem [błędy w nim], -wyÅ›lij e\-mail [po angielsku], na adres -mc\-devel@lists.midnight-commander.org. -.PP -Do zgÅ‚oszenia błędu dołącz opis problemu, versjÄ™ programu, którego używasz -(wyÅ›wietla jÄ… mc \-V), system operacyjny, na którym pracujesz i jeÅ›li program -siÄ™ wykÅ‚ada, chcielibyÅ›my dostać Å›lad stosu. -.SH TÅUMACZENIE -Maciej Wojciechowski wojciech@staszic.waw.pl diff --git a/recipes/wip/files/mc/source/doc/man/ru/Makefile.am b/recipes/wip/files/mc/source/doc/man/ru/Makefile.am deleted file mode 100644 index 701328e6d9..0000000000 --- a/recipes/wip/files/mc/source/doc/man/ru/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -LANG=ru -mandir = @mandir@/$(LANG) - -EXTRA_DIST = mc.1.in - -man_MANS = mc.1 - -CLEANFILES = $(man_MANS) - -DATE_LANG=ru_RU.UTF-8 -DATE_FORMAT=%B %Y - -include ../date-of-man-include.am diff --git a/recipes/wip/files/mc/source/doc/man/ru/Makefile.in b/recipes/wip/files/mc/source/doc/man/ru/Makefile.in deleted file mode 100644 index 09df367962..0000000000 --- a/recipes/wip/files/mc/source/doc/man/ru/Makefile.in +++ /dev/null @@ -1,701 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/man/ru -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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)" -NROFF = nroff -MANS = $(man_MANS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../date-of-man-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@/$(LANG) -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -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@ -LANG = ru -EXTRA_DIST = mc.1.in -man_MANS = mc.1 -CLEANFILES = $(man_MANS) -DATE_LANG = ru_RU.UTF-8 -DATE_FORMAT = %B %Y -SED_PARAMETERS = \ - -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \ - -e "s/%MAN_VERSION%/@MAN_VERSION@/g" \ - -e "s{%sysconfdir%{@sysconfdir@{g" \ - -e "s{%libexecdir%{@libexecdir@{g" \ - -e "s{%pkglibexecdir%{$(libexecdir)/@PACKAGE@{g" \ - -e "s{%pkgdatadir%{$(datadir)/@PACKAGE@{g" - -MAN_DATE_CMD = \ - LC_ALL=$(DATE_LANG) @PERL_FOR_BUILD@ -CS -MPOSIX -e '\ - @fi=lstat("'$${MAN_FILE}'"); \ - print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../date-of-man-include.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) --gnu doc/man/ru/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/man/ru/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../date-of-man-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -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) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(MANS) -installdirs: - for dir in "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man1 - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-man \ - uninstall-man1 - -.PRECIOUS: Makefile - - -mc.1: $(srcdir)/mc.1.in - MAN_FILE='$(srcdir)/mc.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mc.1.in' > '$@' - -mcview.1: $(srcdir)/mcview.1.in - MAN_FILE='$(srcdir)/mcview.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mcview.1.in' > '$@' - -@USE_INTERNAL_EDIT_TRUE@mcedit.1: $(srcdir)/mcedit.1.in -@USE_INTERNAL_EDIT_TRUE@ MAN_FILE='$(srcdir)/mcedit.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_INTERNAL_EDIT_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcedit.1.in' > '$@' - -@USE_DIFF_TRUE@mcdiff.1: $(srcdir)/mcdiff.1.in -@USE_DIFF_TRUE@ MAN_FILE='$(srcdir)/mcdiff.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_DIFF_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcdiff.1.in' > '$@' - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/man/ru/mc.1.in b/recipes/wip/files/mc/source/doc/man/ru/mc.1.in deleted file mode 100644 index 0b49fcef19..0000000000 --- a/recipes/wip/files/mc/source/doc/man/ru/mc.1.in +++ /dev/null @@ -1,4932 +0,0 @@ -.\" -*- mode: troff; coding: UTF-8 -*- -.\"TOPICS "Разделы помощи:" -.\" TODO: ПеревеÑти раздел EXTernal File System -.TH MC 1 "%DATE_OF_MAN_PAGE%" "MC Version %MAN_VERSION%" "GNU Midnight Commander" -.\"SKIP_SECTION" -.SH "ÐÐИМЕÐОВÐÐИЕ" -mc \- Ð’Ð¸Ð·ÑƒÐ°Ð»ÑŒÐ½Ð°Ñ Ð¾Ð±Ð¾Ð»Ð¾Ñ‡ÐºÐ° Ð´Ð»Ñ Unix\-подобных ÑиÑтем. -.\"SKIP_SECTION" -.SH "СИÐТÐКСИС" -.B mc -[\-abcCdfhPstuUVx] [\-l журнал] [каталог1 [каталог2]] [\-e [файл] ...] [\-v файл] -.\"NODE "DESCRIPTION" -.SH "ОПИСÐÐИЕ" -Что такое Midnight Commander -.PP -Midnight Commander \- Ñто программа, Ð¿Ñ€ÐµÐ´Ð½Ð°Ð·Ð½Ð°Ñ‡ÐµÐ½Ð½Ð°Ñ Ð´Ð»Ñ Ð¿Ñ€Ð¾Ñмотра -Ñодержимого каталогов и Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð¾Ñновных функций ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸ в -UNIX\-подобных операционных ÑиÑтемах. -.\"NODE "OPTIONS" -.\"DONT_SPLIT" -.SH "КЛЮЧИ" -Ключи запуÑка программы Midnight Commander -.TP -.I \-a, \-\-stickchars -Отключить иÑпользование графичеÑких Ñимволов Ð´Ð»Ñ Ñ€Ð¸ÑÐ¾Ð²Ð°Ð½Ð¸Ñ Ð»Ð¸Ð½Ð¸Ð¹. -.TP -.I \-b, \-\-nocolor -ЗапуÑк программы в черно\-белом режиме Ñкрана. -.TP -.I \-c, \-\-color -Включает цветной режим диÑплеÑ. Ð”Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð±Ð¾Ð»ÐµÐµ подробной информации -Ñмотрите раздел -.\"LINK2" -Цвета\&. -.\"Colors" -.TP -.I \-C arg, \-\-colors=arg -ИÑпользуетÑÑ Ð´Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы задать другой набор цветов в командной -Ñтроке. Формат аргумента arg опиÑан в разделе -.\"LINK2" -Цвета\&. -.\"Colors" -.TP -.I \-\-configure\-options -Выводит опции конфигурированиÑ, Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ð¼Ð¸ был Ñобран Midnight Commander. -.TP -.I \-d, \-\-nomouse -Отключает поддержку мыши. -.TP -.I \-e [файл] -ЗапуÑтить вÑтроенный редактор. ЕÑли параметр "файл" задан, Ñтот файл -будет открыт при запуÑке. Смотрите также -.BR mcedit(1) . -.TP -.I \-f, \-\-datadir -Выводит на Ñкран определённый в процеÑÑе компилÑции программы путь к -файлам программы Midnight Commander. -.TP -.I \-F, \-\-datadir\-info -Выводит на Ñкран раÑширенную информацию о путÑÑ…, иÑпользуемых при работе -программы Midnight Commander. -.TP -.I \-g, \-\-oldmouse -Принудительно уÑтанавливает режим мыши "normal tracking". Ð’ xterm\-ÑовмеÑтимых -терминалах (например, tmux/screen). -.TP -.I \-k, \-\-resetsoft -ВоÑÑтанавливает Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´, назначенных функциональным клавишам в -предуÑмотренные по умолчанию значениÑ, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ Ð±Ð°Ð·Ñƒ данных -termcap/terminfo. Этот ключ иÑпользуетÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ на терминалах HP, где -функциональные клавиши не работают. -.TP -.I \-K файл, \-\-keymap=файл -Задаёт файл клавиатурных команд Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ¾Ð¿Ñ€ÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¿Ñ€Ð¸Ð²Ñзки клавиатурных -комбинаций к дейÑтвиÑм. -.TP -.I \-l файл, \-\-ftplog=файл -Сохранить диалог Ñ FTP\-Ñервером в файл file. -.TP -.I \-\-nokeymap -Ðе загружать клавиатурные комбинации из файла, иÑпользовать определённые -в иÑходном коде. -.TP -.I \-P файл, \-\-printwd=файл -По окончании работы Midnight Commander запишет поÑледний текущий каталог -в указанный файл. Эту опцию не Ñледует иÑпользовать напрÑмую. Она -иÑпользуетÑÑ Ñпециальной функцией оболочки, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð¼ÐµÐ½Ñет текущий -каталог оболочки на поÑледний каталог, иÑпользованный Midnight -Commander. -.IP -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы Ñта Ñ„ÑƒÐ½ÐºÑ†Ð¸Ñ Ð±Ñ‹Ð»Ð° определена, иÑпользуйте файл -.B %pkglibexecdir%/mc.sh -Ð´Ð»Ñ Ð¾Ð±Ð¾Ð»Ð¾Ñ‡ÐµÐº bash и zsh, а Ð´Ð»Ñ Ð¾Ð±Ð¾Ð»Ð¾Ñ‡ÐºÐ¸ tcsh ÑоответÑтвенно файл -.B %pkglibexecdir%/mc.csh -.TP -.I \-s, \-\-slow -Включает медленный режим терминала, в котором программа выводит меньше -пÑевдографичеÑких Ñимволов (в том чиÑле в меню и Ñкранах помощи) и -отключаетÑÑ Ð²Ñ‹Ð²Ð¾Ð´ дополнительных (избыточных) Ñообщений. -.TP -.I \-S arg, \-\-skin=arg -ИÑпользуетÑÑ Ð´Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы задать другой Ñкин в командной -Ñтроке. Ð¢ÐµÑ…Ð½Ð¾Ð»Ð¾Ð³Ð¸Ñ Ñкинов опиÑана в разделе -.\"LINK2" -Внешний вид\&. -.\"Skins" -.TP -.I \-t, \-\-termcap -ИÑпользуетÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ в том Ñлучае, когда код был Ñкомпилирован Ñ S\-Lang и -terminfo: в Ñтом Ñлучае Midnight Commander иÑпользует значение -переменной -.B TERMCAP -Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ð¸ о терминале вмеÑто иÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ ÑиÑтемной базы -терминалов. -.TP -.I \-u, \-\-nosubshell -Отключает иÑпользование альтернативных оболочек shell (имеет ÑмыÑл -только в том Ñлучае, когда Midnight Commander был Ñкомпилирован Ñ -поддержкой альтернативной оболочки). -.TP -.I \-U, \-\-subshell -Делает возможным иÑпользование subshell (имеет ÑмыÑл только в том -Ñлучае, когда Midnight Commander был Ñкомпилирован Ñ Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶ÐºÐ¾Ð¹ subshell -как опции). -.TP -.I \-v file -ЗапуÑтить вÑтроенную программу проÑмотра Midnight Commander\-а Ð´Ð»Ñ -проÑмотра указанного файла. ПоÑле выхода из режима проÑмотра вы выходите -из Midnight Commander и оказываетеÑÑŒ в shell. -.TP -.I \-V, \-\-version -Отображает верÑию программы. -.TP -.I \-x, \-\-xterm -ЗапуÑкает программу в режиме xterm. ИÑпользуетÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ на терминалах, -работающих в режиме xterm (два режима работы Ñкрана и возможноÑть -формировать Ñкранирующие поÑледовательноÑти Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ мыши) (two screen -modes, and able to send mouse escape sequences). -.TP -.I \-X, \-\-no\-x11 -Ðе иÑпользовать X11 Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ ÑоÑтоÑÐ½Ð¸Ñ Ð¼Ð¾Ð´Ð¸Ñ„Ð¸ÐºÐ°Ñ‚Ð¾Ñ€Ð¾Ð² Alt, Ctrl, Shift. -.PP -ЕÑли в командной Ñтроке указаны два каталога, первый будет отображатьÑÑ -в активной панели, второй \- в другой панели. -.PP -ЕÑли указан только один каталог, он будет отображён в активной панели, -во второй панели будет отображён каталог, указанный в параметре "other_dir" -в файле panels.ini. -.PP -ЕÑли каталоги не указаны, в активной панели будет отображён текущий каталог, -а во второй панели \- каталог, указанный в параметре "other_dir" в файле panels.ini. -.\"NODE "Overview" -.SH "Главное окно программы" -Главное окно программы Midnight Commander ÑоÑтоит из трёх полей. Два -полÑ, называемые "панелÑми", идентичны по Ñтруктуре и обычно отображают -перечни файлов и подкаталогов каких\-то двух каталогов файловой -Ñтруктуры. Эти каталоги в общем Ñлучае различны, хотÑ, в чаÑтноÑти, -могут и ÑовпаÑть. ÐšÐ°Ð¶Ð´Ð°Ñ Ð¿Ð°Ð½ÐµÐ»ÑŒ ÑоÑтоит из заголовка, ÑпиÑка файлов и -информационной Ñтроки. -.PP -Третье поле Ñкрана, раÑположенное в нижней чаÑти Ñкрана, Ñодержит -командную Ñтроку текущей оболочки. Ð’ Ñтом же поле (ÑÐ°Ð¼Ð°Ñ Ð½Ð¸Ð¶Ð½ÑÑ Ñтрока -Ñкрана) ÑодержитÑÑ Ð¿Ð¾Ð´Ñказка по иÑпользованию функциональных клавиш -.BR "F1 \- F10" . -Ð¡Ð°Ð¼Ð°Ñ Ð²ÐµÑ€Ñ…Ð½ÑÑ Ñтрока Ñкрана Ñодержит Ñтроку -.\"LINK2" -горизонтального меню\&. -.\"Menu Bar" -Эта Ñтрока может не отображатьÑÑ Ð½Ð° Ñкране; в Ñтом Ñлучае доÑтуп к ней -можно получить, щёлкнув мышью по верхней рамке или нажав клавишу -.BR F9 . -.PP -Панели Midnight Commander обеÑпечивают проÑмотр одновременно двух -каталогов. Одна из панелей ÑвлÑетÑÑ Ð°ÐºÑ‚Ð¸Ð²Ð½Ð¾Ð¹ в том ÑмыÑле, что -пользователь может выполнÑть некоторые операции Ñ Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶Ð°ÐµÐ¼Ñ‹Ð¼Ð¸ в Ñтой -панели файлами и каталогами. Ð’ активной панели подÑвечено Ð¸Ð¼Ñ Ð¾Ð´Ð½Ð¾Ð³Ð¾ из -каталогов или файлов, а также выделен цветом заголовок панели в верхней -Ñтроке. Этот заголовок Ñовпадает Ñ Ð¸Ð¼ÐµÐ½ÐµÐ¼ отображаемого в данной панели -каталога, который ÑвлÑетÑÑ Ñ‚ÐµÐºÑƒÑ‰Ð¸Ð¼ каталогом той оболочки, из которой -запущена программа. Ð’Ñ‚Ð¾Ñ€Ð°Ñ Ð¿Ð°Ð½ÐµÐ»ÑŒ \- паÑÑивна. Почти вÑе операции -выполнÑÑŽÑ‚ÑÑ Ð² активной панели, то еÑть в ÑоответÑтвующем (текущем) -каталоге. Ðекоторые операции (типа ÐºÐ¾Ð¿Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸Ð»Ð¸ переноÑа файлов) по -умолчанию иÑпользуют каталог, отображаемый в паÑÑивной панели, как меÑто -Ð½Ð°Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ð¸. Более подробное опиÑание панелей дано в подразделе -.\"LINK2" -.I Панели каталогов -.\"Directory Panels" -раздела -.\"LINK2" -.I Меню левой и правой панелей -.\"Left and Right Menus" -и в разделе -.\"LINK2" -.I Меню "Файл" -.\"File Menu" -.PP -Ð’Ñ‹ можете выполнить любую команду операционной ÑиÑтемы или запуÑтить на -иÑполнение любую программу непоÑредÑтвенно из программы Midnight -Commander, проÑто набрав Ð¸Ð¼Ñ Ñтой команды (программы) в командной Ñтроке -и нажав клавишу -.BR Enter . -Прочитайте разделы -.\"LINK2" -.I ÐšÐ¾Ð¼Ð°Ð½Ð´Ð½Ð°Ñ Ñтрока оболочки -.\"Shell Command Line" -и -.\"LINK2" -.I Редактирование Ñтрок ввода -.\"Input Line Keys" -Ð´Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы узнать больше о командной Ñтроке. -.\"NODE "Mouse Support" -.SH "Поддержка мыши" -Программа Midnight Commander обеÑпечивает поддержку мыши. Это ÑвойÑтво -обеÑпечиваетÑÑ Ð½ÐµÐ·Ð°Ð²Ð¸Ñимо от того, откуда запущен терминал -.B xterm(1) -(даже еÑли xterm запущен на удалённом компьютере, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ -Ñоединение через telnet, ssh или rlogin) или еÑли вы работаете за -конÑолью Linux и запущена программа ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¼Ñ‹ÑˆÑŒÑŽ -.BR gpm . -.PP -ЕÑли вы щёлкаете мышью на имени файла в одной из панелей, файл -выбираетÑÑ (подÑветка перемещаетÑÑ Ð½Ð° Ñто имÑ); еÑли вы щёлкнете правой -кнопкой мыши, файл отмечаетÑÑ (или отметка Ñ Ñ„Ð°Ð¹Ð»Ð° ÑнимаетÑÑ, в -завиÑимоÑти от предыдущего ÑоÑтоÑниÑ). -.PP -Двойной щелчок мыши на имени файла означает попытку запуÑтить файл на -иÑполнение (еÑли Ñто иÑполнÑÐµÐ¼Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð°); либо, еÑли -.\"LINK2" -файл раÑширений -.\"Edit Extension File" -Ñодержит программу, аÑÑоциированную Ñ Ð´Ð°Ð½Ð½Ñ‹Ð¼ раÑширением, запуÑкаетÑÑ -Ñта программа и ей передаётÑÑ Ð½Ð° обработку выбранный файл. -.PP -Точно также можно выполнить команду, аÑÑоциированную Ñ Ð»ÑŽÐ±Ð¾Ð¹ -функциональной клавишей, щёлкнув по ÑоответÑтвующей Ñкранной кнопке в -Ñамой нижней Ñтроке Ñкрана. -.PP -По умолчанию ÑкороÑть ÑмулÑции повторных нажатий на клавишу в Ñлучае её -ÑƒÐ´ÐµÑ€Ð¶Ð°Ð½Ð¸Ñ (auto repeat rate) ÑоÑтавлÑет 400 миллиÑекунд. Это значение -можно изменить путем Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð° -.I mouse_repeat_rate -в файле -.\"LINK2" -\&~/.config/mc/ini -.\"Save Setup" -.PP -ЕÑли Commander запущен Ñ Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶ÐºÐ¾Ð¹ мыши, вы можете обойти Commander и -добитьÑÑ Ñ‚Ð¾Ð³Ð¾, что мышь будет веÑти ÑÐµÐ±Ñ Ñ‚Ð°Ðº же, как она ведёт ÑÐµÐ±Ñ Ð¿Ð¾ -умолчанию (обеÑÐ¿ÐµÑ‡Ð¸Ð²Ð°Ñ Ð²Ñ‹Ñ€ÐµÐ·Ð°Ð½Ð¸Ðµ и вÑтавку текÑта), еÑли будете -удерживать клавишу -.BR Shift . -.\"NODE "Keys" -.SH "Клавиатурные команды" -Ðекоторые команды в Midnight Commander вызываютÑÑ Ñ Ð¸Ñпользованием -клавиш -.B Control -(иногда обозначаетÑÑ ÐºÐ°Ðº CTRL или CTL) и -.B Meta -(иногда обозначаетÑÑ ALT или даже Compose). Ð’ наÑтоÑщем руководÑтве -будут иÑпользоватьÑÑ Ñледующие ÑокращениÑ: -.TP -C\-<Ñимвол> означает, что нужно нажать и удерживать клавишу -.B Control -и в Ñто Ð²Ñ€ÐµÐ¼Ñ Ð½Ð°Ð¶Ð°Ñ‚ÑŒ клавишу <Ñимвол>. Так C\-f будет означать: нажмите -.B Control -и, ÑƒÐ´ÐµÑ€Ð¶Ð¸Ð²Ð°Ñ ÐµÑ‘, нажмите (коротким щелчком) клавишу f. -.TP -Alt\-<Ñимвол> означает, что надо удерживать в нажатом ÑоÑтоÑнии клавишу -.B Alt -или -.B Meta -во Ð²Ñ€ÐµÐ¼Ñ Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ Ð½Ð° клавишу <Ñимвол>. ЕÑли на клавиатуре нет клавиш -.B Alt -и -.BR Meta , -нажмите -.BR Esc , -отпуÑтите её, а потом нажмите на клавишу <Ñимвол>. -.TP -S\-<Ñимвол> означает, что нужно держать в нажатом ÑоÑтоÑнии клавишу -.B Shift -во Ð²Ñ€ÐµÐ¼Ñ Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ Ð½Ð° клавишу <Ñимвол>. -.PP -Ð’Ñе Ñтроки ввода в Midnight Commander по умолчанию поддерживают ÑÐ¾Ð³Ð»Ð°ÑˆÐµÐ½Ð¸Ñ -об иÑпользовании "горÑчих" клавиш, принÑтые в редакторе GNU Emacs. -.PP -Ð’Ñ‹ можете переопределить клавиатурные привÑзки "горÑчих" клавиш к командам, -как Ñто опиÑано в разделе -.\"LINK2" -.I переопределение клавиатурных команд -.\"Keys_redefine" -.PP -Ð’Ñе поÑледующие опиÑÐ°Ð½Ð¸Ñ ÐºÐ»Ð°Ð²Ð¸Ð°Ñ‚ÑƒÑ€Ð½Ñ‹Ñ… команд отноÑÑÑ‚ÑÑ Ðº поведению по -умолчанию. -.PP -ОпиÑÐ°Ð½Ð¸Ñ ÐºÐ»Ð°Ð²Ð¸Ð°Ñ‚ÑƒÑ€Ð½Ñ‹Ñ… команд даютÑÑ Ð² неÑкольких разделах помощи. -Ðаиболее важными ÑвлÑÑŽÑ‚ÑÑ Ñледующие разделы: -.PP -Ð’ разделе -.\"LINK2" -.I Меню "Файл" -.\"File Menu" -приведены комбинации клавиш, которые Ñлужат Ð´Ð»Ñ Ð²Ñ‹Ð·Ð¾Ð²Ð° команд, -перечиÑленных в меню "Файл". Ð’ Ñтом же разделе перечиÑлены команды, -аÑÑоциированные Ñ Ñ„ÑƒÐ½ÐºÑ†Ð¸Ð¾Ð½Ð°Ð»ÑŒÐ½Ñ‹Ð¼Ð¸ клавишами. БольшинÑтво из Ñтих команд -выполнÑÑŽÑ‚ дейÑÑ‚Ð²Ð¸Ñ Ð½Ð°Ð´ подÑвеченным файлом или группой отмеченных -файлов. -.PP -Ð’ Ñекции -.\"LINK2" -.I Панели каталогов -.\"Directory Panels" -раÑÑказано о клавишах, которые иÑпользуютÑÑ Ð´Ð»Ñ Ð²Ñ‹Ð±Ð¾Ñ€Ð° файла или группы -файлов как объектов некоторого поÑледующего дейÑÑ‚Ð²Ð¸Ñ (обычно дейÑÑ‚Ð²Ð¸Ñ Ð¸Ð· -меню "Файл"). -.PP -Ð’ разделе -.\"LINK2" -.I ÐšÐ¾Ð¼Ð°Ð½Ð´Ð½Ð°Ñ Ñтрока оболочки (Shell) -.\"Shell Command Line" -перечиÑлÑÑŽÑ‚ÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ‹ и комбинации клавиш, которые иÑпользуютÑÑ Ð´Ð»Ñ -ввода и Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´ в командной Ñтроке оболочки. Ð‘Ð¾Ð»ÑŒÑˆÐ°Ñ Ñ‡Ð°Ñть -Ñтих команд Ñлужит Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ½Ð¾Ñа имен файлов и/или имен каталогов в -командную Ñтроку (чтобы уменьшить трудоемкоÑть ввода) или Ð´Ð»Ñ Ð´Ð¾Ñтупа к -иÑтории команд. -.PP -Клавиши -.\"LINK2" -Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ñтрок ввода -.\"Input Line Keys" -иÑпользуютÑÑ ÐºÐ°Ðº при редактировании командной Ñтроки, так и других Ñтрок -ввода, поÑвлÑющихÑÑ Ð² различных запроÑах программы. - -.\"NODE " Keys_redefine" -.SH " Переопределение клавиатурных команд" -Клавиатурные команды могут быть прочитаны из внешнего файла. -Сначала Midnight Commander Ñоздаёт карту клавиатурных команд из ÑпиÑка, -определённого в иÑходном коде. Затем вÑегда загружаютÑÑ Ð´Ð²Ð° файла -.B %sysconfdir%/mc/mc.keymap -и -.BR %pkgdatadir%/mc.keymap , -поÑледовательно переопределÑÑ Ñ€Ð°Ð½ÐµÐµ загруженные команды. -ПоиÑк файла клавиатурных команд, определённого пользователем, производитÑÑ -по Ñледующему алгоритму (до первого Ð½Ð°Ñ…Ð¾Ð¶Ð´ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð°): -.IP -.br -1) параметр командной Ñтроки -.B \-K <файл> -или -.B \-\-keymap=<файл> -.br -2) Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ -.B MC_KEYMAP -.br -3) параметр -.B keymap -в Ñекции -.B [Midnight\-Commander] -конфигурационного файла. -.br -4) файл -.B ~/.config/mc/mc.keymap -.br -.PP -Параметры в трёх первых ÑлучаÑÑ… могут Ñодержать абÑолютный путь к файлу -клавиатурных команд либо проÑто название Ñхемы привÑзки (Ñ Ñ€Ð°Ñширением .keymap -либо без него). Ð’ данном Ñлучае поиÑк файла клавиатурных команд -будет проиÑходить по Ñледующим каталогам (до первого нахождениÑ): -.IP -.br -1) -.B ~/.config/mc/ -.br -2) -.B %sysconfdir%/mc/ -.br -3) -.B %pkgdatadir%/ - -.\"NODE " Miscellaneous Keys" -.SH " Разные команды" -ИмеетÑÑ Ð½ÐµÑколько дейÑтвий, аÑÑоциированных Ñ Ð½ÐµÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ð¼Ð¸ комбинациÑми -клавиш, которые не попадают ни в одну из других категорий: -.TP -.B Enter -ЕÑли в командной Ñтроке (в нижней чаÑти Ñкрана) набрано Ð¸Ð¼Ñ ÐºÐ°ÐºÐ¾Ð¹\-либо -команды, запуÑкаетÑÑ ÑоответÑÑ‚Ð²ÑƒÑŽÑ‰Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° (еÑли команды не -ÑущеÑтвует, выдаётÑÑ ÑоответÑтвующее Ñообщение). ЕÑли в командной Ñтроке -нет никакого текÑта, и еÑли на активной панели подÑвечено Ð¸Ð¼Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð°, -то Midnight Commander выполнÑет переход -.B chdir(2) -в выбранный каталог и отображает его Ñодержимое в Ñтой панели; еÑли -подÑвечен иÑполнÑемый файл, то он запуÑкаетÑÑ Ð½Ð° выполнение. Ðаконец, -еÑли раÑширение подÑвеченного в активной панели файла Ñовпадает Ñ Ð¾Ð´Ð½Ð¸Ð¼ -из раÑширений, указанных в -.\"LINK2" -файле раÑширений\&, -.\"Edit Extension File" -то выполнÑетÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð°, ÑвÑÐ·Ð°Ð½Ð½Ð°Ñ Ñ Ñтим раÑширением. -.TP -.B C\-l -ОбновлÑет вÑÑŽ информацию, отображаемую программой Midnight Commander. -.TP -.B C\-x c -ЗапуÑкает команду -.\"LINK2" -Chmod -.\"Chmod" -Ð´Ð»Ñ Ð¿Ð¾Ð´Ñвеченного файла или группы отмеченных файлов. -.TP -.B C\-x o -ЗапуÑкает команду -.\"LINK2" -Chown -.\"Chown" -Ð´Ð»Ñ Ð¿Ð¾Ð´Ñвеченного файла или группы отмеченных файлов. -.TP -.B C\-x l -ЗапуÑкает команду ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¶ÐµÑткой ÑÑылки. -.TP -.B C\-x s -ЗапуÑкает команду ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð°Ð±Ñолютной ÑимволичеÑкой ÑÑылки. -.TP -.B C\-x v -ЗапуÑкает команду ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¾Ñ‚Ð½Ð¾Ñительной ÑимволичеÑкой ÑÑылки. -Ð”Ð»Ñ Ð±Ð¾Ð»ÐµÐµ детальной информации о ÑÑылках Ñмотрите раздел -.\"LINK2" -.I Меню "Файл" -.\"File Menu" -.TP -.B C\-x i -Переводит паÑÑивную панель в режим "ИнформациÑ". -.TP -.B C\-x q -Переводит паÑÑивную панель в режим быÑтрого проÑмотра. -.TP -.B C\-x ! -ВыполнÑетÑÑ Ð¿ÑƒÐ½ÐºÑ‚ меню -.\"LINK2" -"Критерий панелизации"\&. -.\"External panelize" -.TP -.B C\-x h -Добавить Ð¸Ð¼Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð° в -.\"LINK2" -"Каталоги быÑтрого доÑтупа"\&. -.\"Hotlist" -.TP -.B Alt\-! -ВыполнÑет пункт меню "ПроÑмотр вывода команды", который опиÑан подробнее -в разделе -.\"LINK2" -"Меню "Файл"\&. -.\"File Menu" -.TP -.B Alt\-? -Вызов диалогового окна -.\"LINK2" -"ПоиÑк файла"\&. -.\"Find File" -.TP -.B Alt\-c -Вызов диалогового окна -.\"LINK2" -"БыÑÑ‚Ñ€Ð°Ñ Ñмена каталога"\&. -.\"Quick cd" -.TP -.B C\-o -ЕÑли Midnight Commander запущен в конÑоли Linux или FreeBSD, или через -xterm, вам будет показан вывод предыдущей команды. При Ñтом на -Linux\-конÑоли Midnight Commander иÑпользует вÑтроенную программу -(cons.saver) Ð´Ð»Ñ ÑÐ¾Ñ…Ñ€Ð°Ð½ÐµÐ½Ð¸Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð¸Ð¼Ð¾Ð¹ информации и демонÑтрации её на -Ñкране. -.PP -ЕÑли Midnight Commander Ñкомпилирован Ñ Ð¿Ð¾Ð´Ð´ÐµÑ€Ð¶ÐºÐ¾Ð¹ подоболочки -(subshell), вы можете в процеÑÑе Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð¿Ñ€Ð¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð¸Ð·\-под Midnight -Commander в любой момент набрать C\-o и вернутьÑÑ Ðº главному Ñкрану -Midnight Commander\-а. Ð”Ð»Ñ Ð²Ð¾Ð·Ð²Ñ€Ð°Ñ‚Ð° к вашему приложению доÑтаточно Ñнова -набрать C\-o. ЕÑли вы заÑтопорите выполнение приложениÑ, иÑпользовав Ñтот -приём, вы не Ñможете запуÑтить других программ из Midnight Commander -пока отложенное приложение не закончит работу, либо пока вы не прервете -его выполнение. -.\"NODE " Directory Panels" -.SH " Панели каталогов" -Ð’ наÑтоÑщем разделе перечиÑлÑÑŽÑ‚ÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ‹, которые позволÑÑŽÑ‚ оперировать -Ñ Ñодержимым панелей. ЕÑли вы хотите узнать, как изменить вид панели или -ÑпоÑоб предÑÑ‚Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ð¸ на панели, Ñмотрите раздел -.\"LINK2" -Меню левой и правой панелей\&. -.\"Left and Right Menus" -.TP -.B Tab, C\-i -Сменить текущую (активную) панель. ПодÑветка перемещаетÑÑ Ñ Ð¿Ð°Ð½ÐµÐ»Ð¸, -ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð±Ñ‹Ð»Ð° активной ранее, в другую панель, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ ÑтановитÑÑ -активной. -.TP -.B Insert, C\-t -Чтобы отметить файл, на который указывает в данный момент подÑветка, -иÑпользуйте клавишу -.B Insert -(the kich1 terminfo sequence). Ð”Ð»Ñ ÑнÑÑ‚Ð¸Ñ Ð¾Ñ‚Ð¼ÐµÑ‚ÐºÐ¸ Ñ Ñ„Ð°Ð¹Ð»Ð° иÑпользуютÑÑ -те же комбинации. -.TP -.B Alt\-e -Чтобы поменÑть кодировку панели, иÑпользуйте комбинацию Alt\-e (M\-e). -Перекодировка производитÑÑ Ð¸Ð· выбранной кодировки в ÑиÑтемную. Ð”Ð»Ñ Ð¾Ñ‚Ð¼ÐµÐ½Ñ‹ -перекодировки выберите "Без перекодировки" в диалоге выбора кодировок. -.TP -.B Alt\-g, Alt\-r, Alt\-j -ИÑпользуютÑÑ Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð´Ñветки, ÑоответÑтвенно, на Ñамый -верхний, Ñредний или нижний файл из чиÑла отображаемых в данный момент -на панели. -.TP -.B Alt\-t -ЦикличеÑки переключает режимы Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ ÑпиÑка файлов текущего -каталога. С помощью Ñтой комбинации клавиш можно быÑтро переключатьÑÑ Ð¸Ð· -режима Ñтандартного вывода (long listing) к Ñокращенному или к режиму, -определÑемому пользователем. -.TP -.B C\-\\\\ (control\-backslash) -Показать -.\"LINK2" -"Каталоги быÑтрого доÑтупа" -.\"Hotlist" -и перейти к выбранному каталогу. -.TP -.B + (plus) -Эта клавиша иÑпользуетÑÑ Ð´Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы выбрать (отметить) группу -файлов по регулÑрному выражению, задающему Ñту группу. Когда включена -Ð¾Ð¿Ñ†Ð¸Ñ -.IR "Только файлы" , -то выделены будут только файлы. ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -.IR "Только файлы" , -выключена, то выделены будут как файлы, так и каталоги. ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.IR "Образцы в Ñтиле shell" , -регулÑрные выражение ÑтроÑÑ‚ÑÑ Ð¿Ð¾ тем же правилам, которые дейÑтвуют в -оболочке shell ('*' означает ноль или большее чиÑло любых Ñимволов, а '?' -заменÑет один произвольный Ñимвол). ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -.I "Образцы в Ñтиле shell" -выключена, то пометка файлов производитÑÑ Ð¿Ð¾ правилам обработки -нормальных регулÑрных выражений (Ñмотрите ed (1)). ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.I "С учётом региÑтра" -то пометка файлов и каталогов будет производитьÑÑ Ñ ÑƒÑ‡Ñ‘Ñ‚Ð¾Ð¼ региÑтра Ñимволов имён. -ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -.I "С учётом региÑтра" -выключена, то региÑтр Ñимволов учитыватьÑÑ Ð½Ðµ будет. -.PP -.B \\\\ (backslash) -Клавиша "\\" Ñнимает отметку Ñ Ð³Ñ€ÑƒÐ¿Ð¿Ñ‹ файлов, то еÑть производит -дейÑтвие, обратное тому, которое вызываетÑÑ Ð¿Ð¾ клавише "+". -.TP -.B Up, C\-p -Перемещает подÑветку на предыдущую позицию в ÑпиÑке файлов панели. -.TP -.B Down, C\-n -Перемещает подÑветку на Ñледующую позицию в ÑпиÑке файлов панели. -.TP -.B Home, a1, Alt\-< -Перемещает подÑветку на первую позицию ÑпиÑка файлов. -.TP -.B End, c1, Alt\-> -Перемещает подÑветку на поÑледнюю позицию ÑпиÑка файлов. -.TP -.B PageDown, C\-v -Перемещает подÑветку на одну Ñтраницу вниз. -.TP -.B PageUp, Alt\-v -Перемещает подÑветку на одну Ñтраницу вверх. -.TP -.B Alt\-o -ЕÑли выделенным Ñлементом активной панели ÑвлÑетÑÑ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³, уÑтановить -Ñтот каталог текущим в неактивной панели и перейти к Ñледующему файлу. -ЕÑли выделенным Ñлементом активной панели ÑвлÑетÑÑ Ð½Ðµ каталог, уÑтановить -родительÑкий каталог текущим в неактивной панели и также перейти к Ñледующему -файлу. -.TP -.B Alt\-i -Сделать текущий каталог активной панели также текущим каталогом -неактивной панели. ЕÑли необходимо, перевеÑти неактивную панель в режим -Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ ÑпиÑка файлов. ЕÑли Ð°ÐºÑ‚Ð¸Ð²Ð½Ð°Ñ Ð¿Ð°Ð½ÐµÐ»ÑŒ находитÑÑ Ð² режиме -панелизации, Ð½ÐµÐ°ÐºÑ‚Ð¸Ð²Ð½Ð°Ñ Ð¿Ð°Ð½ÐµÐ»ÑŒ в Ñтот режим не переводитÑÑ. -.TP -.B C\-PageUp, C\-PageDown -Только еÑли mc запущен Ñ ÐºÐ¾Ð½Ñоли Linux: выполнÑетÑÑ, ÑоответÑтвенно, -переход (chdir) к родительÑкому каталогу ("..") или к выделенному -подÑветкой каталогу. -.TP -.B Alt\-y -Перемещение к предыдущему каталогу из иÑтории Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¿Ð¾ каталогам; -Ñквивалентно нажатию мышкой на Ñимвол '<' в верхнем углу панели. -.TP -.B Alt\-u -Перемещение к Ñледующему каталогу из иÑтории Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¿Ð¾ каталогам; -Ñквивалентно нажатию мышкой на Ñимвол '>'. -.TP -.B Alt\-S\-h, Alt\-H -Отображает иÑторию Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¿Ð¾ каталогам; Ñквивалентно нажатию мышкой -на Ñимвол 'v' в верхнем углу панели. -.\"NODE " Quick search" -.SH "БыÑтрый поиÑк" -Режим быÑтрого поиÑка позволÑет быÑтро найти нужный файл в каталоге, -отображённом в файловой панели, по первым Ñимволам имени. -Ð”Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° в режим быÑтрого поиÑка иÑпользуютÑÑ ÐºÐ»Ð°Ð²Ð¸Ð°Ñ‚ÑƒÑ€Ð½Ñ‹Ðµ ÑÐ¾Ñ‡ÐµÑ‚Ð°Ð½Ð¸Ñ -.B C\-s -или -.B Alt\-s -.P -ПоÑле Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ Ð¾Ð´Ð½Ð¾Ð¹ из Ñтих комбинаций вводимые Ñимволы отображаютÑÑ Ð½Ðµ -в командной Ñтроке, а в Ñтроке поиÑка. ЕÑли режим -.I "Показ мини\-ÑтатуÑа" -включен, Ñта Ñтрока отображаетÑÑ Ð½Ð° меÑте Ñтроки мини\-ÑтатуÑа. Ð’ -процеÑÑе ввода поÑледующих Ñимволов Ð»Ð¸Ð½Ð¸Ñ Ð¿Ð¾Ð´Ñветки перемещаетÑÑ Ðº -Ñледующему файлу, название которого начинаетÑÑ Ñ Ð²Ð²ÐµÐ´Ñ‘Ð½Ð½Ð¾Ð¹ Ñтроки -Ñимволов. Клавиши -.B Backspace -или -.B DEL -могут иÑпользоватьÑÑ Ð´Ð»Ñ Ð¸ÑÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¾ÑˆÐ¸Ð±Ð¾Ðº. ЕÑли -.B C\-s -нажато Ñнова, оÑущеÑтвлÑетÑÑ Ð¿Ð¾Ð¸Ñк Ñледующего подходÑщего файла. -.P -ЕÑли переход в режим быÑтрого поиÑка оÑущеÑтвлÑетÑÑ Ð´Ð²Ð¾Ð¹Ð½Ñ‹Ð¼ нажатием -.BR C\-s , -то в текущем поиÑке будет иÑпользоватьÑÑ ÑˆÐ°Ð±Ð»Ð¾Ð½ предыдущего поиÑка. -.P -Кроме обычных Ñимволов в имени файла также можно иÑпользовать -Ñимволы маÑки '*' и '?'. -.P -.\"NODE " Shell Command Line" -.SH " ÐšÐ¾Ð¼Ð°Ð½Ð´Ð½Ð°Ñ Ñтрока оболочки" -Ð’ Ñтом разделе перечиÑлены команды, которые позволÑÑŽÑ‚ Ñократить чиÑло -нажатий на клавиши во Ð²Ñ€ÐµÐ¼Ñ Ð²Ð²Ð¾Ð´Ð° и Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´ в командной -Ñтроке. -.TP -.B Alt\-Enter -Копирует подÑвеченное Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° или каталога в командную Ñтроку. -.TP -.B C\-Enter -То же Ñамое, что Alt\-Enter, но работает только на конÑоли Linux. -.TP -.B Alt\-Tab -ПытаетÑÑ Ð²Ñ‹Ð¿Ð¾Ð»Ð½Ð¸Ñ‚ÑŒ операцию -.\"LINK2" -Завершение ввода (completion) -.\"Completion" -имени файла, Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ‹, переменной, имени Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð¸Ð»Ð¸ имени -машины (в завиÑимоÑти от того, что вы начали набирать и какой Ñлемент -команды вводите). -.TP -.B C\-x t, C\-x C\-t -Копирует в командную Ñтроку имена помеченных файлов (или подÑвеченное -имÑ, еÑли нет помеченных) из активной панели (C\-x t) или паÑÑивной -панели (C\-x C\-t). -.TP -.B C\-x p, C\-x C\-p -ÐŸÐµÑ€Ð²Ð°Ñ ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ ÐºÐ»Ð°Ð²Ð¸Ñˆ копирует в командную Ñтроку Ð¸Ð¼Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ³Ð¾ -каталога, а Ð²Ñ‚Ð¾Ñ€Ð°Ñ \- Ð¸Ð¼Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð°, отображаемого в паÑÑивной панели. -.TP -.B C\-q -Эта команда (the quote command) иÑпользуетÑÑ Ð´Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы вÑтавить -Ñимволы, которые каким\-то образом интерпретируютÑÑ Ñамим Midnight -Commander\-ом (например, Ñимвол '+'). -.TP -.B Alt\-p, Alt\-n -Эти комбинации иÑпользуютÑÑ Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¿Ð¾ иÑтории команд. Alt\-p -вызывает перемещение на команду назад по ÑпиÑку ранее запуÑкавшихÑÑ -команд, а Alt\-n \- перемещение на одну команду вперёд. -.TP -.B Alt\-h -Выводит иÑторию текущей Ñтроки ввода (Ð´Ð»Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð¾Ð¹ Ñтроки \- иÑторию -команд). -.\"NODE " General Movement Keys" -.SH " Клавиши ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸ÐµÐ¼" -Ð’ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° проÑмотра файлов, программа проÑмотра подÑказки и -программа проÑмотра каталогов иÑпользуют один и тот же программный код -Ð´Ð»Ñ ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸ÐµÐ¼. Следовательно, Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¸ÑпользуютÑÑ -одни и те же комбинации клавиш. Ðо в каждой подпрограмме имеютÑÑ Ð¸ -комбинации, применÑющиеÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ в ней. -.PP -Другие чаÑти Midnight Commander\-а тоже иÑпользуют некоторые из -комбинаций клавиш ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸ÐµÐ¼, так что наÑтоÑÑ‰Ð°Ñ ÑÐµÐºÑ†Ð¸Ñ -руководÑтва может быть также полезна при изучении Ñтих чаÑтей. -.TP -.B Up, C\-p -Перемещение на одну Ñтроку назад или вверх -.TP -.B Down, C\-n -Перемещение на одну Ñтроку вперёд -.TP -.B PageUp, Alt\-v -Перемещение на одну Ñтраницу назад -.TP -.B PageDown, C\-v -Перемещение на одну Ñтраницу вперёд -.TP -.B Home, A1 -Перемещение к началу. -.TP -.B End, C1 -Перемещение к концу. -.TP -Программы проÑмотра файлов и помощи воÑпринимают в дополнение к -перечиÑленным ещё и Ñледующие комбинации: -.TP -.B b, C\-b, C\-h, Backspace, Delete -Перемещение на одну Ñтраницу назад -.TP -.B Space bar -Перемещение на одну Ñтраницу вперёд -.TP -.B u, d -Перемещение на половину Ñтраницы назад или вперёд. -.TP -.B g, G -Перемещение к началу или к концу файла. -.\"NODE " Input Line Keys" -.SH " Редактирование Ñтрок ввода" -Строки ввода (Ñто не только -.\"LINK2" -ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð°Ñ Ñтрока -.\"Shell Command Line" -оболочки, но и Ñтроки в диалоговых окнах различных подпрограмм) -воÑпринимают Ñледующие управлÑющие комбинации: -.TP -.B C\-a -Перемещает курÑор в началу Ñтроки. -.TP -.B C\-e -Перемещает курÑор в конец Ñтроки. -.TP -.B C\-b, Left -Перемещает курÑор на одну позицию влево. -.TP -.B C\-f, Right -Перемещает курÑор на одну позицию вправо. -.TP -.B Alt\-f -Перемещает курÑор на одно Ñлово вперёд. -.TP -.B Alt\-b -Перемещает курÑор на одно Ñлово назад. -.TP -.B C\-h, Backspace -УдалÑет Ñимвол, предшеÑтвующий курÑору. -.TP -.B C\-d, Delete -УдалÑет Ñимвол в позиции курÑора. -.TP -.B C\-@ -УÑтанавливает метку Ð´Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы вырезать (Ñкопировать в буфер) чаÑть -текÑта. -.TP -.B C\-w -Копирует текÑÑ‚, раÑположенный между курÑором и меткой, в буфер, удалÑÑ -текÑÑ‚ из Ñтроки ввода. -.TP -.B Alt\-w -Копирует текÑÑ‚, раÑположенный между курÑором и меткой, -в буфер. -.TP -.B C\-y -Ð’ÑтавлÑет Ñодержимое буфера в Ñтроку ввода перед позицией курÑора. -.TP -.B C\-k -УдалÑет текÑÑ‚ от курÑора до конца Ñтроки. -.TP -.B Alt\-p, Alt\-n -Эти комбинации иÑпользуютÑÑ Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¿Ð¾ иÑтории команд. Alt\-p -перемещает к предыдущей команде, Alt\-n \- к Ñледующей. -.TP -.B Alt\-C\-h, Alt\-Backspace -Удалить предшеÑтвующее Ñлово. -.TP -.B Alt\-Tab -ПытаетÑÑ Ð²Ñ‹Ð¿Ð¾Ð»Ð½Ð¸Ñ‚ÑŒ -.\"LINK2" -завершение ввода (completion) -.\"Completion" -имени файла, команды, переменной, имени Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð¸Ð»Ð¸ имени машины. -.\"NODE "Menu Bar" -.SH "Главное меню программы Midnight Commander" -Строка главного меню поÑвлÑетÑÑ Ð² верхней чаÑти Ñкрана поÑле Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ -клавиши -.B F9 -или щелчка мыши по верхней рамке Ñкрана. Меню ÑоÑтоит из пÑти пунктов: -"ЛеваÑ", "Файл", Команды", ÐаÑтройки" и "ПраваÑ". При выборе одного -из Ñтих пунктов поÑвлÑетÑÑ ÑоответÑтвующее выпадающее меню. -.PP -Пункты меню -.\"LINK2" -"ЛеваÑ" и "ÐŸÑ€Ð°Ð²Ð°Ñ " ("ВерхнÑÑ" и "ÐижнÑÑ") -.\"Left and Right Menus" -позволÑÑŽÑ‚ изменить вид, ÑоответÑтвенно, левой и правой (или верней и нижней) -панелей и характер отображаемой в панели информации, в чаÑтноÑти, выполнить -ÑÐ¾ÐµÐ´Ð¸Ð½ÐµÐ½Ð¸Ñ Ñ ÑƒÐ´Ð°Ð»Ñ‘Ð½Ð½Ñ‹Ð¼Ð¸ компьютерами. -.PP -Меню -.\"LINK2" -"Файл" -.\"File Menu" -позволÑет выполнить какие\-то дейÑÑ‚Ð²Ð¸Ñ Ñ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ñ‹Ð¼ файлом или группой -помеченных файлов. -.PP -Меню -.\"LINK2" -"Команды" -.\"Command Menu" -перечиÑлÑет дейÑтвиÑ, которые имеют более общий характер и не отноÑÑÑ‚ÑÑ -только к выделенному в данный момент файлу или группе помеченных файлов. -.PP -Меню -.\"LINK2" -"ÐаÑтройки" -.\"Options Menu" -Ñлужит Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ñ€Ñда параметров, определÑющих внешний вид и поведение -программы Midnight Commander. Один из пунктов Ñтого меню Ñлужит Ð´Ð»Ñ -ÑÐ¾Ñ…Ñ€Ð°Ð½ÐµÐ½Ð¸Ñ Ð½Ð°Ñтроек, заданных пользователем. -.\"NODE " Left and Right Menus" -.SH " Меню левой и правой (или верхней и нижней) панелей" -Вид панелей, в которых отображаютÑÑ ÑпиÑки файлов и каталогов, может -быть изменен через пункты меню -.B "ЛеваÑ" (или "ВерхнÑÑ") -и -.B "ПраваÑ" (или "ÐижнÑÑ"). -.\"NODE " Listing Format..." -.SH " Формат ÑпиÑка..." -Этот пункт меню предназначен Ð´Ð»Ñ Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ñ„Ð¾Ñ€Ð¼Ð°Ñ‚Ð° вывода ÑпиÑка -файлов в панели. Ð’Ñ‹ можете выбрать один из 4 вариантов предÑÑ‚Ð°Ð²Ð»ÐµÐ½Ð¸Ñ -ÑпиÑка файлов: -.BR "Стандартный" , -.BR "Укороченный" , -.B РаÑширенный -и -.BR "ОпределÑемый пользователем" . -.PP -Ð’ Ñтандартном формате отображаютÑÑ Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð°, его размер и Ð²Ñ€ÐµÐ¼Ñ -поÑледней модификации. -.PP -Ð’ укороченном (brief) формате отображаютÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ имена файлов, -раÑположенные в неÑколько колонок (от 1 до 9), за Ñчет чего на панели -видно в неÑколько раз больше имен. -.PP -Ð’ раÑширенном (long) формате Ñодержимое каталога предÑтавлÑетÑÑ Ñ‚Ð°Ðº, как -Ñто делает команда -.BR "ls \-l" . -Ð’ Ñтом формате панель занимает веÑÑŒ Ñкран. -.PP -ЕÑли вы выберете формат "ОпределÑемый пользователем" ("User"), вы должны -будете задать Ñтруктуру отображаемой информации. -.PP -При задании Ñтруктуры вначале указываетÑÑ Ñ€Ð°Ð·Ð¼ÐµÑ€ панели: "half" -(половина Ñкрана) или "full" (веÑÑŒ Ñкран). -.PP -ПоÑле размера панели можно указать, что на панели должно быть две -колонки. Это делаетÑÑ Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸ÐµÐ¼ цифры 2 в Ñтроку Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ñ„Ð¾Ñ€Ð¼Ð°Ñ‚Ð°. -.PP -Далее надо перечиÑлить имена полей Ñ Ð½ÐµÐ¾Ð±Ñзательным параметром ширины -полÑ. Ð’ качеÑтве имен полей могут иÑпользоватьÑÑ: -.TP -.B name -отображать Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð°. -.TP -.B size -отображать размер файла. -.TP -.B bsize -отображать размер в альтернативной форме, при которой выводÑÑ‚ÑÑ Ñ€Ð°Ð·Ð¼ÐµÑ€Ñ‹ -файлов, а Ð´Ð»Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð¾Ð² выводитÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ надпиÑÑŒ "ПОД\-КÐТ" ("SUB\-DIR") -или "ВВЕРХ" ("UP\-\-DIR"). -.TP -.B type -отображать одноÑимвольное поле типа. Этот Ñимвол может принимать -Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð¸Ð· подмножеÑтва Ñимволов, выводимых командой -.BR "ls \-F" : -.B * -(asterisk) Ð´Ð»Ñ Ð¸ÑполнÑемых файлов, -.B / -(slash) Ð´Ð»Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð¾Ð², -.B @ -(at\-sign) Ð´Ð»Ñ ÑÑылок (links), -.B = -(знак равенÑтва) Ð´Ð»Ñ Ñокетов (sockets), -.B \- -Ð´ÐµÑ„Ð¸Ñ (hyphen) Ð´Ð»Ñ Ð±Ð°Ð¹Ñ‚\-ориентированных уÑтройÑтв, -.B + -Ð´Ð»Ñ Ð±Ð»Ð¾Ðº\-ориентированных уÑтройÑтв, -.B | -(pipe) Ð´Ð»Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð² типа FIFO, -.B ~ -(тильда) Ð´Ð»Ñ ÑимволичеÑких ÑÑылок на каталоги, -.B ! -(воÑклицательный знак) Ð´Ð»Ñ Ð¾Ð±Ð¾Ñ€Ð²Ð°Ð½Ð½Ñ‹Ñ… (stale) ÑимволичеÑких ÑÑылок -(ÑÑылок, указывающих в никуда). -.TP -.B mark -Звёздочка (asterisk) еÑли файл помечен, пробел \- еÑли не помечен. -.TP -.B mtime -Ð²Ñ€ÐµÐ¼Ñ Ð¿Ð¾Ñледней модификации файла. -.TP -.B atime -Ð²Ñ€ÐµÐ¼Ñ Ð¿Ð¾Ñледнего доÑтупа к файлу. -.TP -.B ctime -Ð²Ñ€ÐµÐ¼Ñ Ð¿Ð¾Ñледнего Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð°. -.TP -.B perm -Ñтрока, Ð¿Ð¾ÐºÐ°Ð·Ñ‹Ð²Ð°ÑŽÑ‰Ð°Ñ Ñ‚ÐµÐºÑƒÑ‰Ð¸Ðµ права доÑтупа к файлу. -.TP -.B mode -воÑьмеричное предÑтавление текущих прав доÑтупа к файлу. -.TP -.B nlink -чиÑло ÑÑылок на данный файл. -.TP -.B ngid -идентификатор группы (GID, в цифровой форме). -.TP -.B nuid -идентификатор Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ (UID, в цифровой форме). -.TP -.B owner -владелец файла. -.TP -.B group -группа, Ð¸Ð¼ÐµÑŽÑ‰Ð°Ñ Ð¿Ñ€Ð°Ð²Ð° на файл. -.TP -.B inode -номер inode файла. -.PP -Ð’Ñ‹ также можете иÑпользовать Ñледующие имена полей Ð´Ð»Ñ Ð¾Ñ€Ð³Ð°Ð½Ð¸Ð·Ð°Ñ†Ð¸Ð¸ -вывода информации на диÑплей: -.TP -.B space -Ð’Ñтавить пробел при выводе на диÑплей. -.TP -.B | -Ð’Ñтавить вертикальную линию при выводе на диÑплей. -.PP -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы задать фикÑированную ширину полÑ, нужно добавить -двоеточие ':', поÑле которого указать чиÑло позиций, которое отводитÑÑ -под Ñто поле. ЕÑли поÑле чиÑла поÑтавить Ñимвол '+', то указанное чиÑло -будет интерпретироватьÑÑ ÐºÐ°Ðº Ð¼Ð¸Ð½Ð¸Ð¼Ð°Ð»ÑŒÐ½Ð°Ñ ÑˆÐ¸Ñ€Ð¸Ð½Ð° полÑ, и, еÑли Ñкран -позволÑет, поле будет раÑширено. -.PP -Ðапример, -.B Стандартный -формат вывода задаётÑÑ Ñтрокой: -.PP -half type name | size | mtime -.PP -а -.B РаÑширенный -\- Ñтрокой: -.PP -full perm space nlink space owner space group space size space mtime -space name -.PP -Рвот пример удобного формата, определÑемого пользователем: -.PP -half name | size:7 | type mode:3 -.PP -Помимо того, что может задаватьÑÑ Ñ„Ð¾Ñ€Ð¼Ð°Ñ‚ вывода на панель ÑпиÑка файлов, -любую панель можно перевеÑти в один из Ñледующих режимов: -.TP -.B Ð˜Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ -Ð’ Ñтом режиме на панель выводитÑÑ Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð¾ подÑвеченном в другой -панели файле и о текущей файловой ÑиÑтеме (тип, Ñвободное проÑтранÑтво и -чиÑло Ñвободных inode). -.TP -.B Дерево -Режим Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð´ÐµÑ€ÐµÐ²Ð° каталогов подобен тому, который вы увидите, -выбрав пункт -.\"LINK2" -Дерево каталогов -.\"Directory Tree" -из меню "Команды" ("Commands"). Смотрите ÑоответÑтвующий раздел. -.TP -.B БыÑтрый проÑмотр -Ð’ Ñтом режиме панель переключаетÑÑ Ð½Ð° отображение Ñодержимого файла, -подÑвеченного в другой панели. Ð”Ð»Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð° иÑпользуетÑÑ Ð²ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ -.\"LINK2" -программа проÑмотра файлов\&, -.\"Internal File Viewer" -так что, еÑли переключитьÑÑ ÐºÐ»Ð°Ð²Ð¸ÑˆÐµÐ¹ -.B Tab -в панель проÑмотра, вы Ñможете иÑпользовать вÑе команды ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿Ñ€Ð¾Ñмотром. -.\"NODE " Sort Order..." -.SH " ПорÑдок Ñортировки..." -Отображение ÑпиÑка файлов в любой из панелей может производитьÑÑ Ð² -ÑоответÑтвии Ñ Ð¾Ð´Ð½Ð¸Ð¼ из воÑьми порÑдков Ñортировки: -.nf -\- по имени; -\- по раÑширению; -\- по размеру файла; -\- по времени модификации; -\- по времени поÑледнего Ð¾Ð±Ñ€Ð°Ñ‰ÐµÐ½Ð¸Ñ Ðº файлу; -\- по времени поÑледнего Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð² файла; -\- по номеру узла (inode); -\- без Ñортировки. -.fi -.PP -ПорÑдок Ñортировки можно выбрать, вызвав диалоговое окно, в котором -кроме того можно указать, что Ñортировка производитÑÑ Ð² обратном -порÑдке (поÑтавив Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ клавиши -.B пробела -отметку в Ñкобках возле Ñлова "Обратный". -.PP -По умолчанию каталоги отображаютÑÑ Ð² начале ÑпиÑка, но Ñто можно -изменить, проÑтавив отметку возле опции -.B "Смешивать файлы и каталоги" -пункта меню -.\"LINK2" -ÐаÑтройки панелей\&. -.\"Panel options" -.\"NODE " Filter..." -.SH " Фильтр..." -Пункт меню "Фильтр" позволÑет задать шаблон, которому должны -ÑоответÑтвовать имена файлов и каталогов, отображаемых в панели -(например, -.BR "*.tar.gz" ). -.PP -Строка ввода -.\"Input Line Keys" -предназначена Ð´Ð»Ñ Ð²Ð²Ð¾Ð´Ð° регулÑрного Ð²Ñ‹Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ (маÑки) Ð´Ð»Ñ Ð²Ñ‹Ð±Ð¾Ñ€Ð° файлов. -ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.IR "Только файлы" , -то фильтроватьÑÑ Ð±ÑƒÐ´ÑƒÑ‚ только файлы, а вÑе каталоги будут отображатьÑÑ -незавиÑимо от того, ÑоответÑтвуют они фильтру или нет. Ð’ противном Ñлучае -фильтроватьÑÑ Ð±ÑƒÐ´ÑƒÑ‚ как файлы, так и каталоги. ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.IR "Образцы в Ñтиле shell" , -регулÑрные выражение ÑтроÑÑ‚ÑÑ Ð¿Ð¾ тем же правилам, которые дейÑтвуют в -оболочке shell ('*' означает ноль или большее чиÑло любых Ñимволов, а '?' -заменÑет один произвольный Ñимвол). Ð’ противном Ñлучае ÑоответÑтвие -файлов/каталогов фильтру определÑетÑÑ Ð¿Ð¾ правилам обработки нормальных -регулÑрных выражений (Ñмотрите ed(1)). ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.I "С учётом региÑтра" , -то Ñ„Ð¸Ð»ÑŒÑ‚Ñ€Ð°Ñ†Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð² и каталогов будет производитьÑÑ Ñ ÑƒÑ‡Ñ‘Ñ‚Ð¾Ð¼ региÑтра -Ñимволов имён. Ð’ противном Ñлучае региÑтр Ñимволов учитыватьÑÑ Ð½Ðµ будет. -.\"NODE " Reread" -.SH " Перечитать" -Команда "Перечитать" обновлÑет ÑпиÑок, отображаемый на панели. Это -бывает полезно в тех ÑлучаÑÑ…, когда другие процеÑÑÑ‹ Ñоздают или удалÑÑŽÑ‚ -файлы. -.\"NODE " File Menu" -.SH " Файл" -Программа Midnight Commander иÑпользует функциональные клавиши -.B F1 \- F10 -как "горÑчие" клавиши Ð´Ð»Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´, включенных в меню "Файл". -Escape\-поÑледовательноÑти, генерируемые клавишами -.BR "F1 \- F10" , -ÑоответÑтвуют функциÑм terminfo -.IR "kf1 \- kf10" . -Ðа терминалах без поддержки функциональных клавиш можно доÑтичь аналогичного -Ñффекта, нажав клавишу -.BR Esc , -а затем чиÑло в диапазоне от 1 до 9 или 0 (ÑоответÑтвует -.B F1 \- F9 -и -.BR F10 ). -.PP -Меню "Файл" Ñодержит Ñледующие команды: -.PP -.B ПроÑмотр файла -.PP -ПроÑмотреть файл, на который указывает подÑветка. По умолчанию при Ñтом -вызываетÑÑ -.\"LINK2" -вÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° проÑмотра\&, -.\"Internal File Viewer" -но, ÑнÑв отметку Ñ Ð¾Ð¿Ñ†Ð¸Ð¸ -.I "Ð’Ñтроенный проÑмотр" -в пункте "КонфигурациÑ" меню "ÐаÑтройки", можно вызывать внешнюю программу -проÑмотра, путь к которой должен быть указан в переменной Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ -.BR PAGER . -ЕÑли Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ -.B PAGER -не определена, вызываетÑÑ Ð²ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð°. ЕÑли вмеÑто F3 нажать -F13, вÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° проÑмотра не выполнÑет предварительного -Ñ„Ð¾Ñ€Ð¼Ð°Ñ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸Ð»Ð¸ обработки файла. -.P -Ð’ разделе -.\"LINK2" -Параметры Ð´Ð»Ñ Ð²Ð½ÐµÑˆÐ½Ð¸Ñ… редакторов и программ проÑмотра -.\"Parameters for external editor or viewer" -опиÑано, как можно задать параметры командной Ñтроки Ð´Ð»Ñ Ð²Ð½ÐµÑˆÐ½Ð¸Ñ… программ -проÑмотра файлов. -.PP -.B ПроÑмотр вывода команды -.PP -По Ñтой команде на Ñкране поÑвлÑетÑÑ Ñтрока ввода, в которой вы можете -ввеÑти любую команду Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð°Ð¼Ð¸ (по умолчанию предлагаетÑÑ -иÑпользовать в качеÑтве параметра Ð¸Ð¼Ñ Ð¿Ð¾Ð´Ñвеченного файла). Вывод Ñтой -команды будет отображатьÑÑ Ð½Ð° Ñкране через вÑтроенную программу -проÑмотра. -.PP -.B Правка -.PP -ВызываетÑÑ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¾Ñ€ -.BR vi , -либо редактор, указанный в переменной Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ -.BR EDITOR , -либо -.\"LINK2" -вÑтроенный редактор файлов -.\"Internal File Editor" -(еÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.I "Ð’Ñтроенный редактор" -в меню "ÐаÑтройки / КонфигурациÑ"). -.P -Ð’ разделе -.\"LINK2" -Параметры Ð´Ð»Ñ Ð²Ð½ÐµÑˆÐ½Ð¸Ñ… редакторов и программ проÑмотра -.\"Parameters for external editor or viewer" -опиÑано, как можно задать параметры командной Ñтроки Ð´Ð»Ñ Ð²Ð½ÐµÑˆÐ½Ð¸Ñ… редакторов. -.PP -.B Копирование -.PP -ВызываетÑÑ Ð´Ð¸Ð°Ð»Ð¾Ð³Ð¾Ð²Ð¾Ðµ окно, в котором предлагаетÑÑ Ñкопировать -подÑвеченный файл из каталога, отображаемого в активной панели (или -группу отмеченных файлов, еÑли в активной панели отмечен Ñ…Ð¾Ñ‚Ñ Ð±Ñ‹ один -файл) в каталог, отображаемый в паÑÑивной панели. Ð˜Ð¼Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð°, в -который будет производитьÑÑ ÐºÐ¾Ð¿Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ðµ, можно изменить. Можно -предварительно резервировать меÑто под новые файлы в каталоге назначениÑ, -выÑтавив конфигурационную опцию preallocate_space. -О том, как задать шаблон Ð´Ð»Ñ Ð¸Ð¼ÐµÐ½ копируемых файлов (обычно Ñто "*" -или "^\\(.*\\)$", в завиÑимоÑти от уÑтановки опции -.IR "Образцы в Ñтиле shell" , -и о допуÑтимых Ñимволах замены (wildcards) в Ñтроке целевого каталога -вы можете узнать, проÑмотрев раздел -.\"LINK2" -МаÑки файлов Ð´Ð»Ñ Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ð¹ копированиÑ/переименованиÑ\&. -.\"Mask Copy/Rename" -.PP -Ð’ процеÑÑе Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÐºÐ¾Ð¿Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¼Ð¾Ð¶Ð½Ð¾ нажать -.B Esc -Ð´Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы прервать выполнение операции. -.PP -Ð’ некоторых ÑиÑтемах можно оÑущеÑтвлÑть копирование в фоновом режиме, -еÑли запуÑтить процеÑÑ Ð½Ðµ кнопкой -.B [Дальше] -диалогового окна, а кнопкой -.B [Ðа фоне] -(или нажав -.B Alt\-b -в диалоговом окне). ИÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ Ð¿ÑƒÐ½ÐºÑ‚ меню -.\"LINK2" -"Команды/Фоновые заданиÑ"\&, -.\"Background Jobs" -можно управлÑть выполнением фоновых процеÑÑов. -.PP -.B Права доÑтупа -.PP -ПозволÑет изменить права доÑтупа к выделенному или помеченным файлам. -.PP -.B ЖеÑÑ‚ÐºÐ°Ñ ÑÑылка -.PP -Создаёт жеÑткую ÑÑылку на текущий файл. -.PP -.B СимволичеÑÐºÐ°Ñ ÑÑылка -.PP -Создаёт абÑолютную ÑимволичеÑкую ÑÑылку на текущий файл. -.PP -.B ОтноÑÐ¸Ñ‚ÐµÐ»ÑŒÐ½Ð°Ñ ÑимволичеÑÐºÐ°Ñ ÑÑылка -.PP -Создаёт отноÑительную ÑимволичеÑкую ÑÑылку на текущий файл. -.PP -ЕÑли вы не знаете, что такое ÑÑылки: Ñоздание ÑÑылки в некотором ÑмыÑле -подобно копированию файла, но и иÑходное Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° и ÑÑылка указывают -на один и тот же реальный файл на диÑке. ПоÑтому, еÑли вы, например, -редактируете файл, то Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð±ÑƒÐ´ÑƒÑ‚ поÑвлÑтьÑÑ Ð² обеих копиÑÑ…. Синонимами -термина "ÑÑылка" (link) ÑвлÑÑŽÑ‚ÑÑ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ñ‹ "алиаÑ" (alias) и "Ñрлык" (shortcut). -.PP -ЖеÑÑ‚ÐºÐ°Ñ ÑÑылка выглÑдит как реальный файл. ПоÑле ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¶ÐµÑткой ÑÑылки -невозможно различить, где иÑходный файл, а где ÑÑылка. ЕÑли вы удалÑете -один из Ñтих файлов (точнее одно из Ñтих имен), то файл ещё ÑохранÑетÑÑ -на диÑке (пока у него еÑть хоть одно имÑ\-ÑÑылка). Очень трудно различить -первоначальное Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° и позже Ñозданные жеÑткие ÑÑылки на него. -ПоÑтому жеÑткие ÑÑылки применÑÑŽÑ‚ÑÑ Ñ‚Ð°Ð¼, где отÑлеживать Ñ€Ð°Ð·Ð»Ð¸Ñ‡Ð¸Ñ Ð¸ не -требуетÑÑ. -.PP -СимволичеÑÐºÐ°Ñ ÑÑылка \- Ñто ÑÑылка на Ð¸Ð¼Ñ Ð¸Ñходного файла. ЕÑли иÑходный -файл удален, ÑимволичеÑÐºÐ°Ñ ÑÑылка ÑтановитÑÑ Ð±ÐµÑполезной. СимволичеÑкую -ÑÑылку легко отличить от первоначального имени файла, и программа -Midnight Commander указывает ÑимволичеÑкие ÑÑылки, Ð²Ñ‹Ð²Ð¾Ð´Ñ Ð·Ð½Ð°Ðº "@" перед -именем такой ÑÑылки (кроме ÑÑылок на каталоги, которые обозначаютÑÑ -знаком тильды '~'). ЕÑли на Ñкран выводитÑÑ Ñтрока мини\-ÑтатуÑа (Ð¾Ð¿Ñ†Ð¸Ñ -.I "Показывать мини\-ÑтатуÑ" -включена), то в ней отображаетÑÑ Ð¸Ð¼Ñ Ð¸Ñходного файла. ИÑпользуйте ÑимволичеÑкие -ÑÑылки в тех ÑлучаÑÑ…, когда хотите избежать путаницы, ÑвÑзанной Ñ Ð¿Ñ€Ð¸Ð¼ÐµÐ½ÐµÐ½Ð¸ÐµÐ¼ -жеÑтких ÑÑылок. -.PP -Когда вы нажимаете клавиатурное Ñочетание \fBC\-x s\fR, Midnight Commander -автоматичеÑки заполнÑет Ð¿Ð¾Ð»Ñ Ð´Ð¸Ð°Ð»Ð¾Ð³Ð° ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ ÑÑылки: Ð¸Ð¼Ñ ÑÑылки и Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð°, -на который будет указывать ÑÑылка. Ð’Ñ‹ можете изменить их. -.PP -Ðо иногда требуетÑÑ, чтобы ÑÑылка указывала на файл не по абÑолютному пути, -а по отноÑительному. ÐбÑолютный путь начинаетÑÑ Ñ ÐºÐ¾Ñ€Ð½ÐµÐ²Ð¾Ð³Ð¾ каталога: -.PP -.I /home/frodo/mc/mc \-> /home/frodo/new/mc -.PP -ОтноÑительный путь указывает на раÑположение файла отноÑительно меÑта, где -будет раÑполагатьÑÑ ÑÐ¾Ð·Ð´Ð°Ð²Ð°ÐµÐ¼Ð°Ñ ÑÑылка: -.PP -.I /home/frodo/mc/mc \-> ../new/mc -.PP -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы Ñоздать отноÑительную ÑимволичеÑкую ÑÑылку, иÑпользуйте -клавиатурное Ñочетание \fBC\-x v\fR вмеÑто \fBC\-x s\fR. -.PP -.B Владелец/группа -.PP -ПозволÑет выполнить команду chown. -.PP -.B Права (раÑширенные) -.PP -ПозволÑет изменить права доÑтупа и Ð²Ð»Ð°Ð´ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð¼. -.PP -.B Переименование -.PP -ВызываетÑÑ Ð´Ð¸Ð°Ð»Ð¾Ð³Ð¾Ð²Ð¾Ðµ окно, в котором предлагаетÑÑ Ð¿ÐµÑ€ÐµÐ½ÐµÑти -подÑвеченный файл из каталога, отображаемого в активной панели (или -группу отмеченных файлов, еÑли в активной панели отмечен Ñ…Ð¾Ñ‚Ñ Ð±Ñ‹ один -файл) в каталог, отображаемый в паÑÑивной панели. Ð˜Ð¼Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð°, в -который будет производитьÑÑ Ð¿ÐµÑ€ÐµÐ½Ð¾Ñ, можно изменить, воÑпользовавшиÑÑŒ -ÑоответÑтвующей Ñтрокой ввода. -.PP -Ð’ оÑтальном диалоговое окно аналогично окну, поÑвлÑющемуÑÑ Ð¿Ñ€Ð¸ вызове -команды копировании файлов (Ñмотрите выше). -.PP -.B Создание каталога -.PP -ПоÑвлÑетÑÑ Ð´Ð¸Ð°Ð»Ð¾Ð³Ð¾Ð²Ð¾Ðµ окно и ÑоздаётÑÑ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³ Ñ Ð²Ð²ÐµÐ´Ñ‘Ð½Ð½Ñ‹Ð¼ именем. -.PP -.B Удаление -.PP -УдалÑетÑÑ Ñ„Ð°Ð¹Ð», Ð¸Ð¼Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð³Ð¾ подÑвечено (или группа файлов, имена -которых помечены) в активной панели. Операцию можно прервать, нажав -.B C\-c -или -.B Esc -во Ð²Ñ€ÐµÐ¼Ñ ÐµÑ‘ иÑполнениÑ. -.PP -.B Смена каталога -.\" Quick cd" -.PP -ИÑпользуйте -.\"LINK2" -быÑтрую Ñмену каталога -.\"The cd internal command" -еÑли вы знаете полный путь к каталогу, в который хотите перейти (который -хотите Ñделать текущим). -.PP -.B Отметить группу -.PP -Эта команда иÑпользуетÑÑ Ð´Ð»Ñ Ð¾Ñ‚Ð¼ÐµÑ‚ÐºÐ¸ группы файлов по заданному шаблону. -Midnight Commander выдаÑÑ‚ диалоговое окно, в которой надо задать опции -Ð²Ñ‹Ð´ÐµÐ»ÐµÐ½Ð¸Ñ Ð³Ñ€ÑƒÐ¿Ð¿Ñ‹ файлов и каталогов. ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.IR "Только файлы" , -то выделены будут только файлы. ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -.I "Только файлы" -выключена, то выделены будут как файлы, так и каталоги. ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.IR "Образцы в Ñтиле shell" , -регулÑрные выражение ÑтроÑÑ‚ÑÑ Ð¿Ð¾ тем же правилам, которые дейÑтвуют в -оболочке shell ('*' означает ноль или большее чиÑло любых Ñимволов, а '?' -заменÑет один произвольный Ñимвол). ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -.I "Образцы в Ñтиле shell" -выключена, то пометка файлов производитÑÑ Ð¿Ð¾ правилам обработки -нормальных регулÑрных выражений (Ñмотрите ed (1)). ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.I "С учётом региÑтра" -то пометка файлов и каталогов будет производитьÑÑ Ñ ÑƒÑ‡Ñ‘Ñ‚Ð¾Ð¼ региÑтра Ñимволов имён. -ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -.I "С учётом региÑтра" -выключена, то региÑтр Ñимволов учитыватьÑÑ Ð½Ðµ будет. -.PP -.B "СнÑть отметку" -.PP -ИÑпользуетÑÑ Ð´Ð»Ñ ÑнÑÑ‚Ð¸Ñ Ð¾Ñ‚Ð¼ÐµÑ‚ÐºÐ¸ Ñ Ð³Ñ€ÑƒÐ¿Ð¿Ñ‹ файлов. Эта Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ñ ÑвлÑетÑÑ -обратной по отношению к операции отметки группы файлов и иÑпользует те -же правила Ñ„Ð¾Ñ€Ð¼Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ ÑˆÐ°Ð±Ð»Ð¾Ð½Ð¾Ð². -.PP -.B Выход -.PP -Выйти из программы Midnight Commander. S\-F10 иÑпользуетÑÑ Ð´Ð»Ñ Ð²Ñ‹Ñ…Ð¾Ð´Ð° -в тех ÑитуациÑÑ…, когда иÑпользуетÑÑ shell wrapper. ПоÑле S\-F10 -текущим каталогом будет не поÑледний каталог, в котором вы были при -работе в Midnight Commander, а тот, в котором вы были, когда запуÑтили -Midnight Commander. -.\"NODE " Quick cd" -.SH " БыÑÑ‚Ñ€Ð°Ñ Ñмена каталога" -Эта команда полезна тогда, когда вы знаете полный путь к каталогу, -который хотите Ñделать текущим, и желаете иÑпользовать вÑтроенную -команду -.\"LINK2" -cd\&. -.\"The cd internal command" -.PP -По Ñтой команде вызываетÑÑ Ð´Ð¸Ð°Ð»Ð¾Ð³Ð¾Ð²Ð¾Ðµ окно, в Ñтроке ввода которого вы -должны ввеÑти тот путь, который вы ввели бы в командной Ñтроке оболочки -при выполнении команды -.BR cd . -.PP -ПоÑле Ñтого надо нажать клавишу -.BR Enter . -.\"NODE " Command Menu" -.SH " Меню 'Команды'" -.B Меню Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ -.PP -Вызывает -.\"LINK2" -меню пользователÑ\&. -.\"Edit Menu File" -Меню Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð¿Ñ€ÐµÐ´Ð¾ÑтавлÑет проÑтой ÑпоÑоб раÑÑˆÐ¸Ñ€ÐµÐ½Ð¸Ñ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾Ñтей -Midnight Commander за Ñчет Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð² личное меню Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð²Ñ‹Ð·Ð¾Ð²Ð° -чаÑто иÑпользуемых программ. -.PP -При обращении к пункту меню -.\"LINK2" -.I "Дерево каталогов" -.\"Directory Tree" -выводитÑÑ Ð¾ÐºÐ½Ð¾, отображающее Ñтруктуру каталогов файловой ÑиÑтемы. -.PP -Команда -.\"LINK2" -.I "ПоиÑк файла" -.\"Find File" -позволÑет найти на диÑке файл Ñ Ð·Ð°Ð´Ð°Ð½Ð½Ñ‹Ð¼ именем. "ГорÑчие" клавиши \- -.BR Alt\-? . -.PP -Команда -.I "ПереÑтавить панели" -менÑет меÑтами Ñодержимое правой и левой панелей. "ГорÑчие" клавиши \- -.BR C\-u . -.PP -По команде -.I "Отключить панели" -показываетÑÑ Ð²Ñ‹Ð²Ð¾Ð´ поÑледней из выполнÑвшихÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´ оболочки. Эта команда -работает только через xterm и на конÑоли Linux и FreeBSD. "ГорÑчие" клавиши \- -.BR C\-o . -.PP -По команде -.I "Сравнить каталоги" -("горÑчие" клавиши \fBC\-x d\fR) ÑравниваетÑÑ Ñодержимое каталогов, отображаемых -на левой и правой панелÑÑ…. ПоÑле ÑÑ€Ð°Ð²Ð½ÐµÐ½Ð¸Ñ Ð¼Ð¾Ð¶Ð½Ð¾ воÑпользоватьÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð¾Ð¹ -.I "Копировать" -Ð´Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы Ñделать Ñодержимое каталогов одинаковым. СущеÑтвует -три метода ÑравнениÑ. При быÑтром методе ÑравниваютÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ размер и -дата ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð² Ñ Ð¾Ð´Ð¸Ð½Ð°ÐºÐ¾Ð²Ñ‹Ð¼Ð¸ именами. При побайтном методе -ÑравниваетÑÑ Ñодержимое файлов (побайтно). При Ñравнении по размеру -ÑравниваютÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ размеры ÑоответÑтвующих файлов, а дата ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð½Ðµ -проверÑетÑÑ. -.PP -Пункт меню -.\"LINK2" -.I "ВнешнÑÑ Ð¿Ð°Ð½ÐµÐ»Ð¸Ð·Ð°Ñ†Ð¸Ñ" -.\"External panelize" -позволÑет выполнить внешнюю программу, Ñделав ее вывод Ñодержимым -текущей панели (характерный пример \- Ð¿Ð°Ð½ÐµÐ»Ð¸Ð·Ð°Ñ†Ð¸Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð° команды find). -.PP -Пункт меню -.I "ИÑÑ‚Ð¾Ñ€Ð¸Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð¾Ð¹ Ñтроки" -выводит окно Ñо ÑпиÑком ранее выполнÑвшихÑÑ -команд. ПодÑвеченную Ñтроку из иÑтории можно Ñкопировать в командную -Ñтроку оболочки (перемещение подÑветки \- клавишами -.BR Up/Down , -копирование \- по клавише -.BR Enter ). -ДоÑтуп к иÑтории команд можно получить также по комбинациÑм клавиш -.B Alt\-p -или -.BR Alt\-n , -однако в Ñтом Ñлучае вы не видите окна Ñ Ð¿ÐµÑ€ÐµÑ‡Ð½ÐµÐ¼ команд. ВмеÑто Ñтого в -командную Ñтроку выводитÑÑ Ð¾Ð´Ð½Ð° команда из ÑпиÑка и по комбинации -.B Alt\-p -проиÑходит Ñмена Ñтой команды на предыдущую, а по -.B Alt\-n -\- на Ñледующую команду из иÑтории команд. -.PP -Пункт меню -.\"LINK2" -.I "Каталоги быÑтрого доÑтупа" -.\"Hotlist" -позволÑет Ñоздать ÑпиÑок каталогов, которые чаÑто иÑпользуютÑÑ, и -обеÑпечить быÑтрый переход к нужному каталогу из Ñтого ÑпиÑка. -.PP -Пункт меню -.I "СпиÑок активных ВФС" -отображает ÑпиÑок виртуальных файловых ÑиÑтем, активных на наÑтоÑщий -момент. Можно перейти на выбранную виртуальную файловую ÑиÑтему. Ð”Ð»Ñ -ÐžÐ±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ ÑпиÑка выберите кнопку -.B [ОÑвежить] -в диалоговом окне. -Кнопка -.B [ОÑвободить ВФС ÑейчаÑ] -поможет при обновлении Ñодержимого архива или при разорванном Ñетевом -Ñоединении. -.PP -Пункт меню -.\"LINK2" -.I "Фоновые заданиÑ" -.\"Background Jobs" -отображает ÑпиÑок фоновых заданий, запущенных в диалоге -копированиÑ/Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ ÐºÐ½Ð¾Ð¿ÐºÐ¾Ð¹ \fB[Ð’ фоне]\fR. -.PP -Пункт меню -.\"LINK2" -.I "СпиÑок Ñкранов" -.\"Screen selector" -отображает диалоговое окно Ñо ÑпиÑком одновременно работающих в данный -момент вÑтроенных редакторов, программ проÑмотра и других модулей MC, -поддерживающих такой режим работы. -.PP -ПоÑле выбора пункта меню -.\"LINK2" -.I "Редактировать файл раÑширений" -.\"Edit Extension File" -вы можете ÑвÑзать Ñ Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»Ñ‘Ð½Ð½Ñ‹Ð¼ раÑширением файла (окончанием имени -поÑле поÑледней точки) программу, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð±ÑƒÐ´ÐµÑ‚ запуÑкатьÑÑ Ð´Ð»Ñ -обработки (проÑмотра, Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸Ð»Ð¸ выполнениÑ) файла Ñ Ñ‚Ð°ÐºÐ¸Ð¼ -раÑширением. ЗапуÑк выбранной программы будет оÑущеÑтвлÑтьÑÑ Ð¿Ð¾Ñле -уÑтановки подÑветки на Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° и Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ -.BR Enter . -.PP -Пункт меню -.\"LINK2" -.I "Файл меню" -.\"Edit Menu File" -иÑпользуетÑÑ Ð´Ð»Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»ÑŒÑкого меню (которое -поÑвлÑетÑÑ Ð¿Ð¾Ñле Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ -.BR F2 ). -.\"NODE " Directory Tree" -.SH " Дерево каталогов" -ПоÑле выбора пункта меню "Дерево каталогов" поÑвлÑетÑÑ Ð¾ÐºÐ½Ð¾, в котором -отображена иерархичеÑÐºÐ°Ñ Ñтруктура каталогов. -.PP -Дерево каталогов может быть вызвано Ð´Ð²ÑƒÐ¼Ñ ÑпоÑобами: через пункт "Дерево -каталогов" из меню "Команды" и пункт "Дерево" из меню правой или левой -панелей. -.PP -Чтобы избавитьÑÑ Ð¾Ñ‚ долгих задержек во Ð²Ñ€ÐµÐ¼Ñ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð´ÐµÑ€ÐµÐ²Ð° каталогов, -Midnight Commander Ñоздаёт дерево путем проÑмотра только небольшого -подмножеÑтва вÑех каталогов. ЕÑли каталог, который вам нужен, не -отображен, перейдите в его родительÑкий каталог и нажмите -.B C\-r -(или -.BR F2 ). -.PP -Ð”Ð»Ñ ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿Ñ€Ð¾Ñмотром дерева каталогов могут иÑпользоватьÑÑ -Ñледующие комбинации клавиш: -.TP -Работают вÑе -.\"LINK2" -клавиши ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸ÐµÐ¼\&. -.\"General Movement Keys" -.TP -.B Enter -Ð’ окне проÑмотра дерева каталогов нажатие Ñтой клавиши вызывает выход из -режима проÑмотра и отображение ÑпиÑка файлов выбранного каталога в -активной панели. При отображении дерева каталогов в одной из панелей при -нажатии клавиши Enter ÑоответÑтвующий каталог отображаетÑÑ Ð²Ð¾ второй -панели, а на текущей панели оÑтаетÑÑ Ð´ÐµÑ€ÐµÐ²Ð¾. -.TP -.B C\-r, F2 -Перечитать Ñодержимое каталога. ИÑпользуетÑÑ Ð² тех ÑлучаÑÑ…, когда дерево -каталогов не ÑоответÑтвует реальной Ñтруктуре: некоторые каталоги не -показаны или показаны более не ÑущеÑтвующие. -.TP -.B F3 -Удалить текущий каталог из дерева. Эта команда иÑпользуетÑÑ Ð´Ð»Ñ ÑƒÐ´Ð°Ð»ÐµÐ½Ð¸Ñ -ошибочно отображаемых ветвей дерева. ЕÑли вам необходимо вернуть -подкаталог в дерево, перейдите в его родительÑкий каталог и нажмите -клавишу -.BR F2 . -.TP -.B F4 -Переключение между ÑтатичеÑким (применÑемым по умолчанию) и динамичеÑким -режимами Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¿Ð¾ дереву. -.TP -Ð’ ÑтатичеÑком режиме Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð´Ð»Ñ Ð²Ñ‹Ð±Ð¾Ñ€Ð° каталога (то еÑть Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ -подÑветки на Ð¸Ð¼Ñ Ð´Ñ€ÑƒÐ³Ð¾Ð³Ð¾ каталога) иÑпользуютÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ клавиши -.BR Up/Down . -ПоказываютÑÑ Ð²Ñе извеÑтные программе на данный момент подкаталоги. -.TP -Ð’ динамичеÑком режиме клавиши -.B Up/Down -иÑпользуютÑÑ Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° на ÑоÑедний каталог того же уровнÑ. Ð”Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° -в родительÑкий каталог иÑпользуетÑÑ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ° -.BR Left , -а по клавише -.B Right -проиÑходит переход к потомкам текущего каталога, то еÑть на один уровень -ниже. При Ñтом отображаютÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ вышележащие каталоги (Ð²ÐºÐ»ÑŽÑ‡Ð°Ñ -родительÑкий и выше), ÑоÑедние каталоги того же ÑƒÑ€Ð¾Ð²Ð½Ñ Ð¸ непоÑредÑтвенные -потомки. Вид дерева каталогов динамичеÑки изменÑетÑÑ Ð¿Ð¾Ñле каждого Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ -по дереву. -.TP -.B F5 -Копировать подкаталог (поÑвлÑетÑÑ Ñтрока ввода, в которой надо указать, -куда копировать). -.TP -.B F6 -ПеремеÑтить подкаталог. -.TP -.B F7 -Создать подкаталог в текущем (подÑвеченном) каталоге. -.TP -.B F8 -Удалить подÑвеченный каталог из файловой ÑиÑтемы. -.TP -.B C\-s, Alt\-s -Ðайти Ñледующий каталог, ÑоответÑтвующий заданному шаблону поиÑка. ЕÑли -такого каталога не ÑущеÑтвует, проиÑходит проÑто Ñмещение подÑветки на -одну Ñтроку вниз. -.TP -.B C\-h, Backspace -УдалÑет поÑледний Ñимвол в Ñтроке (шаблоне) поиÑка. -.TP -.B Любой другой Ñимвол -Этот Ñимвол добавлÑетÑÑ Ð² шаблон поиÑка и производитÑÑ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ðµ на -Ð¸Ð¼Ñ Ñледующего каталога, удовлетворÑющее шаблону. Ð’ режиме проÑмотра -дерева каталогов вначале необходимо активизировать режим поиÑка -клавишами -.BR C\-s . -Шаблон поиÑка будет отображатьÑÑ Ð² Ñтроке мини\-ÑтатуÑа. -.PP -Следующие дейÑÑ‚Ð²Ð¸Ñ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ñ‹ только в окне проÑмотра дерева каталогов и -не поддерживаютÑÑ Ð¿Ñ€Ð¸ проÑмотре дерева в одной из панелей: -.TP -.B F1 (Help) -Вызов подÑказки Ñ Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸ÐµÐ¼ наÑтоÑщего раздела помощи. -.TP -.B Esc, F10 -Выход из окна дерева каталогов. Смены текущего каталога не проиÑходит. -.PP -Ð’ окне проÑмотра дерева каталогов поддерживаетÑÑ Ð¼Ñ‹ÑˆÐºÐ°. Двойной щелчок -аналогичен нажатию клавиши -.BR Enter . -Смотрите также Ñекцию о -.\"LINK2" -поддержке мыши\&. -.\"Mouse Support" -.\"NODE " Find File" -.SH " ПоиÑк файлов" -ПоÑле выбора пункта меню "ПоиÑк файла" поÑвлÑетÑÑ Ð´Ð¸Ð°Ð»Ð¾Ð³Ð¾Ð²Ð¾Ðµ окно, в котором -запрашиваетÑÑ Ð¸Ð¼Ñ Ð¸Ñкомого файла и Ð¸Ð¼Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð°, Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð³Ð¾ необходимо начинать -поиÑк. Ðажав кнопку -.BR [Дерево] , -можно выбрать начальный каталог поиÑка из -.\"LINK2" -дерева каталогов\&. -.\"Directory Tree" -.PP -Поле "Шаблон имени" Ñодержит маÑку имени файла, по которой проиÑходит поиÑк. -Ð’ завиÑимоÑти от опции "МетаÑимволы shell" маÑка интерпретируетÑÑ Ð»Ð¸Ð±Ð¾ по тем же -правилам, что и в командной оболочке, либо как регулÑрное выражение. ПуÑтое -поле также допуÑтимо и ÑоответÑтвует любому имени. -.PP -Поле "Содержимое" позволÑет задать текÑÑ‚, который надо найти. ЕÑли Ñто поле -пуÑто, то поиÑк по Ñодержимому файлов производитьÑÑ Ð½Ðµ будет. -.PP -ÐžÐ¿Ñ†Ð¸Ñ -.I "Только целые Ñлова" -уÑтанавливает, что шаблон поиÑка ÑоответÑтвует только целым Ñловам (например, -еÑли указано "foo", не будет найдено Ñлово "foobar"). -.PP -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы начать поиÑк, нажмите Ñкранную кнопку -.BR [Дальше] . -Во Ð²Ñ€ÐµÐ¼Ñ Ð¿Ð¾Ð¸Ñка его можно приоÑтановить кнопкой -.B [ПриоÑтановить] -и продолжить по кнопке -.BR [Продолжить] . -.PP -СпиÑок найденных файлов можно проÑматривать, перемещаÑÑÑŒ Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ -клавиш -.B Up -и -.BR Down . -Кнопка -.B [Перейти] -иÑпользуетÑÑ Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° в каталог, в котором находитÑÑ Ð¿Ð¾Ð´Ñвеченный -файл. Кнопка -.B [Повтор] -Ñлужит Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð¾Ð² нового поиÑка. Кнопка -.B [Выход] -Ñлужит Ð´Ð»Ñ Ð²Ñ‹Ñ…Ð¾Ð´Ð° из режима поиÑка. Ðажатие на кнопку -.B [ПанелизациÑ] -приведёт к тому, что результаты поиÑка будут отображены на текущую -активную панель, так что вы можете производить Ñ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ñ‹Ð¼Ð¸ файлами -ещё какие\-то дейÑÑ‚Ð²Ð¸Ñ (проÑматривать, копировать, перемещать, удалÑть -и так далее). Ð”Ð»Ñ Ð²Ð¾Ð·Ð²Ñ€Ð°Ñ‚Ð° к обычному ÑпиÑку файлов нужно перейти -в каталог "..". -.PP -ÐžÐ¿Ñ†Ð¸Ñ -.I "Разрешить игнорирование каталогов" -ÑовмеÑтно Ñ Ñ€Ð°Ñположенным ниже полем ввода позволÑет задать ÑпиÑок каталогов, -которые нужно пропуÑкать при поиÑке (например, вы знаете, что иÑкомого файла -нет на CD\-ROM или не хотите иÑкать в каталогах, подключенных через NFS -по очень медленному каналу). Компоненты ÑпиÑка должны быть разделены двоеточиÑми. -Ðапример -.PP -.nf -/cdrom:/nfs/wuarchive:/afs -.fi -.PP -ОтноÑительные пути также поддерживаютÑÑ. Следующий пример показывает, как -при поиÑке пропуÑкать Ñпециальные каталоги различных ÑиÑтем ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð²ÐµÑ€ÑиÑми: -.nf -/cdrom:/nfs/wuarchive:/afs:.svn:.git:CVS -.fi -.PP -Внимание: поле ввода может Ñодержать точку (.), Ñто означает текущий абÑолютный путь. -.PP -Ð’Ñ‹ можете иÑпользовать перенаправление вывода на панель -(Ñм. -.\"LINK2" -Критерий панелизации\&) -.\"External panelize" -Ð´Ð»Ñ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð½ÐµÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ñ… уÑложненных поÑледовательноÑтей дейÑтвий, в то -Ð²Ñ€ÐµÐ¼Ñ ÐºÐ°Ðº "ПоиÑк файла" позволÑет выполнÑть только проÑтые запроÑÑ‹. -.\"NODE " External panelize" -.SH " Критерий панелизации" -Пункт меню "Критерий панелизации" (который правильнее было бы назвать -"Перенаправление вывода на панель") позволÑет выполнить внешнюю -программу и отобразить вывод Ñтой программы на текущей активной панели. -.PP -Ðапример, еÑли вы хотите выполнить какое\-то дейÑтвие над вÑеми -ÑимволичеÑкими ÑÑылками текущего каталога, вы можете иÑпользовать пункт -"Критерий панелизации" Ð´Ð»Ñ Ð·Ð°Ð¿ÑƒÑка Ñледующей команды: -.PP -.nf -find . \-type l \-print -.fi -.PP -ПоÑле Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ñтой команды в текущей панели будет отображено не -Ñодержимое ÑоответÑтвующего каталога, а только вÑе ÑимволичеÑкие ÑÑылки, -в нем раÑположенные. -.PP -ЕÑли вы хотите вывеÑти на панель вÑе файлы, которые были Ñкачаны Ñ -вашего FTP\-Ñайта, вы можете иÑпользовать Ñледующую команду Ð´Ð»Ñ -Ð¸Ð·Ð²Ð»ÐµÑ‡ÐµÐ½Ð¸Ñ Ð½ÑƒÐ¶Ð½Ñ‹Ñ… имен из файла протокола: -.PP -.nf -awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog -.fi -.PP -ЕÑли вы захотите, то можете Ñохранить чаÑто иÑпользуемые команды -панелизации под отдельными информативными именами, чтобы иметь -возможноÑть их быÑтро вызвать по Ñтим именам. Ð”Ð»Ñ Ñтого нужно набрать -команду в Ñтроке ввода и нажать кнопку -.BR [Добавить] . -ПоÑле Ñтого вам потребуетÑÑ Ð²Ð²ÐµÑти имÑ, по которому вы будете вызывать -команду. Ð’ Ñледующий раз вам доÑтаточно будет выбрать нужное Ð¸Ð¼Ñ -из ÑпиÑка, а не вводить вÑÑŽ команду заново. -.\"NODE " Hotlist" -.SH " Каталоги быÑтрого доÑтупа" -Пункт меню "Каталоги быÑтрого доÑтупа" Ñлужит Ð´Ð»Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð° ÑпиÑка меток -(уÑловных имен), приÑвоенных наиболее чаÑто иÑпользуемым каталогам. Этот -ÑпиÑок можно иÑпользовать Ð´Ð»Ñ Ð±Ñ‹Ñтрого перехода в нужный каталог. -ПользуÑÑÑŒ диалоговым окном "Каталоги быÑтрого доÑтупа", вы можете добавить -новую метку в ÑпиÑок или удалить ранее Ñозданную пару метка/каталог. Ð”Ð»Ñ -Ð´Ð¾Ð±Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¼ÐµÑ‚ÐºÐ¸ можно также иÑпользовать комбинацию клавиш \fBC\-x h\fR, -по которой текущий каталог добавлÑетÑÑ Ð² каталоги быÑтрого доÑтупа. -Программа выдаÑÑ‚ Ð·Ð°Ð¿Ñ€Ð¾Ñ Ð½Ð° ввод метки Ð´Ð»Ñ Ñтого каталога. -.PP -ИÑпользование Ñтого пункта меню обеÑпечивает более быÑтрый переход к -чаÑто иÑпользуемым каталогам. Другим ÑпоÑобом уÑÐºÐ¾Ñ€ÐµÐ½Ð¸Ñ Ð¿Ñ€Ð¾Ñ†ÐµÐ´ÑƒÑ€Ñ‹ -Ð¿ÐµÑ€ÐµÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ð½Ð° чаÑто иÑпользуемые каталоги ÑвлÑетÑÑ Ð·Ð°Ð´Ð°Ð½Ð¸Ðµ переменной -CDPATH (Ñмотрите опиÑание -.\"LINK2" -вÑтроенной команды cd\&. -.\"The cd internal command" -.\"NODE " Edit Extension File" -.SH " Редактировать файл раÑширений" -Этот пункт меню "Команда" Ñлужит Ð´Ð»Ñ Ð²Ñ‹Ð·Ð¾Ð²Ð° редактора и Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ -файла -.BR ~/.config/mc/mc.ext.ini . -ЕÑли Ñтот файл не ÑущеÑтвует и вы не root, Ñтот файл будет Ñкопирован Ñ -.IR %sysconfdir%/mc/mc.ext.ini . -ЕÑли вы root, вы можете выбрать, какой из файлов редактировать: пользовательÑкий -.I ~/.config/mc/mc.ext.ini -или ÑиÑтемный -.IR %sysconfdir%/mc/mc.ext.ini . -Формат Ñтого файла подробно опиÑан в нём Ñамом. -.\"NODE " Background Jobs" -.SH " Фоновые заданиÑ" -Этот пункт меню позволÑет вам управлÑть фоновыми заданиÑми, запущенными -из Midnight Commander (такими заданиÑми могут быть только операции -ÐºÐ¾Ð¿Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²). ИÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ Ñтот пункт меню или -"горÑчие" клавиши \fBC\-x j\fR, -вы можете оÑтановить, возобновить или ÑнÑть любое из фоновых заданий. -.\"NODE " Edit Menu File" -.SH " Редактирование файлов меню" -Файлы меню Ñодержат ÑпиÑки команд Ð´Ð»Ñ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ñ‡Ð°Ñто повторÑемых -пользователем операций. Эти меню ÑоздаютÑÑ Ð¸ поддерживаютÑÑ Ñамими -пользователÑми. Могут быть Ñозданы три файла меню: в текущем каталоге, в -домашнем каталоге Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð¸ общеÑиÑтемный. Когда вы нажимаете -клавишу -.B F2 -Ð´Ð»Ñ Ð²Ñ‹Ð·Ð¾Ð²Ð° меню, Midnight Commander вначале ищет файл -.B .mc.menu -в текущем каталоге и отображает ÑоответÑтвующее меню (еÑли находит и -еÑли владельцем Ñтого файла ÑвлÑетÑÑ Ð´Ð°Ð½Ð½Ñ‹Ð¹ пользователь или root и Ñтот -файл не доÑтупен на запиÑÑŒ вÑем). ЕÑли такого файла не найдено, таким же -образом ищетÑÑ Ñ„Ð°Ð¹Ð» -.BR ~/.config/mc/menu , -и в поÑледнюю очередь mc иÑпользует общеÑиÑтемное меню -.BR %pkgdatadir%/mc.menu . -.PP -Формат вÑех трёх файлов меню одинаков и очень проÑÑ‚. Строки комментариев -начинаютÑÑ Ñ '#'. Дополнительные комментарии должны начинатьÑÑ Ñ '#', -пробела или Ñимвола табулÑции. Строки, начинающиеÑÑ Ñ Ð»ÑŽÐ±Ð¾Ð³Ð¾ Ñимвола, -отличного от пробела и Ñимвола табулÑции, интерпретируютÑÑ ÐºÐ°Ðº Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ -пунктов меню, причём еÑли первый Ñимвол ÑвлÑетÑÑ Ð±ÑƒÐºÐ²Ð¾Ð¹ или цифрой, то -ÑоответÑÑ‚Ð²ÑƒÑŽÑ‰Ð°Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ° будет Ñлужить "горÑчей" клавишей Ð´Ð»Ñ Ð²Ñ‹Ð·Ð¾Ð²Ð° -Ñтого пункта меню. Строки, начинающиеÑÑ Ñ Ð¿Ñ€Ð¾Ð±ÐµÐ»Ð° или Ñимвола табулÑции, -интерпретируютÑÑ ÐºÐ°Ðº команды, которые должны выполнÑтьÑÑ Ð¿Ñ€Ð¸ вызове -ÑоответÑтвующего пункта меню. Эти Ñтроки должны Ñледовать за Ñтрокой -Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ Ð¸ их может быть неÑколько. -.PP -Когда пользователь выбирает какой\-то пункт меню, ÑоответÑтвующие -командные Ñтроки копируютÑÑ Ð²Ð¾ временный файл во временном каталоге -(обычно /usr/tmp) и затем Ñтот файл запуÑкаетÑÑ Ð½Ð° выполнение. Это -позволÑет пользователю вÑтавлÑть в команды меню любые конÑтрукции, -допуÑтимые в командном Ñзыке оболочки. Можно также иÑпользовать -макроподÑтановки, которые производÑÑ‚ÑÑ Ð¿ÐµÑ€ÐµÐ´ выполнением кода меню -(подробнее Ñмотрите в Ñекции -.\"LINK2" -МакроподÑтановки\&). -.\"Macro Substitution" -.PP -Вот пример файла mc.menu: -.PP -.nf -A Dump the currently selected file - od \-c %f - -B Edit a bug report and send it to root - I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1 - vi $I - mail \-s "Midnight Commander bug" root < $I - rm \-f $I - -M Read mail - emacs \-f rmail - -N Read Usenet news - emacs \-f gnus - -H Call the info hypertext browser - info - -J Copy current directory to other panel recursively - tar cf \- . | (cd %D && tar xvpf \-) - -K Make a release of the current subdirectory - echo \-n "Name of distribution file: " - read tar - ln \-s %d `dirname %d`/$tar - cd .. - tar cvhf ${tar}.tar $tar - -= f *.tar.gz | f *.tgz & t n -X Extract the contents of a compressed tar file - tar xzvf %f -.fi -.PP -.B УÑÐ»Ð¾Ð²Ð¸Ñ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ (Default Conditions) -.PP -Каждому пункту меню может предшеÑтвовать уÑловие. Строка, Ð·Ð°Ð´Ð°ÑŽÑ‰Ð°Ñ -уÑловие, должна Ñодержать Ñимвол '=' в первой колонке. Команды, -задаваемые Ñтим пунктом меню, будут выполнÑтьÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ еÑли уÑловие -выполнÑетÑÑ. -.PP -.nf -СинтакÑÐ¸Ñ Ñтроки уÑловиÑ: = - или: = | ... - или: = & ... - -где может принимать Ñледующие значениÑ: - - y ÑинтакÑÐ¸Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ³Ð¾ файла ÑоответÑтвует шаблону. - Только Ð´Ð»Ñ Ð¼ÐµÐ½ÑŽ редактора. - f ÑоответÑтвует ли шаблону Ð¸Ð¼Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ³Ð¾ файла? - F ÑоответÑтвует ли шаблону файл в паÑÑивной панели? - d ÑоответÑтвует ли шаблону Ð¸Ð¼Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ³Ð¾ каталога? - D ÑоответÑтвует ли шаблону Ð¸Ð¼Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ³Ð¾ каталога - в паÑÑивной панели? - t ÑоответÑтвует ли тип файла ? - T ÑоответÑтвует ли тип файла в паÑÑивной панели ? - x ÑвлÑетÑÑ Ð»Ð¸ filename иÑполнимым? - ! логичеÑкое отрицание уÑÐ»Ð¾Ð²Ð¸Ñ -.fi -.PP -Шаблон (pattern) \- Ñто обычный шаблон оболочки (shell pattern) или -регулÑрное выражение, в ÑоответÑтвии Ñ Ð¾Ð¿Ñ†Ð¸ÐµÐ¹ "shell patterns". Ð’Ñ‹ -можете задать значение опции "shell patterns" путем запиÑи Ñтроки -"shell_patterns=x" в Ñамую первую Ñтроку файла меню (здеÑÑŒ "x" равно 0 -или 1). -.PP -.nf -Типы файлов определÑÑŽÑ‚ÑÑ Ñледующими Ñимволами: - - n не каталог - r обычный файл (regular file) - d каталог - l ÑÑылка (link) - c байт\-ориентированное уÑтройÑтво (char special) - b блок\-ориентированное уÑтройÑтво (block special) - f fifo - s socket - x иÑполнÑемый файл - t помеченный файл (tagged) -.fi -.PP -Ðапример, 'rlf' означает либо обычный файл, либо ÑÑылку, либо файл типа -fifo. Тип 't' Ñтоит неÑколько оÑобнÑком, потому что Ñтот тип -определÑетÑÑ Ð½Ðµ типом Ñамого файла, а тем, помечен ли файл на панели. -УÑловие '=t t' иÑтинно, еÑли в текущей панели имеютÑÑ Ð¿Ð¾Ð¼ÐµÑ‡ÐµÐ½Ð½Ñ‹Ðµ файлы, -и ложно, еÑли таковых нет. -.PP -ЕÑли уÑловие начинаетÑÑ Ñ "=?" вмеÑто '=', то во Ð²Ñ€ÐµÐ¼Ñ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ -проверки уÑÐ»Ð¾Ð²Ð¸Ñ Ð±ÑƒÐ´ÐµÑ‚ отображатьÑÑ Ñ…Ð¾Ð´ вычиÑÐ»ÐµÐ½Ð¸Ñ ÑƒÑÐ»Ð¾Ð²Ð¸Ñ (a debug -trace will be shown whenever the value of the condition is calculated). -.PP -Значение уÑÐ»Ð¾Ð²Ð¸Ñ Ð²Ñ‹Ñ‡Ð¸ÑлÑетÑÑ Ñлева направо. Это значит, что -.nf - = f *.tar.gz | f *.tgz & t n -.fi -вычиÑлÑетÑÑ ÐºÐ°Ðº -.nf - ( (f *.tar.gz) | (f *.tgz) ) & (t n) -.fi -.PP -Вот пример иÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ ÑƒÑловий: -.PP -.nf -= f *.tar.gz | f *.tgz & t n -L List the contents of a compressed tar\-archive - gzip \-cd %f | tar xvf \- -.fi -.PP -.B УÑÐ»Ð¾Ð²Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ð¿ÑƒÐ½ÐºÑ‚Ð° в меню (Addition Conditions) -.PP -ЕÑли Ñтрока уÑÐ»Ð¾Ð²Ð¸Ñ Ð½Ð°Ñ‡Ð¸Ð½Ð°ÐµÑ‚ÑÑ Ñ '+' (или "+?") вмеÑто '=' (или "=?") \- -Ñто уÑловие трактуетÑÑ ÐºÐ°Ðº уÑловие Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ð´Ð°Ð½Ð½Ð¾Ð³Ð¾ пункта в меню. ЕÑли -уÑловие иÑтинно, пункт включаетÑÑ Ð² отображаемое на Ñкране меню, еÑли -уÑловие не выполнÑетÑÑ \- не включаетÑÑ. -.PP -Ð’Ñ‹ можете иÑпользовать одно и то же уÑловие и как уÑловие Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð¸ -как уÑловие Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ð¿ÑƒÐ½ÐºÑ‚Ð° в меню, еÑли начнете Ñтроку уÑÐ»Ð¾Ð²Ð¸Ñ Ñ "+=" -или "=+" (еÑли надо отображать ход вычиÑлениÑ, то Ñ "+=?" или "=+?"). -ЕÑли вы хотите иÑпользовать два разных уÑловиÑ, одно Ð´Ð»Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ð² -меню, а другое \- Ð´Ð»Ñ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ, надо предпоÑлать пункту меню две Ñтроки -уÑловий, одну \- начинающуюÑÑ Ñ '+', и другую \- начинающуюÑÑ Ñ '='. -.\"NODE " Options Menu" -.SH " Меню 'ÐаÑтройки'" -Программа Midnight Commander имеет Ñ€Ñд уÑтановок (опций), ÐºÐ°Ð¶Ð´Ð°Ñ Ð¸Ð· -которых может быть включена или выключена, Ð´Ð»Ñ Ñ‡ÐµÐ³Ð¾ Ñлужат неÑколько -диалоговых окон, доÑтупных через меню "ÐаÑтройки". ÐžÐ¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, еÑли -поÑтавлена звёздочка или знак "x" в Ñкобках перед названием опции. -.PP -Пункт -.\"LINK2" -ÐšÐ¾Ð½Ñ„Ð¸Ð³ÑƒÑ€Ð°Ñ†Ð¸Ñ -.\"Configuration" -вызывает диалоговое окно, в котором вы можете поменÑть большинÑтво -уÑтановок программы Midnight Commander. -.PP -Пункт -.\"LINK2" -Внешний вид -.\"Layout" -Ñлужит Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ð½Ð°Ñтроек, определÑющих положение и вид окна программы -mc на Ñкране. -.PP -Пункт -.\"LINK2" -ÐаÑтройки панелей -.\"Panel options" -Ñлужит Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ð½Ð°Ñтроек панелей файлового менеджера. -.PP -Пункт -.\"LINK2" -Подтверждение -.\"Confirmation" -вызывает диалоговое окно, в котором вы указываете, на выполнение каких -дейÑтвий программа будет требовать подтверждениÑ. -.PP -Пункт -.\"LINK2" -Оформление -.\"Appearance" -вызывает диалоговое окно, в котором вы можете выбрать Ñкин. -.PP -Пункт -.\"LINK2" -Биты Ñимволов -.\"Display bits" -вызывает диалоговое окно, в котором вы указываете, в каком формате ваш -терминал будет обрабатывать (вводить и отображать на диÑплее) -информацию, предÑтавленную байтами (например, запиÑанную в файле). -.PP -Пункт -.\"LINK2" -РаÑпознавание клавиш -.\"Learn keys" -вызывает диалоговое окно, в котором вы можете протеÑтировать работу -некоторых клавиш, которые работают не на вÑех типах терминалов, и -ÑвÑзать ту реакцию ÑиÑтемы, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð´Ð¾Ð»Ð¶Ð½Ð° была поÑледовать за нажатием -отÑутÑтвующей клавиши, Ñ Ð½Ð°Ð¶Ð°Ñ‚Ð¸ÐµÐ¼ другой клавиши или комбинации клавиш. -.PP -Пункт -.\"LINK2" -Виртуальные ФС -.\"Virtual FS" -вызывает диалоговое окно, в котором вы можете задать Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð½ÐµÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ñ… -параметров, ÑвÑзанных Ñ Ð¸Ñпользованием виртуальных файловых ÑиÑтем. -.PP -По команде -.\"LINK2" -Сохранить наÑтройки -.\"Save Setup" -введённые Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð¾Ð² ÑохранÑÑŽÑ‚ÑÑ Ð² ini\-файле программы. -.\"NODE " Configuration" -.SH " КонфигурациÑ" -Параметры конфигурации, задаваемые в Ñтом окне, делÑÑ‚ÑÑ Ð½Ð° неÑколько -групп: "Параметры операций Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸", "Клавиша Esc", "Пауза поÑле -иÑполнениÑ" и "Прочие наÑтройки". -.PP -.B Параметры операций Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸ -.PP -.IR "Детали операций" . -Этот переключатель определÑет, будет ли при выполнении операций -копированиÑ, Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¸ ÑƒÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð¸Ñ‚ÑÑ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð¾Ðµ окно, -отображающее ход Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ð¸. ЕÑли у Ð²Ð°Ñ Ð¼ÐµÐ´Ð»ÐµÐ½Ð½Ñ‹Ð¹ терминал, вы -можете отключить Ñтот вывод. Он отключаетÑÑ Ð°Ð²Ñ‚Ð¾Ð¼Ð°Ñ‚Ð¸Ñ‡ÐµÑки, еÑли ÑкороÑть -вашего терминала меньше 9600 bps. -.PP -.IR "ПодÑчитывать общий размер" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, Midnight Commander перед выполнением операций -копированиÑ, Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¸ ÑƒÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð´Ñчитывает общее чиÑло -обрабатываемых файлов и их Ñуммарный размер и показывает ход Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ -операции над Ñтими файлами в виде диаграммы\-полоÑки (правда, Ñто Ñлегка -замедлÑет выполнение операций). Эта Ð¾Ð¿Ñ†Ð¸Ñ Ð½Ðµ работает, еÑли выключена -Ð¾Ð¿Ñ†Ð¸Ñ -.IR "Детали операций" . -.PP -.IR "Обычный индикатор прогреÑÑа" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, индикатор прогреÑÑа файловых операций (копирование, -перемещение, удаление) вÑегда увеличиваетÑÑ Ñлева направо. ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -выключена, направление ÑƒÐ²ÐµÐ»Ð¸Ñ‡ÐµÐ½Ð¸Ñ Ð¸Ð½Ð´Ð¸ÐºÐ°Ñ‚Ð¾Ñ€Ð° прогреÑÑа Ñовпадает Ñ Ð½Ð°Ð¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸ÐµÐ¼ -файловой операции: Ñ Ð»ÐµÐ²Ð¾Ð¹ панели на правую или наоборот. По умолчанию включено. -.PP -.IR "ÐÐ²Ñ‚Ð¾Ð¸Ð¼Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð°" . -При Ñоздании нового каталога по F7 в поле ввода имени нового каталога -будет автоматичеÑки подÑтавлÑтьÑÑ Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° или каталога, находÑщегоÑÑ -под курÑором. По умолчанию выключено. -.PP -.IR "ВыделÑть меÑто" . -ЕÑли возможно, предварительно выделÑть меÑто под веÑÑŒ копируемый файл. -По умолчанию выключено. -.PP -.B Клавиша Esc -.PP -По умолчанию Midnight Commander трактует нажатие на клавишу Esc как -дейÑтвие, предшеÑтвующее нажатию какой\-то другой клавиши и ÑовмеÑтно -обрабатывает комбинацию -.BR Esc\-key . -ПоÑтому вы должны нажимать Esc дважды, чтобы закрыть диалог. Ðо ÑущеÑтвует -возможноÑть иÑпользовать однократное нажатие Esc Ð´Ð»Ñ Ñтого дейÑтвиÑ. -.PP -.IR "Однократное нажатие" . -По умолчанию Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°. ЕÑли вы её включите, то программа будет -ожидать Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ Ð²Ñ‚Ð¾Ñ€Ð¾Ð¹ клавиши только в течение некоторого временного -интервала (Ñм. ниже опцию -.IR "Интервал" ), -и еÑли за Ñто Ð²Ñ€ÐµÐ¼Ñ Ð½Ð¸ одна клавиша не нажата, то Esc интерпретируетÑÑ -как команда "Отмена" (Esc Esc). -.PP -.IR "Интервал" . -Эта Ð¾Ð¿Ñ†Ð¸Ñ Ð¸ÑпользуетÑÑ Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ð²Ñ€ÐµÐ¼ÐµÐ½Ð½Ð¾Ð³Ð¾ интервала (в микроÑекундах) -Ð´Ð»Ñ Ð¸ÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¾Ð´Ð½Ð¾ÐºÑ€Ð°Ñ‚Ð½Ð¾Ð³Ð¾ Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ Ð½Ð° клавишу Esc. По умолчанию Ñтот -интервал равен 1 Ñекунде (1000000 микроÑекунд). Кроме того, Ñтот интервал -может быть уÑтановлен через переменную Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ KEYBOARD_KEY_TIMEOUT_US -(также в микроÑекундах), ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð¸Ð¼ÐµÐµÑ‚ приоритет над над значением Ñтой -опции. -.PP -.B "Пауза поÑле иÑполнениÑ" -.PP -ПоÑле Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð²Ð°ÑˆÐµÐ¹ команды Midnight Commander может обеÑпечить -паузу, чтобы вы могли проÑмотреть и изучить вывод команды. ЕÑть три -варианта уÑтановки Ñтой опции: -.PP -.IR "Ðикогда" . -Это значит, что вы не хотите видеть вывод команды. Ðа конÑоли Linux или -FreeBSD или при иÑпользовании xterm вы можете проÑмотреть Ñтот вывод, -нажав C\-o. -.PP -.IR "Ðа \(lqтупых\(rq терминалах" . -Пауза будет ÑоздаватьÑÑ Ð½Ð° терминалах, которые не ÑпоÑобны обеÑпечить -показ вывода поÑледней из выполнÑвшихÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´ (Ñто любые терминалы, -отличные от xterm или конÑоли Linux). -.PP -.IR "Ð’Ñегда" . -Программа обеÑпечит паузу поÑле Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð»ÑŽÐ±Ð¾Ð¹ команды. -.PP -.B "Прочие наÑтройки" -.PP -.IR "Ð’Ñтроенный редактор" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, то Ð´Ð»Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð² вызываетÑÑ -вÑтроенный редактор. ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, то будет иÑпользоватьÑÑ -редактор, указанный в переменной Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ -.BR EDITOR . -ЕÑли такой редактор не задан, будет вызыватьÑÑ -.B vi -Смотрите раздел -.\"LINK2" -Ð’Ñтроенный редактор файлов\&. -.\"Internal File Editor" -.PP -.IR "Ð’Ñтроенный проÑмотр" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, Ð´Ð»Ñ Ð¿Ñ€Ð¾Ñмотра файлов вызываетÑÑ Ð²ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ -программа проÑмотра. ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, вызываетÑÑ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð°, -ÑƒÐºÐ°Ð·Ð°Ð½Ð½Ð°Ñ Ð² переменной Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ -.BR PAGER . -ЕÑли Ñ‚Ð°ÐºÐ°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° не задана, иÑпользуетÑÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð° -.BR view . -Смотрите раздел -.\"LINK2" -Ð’ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° проÑмотра файлов\&. -.\"Internal File Viewer" -.PP -.IR "ÐвтоматичеÑкие меню" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, пользовательÑкое меню будет автоматичеÑки -вызыватьÑÑ Ð½Ð° Ñкран при запуÑке программы. Это бывает полезно, еÑли на -компьютере работают неопытные пользователи (операторы), которые должны -выполнÑть только Ñтандартные операции. -.PP -.IR "Спрашивать Ð¸Ð¼Ñ Ð½Ð¾Ð²Ð¾Ð³Ð¾ файла" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, то перед открытием нового файла в редакторе -будет запрошено его имÑ. -.PP -.IR "Выпадение меню при вызове" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, то при вызове главного меню нажатием клавиши -.B F9 -будет Ñразу отображатьÑÑ Ð¿ÐµÑ€ÐµÑ‡ÐµÐ½ÑŒ пунктов меню (выпадающее меню). -Ð’ противном Ñлучае активизируютÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ пункты главного меню, и вы должны -(поÑле выбора одного из них клавишами Ñтрелок) нажать клавишу -.B Enter -либо выбрать нужный пункт по "горÑчей" клавише и только поÑле Ñтого -получите возможноÑть выбрать пункт выпадающего меню. -.PP -.IR "Образцы в Ñтиле shell" . -По умолчанию команды Select, Unselect и Filter иÑпользуют регулÑрные -выражениÑ, которые ÑтроÑÑ‚ÑÑ Ð¿Ð¾ правилам, дейÑтвующим в оболочке (shell\- -like regular expressions). Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы доÑтичь такого Ñффекта, -выполнÑÑŽÑ‚ÑÑ Ñледующие преобразованиÑ: '*' заменÑетÑÑ Ð½Ð° '.*' (ноль или -больше Ñимволов); '?' заменÑетÑÑ Ð½Ð° '.' (в точноÑти один Ñимвол) и '.' -заменÑетÑÑ Ð½Ð° обычную точку. ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, то регулÑрные -Ð²Ñ‹Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð´Ð¾Ð»Ð¶Ð½Ñ‹ ÑтроитьÑÑ Ñ‚Ð°Ðº, как опиÑано в ed(1). -.PP -.IR "Дополнение: показывать вÑÑ‘" . -Ð’ процеÑÑе ввода команд Midnight Commander может выполнÑть -.\"LINK2" -Завершение ввода -.\"Completion" -при нажатии на клавиши -.BR Alt\-Tab , -пытаÑÑÑŒ угадать окончание вводимой команды. По умолчанию при первом -нажатии -.B Alt\-Tab -он ищет вÑе возможные варианты Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ Ð¸, еÑли Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ -неоднозначны (имеетÑÑ Ð¼Ð½Ð¾Ð³Ð¾ разных вариантов), то только издаёт звуковой -Ñигнал. При втором нажатии -.B Alt\-Tab -отображаютÑÑ Ð²Ñе возможные завершениÑ. ЕÑли вы хотите видеть вÑе -возможные варианты Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ Ð¿Ð¾Ñле первого Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ -.BR Alt\-Tab , -включите Ñту опцию. -.PP -.IR "ВращающийÑÑ Ð¸Ð½Ð´Ð¸ÐºÐ°Ñ‚Ð¾Ñ€" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, Midnight Commander отображает в верхнем правом -углу вращающуюÑÑ Ñ‡ÐµÑ€Ñ‚Ð¾Ñ‡ÐºÑƒ как индикатор того, что выполнÑетÑÑ ÐºÐ°ÐºÐ¾Ðµ\-то -задание (операциÑ). -.PP -.IR "Смена каталога по ÑÑылкам" . -УÑтановка Ñтой опции приводит к тому, что Midnight Commander будет -Ñледовать логичеÑкой цепочке подкаталогов при выполнении команд Ñмены -каталога как в панели, так и по команде -.BR cd . -Так же ведёт ÑÐµÐ±Ñ Ð¿Ð¾ умолчанию bash. ЕÑли же Ð¾Ð¿Ñ†Ð¸Ñ Ð½Ðµ включена, Midnight -Commander будет при выполнении команды -.B cd -Ñледовать реальной Ñтруктуре каталогов, так что еÑли вы вошли в текущий -каталог по ÑÑылке на него, то по команде -.B "cd .." -вы окажетеÑÑŒ в его родительÑком каталоге, а не в том каталоге, где -раÑположена ÑÑылка. -.PP -.IR "БезопаÑное удаление" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, непреднамеренно удалить файл будет Ñложнее. Ð’ -диалоговых окнах Ð¿Ð¾Ð´Ñ‚Ð²ÐµÑ€Ð¶Ð´ÐµÐ½Ð¸Ñ ÑƒÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¿Ñ€ÐµÐ´Ð»Ð°Ð³Ð°ÐµÐ¼Ð°Ñ Ð¿Ð¾ умолчанию кнопка -изменÑетÑÑ Ñ -.B [Да] -на -.BR [Ðет] . -По умолчанию Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°. -.PP -.IR "БезопаÑÐ½Ð°Ñ Ð¿ÐµÑ€ÐµÐ·Ð°Ð¿Ð¸ÑÑŒ" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, непреднамеренно перезапиÑать файл будет Ñложнее. Ð’ -диалоговом окне Ð¿Ð¾Ð´Ñ‚Ð²ÐµÑ€Ð¶Ð´ÐµÐ½Ð¸Ñ Ð¿ÐµÑ€ÐµÐ·Ð°Ð¿Ð¸Ñи Ð¿Ñ€ÐµÐ´Ð»Ð°Ð³Ð°ÐµÐ¼Ð°Ñ Ð¿Ð¾ умолчанию кнопка -изменÑетÑÑ Ñ -.B [Да] -на -.BR [Ðет] . -По умолчанию Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°. -.PP -.IR "ÐвтоÑохранение наÑтроек" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, то при выходе из программы Midnight Commander -Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð²Ñех наÑтраиваемых параметров ÑохранÑÑŽÑ‚ÑÑ Ð² файле -.BR ~/.config/mc/ini . -.\"NODE " Layout" -.SH " Внешний вид" -Диалоговое окно "Внешний вид" даёт вам возможноÑть изменить некоторые -параметры Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð½Ð° Ñкране главного окна программы Midnight -Commander. Параметры, задаваемые в Ñтом окне, делÑÑ‚ÑÑ Ð½Ð° неÑколько -групп: "Разбиение панелей", "КонÑольный вывод" и "Прочие наÑтройки". -.PP -.B Разбиение панелей -.PP -Большую чаÑть Ñкрана занимают файловые панели. Ð’Ñ‹ можете указать, -каким должно быть раÑположение панелей: -.I вертикальное -или -.IR горизонтальное . -Изменить раÑположение панелей можно также Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ клавиатурного ÑÐ¾Ñ‡ÐµÑ‚Ð°Ð½Ð¸Ñ -Alt\-, (Alt\-запÑтаÑ). -.PP -.IR "Равные размеры" . -По умолчанию панели имеют равные размеры. Эта Ð¾Ð¿Ñ†Ð¸Ñ Ð¿Ð¾Ð·Ð²Ð¾Ð»Ñет изменить их. -.PP -.BR "КонÑольный вывод" . -.PP -Эта Ð¾Ð¿Ñ†Ð¸Ñ Ð´Ð¾Ñтупна, еÑли Midnight Commander запущен на конÑоли Linux или -FreeBSD. Она уÑтанавливает чиÑло Ñтрок, которые будут оÑтавлены Ð´Ð»Ñ Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ -вывода команды. -.PP -.B Прочие наÑтройки -.PP -.IR "Линейка меню" . -ЕÑли включено, оÑновное меню программы будет отображатьÑÑ Ð¿Ð¾ÑтоÑнно вверху -Ñкрана. По умолчанию включено. -.PP -.IR "ÐšÐ¾Ð¼Ð°Ð½Ð´Ð½Ð°Ñ Ñтрока" . -ЕÑли включено, в нижней чаÑти Ñкрана будет доÑтупна ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð°Ñ Ñтрока. -По умолчанию включено. -.PP -.IR "Метки клавиш" . -ЕÑли включено, внизу Ñкрана будут отображатьÑÑ 10 меток, ÑоответÑтвующих -функциональным клавишам -.BR "F1 \- F10" . -По умолчанию включено. -.PP -.IR "Строка подÑказки". -ЕÑли включено, ниже панелей будут отображатьÑÑ Ð¾Ð´Ð½Ð¾Ñтрочные подÑказки -по приёмам работы в Midnight Commander. По умолчанию включено. -.PP -.IR "Заголовок xterm" . -При иÑполнении в ÑмулÑторе терминала ÑиÑтемы X11 Midnight Commander -отображает в заголовке xterm текущий каталог и изменÑет Ñтот заголовок -при необходимоÑти. ЕÑли ваш ÑмулÑтор терминала неиÑправен и вы видите -неверный заголовок при Ñтарте или изменении каталога, выключите Ñту опцию. -По умолчанию включено. -.PP -.IR "Свободное меÑто" . -ЕÑли включено, на нижней рамке панели будет показано Ñвободное меÑто и общий -размер текущей файловой ÑиÑтемы. По умолчанию включено. -.\"NODE " Panel options" -.SH " ÐаÑтройки панелей" -.B ОÑновные наÑтройки панелей -.PP -.IR "Показывать мини\-ÑтатуÑ" . -ЕÑли включено, в нижней чаÑти каждой панели выводитÑÑ Ñтрока информации -о выделенном подÑветкой файле или каталоге каждой панели. По умолчанию включено. -.PP -.IR "Размеры в единицах СИ" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, то Midnight Commander отображает размеры файлов -и каталогов Ñ Ð¿Ñ€ÐµÑ„Ð¸ÐºÑами СИ (по оÑнованию 10). По умолчанию Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°. -Ð’ Ñтом Ñлучае Midnight Commander отображает размеры Ñ Ð¿Ñ€ÐµÑ„Ð¸ÐºÑами МЭК (по -оÑнованию 2). -.PP -.IR "Смешивать файлы/каталоги" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, имена файлов и каталогов отображаютÑÑ Ð²Ð¿ÐµÑ€ÐµÐ¼ÐµÐ¶ÐºÑƒ. -ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, каталоги (и ÑÑылки на каталоги) показываютÑÑ Ð² начале -ÑпиÑка, а имена файлов \- поÑле имен вÑех каталогов. По умолчанию выключено. -.PP -.IR "Показывать резервные (Backup) файлы" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, Midnight Commander не показывает файлы, имена которых -заканчиваютÑÑ Ð½Ð° '~' (подобно ключу \-B команды ls в GNU). По умолчанию включено. -.PP -.IR "Показывать Ñкрытые файлы" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, Midnight Commander показывает вÑе файлы, имена которых -начинаютÑÑ Ñ‚Ð¾Ñ‡ÐºÐ¾Ð¹ (как ls \-a). По умолчанию включено. -.PP -.IR "БыÑÑ‚Ñ€Ð°Ñ Ð·Ð°Ð³Ñ€ÑƒÐ·ÐºÐ° каталога" . -По умолчанию Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°. ЕÑли вы активизируете её, Midnight -Commander будет иÑпользовать Ð´Ð»Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð° Ñодержимого каталога Ñледующий трюк: -Ñодержимое каталога перечитываетÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ в том Ñлучае, еÑли изменилаÑÑŒ -запиÑÑŒ в i\-node каталога, то еÑть еÑли в каталоге ÑоздавалиÑÑŒ или удалÑлиÑÑŒ -файлы; еÑли изменÑлиÑÑŒ только запиÑи в i\-node файлов каталога (изменÑлÑÑ -размер файла, режим доÑтупа или владелец и Ñ‚.п.) Ñодержимое панели -не обновлÑетÑÑ. Ð’ Ñтом Ñлучае (еÑли Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°) вы должны обновлÑть ÑпиÑок -файлов вручную (иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ ÐºÐ»Ð°Ð²Ð¸Ð°Ñ‚ÑƒÑ€Ð½Ð¾Ðµ Ñочетание C\-r). -.PP -.IR "Отметка перемещает курÑор" . -Когда вы отмечаете файл (клавишей -.BR Insert ), -то по умолчанию подÑветка на имени файла ÑмещаетÑÑ Ð½Ð° одну Ñтроку вниз. -.PP -.IR "Инвертировать только файлы" . -ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð° (по умолчанию она включена), инвертирование -выбора применÑетÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ к файлам, но не к каталогам. Выбор каталогов -не изменÑетÑÑ. ЕÑли не уÑтановлена, производитÑÑ Ð¸Ð½Ð²ÐµÑ€Ñ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ðµ как файлов, -так и каталогов. Ð’Ñе невыбранные объекты ÑтановÑÑ‚ÑÑ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ñ‹Ð¼Ð¸ и наоборот. -.PP -.IR "ПроÑÑ‚Ð°Ñ Ð¿ÐµÑ€ÐµÑтановка" . -ЕÑли обе панели Ñодержат ÑпиÑки файлов и каталогов, проÑÑ‚Ð°Ñ Ð¿ÐµÑ€ÐµÑтановка -предÑтавлÑет Ñобой изменение раÑÐ¿Ð¾Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð¿Ð°Ð½ÐµÐ»ÐµÐ¹ на Ñкране: Ð¿Ñ€Ð°Ð²Ð°Ñ Ð¿Ð°Ð½ÐµÐ»ÑŒ -ÑтановитÑÑ Ð»ÐµÐ²Ð¾Ð¹ и наоборот. ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, панели Ñо ÑпиÑками файлов -обмениваютÑÑ Ñвоим Ñодержимым, ÑохранÑÑ Ñ„Ð¾Ñ€Ð¼Ð°Ñ‚ ÑпиÑка и параметры Ñортировки. -По умолчанию выключено. -.PP -.IR "ÐвтоÑохранение наÑтроек панелей" . -ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð° (по умолчанию она выключена), то при выходе из -Midnight Commander'а текущие наÑтройки панелей ÑохранÑÑŽÑ‚ÑÑ Ð² файле -~/.config/mc/panels.ini. -.PP -.B ÐÐ°Ð²Ð¸Ð³Ð°Ñ†Ð¸Ñ -.PP -.IR "ÐÐ°Ð²Ð¸Ð³Ð°Ñ†Ð¸Ñ Ð² Ñтиле lynx" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, вы имеете возможноÑть иÑпользовать клавиши -.B Rigth -Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° в подÑвеченный в данный момент каталог и -.B Left -Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° в родительÑкий по отношению к текущему каталог (при уÑловии, -что ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð°Ñ Ñтрока пуÑта). По умолчанию Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°. -.PP -.IR "Страничное лиÑтание" . -ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ ÑƒÑтановлена (по умолчанию она уÑтановлена), то когда курÑор -(подÑветка) доÑтигает конца или начала ÑпиÑка файлов, отображаемого на -панели, будет производитьÑÑ Ñмещение на половину Ñтого ÑпиÑка (то еÑть -половина отображаемого ÑпиÑка оÑтаетÑÑ Ð½Ð° Ñкране, а половина пропадает, -заменÑÑÑÑŒ Ñледующими пунктами общего ÑпиÑка). ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ Ð½Ðµ уÑтановлена, -проиÑходит Ñмещение только на одну Ñтроку. -.PP -.IR "Страничное лиÑтание мышью" . -ОпределÑет, будет ли прокрутка информации (scrolling) в панелÑÑ…, -оÑущеÑтвлÑÐµÐ¼Ð°Ñ Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ мышки, производитьÑÑ Ñтраницами или на одну -Ñтроку. -.PP -.IR "Центрированное лиÑтание" . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, Ñодержимое панели будет пролиÑтыватьÑÑ, а курÑор -будет находитьÑÑ Ð² Ñередине колонки ÑпиÑка файлов. Эта Ð¾Ð¿Ñ†Ð¸Ñ Ð½Ðµ применÑетÑÑ -к Ñтраничному лиÑтанию \- в Ñтом Ñлучае Ð¿Ð¾Ð·Ð¸Ñ†Ð¸Ñ ÐºÑƒÑ€Ñора изменитÑÑ. -.PP -.B РаÑцветка файлов -.PP -По умолчанию вÑÑ Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶Ð°ÑŽÑ‚ÑÑ Ð¾Ð´Ð½Ð¸Ð¼ цветом, но вы можете -Ñделать так, чтобы -.I права доÑтупа -и -.I типы файлов -были выделены другими -.\"LINK2" -цветами\&. -.\"Colors" -ЕÑли включено выделение цветом прав доÑтупа, Ð¿Ð¾Ð»Ñ -.I perm -и -.I mode -в -.\"LINK2" -форматах вывода\&, -.\"Listing Format..." -показывающие права пользователÑ, запуÑтившего программу Midnight -Commander, выделены цветом, определённым ключевым Ñловом -.IR selected . -ЕÑли разрешено, подÑветка имён файлов производитÑÑ Ð½Ð° оÑновании -правил из файла %sysconfdir%/mc/filehighlight.ini. Смотрите -.\"LINK2" -ПодÑветка имён файлов -.\"Filenames Highlight" -Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð±Ð¾Ð»ÑŒÑˆÐµÐ¹ информации. -.PP -.B БыÑтрый поиÑк -.PP -.\"LINK2" -БыÑтрый поиÑк файлов -.\"Quick search" -может работать в одном из трёх режимов: Ñ ÑƒÑ‡Ñ‘Ñ‚Ð¾Ð¼ региÑтра имён файлов, -без учёта региÑтра или в ÑоответÑтвии Ñ Ð¿Ð¾Ñ€Ñдком Ñортировки файлов в панели: -Ñ ÑƒÑ‡Ñ‘Ñ‚Ð¾Ð¼ региÑтра или без. Режим по умолчанию \- иÑпользование порÑдка -Ñортировки файлов в панели. -.\"NODE " Confirmation" -.SH " ПодтверждениÑ" -ИÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ Ñто диалоговое окно, вы можете Ñделать так, чтобы перед -выполнением операций удалениÑ, перезапиÑи файла, запуÑка файла на выполнение, -перед выходом из программы MC, перед удалением каталога из каталогов быÑтрого -доÑтупа, а также перед очиÑткой иÑтории выдавалÑÑ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ñ‹Ð¹ Ð·Ð°Ð¿Ñ€Ð¾Ñ -на подтверждение. -.\"NODE " Appearance" -.SH " Оформление" -ИÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ Ñто диалоговое окно, вы можете выбрать Ñкин и разрешить отриÑовку -теней у диалоговых окон и выпадающих меню. -.PP -Ð”Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð±Ð¾Ð»ÐµÐµ подробной информации о Ñкинах обратитеÑÑŒ к разделу -.\"LINK2" -Внешний вид\&. -.\"Skins" -.PP -.I Тени. -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, вÑе диалоговые окна и выпадающие меню будут иметь -тени. -.\"NODE " Display bits" -.SH " Биты Ñимволов..." -Этот пункт меню иÑпользуетÑÑ Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ð´Ð¸Ð°Ð¿Ð°Ð·Ð¾Ð½Ð° отображаемых на -диÑплее Ñимволов. ЕÑли терминал поддерживает только 7\-битный вывод, то -нужно выбрать уÑтановку "7 бит". Выбрав "ISO\-8859\-1" вы получите вÑе -Ñимволы из таблицы ISO\-8859\-1, а выбор уÑтановки "Полный 8\-битный вывод" -имеет ÑмыÑл на тех терминалах, которые могут отображать вÑе 8\-битовые -Ñимволы. -.\"NODE " Learn keys" -.SH " РаÑпознавание клавиш..." -Пункт -.\"LINK2" -РаÑпознавание клавиш (Learn keys) -.\"Learn keys" -вызывает диалоговое окно, в котором вы можете протеÑтировать работу -некоторых клавиш ( -.BR "F1 \- F20, Home, End" ), -которые работают не на вÑех типах терминалов. -.PP -Ð’ диалоговом окне поÑвлÑетÑÑ Ñ‚Ð°Ð±Ð»Ð¸Ñ†Ð° Ñ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñми клавиш, которые могут -теÑтироватьÑÑ. Ð’Ñ‹ можете перемещать подÑветку по названиÑм, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ -клавишу -.B Tab -или клавиши, применÑемые в редакторе vi ('h' влево, 'j' вниз, 'k' вверх, 'l' -вправо). ЕÑли один раз нажать на клавиши Ñо Ñтрелками, поÑле чего возле -их названий в таблице поÑвитÑÑ Ð¿Ð¾Ð¼ÐµÑ‚ÐºÐ° -.IR OK , -то их тоже можно будет иÑпользовать Ð´Ð»Ñ ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸ÐµÐ¼. -.PP -Ð”Ð»Ñ Ñ‚ÐµÑÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹ клавиш нужно нажать каждую клавишу из -перечиÑленных в таблице. ЕÑли она работает нормально, возле её Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñ -в таблице поÑвитÑÑ Ð¿Ð¾Ð¼ÐµÑ‚ÐºÐ° -.IR OK . -ПоÑле поÑÐ²Ð»ÐµÐ½Ð¸Ñ Ñ‚Ð°ÐºÐ¾Ð¹ пометки клавиша начинает работать в её обычном режиме. -Ðапример, первое нажатие на клавишу -.B F1 -приводит только к поÑвлению пометки (еÑли она работает нормально), а при -Ñледующих нажатиÑÑ… будет вызыватьÑÑ Ð¾ÐºÐ½Ð¾ подÑказки. То же Ñамое -отноÑитÑÑ Ðº клавишам Ñтрелок. Клавиша -.B Tab -работает вÑегда. -.PP -ЕÑли какаÑ\-то клавиша не работает, то поÑле Ð½Ð°Ð¶Ð°Ñ‚Ð¸Ñ Ð½Ð° неё пометка -.I OK -не поÑвитÑÑ. Ð’ таком Ñлучае можно ÑвÑзать ту реакцию ÑиÑтемы, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ -должна была поÑледовать за нажатием неработающей (отÑутÑтвующей) -клавиши, Ñ Ð½Ð°Ð¶Ð°Ñ‚Ð¸ÐµÐ¼ другой клавиши или комбинации клавиш. Ð”Ð»Ñ Ñтого надо -перемеÑтить подÑветку на название неработающей клавиши (иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ Ð¼Ñ‹ÑˆÑŒ -или клавишу -.BR Tab ) -и нажать -.B Enter -или клавишу -.BR пробела . -Должно поÑвитьÑÑ Ð¾ÐºÐ½Ð¾ краÑного цвета, в котором Ð²Ð°Ñ Ð¿Ñ€Ð¾ÑÑÑ‚ нажать -клавишу, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð±ÑƒÐ´ÐµÑ‚ иÑпользоватьÑÑ Ð²Ð¼ÐµÑто неработающей. Ð”Ð»Ñ Ð¾Ñ‚Ð¼ÐµÐ½Ñ‹ -операции нажмите -.B Esc -и дождитеÑÑŒ, пока краÑное окно иÑчезнет. Либо выберите и нажмите ту -комбинацию клавиш, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð±ÑƒÐ´ÐµÑ‚ Ñлужить заменой Ð´Ð»Ñ Ð½ÐµÑ€Ð°Ð±Ð¾Ñ‚Ð°ÑŽÑ‰ÐµÐ¹ -клавиши (и тоже дождитеÑÑŒ Ð·Ð°ÐºÑ€Ñ‹Ñ‚Ð¸Ñ Ð¾ÐºÐ½Ð°). -.PP -Когда закончите теÑтирование и наÑтройку вÑех клавиш, вы можете -Ñохранить Ñти наÑтройки в Ñекции [terminal:TERM] вашего файла -.B ~/.config/mc/ini -(где TERM \- название иÑпользуемого терминала) либо отказатьÑÑ Ð¾Ñ‚ -Ð·Ð°Ð¿Ð¾Ð¼Ð¸Ð½Ð°Ð½Ð¸Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ð¹. ЕÑли вÑе клавиши работают нормально, то -Ñохранение, конечно, не требуетÑÑ. -.\"NODE " Virtual FS" -.SH " Виртуальные файловые ÑиÑтемы" -Этот пункт меню позволÑет задать некоторые параметры кÑÑˆÐ¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ -информации о -.\"LINK2" -виртуальных файловых ÑиÑтемах\&. -.\"Virtual File System" -.PP -С целью уÑÐºÐ¾Ñ€ÐµÐ½Ð¸Ñ Ð´Ð¾Ñтупа к файлам Midnight Commander ÑохранÑет в -оперативной памÑти информацию, отноÑÑщуюÑÑ Ðº некоторым виртуальным -файловым ÑиÑтемам (например, ÑпиÑки файлов в каталогах удалённых -FTP\-Ñерверов). -.PP -Кроме того, Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð´Ð¾Ñтупа к Ñодержимому Ñжатых архивов -(например, Ñжатых tar\-файлов) Midnight Commander Ñоздаёт временные файлы -на жеÑтком диÑке. -.PP -ПоÑкольку в обоих Ñтих ÑлучаÑÑ… раÑходуютÑÑ Ñ€ÐµÑурÑÑ‹ компьютера, у Ð²Ð°Ñ -может поÑвитьÑÑ Ð¶ÐµÐ»Ð°Ð½Ð¸Ðµ наÑтроить некоторые параметры таким образом, -чтобы уменьшить Ñти раÑходы или повыÑить ÑкороÑть доÑтупа к чаÑто -иÑпользуемым файловым ÑиÑтемам. -.PP -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема архиватора TAR очень разумно организует работу Ñ -архивными файлами: она ÑохранÑет на диÑке Ñтруктуру каталогов архива и, -когда возникает необходимоÑть Ð¾Ð±Ñ€Ð°Ñ‰ÐµÐ½Ð¸Ñ Ðº информации из tar\-файла, -иÑпользует Ñтот ÑпиÑок Ð´Ð»Ñ Ð¸Ð·Ð²Ð»ÐµÑ‡ÐµÐ½Ð¸Ñ Ð½ÑƒÐ¶Ð½Ð¾Ð³Ð¾ файла. -.PP -Ð’ общем Ñлучае tar\-файлы обычно хранÑÑ‚ÑÑ Ð² Ñжатом виде (проÑтые -tar\-файлы \- вымирающее Ñвление), и в Ñилу природы таких файлов -(Ñтруктура подкаталогов Ð´Ð»Ñ tar\-файлов недоÑтупна Ð´Ð»Ñ Ð¼Ð³Ð½Ð¾Ð²ÐµÐ½Ð½Ð¾Ð¹ -загрузки/отображениÑ), Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема TAR должна разархивировать файлы -на диÑк во временный каталог и затем предÑтавить обращение к -разархивированным файлам как обращение к tar\-файлу. -.PP -РпоÑкольку мы вÑе любим быÑтро пролиÑтывать файлы и хранить их в виде -tar\-архивов, Ñтало Ñамой обычной Ñитуацией когда Ñначала проÑматривают -такой файл, выходÑÑ‚ из него, а потом обращаютÑÑ Ðº нему Ñнова. ПоÑкольку -Ñ€Ð°Ð·Ð°Ñ€Ñ…Ð¸Ð²Ð°Ñ†Ð¸Ñ \- Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ñ Ð¼ÐµÐ´Ð»ÐµÐ½Ð½Ð°Ñ, Midnight Commander кеширует -информацию в памÑти на некоторое времÑ. По иÑтечении Ñтого интервала -времени вÑе реÑурÑÑ‹, выделенные Ñтой файловой ÑиÑтеме, будут -оÑвобождены. По умолчанию величина Ñтого интервала уÑтанавливаетÑÑ -равной 1 минуте. Смотрите также -.\"LINK2" -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема TAR\&. -.\"TAR File System" -.PP -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема FTP ÑохранÑет ÑпиÑок каталогов, полученный Ñ -FTP\-Ñервера, в памÑти (в кеше). ВремÑ, в течение которого Ñтот ÑпиÑок -хранитÑÑ Ð² кеше, задаётÑÑ Ð¾Ð¿Ñ†Ð¸ÐµÐ¹ -.I Тайм\-аут кеша каталога FTP. -Слишком маленькое значение Ñтого параметра будет замедлÑть вÑе операции -Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð¾Ð¹ ÑиÑтемой FTP, потому что каждое обращение к ней будет -означать реальное обращение к удалённому FTP\-Ñерверу. -.PP -Кроме того, в том же диалоговом окне можно задать Ð¸Ð¼Ñ Ð¿Ñ€Ð¾ÐºÑи\-Ñервера -(proxy host), который будет иÑпользоватьÑÑ Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐºÐ°Ñ‡ÐºÐ¸ файлов по ftp и -Ñконфигурировать Midnight Commander таким образом, чтобы вÑегда работать -через прокÑи\-Ñервер. -.PP -.I Пароль анонимного FTP: -\- пароль, иÑпользуемый когда вы региÑтрируетеÑÑŒ как анонимный пользователь -"anonymous". Ð”Ð»Ñ Ð½ÐµÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ñ… Ñайтов требуетÑÑ Ð¿Ð¾Ð»Ð½Ð¾Ñ†ÐµÐ½Ð½Ñ‹Ð¹ Ñлектронный адреÑ, -Ñ Ð´Ñ€ÑƒÐ³Ð¾Ð¹ Ñтороны, вероÑтно, вы не захотите указывать Ñвой наÑтоÑщий -Ñлектронный Ð°Ð´Ñ€ÐµÑ Ð´Ð»Ñ Ñайтов, которым не доверÑете, оÑобенно еÑли -не иÑпользуетÑÑ Ñ„Ð¸Ð»ÑŒÑ‚Ñ€Ð°Ñ†Ð¸Ñ Ð½ÐµÐ¶ÐµÐ»Ð°Ñ‚ÐµÐ»ÑŒÐ½Ð¾Ð¹ корреÑпонденции. -.PP -Также можно разрешить иÑпользование файла -.BR ~/.netrc , -Ñодержащего имена пользователей и пароли Ñерверов FTP. -Формат файла .netrc опиÑан в .netrc (5). -.PP -Смотрите раздел о -.\"LINK2" -файловой ÑиÑтеме FTP -.\"FTP File System" -Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð¾Ð¹ информации. -.\"NODE " Save Setup" -.SH " Сохранение уÑтановок" -При загрузке Midnight Commander пытаетÑÑ Ñчитать Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ñ€Ð°Ð·Ð»Ð¸Ñ‡Ð½Ñ‹Ñ… -уÑтановочных параметров из файла -.BR ~/.config/mc/ini . -ЕÑли такого файла не ÑущеÑтвует, Ð½ÐµÐ¾Ð±Ñ…Ð¾Ð´Ð¸Ð¼Ð°Ñ Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð¸Ñ‰ÐµÑ‚ÑÑ Ð² -общеÑиÑтемном конфигурационном файле -.BR mc.ini . -Этот файл раÑполагаетÑÑ Ð² каталоге, путь к которому можно определить, -запуÑтив команду -.BR "mc \-f" . -(Ñто можно Ñделать даже из командной Ñтроки MC). ЕÑли и Ñтого файла не -ÑущеÑтвует, -.I MC -иÑпользует уÑтановки по умолчанию. -.PP -Команда -.I Сохранить наÑтройки -Ñоздаёт файл -.BR ~/.config/mc/ini , -в котором запиÑываютÑÑ Ñ‚ÐµÐºÑƒÑ‰Ð¸Ðµ Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð¾Ð², задаваемых опциÑми -меню -.\"LINK2" -ЛеваÑ, ÐŸÑ€Ð°Ð²Ð°Ñ -.\"Left and Right Menus" -и -.\"LINK2" -ÐаÑтройки\&. -.\"Options Menu" -.PP -ЕÑли вы включите опцию -.I ÐвтоÑохранение наÑтроек -(пункт меню "ÐаÑтройки/КонфигурациÑ"), -.I MC -будет автоматичеÑки ÑохранÑть текущие наÑтройки при выходе из программы. -.PP -Ð—Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð½ÐµÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ñ… параметров не могут быть изменены через пункты меню. -Ð”Ð»Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ð¹ Ñтих параметров вы должны отредактировать файл -наÑтроек Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ какой\-либо программы\- редактора. Подробнее об Ñтих -параметрах Ñмотрите в разделе -.\"LINK2" -.I Специальные уÑтановки\&. -.\"Special Settings" -.\"NODE "Executing operating system commands" -.SH "Выполнение команд операционной ÑиÑтемы" -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы во Ð²Ñ€ÐµÐ¼Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹ Ñ MC запуÑтить любую команду ОС, вы -должны либо набрать Ð¸Ð¼Ñ ÑоответÑтвующей программы в командной Ñтроке, -либо выбрать Ð¸Ð¼Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ñ‹ в одной из панелей (перемеÑтив подÑветку на -Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° программы), а затем нажать клавишу -.BR Enter . -.PP -ЕÑли вы нажимаете клавишу -.B Enter -в тот момент, когда подÑветка указывает на Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð°, не ÑвлÑющегоÑÑ -иÑполнÑемым, Midnight Commander Ñравнивает раÑширение выбранного файла -Ñ Ñ€Ð°ÑширениÑми, пропиÑанными в -.\"LINK2" -файле раÑширений\&. -.\"Edit Extension File" -ЕÑли в файле раÑширений найдётÑÑ Ð¿Ð¾Ð´Ñ€Ð°Ð·Ð´ÐµÐ», задающий процедуры обработки -файлов Ñ Ð´Ð°Ð½Ð½Ñ‹Ð¼ раÑширением, то обработка файла производитÑÑ Ð² -ÑоответÑтвии Ñ Ð·Ð°Ð´Ð°Ð½Ð½Ñ‹Ð¼Ð¸ в Ñтом подразделе командами. Перед обработкой -выполнÑÑŽÑ‚ÑÑ Ð¿Ñ€Ð¾Ñтые -.\"LINK2" -макроподÑтановки\&. -.\"Macro Substitution" -.\"NODE " The cd internal command" -.SH " Ð’ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð° cd" -Команда -.I cd -не передаётÑÑ Ð½Ð° иÑполнение оболочке, а интерпретируетÑÑ Ñамой -программой Midnight Commander. ПоÑтому при её запуÑке возможны не вÑе -удобные макрораÑÑˆÐ¸Ñ€ÐµÐ½Ð¸Ñ Ð¸ подÑтановки, доÑтупные в оболочке, а только -чаÑть из них: -.PP -.I Замена тильды -Символ тильды (~) будет заменен именем вашего домашнего каталога, а еÑли -вы добавите поÑле тильды Ð¸Ð¼Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ, Ñта конÑÑ‚Ñ€ÑƒÐºÑ†Ð¸Ñ Ð±ÑƒÐ´ÐµÑ‚ -заменена на Ð¸Ð¼Ñ Ð´Ð¾Ð¼Ð°ÑˆÐ½ÐµÐ³Ð¾ каталога указанного пользователÑ. -.PP -Ðапример, ~guest \- Ñто домашний каталог Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ guest, в то Ð²Ñ€ÐµÐ¼Ñ -как ~/guest \- Ñто каталог guest в вашем домашнем каталоге. -.PP -.I Предыдущий каталог -вы можете перейти в предыдущий каталог, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ Ñпециальное Ð¸Ð¼Ñ '\-', -то еÑть выполнив команду: -.B cd \- -.PP -.I Каталоги в CDPATH -ЕÑли каталог, указанный команде -.BR cd , -не ÑвлÑетÑÑ Ð¿Ð¾Ð´ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð¾Ð¼ текущего каталога, то Midnight Commander -иÑпользует значение переменной Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ -.B CDPATH -Ð´Ð»Ñ Ð¿Ð¾Ð¸Ñка указанного каталога во вÑех каталогах, перечиÑленных в Ñтой -переменной. -.PP -Ðапример, еÑли переменной -.B CDPATH -приÑвоено значение -.BR ~/src:/usr/src , -то из любого меÑта в файловой ÑиÑтеме вы Ñможете перейти в любой -подкаталог каталогов -.B ~/src -и -.BR /usr/src , -иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ отноÑительные имена (cd linux вызовет переход в -/usr/src/linux). -.\"NODE " Macro Substitution" -.SH " МакроподÑтановки" -Перед выполнением команд, задаваемых пунктами -.\"LINK2" -пользовательÑкого меню\&, -.\"Edit Menu File" -вызываемых -.\"LINK2" -по раÑширению имени файла\&, -.\"Edit Extension File" -или запуÑкаемых из командной Ñтроки ввода, вначале выполнÑÑŽÑ‚ÑÑ Ð¿Ñ€Ð¾Ñтые -макроподÑтановки. -.PP -.TP -.I "%i" -ОтÑтуп из пробелов, равный текущему положению курÑора. Только Ð´Ð»Ñ Ð¼ÐµÐ½ÑŽ -редактора. -.TP -.I "%y" -Тип ÑинтакÑиÑа текущего файла. Только Ð´Ð»Ñ Ð¼ÐµÐ½ÑŽ редактора. -.TP -.I "%k" -Ð˜Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° блока редактора. -.TP -.I "%e" -Ð˜Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° протокола ошибок иÑÐ¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ñценариев редактора. -.TP -.I "%m" -Ð˜Ð¼Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ³Ð¾ файла меню. -.TP -.I "%f" и "%p" -Ð’ файле меню файлового менеджера: текущее Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° в активной панели. -Ð’ файле меню вÑтроенного редактора: Ð¸Ð¼Ñ Ð¾Ñ‚ÐºÑ€Ñ‹Ñ‚Ð¾Ð³Ð¾ файла. -.TP -.I "%x" -РаÑширение текущего файла. -.TP -.I "%b" -Ð˜Ð¼Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ³Ð¾ файла без раÑширениÑ. -.TP -.I "%d" -Ð˜Ð¼Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ³Ð¾ каталога. -.TP -.I "%F" -Текущее Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° в неактивной панели. -.TP -.I "%D" -Ð˜Ð¼Ñ Ñ‚ÐµÐºÑƒÑ‰ÐµÐ³Ð¾ каталога в неактивной панели. -.TP -.I "%t" -Отмеченные файлы. -.TP -.I "%T" -Файлы, отмеченные в неактивной панели. -.TP -.I "%u" и "%U" -Подобны макроÑам %t и %T, но дополнительно ÑнимаетÑÑ Ð¾Ñ‚Ð¼ÐµÑ‚ÐºÐ° Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð². -Их можно иÑпользовать в Ñкриптах, заданных Ð´Ð»Ñ Ð¿ÑƒÐ½ÐºÑ‚Ð° меню или -аÑÑоциированных Ñ Ñ€Ð°Ñширением файла, только один раз, поÑкольку поÑле их -иÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ð¾Ð¼ÐµÑ‡ÐµÐ½Ð½Ñ‹Ñ… файлов не будет. -.TP -.I "%s" и "%S" -Выбранные файлы: помеченные файлы, еÑли такие еÑть; в противном Ñлучае -файл, Ð¸Ð¼Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð³Ð¾ подÑвечено. -.TP -.I "%cd" -Это Ñпециальный макроÑ, иÑпользуемый Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° из текущего каталога в -каталог, указанный перед Ñтим макроÑом. ИÑпользуетÑÑ Ð² оÑновном Ð´Ð»Ñ -Ð¾Ð±Ñ€Ð°Ñ‰ÐµÐ½Ð¸Ñ Ðº -.\"LINK2" -виртуальным файловым ÑиÑтемам\&. -.\"Virtual File System" -.TP -.I "%view" -Этот Ð¼Ð°ÐºÑ€Ð¾Ñ Ð¸ÑпользуетÑÑ Ð´Ð»Ñ Ð²Ñ‹Ð·Ð¾Ð²Ð° вÑтроенной программы проÑмотра. -Может иÑпользоватьÑÑ ÐºÐ°Ðº Ñ Ð°Ñ€Ð³ÑƒÐ¼ÐµÐ½Ñ‚Ð°Ð¼Ð¸, так и без них. ЕÑли заданы -аргументы, они должны быть заключены в фигурные Ñкобки. -.IP -Ðргументами могут быть: -.I ascii -\- Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ²Ð¾Ð´Ð° программы проÑмотра в режим ascii; -.I hex -\- Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ²Ð¾Ð´Ð° программы проÑмотра в режим hex; -.I nroff -\- Ð´Ð»Ñ ÑƒÐºÐ°Ð·Ð°Ð½Ð¸Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ðµ проÑмотра, что необходимо интерпретировать -выделенные (bold) и подчеркнутые поÑледовательноÑти nroff; -.I unformatted -\- указывает программе проÑмотра, что не нужно иÑпользовать команды -nroff Ð´Ð»Ñ Ð²Ñ‹Ð´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¸Ð»Ð¸ Ð¿Ð¾Ð´Ñ‡ÐµÑ€ÐºÐ¸Ð²Ð°Ð½Ð¸Ñ Ñ‚ÐµÐºÑта; -.TP -.I "%%" -Символ % -.TP -.I "%{любой текÑÑ‚}" -Ð—Ð°Ð¿Ñ€Ð¾Ñ Ð½Ð° подÑтановку. Будет выдаватьÑÑ Ð¾ÐºÐ½Ð¾ ввода, а текÑÑ‚ из Ñкобок -выводитÑÑ ÐºÐ°Ðº подÑказка. ÐœÐ°ÐºÑ€Ð¾Ñ Ð·Ð°Ð¼ÐµÐ½ÑетÑÑ Ð½Ð° текÑÑ‚, введённый -пользователем в окне ввода. Пользователь может нажать Esc или F10 Ð´Ð»Ñ -того, чтобы отказатьÑÑ Ð¾Ñ‚ ввода. Этот Ð¼Ð°ÐºÑ€Ð¾Ñ Ð¿Ð¾ÐºÐ° не работает в -командной Ñтроке. -.TP -.I "%var{ENV\-VAR:default}" -Этот Ð¼Ð°ÐºÑ€Ð¾Ñ Ð±ÑƒÐ´ÐµÑ‚ заменÑтьÑÑ Ð½Ð° значение переменной Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ ENV\-VAR, -еÑли она уÑтановлена, в противном Ñлучае будет иÑпользовано значение -default. Это подобно конÑтрукции ${VAR\-def} в оболочке Борна. -.\"NODE " The subshell support" -.SH " Поддержка subshell" -Поддержка subshell \- Ñто Ð¾Ð¿Ñ†Ð¸Ñ ÐºÐ¾Ð¼Ð¿Ð¸Ð»Ñции, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ð°ÐµÑ‚ Ñ Ð¾Ð±Ð¾Ð»Ð¾Ñ‡ÐºÐ°Ð¼Ð¸ -bash, tcsh и zsh. -.PP -ЕÑли поддержка subshell включена, то Midnight Commander будет порождать -точную копию (a concurrent copy) вашей оболочки (ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»ÐµÐ½Ð° в -переменной Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ -.B SHELL -или, еÑли Ñта Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ð½Ðµ определена, в файле /etc/passwd) и запуÑкать -её в пÑевдо\-терминале, вмеÑто того, чтобы каждый раз вызывать новую -оболочку Ð´Ð»Ñ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ‹. Ð’Ð²ÐµÐ´Ñ‘Ð½Ð½Ð°Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð° передаётÑÑ subshell. -Это позволÑет изменÑть Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ñ‹Ñ… окружениÑ, иÑпользовать -функции shell и определÑть алиаÑÑ‹ (aliases), которые будут дейÑтвовать -до выхода из программы Midnight Commander. -.PP -ЕÑли вы иÑпользуете -.BR bash , -можно указать команды, которые будут выполнÑтьÑÑ Ð¿Ñ€Ð¸ запуÑке -subshell, в файле -.B ~/.local/share/mc/bashrc -и Ñпециальную карту раÑкладки клавиатуры в файле -.BR ~/.local/share/mc/inputrc . -ЕÑли вы иÑпользуете -.BR zsh , -можно указать команды, которые будут выполнÑтьÑÑ Ð¿Ñ€Ð¸ запуÑке -subshell, в файле -.B ~/.local/share/mc/.zshrc . -Пользователи -.B tcsh -могут задать выполнÑемые при запуÑке команды в файле -.BR ~/.local/share/mc/tcshrc . -.PP -Во Ð²Ñ€ÐµÐ¼Ñ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð¿Ñ€Ð¸Ð»Ð¾Ð¶ÐµÐ½Ð¸Ñ Ð² subshell можно в любой момент нажать -комбинацию клавиш -.B C\-o -Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ð² Midnight Commander (выполнÑÐµÐ¼Ð°Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð° или -приложение будут оÑтановлены). ЕÑли вы прервали таким образом иÑполнение -команды, вы не Ñможете запуÑтить другую внешнюю команду, пока не -завершите работу оÑтановленного приложениÑ. -.PP -ОÑобенноÑтью иÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ subshell ÑвлÑетÑÑ Ñ‚Ð¾, что подÑказка (prompt), -Ð²Ñ‹Ð²Ð¾Ð´Ð¸Ð¼Ð°Ñ Midnight Commander будет той же Ñамой, что и в вашей обычной -оболочке. -.PP -Ð’ разделе -.\"LINK2" -Опции запуÑка -.\"OPTIONS" -приведена Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸Ñ‚ÐµÐ»ÑŒÐ½Ð°Ñ Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ñ Ð¾ том, как можно управлÑть -(наÑтроить) subshell. -.\"NODE "Chmod" -.SH "Права доÑтупа" -Диалоговое окно "Права доÑтупа" предоÑтавлÑет удобный Ð¸Ð½Ñ‚ÐµÑ€Ñ„ÐµÐ¹Ñ Ðº -команде chmod \- команде Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð² доÑтупа к файлам и -каталогам. ДоÑтуп к Ñтому окну можно получить по "горÑчей" комбинации -клавиш \fBC\-x c\fR. -.PP -Диалоговое окно "Права доÑтупа" ÑоÑтоит из двух чаÑтей: "\fIПрава доÑтупа\fR" -и "\fIФайл\fR". -.PP -Ð’ чаÑти "Файл" отображаетÑÑ Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° или каталога и права доÑтупа на -него в воÑьмеричной форме, а также указаны владелец и группа файла. -.PP -Ð’ чаÑти "Права доÑтупа" раÑположены двенадцать кнопок-флажков, ÐºÐ°Ð¶Ð´Ð°Ñ -из которых ÑоответÑтвует одному атрибуту доÑтупа. ИзменÑть уÑтановки -атрибутов можно Ð´Ð²ÑƒÐ¼Ñ ÑпоÑобами. -.PP -При первом ÑпоÑобе непоÑредÑтвенно изменÑетÑÑ ÑоÑтоÑние кнопок-флажков. -Ð”Ð»Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ð¹ атрибутов надо выбрать ÑоответÑтвующую кнопку -и нажать клавишу -.BR пробела . -.PP -Ð”Ð»Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¿Ð¾ кнопкам можно иÑпользовать -.B клавиши\-Ñтрелки -или клавишу -.BR Tab . -ИзменÑемые атрибуты помечаютÑÑ Ð·Ð²Ñ‘Ð·Ð´Ð¾Ñ‡ÐºÐ¾Ð¹, и предполагаемое значение вÑех -прав доÑтупа в воÑьмеричном предÑтавлении Ñразу же отображаютÑÑ Ð² чаÑти -окна "Файл". -.PP -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы выбранные вами Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð² прав доÑтупа вÑтупили -в Ñилу, надо нажать клавишу -.B Enter -или Ñкранную кнопку -.BR [УÑтановить] . -Ð”Ð»Ñ Ð¾Ñ‚ÐºÐ°Ð·Ð° от Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð² нужно нажать кнопку -.BR [Прервать] . -ВмеÑто выбора Ñкранных кнопок можно воÑпользоватьÑÑ "горÑчими" клавишами -ÑоответÑтвующих кнопок-флажков. -.PP -ИзменÑть права доÑтупа к отдельному файлу можно только Ñтим ÑпоÑобом. -ЕÑли вы хотите изменить атрибуты прав доÑтупа Ñразу группы файлов или -каталогов, вы тоже можете воÑпользоватьÑÑ Ñтим ÑпоÑобом, только вмеÑто -Ñкранной кнопки -.B [УÑтановить] -или клавиши -.B Enter -должны выбрать кнопку \fB[УÑтановить вÑÑ‘]\fR. -.PP -Второй ÑпоÑоб заключаетÑÑ Ð² том, что вы Ñначала помечаете те атрибуты, -которые хотите изменить, Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ клавиш -.B Ins -или -.BR t . -Обратите внимание, что ÑоÑтоÑÐ½Ð¸Ñ ÐºÐ½Ð¾Ð¿Ð¾Ðº-флажков при Ñтом не изменÑетÑÑ. -ПоÑле Ñтого вы выбираете один из Ñледующих вариантов дейÑÑ‚Ð²Ð¸Ñ (то еÑть -одну из Ñкранных кнопок): -.TP -.B [Отметить вÑÑ‘] -отмеченные атрибуты (и только они) будут уÑтановлены в ÑоответÑтвии -Ñ ÑоÑтоÑнием кнопок-флажков, причём Ð´Ð»Ñ Ð²Ñех выбранных (помеченных) файлов. -ЕÑли атрибут не был отмечен, его значение Ð´Ð»Ñ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ñ‹Ñ… файлов не изменÑетÑÑ. -.TP -.B [УÑтановить помеченное] -Ð´Ð»Ñ Ð²Ñех выбранных файлов бит, ÑоответÑтвующий данному атрибуту, будет -уÑтановлен в 1. -.TP -.B [ОчиÑтить помеченное] -Ð´Ð»Ñ Ð²Ñех выбранных файлов бит, ÑоответÑтвующий данному атрибуту, будет -уÑтановлен в 0. -.TP -.B [УÑтановить] -будут уÑтановлены атрибуты только Ð´Ð»Ñ Ð¾Ð´Ð½Ð¾Ð³Ð¾ файла (первого из -помеченных), причём уÑтановка производитÑÑ Ñ‚Ð°Ðº же, как по кнопке -\fB[Отметить вÑÑ‘]\fR. -.TP -.B [Прервать] -отказатьÑÑ Ð¾Ñ‚ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ‹ Chmod. -.\"NODE "Chown" -.SH "Владелец/группа" -Пункт меню "Владелец/группа" иÑпользуетÑÑ Ð´Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы изменить -владельца файла или группу, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð¸Ð¼ÐµÐµÑ‚ какие\-то права на файл. -"ГорÑчаÑ" клавиша Ð´Ð»Ñ Ð²Ñ‹Ð·Ð¾Ð²Ð° Ñтого пункта меню \- \fBC\-x o\fR. -.\"NODE "Advanced Chown" -.SH "РаÑÑˆÐ¸Ñ€ÐµÐ½Ð½Ð°Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð° Chown" -Выбрав пункт меню "РаÑÑˆÐ¸Ñ€ÐµÐ½Ð½Ð°Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ð° Chown", вы увидите окно, -Ñовмещающее в Ñебе окна, поÑвлÑющиеÑÑ Ð¿Ñ€Ð¸ выборе пунктов -.\"LINK2" -Права доÑтупа -.\"Chmod" -и -.\"LINK2" -Владелец/группа\&. -.\"Chown" -Ð’ Ñтом окне можно изменить как права доÑтупа к файлу, так и -владельцев файла. -.\"NODE "Chattr" -.SH "Команда Chattr" -Диалоговое окно "Команда Chattr" предоÑтавлÑет удобный Ð¸Ð½Ñ‚ÐµÑ€Ñ„ÐµÐ¹Ñ Ðº команде -chattr \- команде Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð² файлов и каталогов на файловых -ÑиÑтемах ОС Linux. ДоÑтуп к Ñтому окну можно получить по "горÑчей" -комбинации клавиш -.BR "C\-x e" . -.PP -МножеÑтво поддерживаемых файловой ÑиÑтемой атрибутов завиÑит от Ñамой -файловой ÑиÑтемы. Символьное предÑтавление атрибутов под именем файлов -показывает вÑе доÑтупные атрибуты (Ð´Ð»Ñ Ñ€Ð°Ñшифровки Ñимволов атрибутов -Ñмотрите Ñтраницу руководÑтва к команде -.BR chattr(1) , -а кнопки-флажки предÑтавлÑÑŽÑ‚ только те атрибуты, которые можно изменить. -ÐšÐ°Ð¶Ð´Ð°Ñ Ð¸Ð· кнопок-флажков ÑоответÑтвует одному атрибуту. ИзменÑть -уÑтановки атрибутов можно Ð´Ð²ÑƒÐ¼Ñ ÑпоÑобами. -.PP -При первом ÑпоÑобе непоÑредÑтвенно изменÑетÑÑ ÑоÑтоÑние кнопок-флажков. -Ð”Ð»Ñ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ð¹ атрибутов надо выбрать ÑоответÑтвующую кнопку -и нажать клавишу -.BR пробела . -.PP -Ð”Ð»Ñ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¿Ð¾ кнопкам можно иÑпользовать -.B клавиши\-Ñтрелки -или клавишу -.BR Tab . -ИзменÑемые атрибуты помечаютÑÑ Ð·Ð²Ñ‘Ð·Ð´Ð¾Ñ‡ÐºÐ¾Ð¹, и предполагаемое значение вÑех -атрибутов в Ñимвольном предÑтавлении Ñразу же отображаетÑÑ Ð¿Ð¾Ð´ именем файла. -.PP -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы выбранные вами Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð² вÑтупили в Ñилу, надо -нажать клавишу -.B Enter -или Ñкранную кнопку -.BR [УÑтановить] . -Ð”Ð»Ñ Ð¾Ñ‚ÐºÐ°Ð·Ð° от Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð² нужно нажать кнопку -.BR [Прервать] . -.PP -ИзменÑть атрибуты отдельного файла можно только Ñтим ÑпоÑобом. ЕÑли вы -хотите изменить атрибуты Ñразу группы файлов или каталогов, вы тоже можете -воÑпользоватьÑÑ Ñтим ÑпоÑобом, только вмеÑто Ñкранной кнопки -.B [УÑтановить] -или клавиши -.B Enter -должны выбрать кнопку \fB[УÑтановить вÑÑ‘]\fR. -.PP -Второй ÑпоÑоб заключаетÑÑ Ð² том, что вы Ñначала помечаете те атрибуты, -которые хотите изменить, Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ клавиш -.B Ins -или -.BR t . -Обратите внимание, что ÑоÑтоÑÐ½Ð¸Ñ ÐºÐ½Ð¾Ð¿Ð¾Ðº-флажков при Ñтом не изменÑетÑÑ. -ПоÑле Ñтого вы выбираете один из Ñледующих вариантов дейÑÑ‚Ð²Ð¸Ñ (то еÑть -одну из Ñкранных кнопок): -.TP -.B [Отметить вÑÑ‘] -отмеченные атрибуты (и только они) будут уÑтановлены в ÑоответÑтвии -Ñ ÑоÑтоÑнием кнопок-флажков, причём Ð´Ð»Ñ Ð²Ñех выбранных (помеченных) файлов. -ЕÑли атрибут не был отмечен, его значение Ð´Ð»Ñ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ñ‹Ñ… файлов не изменÑетÑÑ. -.TP -.B [УÑтановить помеченное] -Ð´Ð»Ñ Ð²Ñех выбранных файлов данный атрибут будет уÑтановлен. -.TP -.B [ОчиÑтить помеченное] -Ð´Ð»Ñ Ð²Ñех выбранных файлов данный атрибут будет Ñброшен. -.TP -.B [УÑтановить] -будут уÑтановлены атрибуты только Ð´Ð»Ñ Ð¾Ð´Ð½Ð¾Ð³Ð¾ файла (первого из -помеченных), причём уÑтановка производитÑÑ Ñ‚Ð°Ðº же, как по кнопке -\fB[Отметить вÑÑ‘]\fR. -.TP -.B [Прервать] -отказатьÑÑ Ð¾Ñ‚ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñ‹ Chattr. -.\"NODE "File Operations" -.SH "Операции Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸" -Когда вы выполнÑете операции копированиÑ, Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ð¸Ð»Ð¸ ÑƒÐ´Ð°Ð»ÐµÐ½Ð¸Ñ -файлов, Midnight Commander отображает на Ñкране диалоговое окно, в -котором показано, какой(ие) файл(Ñ‹) в данный момент обрабатываетÑÑ Ð¸ как -идет процеÑÑ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÐ¸. Ð”Ð»Ñ Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð¿Ñ€Ð¾Ñ†ÐµÑÑа обработки на Ñкран -выводитÑÑ Ð´Ð¾ двух диаграмм\-полоÑок (progress bars). ÐŸÐµÑ€Ð²Ð°Ñ Ð¿Ð¾ÐºÐ°Ð·Ñ‹Ð²Ð°ÐµÑ‚, -ÐºÐ°ÐºÐ°Ñ Ñ‡Ð°Ñть текущего файла обработана (например, Ñкопирована). Ð’Ñ‚Ð¾Ñ€Ð°Ñ -показывает долю выполненных работ (в процентах от Ñуммарного объема -помеченных файлов). ЕÑли выключена Ð¾Ð¿Ñ†Ð¸Ñ -.I "Детали операций" -(Ñм. -.\"LINK2" -ÐаÑтройки/КонфигурациÑ\&. -.\"Configuration" -), Ð²Ñ‚Ð¾Ñ€Ð°Ñ Ð´Ð¸Ð°Ð³Ñ€Ð°Ð¼Ð¼Ð° не отображаютÑÑ. -.PP -Ð’ нижней чаÑти Ñтого диалогового окна имеютÑÑ Ñ‚Ñ€Ð¸ кнопки: -.TP -.B [ПропуÑтить] -прерывает обработку текущего файла. -.TP -.B [ПриоÑтановить] -приоÑтанавливает выполнение операции и при нажатии превращаетÑÑ Ð² кнопку -.BR [Продолжить] , -при нажатии на которую выполнение операции продолжитÑÑ. -.TP -.B [Прервать] -прерывает выполнение заданной операции, вÑе оÑтавшиеÑÑ Ñ„Ð°Ð¹Ð»Ñ‹ будут пропущены. -.PP -Ð’ процеÑÑе Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ñ‹Ñ… операций вы можете увидеть окна ещё трёх -видов. -.PP -Окно ошибок информирует об ошибке и предлагает четыре варианта продолжениÑ: -.TP -.B [Игнорировать] -проигнорировать текущую ошибку файловой операции. -.TP -.B [Игнорировать вÑÑ‘] -игнорировать Ñту и вÑе поÑледующие ошибки файловой операции. -.TP -.B [Прервать] -отменить выполнение заданной операции. -.TP -.B [Повторить] -продолжить выполнение операции, когда вам удалоÑÑŒ уÑтранить причину -ÑÐ±Ð¾Ñ (например, воÑпользовавшиÑÑŒ другим терминалом). -.PP -Окно Ð¿Ð¾Ð´Ñ‚Ð²ÐµÑ€Ð¶Ð´ÐµÐ½Ð¸Ñ Ð¿ÐµÑ€ÐµÐ·Ð°Ð¿Ð¸Ñи поÑвлÑетÑÑ Ñ‚Ð¾Ð³Ð´Ð°, когда вы пытаетеÑÑŒ -перепиÑать ÑущеÑтвующий файл. Ð’ Ñтом окне отображаютÑÑ Ð²Ñ€ÐµÐ¼Ñ ÑÐ¾Ð·Ð´Ð°Ð½Ð¸Ñ Ð¸ -размеры файла\-иÑточника и файла\-приёмника. Ðнже находитÑÑ Ð²Ð¾Ð¿Ñ€Ð¾Ñ "ПерепиÑать -Ñтот файл?" и предлагаетÑÑ Ñ‡ÐµÑ‚Ñ‹Ñ€Ðµ варианта ответа: -.TP -.B [Да] -перепиÑать текущий файл. -.TP -.B [Ðет] -пропуÑтить перезапиÑÑŒ текущего файла. -.TP -.B [ДопиÑать в конец] -допиÑать Ñодержимое файла\-иÑточника в конец файла\-приёмника. -.TP -.B [Докачать] -допиÑать оÑтавшуюÑÑ Ñ‡Ð°Ñть файла\-иÑточника в конец файла\-приёмника. -Эта кнопка поÑвлÑетÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ в том Ñлучае, еÑли размер файла\-приёмника -не нулевой и меньше размера файла\-иÑточника. -.PP -Выбор одного из вариантов ответа на второй Ð²Ð¾Ð¿Ñ€Ð¾Ñ ("ПерепиÑать вÑе -файлы?") позволÑет принÑть одно решение по вÑем выбранным Ð´Ð»Ñ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÐ¸ -файлам (чтобы окно запроÑа не поÑвлÑлоÑÑŒ каждый раз). ПредлагаетÑÑ Ñ‡ÐµÑ‚Ñ‹Ñ€Ðµ -варианта решениÑ: -.TP -.B [Ð’Ñе] -перезапиÑать без дополнительных вопроÑов вÑе выбранные файлы. -.TP -.B [Старше] -перезапиcать (затереть) только те файлы, которые Ñозданы раньше -файла\-иÑточника. -.TP -.B [Ðи одного] -не перезапиÑывать файлы (но еÑли не ÑущеÑтвует файла\-приёмника, то -копирование иÑточника будет произведено). -.TP -.B [Меньше] -перезапиcать (затереть) только те файлы, размеры которых меньше -размеров ÑоответÑтвующих файлов\-иÑточников. -.TP -.B [РазличающиеÑÑ Ð¿Ð¾ длине] -перезапиcать (затереть) только те файлы, размеры которых отличаютÑÑ -от размеров ÑоответÑтвующих файлов\-иÑточников. -.TP -.B [Прервать] -прервать выполнение операции. -.PP -ЕÑли перекючатель -.B Ðе перезапиÑывать файлами нулевой длины -включен, то файлы\-иÑточники Ñ Ð½ÑƒÐ»ÐµÐ²Ñ‹Ð¼Ð¸ размерами не будут перезапиÑывать -файлы\-приёмники Ñ Ð½ÐµÐ½ÑƒÐ»ÐµÐ²Ñ‹Ð¼Ñ‹ размерами. -.PP -Окно запроÑа на рекурÑивное удаление поÑвлÑетÑÑ Ð² том Ñлучае, еÑли вы -пытаетеÑÑŒ удалить непуÑтой каталог. Ð’ Ñтом диалоге имеютÑÑ Ñледующие кнопки: -.TP -.B [Да] -каталог будет удален вмеÑте Ñо вÑеми файлами. -.TP -.B [Ðет] -отказ от ÑƒÐ´Ð°Ð»ÐµÐ½Ð¸Ñ ÐºÐ°Ñ‚Ð°Ð»Ð¾Ð³Ð°. -.TP -.B [Ð’ÑÑ‘] -удалить вÑе помеченные каталоги. -.TP -.B [Ðи одного] -пропуÑтить вÑе непуÑтые каталоги из чиÑла помеченных. -.TP -.B [Прервать] -отказ от Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ð¸ удалениÑ. -.PP -ЕÑли вы пометили Ð´Ð»Ñ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÐ¸ группу файлов, то поÑле Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ -операции будет ÑнÑта отметка только Ñ Ñ‚ÐµÑ… файлов, которые уÑпешно -обработаны. Пропущенные файлы оÑтанутÑÑ Ð¿Ð¾Ð¼ÐµÑ‡ÐµÐ½Ð½Ñ‹Ð¼Ð¸. -.\"NODE "Mask Copy/Rename" -.SH "МаÑки файлов Ð´Ð»Ñ Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ð¹ копированиÑ/переименованиÑ" -При выполнении операций ÐºÐ¾Ð¿Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸ Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ (или переименованиÑ) -файлов вы имеете возможноÑть изменить имена копируемых или перемещаемых -файлов. Ð”Ð»Ñ Ñтого вы должны задать маÑку Ð´Ð»Ñ Ð¸Ð¼ÐµÐ½ файлов\-иÑточников и -маÑку Ð´Ð»Ñ Ð¸Ð¼ÐµÐ½ файлов, которые будут Ñозданы (файлы\-приёмники). Обычно -Ñта Ð²Ñ‚Ð¾Ñ€Ð°Ñ Ð¼Ð°Ñка предÑтавлÑет Ñобой неÑколько Ñимволов замены -(wildcards) в конце Ñтроки, определÑющей меÑто назначение Ñоздаваемых -файлов. Ð’Ñе файлы, удовлетворÑющие маÑке иÑточника, будут переименованы -(Ñкопированы или перемещены Ñ Ð½Ð¾Ð²Ñ‹Ð¼Ð¸ именами) в ÑоответÑтвии Ñ Ð¼Ð°Ñкой -файла\-приёмника. ЕÑли имеютÑÑ Ð¿Ð¾Ð¼ÐµÑ‡ÐµÐ½Ð½Ñ‹Ðµ файлы, то копируютÑÑ -(перемещаютÑÑ) только помеченные файлы, удовлетворÑющие заданной маÑке -Ð´Ð»Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²\-иÑточников. -.PP -ЕÑть ещё неÑколько опций, которые влиÑÑŽÑ‚ на выполнение операций -копированиÑ/Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð², и которые уÑтанавливаютÑÑ Ð² том же окне -запроÑа, где задаютÑÑ Ð¼Ð°Ñки имен файлов: -.PP -.B "Разыменовывать ÑÑылки" -.PP -определÑет, будут ли при копировании жеÑтких или ÑимволичеÑких ÑÑылок -в каталоге\- приёмнике (и рекурÑивно в подкаталогах) ÑоздаватьÑÑ Ñ‚Ð°ÐºÐ¸Ðµ же ÑÑылки, -или будут копироватьÑÑ Ñ„Ð°Ð¹Ð»Ñ‹ (и подкаталоги), на которые Ñти ÑÑылки указывают. -.PP -.B "Внутрь каталога, еÑли еÑть" -.PP -определÑет, что делать, еÑли в каталоге\-приёмнике уже ÑущеÑтвует подкаталог, -Ð¸Ð¼Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð³Ð¾ Ñовпадает Ñ Ð¸Ð¼ÐµÐ½ÐµÐ¼ файла (каталога), который копируетÑÑ (иÑточника). -По умолчанию (Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°) Ñодержимое каталога\-иÑточника копируетÑÑ Ð² -каталог\-приёмник. ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, то в каталоге приёмнике будет -Ñоздан новый подкаталог Ñ Ñ‚ÐµÐ¼ же именем, в который и будет -оÑущеÑтвлÑтьÑÑ ÐºÐ¾Ð¿Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ðµ. Лучше показать Ñто на примере: -.PP -ПуÑть вы хотите Ñкопировать каталог -.IR /foo , -Ñодержащий файл -.IR bar , -в уже ÑущеÑтвующий каталог -.IR /bla/foo . -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð½Ðµ включена, MC Ñкопирует файл -.I /foo/bar -в файл -.IR /bla/foo/bar . -ЕÑли опцию включить, будет Ñоздан каталог -.I /bla/foo/foo -и файл -.I /foo/bar -будет Ñкопирован в файл -.IR /bla/foo/foo/bar . -.PP -.B "СохранÑть атрибуты" -.PP -определÑет, будут ли при копировании/перемещении Ñохранены атрибуты иÑходного -файла: права доÑтупа, временные метки и, еÑли вы root, UID и GID иÑходного -файла. ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, атрибуты будут уÑтановлены в ÑоответÑтвии Ñ -текущим значением umask. -.PP -.B "Образцы в Ñтиле shell" -.PP -Когда Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, можно иÑпользовать Ñимволы замены -(wildcards) '*' и '?' в маÑке иÑточника. Они обрабатываютÑÑ Ð°Ð½Ð°Ð»Ð¾Ð³Ð¸Ñ‡Ð½Ð¾ тому, -как Ñто делаетÑÑ Ð² shell. Ð’ маÑке приёмника разрешаетÑÑ Ð¸Ñпользовать только '*' -и '\\<цифра>'. Первый Ñимвол '*' в маÑке приёмника ÑоответÑтвует первой -группе Ñимволов замены в маÑке иÑточника, второй Ñимвол '*' ÑоответÑтвует -второй группе и Ñ‚. д. Ðналогично, Ñимвол замены '\\1' ÑоответÑтвует первой -группе Ñимволов замены в маÑке иÑточника, Ñимвол '\\2' \- второй группе -и Ñ‚. д. до '\\9'. Символ '\\0' ÑоответÑтвует целому имени файла\-иÑточника. -.PP -Два примера: -.PP -ЕÑли маÑка иÑточника "*.tar.gz", а приёмник \- "/bla/*.tgz" и Ð¸Ð¼Ñ -копируемого файла \- "foo.tar.gz", ÐºÐ¾Ð¿Ð¸Ñ Ð±ÑƒÐ´ÐµÑ‚ называтьÑÑ "foo.tgz" и -будет находитьÑÑ Ð² каталоге "/bla". -.PP -Предположим вы хотите поменÑть меÑтами Ð¸Ð¼Ñ Ð¸ раÑширение файла, так чтобы -"file.c" Ñтал файлом "c.file". МаÑка иÑточника Ð´Ð»Ñ Ñтого должна иметь -вид "*.*", а маÑка приёмника \- "\\2.\\1". -.PP -Когда Ð¾Ð¿Ñ†Ð¸Ñ -.I "Образцы в Ñтиле shell" -выключена, MC не оÑущеÑтвлÑет автоматичеÑкой группировки. Ð”Ð»Ñ ÑƒÐºÐ°Ð·Ð°Ð½Ð¸Ñ -групп Ñимволов в маÑке иÑточника, которые будут ÑоответÑтвовать Ñимволам -замены в маÑке приёмника, вы должны в Ñтом Ñлучае иÑпользовать Ñкобки '\\(...\\)'. -Этот ÑпоÑоб более гибкий, но требует больше уÑилий при вводе. -.PP -Два примера: -.PP -ЕÑли маÑка иÑточника имеет вид "^\\(.*\\)\\.tar\\.gz$", копирование -производитÑÑ Ð² "/bla/*.tgz" и копируетÑÑ Ñ„Ð°Ð¹Ð» "foo.tar.gz", то -результатом будет "/bla/foo.tgz". -.PP -Предположим, что вы хотите поменÑть меÑтами Ð¸Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° и его раÑширение, -так чтобы имена вида "file.c" принÑли вид "c.file". МаÑка иÑточника Ð´Ð»Ñ -Ñтого \- "^\\(.*\\)\\.\\(.*\\)$", а маÑка приёмника \- "\\2.\\1". -.PP -.B "Преобразование региÑтра" -.PP -Ð’Ñ‹ можете также преобразовать региÑтр Ñимволов в именах файлов. ЕÑли вы -иÑпользуете '\\u' или '\\l' в маÑке приёмника, то Ñледующий Ñимвол имени -будет образован в верхнем (заглавные Ñимволы) или нижнем (Ñтрочные) -региÑтре ÑоответÑтвенно. -.PP -ЕÑли иÑпользовать в маÑке приёмника '\\U' или '\\L', то к -ÑоответÑтвующему региÑтру будут преобразованы вÑе поÑледующие Ñимволы, -вплоть до Ñледующего Ð²Ñ…Ð¾Ð¶Ð´ÐµÐ½Ð¸Ñ '\\E' или '\\U', поÑÐ²Ð»ÐµÐ½Ð¸Ñ Ñимвола '\\L' -или конца имени файла. -.PP -Применение '\\u' и '\\l' обеÑпечивает более широкие возможноÑти, чем '\\U' и '\\L'. -.PP -Ðапример, еÑли маÑка иÑточника еÑть '*' (Ð¾Ð¿Ñ†Ð¸Ñ -.I "Образцы в Ñтиле shell" -включена) или "^\\(.*\\)$" (Ð¾Ð¿Ñ†Ð¸Ñ -.I "Образцы в Ñтиле shell" -выключена), а маÑка приёмника еÑть "\\L\\u*", имена файлов будут - преобразованы таким образом, что первые буквы имени будут заглавными, -а вÑе оÑтальные \- Ñтрочными. -.PP -Символ '\\' в маÑках иÑпользуетÑÑ Ð´Ð»Ñ Ð¾Ñ‚Ð¼ÐµÐ½Ñ‹ Ñпециальной интерпретации -отдельных Ñимволов. Ðапример, "\\\\" означает проÑто backslash и "\\*" -означает проÑто звёздочку (asterisk). -.PP -.B "ИзменÑть отноÑительные ÑÑылки" -.PP -указывает, что Midnight Commander должен изменÑть ÑимволичеÑкие ÑÑылки. -Скопированные ÑимволичеÑкие ÑÑылки будут указывать на то же раÑположение, -что и Ð¾Ñ€Ð¸Ð³Ð¸Ð½Ð°Ð»ÑŒÐ½Ð°Ñ ÑÑылка, при Ñтом допиÑываютÑÑ Ð½ÐµÐ¾Ð±Ñ…Ð¾Ð´Ð¸Ð¼Ñ‹Ðµ ../ и другие -каталоги. -.\"NODE "Select/Unselect Files" -.SH "Отметить файлы" -Диалоговое окно параметров отметки группы файлов по заданному шаблону. -.\"LINK2" -Строка ввода -.\"Input Line Keys" -предназначена Ð´Ð»Ñ Ð²Ð²Ð¾Ð´Ð° регулÑрного Ð²Ñ‹Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ (маÑки) Ð´Ð»Ñ Ð¿Ð¾Ð¼ÐµÑ‚Ð¸ файлов. -ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.IR "Только файлы" , -то выделены будут только файлы. ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -.I "Только файлы" -выключена, то выделены будут как файлы, так и каталоги. ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.IR "Образцы в Ñтиле shell" , -регулÑрные выражение ÑтроÑÑ‚ÑÑ Ð¿Ð¾ тем же правилам, которые дейÑтвуют в -оболочке shell ('*' означает ноль или большее чиÑло любых Ñимволов, а '?' -заменÑет один произвольный Ñимвол). ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -.I "Образцы в Ñтиле shell" -выключена, то пометка файлов производитÑÑ Ð¿Ð¾ правилам обработки -нормальных регулÑрных выражений (Ñмотрите ed(1)). ЕÑли включена Ð¾Ð¿Ñ†Ð¸Ñ -.I "С учётом региÑтра" -то пометка файлов и каталогов будет производитьÑÑ Ñ ÑƒÑ‡Ñ‘Ñ‚Ð¾Ð¼ региÑтра Ñимволов имён. -ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -.I "С учётом региÑтра" -выключена, то региÑтр Ñимволов учитыватьÑÑ Ð½Ðµ будет. -.\"NODE "Diff Viewer" -.SH "Ð’ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° ÑÑ€Ð°Ð²Ð½ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²" -mcdiff \- Ñто вÑтроенное ÑредÑтво Ð´Ð»Ñ ÑÑ€Ð°Ð²Ð½ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð², позволÑющее Ñравнить два файла. -Также оно позволÑет редактировать их (поÑле Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¿Ñ€Ð¾Ð¸Ð·Ð¾Ð¹Ð´Ñ‘Ñ‚ -обновление различий). Можно проÑматривать файлы, находÑщиеÑÑ Ð¿Ð¾Ð´ контролем различных -ÑиÑтем ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð²ÐµÑ€ÑиÑми, такими как GIT, Subversion и другие. -.PP -Ðиже предÑтавлен ÑпиÑок "горÑчих" клавиш, иÑпользуемых во вÑтроенной утилите ÑÑ€Ð°Ð²Ð½ÐµÐ½Ð¸Ñ -файлов mcdiff. -.TP -.B F1 -Вызов вÑтроенной помощи. -.TP -.B F2 -Сохранение изменений в файлах. -.TP -.B F4 -Редактирование файла в левой панели. -.TP -.B F14 -Редактирование файла в правой панели. -.TP -.B F5 -ПроизвеÑти ÑлиÑние текущего изменениÑ. -.TP -.B F7 -Вызов диалогового окна Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ ÑˆÐ°Ð±Ð»Ð¾Ð½Ð° поиÑка. -.TP -.B F17 -Продолжение поиÑка в ÑоответÑтвии Ñ Ñ€Ð°Ð½ÐµÐµ определённым шаблоном. -.TP -.B F10, Esc, q -Выход. -.TP -.B Alt\-s, s -Включить/выключить показ ÑтатуÑа различий. -.TP -.B Alt\-n, l -Включить/выключить показ номеров Ñтрок. -.TP -.B f -Увеличить левую панель до макÑимума. -.TP -.B = -Сделать панели равными по ширине. -.TP -.B > -Увеличить левую панель. -.TP -.B < -Увеличить правую панель. -.TP -.B c -Включить/выключить показ Ñимволов конца Ñтроки (CR) как ^M. -.TP -.B 2, 3, 4, 8 -УÑтановить размер табулÑции. -.TP -.B C\-u -ПоменÑть панели меÑтами. -.TP -.B C\-r -Обновить Ñкран. -.TP -.B C\-o -ПереключитьÑÑ Ð² подоболочку и показать окно команд. -.TP -.B Enter, Space, n -Ðайти Ñледующее различие. -.TP -.B Backspace, p -Ðайти предыдущее различие. -.TP -.B g -Показать диалог перехода к Ñтроке. -.TP -.B Down -Перемещение на одну Ñтроку вниз. -.TP -.B Up -Перемещение на одну Ñтроку вверх. -.TP -.B PageUp -Перемещение на одну Ñтраницу вверх. -.TP -.B PageDown -Перемещение на одну Ñтраницу вниз. -.TP -.B Home, A1 -Перемещение к началу Ñтроки. -.TP -.B End -Перемещение в конец Ñтроки. -.TP -.B C\-Home -Перемещение в начало файла. -.TP -.B C\-End, C1 -Перемещение в конец файла. -.\"NODE "Internal File Viewer" -.SH "Ð’ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° проÑмотра файлов" -Ð’ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° проÑмотра файлов имеет два режима проÑмотра: режим -ASCII и шеÑтнадцатеричный (hex). Ð”Ð»Ñ Ð¿ÐµÑ€ÐµÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ñ€ÐµÐ¶Ð¸Ð¼Ð¾Ð² иÑпользуетÑÑ -клавиша -.BR F4 . -ЕÑли у Ð²Ð°Ñ ÑƒÑтановлена программа gzip проекта GNU, она будет -иÑпользована Ð´Ð»Ñ Ð°Ð²Ñ‚Ð¾Ð¼Ð°Ñ‚Ð¸Ñ‡ÐµÑкого проÑмотра Ñжатых файлов. -.PP -Ð’ÑÑ‚Ñ€Ð¾ÐµÐ½Ð½Ð°Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° проÑмотра вÑегда пытаетÑÑ Ð¸Ñпользовать Ð´Ð»Ñ -Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð¸Ð½Ñ„Ð¾Ñ€Ð¼Ð°Ñ†Ð¸Ð¸ лучший из методов, предоÑтавлÑемых вашей ÑиÑтемой -Ð´Ð»Ñ Ð´Ð°Ð½Ð½Ð¾Ð³Ð¾ типа файла. Ðекоторые поÑледовательноÑти Ñимволов -интерпретируютÑÑ Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ñ‚Ð°ÐºÐ¸Ñ… атрибутов, как жирный шрифт и -подчеркивание, обеÑÐ¿ÐµÑ‡Ð¸Ð²Ð°Ñ Ð±Ð¾Ð»ÐµÐµ наглÑдное предÑтавление информации. -.PP -Ð’ шеÑтнадцатеричном режиме Ñ„ÑƒÐ½ÐºÑ†Ð¸Ñ Ð¿Ð¾Ð¸Ñка позволÑет задать Ñтроку поиÑка -как в обычном текÑтовом виде (заключенном в кавычки), так и в виде -шеÑтнадцатеричных конÑтант. Можно даже одновременно иÑпользовать в -шаблоне поиÑка как ту, так и другую форму предÑтавлениÑ, например: -.PP -.nf -"String" 34 0xBB 012 "more text" -.fi -.PP -Ð’Ñе чиÑла интерпретируютÑÑ ÐºÐ°Ðº шеÑтнадцатеричные. Ð’ данном примере -"34" интерпретируетÑÑ ÐºÐ°Ðº 0x34. ÐŸÑ€ÐµÑ„Ð¸ÐºÑ 0x необÑзателен: вмеÑто "0xBB" -можно проÑто ввеÑти "BB". ЧиÑло "012" интерпретируетÑÑ Ð½Ðµ как -воÑьмеричное, а как 0x12. -.PP -Ðиже приводитÑÑ Ð¿ÐµÑ€ÐµÑ‡ÐµÐ½ÑŒ вÑех клавиш и их комбинаций, Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ð¼Ð¸ -аÑÑоциированы некие дейÑÑ‚Ð²Ð¸Ñ Ð²Ñтроенной программы проÑмотра. -.TP -.B F1 -Вызывает проÑмотр вÑтроенной гипертекÑтовой подÑказки. -.TP -.B F2 -Переключает режим переноÑа Ñтроки. -.TP -.B F4 -Переключает между ASCII и шеÑтнадцатеричным режимами. -.TP -.B F5 -Переход. Можно указать номер Ñтроки, абÑолютное Ñмещение или проценты -от размера файла того меÑта, к проÑмотру которой вы хотите перейти. -.TP -.B F7, /, ? -Ðачать поиÑк. Вызов диалогового окна, которое позволит уÑтановить параметры -поиÑка. ЕÑли клавиша -.BR ? , -то будет уÑтановлен параметр поиÑка "Ðазад". -.TP -.B C\-s -Продолжение поиÑка. -.TP -.B C\-r -То же, что и -.BR C\-s , -но поиÑк производитÑÑ Ð² обратном направлении. -.TP -.B F17, n -Продолжить поиÑк в заданном направлении. -.TP -.B N -Временно изменить направление поиÑка: иÑкать назад, еÑли уÑтановлен поиÑк -вперёд, и наоборот. -.TP -.B F8 -Переключение между режимами Raw/Parsed: файл отображаетÑÑ Ð»Ð¸Ð±Ð¾ в том -виде, как он запиÑан на диÑке, либо пропущенным через фильтр, который -задан Ð´Ð»Ñ Ñтого типа файлов в mc.ext.ini. Текущий режим Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð²Ñегда -обратный по отношению к тому, который указан на Ñкранной кнопке -.BR F8 , -поÑкольку на кнопке указываетÑÑ Ñ€ÐµÐ¶Ð¸Ð¼, к которому оÑущеÑтвлÑетÑÑ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´ -по данной кнопке. -.TP -.B F9 -Переключение между режимами Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ñ‚ÐµÐºÑта в форматированном и -неформатированном виде: в режиме Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ñ„Ð¾Ñ€Ð¼Ð°Ñ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð½Ð¾Ð³Ð¾ текÑта -некоторые поÑледовательноÑти Ñимволов отображаютÑÑ Ð´Ñ€ÑƒÐ³Ð¸Ð¼ цветом Ð´Ð»Ñ -Ð²Ñ‹Ð´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¶Ð¸Ñ€Ð½Ð¾Ð³Ð¾ и подчеркнутого шрифта. Как и в предыдущем Ñлучае, на -кнопке указан режим, обратный по отношению к текущему. -.TP -.B F3, F10, Esc, q -Выйти из вÑтроенной программы проÑмотра. -.TP -.B PageDown, пробел, C\-v -ПеремеÑтитьÑÑ Ð½Ð° Ñтраницу вперёд. -.TP -.B PageUp, Alt\-v, Backspace -ПеремеÑтитьÑÑ Ð½Ð° Ñтраницу назад. -.TP -.B Down -ПеремеÑтитьÑÑ Ð½Ð° одну Ñтроку вперёд. -.TP -.B Up -ПеремеÑтитьÑÑ Ð½Ð° одну Ñтроку назад. -.TP -.B C\-l -Обновить изображение на Ñкране. -.TP -.B C\-o -ПереключитьÑÑ Ð² subshell и показать окно команд. -.TP -.B [n] m -УÑтановить метку Ñ Ð½Ð¾Ð¼ÐµÑ€Ð¾Ð¼ n (кавычки не вводÑÑ‚ÑÑ). -.TP -.B [n] r -ПеремеÑтитьÑÑ Ðº метке Ñ Ð½Ð¾Ð¼ÐµÑ€Ð¾Ð¼ n. -.TP -.B C\-f -Перейти к проÑмотру Ñледующего файла текущего каталога. -.TP -.B C\-b -Перейти к проÑмотру предыдущего файла в текущем каталоге. -.TP -.B Alt\-r -Переключение режима Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð»Ð¸Ð½ÐµÐ¹ÐºÐ¸ (вверху/внизу/отключена). -.TP -Можно наÑтроить режимы Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð² вÑтроенной программой -проÑмотра, воÑпользовавшиÑÑŒ -.\"LINK2" -файлом раÑширений\&. -.\"Edit Extension File" - -.\"NODE "Internal File Editor" -.SH "Ð’Ñтроенный редактор" -Ð’Ñтроенный редактор обеÑпечивает выполнение большинÑтва функций -редактированиÑ, приÑущих полноÑкранным редакторам текÑта. Он вызываетÑÑ -нажатием клавиши -.B F4 -при уÑловии, что в инициализационном файле уÑтановлена в 1 Ð¾Ð¿Ñ†Ð¸Ñ -.IR use_internal_edit . -Размер редактируемого файла не может превышать 64 Мегабайт. С помощью -Ñтого редактора можно редактировать двоичные файлы без потери данных. -.PP -ПоддерживаютÑÑ Ñледующие возможноÑти: копирование, перемещение, -удаление, вырезание и вÑтавка блоков текÑта; отмена предыдущих операций; -выпадающие меню; вÑтавка файлов; макроопределениÑ; поиÑк и замена по -регулÑрным выражениÑм; выделение текÑта по комбинации клавиш -.B S\-<клавиши\-Ñтрелки> -в Ñтиле MSW\-MAC (только Ð´Ð»Ñ linux\-конÑоли); переключение между режимами -вÑтавки\-замены Ñимвола; а также Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ñ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÐ¸ блоков текÑта командами -оболочки (an option to pipe text blocks through shell commands like indent). - -.PP -Разделы: -.IP - -.\"LINK2" -Опции в ini\-файле Ð´Ð»Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¾Ñ€Ð° -.\"Internal File Editor / options" - -.PP -Редактор очень проÑÑ‚ и практичеÑки не требует обучениÑ. Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы -узнать, какие клавиши вызывают выполнение определённых дейÑтвий, -доÑтаточно проÑмотреть выпадающие меню, которые вызываютÑÑ Ð½Ð°Ð¶Ð°Ñ‚Ð¸ÐµÐ¼ -клавиши -.B F9 -в окне редактора. Ðе перечиÑленные в меню комбинации клавиш: -.B S\-<клавиши\-Ñтрелок> -выделение блока текÑта. -.B C\-Ins -копирует блок в файл -.BR mcedit.clip . -.B S\-Ins -производит вÑтавку поÑледнего Ñкопированного в mcedit.clip блока в -позицию курÑора. -.B S\-Del -удалÑет выделенный блок текÑта, Ð·Ð°Ð¿Ð¾Ð¼Ð¸Ð½Ð°Ñ ÐµÐ³Ð¾ в файле -.BR mcedit.clip . -По клавише -.B Enter -вÑтавлÑÑŽÑ‚ÑÑ Ñимволы конца Ñтроки, причём на Ñледующей Ñтроке автоматичеÑки -уÑтанавливаетÑÑ Ð¾Ñ‚Ñтуп. Работает выделение текÑта Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ мыши, причём еÑли -удерживать клавишу -.BR Shift , -то управление мышью оÑущеÑтвлÑетÑÑ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð»ÑŒÐ½Ñ‹Ð¼ драйвером мыши. -.PP -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы определить макроÑ, нажмите -.BR C\-R , -поÑле чего введите Ñтроки команд, которые должны быть выполнены. ПоÑле -Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ Ð²Ð²Ð¾Ð´Ð° команд Ñнова нажмите -.B C\-R -и ÑвÑжите Ð¼Ð°ÐºÑ€Ð¾Ñ Ñ ÐºÐ°ÐºÐ¾Ð¹\-нибудь клавишей или комбинацией клавиш, нажав -Ñту клавишу (комбинацию). ÐœÐ°ÐºÑ€Ð¾Ñ Ð±ÑƒÐ´ÐµÑ‚ вызыватьÑÑ Ð½Ð°Ð¶Ð°Ñ‚Ð¸ÐµÐ¼ -.B C\-A -и назначенной Ð´Ð»Ñ Ð½ÐµÐ³Ð¾ клавиши. ÐœÐ°ÐºÑ€Ð¾Ñ Ð¼Ð¾Ð¶Ð½Ð¾ также вызвать нажатием -любой из клавиш Meta (Alt), Ctrl или Esc и назначенной макроÑу клавиши, -при уÑловии, что Ð´Ð°Ð½Ð½Ð°Ñ ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ Ð½Ðµ иÑпользуетÑÑ Ð´Ð»Ñ Ð²Ñ‹Ð·Ð¾Ð²Ð° какой\-либо -другой функции. Макрокоманды поÑле Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð·Ð°Ð¿Ð¸ÑываютÑÑ Ð² файл -.B ~/.local/share/mc/mcedit/mcedit.macros -в вашем домашнем каталоге. Ð’Ñ‹ можете удалить Ð¼Ð°ÐºÑ€Ð¾Ñ ÑƒÐ´Ð°Ð»ÐµÐ½Ð¸ÐµÐ¼ -ÑоответÑтвующей Ñтроки в Ñтом файле. -.PP -По клавише -.B F19 -(её нет на обычной клавиатуре IBM PC, так что придётÑÑ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÑŒÑÑ -ÑоответÑтвующим пунктом меню, вызываемым по клавише -.BR F9 , -или переназначить клавишу) будет оÑущеÑтвлÑтьÑÑ Ñ„Ð¾Ñ€Ð¼Ð°Ñ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ðµ выделенного -блока кода на Ñзыке C, C++ или других. Форматирование управлÑетÑÑ Ñ„Ð°Ð¹Ð»Ð¾Ð¼ -.B %pkgdatadir%/edit.indent.rc -который при первом вызове копируетÑÑ Ð² -.B ~/.local/share/mc/mcedit/edit.indent.rc -в вашем домашнем каталоге. -.PP -Ð’Ñтроенный редактор обрабатывает Ñимволы из второй половины кодовой -таблицы (160+). Ðо при редактировании бинарных файлов лучше уÑтановить -опцию -.B "Биты Ñимволов" -из меню "ÐаÑтройки" в положение "7 бит", чтобы Ñохранить формат файла. -.PP -ОпиÑать вÑе функции вÑтроенного редактора в данной подÑказке невозможно. -Запомните только, что вÑе оÑновные операции можно выполнить через пункты -меню, которое вызываетÑÑ Ð½Ð°Ð¶Ð°Ñ‚Ð¸ÐµÐ¼ клавиши -.B F9 -в окне редактированиÑ. Кроме того, можно прочитать man\-Ñтраницу по команде -.B man mcedit . - -.\"NODE "Internal File Editor / options" -.SH "Опции в ini\-файле Ð´Ð»Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¾Ñ€Ð°" -.PP -Ð’ данном разделе кратко опиÑаны опции ini\-файла, отноÑÑщиеÑÑ Ðº редактору. -Опции запиÑываютÑÑ Ð² Ñекцию [Midnight\-Commander]. -.TP -.I editor_wordcompletion_collect_entire_file -При автодополнении Ð´Ð»Ñ Ñбора похожих Ñлов Ñлов проÑматривать веÑÑŒ файл(1) -или только от начала до курÑора (0) - -.\"NODE "Screen selector" -.SH "СпиÑок Ñкранов" -Midnight Commander поддерживает возможноÑть одновременной работы Ñвоих -вÑтроенных модулей (таких как редактор, программа проÑмотра, программа ÑÑ€Ð°Ð²Ð½ÐµÐ½Ð¸Ñ -файлов) и Ð¿ÐµÑ€ÐµÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ð¼ÐµÐ¶Ð´Ñƒ ними без необходимоÑти Ð·Ð°ÐºÑ€Ñ‹Ñ‚Ð¸Ñ Ð·Ð°Ð³Ñ€ÑƒÐ¶ÐµÐ½Ð½Ñ‹Ñ… файлов. -Файловый менеджер может быть только один, неÑколько файловых менеджеров, -работающих одновременно, не поддерживаютÑÑ. Ðазовём каждый из таких модулей -Ñкраном. -.PP -ЕÑть три ÑпоÑоба Ð¿ÐµÑ€ÐµÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ð¼ÐµÐ¶Ð´Ñƒ Ñкранами: -переход к Ñледующему Ñкрану в ÑпиÑке клавиатурной комбинацией -.BR Alt\-} , -переход к предыдущему Ñкрану в ÑпиÑке клавиатурной комбинацией -.BR Alt\-{ , -вызов диалогового окна Ñо ÑпиÑком Ñкранов клавиатурной комбинацией -.B Alt\-` -или Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ пункта меню. -Ð’Ñе Ñти комбинации клавиш одинаковы во вÑех Ñкранах. - -.\"NODE "Completion" -.SH "Завершение ввода" -ЗаÑтавьте Midnight Commander работать на клавиатуре вмеÑто ваÑ! -.PP -Завершение ввода \- Ñто попытка закончить за Ð²Ð°Ñ Ð²Ð²Ð¾Ð´ текÑта, набранного -до текущей позиции курÑора. MC пытаетÑÑ Ð·Ð°Ð²ÐµÑ€ÑˆÐ¸Ñ‚ÑŒ ввод, Ñ‚Ñ€Ð°ÐºÑ‚ÑƒÑ ÑƒÐ¶Ðµ -введённый текÑÑ‚ как переменную (еÑли текÑÑ‚ начинаетÑÑ Ñ -.BR $ ")", -Ð¸Ð¼Ñ Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ (еÑли текÑÑ‚ начинаетÑÑ Ñ -.BR ~ ")", -Ð¸Ð¼Ñ Ð¼Ð°ÑˆÐ¸Ð½Ñ‹ (еÑли текÑÑ‚ начинаетÑÑ Ð½Ð° -.BR @ ")" -или как команду (еÑли вы в командной Ñтроке в позиции, где вы можете -вводить команду; в Ñтом Ñлучае Ð´Ð»Ñ Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ Ð²Ð²Ð¾Ð´Ð° иÑпользуютÑÑ -зарезервированные Ñлова оболочки, в том чиÑле Ð»ÑŽÐ±Ð°Ñ Ð¸Ð· вÑтроенных команд -оболочки). ЕÑли введённый текÑÑ‚ не попадает ни в одну из перечиÑленных -категорий, выполнÑетÑÑ Ð¿Ð¾Ð¿Ñ‹Ñ‚ÐºÐ° Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ Ñ‚ÐµÐºÑта как имени файла. -.PP -Завершение имен файлов, пользователей, переменных и машин работает во -вÑех Ñтроках ввода, завершение команд \- только в командной Ñтроке. ЕÑли -однозначно выполнить завершение ввода невозможно (имеетÑÑ Ð½ÐµÑколько -вариантов), MC издаёт звуковой Ñигнал и выполнÑет Ñледующие дейÑтвиÑ, в -завиÑимоÑти от уÑтановки опции -.\"LINK2" -Дополнение: показывать вÑÑ‘ -.\"Configuration" -в пункте меню -.\"LINK2" -ÐаÑтройки/КонфигурациÑ\&. -.\"Configuration" -ЕÑли Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°, ÑпиÑок вÑех возможных вариантов Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ -поÑвлÑетÑÑ Ð²Ð¾Ð·Ð»Ðµ текущей позиции и вы можете выбрать нужный вариант Ñ -помощью клавиш Ñтрелок и -.BR Enter . -Ð’Ñ‹ можете также набрать Ñледующую букву, чтобы перейти к подмножеÑтву -вÑех возможных завершений. ЕÑли вы Ñнова нажмете -.BR Alt\-Tab , -будет выведено уже Ñокращенное множеÑтво вариантов, причём в Ñтроку -ввода добавлÑÑŽÑ‚ÑÑ Ñ‚Ðµ Ñимволы, которые определÑÑŽÑ‚ÑÑ Ð¾Ð´Ð½Ð¾Ð·Ð½Ð°Ñ‡Ð½Ð¾ (даже еÑли -полное завершение ввода ещё невозможно). Как только неопределённоÑть -выбора иÑчезает, пропадает и диалоговое окно Ñ Ð²Ð°Ñ€Ð¸Ð°Ð½Ñ‚Ð°Ð¼Ð¸. Ð’Ñ‹ можете -отказатьÑÑ Ð¾Ñ‚ вывода на Ñкран Ñтого окна в любое времÑ, нажав одну из -клавиш \fBEsc\fR, \fBF10\fR или \fBLeft/Right\fR. -ЕÑли Ð¾Ð¿Ñ†Ð¸Ñ -.\"LINK2" -"Дополнение: показывать вÑÑ‘" -.\"Configuration" -выключена, окно Ñ Ð²Ð°Ñ€Ð¸Ð°Ð½Ñ‚Ð°Ð¼Ð¸ Ð·Ð°Ð²ÐµÑ€ÑˆÐµÐ½Ð¸Ñ Ð¿Ð¾ÑвлÑетÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ тогда, когда -вы нажмете клавиши -.B Alt\-Tab -второй раз, при первом нажатии MC только издаёт звуковой Ñигнал. -.PP -ИÑпользуйте Ñкранирование Ñимволов '\fB?\fR', '\fB*\fR' и '\fB&\fR' -(как \fB\\?\fR, \fB\\*\fR, \fB\\&\fR) в именах файлов, чтобы они -не раÑÑматривалиÑÑŒ как метаÑимволы в регулÑрных выражениÑÑ… при подÑтановках -в полÑÑ… ввода. -.\"NODE "Virtual File System" -.SH "Виртуальные файловые ÑиÑтемы" -Программа Midnight Commander Ñодержит подпрограммы, обеÑпечивающие -доÑтуп к различным файловым ÑиÑтемам. Эти подпрограммы (их ÑовокупноÑть -называетÑÑ Ð¿ÐµÑ€ÐµÐºÐ»ÑŽÑ‡Ð°Ñ‚ÐµÐ»ÐµÐ¼ виртуальных файловых ÑиÑтем \- virtual file -system switch) позволÑÑŽÑ‚ Midnight Commander\-у манипулировать файлами, -раÑположенными на не\-Unix\-овых файловых ÑиÑтемах. -.PP -Ð’ наÑтоÑщее Ð²Ñ€ÐµÐ¼Ñ Midnight Commander обеÑпечивает поддержку неÑкольких -Виртуальных Файловых СиÑтем \- ВФС (VFS): -.br -\- локальной файловой ÑиÑтемы, иÑпользуемой Ð´Ð»Ñ Ð¾Ð±Ñ‹Ñ‡Ð½Ñ‹Ñ… файловых ÑиÑтем -Unix; -.br -\- файловой ÑиÑтемы ftpfs, иÑпользуемой Ð´Ð»Ñ Ð¼Ð°Ð½Ð¸Ð¿ÑƒÐ»Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸ на -удалённых компьютерах по протоколу FTP; -.br -\- файловой ÑиÑтемы tarfs, иÑпользуемой Ð´Ð»Ñ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÐ¸ tar\- и Ñжатых -tar\-файлов; -.br -\- файловой ÑиÑтемы undelfs, иÑпользуемой Ð´Ð»Ñ Ð²Ð¾ÑÑÑ‚Ð°Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ ÑƒÐ´Ð°Ð»Ñ‘Ð½Ð½Ñ‹Ñ… -файлов в файловой ÑиÑтеме ext2 (Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÐµÐ¼Ð°Ñ Ð² Linux -по умолчанию); -.br -\- файловой ÑиÑтемы shell (Ð´Ð»Ñ Ð¼Ð°Ð½Ð¸Ð¿ÑƒÐ»Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸ при работе Ñ -оболочкой через такие программы как rsh и ssh); -.br -\- и, наконец, Ñетевой файловой ÑиÑтемы nfs. -.PP -Подпрограммы работы Ñ Ð²Ð¸Ñ€Ñ‚ÑƒÐ°Ð»ÑŒÐ½Ñ‹Ð¼Ð¸ файловыми ÑиÑтемами интерпретируют -вÑе вÑтречающиеÑÑ Ð¸Ð¼ÐµÐ½Ð° путей и формируют корректные Ð¾Ð±Ñ€Ð°Ñ‰ÐµÐ½Ð¸Ñ Ðº -различным файловым ÑиÑтемам. Форматы Ð¾Ð±Ñ€Ð°Ñ‰ÐµÐ½Ð¸Ñ Ðº каждой из виртуальных -файловых ÑиÑтем опиÑаны в отдельных разделах по каждой ВФС: -.IP -.\"LINK2" -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема FTP -.\"FTP File System" -.br -.\"LINK2" -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема TAR -.\"TAR File System" -.br -.\"LINK2" -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема SHELL (FIle transfer over SHell) -.\"FIle transfer over SHell filesystem" -.br -.\"LINK2" -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема SFTP (SSH File Transfer Protocol) -.\"SFTP (SSH File Transfer Protocol) filesystem" -.br -.\"LINK2" -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема UFS (Undelete File System) -.\"Undelete File System" -.\"NODE " FTP File System" -.SH " Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема FTP" -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема FTP позволÑет работать Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸ на удалённых -компьютерах. Ð”Ð»Ñ Ñтого можно иÑпользовать команду "FTP\-Ñоединение" -(доÑтупную из меню левой и правой панелей) или же непоÑредÑтвенно -Ñменить текущий каталог командой cd, задав путь к каталогу Ñледующим -образом: -.PP -.I ftp://[!][user[:pass]@]machine[:port]/[remote\-dir] -.PP -Элементы -.IR user , -.I port -и -.I remote\-dir -не обÑзательны. ЕÑли Ñлемент -.I user -указан, то Midnight Commander будет пытатьÑÑ Ñ€ÐµÐ³Ð¸ÑтрироватьÑÑ Ð½Ð° удалённом -компьютере Ñ Ñти именем, в противном Ñлучае будет иÑпользовано Ð¸Ð¼Ñ -anonymous или Ð¸Ð¼Ñ Ð¸Ð· файла ~/.netrc. ÐеобÑзательный Ñлемент -.I pass -(еÑли указан) иÑпользуетÑÑ ÐºÐ°Ðº пароль Ð´Ð»Ñ Ð²Ñ…Ð¾Ð´Ð°. Однако Ñвно задавать -его не рекомендуетÑÑ (также не запиÑывайте его в ваши каталоги быÑтрого доÑтупа, -еÑли только вы не обеÑпечили ÑоответÑтвующую защиту Ñтих файлов; но и тогда -Ð½ÐµÐ»ÑŒÐ·Ñ Ð±Ñ‹Ñ‚ÑŒ полноÑтью уверенным в безопаÑноÑти). -.PP -.nf - ftp://ftp.nuclecu.unam.mx/linux/local - ftp://tsx\-11.mit.edu/pub/linux/packages - ftp://!behind.firewall.edu/pub - ftp://guest@remote\-host.com:40/pub - ftp://miguel:xxx@server/pub -.fi -.PP -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы ÑоединитьÑÑ Ñ Ñервером, который раÑположен за firewall, -нужно иÑпользовать Ð¿Ñ€ÐµÑ„Ð¸ÐºÑ ftp://! (то еÑть добавить воÑклицательный -знак перед именем Ñервера), чтобы указать Midnight Commander на -необходимоÑть иÑпользовать прокÑи Ð´Ð»Ñ Ð¾ÑущеÑÑ‚Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿ÐµÑ€ÐµÐ´Ð°Ñ‡ по ftp. Ð’Ñ‹ -можете задать Ð¸Ð¼Ñ Ð¿Ñ€Ð¾ÐºÑи в диалоговом окне -.\"LINK2" -Виртуальные ФС... -.\"Virtual FS" -меню "ÐаÑтройки". -.PP -Чтобы не задавать Ð¸Ð¼Ñ Ð¿Ñ€Ð¾ÐºÑи\-Ñервера каждый раз, можно поÑтавить отметку -в квадратных Ñкобках возле опции -.I Ð’Ñегда иÑпользовать FTP\-прокÑи -в диалоговом окне -.\"LINK2" -Виртуальные ФС... -.\"Virtual FS" -меню "ÐаÑтройки". Ð’ таком Ñлучае программа вÑегда будет иÑпользовать -указанный прокÑи\-Ñервер. При Ñтом (еÑли Ð¾Ð¿Ñ†Ð¸Ñ ÑƒÑтановлена) программа -делает Ñледующее: Ñчитывает из файла -.B %sysconfdir%/mc/mc.no_proxy -имена локальных машин (еÑли Ð¸Ð¼Ñ Ð½Ð°Ñ‡Ð¸Ð½Ð°ÐµÑ‚ÑÑ Ñ Ñ‚Ð¾Ñ‡ÐºÐ¸, оно ÑчитаетÑÑ Ð¸Ð¼ÐµÐ½ÐµÐ¼ -домена), и, еÑли заданное при уÑтановлении FTP\-ÑÐ¾ÐµÐ´Ð¸Ð½ÐµÐ½Ð¸Ñ Ð¸Ð¼Ñ Ð¼Ð°ÑˆÐ¸Ð½Ñ‹ -Ñовпадает Ñ Ð¾Ð´Ð½Ð¸Ð¼ из имен, указанных в файле -.B mc.no_proxy -без точки, то производит прÑмое обращение к данной машине. -.PP -При подключении к FTP\-Ñерверу через фильтрующий пакеты маршрутизатор, -который не позволÑет иÑпользовать обычный режим Ð¾Ñ‚ÐºÑ€Ñ‹Ñ‚Ð¸Ñ -файлов, можно заÑтавить программу работать в режиме паÑÑивного -Ð¾Ñ‚ÐºÑ€Ñ‹Ñ‚Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð°. Ð”Ð»Ñ Ñтого уÑтановите в конфигурационном файле параметр -.I ftpfs_use_passive_connections -в 1. -.PP -Midnight Commander ÑохранÑет в течение заданного интервала времени -ÑпиÑок файлов удалённого каталога, прочитанный по FTP, в оперативной -памÑти. Величина Ñтого интервала времени задаётÑÑ Ð² диалоговом окне -.\"LINK2" -Виртуальные ФС... -.\"Virtual FS" -меню "ÐаÑтройки". Ð’ Ñилу Ñтого возможен побочный Ñффект, заключающийÑÑ Ð² -том, что даже еÑли вы Ñделали какие\-то Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð² каталоге, они не -будут отображатьÑÑ Ð² панели до тех пор, пока вы не обновите Ñодержимое -панели командой -.BR C\-r . -Это не ÑвлÑетÑÑ Ð½ÐµÐ´Ð¾Ñ€Ð°Ð±Ð¾Ñ‚ÐºÐ¾Ð¹ (еÑли вы думаете, что Ñто ошибка, -поразмыÑлите над тем, как проиÑходит работа по FTP Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸, -находÑщимиÑÑ Ð½Ð° другой Ñтороне ÐтлантичеÑкого океана). -.\"NODE " TAR File System" -.SH " Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема TAR" -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема TAR обеÑпечивает доÑтуп по чтению к tar\- и Ñжатым -tar\-файлам, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ ÐºÐ¾Ð¼Ð°Ð½Ð´Ñƒ chdir. Ð”Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° в каталог, -предÑтавлÑющий ÑпиÑок файлов tar\-файла, нужно иÑпользовать команду, -имеющую Ñледующий формат: -.PP -.I cd ./filename.tar/utar://[dir\-inside\-tar] -.PP -Файл mc.ext.ini по умолчанию Ñодержит команды Ð´Ð»Ñ Ð¿Ñ€Ð¾Ñмотра -tar\-файлов, то еÑть обычно Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ ÑпиÑка файлов tar\-архива -доÑтаточно проÑто перемеÑтить указатель на Ð¸Ð¼Ñ tar\-файла и нажать -.BR Enter . -Чтобы понÑть, как Ñто доÑтигаетÑÑ, Ñмотрите раздел -.\"LINK2" -Файл раÑширений\&. -.\"Edit Extension File" -.PP -Примеры: -.PP -.nf - mc\-3.0.tar.gz/utar://mc\-3.0/vfs - /ftp/GCC/gcc\-2.7.0.tar/utar:// -.fi -.PP -Ð’ поÑледнем примере указан полный путь к tar\-архиву. -.\"NODE " FIle transfer over SHell filesystem" -.SH " Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема SHELL (FIle transfer over SHell)" -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема shell \- Ñто ÑÐµÑ‚ÐµÐ²Ð°Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð¿Ð¾Ð·Ð²Ð¾Ð»Ñет -работать Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸ на удалённом компьютере так, как еÑли бы они были -раÑположены на вашем диÑке. Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы Ñто было возможно, на -удалённом компьютере должна быть запущена bash\-ÑовмеÑÑ‚Ð¸Ð¼Ð°Ñ Ð¾Ð±Ð¾Ð»Ð¾Ñ‡ÐºÐ° shell. -.PP -Ð”Ð»Ñ ÑÐ¾ÐµÐ´Ð¸Ð½ÐµÐ½Ð¸Ñ Ñ ÑƒÐ´Ð°Ð»Ñ‘Ð½Ð½Ñ‹Ð¼ компьютером нужно выполнить команду -перехода в каталог (chdir), Ð¸Ð¼Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð³Ð¾ задаётÑÑ Ð² Ñледующем формате: -.PP -.I sh://[user@]machine[:options]/[remote\-dir] -.PP -Элементы -.IR user , -.I options -и -.I remote\-dir -не обÑзательны. ЕÑли задан Ñлемент -.IR user , -то Midnight Commander будет региÑтрироватьÑÑ Ð½Ð° удалённый компьютер под -Ñтим именем, в противном Ñлучае \- под тем именем, Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ð¼ вы -зарегиÑтрированы в локальной ÑиÑтеме. -.PP -Ð’ качеÑтве -.I options -могут иÑпользоватьÑÑ: -.nf - 'C' \- иÑпользовать Ñжатие; - 'r' \- иÑпользовать rsh вмеÑто ssh; - port \- иÑпользовать данный порт Ð´Ð»Ñ Ð¿Ð¾Ð´ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ðº удалённому компьютеру. -.fi -.PP -ЕÑли задан Ñлемент -.IR remote\-dir , -то указанный каталог Ñтанет текущим поÑле ÑÐ¾ÐµÐ´Ð¸Ð½ÐµÐ½Ð¸Ñ Ñ ÑƒÐ´Ð°Ð»Ñ‘Ð½Ð½Ñ‹Ð¼ компьютером. -.PP -Примеры: -.PP -.nf - sh://onlyrsh.mx:r/linux/local - sh://joe@want.compression.edu:C/private - sh://joe@noncompressed.ssh.edu/private - sh://joe@somehost.ssh.edu:2222/private -.fi -.\"NODE " SFTP (SSH File Transfer Protocol) filesystem" -.SH " Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема SFTP (SSH File Transfer Protocol)" -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема SFTP \- Ñто ÑÐµÑ‚ÐµÐ²Ð°Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ð¿Ð¾Ð·Ð²Ð¾Ð»Ñет -работать Ñ Ñ„Ð°Ð¹Ð»Ð°Ð¼Ð¸ на удалённом компьютере так, как еÑли бы они были -раÑположены на вашем диÑке. Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы Ñто было возможно, на -удалённом компьютере должен быть запущен SFTP\-Ñервер. -.PP -Ð”Ð»Ñ ÑÐ¾ÐµÐ´Ð¸Ð½ÐµÐ½Ð¸Ñ Ñ ÑƒÐ´Ð°Ð»Ñ‘Ð½Ð½Ñ‹Ð¼ компьютером нужно выполнить команду -перехода в каталог (chdir), Ð¸Ð¼Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð³Ð¾ задаётÑÑ Ð² Ñледующем формате: -.PP -.I sftp://[user@]machine[:port]/[remote\-dir] -.PP -Элементы -.IR user , -.I port -и -.I remote\-dir -не обÑзательны. ЕÑли задан Ñлемент -.IR user , -то Midnight Commander будет региÑтрироватьÑÑ Ð½Ð° удалённый компьютер под -Ñтим именем, в противном Ñлучае \- под тем именем, Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ñ‹Ð¼ вы -зарегиÑтрированы в локальной ÑиÑтеме. ЕÑли задан -.I port -то он будет иÑпользован Ð´Ð»Ñ Ð¿Ð¾Ð´ÐºÐ»ÑŽÑ‡ÐµÐ½Ð¸Ñ Ðº удалённому компьютеру. -ЕÑли задан Ñлемент -.IR remote\-dir , -то указанный каталог Ñтанет текущим поÑле ÑÐ¾ÐµÐ´Ð¸Ð½ÐµÐ½Ð¸Ñ Ñ ÑƒÐ´Ð°Ð»Ñ‘Ð½Ð½Ñ‹Ð¼ компьютером. -.PP -Примеры: -.PP -.nf - sftp://onlyrsh.mx/linux/local - sftp://joe:password@want.compression.edu/private - sftp://joe@noncompressed.ssh.edu/private - sftp://joe@somehost.ssh.edu:2222/private -.fi -При уÑтановлении ÑÐ¾ÐµÐ´Ð¸Ð½ÐµÐ½Ð¸Ñ Ð¿Ñ€Ð¾Ð¸Ñходит проверка ключа Ñервера Ñ Ð¸Ñпользованием -файла ~/.ssh/known_hosts file. ЕÑли пара Ñервер/ключ в Ñтом файле не найдена -или Ñервер найден, но ключ не ÑоответÑтвует, пользователю показываетÑÑ -окно Ñ ÑоответÑтвующим Ñообщением, Ñодержащее три кнопки: -.PP -.B [Да] -добавить новую пару Ñервер/ключ в файл ~/.ssh/known_hosts и продолжить Ñоединение. -.PP -.B [Игнорировать] -не добавлÑть новую пару Ñервер/ключ в файл ~/.ssh/known_hosts и вÑÑ‘ равно -продолжить Ñоединение (на Ñвой Ñтрах и риÑк). -.PP -.B [Ðет] -прервать Ñоединение. -.\"NODE " Undelete File System" -.SH " Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема UFS (Undelete File System)" -Ð’ ОС Linux можно Ñконфигурировать файловую ÑиÑтему ext2fs, иÑпользуемую -по умолчанию, таким образом, что поÑвитÑÑ Ð²Ð¾Ð·Ð¼Ð¾Ð¶Ð½Ð¾Ñть воÑÑтанавливать -удалённые файлы (но только в файловой ÑиÑтеме ext2). Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема -UFS (Undelete File System) предÑтавлÑет Ñобой Ð¸Ð½Ñ‚ÐµÑ€Ñ„ÐµÐ¹Ñ Ðº библиотекам -ext2fs, позволÑющий воÑÑтановить имена вÑех удалённых файлов, выбрать -некоторое количеÑтво таких файлов и воÑÑтановить их. -.PP -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы воÑпользоватьÑÑ Ñтой возможноÑтью (Ñтой файловой -ÑиÑтемой), нужно выполнить команду перехода (chdir) в Ñпециальный -каталог, Ð¸Ð¼Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð³Ð¾ образуетÑÑ Ð¸Ð· префикÑа "undel://" и имени -Ñпециального файла уÑтройÑтва, на котором находитÑÑ Ñ€ÐµÐ°Ð»ÑŒÐ½Ð°Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ -ÑиÑтема. -.PP -Ðапример, чтобы воÑÑтановить удалённые файлы на втором разделе первого -SCSI\-диÑка, нужно иÑпользовать Ñледующее имÑ: -.PP -.nf - undel://sda2 -.fi -.PP -Загрузка ÑпиÑка удалённых файлов требует некоторого времени, так что -наберитеÑÑŒ терпениÑ. Имейте в виду, что имена файлов в полученном ÑпиÑке -будут цифровыми, так что поиÑк нужного придётÑÑ Ð¿Ñ€Ð¾Ð²Ð¾Ð´Ð¸Ñ‚ÑŒ либо по дате, -либо поÑледовательным проÑмотром Ñодержимого (в общем, Ñ Ð²Ð°Ð¼ не -завидую!). -.\"NODE " EXTernal File System" -.SH " ВнешнÑÑ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема (EXTernal File System)" -.B extfs -ВнешнÑÑ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема позволÑет очень проÑто интегрировать новые -файловые контейнера и типы файлов проÑтым напиÑанием Ñкриптов. -.PP -Ð¤Ð°Ð¹Ð»Ð¾Ð²Ð°Ñ ÑиÑтема Extfs подразделÑетÑÑ Ð½Ð° две категории: -.PP -1. Ðвтономные файловые ÑиÑтемы, которые не аÑÑоциированы ни Ñ Ð¾Ð´Ð½Ð¸Ð¼ из -типов файлов.они предÑтавлÑÑŽÑ‚ некоторые ÑиÑтемные данные как дерево каталогов -Ð’Ñ‹ можете их вызвать набрав \fIcd fsname://\fR", где fsname \- Ñто короткое -Ð¸Ð¼Ñ extfs (Ñм. ниже). Примеры Ñтих ВФС включают audio (ÑпиÑок вÑех звуковых -дорожек на CD) или apt (ÑпиÑок вÑех уÑтановленных в ÑиÑтеме пакетов Debian). -.PP -Ðапример, Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ ÑпиÑка звуковых дорожек на CD наберите: -.PP -.nf - cd audio:// -.fi -.PP -2. "Ðрхивные" файловые ÑиÑтемы (такие как rpm, patchfs и прочие) предÑтавлÑÑŽÑ‚ -Ñодержимое файла как дерево каталогов. Они могут ÑоÑтоÑть из "реальных" файлов, -находÑщихÑÑ Ð² Ñжатом виде в архивах (urar, rpm) или из виртуальных файлов, -например, Ñообщений в файле mailbox (mailfs) или чаÑти diff\-файла (patchfs). -Ð”Ð»Ñ Ð´Ð¾Ñтупа к Ñтим ВФС ÑÑƒÑ„Ñ„Ð¸ÐºÑ -.I "fsname://" -должен быть добавлен к имени архива. Сам архив может находитьÑÑ Ð² другой ВФС. -.PP -Ðапример, Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ ÑпиÑка Ñодержимого архива documents.zip наберите: -.PP -.nf - cd documents.zip/uzip:// -.fi -.PP -Можно манипулировать extfs\-путÑми как обычными каталогами и файлами. Ðапример, -можно добавить их в каталоги быÑтрого доÑтупа или перейти на него из иÑтории -каталогов в панели. ОÑновное ограничение: Ð½ÐµÐ»ÑŒÐ·Ñ Ð·Ð°Ð¿ÑƒÑкать shell\-команды -внутри extfs, как и на любой другой нелокальной ВФС. -.PP -СпиÑок некоторых extfs\-Ñкриптов, включённых в Midnight Commander: -.TP -.B a -доÑтуп к DOS/Windows диÑку 'A:' ("\fIcd a://\fR"). -.TP -.B apt -front end Ð´Ð»Ñ ÑиÑтемы ÑƒÐ¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ñ Ð¿Ð°ÐºÐµÑ‚Ð°Ð¼Ð¸ APT (Debian) ("\fIcd apt://\fR"). -.TP -.B audio -Чтение и воÑпроизведение звуковых дорожек Ñ CD ("\fIcd audio://\fR" или -\"\fIcd device/audio://\fR"). -.TP -.B bpp -пакеты диÑтрибутива Bad Penguin GNU/Linux ("\fIcd file.bpp/bpp://\fR"). -.TP -.B deb -пакеты диÑтрибутива Debian GNU/Linux ("\fIcd file.deb/deb://\fR"). -.TP -.B dpkg -Управление уÑтановленными deb\-пакетами ("\fIcd deb://\fR"). -.TP -.B hp48 -проÑмотр и копирование файлов Ñ/на калькулÑтор HP48 ("\fIcd hp48://\fR"). -.TP -.B lslR -проÑмотр lslR\-файлов, находÑщихÑÑ Ð½Ð° многих FTP\-Ñерверах ("\fIcd filename/lslR://\fR"). -.TP -.B mailfs -поддержка файлов формата mailbox ("\fIcd mailbox/mailfs://\fR"). -.TP -.B patchfs -поддержка diff\-файлов ("\fIcd filename/patchfs://\fR"). -.TP -.B rpm -поддержка файлов в формате RPM ("\fIcd filename/rpm://\fR"). -.TP -.B rpms -Управление уÑтановленными в ÑиÑтеме RPM\-пакетами ("\fIcd rpms://\fR"). -.TP -.B ulha, urar, uzip, uzoo, uar, uha -архивы ("\fIcd archive/xxxx://\fR"), где xxxx один из: -.IR ulha , -.IR urar , -.IR uzip , -.IR uzoo , -.IR uar , -.IR uha ). -.PP -Ð’Ñ‹ можете назначить ВФС файлах по типу или раÑширению в Ñекции -.\"LINK2" -Файл раÑширений -.\"Edit Extension File" -Ðапример, Ð´Ð»Ñ Ð¾Ð±Ñ€Ð°Ð±Ð¾Ñ‚ÐºÐ¸ пакетов Debian внеÑите: -.PP -.nf - regex/\.deb$ - Open=%cd %p/deb:// -.fi -.\"NODE "Colors" -.SH "Цвета" -Программа Midnight Commander пытаетÑÑ Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»Ð¸Ñ‚ÑŒ, поддерживает ли ваш -терминал цвета, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ Ð´Ð»Ñ Ñтого базу данных о терминалах и Ð¸Ð¼Ñ -вашего терминала. Иногда Ñто не удаётÑÑ. Ð’ таких ÑлучаÑÑ… можно -включить или отключить цветной вывод, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ ÐºÐ»ÑŽÑ‡Ð¸ запуÑка программы -\-c и \-b, ÑоответÑтвенно. -.PP -Программа может быть Ñкомпилирована Ñ Ð¸Ñпользованием библиотек -.B ncurses -или -.BR S\-Lang . -.B Ncurses -не даёт возможноÑти включать цветной режим: ncurses иÑпользует только -информацию из базы данных о терминалах. Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы узнать, ÐºÐ°ÐºÐ°Ñ -библиотека была иÑпользована при компилÑции, дайте команду -.BR "mc \-V" . -.PP -ЕÑли программа Ñкомпилирована Ñ Ð¸Ñпользованием менеджера Ñкрана -.BR S\-Lang , -она проверÑет значение переменной -.BR COLORTERM . -Задание Ñтой переменной даёт тот же Ñффект, что и задание ключа \-c. -.PP -Можно указать терминалы, которые вÑегда должны работать в цветном -режиме, добавив Ñтроку -.I color_terminals -в Ñекцию Colors инициализационного файла. Ð’ Ñтом Ñлучае Midnight -Commander не будет пытатьÑÑ Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»Ð¸Ñ‚ÑŒ, поддерживает ли ваш терминал -цветной вывод. Пример: -.PP -.nf -[Colors] -color_terminals=linux,xterm -.fi -.nf -color_terminals=terminal\-name1,terminal\-name2... -.fi -.PP -Midnight Commander обеÑпечивает также возможноÑть изменÑть цвета, -заданные по умолчанию. Ð’ наÑтоÑщее Ð²Ñ€ÐµÐ¼Ñ Ñ‚Ð°Ð±Ð»Ð¸Ñ†Ð° иÑпользуемых цветов -задаётÑÑ Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð¾Ð¹ -.B MC_COLOR_TABLE -или в Ñекции Colors инициализационного файла. -.PP -Ð’ Ñекции Colors Ð·Ð°Ð³Ñ€ÑƒÐ¶Ð°ÐµÐ¼Ð°Ñ Ð¿Ð¾ умолчанию таблица цветов определÑетÑÑ -переменной (Ñтрокой) -.IR base_color . -Ð’Ñ‹ можете указать альтернативную таблицу цветов Ð´Ð»Ñ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð»Ð°, иÑÐ¿Ð¾Ð»ÑŒÐ·ÑƒÑ -Ð¸Ð¼Ñ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð»Ð° как ключ в Ñтой Ñекции. Пример: -.PP -.nf -[Colors] -base_color= -xterm=menu=magenta:marked=,magenta:markselect=,red -.fi -.PP -Формат Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ñ†Ð²ÐµÑ‚Ð°: -.PP -.nf - =,,:= ... -.fi -.PP -Цвета не ÑвлÑÑŽÑ‚ÑÑ Ð¾Ð±Ñзательными, а в качеÑтве ключевых Ñлов -могут иÑпользоватьÑÑ: Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ñ†Ð²ÐµÑ‚Ð¾Ð²Ð¾Ð¹ палитры в панелÑÑ…: normal, -selected, disabled, marked, markselect, errors, input, inputmark, inputunchanged, -commandlinemark, reverse, gauge, header, inputhistory, commandhistory. -Цвета Ñтроки "горÑчих" клавиш -.BR "F1 \- F10" : -bbarhotkey, bbarbutton. -Цвет Ñтроки ÑтатуÑа редактора и программ проÑмотра и ÑÑ€Ð°Ð²Ð½ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²: statusbar. -Цвета пунктов меню: menunormal, menusel, menuhot, menuhotsel, menuinactive. -Цвета в окне диалога: dnormal, dfocus, dhotnormal, dhotfocus. -Цвета в диалоге\-Ñообщении об ошибке: errdfocus, errdhotnormal, errdhotfocus, errdtitle. -Цвета в окне вÑтроенной помощи: helpnormal, helpitalic, helpbold, helplink, helpslink. -Цвета в окне программы проÑмотра: viewnormal, viewbold, viewunderline, viewselected. -Цвета в редакторе: editnormal, editbold, editmarked, editwhitespace, editnonprintable, -editlinestate. -Цвета окна вÑплывающего меню: pmenunormal, pmenusel, pmenutitle. -.PP -Цвета задавать не обÑзательно. Цвет какого именно Ð¿Ð¾Ð»Ñ Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»ÑетÑÑ -каждым ключевым Ñловом, можно понÑть из перевода Ñтого ключевого Ñлова. -Ðекоторые Ñлучаи требуют поÑÑнений. -.PP -.I header -определÑет цвет заголовка панели, Ñтроку, Ñодержащую заголовки панелей -и индикатор Ñортировки. -.PP -.I input -определÑет цвета в Ñтроке ввода в диалоговых окнах; -.PP -.I inputmark -цвет выделенного текÑта в Ñтроке ввода в диалоговых окнах; -.PP -.I inputunchanged -цвет текÑта в Ñтроке ввода до первого Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ñ Ð¸Ð»Ð¸ до Ð¿ÐµÑ€ÐµÐ¼ÐµÑ‰ÐµÐ½Ð¸Ñ ÐºÑƒÑ€Ñора; -.PP -.I commandlinemark -цвет выделенного текÑта в командной Ñтроке; -.PP -.I gauge -определÑет цвет заполненной чаÑти полоÑки (progress bar), при -графичеÑком отображении хода Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð¾Ð²Ñ‹Ñ… операций (копирование и -др.). -.I disabled -определÑет цвет Ñлемента диалога, который не может по каким\-то причинам быть выбран -Ð´Ð»Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ñ‹ Ñ Ð½Ð¸Ð¼. -.PP -Диалоговые окна иÑпользуют Ñледующие цвета: -.I dnormal -иÑпользуетÑÑ Ð´Ð»Ñ Ð½Ð¾Ñ€Ð¼Ð°Ð»ÑŒÐ½Ð¾Ð³Ð¾ текÑта, -.I dfocus -\- цвет, иÑпользуемый -Ð´Ð»Ñ Ð²Ñ‹Ð´ÐµÐ»ÐµÐ½Ð½Ð¾Ð³Ð¾ в данный момент компонента окна, -.I dhotnormal -\- цвет, иÑпользуемый Ð´Ð»Ñ Ð²Ñ‹Ð´ÐµÐ»ÐµÐ½Ð¸Ñ "горÑчих" клавиш в обычных -компонентах, в то Ð²Ñ€ÐµÐ¼Ñ ÐºÐ°Ðº цвет -.I dhotfocus -иÑпользуетÑÑ Ð´Ð»Ñ Ð²Ñ‹Ð´ÐµÐ»ÐµÐ½Ð¸Ñ "горÑчих" клавиш в выбранных в данный момент -компонентах окна. -.PP -Ð’ меню иÑпользуетÑÑ Ñ‚Ð° же ÑÐ°Ð¼Ð°Ñ Ñхема, только в качеÑтве названий -Ñлементов иÑпользуютÑÑ menunormal, menusel, menuhot, menuhotsel и menuinactive. -.PP -Окно подÑказки иÑпользует Ñледующие цвета: -.I helpnormal -\- Ð´Ð»Ñ Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð¿Ñ€Ð¾Ñтого текÑта, -.I helpitalic -\- Ð´Ð»Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð° текÑта, выделенного в man\-Ñтраницах курÑивом, -.I helpbold -\- Ð´Ð»Ñ Ð²Ñ‹Ð²Ð¾Ð´Ð° текÑта, выделенного в man\-Ñтраницах жирным шрифтом, -.I helplink -\- Ð´Ð»Ñ Ð²Ñ‹Ð´ÐµÐ»ÐµÐ½Ð¸Ñ Ð½ÐµÐ°ÐºÑ‚Ð¸Ð²Ð½Ñ‹Ñ… гиперÑÑылок, -.I helpslink -\- Ð´Ð»Ñ Ð²Ñ‹Ð´ÐµÐ»ÐµÐ½Ð¸Ñ Ð°ÐºÑ‚Ð¸Ð²Ð½Ð¾Ð¹ в данный момент гиперÑÑылки. -.PP -Во вÑплывающем меню иÑпользуютÑÑ Ñледующие цвета: -.I pmenunormal -\- Ð´Ð»Ñ Ð½ÐµÐ²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ñ‹Ñ… пунктов меню и как оÑновной цвет окна, -.I pmenusel -\- Ð´Ð»Ñ Ð²Ñ‹Ð±Ñ€Ð°Ð½Ð½Ð¾Ð³Ð¾ пункта меню, -.I pmenutitle -\- Ð´Ð»Ñ Ð·Ð°Ð³Ð¾Ð»Ð¾Ð²ÐºÐ° окна меню. -.PP -Возможные цвета: black, gray, red, brightred, green, brightgreen, brown, -yellow, blue, brightblue, magenta, brightmagenta, cyan, brightcyan, -lightgray и white. Ð”Ð»Ñ Ð¿Ñ€Ð¾Ð·Ñ€Ð°Ñ‡Ð½Ð¾Ð³Ð¾ фона иÑпользуютÑÑ Ñпециальное ключевое -Ñлово "default". Слово "default" можно иÑпользовать только при задании цвета -фона. Ð”Ð»Ñ Ð¾Ñновных цветов MC иÑпользуетÑÑ Ð´Ñ€ÑƒÐ³Ð¾Ðµ Ñпециальное ключевое -Ñлово: "base". ЕÑли терминал поддерживает 256 цветов, то Ð´Ð»Ñ Ð½Ð¸Ñ… могут -иÑпользоватьÑÑ Ð¾Ð±Ð¾Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ: от color16 до color255 или от rgb000 до rgb555 -и от gray0 до gray23. -Пример: -.PP -.nf -[Colors] -base_color=normal=white,default:marked=magenta,default -.fi -.PP -Ðтрибуты обозначаютÑÑ Ñловами "bold", "italic", "underline", "reverse" и "blink". -Чтобы иÑпользовать неÑколько атрибутов, их надо перечиÑлить через Ñимвол "+". -The special word "none" menas no attributes, without attempting to fall back -to base_color. Пример: -.PP -.nf -menuhotsel=yellow;black;bold+underline -.fi -.\"NODE "Skins" -.SH "Внешний вид" -Ð’Ñ‹ можете изменить внешний вид Midnight Commander'а. Ð”Ð»Ñ Ñтого необходимо -указать файл, в котором указаны цвета и линии Ð´Ð»Ñ Ð¾Ñ‚Ñ€Ð¸Ñовки рамок. Такой -файл называетÑÑ Ð´Ð°Ð»ÐµÐµ Ñкин\-файл. переопределение внешнего вида полноÑтью -ÑовмеÑтимо Ñ Ð·Ð°Ð´Ð°Ð½Ð¸ÐµÐ¼ цветов, опиÑанным в Ñекции -.\"LINK2" -Цвета\&. -.\"Colors" -.PP -ЕÑли Ñкин Ñодержит опиÑание любого из 256\-ти цветов, то необходимо уÑтановить -опцию '256colors' Ñо значением TRUE в Ñекции [skin]. -.PP -ПоиÑк Ñкин\-файла производитÑÑ Ð¿Ð¾ Ñледующему алгоритму (до -первого Ð½Ð°Ñ…Ð¾Ð¶Ð´ÐµÐ½Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð°): -.IP -.br -1) параметр командной Ñтроки -.B \-S <Ñкин> -или -.B \-\-skin=<Ñкин> -.br -2) Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ -.B MC_SKIN -.br -3) параметр -.B skin -в Ñекции -.B [Midnight\-Commander] -конфигурационного файла. -.br -4) файл -.B %sysconfdir%/mc/skins/default.ini -.br -5) файл -.B %pkgdatadir%/skins/default.ini -.PP -Параметры в трёх первых ÑлучаÑÑ… могут Ñодержать абÑолютный путь к Ñкин\-файлу -либо проÑто название Ñкина (Ñ Ñ€Ð°Ñширением \.ini либо без него). Ð’ данном -Ñлучае поиÑк Ñкин\-файла будет проиÑходить по Ñледующим каталогам (до первого -нахождениÑ): -.IP -.br -1) -.B ~/.local/share/mc/skins/ -.br -2) -.B %sysconfdir%/mc/skins/ -.br -3) -.B %pkgdatadir%/skins/ -.br -.PP -Ð”Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ñ€Ð°Ñширенной информации, обратитеÑÑŒ к подразделам: -.IP -.\"LINK2" -ОпиÑание Ñекций и параметров -.\"Skins sections" -.br -.\"LINK2" -ÐžÐ¿Ñ€ÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ñ†Ð²ÐµÑ‚Ð¾Ð²Ñ‹Ñ… пар -.\"Skins colors" -.br -.\"LINK2" -ПÑевдонимы цветов и атрибутов -.\"Skins aliases" -.br -.\"LINK2" -Линии Ð´Ð»Ñ Ð¾Ñ‚Ñ€Ð¸Ñовки рамок -.\"Skins lines" -.br -.\"LINK2" -СовмеÑтимоÑть -.\"Skins oldcolors" -.br - -.\"NODE " Skins sections" -.SH " ОпиÑание Ñекций" -Ð¡ÐµÐºÑ†Ð¸Ñ -.B [skin] -Ñодержит информацию, отноÑÑщуюÑÑ Ðº Ñамому Ñкин\-файлу. Параметр -.I description -кратко опиÑывает Ñкин. - -.PP -Ð¡ÐµÐºÑ†Ð¸Ñ -.B [filehighlight] -Ñодержит опиÑÐ°Ð½Ð¸Ñ Ñ†Ð²ÐµÑ‚Ð¾Ð²Ñ‹Ñ… пар Ð´Ð»Ñ Ð³Ñ€ÑƒÐ¿Ð¿ подÑветок имен файлов. -ÐÐ°Ð·Ð²Ð°Ð½Ð¸Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð¾Ð² в Ñекции должно Ñовпадать Ñ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñми Ñекций в файле подÑветки. -Смотрите раздел -.\"LINK2" -ПодÑветка имён файлов -.\"Filenames Highlight" -Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð´Ñ€Ð¾Ð±Ð½Ð¾Ð¹ информации. - -.PP -Ð¡ÐµÐºÑ†Ð¸Ñ -.B [core] -Ñодержит опиÑание Ñлементов, иÑпользуемых повÑемеÑтно. -.TP -.I _default_ -Цвет по умолчанию. ИÑпользуетÑÑ Ð²Ð¾ вÑех оÑтальных ÑекциÑÑ… (глобальный параметр), -еÑли в них нет переопределениÑ. -.TP -.I selected -курÑор -.TP -.I marked -отмеченные данные -.TP -.I markselect -курÑор на отмеченных данных -.TP -.I gauge -цвет заполненной чаÑти индикатора прогреÑÑа -.TP -.I input -Ñлемент ввода данных -.TP -.I reverse -инвертированный цвет - -.PP -Ð¡ÐµÐºÑ†Ð¸Ñ -.B [dialog] -Ñодержит опиÑÐ°Ð½Ð¸Ñ Ñлементов диалоговых окон (кроме Ñообщений об ошибках). -.TP -.I _default_ -цвет по умолчанию Ð´Ð»Ñ Ð´Ð°Ð½Ð½Ð¾Ð¹ Ñекции. ЕÑли не указан, то иÑпользуетÑÑ [core]._default_ -.TP -.I dfocus -цвет Ñлемента, находÑщегоÑÑ Ð² фокуÑе -.TP -.I dhotnormal -цвет "горÑчих" клавиш -.TP -.I dhotfocus -цвет "горÑчих" клавиш, находÑщихÑÑ Ð² фокуÑе - -.PP -Ð¡ÐµÐºÑ†Ð¸Ñ -.B [error] -Ñодержит опиÑÐ°Ð½Ð¸Ñ Ñлементов диалога\-ÑÐ¾Ð¾Ð±Ñ‰ÐµÐ½Ð¸Ñ Ð¾Ð± ошибках. -.TP -.I _default_ -цвет по умолчанию Ð´Ð»Ñ Ð´Ð°Ð½Ð½Ð¾Ð¹ Ñекции. ЕÑли не указан, то иÑпользуетÑÑ [core]._default_ -.TP -.I errdhotnormal -цвет "горÑчих" клавиш -.TP -.I errdhotfocus -цвет "горÑчих" клавиш, находÑщихÑÑ Ð² фокуÑе - -.PP -Ð¡ÐµÐºÑ†Ð¸Ñ -.B [menu] -Ñодержит опиÑание Ñлементов, отображающихÑÑ Ð² меню. Это каÑаетÑÑ ÐºÐ°Ðº ÑиÑтемного меню -(вызываемого клавишей -.BR F9 ), -так и пользовательÑких меню ( -.B F2 -в панелÑÑ… или -.B F11 -в редакторе). -.TP -.I _default_ -цвет по умолчанию Ð´Ð»Ñ Ð´Ð°Ð½Ð½Ð¾Ð¹ Ñекции. ЕÑли не указан, то иÑпользуетÑÑ [core]._default_ -.TP -.I entry -цвет пунктов меню -.TP -.I menuhot -цвет "горÑчих" клавиш -.TP -.I menusel -цвет выделенного пункта меню -.TP -.I menuhotsel -цвет "горÑчих" клавиш, находÑщихÑÑ Ð² фокуÑе -.TP -.I menuinactive -цвет неактивного меню - -.PP -Ð¡ÐµÐºÑ†Ð¸Ñ -.B [help] -Ñодержит опиÑÐ°Ð½Ð¸Ñ Ñ†Ð²ÐµÑ‚Ð¾Ð² Ð´Ð»Ñ Ð¾ÐºÐ½Ð° Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰Ð¸. -.TP -.I _default_ -цвет по умолчанию Ð´Ð»Ñ Ð´Ð°Ð½Ð½Ð¾Ð¹ Ñекции. ЕÑли не указан, то иÑпользуетÑÑ [core]._default_ -.TP -.I helpitalic -цветовыделение Ñлементов Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð¼ -.B italic -.TP -.I helpbold -цветовыделение Ñлементов Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð¼ -.B bold -.TP -.I helplink -цвет ÑÑылок -.TP -.I helpslink -цвет ÑÑылки, находÑщейÑÑ Ð¿Ð¾Ð´ курÑором - -.PP -Ð¡ÐµÐºÑ†Ð¸Ñ -.B [editor] -Ñодержит опиÑÐ°Ð½Ð¸Ñ Ñлементов редактора -.TP -.I _default_ -цвет по умолчанию Ð´Ð»Ñ Ð´Ð°Ð½Ð½Ð¾Ð¹ Ñекции. ЕÑли не указан, то иÑпользуетÑÑ [core]._default_ -.TP -.I editbold -цветовыделение Ñлементов Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð¼ -.B bold -.TP -.I editmarked -цвет выделенного текÑта -.TP -.I editwhitespace -цодÑветка знаков табулÑции и "виÑÑщих" пробелов -.TP -.I editlinestate -цвет облаÑти Ð¾Ñ‚Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ ÑоÑтоÑÐ½Ð¸Ñ Ñтроки. - -.PP -Ð¡ÐµÐºÑ†Ð¸Ñ -.B [viewer] -Ñодержит опиÑÐ°Ð½Ð¸Ñ Ñлементов редактора -.TP -.I viewunderline -цветовыделение Ñлементов Ñ Ð°Ñ‚Ñ€Ð¸Ð±ÑƒÑ‚Ð¾Ð¼ -.B underline - -.\"NODE " Skins colors" -.SH " Цветовые пары" -Каждый параметр в Ñкин\-файле Ñодержит цветовые пары. -.PP -Цветовые пары опиÑываютÑÑ ÐºÐ°Ðº два цвета и необÑзательные атрибуты, -разделённые Ñимволом ";". Первый цвет задаёт цвет напиÑÐ°Ð½Ð¸Ñ Ñимволов, -второй \- цвет фона. Любой из цветов и атрибуты могут быть пропущены, -в Ñтом Ñлучае будет взÑÑ‚ цвет по умолчанию (глобальный или Ð´Ð»Ñ Ð´Ð°Ð½Ð½Ð¾Ð¹ -Ñекции). -.PP -Ðапример: -.br -.nf -[core] - # зелёным по чёрному - _default_=green;black - # зелёным (умолч.) по Ñинему - selected=;blue - # жёлтым по чёрному (умолч.) Ñ Ð¿Ð¾Ð´Ñ‡Ñ‘Ñ€ÐºÐ¸Ð²Ð°Ð½Ð¸ÐµÐ¼ - marked=yellow;;underline -.fi - -.PP -Возможные цвета (названиÑ) и атрибуты опиÑаны в Ñекции -.\"LINK2" -Цвета\&. -.\"Colors" - -.\"NODE " Skins aliases" -.SH " ПÑевдонимы цветов и атрибутов" -Эта необÑÐ·Ð°Ñ‚ÐµÐ»ÑŒÐ½Ð°Ñ ÑÐµÐºÑ†Ð¸Ñ Ñодержит Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¿Ñевдонимов цветов (не цветовых пар) -и атрибутов. ПÑевдоним предÑтавлÑет Ñобой чаÑти Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð¾Ð² Ñкина. -Ð’ определение пÑевдонима может иÑпользоватьÑÑ Ð´Ñ€ÑƒÐ³Ð¾Ð¹ пÑевдоним, но при Ñтом -не должны образовыватьÑÑ Ñ†Ð¸ÐºÐ»Ð¸Ñ‡ÐµÑкие ÑÑылки. -.PP -Ðапример: -.br -.nf -[aliases] - myfavfg=green - myfavbg=black - myfavattr=bold+italic -[core] - _default_=myfavfg;myfavbg;myfavattr -.fi - -.\"NODE " Skins lines" -.SH " Линии Ð´Ð»Ñ Ð¾Ñ‚Ñ€Ð¸Ñовки рамок" -Линии задаютÑÑ Ð² Ñекции -.B [Lines] -в Ñкин\-файле. По умолчанию иÑпользуютÑÑ Ð¾Ð´Ð¸Ð½Ð°Ñ€Ð½Ñ‹Ðµ линии, но возможно -переназначить на иÑпользование любых utf\-8 Ñимволов, похожих на линии -.PP -.I Ð’ÐИМÐÐИЕ!!! -При Ñборке Midnight Commander Ñ Ð±Ð¸Ð±Ð»Ð¸Ð¾Ñ‚ÐµÐºÐ¾Ð¹ ncurses иÑпользование -линий ограничено! Возможна только отриÑовка одинарных линий. По вÑем -вопроÑам и предложениÑм обращайтеÑÑŒ к разработчикам ncurses. - -.PP -ОпиÑание параметров Ñекции -.BR [Lines] : -.TP -.I lefttop -изображение левого верхнего угла рамки -.TP -.I righttop -изображение правого верхнего угла рамки -.TP -.I centertop -изображение Ð¾Ñ‚Ð²ÐµÑ‚Ð²Ð»ÐµÐ½Ð¸Ñ Ð³Ð¾Ñ€Ð¸Ð·Ð¾Ð½Ñ‚Ð°Ð»ÑŒÐ½Ð¾Ð¹ линии вниз -.TP -.I centerbottom -изображение Ð¾Ñ‚Ð²ÐµÑ‚Ð²Ð»ÐµÐ½Ð¸Ñ Ð³Ð¾Ñ€Ð¸Ð·Ð¾Ð½Ñ‚Ð°Ð»ÑŒÐ½Ð¾Ð¹ линии вверх -.TP -.I leftbottom -изображение левого нижнего угла рамки -.TP -.I rightbottom -изображение правого нижнего угла рамки -.TP -.I leftmiddle -изображение Ð¾Ñ‚Ð²ÐµÑ‚Ð²Ð»ÐµÐ½Ð¸Ñ Ð²ÐµÑ€Ñ‚Ð¸ÐºÐ°Ð»ÑŒÐ½Ð¾Ð¹ линии вправо -.TP -.I rightmiddle -изображение Ð¾Ñ‚Ð²ÐµÑ‚Ð²Ð»ÐµÐ½Ð¸Ñ Ð²ÐµÑ€Ñ‚Ð¸ÐºÐ°Ð»ÑŒÐ½Ð¾Ð¹ линии влево -.TP -.I centermiddle -изображение переÑÐµÑ‡ÐµÐ½Ð¸Ñ Ð²ÐµÑ€Ñ‚Ð¸ÐºÐ°Ð»ÑŒÐ½Ð¾Ð¹ и горизонтальной линий -.TP -.I horiz -изображение горизонтальной линии -.TP -.I vert -изображение вертикальной линии -.TP -.I thinhoriz -изображение тонкой горизонтальной линии -.TP -.I thinvert -изображение тонкой вертикальной линии - -.\"NODE " Skins oldcolors" -.SH " СовмеÑтимоÑть" -Ðазначение цветов Ñлементов поÑредÑтвом Ñкин\-файлов полноÑтью ÑовмеÑтимо -Ñ Ð½Ð°Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸ÐµÐ¼ цветов, опиÑанном в Ñекции -.\"LINK2" -Цвета\&. -.\"Colors" -.PP -Ð’ данном Ñлучае переназначение цветов имеет приоритет над Ñкин\-файлами и ноÑит -дополнÑющий характер. - -.\"NODE "Filenames Highlight" -.SH "ПодÑветка имён файлов" -Ð¡ÐµÐºÑ†Ð¸Ñ [filehighlight] из текущего Ñкин\-файла Ñодержит имена параметров -(в качеÑтве групп подÑветки) и Ð·Ð½Ð°Ñ‡ÐµÐ½Ð¸Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð¾Ð² как цветовые пары. -ОпиÑÐ°Ð½Ð¸Ñ Ñ†Ð²ÐµÑ‚Ð¾Ð²Ñ‹Ñ… пар Ñмотрите в разделе -.\"LINK2" -Внешний вид -.\"Skins" -.PP -Правила подÑветки находÑÑ‚ÑÑ Ð² файле %sysconfdir%/mc/filehighlight.ini -(~/.config/mc/filehighlight.ini). -ÐÐ°Ð·Ð²Ð°Ð½Ð¸Ñ Ð³Ñ€ÑƒÐ¿Ð¿ должны Ñовпадать Ñ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸Ñми параметров в Ñекции -[filehighlight] в текущем Ñкин\-файле. -.PP -Ключи в группах могут принимать Ñледующие значениÑ: -.TP -.I type -Тип файла. ЕÑли параметр приÑутÑтвует, оÑтальные опции игнорируютÑÑ -.TP -.I regexp -РегулÑрное выражение. ЕÑли приÑутÑтвует, параметр 'extensions' игнорируетÑÑ. -.TP -.I extensions -СпиÑок раÑширений файлов. РаÑÑˆÐ¸Ñ€ÐµÐ½Ð¸Ñ Ñ€Ð°Ð·Ð´ÐµÐ»ÑÑŽÑ‚ÑÑ Ñимволом ';'. -.TP -.I extensions_case -(имеет ÑмыÑл только Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð¾Ð¼ 'extensions') делает правило 'extensions' -чувÑтвительным к региÑтру букв (true) или не чувÑтвительным (false). -.PP -Параметр 'type' (тип файла) может принимать значениÑ: -.nf -\- FILE (вÑе файлы) - \- FILE_EXE -\- DIR (вÑе каталоги) - \- LINK_DIR -\- LINK (вÑе ÑÑылки (линки), иÑÐºÐ»ÑŽÑ‡Ð°Ñ "битые" линки) - \- HARDLINK - \- SYMLINK -\- STALE_LINK -\- DEVICE (вÑе файлы уÑтройÑтв) - \- DEVICE_BLOCK - \- DEVICE_CHAR -\- SPECIAL (вÑе Ñпециальные файлы) - \- SPECIAL_SOCKET - \- SPECIAL_FIFO - \- SPECIAL_DOOR -.fi -.\"NODE "Special Settings" -.SH "Специальные уÑтановки" -БольшинÑтво уÑтановок Midnight Commander может быть изменено путем -иÑÐ¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¼ÐµÐ½ÑŽ. Однако имеетÑÑ Ð½ÐµÑколько уÑтановок, которые могут -быть изменены только путем непоÑредÑтвенного Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ -конфигурационного файла -.BR ~/.config/mc/ini . -.PP -.I clear_before_exec -.IP -По умолчанию Midnight Commander очищает Ñкран перед выполнением команды. -ЕÑли вы хотите, чтобы вывод предыдущей команды не иÑчезал, измените -значение Ð¿Ð¾Ð»Ñ clear_before_exec на 0. -.PP -.I confirm_view_dir -.IP -ЕÑли вы нажимаете -.B F3 -на имени каталога, обычно -.B MC -переходит в Ñтот каталог. ЕÑли Ñтот флаг будет уÑтановлен в 1, -.B MC -будет Ñпрашивать подтверждение перед тем, как перейти в указанный -каталог, еÑли в текущем каталоге были помечены какие\-либо файлы. -.PP -.I ftpfs_retry_seconds -.IP -Этот параметр задаёт интервал времени (в Ñекундах), по иÑтечении -которого Midnight Commander будет предпринимать повторную попытку -ÑоединитьÑÑ Ñ FTP\-Ñервером поÑле того, как Ð¿Ñ€ÐµÐ´Ñ‹Ð´ÑƒÑ‰Ð°Ñ Ð¿Ð¾Ð¿Ñ‹Ñ‚ÐºÐ° окончилаÑÑŒ -неудачей. ЕÑли задано нулевое значение, программа не будет повторÑть -попытку ÑоединитьÑÑ. -.PP -.I ftpfs_use_passive_connections -.IP -По умолчанию Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²Ñ‹ÐºÐ»ÑŽÑ‡ÐµÐ½Ð°. Она включаетÑÑ Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÐ´Ð°Ñ‡Ð¸ файлов по -протоколу FTP в тех ÑлучаÑÑ…, когда компьютер Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ñ€Ð°ÑполагаетÑÑ -за маршрутизатором, фильтрующим пакеты (behind a filtering packet -router). Эта Ð¾Ð¿Ñ†Ð¸Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ð°ÐµÑ‚ только в том Ñлучае, еÑли вы не иÑпользуете -FTP\-прокÑи. -.PP -.I max_dirt_limit -.IP -ОпределÑет, Ñколько раз может быть пропущена Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ñ Ð¾Ð±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ -Ð¸Ð·Ð¾Ð±Ñ€Ð°Ð¶ÐµÐ½Ð¸Ñ Ð½Ð° Ñкране при работе во вÑтроенной программе проÑмотра. -Обычно Ñтот параметр не имеет большого значениÑ, поÑкольку программа -автоматичеÑки выбирает оптимальное значение в завиÑимоÑти от ÑкороÑти -нажатий на клавиши. Однако на очень медленных машинах или терминалах Ñ -большой ÑкороÑтью Ð°Ð²Ñ‚Ð¾Ð¿Ð¾Ð²Ñ‚Ð¾Ñ€ÐµÐ½Ð¸Ñ (keyboard auto repeat) Ñлишком большое -значение Ñтого параметра может привеÑти к тому, что процедура Ð¾Ð±Ð½Ð¾Ð²Ð»ÐµÐ½Ð¸Ñ -Ñкрана начнет вaÑ Ñ€Ð°Ð·Ð´Ñ€Ð°Ð¶Ð°Ñ‚ÑŒ. -.IP -По\-видимому, значение max_dirt_limit, равное 10, обеÑпечивает наилучший -выбор, и именно такое значение уÑтанавливаетÑÑ Ð¿Ð¾ умолчанию. -.PP -.I mouse_move_pages_viewer -.IP -ОпределÑет, будет ли прокрутка информации (scrolling) во вÑтроенной -программе проÑмотра, оÑущеÑтвлÑÐµÐ¼Ð°Ñ Ñ Ð¿Ð¾Ð¼Ð¾Ñ‰ÑŒÑŽ мышки, производитьÑÑ -Ñтраницами или на одну Ñтроку. -.PP -.I only_leading_plus_minus -.IP -УÑтанавливает Ñпециальный режим обработки Ñимволов '+', '\-', '*' в -командной Ñтроке. Эти Ñимволы иÑпользуютÑÑ Ð´Ð»Ñ Ð²Ñ‹Ð±Ð¾Ñ€Ð°, отмены выбора и -Ð¸Ð½Ð²ÐµÑ€Ñ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð²Ñ‹Ð±Ð¾Ñ€Ð°, но выполнÑÑŽÑ‚ такую функцию только еÑли ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð°Ñ -Ñтрока пуÑта. Ð’ Ñередине командной Ñтроки Ñти Ñимволы уже не вызывают -Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ð¹ группового выбора, но зато вы не Ñможете -иÑпользовать Ñти Ñимволы Ð´Ð»Ñ Ñ‚Ð°ÐºÐ¸Ñ… операций, еÑли ÐºÐ¾Ð¼Ð°Ð½Ð´Ð½Ð°Ñ Ñтрока не -пуÑта. -.PP -.I alternate_plus_minus -.IP -ЕÑли уÑтановлена, Ñимволы '+', '\-', '\\' and '*' обрабатываютÑÑ Ð¾Ð±Ñ‹Ñ‡Ð½Ñ‹Ð¼ -образом. Чтобы выбрать файлы, отменить или инвертировать выбор, -иÑпользуйте 'Alt\-+', 'Alt\--' и 'Alt\-*' ÑоответÑтвенно. -.PP -.I show_output_starts_shell -.IP -Эта Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ñ€Ð°Ð±Ð¾Ñ‚Ð°ÐµÑ‚ только в том Ñлучае, когда не включена поддержка -subshell. ЕÑли она уÑтановлена, то при нажатии -.B C\-o -Ð´Ð»Ñ Ð¿ÐµÑ€ÐµÑ…Ð¾Ð´Ð° в Ñкран Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð±ÑƒÐ´ÐµÑ‚ запуÑкатьÑÑ Ð½Ð¾Ð²Ñ‹Ð¹ ÑкземплÑÑ€ -оболочки. -.PP -.I torben_fj_mode -.IP -УÑтановка Ñтой опции Ñлегка изменÑет реакцию программы на нажатие клавиш -.B Home -и -.B End -в активной панели. ВмеÑто того, чтобы перемещать подÑветку (курÑор) к первому -или поÑледнему из имен файлов, отображенных на панели, нажатие Ñтих клавиш будет -вызывать Ñледующую реакцию: -.IP -клавиша -.B Home -\- перемещение курÑора вверх до Ñередины панели, еÑли курÑор был ниже, в противном -Ñлучае перемещение на Ñамую верхнюю Ñтроку; еÑли только курÑор уже на Ñамой верхней -Ñтроке, то перемещение на Ñамую первую Ñтроку ÑпиÑка файлов. -.IP -клавиша -.B End -вызывает аналогичную реакцию \- Ñмещение вниз до Ñередины панели, еÑли курÑор -был выше; еÑли ниже \- то переход на поÑледнюю отображаемую в панели Ñтроку; -еÑли уже на поÑледней Ñтроке, то перемещение курÑора на Ñамую поÑледнюю Ñтроку -ÑпиÑка файлов. -.PP -.I use_file_to_guess_type -.IP -Когда Ñта Ð¾Ð¿Ñ†Ð¸Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð° (что Ñделано по умолчанию), mc будет вызывать -программу -.B file -Ð´Ð»Ñ Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ Ñ‚Ð¸Ð¿Ð° файла в ÑоответÑтвии Ñ Ñ‚Ð¸Ð¿Ð°Ð¼Ð¸ файлов, указанными в файле -.\"LINK2" -mc.ext.ini\&. -.\"Edit Extension File" -.PP -.I xtree_mode -.IP -ЕÑли Ñта Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ð²ÐºÐ»ÑŽÑ‡ÐµÐ½Ð° (по умолчанию она выключена), то при -проÑмотре в одной из панелей Ñтруктуры дерева каталогов во второй панели -автоматичеÑки будет отображатьÑÑ ÑпиÑок файлов выбранного каталога. -.TP -.I clipboard_store -Эта Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ð¿Ð¾Ð·Ð²Ð¾Ð»Ñет назначить внешнюю программу (Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð°Ð¼Ð¸) Ð´Ð»Ñ -работы Ñ Ð±ÑƒÑ„ÐµÑ€Ð¾Ð¼ обмена, такую как 'xclip', Ð´Ð»Ñ Ð²Ñтавки данных в ÑиÑтемный -буфер обмена. -Ðапример: -.PP -.nf -clipboard_store=xclip \-i -.fi -.TP -.I clipboard_paste -Эта Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ð¿Ð¾Ð·Ð²Ð¾Ð»Ñет назначить внешнюю программу (Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð°Ð¼Ð¸) Ð´Ð»Ñ -работы Ñ Ð±ÑƒÑ„ÐµÑ€Ð¾Ð¼ обмена, такую как 'xclip', Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð´Ð°Ð½Ð½Ñ‹Ñ… из ÑиÑтемного -буфера обмена. -Ðапример: -.PP -.nf -clipboard_paste=xclip \-o -.fi -.PP -.I autodetect_codeset -.IP -Эта Ð¾Ð¿Ñ†Ð¸Ñ Ð¿Ð¾Ð·Ð²Ð¾Ð»Ñет иÑпользовать команду enca Ð´Ð»Ñ Ð°Ð²Ñ‚Ð¾Ð¼Ð°Ñ‚Ð¸Ñ‡ÐµÑкого -Ð¾Ð¿Ñ€ÐµÐ´ÐµÐ»ÐµÐ½Ð¸Ñ ÐºÐ¾Ð´Ð¸Ñ€Ð¾Ð²ÐºÐ¸ текÑтовых файлов во вÑтроенных проÑмотрщике и редакторе. -СпиÑок допуÑтимых значений может быть получен командой -"enca \-\-list languages | cut \-d : \-f1". ÐžÐ¿Ñ†Ð¸Ñ Ð´Ð¾Ð»Ð¶Ð½Ð° раÑполагатьÑÑ Ð² Ñекции -[Misc]. -.PP -Ðапример: -.PP -.nf -autodetect_codeset=russian -.fi -.\"NODE "Parameters for external editor or viewer" -.SH "Параметры Ð´Ð»Ñ Ð²Ð½ÐµÑˆÐ½Ð¸Ñ… редакторов и программ проÑмотра" -Midnight Commander позволÑет задать некоторые параметрыы Ð´Ð»Ñ Ð²Ð½ÐµÑˆÐ½Ð¸Ñ… редакторов -и программ проÑмотра. Они задаютÑÑ Ð² Ñекции [External editor or viewer parameters], -ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ Ñначала ищетÑÑ Ð² ÑиÑтемном (mc.lib), а затем в пользовательÑком (~/.config/mc/ini) -файле инициализации. Ð˜Ð¼Ñ Ð¿Ð°Ñ€Ð°Ð¼ÐµÑ‚Ñ€Ð° должно Ñовпадать Ñ Ð¸Ð¼ÐµÐ½ÐµÐ¼ внешнего редактора или -программы проÑмотра. Значение параметра может Ñодержать Ñледующие переменные: -.PP -.I %filename -Ð˜Ð¼Ñ Ñ„Ð°Ð¹Ð»Ð° Ð´Ð»Ñ Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸Ð»Ð¸ проÑмотра. -.PP -.I %lineno -Ðомер начальной Ñтроки в открываемом файле. -.PP -Пример: -.PP -.nf -[External editor or viewer parameters] - vi=%filename +%lineno - joe=%filename +%lineno - more=%filename +%lineno -.fi -.PP -ÐÐ°Ñ‡Ð°Ð»ÑŒÐ½Ð°Ñ Ñтрока передаётÑÑ Ð² во внешнюю программу Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸Ð»Ð¸ проÑмотра -только в том Ñлучае, еÑли она вызываетÑÑ Ð¸Ð· окна результатов -.\"LINK2" -поиÑка файлов\&. -.\"Find File" -.PP -ЕÑли внешнÑÑ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ð° Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸Ð»Ð¸ проÑмотра запуÑкаетÑÑ Ð¿Ð¾ клавишам -.B F4 -или -.BR F3 , -MC надеетÑÑ, что она имеет ÑобÑтвенную функцию Ð¾Ñ‚ÐºÑ€Ñ‹Ñ‚Ð¸Ñ Ñ„Ð°Ð¹Ð»Ð° в том же Ñамом меÑте, -где он был закрыт в предыдущий раз. Такую функцию имеет, например, редактор "joe" -и многие другие. MC не препÑÑ‚Ñтвует внешней программе Ñ€ÐµÐ´Ð°ÐºÑ‚Ð¸Ñ€Ð¾Ð²Ð°Ð½Ð¸Ñ Ð¸Ð»Ð¸ проÑмотра -ÑамоÑтоÑтельно ÑохранÑть и воÑÑтанавливать позиции в открываемых файлах. -.\"NODE "Terminal databases" -.SH "Базы терминалов" -Midnight Commander обеÑпечивает возможноÑть внеÑÐµÐ½Ð¸Ñ Ð¸Ñправлений в -ÑиÑтемную базу терминалов, даже еÑли вы не обладаете правами -ÑуперпользователÑ. Midnight Commander ищет в ÑиÑтемном инициализационном -файле (файл -.B mc.lib -в библиотечном каталоге программы Midnight Commander) или в файле -.B ~/.config/mc/ini -Ñекцию Ñ Ð½Ð°Ð·Ð²Ð°Ð½Ð¸ÐµÐ¼ "terminal:your\-terminal\-name", а затем Ñекцию -"terminal:general". ÐšÐ°Ð¶Ð´Ð°Ñ Ñтрока в Ñтих ÑекциÑÑ… Ñодержит ключевое -Ñлово, которое вы хотите определить, за которым Ñледует знак равенÑтва и -определение ключевого Ñлова. Специальный Ñимвол -.B \\\\e -иÑпользуетÑÑ Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ñкранирующих поÑледовательноÑтей, а -.B ^x -Ñлужит Ð´Ð»Ñ Ð·Ð°Ð´Ð°Ð½Ð¸Ñ Ð¿Ð¾ÑледовательноÑтей вида -.B control\-x -.PP -Ð’ качеÑтве ключевых Ñлов иÑпользуютÑÑ: -.PP -.nf -f0 \- f20 определÑет поÑледовательноÑть Ñимволов, - генерируемых при нажатии на функциональные - клавиши F0\-F20 -bs определÑет поÑледовательноÑть Ñимволов, ÐºÐ¾Ñ‚Ð¾Ñ€Ð°Ñ - будет иÑпользоватьÑÑ Ð²Ð¼ÐµÑто клавиши Backspace -home то же Ð´Ð»Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Home -end то же Ð´Ð»Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ End -up то же Ð´Ð»Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Up -down то же Ð´Ð»Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Down -left то же Ð´Ð»Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Left -right то же Ð´Ð»Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Right -pgdn то же Ð´Ð»Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Page Down -pgup то же Ð´Ð»Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Page Up -insert то же Ð´Ð»Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Insert -delete то же Ð´Ð»Ñ ÐºÐ»Ð°Ð²Ð¸ÑˆÐ¸ Delete -complete ÐºÐ¾Ð¼Ð±Ð¸Ð½Ð°Ñ†Ð¸Ñ ÐºÐ»Ð°Ð²Ð¸Ñˆ Ð´Ð»Ñ Ð²Ñ‹Ð¿Ð¾Ð»Ð½ÐµÐ½Ð¸Ñ Ð¾Ð¿ÐµÑ€Ð°Ñ†Ð¸Ð¸ "завершение ввода" -.fi -.PP -Ðапример, Ð´Ð»Ñ Ñ‚Ð¾Ð³Ð¾, чтобы задать, что клавише -.B Insert -ÑоответÑтвует ÑÐºÑ€Ð°Ð½Ð¸Ñ€ÑƒÑŽÑ‰Ð°Ñ Ð¿Ð¾ÑледовательноÑть "Escape + [ + O + p", нужно -в файле ini пропиÑать Ñтроку: -.PP -.nf -insert=\\e[Op -.fi -.PP -ÐžÐ¿ÐµÑ€Ð°Ñ†Ð¸Ñ "завершение ввода" обычно вызываетÑÑ Ð¿Ð¾ клавишам -.BR Alt\-Tab , -но задав значение ключевого Ñлова -.I complete -можно вызывать такую же реакцию ÑиÑтемы по другой комбинации клавиш -(почему бы не Ñделать Ñто, еÑли у Ð²Ð°Ñ ÐºÐ»Ð°Ð²Ð¸Ð°Ñ‚ÑƒÑ€Ð°, Ð¸Ð¼ÐµÑŽÑ‰Ð°Ñ Ð¼Ð°ÑÑу -неиÑпользуемых клавиш!). -.\"NODE "FILES" -.SH "Файлы" -Программа извлекает вÑÑŽ нужную ей информацию из файлов, пути к которым -определÑÑŽÑ‚ÑÑ Ð¾Ñ‚Ð½Ð¾Ñительно переменной Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ -.BR MC_DATADIR . -ЕÑли Ñта Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ð½Ðµ задана, проиÑходит обращение к так называемому -библиотечному каталогу программы Midnight Commander. Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы -узнать Ð¸Ð¼Ñ Ñтого каталога, дайте команду -.BR "mc \-f" . -.PP -.I %pkgdatadir%/help/mc.hlp -.IP -Файл подÑказки Ð´Ð»Ñ Ð¿Ñ€Ð¾Ð³Ñ€Ð°Ð¼Ð¼Ñ‹. -.PP -.I %pkgdatadir%/mc.ext.ini -.IP -ИÑпользуемый по умолчанию общеÑиÑтемный файл раÑширений. -.PP -.I ~/.config/mc/mc.ext.ini -.IP -Файл раÑширений пользователÑ. ЕÑли Ñтот файл ÑущеÑтвует, он иÑпользуетÑÑ -вмеÑто общеÑиÑтемного файла раÑширений. -.PP -.I %sysconfdir%/mc/mc.ini -.RE -.I %pkgdatadir%/mc.ini -.IP -ОбщеÑиÑтемные файлы уÑтановок Ð´Ð»Ñ Midnight Commander; иÑпользуютÑÑ Ñ‚Ð¾Ð»ÑŒÐºÐ¾ -в тех ÑлучаÑÑ…, когда пользователь не имеет Ñвоего файла -.BR ~/.config/mc/ini . -ЕÑли файл %sysconfdir%/mc/mc.ini ÑущеÑтвует, то %pkgdatadir%/mc.ini -не иÑпользуетÑÑ. -.PP -.I %pkgdatadir%/mc.lib -.IP -Глобальные уÑтановки Ð´Ð»Ñ Midnight Commander. УÑтановки из Ñтого файла -дейÑтвительны Ð´Ð»Ñ Ð²Ñех пользователей, незавиÑимо от того, имеют ли они -~/.config/mc/ini или нет. Ð’ наÑтоÑщий момент только -.\"LINK2" -наÑтройки терминалов -.\"Terminal databases" -загружаютÑÑ Ð¸Ð· mc.lib. -.PP -.I ~/.config/mc/ini -.IP -СобÑтвенные уÑтановки пользователÑ. ЕÑли такой файл ÑущеÑтвует, то -уÑтановки загружаютÑÑ Ð¸Ð· него, а не из общеÑиÑтемного инициализационного -файла программы. -.PP -.I %pkgdatadir%/hints/mc.hint -.IP -Этот файл Ñодержит подÑказки (hints или cookies), цикличеÑки -отображаемые программой. -.PP -.I %pkgdatadir%/mc.menu -.IP -Этот файл Ñодержит общеÑиÑтемное меню приложений. -.PP -.I ~/.config/mc/menu -.IP -СобÑтвенное меню пользователÑ. ЕÑли Ñтот файл ÑущеÑтвует, он -иÑпользуетÑÑ Ð²Ð¼ÐµÑто общеÑиÑтемного меню. -.PP -.I ~/.cache/mc/Tree -.IP -СпиÑок каталогов Ð´Ð»Ñ Ð¾ÐºÐ½Ð°, выводимого при выборе пункта меню -"Команда/Дерево каталогов" или при проÑмотре дерева каталогов в одной из -панелей. ÐšÐ°Ð¶Ð´Ð°Ñ Ñтрока файла ÑоответÑтвует подкаталогу. Строки, -начинающиеÑÑ Ñо ÑлÑша ("/") ÑоответÑтвуют полным путÑм. ЕÑли Ñтрока -начинаетÑÑ Ñ Ñ†Ð¸Ñ„Ñ€Ñ‹, то надо взÑть указанное чиÑло Ñимволов из имени -предыдущего каталога. При желании можно Ñоздать Ñтот файл, дав -команду -.IP -.nf - find / \-type d \-print | sort > ~/.cache/mc/Tree -.fi -.IP -Обычно не имеет ÑмыÑла делать Ñто, потому что Midnight Commander -автоматичеÑки обновлÑет Ñтот файл. -.PP -.I ./.mc.menu -.IP -локальное меню, задаваемое пользователем. ЕÑли Ñтот файл ÑущеÑтвует, он -иÑпользуетÑÑ Ð²Ð¼ÐµÑто файла меню из домашнего каталога Ð¿Ð¾Ð»ÑŒÐ·Ð¾Ð²Ð°Ñ‚ÐµÐ»Ñ Ð¸ -общеÑиÑтемного меню. -.PP -Ð”Ð»Ñ Ñ‚Ð¾Ð³Ð¾ чтобы изменить корневой каталог MC, уÑтановленный по умолчанию, -можно иÑпользовать переменную Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ -.BR MC_PROFILE_ROOT . -Значением Ñтой переменный должен быть абÑолютный путь. ЕÑли Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ MC_PROFILE_ROOT -не определена или пуÑта, иÑпользуетÑÑ Ð¿ÐµÑ€ÐµÐ¼ÐµÐ½Ð½Ð°Ñ Ð¾ÐºÑ€ÑƒÐ¶ÐµÐ½Ð¸Ñ HOME. ЕÑли и HOME -не определена или пуÑта, каталоги MC определÑÑŽÑ‚ÑÑ ÑредÑтвами библиотеки GLib. -.\"SKIP_SECTION" -.\" "LICENSE" -.SH Ð›Ð¸Ñ†ÐµÐ½Ð·Ð¸Ñ -Эта программа раÑпроÑтранÑетÑÑ Ð² надежде, что она будет полезной, но БЕЗ -КÐКИХ\-ЛИБО ГÐРÐÐТИЙ; даже без подразумеваемых гарантий КОММЕРЧЕСКОЙ -ЦЕÐÐОСТИ или ПРИГОДÐОСТИ ДЛЯ КОÐКРЕТÐОЙ ЦЕЛИ. Ð”Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð´Ñ€Ð¾Ð±Ð½Ñ‹Ñ… -Ñведений Ñмотрите УниверÑальную ОбщеÑтвенную Лицензию GNU. -.\"NODE "AVAILABILITY" -.SH "Обновление верÑий" -ПоÑледние верÑии программы Midnight Commander можно найти на Ñайте -http://ftp.midnight\-commander.org/. -.\"NODE "SEE ALSO" -.SH "Другие иÑточники" -ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1), tcsh(1), -zsh(1), mcedit(1). -.PP -.nf -Страница, поÑвÑÑ‰ÐµÐ½Ð½Ð°Ñ Midnight Commander, в World Wide Web: - https://www.midnight\-commander.org/ -.fi -.PP -Ð”Ð°Ð½Ð½Ð°Ñ Ñтраница оперативного руководÑтва Ñодержит информацию, актуальную -Ð´Ð»Ñ Ð²ÐµÑ€Ñии 4.6.0 (Ñнварь 2003 года). ЕÑли вы иÑпользуете более Ñвежую -верÑию программы, Ð¾Ñ€Ð¸Ð³Ð¸Ð½Ð°Ð»ÑŒÐ½Ð°Ñ Ñтраница на английÑком Ñзыке может -Ñодержать более полную и актуальную информацию. Ð”Ð»Ñ Ð¿Ñ€Ð¾Ñмотра -оригинальной Ñтраницы в оболочке bash можно иÑпользовать команду -.nf -LANG= man mc -.fi -.\"NODE "AUTHORS" -.SH "ÐВТОРЫ" -Miguel de Icaza (miguel@ximian.com), Janne Kukonlehto -(jtklehto@paju.oulu.fi), Radek Doulik (rodo@ucw.cz), Fred Leeflang -(fredl@nebula.ow.org), Dugan Porter (dugan@b011.eunet.es), Jakub Jelinek -(jj@sunsite.mff.cuni.cz), Ching Hui (mr854307@cs.nthu.edu.tw), Andrej -Borsenkow (borsenkow.msk@sni.de), Norbert Warmuth -(nwarmuth@privat.circular.de), Mauricio Plaza -(mok@roxanne.nuclecu.unam.mx), Paul Sheer (psheer@icon.co.za), Pavel -Machek (pavel@ucw.cz) and Pavel Roskin (proski@gnu.org) are the -developers of this package. Alessandro Rubini (rubini@ipvvis.unipv.it) -has been especially helpful debugging and enhancing the program's mouse -support, John Davis (davis@space.mit.edu) also made his S\-Lang library -available to us under the GPL and answered my questions about it, and -the following people have contributed code and many bug fixes (in -alphabetical order): -.PP -Adam Tla/lka (atlka@sunrise.pg.gda.pl), alex@bcs.zp.ua (Alex I. -Tkachenko), Antonio Palama, DOS port (palama@posso.dm.unipi.it), Erwin -van Eijk (wabbit@corner.iaf.nl), Gerd Knorr (kraxel@cs.tu\-berlin.de), -Jean\-Daniel Luiset (luiset@cih.hcuge.ch), Jon Stevens -(root@dolphin.csudh.edu), Juan Francisco Grigera, Win32 port -(j\-grigera@usa.net), Juan Jose Ciarlante (jjciarla@raiz.uncu.edu.ar), -Ilya Rybkin (rybkin@rouge.phys.lsu.edu), Marcelo Roccasalva -(mfroccas@raiz.uncu.edu.ar), Massimo Fontanelli (MC8737@mclink.it), -Sergey Ya. Korshunoff (seyko2@gmail.com), Thomas Pundt -(pundtt@math.uni\-muenster.de), Timur Bakeyev -(timur@goff.comtat.kazan.su), Tomasz Cholewo -(tjchol01@mecca.spd.louisville.edu), Torben Fjerdingstad -(torben.fjerdingstad@uni\-c.dk), Vadim Sinolitis (vvs@nsrd.npi.msu.su) -and Wim Osterholt (wim@djo.wtm.tudelft.nl). -.PP -Перевод текÑта подÑказки на руÑÑкий Ñзык \- КоÑтромин Ð’.Ð., 1999г. -ИÑправлениÑ, Ð°Ð´Ð°Ð¿Ñ‚Ð°Ñ†Ð¸Ñ Ðº текущей верÑии и ÐºÐ¾Ð½Ð²ÐµÑ€Ñ‚Ð°Ñ†Ð¸Ñ Ð² формат mandoc \- -Самойлов Ð.Ð’. , 2002 г. -.\"NODE "BUGS" -.SH "Ðедоработки" -ИзвеÑтные авторам недоработки программы перечиÑлены в файле TODO, -который можно найти в ÑоÑтаве поÑтавлÑемого пакета. -.PP -ЕÑли вы обнаружили в программе какие\-то недоÑтатки или недоработки, -оформите, пожалуйÑта, ваши Ð·Ð°Ð¼ÐµÑ‡Ð°Ð½Ð¸Ñ Ð¿Ð¾ адреÑу -.IR https://www.midnight\-commander.org/ . -.PP -Дайте подробное опиÑание обнаруженных недоÑтатков (и/или ваших -предложений по уÑовершенÑтвованию программы), Ñообщите верÑию программы -Ñ ÐºÐ¾Ñ‚Ð¾Ñ€Ð¾Ð¹ вы работаете (Ð´Ð»Ñ Ð¿Ð¾Ð»ÑƒÑ‡ÐµÐ½Ð¸Ñ Ð½Ð¾Ð¼ÐµÑ€Ð° верÑии иÑпользуйте команду -mc \-V), в какой операционной ÑиÑтеме вы запуÑкали программу. Ð’ Ñлучае -фатальной ошибки программы мы будем очень благодарны, еÑли вы пришлете -Ñлед вызовов. diff --git a/recipes/wip/files/mc/source/doc/man/sr/Makefile.am b/recipes/wip/files/mc/source/doc/man/sr/Makefile.am deleted file mode 100644 index 62883bf5b8..0000000000 --- a/recipes/wip/files/mc/source/doc/man/sr/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -LANG=sr -mandir = @mandir@/$(LANG) - -EXTRA_DIST = mc.1.in - -man_MANS = mc.1 - -CLEANFILES = $(man_MANS) - -DATE_LANG=sr_SR.UTF-8 -DATE_FORMAT=%B %Y. - -include ../date-of-man-include.am diff --git a/recipes/wip/files/mc/source/doc/man/sr/Makefile.in b/recipes/wip/files/mc/source/doc/man/sr/Makefile.in deleted file mode 100644 index c9c8a66ea5..0000000000 --- a/recipes/wip/files/mc/source/doc/man/sr/Makefile.in +++ /dev/null @@ -1,701 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = doc/man/sr -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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)" -NROFF = nroff -MANS = $(man_MANS) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/../date-of-man-include.am \ - $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@/$(LANG) -mkdir_p = @mkdir_p@ -oldincludedir = @oldincludedir@ -pdfdir = @pdfdir@ -prefix = @prefix@ -program_transform_name = @program_transform_name@ -psdir = @psdir@ -runstatedir = @runstatedir@ -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@ -LANG = sr -EXTRA_DIST = mc.1.in -man_MANS = mc.1 -CLEANFILES = $(man_MANS) -DATE_LANG = sr_SR.UTF-8 -DATE_FORMAT = %B %Y. -SED_PARAMETERS = \ - -e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \ - -e "s/%MAN_VERSION%/@MAN_VERSION@/g" \ - -e "s{%sysconfdir%{@sysconfdir@{g" \ - -e "s{%libexecdir%{@libexecdir@{g" \ - -e "s{%pkglibexecdir%{$(libexecdir)/@PACKAGE@{g" \ - -e "s{%pkgdatadir%{$(datadir)/@PACKAGE@{g" - -MAN_DATE_CMD = \ - LC_ALL=$(DATE_LANG) @PERL_FOR_BUILD@ -CS -MPOSIX -e '\ - @fi=lstat("'$${MAN_FILE}'"); \ - print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../date-of-man-include.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) --gnu doc/man/sr/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu doc/man/sr/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; -$(srcdir)/../date-of-man-include.am $(am__empty): - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -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) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(MANS) -installdirs: - for dir in "$(DESTDIR)$(man1dir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-man - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: install-man1 - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-man - -uninstall-man: uninstall-man1 - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-man1 install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-man \ - uninstall-man1 - -.PRECIOUS: Makefile - - -mc.1: $(srcdir)/mc.1.in - MAN_FILE='$(srcdir)/mc.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mc.1.in' > '$@' - -mcview.1: $(srcdir)/mcview.1.in - MAN_FILE='$(srcdir)/mcview.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ - $(SED) $(SED_PARAMETERS) '$(srcdir)/mcview.1.in' > '$@' - -@USE_INTERNAL_EDIT_TRUE@mcedit.1: $(srcdir)/mcedit.1.in -@USE_INTERNAL_EDIT_TRUE@ MAN_FILE='$(srcdir)/mcedit.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_INTERNAL_EDIT_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcedit.1.in' > '$@' - -@USE_DIFF_TRUE@mcdiff.1: $(srcdir)/mcdiff.1.in -@USE_DIFF_TRUE@ MAN_FILE='$(srcdir)/mcdiff.1.in'; MAN_DATE=$$($(MAN_DATE_CMD)); \ -@USE_DIFF_TRUE@ $(SED) $(SED_PARAMETERS) '$(srcdir)/mcdiff.1.in' > '$@' - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/doc/man/sr/mc.1.in b/recipes/wip/files/mc/source/doc/man/sr/mc.1.in deleted file mode 100644 index 4c78135009..0000000000 --- a/recipes/wip/files/mc/source/doc/man/sr/mc.1.in +++ /dev/null @@ -1,3161 +0,0 @@ -.\" -*- mode: troff; coding: UTF-8 -*- -.\"TOPICS "Теме:" -.TH ПР1 "%DATE_OF_MAN_PAGE%" "ПРверзија %MAN_VERSION%" "ГÐУ\-ов поноћни наредник" -.\"SKIP_SECTION" -.SH "ÐÐЗИВ" -mc \- Визуална љуÑка за УникÑолике ÑиÑтеме. -.\"SKIP_SECTION" -.SH "УПОТРЕБÐ" -.B mc -[\-abcCdfhPstuUVx] [\-l дневник] [дир1 [дир2]] [\-e [датотека]] [\-v датотека] -.\"NODE "DESCRIPTION" -.SH "ОПИС" -ГÐУ\-ов поноћни наредник је прегледач директоријума и управитељ -датотекама за УникÑолике оперативне ÑиÑтеме. -.\"NODE "OPTIONS" -.\"DONT_SPLIT" -.SH "ИЗБОРИ" -.TP -.I "\-a" -ИÑкључује употребу графичких знакова за цртање. -.TP -.I "\-b" -Захтева приказ у режиму без боја. -.TP -.I "\-c" -Захтева обојени режим; молим да погледате одељак -.\"LINK2" -Боје -.\"Colors" -за више информација. -.TP -.I "\-C арг" -Задавање другачијег Ñкупа боја у наредбеном реду. Формат аргумента је -опиÑан у одељку -.\"LINK2" -Боје\&. -.\"Colors" -.TP -.I "\-d" -ИÑкључује подршку за миша. -.TP -.I "\-e [датотека]" -Покреће уграђени уређивач. Ðко је задан назив датотеке, отвара га при -покретању. Видите и -.BR "mcedit (1)" . -.TP -.I "\-f" -Приказује уграђене путање за тражење датотека Поноћног наредника. -.TP -.I "\-k" -ПоÑтавља меке таÑтере на подразумеване вредноÑти из база -termcap/terminfo. КориÑно је Ñамо на ХП\-овим терминалима када не -функционишу функцијÑки таÑтери. -.TP -.I "\-l датотека" -Чува дијалог ftpfs\-а Ñа Ñервером у датотеку. -.TP -.I "\-P датотека" -Штампа поÑледњи радни директоријум у задану датотеку. Овај избор не би -требало непоÑредно кориÑтити. УмеÑто тога, требало би га кориÑтити из -поÑебног ÑпиÑа љуÑке који аутоматÑки поÑтавља текући директоријум -љуÑке на поÑледњи директоријум у коме Ñе налазио Поноћни наредник. -Учитајте датотеку -.B %pkglibexecdir%/mc.sh -(за кориÑнике љуÑки bash и zsh) или -.B %pkglibexecdir%/mc.csh -(за кориÑнике љуÑке tcsh), тим редом, да биÑте задали -.B mc -као надимак за одговарајући ÑÐ¿Ð¸Ñ Ñ™ÑƒÑке. -.TP -.I "\-s" -Укључује режим Ñпорог терминала; у овом режиму програм неће иÑцртавати -Ñкупе знакове за цртање линија и иÑкључиће брбљиви режим. -.TP -.I "\-t" -КориÑти Ñе Ñамо ако је код преведен уз коришћење библиотеке S\-Lang и -базе terminfo: овај избор чини да Поноћни наредник кориÑти вредноÑÑ‚ -променљиве -.B TERMCAP -за податак о терминалу умеÑто података из ÑиÑтемÑке базе терминала -.TP -.I "\-u" -ИÑкључује употребу подршке за упоредне љуÑке (има ÑмиÑла Ñамо уколико -је Поноћни наредник преведен Ñа подршком за упоредне љуÑке). -.TP -.I "\-U" -Укључује употребу подршке за упоредне љуÑке (има ÑмиÑла Ñамо уколико -је Поноћни наредник преведен Ñа подршком за подљуÑке која је подешена -као необавезна одлика). -.TP -.I "\-v датотека" -Покреће уграђени прегледач за преглед задане датотеке. Погледајте и -.BR "mcview (1)" . -.TP -.I "\-V" -Приказује верзију програма. -.TP -.I "\-x" -Захтева режим Ð˜ÐºÑ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð»Ð°. КориÑти Ñе када је програм покренут на -терминалима који имају подршку за Ð˜ÐºÑ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð»Ðµ (два екранÑка режима, -и могућноÑÑ‚ Ñлања мишјих комбинација избегавања). -.TP -.I \-X, \-\-no\-x11 -Do not use X11 to get the state of modifiers Alt, Ctrl, Shift -.TP -.I \-g, \-\-oldmouse -Force a "normal tracking" mouse mode. Used when running on -xterm\-capable terminals (tmux/screen). -.PP -Ðко је ово задано, прва путања Ñе тумачи као директоријум кога би -требало приказати у изабраном окну, а друга путања као директоријум -кога би требало приказати у другом окну. -.\"NODE "Overview" -.SH "Преглед" -Екран Поноћног наредника је подељен у четири дела. Два директоријумÑка -окна заузимају Ñкоро читав екранÑки проÑтор. Подразумевано Ñтање је да -други ред Ñ ÐºÑ€Ð°Ñ˜Ð° екрана предÑтавља наредбени ред љуÑке, а поÑледњи -ред приказује натпиÑе функцијÑких таÑтера. Ðајвиши ред предÑтавља -.\"LINK2" -ред менија\&. -.\"Menu Bar" -Ред менија Ñе можда не види, али Ñе појављује када притиÑнете дугме -миша када је показивач на највишем реду или када притиÑнете таÑтер F9. -.PP -Поноћни наредник нуди иÑтовремени преглед два директоријума. Једно од -окана је текуће (ред избора Ñе налази у текућем окну). Скоро Ñве -операције Ñе дешавају у текућем окну. Ðеке од операција, као што Ñу -`Преименуј' и `Копирај' подразумевано кориÑте директоријум неизабраног -окна као одредиште (не брините, оне ће Ð²Ð°Ñ ÑƒÐ²ÐµÐº прво питати за -потврду). За више информација, погледајте одељке о -.\"LINK2" -ДиректоријумÑким окнима\&, -.\"Directory Panels" -.\"LINK2" -Менијима `Лево' и `ДеÑно' -.\"Left and Right Menus" -и -.\"LINK2" -Менију `Датотека'\&. -.\"File Menu" -.PP -Можете извршавати ÑиÑтемÑке наредбе из Поноћног наредника проÑтим -укуцавањем. Све што откуцате ће Ñе појавити на наредбеном реду љуÑке, -а када притиÑнете таÑтер `Enter', Поноћни наредник ће извршити -наредбени ред који Ñте откуцали; прочитајте одељак -.\"LINK2" -Ðаредбени ред љуÑке -.\"Shell Command Line" -и -.\"LINK2" -Пречице реда за ÑƒÐ½Ð¾Ñ -.\"Input Line Keys" -да биÑте Ñазнали више о наредбеном реду. -.\"NODE "Mouse Support" -.SH "Подршка за миша" -Поноћни наредник Ñе иÑпоручује Ñа подршком за миша. Она Ñе укључује -Ñваки пут када покрећете програм на терминалу врÑте -.B xterm(1) -(ово ради чак и када покренете повезивање врÑте telnet, ssh или rlogin -на други рачунар из Ð˜ÐºÑ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð»Ð°) или ако покрећете програм у конзоли -и покренут вам је ÑÐµÑ€Ð²Ð¸Ñ Ð·Ð° миша -.BR "gpm". -.PP -Када притиÑнете лево дугме миша над датотеком у директоријумÑким -окнима, та датотека ће бити изабрана; ако притиÑнете деÑно дугме, -датотека ће бити означена (или одозначена, у завиÑноÑти од претходног -Ñтања). -.PP -ДвоÑтруки притиÑак над датотеком ће покушати да изврши наредбу ако Ñе -ради о извршном програму; а ако је у -.\"LINK2" -датотеци врÑта -.\"Edit Extension File" -задан програм за врÑту те датотеке, тај програм ће бити извршен. -.PP -Такође је могуће извршавати наредбе додељене натпиÑима функцијÑких -таÑтера притиÑнувши таÑтер миша када Ñе показивач налази изнад њих. -.PP -Ðко је дугме миша притиÑнуто када Ñе показивач налази на највишем реду -оквира директоријумÑког окна, оно Ñе клиза једну Ñтрану навише. Слично -овоме, притиÑком дугмета када Ñе показивач налази на најнижем реду -оквира окно Ñе клиза једну Ñтрану наниже. Овај начин клизања преко -реда оквира функционише и у -.\"LINK2" -Прегледачу помоћи -.\"Contents" -и -.\"LINK2" -Стаблу директоријума\&. -.\"Directory Tree" -.PP -Подразумевано чекање при понављању за дугмад миша је 400 милиÑекунди. -Ово Ñе може променити уређивањем датотеке -.\"LINK2" -\&~/.config/mc/ini -.\"Save Setup" -и променом параметра -.IR "mouse_repeat_rate". -.PP -Ðко покрећете Поноћног наредника Ñа подршком за миша, можете Ñе -пребацити на подразумевано понашање миша (иÑецање и лепљење текÑта) -држећи таÑтер `Shift'. -.SH "" -.\"NODE "Keys" -.SH "Пречице" -Ðеке наредбе у Поноћном нареднику укључују употребу таÑтера -.I Control -(који је понекад означен Ñа CTRL или CTL) и таÑтера -.I Meta -(који је понекад означен Ñа ALT или чак Compose). У овом упутÑтву ћемо -кориÑтити Ñледеће Ñкраћенице: -.TP -.B C\-<знак> -значи да би требало држати таÑтер `Control' док Ñе не притиÑне таÑтер -<знак>. Тако, C\-f значи: држите таÑтер `Control' и притиÑните `f'. -.TP -.B M\-<знак> -значи да би требало држати таÑтер `Meta' или `Alt' док Ñе не притиÑне -таÑтер <знак>. Ðко на вашој таÑтатури не поÑтоје таÑтери `Meta' или -`Alt', притиÑните таÑтер -.IR ESC , -отпуÑтите га, а онда притиÑните таÑтер <знак>. -.TP -.B S\-<знак> -значи да би требало држати таÑтер `Shift' док Ñе не притиÑне таÑтер -<знак>. -.PP -Сви редови за ÑƒÐ½Ð¾Ñ Ñƒ Поноћном нареднику кориÑте имитацију пречица -уређивача ГÐУ\-ов ЕмакÑ. -.PP -ПоÑтоје многи одељци који Ñе баве пречицама. Следећи Ñу најважнији. -.PP -Одељак -.\"LINK2" -Мени `Датотека' -.\"File Menu" -опиÑује пречице Ñа таÑтатуре за наредбе из менија `Датотека'. Овај -одељак укључује функцијÑке таÑтере. Већина ових наредби ради иÑте -Ñтвари, обично над изабраном датотеком или означеним датотекама. -.PP -Одељак -.\"LINK2" -ДиректоријумÑка окна -.\"Directory Panels" -опиÑује пречице које бирају датотеку или означавају датотеке као -одредишта потоњих радњи (обично изабраних из менија `Датотека'). -.PP -Одељак -.\"LINK2" -Ðаредбени ред љуÑке -.\"Shell Command Line" -наводи пречице које Ñе кориÑте за уношење и уређивање наредбених -редова. Већина ових копира називе датотека и Ñл. из директоријумÑких -окана у наредбени ред (да би Ñе избегло претерано куцање) или приÑтупа -иÑторији наредбеног реда. -.PP -.\"LINK2" -Пречице реда за ÑƒÐ½Ð¾Ñ -.\"Input Line Keys" -Ñе кориÑте за уређивање редова за уноÑ. Ово укључује наредбене редове -и редове за ÑƒÐ½Ð¾Ñ Ñƒ прозорима упита. -.\"NODE " Miscellaneous Keys" -.SH " Разне пречице" -Ево неких пречица које не Ñпадају ни у једну од других категорија: -.TP -.B Enter -ако у наредбеном реду (оном на дну окана) има текÑта, онда Ñе извршава -та наредба. Ðко у наредбеном реду нема текÑта, онда у Ñлучају да је -ред за бирање над директоријумом, Поноћни наредник извршава наредбу -.B chdir(2) -(промена директоријума) у означеном директоријуму и оÑвежава податке у -окну; ако је изабрана извршна датотека, онда Ñе она извршава. Ðа -крају, ако Ñе врÑта означене датотеке поклапа Ñа једном од врÑта из -.\"LINK2" -датотеке врÑта\&, -.\"Edit Extension File" -онда Ñе извршава одговарајућа наредба. -.TP -.B C\-l -поново иÑцртава Ñве податке у Поноћном нареднику. -.TP -.B C\-x c -покреће наредбу -.\"LINK2" -Chmod (промена дозвола) -.\"Chmod" -над датотеком или над означеним датотекама. -.TP -.B C\-x o -покреће наредбу -.\"LINK2" -Chown (промена влаÑника) -.\"Chown" -над текућом датотеком или над означеним датотекама. -.TP -.B C\-x l -покреће наредбу `веза'. -.TP -.B C\-x s -покреће наредбу `Ñимболичка веза'. -.TP -.B C\-x i -поÑтавља режим другог окна на `информације'. -.TP -.B C\-x q -поÑтавља режим другог окна на `брзи преглед'. -.TP -.B C\-x ! -извршава наредбу -.\"LINK2" -Критеријум попуне окна\&. -.\"External panelize" -.TP -.B C\-x h -покреће наредбу -.\"LINK2" -Додај директоријум у брзи ÑпиÑак\&. -.\"Hotlist" -.TP -.B M\-! -извршава наредбу Филтрирани приказ, која је опиÑана у одељку -.\"LINK2" -наредба прегледа\&. -.\"Internal File Viewer" -.TP -.B M\-? -извршава наредбу -.\"LINK2" -Ðађи датотеку\&. -.\"Find File" -.TP -.B M\-c -отвара дијалог -.\"LINK2" -Брза пром.дир. -.\"Quick cd" -.TP -.B C\-o -када Ñе програм покреће под конзолом ГÐУ\-а или FreeBSD\-а или под Ð˜ÐºÑ -терминалом, приказаће вам излаз претходне наредбе. Када Ñе покреће под -конзолом ГÐУ\-а, Поноћни наредник кориÑти Ñпољашњи програм (cons.saver) -који Ñе брине о чувању и враћању података на екран. -.PP -Када је при превођењу укључена подршка за подљуÑке, можете било кад да -притиÑнете C\-o и то ће Ð²Ð°Ñ Ð¾Ð´Ð²ÐµÑти назад на главни екран Поноћног -наредника; да биÑте Ñе вратили у вашу апликацију потребно је Ñамо да -поново притиÑнете C\-o. Ðко Ñте зауÑтавили апликацију кориÑтећи овај -трик, нећете моћи да извршавате друге програме из Поноћног наредника -Ñве док не прекинете зауÑтављену апликацију. -.\"NODE " Directory Panels" -.SH " ДиректоријумÑка окна" -Овај одељак набраја пречице које раде Ñа директоријумÑким окнима. Ðко -желите да Ñазнате како да промените изглед окана, погледајте одељак о -.\"LINK2" -Менијима `Лево' и `ДеÑно'\&. -.\"Left and Right Menus" -.TP -.B Tab, C\-i -мења текуће окно. Старо окно поÑтаје ново текуће окно а Ñтаро текуће -окно поÑтаје ново друго окно. Ред за бирање Ñе помера из Ñтарог -текућег окна на ново текуће окно. -.TP -.B Insert, C\-t -DEPRECATED! да биÑте означили датотеке можете кориÑтити таÑтер `Insert' (низ kich1 -из базе terminfo) или комбинацију C\-t (Control\-t). Да биÑте одозначили -датотеке, Ñамо поново означите означену датотеку. -.TP -.B Insert -to tag files you may use the Insert key (the kich1 terminfo sequence). -To untag files, just retag a tagged file. -.TP -.B C\-t -to change charset of panel you may use C\-t (Control\-t). -Recoding is made from selected codepage into system codepage. To -cancel the recoding you may select "directory up" (..) in active panel. -To cancel the charsets in all directories, select "No translation " in -the dialog of encodings. -.TP -.B M\-g, M\-r, M\-j -кориÑте Ñе за бирање највише датотеке у окну, Ñредње датотеке и -најниже, тим редом. -.TP -.B M\-t -Ñмењује текући ÑпиÑак приказа на Ñледећи режим ÑпиÑка приказа. Уз ово -је могуће брзо прећи Ñа дугачког ÑпиÑка на обичан или режим који је -задао кориÑник. -.TP -.B C\-\\\\ (control\-обрнута коÑа црта) -приказује -.\"LINK2" -брзи ÑпиÑак директоријума -.\"Hotlist" -и пребацује Ñе у изабрани директоријум. -.TP -.B + \ (плуÑ) -ово Ñе кориÑти за избор (означавање) групе датотека. Поноћни наредник -ће питати за регуларни израз који опиÑује групу. Када Ñу укључени -.IR "ОбраÑци љуÑке", -регуларни израз Ñкоро да одговара регуларним изразима у љуÑци (* -замењује нула или више знакова а ? замењује један знак). Ðко Ñу -.I ОбраÑци љуÑке -иÑкључени, онда Ñе означавање датотека Ñпроводи обичним регуларним -изразима (погледајте ed (1)). -.TP -.B \\\\ (обрнута коÑа црта) -кориÑтите таÑтер `\\' да биÑте одизабрали групу датотека. Ово је -Ñупротно од таÑтера ПлуÑ. -.TP -.B навише, C\-p -помера ред за бирање на претходну Ñтавку у окну. -.TP -.B наниже, C\-n -помера ред за бирање на Ñледећу Ñтавку у окну. -.TP -.B home, a1, M\-< -помера ред за бирање на прву Ñтавку у окну. -.TP -.B end, c1, M\-> -помера ред за бирање на поÑледњу Ñтавку у окну. -.TP -.B next\-page, C\-v -помера ред за бирање једну Ñтрану наниже. -.TP -.B prev\-page, M\-v -помера ред за избор једну Ñтрану навише. -.TP -.B M\-o -поÑтавља текући директоријум другог окна на текући директоријум -текућег окна. Пребацује друго окно у режим ÑпиÑка по потреби. Ðко -тренутно окно приказује резултате наредбе `Пребаци у окно', друго окно -ће бити обично. -.TP -.B C\-PageUp, C\-PageDown -Ñамо у Ñлучају да их подржава терминал: премешта Ñе у директоријум -`..' и у тренутно изабран директоријум, тим редом. -.TP -.B M\-y -премешта Ñе у претходни директоријум из иÑторије, еквивалент притиÑку -.I < -дугметом миша. -.TP -.B M\-u -премешта Ñе на Ñледећи директоријум из иÑторије, еквивалент притиÑку -.I > -дугметом миша. -.TP -.B M\-S\-h, M\-H -приказује иÑторију директоријума, еквивалент притиÑку `v' дугметом миша. -.\"NODE " Quick search" -.SH " Quick search" -.TP -.B C\-s, M\-s -започиње претрагу назива датотека у ÑпиÑку директоријума. Када је -претрага укључена, кориÑнички ÑƒÐ½Ð¾Ñ Ñ›Ðµ бити додан на ниÑку за претрагу -умеÑто на наредбени ред. Ðко је избор -.I Прикажи мини Ñтање -укључен, ниÑка за претрагу Ñе приказује у реду мини Ñтања. При куцању, -ред за бирање ће Ñе премеÑтити на Ñледећу датотеку, почевши од -укуцаних Ñлова. ТаÑтери -.I backspace -или -.I DEL -Ñе могу кориÑтити за иÑправљање грешака у куцању. Ðко Ñе комбинација -C\-s поново притиÑне, тражи Ñе Ñледеће поклапање. -.\"NODE " Shell Command Line" -.SH " Ðаредбени ред љуÑке" -Овај одељак набраја пречице које Ñу кориÑне за избегавање претераног -куцања при уноÑу наредби љуÑке. -.TP -.B M\-Enter -копира назив тренутно изабране датотеке у наредбени ред. -.TP -.B C\-Enter -ради иÑто што и M\-Enter, али ова пречица ради Ñамо у конзоли. -.TP -.B M\-Tab -покреће -.\"LINK2" -допуну -.\"Completion" -назива датотека, наредби, променљивих, кориÑничких имена и назива -домаћина. -.TP -.B C\-x t, C\-x C\-t -копира називе означених датотека (или, ако не поÑтоје означене -датотеке, изабране датотеке) текућег окна (C\-x t) или другог окна (C\-x -C\-t) у наредбени ред. -.TP -.B C\-x p, C\-x C\-p -први низ таÑтера копира текућу путању у наредбени ред, а други копира -путању неизабраног окна у наредбени ред. -.TP -.B C\-q -наредба `цитирања' Ñе може кориÑтити за ÑƒÐ½Ð¾Ñ Ð·Ð½Ð°ÐºÐ¾Ð²Ð° које иначе -обрађује Поноћни наредник (на пример, Ñимбол `+') -.TP -.B M\-p, M\-n -кориÑтите ове пречице да биÑте разгледали иÑторију наредби. ТаÑтер M\-p -Ð²Ð°Ñ Ð²Ð¾Ð´Ð¸ на претходну Ñтавку, а M\-n на Ñледећу. -.TP -.B M\-h -приказује иÑторију текућег реда за уноÑ. -.\"NODE " General Movement Keys" -.SH " Опште пречице за кретање" -Прегледач помоћи, прегледач датотека и Ñтабло директоријума кориÑте -заједнички код за померање. Они Ñтога прихватају потпуно иÑте пречице. -Сваки од њих такође прихвата и неке Ñвоје пречице. -.PP -Други делови Поноћног наредника кориÑте неке од тих пречица за -кретање, па ће овај одељак можда бити од кориÑти и за те делове. -.TP -.B Up, C\-p -померање један ред уназад. -.TP -.B Down, C\-n -померање један ред унапред. -.TP -.B Prev Page, Page Up, M\-v -померање једну Ñтрану навише. -.TP -.B Next Page, Page Down, C\-v -померање једну Ñтрану наниже. -.TP -.B Home, A1 -померање на почетак. -.TP -.B End, C1 -померање на крај. -.PP -Прегледач помоћи и прегледач датотека прихватају, поред ових, и -Ñледеће пречице: -.TP -.B b, C\-b, C\-h, Backspace, Delete -померање једну Ñтрану навише. -.TP -.B Space bar -померање једну Ñтрану наниже. -.TP -.B u, d -померање половину Ñтране навише или наниже. -.TP -.B g, G -померање на почетак или на крај. -.\"NODE " Input Line Keys" -.SH " Пречице реда за уноÑ" -Редови за ÑƒÐ½Ð¾Ñ (који Ñе кориÑте за Ñве -.\"LINK2" -наредбене редове -.\"Shell Command Line" -и за дијалоге упита у програму) прихватају Ñледеће пречице: -.TP -.B C\-a -поÑтавља курÑор на почетак реда. -.TP -.B C\-e -поÑтавља курÑор на крај реда. -.TP -.B C\-b, move\-left -помера курÑор једно меÑто улево. -.TP -.B C\-f, move\-right -помера курÑор једно меÑто удеÑно. -.TP -.B M\-f -померање једну реч унапред. -.TP -.B M\-b -померање једну реч уназад. -.TP -.B C\-h, backspace -брише претходни знак. -.TP -.B C\-d, Delete -брише знак на том меÑту (преко курÑора). -.TP -.B C\-@ -поÑтавља ознаку за иÑецање. -.TP -.B C\-w -копира текÑÑ‚ између курÑора и ознаке у прихватник и уклања текÑÑ‚ из -реда за уноÑ. -.TP -.B M\-w -копира текÑÑ‚ између курÑора и ознаке у прихватник. -.TP -.B C\-y -враћа Ñадржај прихватника. -.TP -.B C\-k -брише текÑÑ‚ од курÑора до краја реда. -.TP -.B M\-p, M\-n -КориÑтите ове пречице да биÑте разгледали иÑторију наредби. ТаÑтер M\-p -Ð²Ð°Ñ Ð²Ð¾Ð´Ð¸ на претходну Ñтавку, а M\-n на Ñледећу. -.TP -.B M\-C\-h, M\-Backspace -брише једну реч уназад. -.TP -.B M\-Tab -извршава -.\"LINK2" -допуну -.\"Completion" -назива датотека, наредби, променљивих, кориÑничких имена и назива -домаћина. -.SH "" -.\"NODE "Menu Bar" -.SH "Ред менија" -Ред менија иÑкаче када притиÑнете таÑтер F9 или притиÑнете дугме миша -када је показивач над највишим редом на екрану. Ред менија Ñадржи пет -менија: `Лево', `Датотека', `Ðаредба', `Избори' и `ДеÑно'. -.PP -Менији -.\"LINK2" -`Лево' и `ДеÑно' -.\"Left and Right Menus" -вам дозвољавају да измените изглед левог и деÑног директоријумÑког окна. -.PP -Мени -.\"LINK2" -Датотека -.\"File Menu" -Ñадржи радње које можете извршити над тренутно изабраном датотеком или -означеним датотекама. -.PP -Мени -.\"LINK2" -Ðаредба -.\"Command Menu" -Ñадржи радње које Ñу општије и немају везе Ñа тренутно изабраном -датотеком или означеним датотекама. -.PP -Мени -.\"LINK2" -Избори -.\"Options Menu" -Ñадржи радње које вам дзвољавају да прилагодите Поноћног наредника. -.\"NODE " Left and Right Menus" -.SH " Менији `Лево' и `ДеÑно' (`Изнад' и `иСпод')" -Изглед директоријумÑких окана Ñе може мењати из менија -.B Лево -и -.B ДеÑно -(они Ñе називају -.B Изнад -и -.B иСпод -када је из дијалога избора -.\"LINK2" -Изглед -.\"Layout" -изабрана положена подела окна). -.\"NODE " Listing Format..." -.SH " Режим ÑпиÑка..." -Поглед режима ÑпиÑка Ñе кориÑти за приказ ÑпиÑка датотека; поÑтоје -четири различита режима ÑпиÑка: -.BR Пун , -.BR Кратак , -.B Дугачак -и -.B КориÑнички задан. -Пун директоријумÑки поглед приказује назив датотеке, величину датотеке -и датум измене. -.PP -Кратки поглед приказује Ñамо назив датотеке и Ñадржи две колоне (тиме -приказујући двоÑтруко више датотека него други погледи). Дугачки -поглед је Ñличан излазу наредбе -.BR "`ls \-l'". -Дугачки поглед заузима целу ширину екрана. -.PP -Ðко изаберете `КориÑнички' формат приказа, онда Ñами морате задати -формат приказа. -.PP -КориÑнички формат приказа мора почети задавачем величине окна. Ово -може да буде `half' или `full', што задаје окно величине пола екрана и -окно величине целог екрана, тим редом. -.PP -ПоÑле величине окна, можете задати двоколонÑки режим окна. Ово Ñе -задаје додавањем цифре `2' на ниÑку кориÑничког формата. -.PP -ПоÑле овога додају Ñе називи поља Ñа необавезним задавачем величине. -Поља која можете приказати Ñу Ñледећа: -.TP -.B name -приказује назив датотеке. -.TP -.B size -приказује величину датотеке. -.TP -.B bsize -ово је други облик формата -.B size. -Овај облик приказује величину датотека, а за директоријуме приказује -Ñамо ПОД\-ДИР или ÐÐД\-ДИР. -.TP -.B type -приказује поље врÑте, ширине један. Овај знак је Ñличан оном кога -приказује наредба `ls' уз прекидач `\-F' \- за извршне датотеке: -.BR "*", -за директоријуме: -.BR "/", -за везе: -.BR "@", -за утичнице: -.BR "=", -за знаковне уређаје: -.BR "\-", -за блок уређаје: -.BR "+", -за цеви: -.BR "|", -за Ñимболичке везе ка директоријумима: -.BR "~", -и за бајате Ñимвезе (везе које не указују ни на шта): -.BR "!". -.TP -.B mark -звездица ако је датотека означена, а размак ако није. -.TP -.B mtime -датум поÑледње измене датотеке. -.TP -.B atime -датум поÑледњег приÑтупа. -.TP -.B ctime -датум Ñтварања датотеке. -.TP -.B perm -ниÑка која предÑтавља текуће битове дозволе датотеке. -.TP -.B mode -октална вредноÑÑ‚ која Ñадржи текуће битове дозволе датотеке. -.TP -.B nlink -број веза које указују на датотеку. -.TP -.B ngid -ИБГ \- идентификациони број групе (бројевна вредноÑÑ‚). -.TP -.B nuid -КИБ \- кориÑнички идентификациони број (бројевна вредноÑÑ‚). -.TP -.B owner -влаÑник датотеке. -.TP -.B group -група датотеке. -.TP -.B inode -ичвор датотеке. -.PP -Такође, можете кориÑтити Ñледеће кључне речи да биÑте задали изглед -окна: -.TP -.B space -размак у формату приказа. -.TP -.B | -додавање уÑправне црте у формат приказа. -.PP -Да биÑте захтевали да неко поље буде фикÑне величине (задавач -величине), потребно је Ñамо да додате -.B : -и жељени број знакова у пољу (ширину). Ðко Ñе поÑле броја налази -Ñимбол -.BR + , -онда величина задаје најмању величину поља \- ако програм открије да -поÑтоји још проÑтора на екрану, прошириће то поље. -.PP -Ðа пример, -.B Пун -приказ одговара Ñледећем формату: -.PP -half type name | size | mtime -.PP -.B Дугачки -приказ одговара Ñледећем формату: -.PP -full perm space nlink space owner space group space size space mtime -space name -.PP -Ево финог кориÑничког формата приказа: -.PP -half name | size:7 | type mode:3 -.PP -Окна Ñе могу поÑтавити и у Ñледеће режиме: -.TP -.B `Подаци' -Приказ Подаци приказује податке о тренутно изабраној датотеци и, ако -је то могуће, податке о текућем ÑиÑтему датотека. -.TP -.B `Стабло' -Поглед Стабло је веома Ñличан одлици -.\"LINK2" -Ñтабло директоријума\&. -.\"Directory Tree" -Погледајте одељак о њој за више информација. -.TP -.B `Брзи преглед' -У овом режиму, окно ће Ñе претворити у Ñмањени -.\"LINK2" -прегледач -.\"Internal File Viewer" -који приказује Ñадржај тренутно изабране датотеке; ако изаберете окно -(таÑтером `tab' или мишем), добићете приÑтуп уобичајеним наредбама -прегледача. -.\"NODE " Sort Order..." -.SH " Поредак ређања..." -ПоÑтоје оÑам поредака ређања: по имену, по врÑти, по датуму измене, по -датуму приÑтупа, по датуму измене података ичвора, по величини, по -броју ичвора, и без ређања. У дијалогу Поредак ређања можете да -изаберете поредак ређања а такође можете и да задате да ли желите да -ређате у обрнутом поретку потврдивши кућицу `Обрни'. -.PP -Подразумевано Ñтање је да Ñе директоријуми ређају пре датотека, али Ñе -ово може изменити из менија -.\"LINK2" -Избори -.\"Options Menu" -(избор -.BR "Мешани приказ" ). -.\"NODE " Filter..." -.SH " Филтар..." -Ðаредба Филтар вам омогућава да задате образац љуÑке (на пример: -.BR "*.tar.gz" ) -који датотеке морају да задовоље да би биле приказане. Без обзира на -то какав је образац филтра, директоријуми и везе ка директоријумима -Ñу увек приказани у директоријумÑком окну. -.\"NODE " Reread" -.SH " ОÑвежи" -Ðаредба ОÑвежи поново учитава ÑпиÑак датотека у директоријуму. Она је -кориÑна ако Ñу други процеÑи Ñтворили или уклонили неке датотеке. Ðко -Ñте окно попунили називима датотека, ова наредба ће поново учитати -Ñадржај директоријума и уклонити податке о попуни окна (Погледајте -одељак -.\"LINK2" -Критеријум попуне окна -.\"External panelize" -за више информација). -.\"NODE " File Menu" -.SH " Мени `Датотека'" -Поноћни наредник кориÑти таÑтере F1 \- F10 као пречице Ñа таÑтатуре за -наредбе из менија `Датотека'. Комбинације избегавања за функцијÑке -таÑтере Ñу у Ñтвари могућноÑти базе terminfo од `kf1' до `kf10'. Ðа -терминалима без подршке за функцијÑке таÑтере, можете поÑтићи иÑто то -притиÑком на таÑтер ESC и броја између 1 и 9 или 0 (што редом одговара -таÑтерима од F1 до F9 и F10). -.PP -Мени `Датотека' Ñадржи Ñледеће наредбе (пречице Ñа таÑтатуре Ñу у -заградама): -.PP -.B Помоћ (F1) -.PP -Покреће уграђени хипертекÑтуални прегледач помоћи. У оквиру -.\"LINK2" -прегледача помоћи -.\"Contents" -можете кориÑтити таÑтер `Tab' да биÑте изабрали Ñледећу везу и таÑтер -`Enter' да биÑте пратили ту везу. ТаÑтерима размакница и `Backspace' -Ñе помера напред или назад у оквиру Ñтранице помоћи. Поново притиÑните -таÑтер `F1' да биÑте добили пун ÑпиÑак подржаних таÑтера. -.PP -.B Мени (F2) -.PP -Покреће -.\"LINK2" -кориÑнички мени\&. -.\"Edit Menu File" -КориÑнички мени пружа лак начин да Ñе кориÑницима понуди мени и додаје -поÑебне одлике Поноћном нареднику. -.PP -.B Прегледај (F3, Shift\-F3) -.PP -Прегледа тренутно изабрану датотеку. Подразумевано је покретање -.\"LINK2" -Уграђеног прегледача датотека\&, -.\"Internal File Viewer" -али ако је иÑкључен избор `КориÑти уграђени преглед', ова наредба -покреће Ñпољашњи прегледач датотека, задан у променљивој окружења -.BR "PAGER". -Ðко променљива -.B PAGER -није задана, биће покренута наредба `view'. Ðко умеÑто ове кориÑтите -пречицу Shift\-F3, прегледач ће бити покренут без икаквог форматирања -или предобраде датотеке. -.PP -.B Филтрирано прегледање (M\-!) -.PP -Ова наредба пита за наредбу и њене аргументе (подразумевано назив -тренутно изабране датотеке), а излаз те наредбе Ñе приказује у -уграђеном прегледачу датотека. -.PP -.B Уреди (F4) -.PP -За Ñада ова наредба покреће уређивач -.BR "vi", -уређивач који је задан преко променљиве окружења -.B EDITOR -или -.\"LINK2" -Уграђени уређивач датотека -.\"Internal File Editor" -ако је укључен избор use_internal_edit (КориÑти уграђено уређивање). -.PP -.B Копирај (F5) -.PP -Приказује дијалог за ÑƒÐ½Ð¾Ñ Ñа одредиштем које је подразумевано -директоријум у неизабраном окну и копира тренутно изабрану датотеку -(или означене датотеке, ако је бар једна означена) у директоријум који -је кориÑник задао у дијалогу за уноÑ. Space for destination -file may be preallocated relative to preallocate_space configure option. -Током овог процеÑа можете -притиÑнути пречицу C\-c или таÑтер ESC да биÑте прекинули операцију. За -детаље о изворној маÑци (која је обично * или ^\\(.*\\)$, у завиÑноÑти -од поÑтављања избора `КориÑти обраÑце љуÑке') и могућим џокерÑким -знацима у одредишту погледајте -.\"LINK2" -Копирање/преименовање Ñа маÑком\&. -.\"Mask Copy/Rename" -.PP -Ðа неким ÑиÑтемима је могуће покренути копирање у позадини притиÑком -на дугме Позадина (или притиÑком на M\-b у дијалогу). Ставка -.\"LINK2" -ПозадинÑки поÑлови -.\"Background jobs" -Ñе кориÑти за управљање позадинÑким поÑловима. -.PP -.B Ðаправи везу (C\-x l) -.PP -Ствара тврду везу ка текућој датотеци. -.PP -.B Ðаправи Ñимвезу (C\-x s) -.PP -Ствара Ñимболичку везу ка текућој датотеци. За оне који не знају шта Ñу -везе: Ñтварање везе ка датотеци је помало као копирање датотеке, али и -назив изворне датотеке и назив одредишне датотеке предÑтављају иÑти -лик датотеке. Ðа пример, ако уредите једну од те две датотеке, Ñве -измене ће Ñе појавити у обема датотекама. Ðеки људи везе (links) зову -надимцима (alias) или пречицама (shortcuts). -.PP -Тврда веза је Ñличнија Ñтварној датотеци. Пошто је направите, не -поÑтоји начин да Ñе разликује извор од везе. Ðко обришете било које од -та два, друго ће још увек бити нетакнуто. Веома је тешко приметити да -обе датотеке предÑтављају иÑти лик. КориÑтите тврде везе када не -желите да знате шта је шта. -.PP -Симболичка веза предÑтавља упућивање на назив изворне датотеке. Ðко је -изворна датотека обриÑана, Ñимболичка веза поÑтаје беÑкориÑна. Веома -је лако уочити да датотеке предÑтављају иÑти лик. Поноћни наредник -приказује знак `@' иÑпрад назива датотеке ако Ñе ради о Ñимболичкој -вези (изузев ако Ñе ради о Ñимболичкој вези ка директоријуму, када Ñе -приказује тилда (~)). Изворна датотека на коју упућује веза Ñе -приказује у реду мини Ñтања ако је укључен избор -.IR "Прикажи мини Ñтање". -КориÑтите Ñимболичке везе када желите да избегнете забуну коју могу да -изазову тврде везе. -.PP -.B Преименуј/премеÑти (F6) -.PP -Отвара дијалог за ÑƒÐ½Ð¾Ñ ÐºÐ¾Ñ˜Ð¸ подразумевано Ñадржи назив директоријума -из неизабраног окна и премешта тренутно изабрану датотеку (или -означене датотеке ако поÑтоји бар једна означена датотека) у -директоријум који је задао кориÑник у дијалогу за уноÑ. Током овог -процеÑа, можете притиÑнути C\-c или ESC да биÑте прекинули ову -операцију. За више детаља, погледајте горњу операцију Копирај; више -Ñтвари је иÑто за обе наредбе. -.PP -на неким ÑиÑтемима је могуће копирање у позадини преко притиÑка на -дугме Позадина (или притиÑкања M\-b у дијалогу). Ставка -.\"LINK2" -ПозадинÑки поÑлови -.\"Background jobs" -Ñе кориÑти за управљање позадинÑким процеÑима. -.PP -.B Ðаправи директоријум (F7) -.PP -Отвара дијалог за ÑƒÐ½Ð¾Ñ Ð¸ Ñтвара задани директоријум. -.PP -.B Обриши (F8) -.PP -Брише тренутно изабрану датотеку или означене датотеке у третнутно -изабраном окну. Током овог процеÑа можете притиÑнути C\-c или ESC да -биÑте прекинули операцију. -.PP -.B Брза пром.дир. (M\-c) -Ðко вам је наредбени ред попуњен а желите да текући директоријум -поÑтавите на неку другу вредноÑÑ‚, коÑиртите наредбу -.\"LINK2" -Брза пром.дир. -.\"Quick cd" -.PP -.B Изабери групу (+) -.PP -Ово Ñе кориÑти за избор (означавање) групе датотека. Поноћни наредник -ће питати за регуларни израз који опиÑује групу. Када Ñу укључени -.IR "ОбраÑци љуÑке", -регуларни изрази Ñу Ñлични задавању датотека у оквиру љуÑке (* -замењује нула или више знакова а ? један знак). Ðко Ñу -.I ОбраÑци љуÑке -иÑкључени, онда Ñе означавање датотека обавља обичним регуларним -изразима (погледајте ed (1)). -.PP -.B Одизабери групу (\\\\) -.PP -КориÑти Ñе за одбирање групе датотека. Ово је Ñупротна наредба од -наредбе -.IR "Изабери групу". -.PP -.B Заврши (F10, Shift\-F10) -.PP -Прекида рад у Поноћном нареднику. Када желите да завршите рад а -кориÑтите омотач љуÑке, кориÑтите Shift\-F10. Пречица Shift\-F10 Ð²Ð°Ñ -неће одвеÑти на поÑледњи директоријум који Ñте поÑетили у Поноћном -нареднику, већ ћете Ñе вратити на директоријум у ком Ñте покренули -Поноћног наредника. -.\"NODE " Quick cd" -.SH " Брза пром.дир." -Ова наредба је кориÑна ако вам је наредбени ред попуњен а желите да -.\"LINK2" -промените текући директоријум -.\"The cd internal command" -без потребе да иÑечете и залепите наредбени ред. Ова наредба отвара -мали дијалог у ком можете да унеÑете Ñве што биÑте унели поÑле наредбе -.B cd -(промени директоријум) у наредбеном реду и онда притиÑнете таÑтер -`enter'. Ово укључује Ñве Ñтвари које Ñе већ налазе у -.\"LINK2" -уграђеној наредби промене директоријума\&. -.\"The cd internal command" -.\"NODE " Command Menu" -.SH " Мени `Ðаредба'" -Ðаредба -.\"LINK2" -Стабло директоријума -.\"Directory Tree" -приказује илуÑтрацију Ñтабла директоријума. -.PP -Ðаредба -.\"LINK2" -Ðађи датотеку -.\"Find File" -вам омогућава да тражите жељену датотеку. Ðаредба `Размени окна' -размењује Ñадржаје два директоријумÑка окна. -.PP -Ðаредба `Укључи/иÑкључи окна' приказује излаз поÑледње наредбе љуÑке. -Ово ради Ñамо у Ð˜ÐºÑ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð»Ñƒ или у конзоли ГÐУ\-а или FreeBSD\-а. -.PP -Ðаредба Упореди директоријуме (C\-x d) упоређује директоријумÑка окна -једно Ñа другим. Тада можете кориÑтити наредбу Копирај (F5) да биÑте -изједначили окна. ПоÑтоје три начина упоређивања. Брзи начин упоређује -Ñамо величину и датум датотека. Темељни начин упоређује Ñваки бајт Ñа -Ñваким бајтом датотека. Ðачин упоређивања Само величина -упоређује Ñамо величине датотека, а не проверава Ñадржаје или датуме -датотека. -.PP -ИÑторија наредби приказује ÑпиÑак откуцаних наредби. Изабрана наредба -Ñе копира у наредбени ред. ИÑторији наредби Ñе може приÑтупити преко -пречица M\-p и M\-n. -.PP -Ðаредба -.\"LINK2" -Брзи ÑпиÑак директоријума (C\-\\) -.\"Hotlist" -убрзава поÑтављање текућег директоријума на један од чеÑто коришћених -директоријума. -.PP -Ðаредба -.\"LINK2" -Критеријум попуне окна -.\"External panelize" -вам омогућава да извршите Ñпољашњи програм и проÑледите излаз тог -програма као Ñадржај тренутног окна. -.PP -Ðаредба -.\"LINK2" -Уреди датотеку врÑта -.\"Edit Extension File" -вам омогућава да задате програме који Ñе извршавају када покушате да -извршите, прегледате, уређујете или радите прегршт других Ñтвари над -датотекама извеÑних врÑта (наÑтавака назива датотека поÑле тачке). -Ðаредба -.\"LINK2" -Уреди датотеку менија -.\"Edit Menu File" -Ñе може кориÑтити за уређивање кориÑничког менија (који Ñе појављује -притиÑком на таÑтер F2). -.\"NODE " Directory Tree" -.SH " Стабло директоријума" -Ðаредба Стабло директоријума приказује илуÑтрацију Ñтабла директоријума. -Можете да изаберете директоријум из Ñтабла а Поноћни наредник ће -поÑтавити тај директоријум за текући. -.PP -ПоÑтоје два начина да покренете ову наредбу. Права наредба `Стабло -директоријума' је доÑтупна из менија `Ðаредбе'. Други начин је да -изаберете поглед Стабло из менија `Лево' или `ДеÑно'. -.PP -Да би Ð²Ð°Ñ Ð¾Ñлободио дугих заÑтоја, Поноћни наредник Ñтвара илуÑтрацију -Ñтабла уз помоћ претраге малог подÑкупа Ñвих директоријума. Ðко -директоријума кога желите да видите нема, померите Ñе у његов -родитељÑки директоријум и притиÑните C\-r (или F2). -.PP -Можете да кориÑтите Ñледеће пречице: -.PP -Дозвољене Ñу -.\"LINK2" -Опште пречице за кретање\&. -.\"General Movement Keys" -.PP -.B Enter. -У оквиру Ñтабла директоријума, излази из Ñтабла директоријума и -прелази у овај директоријум у текућем окну. У погледу Стабло, прелази -у овај директоријум у другом окну и оÑтаје у режиму погледа Стабло за -текуће окно. -.PP -.B C\-r, F2 (ОÑвежи). -ОÑвежава Ñадржај овог директоријума. КориÑтите ову пречицу када је -илуÑтрација Ñтабла заÑтарела: када недоÑтају директоријуми или Ñу -приказани директоријуми који више не поÑтоје. -.PP -.B F3 (Заборави). -Брише овај директоријум из илуÑтрације Ñтабла. КориÑтите ово да биÑте -уклонили непотребне Ñтавке из Ñтабла. Ðко желите да вратите -директоријум назад у илуÑтрацију Ñтабла, притиÑните F2 над његовим -родитељÑким директоријумом. -.PP -.B F4 (Статично/динамично). -Смењује режим између режима динамичне навигације (подразумевано) и -Ñтатичне навигације. -.PP -У режиму Ñтатичне навигације можете да кориÑтите таÑтере Ðавише и -Ðаниже да биÑте изабрали директоријум. Приказани Ñу Ñви познати -директоријуми. -.PP -У режиму динамичне навигације можете кориÑтити таÑтере Ðавише и Ðаниже -да биÑте изабрали директоријум\-потомка, таÑтер Ðалево да биÑте прешли -у родитељÑки директоријум и таÑтер ÐадеÑно да биÑте прешли у -директоријум\-дете. Приказују Ñе Ñамо родитељÑки, директоријум\-потомак -и директоријуми\-деца, док Ñу други изоÑтављени. ИлуÑтрација Ñтабла Ñе -динамички мења при пролаÑку кроз њу. -.PP -.B F5 (Копирај). -Копира директоријум. -.PP -.B F6 (ПимПрм). -Премешта директоријум. -.PP -.B F7 (ÐапДир). -Прави нови директоријум у текућем директоријуму. -.PP -.B F8 (Обриши). -Брише овај директоријум из ÑиÑтема датотека. -.PP -.B C\-s, M\-s. -Тражи Ñледећи директоријум који задовољава ниÑку претраге. Ðко такав -директоријум не поÑтоји, ове пречице ће Ñе померити један ред надоле. -.PP -.B C\-h, Backspace. -Брише поÑледњи знак из ниÑке претраге. -.PP -.B Било који други знак. -Додаје знак у ниÑку претраге и помера Ñе на Ñледећи директоријум чији -назив почиње тим знаковима. У погледу Стабло морате прво да укључите -режим претраге притиÑнувши C\-s. ÐиÑка претраге Ñе приказује у реду -мини Ñтања. -.PP -Следеће радње Ñу доÑтупне Ñамо у Ñтаблу директоријума. Оне ниÑу -подржане у погледу Стабло. -.PP -.B F1 (Помоћ). -Покреће прегледач помоћи и приказује овај одељак. -.PP -.B Esc, F10. -Излази из Ñтабла директоријума. Ðе мења директоријум. -.PP -Подржан је миш. ДвоÑтруки притиÑак Ñе понаша као таÑтер `Enter'. -Погледајте и одељак о -.\"LINK2" -подршци за миша\&. -.\"Mouse Support" -.\"NODE " Find File" -.SH " Ðађи датотеку" -Одлика Ðађи датотеку прво пита за почетни директоријум претраге и -назив датотеке. ПритиÑкањем дугмета Стабло можете изабрати почетни -директоријум из илуÑтрације -.\"LINK2" -Ñтабла директоријума\&. -.\"Directory Tree" -.PP -Поље Саржај прихвата регуларне изразе који Ñу Ñлични програму -egrep(1). Ово значи да морате да наводите знакове Ñа поÑебним значењем -преко знака `\\'; нпр. ако тражите ниÑку `strcmp (' мораћете да -унеÑете `strcmp \\(' (без знакова навода). -.PP -Можете да почнете претрагу притиÑкањем дугмета У реду. Током претраге -можете да обуÑтавите поÑтупак преко дугмета ОбуÑтави а да наÑтавите -преко дугмета ÐаÑтави. -.PP -Можете да разгледате ÑпиÑак датотека уз помоћ таÑтера Стрелица нагоре -и Стрелица надоле. Дугме Пром.дир. ће прећи у директоријум у ком Ñе -налази тренутно изабрана датотека. Дугме Поново ће упитати за -параметре нове претраге. Дугме Заврши завршава операцију претраге. -Дугме Претвори у окно ће Ñтавити нађене датотеке у текуће -директоријумÑко окно, да биÑте могли да Ñпроведете додатне операције -над њима (преглед, копирање, премештање, бриÑање, итд.) ПоÑле -претварања у окно можете да притиÑнете C\-r да биÑте Ñе вратили на -обичан режим ÑпиÑка датотека. -.PP -Можете да направите ÑпиÑак директоријума које би наредба Ðађи датотеку -требало да преÑкочи приликом претраге (на пример, ако желите да -избегнете претраге на CD\-ROM\-у или директоријуму МСД (мрежног ÑиÑтема -датотека) који је монтиран преко Ñпоре везе). -.PP -Директоријуме које би требало избегавати би требало навеÑти у -променљивој -.B ignore_dirs -у одељку -.B FindFile -ваше датотеке ~/.config/mc/ini. -.PP -Директоријуме би требало раздвајати двотачком; ево примера: -.PP -.nf -[FindFile] -ignore_dirs=/cdrom:/nfs/wuarchive:/afs -.fi -.PP -Можете да размотрите и употребу наредбе -.\"LINK2" -Критеријум попуне окна -.\"External panelize" -за неке операције. Ðаредба Ðађи датотеку је намењена Ñамо за -једноÑтавне упите, док уз наредбу Критеријум попуне окна можете -Ñпроводити и најмиÑтериозније претраге. -.\"NODE " External panelize" -.SH " Критеријум попуне окна" -Ðаредба Критеријум попуне окна вам омогућава да извршите Ñпољашњи -програм и да његов излаз претворите у Ñадржај текућег окна. -.PP -Ðа пример, ако желите да у једном окну радите Ñа Ñвим Ñимболичким -везама из текућег директоријума, можете да кориÑтите критеријум попуне -окна да биÑте покренули Ñледећу наредбу: -.PP -.nf -find . \-type l \-print -.fi -.PP -По завршетку наредбе, директоријумÑки Ñадржај окна неће више бити -ÑпиÑак Ñвих датотека у директоријуму, већ ÑпиÑак Ñвих Ñимболичких веза. -.PP -Ðко желите да окно попуните ÑпиÑком Ñвих датотека које Ñте преузели Ñа -Ñервера FTP\-а, можете да кориÑтите Ñледећу наредбу awk\-а да биÑте -издвојили назив датотеке из датотека дневника преноÑа: -.PP -.nf -awk '$9 ~! /incoming/ { print $9 }' < /var/log/xferlog -.fi -.PP -Можете и Ñачувати чеÑто коришћене критеријуме попуне окна под опиÑним -називима, тако да Ñе они каÑније могу брзо позвати. Ово Ñе може -урадити куцањем наредбе у реду за ÑƒÐ½Ð¾Ñ Ð¸ притиÑком на дугме Додај -ново. Онда унеÑите назив под којим желите да Ñе Ñачува наредба. -Следећи пут Ñамо изаберите ту наредбу из ÑпиÑка \- више никад нећете -морати да је укуцавате. -.\"NODE " Hotlist" -.SH " Брзи ÑпиÑак" -Ðаредба Брзи ÑпиÑак директоријума приказује натпиÑе директоријума у -брзом ÑпиÑку директоријума. Поноћни наредник ће прећи у директоријум -који одговара изабраном натпиÑу. Можете да уклоните поÑтојеће и да -доадте нове парове натпиÑа и назива директоријума. Да биÑте брзо -додали нове дирекотријуме, можете да кориÑтите наредбу Додај у брзи -ÑпиÑак (C\-x h), која додаје текући директоријум у брзи ÑпиÑак -директоријума, питавши Ñамо за натпиÑ. -.PP -Ово убрзава промену директоријума на неки од чеÑто коришћених -директоријума. Можете да размиÑлите и о коришћењу променљиве CDPATH, -као што је опиÑано у опиÑу -.\"LINK2" -наредбе уграђена пром.дир. -.\"The cd internal command" -.\"NODE " Edit Extension File" -.SH " Уреди датотеку врÑта" -Ово покреће ваш уређивач над датотеком -.IR ~/.config/mc/mc.ext.ini . -If this file does not exist and you are not root, it will be copied from -.IR %sysconfdir%/mc/mc.ext.ini . -If you are root, you can choose the file to edit: user's -.I ~/.config/mc/mc.ext.ini -or system\-wide -.IR %sysconfdir%/mc/mc.ext.ini . -The format of this file is described in detail in it. -.\"NODE " Background jobs" -.SH " ПозадинÑки поÑлови" -Ово вам омогућава да управљате Ñтањем било ког позадинÑког процеÑа -Поноћног наредника (за Ñада Ñе у позадини могу обављати Ñамо копирање -и премештање датотека). Одавде можете да зауÑтављате, поново покрећете -и убијате позадинÑке поÑлове. -.\"NODE " Edit Menu File" -.SH " Уреди датотеку менија" -КориÑнички мени је мени кориÑних радњи кога кориÑник може -прилагођавати. Када приÑтупите кориÑничком менију, кориÑти Ñе -датотека .mc.menu из текућег директоријума, уколико она поÑтоји, али Ñамо -уколико је њен влаÑник кориÑник или админиÑтратор (root) и није -дозвољен ÑƒÐ¿Ð¸Ñ Ñƒ њу од Ñтране других (Ñвета). Ðко таква датотека није -нађена, на иÑти начин Ñе покушава Ñа датотеком ~/.config/mc/menu, а иначе ПР-кориÑти подразумевану датотеку менија за цео ÑиÑтем -%pkgdatadir%/mc.menu. -.PP -Формат датотеке менија је веома једноÑтаван. Редови који почињу било -чим оÑим размака или табулатора Ñе узимају за Ñтавке менија (да би Ñе -кориÑтио за пречицу, први знак би требало да буде Ñлово). Сви редови -који почињу размаком или табулатором Ñу наредбе које ће Ñе извршити -при избору тог уноÑа. -.PP -Када је неки од избора изабран, Ñви наредбени редови избора Ñе -копирају у привремену датотеку у привременом директоријуму (обично -/usr/tmp) и онда Ñе та датотека извршава. Ово омогућава кориÑнику да у -меније ÑмеÑти обичне наредбе љуÑке. Такође, пре извршавања кода менија -Ñе примењује једноÑтавна замена макроа. За више информација, -погледајте одељак -.\"LINK2" -замена макроа\&. -.\"Macro Substitution" -.PP -Ево примера датотеке mc.menu: -.PP -.nf -A ИÑтреÑа Ñадржај тренутно изабране датотеке - od \-c %f - -B Уређује пријаву грешке и шаље је админиÑтратору - I=`mktemp ${MC_TMPDIR:\-/tmp}/mail.XXXXXX` || exit 1 - vi $I - mail \-s "Грешка у поноћном нареднику" root < $I - rm \-f $I - -M Чита пошту - emacs \-f rmail - -N Чита веÑти Ñа Usenet\-а - emacs \-f gnus - -H Позива читач хипертекÑта info - info - -J Рекурзивно копира текући директоријум у друго окно - tar cf \- . | (cd %D && tar xvpf \-) - -K Прави издање текућег поддиректоријума - echo \-n "Ðазив датотеке за раÑподелу: " - read tar - ln \-s %d `dirname %d`/$tar - cd .. - tar cvhf ${tar}.tar $tar - -= f *.tar.gz | f *.tgz & t n -X Издваја Ñадржај компримоване датотеке врÑте `tar' - tar xzvf %f -.fi -.PP -.B УÑлови подразумевања -.PP -Пре Ñваке Ñтавке менија могу Ñе навеÑти уÑлови. УÑлов мора да почиње -од прве колоне Ñа знаком `='. Ðко је уÑлов тачан, Ñтавка менија ће -бити подразумевана Ñтавка. -.PP -.nf -СинтакÑа уÑлова: = <под\-уÑл> - или: = <под\-уÑл> | <под\-уÑл> ... - или: = <под\-уÑл> & <под\-уÑл> ... - -Под\-уÑлови могу да буду: - - y <образац> ÑинтакÑа тренутне датотеке задовољава образац. - (Ñамо у менију уређивача) - f <образац> назив текуће датотеке задовољава образац? - F <образац> датотека у другом окну задовољава образац? - d <образац> текући директоријум задовољава образац? - D <образац> други директоријум задовољава образац? - t <врÑта> врÑта текуће датотеке је <врÑта>? - T <врÑта> врÑта друге датотеке је <врÑта>? - x <називдат> да ли је датотека извршна? - ! <под\-уÑл> негира резултат под\-уÑлова -.fi -.PP -Образац је обичан образац љуÑке или регуларни израз, што завиÑи од -избора `обраÑци љуÑке'. Можете да заобиђете глобалну вредноÑÑ‚ избора -`обраÑци љуÑке' Ñтављањем `shell_patterns=x' у први ред датотеке -менија (`x' може да буде 0 или 1). -.PP -Ð’Ñ€Ñту чине један или више Ñледећих знакова: -.PP -.nf - n није директоријум - r обична датотека - d директоријум - l веза - c знаковни уређај - b блок уређај - f ПРУПРИ \- први у, први из (FIFO, цев) - s утичница - x извршна датотека - t означено -.fi -.PP -Ðа пример, `rlf' означава обичну датотеку, везу или прупри. Ð’Ñ€Ñта `t' -је помало поÑебна, јер делује над окном умеÑто над датотеком. УÑлов -`=t t' је тачан уколико поÑтоје означене датотеке у текућем окну а -нетачан уколико не поÑтоје. -.PP -Ðко уÑлов почиње Ñа `=?' умеÑто Ñа `=' биће приказан траг за -поправљање кадгод Ñе рачуна вредноÑÑ‚ уÑлова. -.PP -УÑлови Ñе рачунају Ñлева надеÑно. Ово значи да Ñе -.nf - = f *.tar.gz | f *.tgz & t n -.fi -рачуна као -.nf - ( (f *.tar.gz) | (f *.tgz) ) & (t n) -.fi -.PP -Ево примера употребе уÑлова: -.PP -.nf -= f *.tar.gz | f *.tgz & t n -L Ðабраја Ñадржај компримоване архиве врÑте `tar' - gzip \-cd %f | tar xvf \- -.fi -.PP -.B УÑлови додавања -.PP -Ðко уÑлов почиње знаком `+' (или `+?') умеÑто знаком `=' (или `=?'), -онда Ñе назива уÑловом додавања. Ðко је такав уÑлов тачан, Ñтавка -менија ће бити укључена у мени. Ðко је уÑлов нетачан, Ñтавка менија -неће бити укључена у мени. -.PP -Можете да комбинујете уÑлове подразумевања Ñа уÑловима додавања -почињући уÑлов знаком `+=' или `=+' (или `+=?' или `=+?' ако желите -траг за поправљање). Ðко желите да кориÑтите два различита уÑлова \- -један за додавање а други за подразумевање, можете да пре Ñтавке -менија Ñтавите два реда уÑлова, један који почиње знаком `+' и други -који почиње знаком `='. -.PP -Коментари почињу знаком `#'. Додатни редови коментара морају да почињу -знаком `#', размаком или табулатором. -.\"NODE " Options Menu" -.SH " Мени `Избори'" -Поноћни наредник поÑедује неке изборе који Ñе могу Ñмењивати из -неколико дијалога који Ñу доÑтупни из овог менија. Избори Ñу укључени -ако Ñе иÑпред њих налазе звездица или знак `x'. -.PP -Ðаредба -.\"LINK2" -Подешавања -.\"Configuration" -отвара дијалог из кога можете променити већину поÑтавки Поноћног -наредника. -.PP -Ðаредба -.\"LINK2" -Изглед -.\"Layout" -отвара дијалог из кога можете задати прегршт избора који управљају -изгледом екрана ПÐ. -.PP -Ðаредба -.\"LINK2" -Потврде -.\"Confirmation" -отвара дијалог из кога можете задати које радње желите да потврђујете. -.PP -Ðаредба -.\"LINK2" -Битова у приказу -.\"Display bits" -отвара дијалог из кога можете да изаберете које знакове ваш терминал -може да прикаже. -.PP -Ðаредба -.\"LINK2" -Ðаучи таÑтере -.\"Learn keys" -отвара дијалог из кога можете да иÑпробате таÑтере који не функционишу -на неким терминалима и да их поправите. -.PP -Ðаредба -.\"LINK2" -Виртуални СД -.\"Virtual FS" -отвара дијалог из кога можете да задате неке изборе који Ñу у вези Ñа -ВСД. -.PP -Ðаредба -.\"LINK2" -Сачувај подешавања -.\"Save Setup" -чува текуће поÑтавке менија `Лево', `ДеÑно' и `Избори'. Такође Ñе чува -и нешто других поÑтавки. -.\"NODE " Configuration" -.SH " Подешавања" -Избори из овог дијалога Ñе деле у три групе: Избори окна, Пауза поÑле -покретања и Други избори. -.PP -.B Избори окна -.PP -.I Прикажи резервне датотеке. -Ðко је ово укључено, Поноћни наредник ће приказати датотеке које Ñе -завршавају тилдом (~). Иначе оне неће бити приказане (као код избора -`\-B' ГÐУ\-ове наредбе `ls'). -.PP -.I Прикажи Ñакривене датотеке. -Ðко је ово укључено, Поноћни наредник ће приказати Ñве датотеке које -почињу тачком (као наредба `ls \-a'). -.PP -.I ПоÑле ознаке иди доле. -Ðко је ово укључено, ред за бирање ће Ñе померати надоле када означите -датотеку (било таÑтера `Insert'). -.PP -.I Падајући менији. -Ðко је овај избор укључен, падајући менији биће отворени приликом -притиÑка на таÑтер -.BR "F9". -Иначе, добићете Ñамо наÑлов менија и мораћете да мени отворите преко -таÑтера Ñа Ñтрелицама или пречицама. Препоручује Ñе да кориÑтите -пречице. -.PP -.I Мешани приказ. -Ðко је овај избор укључен, датотеке и директоријуми ће бити приказани -помешано. Ðко је овај избор иÑкључен, директоријуми (и везе ка -директоријумима) ће бити приказани на почетку ÑпиÑка а друге датотеке -иÑпод њих. -.PP -.I Брзо учитавање директоријума. -Ðко је овај избор укључен, Поноћни наредник ће употребљавати трик да -одреди да ли Ñе Ñадржај директоријума променио. Трик Ñе ÑаÑтоји у томе -да Ñе директоријум оÑвежава Ñамо ако је промењен и\-чвор директоријума; -ово значи да Ñе поновно учитавање дешава Ñамо при Ñтварању или бриÑању -датотека. Ðко је оно што Ñе променило и\-чвор датотеке у директоријуму -(промена величине датотеке, режима или влаÑника, итд.), приказ Ñе не -ажурира. Тада, уколико Ñте укључили овај избор, морате ручно (уз C\-r) -да оÑвежите Ñадржај директоријума. -.PP -.B Пауза поÑле покретања -.PP -ПоÑле извршавања ваших наредби, Поноћни наредник Ñе може паузирати, -тако да имате могућноÑÑ‚ да прегледате излаз наредбе. ПоÑтоје три -могуће поÑтавке ове променљиве: -.PP -.I Ðикад. -Ово значи да не желите да видите излаз ваше наредбе. Ðко кориÑтите -конзолу ГÐУ\-а или FreeBSD\-а или Ð˜ÐºÑ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð», моћи ћете да видите -излаз наредбе куцајући C\-o. -.PP -.I Ðа глупим терминалима. -Добићете поруку о паузи на терминалима који ниÑу ÑпоÑобни да прикажу -излаз поÑледње извршене наредбе (Ñваки терминал који није Ð˜ÐºÑ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð» -или конзола ГÐУ\-а). -.PP -.I Увек. -Програм ће паузирати поÑле извршавања Ñвих ваших наредби. -.PP -.B Други избори -.PP -.I Брбљиви рад. -Ово Ñмењује брбљивоÑÑ‚ (приказивање дијалога за Ñваку операцију) код -операција копирања, преименовања и бриÑања. Ðко имате Ñпори терминал, -можда ћете желети да иÑкључите брбљиви рад. Он Ñе аутоматÑки иÑкључује -ако је брзина вашег терминала мања од 9600 б/Ñ. -.PP -.I Рачунај укупне збирове. -Ðко је овај избор укључен, Поноћни наредник рачуна укупне величине у -бајтовима и укупни број датотеке пре било које операције копирања, -преименовања и бриÑања. Ово ће вам приказати тачније показатеље -напретка науштрб нешто брзине. Овај избор нема ефекта ако је иÑкључен -избор -.IR "Брбљиви рад". -.PP -.I ОбраÑци љуÑке. -Ðаредбе избора, одизбора и филтрирања подразумевано кориÑте љуÑколике -регуларне изразе. Да би Ñе ово поÑтигло, примењују Ñе Ñледећа -претварања: знак `*' Ñе замењује ниÑком `.*' (нула или више знакова); -знак `?' Ñе замењује знаком `.' (тачно један знак) а знак `.' -доÑловном тачком. Ðко је овај избор иÑкључен, регуларни изрази Ñу -као они опиÑани у упутÑтву за ed(1). -.PP -.I ÐутоматÑко чување подешавања. -Ðко је овај избор укључен, подеÑиви избори Поноћног наредника ће бити -Ñачувани у датотеци ~/.config/mc/ini при излаÑку из Поноћног наредника. -.PP -.I ÐутоматÑки менији. -Ðко је овај избор укључен, при покретању Поноћног наредника ће бити -позван кориÑнички мени. Ово је кориÑно за изградњу менија за -почетнике. -.PP -.I КориÑти уграђени уређивач. -Ðко је овај избор укључен, за уређивање датотека ће бити коришћен -уграђени уређивач датотека. Ðко је овај избор иÑкључен, биће коришћен -уређивач задан у променљивој окружења -.BR "EDITOR". -Ðко уређивач није задан, биће коришћен -.BR "vi". -Погледајте одељак о -.\"LINK2" -уграђеном уређивачу датотека\&. -.\"Internal File Editor" -.PP -.I КориÑти уграђени прегледач. -Ðко је овај избор укључен, за преглед датотека биће коришћен уграђени -прегледач датотека. Ðко је овај избор иÑкључен, биће коришћен -Ñтраничник задан у променљивој окружења -.BR "PAGER". -Ðко Ñтраничник није задан, биће коришћена наредба -.BR "view". -Погледајте одељак о -.\"LINK2" -уграђеном прегледачу датотека\&. -.\"Internal File Viewer" -.PP -.I Допуна: прикажи Ñве. -У Ñлучају да је допуна двоÑмиÑлена, Поноћни командир ће подразумевано -отворити прозор Ñа Ñвим могућим -.\"LINK2" -допунама\&, -.\"Completion" -али Ñамо уколико притиÑнете -.B M\-Tab -и други пут. Први пут ће Ñамо допунити онолико колико је то могуће и -пиÑнути у Ñлучају двоÑмиÑленоÑти. Укључите овај избор ако желите да -видите Ñве могуће допуне поÑле Ñамо једног притиÑка на -.BR "M\-Tab". -.PP -.I Ротирајућа црта. -Ðко је овај избор укључен, Поноћни наредник ће у ÑвојÑтву показатеља -напретка приказати ротирајућу црту у доњем деÑном углу. -.PP -.I Lynx\-олико кретање. -Ðко је овај избор укључен, моћи ћете да кориÑтите таÑтере Ñа -Ñтрелицама да биÑте Ñе аутоматÑки пребацили у директоријум ако је -текући избор поддиректоријум а наредбени ред празан. Подразумевано је -овај избор иÑкључен. -.PP -.I Пром.дир. прати везе. -Овај избор, у Ñлучају да је поÑтављен, казује Поноћном нареднику да -прати логички ланац директоријума при промени текућег директоријума, -било у окнима, било при коришћењу наредбе `cd' (промена -директоријума). Ово је подразумевано понашање љуÑке `bash'. Када је -овај избор иÑкључен, Поноћни наредник ће пратити праву Ñтруктуру -директоријума, па ће Ð²Ð°Ñ Ð½Ð°Ñ€ÐµÐ´Ð±Ð° `cd ..' (поÑтављање текућег -директоријума на родитељÑки директоријум), у Ñлучају да Ñте ушли у -директоријум преко везе, пребацити у Ñтварног родитеља текућег -директоријума, а не у директоријум у ком је веза. -.PP -.I Безбедно бриÑање. -Ðко је овај избор укључен, он отежава ненамерно бриÑање датотека. -Ðаиме, тада је подразумевани избор у дијалозима потврде `Ðе' умеÑто -`Да'. Овај избор је подразумевано иÑкључен. -.\"NODE " Layout" -.SH " Изглед" -Дијалог Изглед вам омогућује да промените општи изглед екрана. Можете -да задате да ли ће бити приказани ред менија, наредбени одзивник, ред -Ñавета и ред функцијÑких таÑтера. У конзолама ГÐУ\-а или FreeBSD\-а -можете да задате колико редова је приказано у прозору излаза. -.PP -ОÑтатак екранÑке облаÑти заузимају два директоријумÑка окна. Можете да -задате да ли Ñе та облаÑÑ‚ дели уÑправно или положено. Подела може бити -подједнака или можете да задате неједнаку поделу. -.PP -Можете да задате да ли би требало иÑтицати поÑебним -.\"LINK2" -бојама -.\"Colors" -.I дозволе -и -.IR "врÑте датотека". -Ðко је укључено иÑтицање дозвола, делови -.\"LINK2" -поља приказа -.\"Listing Format..." -.I perm (дозволе) -и -.IR "mode (окталне дозволе)", -који Ñе примењују на кориÑника Поноћног наредника ће бити иÑтакнути -бојом коју задаје кључна реч -.IR "selected". -Ðко је укључено иÑтицање врÑта датотека, датотеке Ñе фарбају у Ñкладу -Ñа њиховом врÑтом (нпр. директоријум, датотека Ñржи, извршна датотека, -итд.). -.PP -Ðко је укључен избор -.IR "Прикажи мини Ñтање", -при дну окана Ñе приказује један ред података о Ñтању тренутно -изабране Ñтавке. -.PP -Када је покренут у имитатору терминала за ИкÑ, Поноћни наредник -поÑтавља наÑлов терминалÑког прозора на текући радни директоријум и -ажурира га по потреби. Ðко је ваш имитатор терминала покварен и видите -неиÑправан излаз при покретању и промени текућег директоријума, -иÑкључите избор -.IR "ÐаÑлов прозора Ð˜ÐºÑ Ñ‚ÐµÑ€Ð¼Ð¸Ð½Ð°Ð»Ð°". -.\"NODE " Confirmation" -.SH " Потврде" -У овом менију можете подеÑити изборе потврде при бриÑању, препиÑивању -датотека, извршавању датотека притиÑком на таÑтер `enter' и завршавању -рада у програму. -.\"NODE " Display bits" -.SH " Битова у приказу" -Ово Ñе кориÑти за подешавање опÑега видљивих знакова на екрану. Ово -подешавање може да буде `7 бита' или `7\-bit ASCII' ако ваш терминал -или библиотека `curses' подржавају Ñамо Ñедмобитни излаз. ПоÑтавка -`ISO\-8859\-1' приказује Ñве знаке из мапе изо 8859\-1 а `Пуно оÑмобитно' -је за оне терминале који могу да прикажу пуне оÑмобитне знаке. -.\"NODE " Learn keys" -.SH " Ðаучи таÑтере" -Овај дијалог вам омогућава да иÑпробате и промените функцијÑке -таÑтере, курÑорÑке Ñтрелице и неке друге таÑтере, како би они иÑправно -радили на вашем терминалу. ЧеÑто ово није Ñлучај, јер Ñу многе -терминалÑке базе непотпуне или покварене. -.PP -Можете Ñе кретати уз помоћ таÑтера `Tab' и пречица за кретање програма -`vi' (`h' лево, `j' наниже, `k' навише и `l' деÑно). Чим једном -притиÑнете било који таÑтер за померање курÑора и он је препознат, -можете кориÑтити и њега. -.PP -Можете иÑпробавати таÑтере притиÑком на Ñваки од њих. Када притиÑнете -таÑтер и он је иÑправно препознат, поред назива тог таÑтера би требало -да Ñе појави `Да'. Чим је таÑтер означен Ñа `Да', он поприма Ñвоје -уобичајено значење, нпр. при првом притиÑку на F1 обавиће Ñе Ñамо -провера тог таÑтера, али поÑле ње ће притиÑак на тај таÑтер приказати -помоћ. ИÑто важи и за таÑтере Ñа Ñтрелицама. ТаÑтер `Tab' би требало -увек да функционише. -.PP -Ðко неки таÑтери не раде иÑправно, нећете видети `Да' при притиÑку на -њих. Онда ћете можда желети да их измените. То можете учинити -притиÑком на дугме Ñа називом тог таÑтера (мишем или притиÑком на -таÑтер `Enter' или размакницу поÑле бирања дугмета таÑтером `Tab' или -Ñтрелицама). Онда ће Ñе појавити прозор који ће од Ð²Ð°Ñ Ñ‚Ñ€Ð°Ð¶Ð¸Ñ‚Ð¸ да -притиÑнете тај таÑтер. ПритиÑните га и Ñачекајте док прозор не -неÑтане. Ðко желите да прекинете, притиÑните Ñамо једном таÑтер -`Escape' и Ñачекајте. -.PP -Кад завршите Ñа Ñвим таÑтерима, можете да их Ñачувате. Дефиниције -таÑтера које Ñте задали ће бити упиÑане у одељак [terminal:TERM] ваше -датотеке ~/.config/mc/ini (где `TERM' предÑтавља назив вашег текућег -терминала). Дефиниције таÑтера који Ñу већ иÑправно радили Ñе не -чувају. -.\"NODE " Virtual FS" -.SH " Виртуални СД" -Овај избор вам пружа могућноÑÑ‚ управљања подешавањима -.\"LINK2" -виртуалног ÑиÑтема датотека\&. -.\"Virtual File System" -.PP -Поноћни наредник чува у меморији податке о неким виртуалним ÑиÑтемима -датотека да би убрзао приÑтуп датотекама из тог ÑиÑтема (нпр. ÑпиÑкови -датотека добављени Ñа Ñервера FTP\-а). -.PP -Такође, како би приÑтупио Ñадржају компримованих датотека (нпр. -компримованих датотека врÑте `tar'), Поноћни наредник мора да Ñтвори -привремену некомпримовану датотеку на вашем диÑку. -.PP -Како и подаци у меморији и привремене датотеке на диÑку заузимају -реÑурÑе, можда ћете желети да подеÑите параметре оÑтављених података -како биÑте Ñмањили количину употребљених реÑурÑа или повећали брзину -приÑтупа чеÑто коришћеним ÑиÑтемима датотека. -.PP -.I СиÑтем датотека врÑте `tar' -мора да прочита целу датотеку Ñамо да би приказао ÑпиÑак датотека, -због формата архива врÑте `tar'. Како је већина датотека врÑте `tar' -обично компримована, (обичне датотеке врÑте `tar' Ñу угрожена врÑта), -ÑиÑтем датотека врÑте `tar' мора да их отпакује на диÑк, на привремено -меÑто, и тек тада приÑтупи отпакованој датотеци као што би приÑтупио -обичној датотеци врÑте `tar'. -.PP -Сад, пошто Ñви ми волимо да разгледамо датотеке и датотеке врÑте `tar' -Ñвуда на диÑку, уобичајено је да ћете напуÑтити датотеку врÑте `tar' и -каÑније је поново поÑетити. Пошто је отпакивање Ñпоро, Поноћни -наредник ће на одређено време Ñмештати Ñве податке у меморију. Када то -одређено време иÑтекне, биће оÑлобођени Ñви реÑурÑи додељени том -ÑиÑтему датотека. Подразумевано време чекања је један минут. -.PP -.\"LINK2" -СиÑтем датотека FTP\-а -.\"FTP File System" -(ftpfs) вам омогућава да разгледате директоријуме на удаљеним -Ñерверима FTP\-а. Он Ñадржи неколико избора. -.PP -.I анонимна лозинка за ftp -је лозинка која ће Ñе кориÑтити када Ñе пријављујете као `anonymous'. -Ðека меÑта захтевају иÑправну адреÑу епоште. Са друге Ñтране, -вероватно не желите да оÑтављате вашу праву адреÑу епоште на -непровереним меÑтима, а поÑебно уколико не кориÑтите филтрирање -нежељене поште. -.PP -ftpfs чува ÑпиÑак директоријума који добавља Ñа Ñервера FTP\-а у -оÑтави. Време трајања оÑтаве Ñе може подеÑити избором -.IR "`иÑтекло време за оÑтаву дир. ftpfs\-а'". -ÐиÑка вредноÑÑ‚ овог избора може уÑпорити Ñваку радњу над ftpfs\-ом, јер -онда Ñвака радња захтева Ñлање захтева Ñерверу FTP\-а. -.PP -Можете да задате поÑредничког домаћина FTP\-а. Пазите, јер је већина -модерних заштитних зидова у потпуноÑти неприметна, макар за FTP -(погледајте доле), па Ñе поÑредници за FTP Ñматрају заÑтарелим. -.PP -Ðко није укључено -.IR "Увек кориÑти поÑредника за ftp", -можете да кориÑтите узвичник да биÑте укључили поÑредника за извеÑне -домаћине. Погледајте одељак -.\"LINK2" -СиÑтем датотека FTP\-а -.\"FTP File System" -за примере. -.PP -Ðко је овај избор укључен, програм ће или: гледати датотеку -%sysconfdir%/mc/mc.no_proxy и тражити редове који Ñадрже називе -домаћина који Ñу локални (ако назив домаћина почиње тачком, -претпоÑтавља Ñе да Ñе ради о домену) и претпоÑтавиће да Ñу називи -домаћина без тачака непоÑредно приÑтупачни. Свим другим домаћинима ће -Ñе приÑтупати кроз заданог поÑредника за FTP. -.PP -Можете да укључите употребу датотеке -.IR "~/.netrc", -у којој Ñе чувају кориÑничка имена и лозинке за Ñервере ftp\-а. -Погледајте netrc(5) за Ð¾Ð¿Ð¸Ñ Ñ„Ð¾Ñ€Ð¼Ð°Ñ‚Ð° датотке .netrc. -.PP -.I КориÑти паÑивни режим -укључује употребу паÑивног режима FTP\-а, при коме повезивање ради -преноÑа података покреће клијент, а не Ñервер. Овај избор Ñе -препоручује и подразумевано је укључен. Ðко Ñе овај избор иÑкључи, -податковна повезивања покреће Ñервер. Ово може да не ради Ñа одређеним -заштитним зидовима. -.\"NODE " Save Setup" -.SH " Сачувај подешавања" -При покретању, Поноћни наредник ће покушати да учита податке о -покретању из датотеке ~/.config/mc/ini. Ðко ова датотека не поÑтоји, учитаће -податке из датотеке Ñа подешавањима за цео ÑиÑтем. Ðко ни она не -поÑтоји, ПРће кориÑтити подразумеване поÑтавке. -.PP -Ðаредба -.I Сачувај подешавања -Ñтвара датотеку ~/.config/mc/ini чувањем текућих поÑтавки менија -.\"LINK2" -`Лево', `ДеÑно' -.\"Left and Right Menus" -и -.\"LINK2" -`Избори'\&. -.\"Options Menu" -.PP -Ðко укључите избор -.IR "ÐутоматÑко чување подешавања", -ПРће увек чувати текуће поÑтавке при излазу. -.PP -ПоÑтоје и поÑтавке које Ñе не могу променити из менија. Да биÑте -променили те поÑтавке, морате да уређујете датотеку Ñа поÑтавкама из -вашег омиљеног уређивача. Погледајте одељак -.\"LINK2" -ПоÑебне поÑтавке -.\"Special Settings" -за више информација. -.SH "" -.\"NODE "Executing operating system commands" -.SH "Извршавање наредби оперативног ÑиÑтема" -Можете да извршите наредбе укуцавши их непоÑредно у ред за ÑƒÐ½Ð¾Ñ -Поноћног наредника, или избором програма кога желите да извршите редом -за бирање у окну и притиÑком на таÑтер `Enter'. -.PP -Уколико притиÑнете таÑтер `Enter' над датотеком која није извршна, -Поноћни наредник ће упоредити врÑту изабране датотеке Ñа врÑтама из -.\"LINK2" -датотеке врÑта\&. -.\"Edit Extension File" -Ðко је пронађена врÑта која одговара траженој, онда ће Ñе извршити код -придружен тој врÑти. Пре извршења наредбе врши Ñе веома једноÑтавно -.\"LINK2" -раширење макроа\&. -.\"Macro Substitution" -.\"NODE " The cd internal command" -.SH " Уграђена наредба пром.дир." -Ðаредбу -.I cd (промена текућег директоријума) -тумачи Поноћни наредник; она Ñе не предаје наредбеној љуÑци ради -извршавања. Стога Ñе можда неће вршити Ñва она згодна раширења и -замене макроа које обавља ваша љуÑка, иако ће Ñе нека примењивати: -.PP -.I Замена тилде. -Тилда (~) ће Ñе заменити називом вашег домаћег директоријума, а ако -додате кориÑничко име поÑле тилде, биће замењена називом кориÑничког -директоријума заданог кориÑника. -.PP -Ðа пример, ~guest предÑтавља домаћи директоријум кориÑника guest, а -~/guest је директоријум под именом guest у вашем домаћем -директоријуму. -.PP -.I Претходни директоријум. -Можете Ñкочити на директоријум који Ñте претходно кориÑтили уз поÑебан -назив директоријума: `\-', овако: -.B cd \- -.PP -.I Директоријуми CDPATH\-а. -Ðко Ñе директоријум задан у наредби -.B cd -не налази у текућем директоријуму, Поноћни наредник ће кориÑтити -вредноÑÑ‚ променљиве окружења -.B CDPATH -да би тражио директоријум у било ком директоријуму наведеном у тој -променљивој. -.PP -Ðа пример, могли биÑте да подеÑите вашу променљиву -.B CDPATH -на ~/src:/usr/src, тиме омогућивши да пређете у било који -поддиректоријум унутар директоријума ~/src и /usr/src, и то Ñа било -ког меÑта у ÑиÑтему датотека, кориÑтећи његов релативни назив (нпр. cd -linux би Ð²Ð°Ñ Ð¾Ð´Ð²ÐµÐ»Ð¾ у /usr/src/linux). -.\"NODE " Macro Substitution" -.SH " Замена макроа" -Приликом приÑтупа -.\"LINK2" -кориÑничком менију\&, -.\"Edit Menu File" -извршења -.\"LINK2" -наредбе завиÑне од врÑте\&, -.\"Edit Extension File" -или покретања наредбе из уноÑа наредбеног реда, врши Ñе једноÑтавна -замена макроа. -.PP -Макрои Ñу Ñледећи: -.TP -.I %i -Увлачење белинама, једнако позицији колоне курÑора. Примењује Ñе Ñамо -у менију уређивача. -.TP -.I %y -Ð’Ñ€Ñта ÑинтакÑе текуће датотеке. Примењује Ñе Ñамо у менију уређивача. -.TP -.I %k -Ðазив датотеке блока уређивача. -.TP -.I %e -Ðазив датотеке Ñа грешкама. -.TP -.I %m -Ðазив текуће датотеке менија. -.TP -.IR %f " и " %p -Ðазив текуће датотеке. -.TP -.I %x -Ð’Ñ€Ñта текуће датотеке. -.TP -.I %b -Ðазив текуће датотеке без врÑте. -.TP -.I %d -Ðазив текућег директоријума. -.TP -.I %F -Ðазив текуће датотеке у неизабраном окну. -.TP -.I %D -Ðазив директоријума у неизабраном окну. -.TP -.I %t -Тренутно означене датотеке. -.TP -.I %T -Означене датотеке у неизабраном окну. -.TP -.IR %u " и " %U -Слични макроима %t и %T, али Ñ Ñ‚Ð¾Ð¼ разликом што Ñе датотеке -одозначавају. Можете да кориÑтите овај макро једном за Ñтавку менија -или датотеку врÑта, јер при Ñледећем извршавању ниједна датотека неће -бити означена. -.TP -.IR %s " и " %S -Код изабраних датотека: означене датотеке, уколико поÑтоје. У -Ñупротном, назив текуће датотеке. -.TP -.I %cd -Ово је поÑебан макро који Ñе кориÑти за поÑтављање текућег -директоријума на директоријум задан пре макроа. Ово Ñе пре Ñвега -кориÑти као Ñпрега за -.\"LINK2" -виртуални ÑиÑтем датотека\&. -.\"Virtual File System" -.TP -.I %view -Овај макро Ñе кориÑти за покретање уграђеног прегледача. Он Ñе може -кориÑтити заÑебно, или уз аргументе. Уколико му задате аргументе, они -би требало да Ñе окруже витичаÑтим заградама. -.IP -Ðргументи Ñу Ñледећи: -.I ascii -да би Ñе захтевао режим аÑкија; -.I hex -да би Ñе захтевао хекÑадекадни режим; -.I nroff -да би Ñе наложило прегледачу да тумачи низове за полуцрна Ñлова и -подвлачење програма nroff; -.I unformatted -да би Ñе наложило прегледачу да не тумачи наредбе nroff\-а за полуцрна -Ñлова и подвлачење. -.TP -.I %% -Знак % -.TP -.I %{неки текÑÑ‚} -Пита за замену. Приказује Ñе прозор за ÑƒÐ½Ð¾Ñ Ð° текÑÑ‚ унутар витичаÑтих -заграда Ñе кориÑти као одзивник. Макро Ñе замењује текÑтом који је -унео кориÑник. КориÑник може да притиÑне таÑтере ESC или F10 за -поништавање. Овај макро још увек не ради у наредбеном реду. -.TP -.I %var{ENV:подраз} -Уколико променљива љуÑке -.I ENV -није поÑтављена, кориÑти Ñе вредноÑÑ‚ -.IR "подраз". -Иначе, кориÑти Ñе вредноÑÑ‚ променљиве -.IR "ENV". -.\"NODE " The subshell support" -.SH " Подршка за подљуÑке" -Подршка за подљуÑке је избор у време превођења програма; она ради Ñа -љуÑкама bash, tcsh и zsh. -.PP -Када Ñе код подљуÑке покрене, Поноћни наредник ће зачети упоредни -примерак љуÑке (оне задане у променљивој -.BR "SHELL", -а ако она није задана, онда оне у датотеци /etc/passwd) и покренути га -у пÑеудотерминалу; умеÑто Ñе да покреће нова љуÑка Ñваки пут при -извршењу наредбе, наредба ће бити проÑлеђена подљуÑци као да Ñте је ви -укуцали. Ово вам омогућава и да мењате променљиве љуÑке, кориÑтите -функције љуÑке и задајете надимке који ће важити до излаÑка из -Поноћног наредника. -.PP -Уколико кориÑтите љуÑку -.BR "bash", -можете да задате наредбе које Ñе извршавају при покретању подљуÑке у -вашој датотеци ~/.local/share/mc/bashrc а поÑебне мапе таÑтатуре у датотеци -~/.local/share/mc/inputrc. -КориÑници љуÑке -.B tcsh -могу да задају наредбе које Ñе извршавају при покретању у датотеци -~/.local/share/mc/tcshrc. -.PP -При употреби кода подљуÑке, можете било када да обуÑтавите апликације -пречицом C\-o и вратите Ñе у Поноћног наредника; уколико Ñте обуÑтавили -апликацију, нећете моћи да Ñе покрећете друге Ñпољашње наредбе Ñве док -не завршите рад у апликацији коју Ñте обуÑтавили. -.PP -Додатна одлика употребе подљуÑки је да Ñе за одзивник који приказује -Поноћни наредник кориÑти иÑти одзивник који кориÑтите у љуÑци. -.PP -Одељак -.\"LINK2" -ИЗБОРИ -.\"OPTIONS" -Ñадржи више информација о томе како можете да управљате кодом -подљуÑки. -.\"NODE "Chmod" -.SH "Промена дозвола" -Прозор `Промена дозвола' Ñе кориÑти за промену битова атрибута групе -датотека и директоријума. Он Ñе може покренути пречицом C\-x c. -.PP -Прозор `Промена дозвола' Ñе ÑаÑтоји из два дела \- -.I Дозволе -и -.IR Датотека . -.PP -У одељку Датотека Ñу приказани назив датотеке или директоријума и -њене дозволе у окталном облику, као и њен влаÑник и група. -.PP -У одељку Дозволе поÑтоји низ кућица које одговарају битовима атрибута -датотеке. При промени битова атрибута, видећете да Ñе октална вредноÑÑ‚ -у одељку Датотека мења. -.PP -Да биÑте Ñе померали између контрола (дугмади и кућица), кориÑтите -.I таÑтере Ñа Ñтрелицама -или таÑтер -.IR "`Tab'". -Да биÑте променили Ñтање кућица или изабрали дугме кориÑтите -.I размакницу. -Такође можете да кориÑтите пречице Ñа дугмади да биÑте их брже -активирали. Пречице Ñу приказане у виду иÑтакнутих Ñлова на дугмадима. -.PP -Да биÑте поÑтавили битове атрибута, кориÑтите таÑтер `Enter'. -.PP -При раду Ñа групом датотека или директоријума, потребно је Ñамо да -притиÑнете таÑтер миша када је показивач над битовима које желите да -поÑтавите или очиÑтите. Када Ñте изабрали битове које желите да -промените, изаберите једно од дугмади (ПоÑтави означене или ОчиÑти -означене). -.PP -Ðа крају, да биÑте атрибуте поÑтавили доÑловно на оне које Ñте задали, -можете да кориÑтите дугме -.B [ПоÑтави Ñве] -које ће радити над Ñвим означеним датотекама. -.PP -.B [Све означене] -поÑтавља Ñамо означене атрибуте за Ñве изабране датотеке -.PP -.B [ПоÑтави означене] -поÑтавља означене битове у атрибутима Ñвих изабраних датотека -.PP -.B [ОчиÑти означене] -чиÑти означене битове у атрибутима Ñвих изабраних датотека -.PP -.B [ПоÑтави] -поÑтавља атрибуте једне датотеке -.PP -.B [Поништи] -поништава наредбу промене дозвола -.\"NODE "Chown" -.SH "Промена влаÑника" -Ðаредба промене влаÑника Ñе кориÑти да би Ñе променио влаÑник/група -датотеке. Пречица за ову наредбу је C\-x o. -.\"NODE "Advanced Chown" -.SH "Ðапредна промена влаÑника" -Ðаредба Ðапредна промена влаÑника предÑтавља комбинацију наредби -.\"LINK2" -Промена дозвола -.\"Chmod" -и -.\"LINK2" -Промена влаÑника -.\"Chown" -у један прозор. Можете да одједном промените дозволе и влаÑника/групу -датотека. -.\"NODE "File Operations" -.SH "Операције над датотекама" -При копирању, премештању или бриÑању датотека Поноћни наредник -приказује дијалог операција над датотекама. Он приказује датотеке које -Ñе тренутно обрађују и проценат текуће датотеке који је обрађен. Ред -Ñа бројем приказује колико је означених датотека обрађено. Ред Ñа -бајтовима приказује обрађени проценат укупне величине означених -датотека. Уколико је брбљивоÑÑ‚ иÑкључена, неће бити приказани редови -датотеке и бајтова. -.PP -У дну дијалога поÑтоје два дугмета. ПритиÑком на дугме ПреÑкочи, -оÑтатак текуће датотеке ће бити преÑкочен. ПритиÑком на дугме Прекини, -цела операција ће бити прекинута а оÑтале датотеке преÑкочене. -.PP -ПоÑтоје још три друга дијалога које можете да покренете током -операција Ñа датотекама. -.PP -Дијалог грешке Ð²Ð°Ñ Ð¾Ð±Ð°Ð²ÐµÑˆÑ‚Ð°Ð²Ð° о врÑти грешке и Ñадржи три избора. -Обично ћете бирати дугме ПреÑкочи да биÑте преÑкочили датотеку или -дугме Прекини да биÑте прекинули целокупну операцију. Можете такође да -изаберете дугме Понови уколико Ñте проблем решили Ñа другог терминала. -.PP -Дијалог замене Ñе приказује када покушате да копирате или премеÑтите -датотеку преко поÑтојеће датотеке. Дијаог приказује датуме и величине -обеју датотека. ПритиÑните дугме Да како биÑте препиÑали датотеку, -дугме Ðе како биÑте преÑкочили датотеку, дугме Све да биÑте препиÑали -Ñве датотеке, дугме Ðишта да не препишете ниједну датотеку а дугме -Ðжурирај да биÑте препиÑали датотеку ако је изворна датотека новија од -одредишне. Можете да прекинете целу операцију притиÑком на дугме -Прекини. -.PP -Дијалог рекурзивног бриÑања Ñе приказује када покушате да обришете -директоријум који није празан. ПритиÑните дугме Да како биÑте -рекурзивно обриÑали директоријум, дугме Ðе како биÑте преÑкочили -директоријум, дугме Све како биÑте обриÑали Ñве директоријуме а дугме -Ðишта како биÑте преÑкочили Ñве непразне директоријуме. Можете да -прекинете целу операцију притиÑком на дугме Прекини. Уколико изаберете -дугме Да или Све, бићете упитани за потврду. ПритиÑните Да Ñамо -уколико Ñте заиÑта уверени да желите да рекурзивно бришете тај -директоријум. -.PP -Уколико Ñте означили датотеке и над њима Ñпровели операцију, -одозначиће Ñе Ñамо датотеке над којима је операција уÑпела. Датотеке -које ниÑу уÑпеле или Ñу преÑкочене оÑтају означене. -.\"NODE "Mask Copy/Rename" -.SH "Копирање/преименовање Ñа маÑком" -Операције копирања/премештања вам омогучавају да на лак начин -преноÑите називе датотека. Да биÑте то урадили, морате да задате -иÑправну изворну маÑку, и да задате неке џокерÑке знаке, обично у -наÑтавку одредишта. Све датотеке које одговарају изворној маÑци ће -бити копиране/преименоване у Ñкладу Ñа одредишном маÑком. Уколико -поÑтоје означене датотеке, биће преименоване Ñамо означене датотеке -које одговарају изворној маÑци. -.PP -ПоÑтоје и други избори које можете да поÑтавите: -.PP -.B Прати везе -.PP -одређује да ли да Ñе Ñимвезе и тврде везе из изворног директоријума (и -рекурзивно из поддиректоријума) превежу у одредишном директоријуму или -да им Ñе прекопира Ñадржај. -.PP -.B Зарони у поддиректоријуме -.PP -одређује шта Ñе ради када би требало копирати изворни директоријум, -али одредишни директоријум већ поÑтоји. Подразумевана радња је да Ñе -Ñадржај изворног директоријума копира у одредишни директоријум. -Укључивањем овог избора изворни директоријум ће копирати као -поддиректоријум одредишног директоријума. -.PP -Ðа пример, уколико желите да копирате директоријум -.I `/trla' -који Ñадржи датотеку -.I `baba' -у -.IR `/lan/trla' , -који већ поÑтоји. Подразумевано (када избор -.B Зарони у поддиректоријуме -није поÑтављен), ПРће копирати датотеку -.I `/trla/baba' -у датотеку -.IR `/lan/trla/baba' . -Укључивањем овог избора биће Ñтворен директоријум -.IR `/lan/trla/trla' , -а датотека -.I `/trla/baba' -ће бити копирана у -.IR `/lan/trla/trla/baba' . -.PP -.B Очувај атрибуте -.PP -одређује да ли да Ñе чувају дозволе, датуми и (у Ñлучају да Ñте -админиÑтратор) влаÑник изворних датотека. Ðко овај избор није -поÑтављен, поштоваће Ñе текућа вредноÑÑ‚ подразумеване маÑке (umask). -.PP -.B КориÑти обраÑце љуÑке: укључено -.PP -Када је избор ОбраÑци љуÑке укључен, можете да кориÑтите џокерÑке -знаке `*' и `?' у изворној маÑци. Они функционишу на иÑти начин као у -љуÑци. У одредишној маÑци Ñу дозвољени Ñамо џокерÑки знаци `*' и -`\\<цифра>'. Први џокерÑки знак `*' у одредишној маÑци одговара првој -џокерÑкој групи из изворне маÑке, други знак `*' одговара другој, итд. -ÐокерÑки знак `\\1' одговара првој џокерÑкој групи из изворне маÑке, -знак `\\2' другој, и тако даље до `\\9'. ÐокерÑки знак `\\0' -предÑтавља цео назив изворне датотеке. -.PP -Ево два примера: -.PP -Ðко је изворна маÑка `*.tar.gz', одредиште је `/bla/*.tgz' а датотека -која Ñе копира `foo.tar.gz', копија ће Ñе звати `foo.tgz' у -директоријуму `/bla'. -.PP -Уколико претпоÑтавимо да желите да замените оÑновни део назива и -врÑту, како би датотека `dato.c' поÑтала `c.dato' итд, било би -потребно да задате изворну маÑку `*.*' а одредишну `\\2.\\1'. -.PP -.B КориÑти обраÑце љуÑке: иÑкључено -.PP -Уколико је избор ОбраÑци љуÑке иÑкључен, ПРнеће ÑамоÑтално групиÑати -обраÑце. У изворној маÑци ћете морати да кориÑтите изразе као што је -`\\(...\\)' да биÑте задали значење за џокерÑке знаке у одредишној -маÑци. Ово је флекÑибилније, али и захтева више куцања. Иначе, -одредишне маÑке Ñу Ñличне Ñитуацији у којој Ñу обраÑци љуÑке укључени. -.PP -Ево два примера: -.PP -Ðко је изворна маÑка `^\\(.*\\)\\.tar\\.gz$', одредишна маÑка -`/lan/*.tgz' а датотеку би требало копирати у `baba.tar.gz', копија ће -Ñе наћи у `/lan/baba.tgz'. -.PP -ПретпоÑтавимо да желите да замените оÑновни назив датотеке и врÑту, -како би датотека `dato.c' поÑтала `c.dato' итд. Изворна маÑка за ово -је `^\\(.*\\)\\.\\(.*\\)$' а одредишна `\\2.\\1'. -.PP -.B Претварања великих у мала Ñлова и обрнуто -.PP -Можете и да промените да ли Ñу Ñлова мала или велика у називима -датотека. Уколико кориÑтите `\\u' или `\\l' у одредишној маÑци, -Ñледећи знак ће бити претворен у велика Ñлова или мала Ñлова, тим -редом. -.PP -Уколико кориÑтите `\\U' или `\\L' у одредишној маÑци, Ñледећи знаци ће -бити претворени у велика или мала Ñлова, тим редом, Ñве до Ñледећег -`\\E', `\\U', `\\L' или краја назива датотеке. -.PP -`\\u' и `\\l' Ñу јачи од `\\U' и `\\L'. -.PP -Ðа пример, уколико је изворна маÑка `*' (при укљученим обраÑцима -љуÑке) или `^\\(.*\\)$' (при иÑкљученим обраÑцима љуÑке) а одредишна -маÑка је `\\L\\u*', називи датотека ће бити пребачени у такве, који -имају почетно велико, а оÑтала мала Ñлова. -.PP -Можете да кориÑтите и `\\' као знак за цитирање. Ðа пример, `\\\\' је -обрнута коÑа црта а `\\*' је звездица. -.\"NODE "Internal File Viewer" -.SH "Уграђени прегледач датотека" -Уграђени прегледач датотека пружа два режима приказа: аÑки и -хекÑадекадни. Да биÑте Ñменили приказе, кориÑтите таÑтер F4. Уколико -имате инÑталиран ГÐУ\-ов програм gzip, он ће бити коришћен за -ÑамораÑпакивање датотека по потреби. -.PP -Прегледач ће покушати да кориÑти најбољи начин за приказ података који -пружа ваш ÑиÑтем или врÑта датотека. Уграђени прегледач датотека ће -тумачити неке низове ниÑки како би поÑтавио атрибуте полуцрног или -подвученог иÑпиÑа, на тај начин улепшавајући приказ ваших датотека. -.PP -У хекÑадекадном режиму могућноÑÑ‚ за претраживање прихвата текÑÑ‚ под -наводницима и конÑтантне бројеве. ТекÑÑ‚ у наводницима Ñе тражи -доÑловно, без окружујућих наводника. Сваки број предÑтавља један бајт -који Ñе тражи. Можете да мешате цитирани текÑÑ‚ Ñа конÑтантама на -Ñледећи начин: -.PP -.nf -"ÐиÑка" \-1 0xBB 012 "још текÑта" -.fi -.PP -Приметите да је 012 октални број. \-1 Ñе претвара у 0xFF. -.PP -Ево ÑпиÑка радњи које Ñу придружене таÑтерима које Поноћни наредник -прихвата у уграђеном прегледачу. -.PP -.B F1 -Покреће уграђени хипертекÑтуални прегледач помоћи. -.PP -.B F2 -Смењује режим прелома. -.PP -.B F4 -Смењује хекÑадекадни режим. -.PP -.B F5 -Иди на ред. Ово ће Ð²Ð°Ñ ÑƒÐ¿Ð¸Ñ‚Ð°Ñ‚Ð¸ за број реда и приказаће тај ред. -.PP -.B F6, /. -Претрага регуларних израза. -.PP -.B ?, -Претрага регуларних израза уназад. -.PP -.B F7 -Обична претрага / претрага у хекÑадекадном режиму. -.PP -.B C\-s, F17, n. -Покреће обичну претрагу уколико израз за претрагу није претходно -задан, а иначе налази Ñледеће задовољење. -.PP -.B C\-r. -Покреће претрагу уназад уколико израз за претрагу није претходно -задан, а иначе налази уназад Ñледеће задовољење. -.PP -.B F8 -Смењује Ñирови/рашчлањени режим: ово ће приказати датотеку онако каква -је она на диÑку или, у Ñлучају да је у датотеци mc.ext.ini задан филтар за -обраду, као излаз филтра. Текући режим је увек онај други од оног -који Ñтоји на натпиÑу дугмета, пошто Ñе на дугмету налази режим који -укључујете тим таÑтером. -.PP -.B F9 -Смењује форматирани/неформатирани режим: када је укључен форматирани -режим, прегледач ће тумачити неке низове ниÑки, како би приказао -полуцрн и подвучен текÑÑ‚ у различитим бојама. Такође, Ð½Ð°Ñ‚Ð¿Ð¸Ñ Ð´ÑƒÐ³Ð¼ÐµÑ‚Ð° -Ñадржи неукључени режим. -.PP -.B F10, Esc. -Излази из уграђеног прегледача датотека. -.PP -.B Ñледећа\-Ñтрана, размакница, C\-v. -Клиза једну Ñтрану унапред. -.PP -.B претходна\-Ñтрана, M\-v, C\-b, backspace. -Клиза једну Ñтрану уназад. -.PP -.B Ñтрелица\-наниже -Клиза један ред унапред. -.PP -.B Ñтрелица\-навише -Клиза један ред уназад. -.PP -.B C\-l -ОÑвежава екран. -.PP -.B C\-o -Прелази у подљуÑку и приказује наредбени екран. -.PP -.B "[n] m" -ПоÑтавља ознаку `n'. -.PP -.B "[n] r" -Скаче на ознаку `n'. -.PP -.B C\-f -Скаче на Ñледећу датотеку. -.PP -.B C\-b -Скаче на претходну датотеку. -.PP -.B M\-r -Смењује лењир. -.PP -Можете да Ñаопштите прегледачу датотека како да прикаже датотеку, -погледајте одељак -.\"LINK2" -уређивање датотеке врÑта\&. -.\"Edit Extension File" -.\"NODE "Internal File Editor" -.SH "Уграђени уређивач датотека" -Уграђени уређивач датотека је моћан екранÑки уређивач. Он може да -уређује датотеке величине до 64 мегабајта. Могуће је уређивати бинарне -датотеке. Уграђени уређивач датотека Ñе покреће преко таÑтера -.B F4 -уколико је избор -if the -.I use_internal_edit -поÑтављен у датотеци Ñа почетним поÑтавкама. -.PP -Одлике које Ñу тренутно подржане Ñу: копирање, премештање, бриÑање, -иÑецање, лепљење блокова; опозив таÑтер\-по\-таÑтер; падајући менији; -уметање датотека; макронаредбе; претраживање и замена регуларним -изразима; означавање текÑта уз помоћ пречице shift\-Ñтрелица (уколико -то подржава терминал); Ñмењивање уметања и препиÑивања текÑта; прелом редова; -Ñамоувлачење; подеÑива величина табулатора; иÑтицање ÑинтакÑе за разне -врÑте датотека и избор да Ñе блокови текÑта проÑлеђују наредбама -љуÑке, као што Ñу `indent' и `ispell'. -.PP -Уређивач Ñе врло лако употребљава и да биÑте га кориÑтили није вам -потребно поÑебно подучавање. Да биÑте видели која пречица шта ради, -погледајте одговарајући падајући мени. Друге пречице Ñу: таÑтери за -кретање у комбинацији Ñа таÑтером `Shift' за означавање текÑта. -.B Ctrl\-Ins -копира у датотеку -.B `mcedit.clip' -а -.B Shift\-Ins -лепи из датотеке `mcedit.clip'. -.B Shift\-Del -иÑеца у -.BR `mcedit.clip' , -а -.B Ctrl\-Del -брише означени текÑÑ‚. Такође функционише и означавање мишем, а можете, -као и обично, да заобиђете миша држећи таÑтер `shift' уз превлачење -мишем да биÑте омогућили обично терминалÑко означавање мишем. -.PP -Да биÑте задали макро, притиÑните -.B Ctrl\-R -а онда откуцајте таÑтере које желите да извршите. Када Ñте готови, -притиÑните поново -.BR Ctrl\-R . -Тада можете да доделите макро било којем таÑтеру притиÑком на тај -таÑтер. Макро ће бити извршен када притиÑнете -.B Ctrl\-A -и додељени таÑтер. Макро ће такође бити извршен ако притиÑнете таÑтере -`Meta', `Ctrl' или `Esc' Ñа додељеним таÑтером, уз уÑлов да Ñе та -пречица не кориÑти за нешто друго. Када Ñу једном задане, макронаредбе -Ñе Ñмештају у датотеку -.B ~/.local/share/mc/mcedit/mcedit.macros -у вашем домаћем директоријуму. Можете да обришете макро бриÑањем -одговарајућег реда у овој датотеци. -.PP -.B F19 -ће форматирати текући означени блок (обичан текÑÑ‚ или код у језику -.B Це -или -.B Це++ -или другом). Овим Ñе управља преко датотеке -.B %pkgdatadir%/edit.indent.rc -која ће бити копирана у -.B ~/.local/share/mc/mcedit/edit.indent.rc -у вашем домаћем директоријуму први пут када је будете кориÑтили. -.PP -Уређивач такође приказује неамеричке знаке (160 и више). При уређивању -бинарних датотека би требало да поÑтавите -.B битове приказа -на 7 битова, у менију Избори, како биÑте задржали иÑправно иÑцртавање -размацима. -.\"NODE "Completion" -.SH "Допуна" -Ðека Поноћни наредник куца меÑто ваÑ. -.PP -Ово предÑтавља покушај да Ñе изврши допуна у текÑту пре текуће -позиције. ПРће покушати допуну, Ñматрајући да је текÑÑ‚ променљива -(уколико текÑÑ‚ почиње знаком -.BR $ ), -кориÑничко име (уколико текÑÑ‚ почиње знаком -.BR ~ ), -назив домаћина (уколико текÑÑ‚ почиње знаком -.BR @ ) -или наредба (уколико Ñте у наредбеном реду, где можете да укуцате -наредбу, могуће допуне ће бити и резервиÑане речи љуÑке и уграђене -наредбе љуÑке). Уколико ништа од овога не одговара, покушаће допуну -назива датотеке. -.PP -Допуна назива датотеке, кориÑничког имена, променљивих и назива -домаћина функционише у Ñвим редовима уноÑа, док је допуна наредби -ÑпецијалноÑÑ‚ наредбеног реда. Уколико је допуна двоÑмиÑлена (поÑтоји -више различитих могућноÑти), ПРће пиÑнути а оно што ће урадити -Ñледеће завиÑи од Ñтања избора -.I Допуна: прикажи Ñве -у дијалогу -.\"LINK2" -Подешавања\&. -.\"Configuration" -Уколико је овај избор укључен, поÑле текуће позиције ће иÑкочити -ÑпиÑак Ñвих могућноÑти, и моћи ћете да изаберете иÑправну Ñтавку -таÑтерима Ñа Ñтрелицама и таÑтером -.BR Enter . -Можете и да укуцате прва Ñлова којима Ñе могућноÑти разликују једна од -друге како биÑте Ñе премеÑтили на подÑкуп Ñвих могућноÑти и допунили -што више. Уколико поново притиÑнете -.BR M\-Tab , -у ÑпиÑку ће бити приказан Ñамо подÑкуп, а иначе ће бити означена прва -Ñтавка која одговара Ñвим претходним знаковима. Чим неÑтане -двоÑмиÑленоÑти, дијалог ишчезава, али га можете Ñакрити таÑтерима за -поништавање -.BR Esc , -.B F10 -и таÑтерима Ñа Ñтрелицама налево и надеÑно. Уколико је избор -.\"LINK2" -Допуна: прикажи Ñве -.\"Configuration" -иÑкључен, дијалог ће иÑкочити Ñамо уколико притиÑнете пречицу -.B M\-Tab -по други пут; када је притиÑнете први пут ПРће Ñамо пиÑнути. -.\"NODE "Virtual File System" -.SH "Виртуални ÑиÑтем датотека" -Поноћни наредник Ñадржи Ñлој кода за приÑтуп ÑиÑтему датотека; овај -Ñлој кода Ñе назива Ñкретница виртуалног ÑиÑтема датотека. Скретница -виртуалног ÑиÑтема датотека омогућава Поноћном нареднику да ради над -датотекама који Ñе не налазе у УникÑовом ÑиÑтему датотека. -.PP -За Ñада Ñе уз Поноћног наредника иÑпоручује неколико Виртуалних -ÑиÑтема датотека (ВСД): ÑиÑтем датотека -.IR `local' , -који Ñе кориÑти за приÑтуп обичном УникÑовом ÑиÑтему датотека; ÑиÑтем -датотека -.IR ftpfs , -који Ñе кориÑти за рад Ñа датотекама на удаљеним ÑиÑтемима преко -протокола FTP; ÑиÑтем датотека -.IR tarfs , -који Ñе кориÑти за рад Ñа обичним и компримованим датотекама врÑте -`tar'; ÑиÑтем датотека -.IR undelfs , -који Ñе кориÑти за опоравак обриÑаних датотека на ÑиÑтемима датотека -`ext2' (подразумевани ÑиÑтем датотека за ÑиÑтем ГÐУ), -.I fish -(за рад Ñа датотекама преко повезивања љуÑке, као што Ñу `rsh' и -`ssh'). -.PP -Обезбеђен је и општи ÑиÑтем -.I extfs -(Ñпољашњи виртуални ÑиÑтем датотека), како би Ñе лако прошириле -могућноÑти ВСД преко ÑпиÑа и Ñпољашњег Ñофтвера. -.PP -Код Ñкретнице ВСД ће тумачити Ñве коришћене путање и уÑмеравати их на -иÑправан ÑиÑтем датотека; формати који Ñе кориÑте за Ñваки од ÑиÑтема -датотека Ñу опиÑани каÑније у њиховим одељцима. -.\"NODE " FTP File System" -.SH " СиÑтем датотека FTP\-а" -СиÑтем датотека FTP\-а (ftpfs) вам омогућава да радите Ñа датотекама на -удаљеним машинама. Да биÑте га кориÑтили, можете да кориÑтите Ñтавку -менија -.I Повезивање FTP\-ом -или да директно поÑтавите ваш текући директоријум преко наредбе -.I cd (пром.дир.) -на путању која изгледа овако: -.PP -.I ftp://[!][кориÑник[:лозинка]@]машина[:порт]/[удаљени\-дир] -.PP -Елементи -.IR кориÑник , -.I порт -и -.I удаљени\-дир -Ñу необавезни. Уколико задате елемент -.IR кориÑник , -Поноћни наредник ће Ñе пријавити на удаљену машину под тим кориÑничким -именом, а иначе ће кориÑтити анонимну пријаву или кориÑничко име из -датотеке -.IR "~/.netrc". -Ðеобавезни елемент -.I лозинка -предÑтавља лозинку која Ñе кориÑти за повезивање. Ðе препоручује Ñе -употреба лозинке у називу директоријума ВСД\-а, јер Ñе она онда може -појавити на екрану као обичан текÑÑ‚ и може да буде Ñачувана у иÑторију -директоријума. -.PP -Да биÑте укључили поÑредника за FTP, Ñтавите -.B ! -(узвичник) пре назива домаћина. -.PP -Примери: -.PP -.nf - ftp://ftp.nuclecu.unam.mx/linux/local - ftp://tsx\-11.mit.edu/pub/linux/packages - ftp://!iza.zast.zida.edu.cs/pub - ftp://guest@udaljeni\-domacin.com:40/pub - ftp://miguel:xxx@server/pub -.fi -.PP -Молим да ради избора ftpfs\-а погледате дијалог -.\"LINK2" -Виртуални ÑиÑтем датотека\&. -.\"Virtual FS" -.\"NODE " Tar File System" -.SH " СиÑтем датотека врÑте `Tar'" -СиÑтем датотека врÑте `tar' вам омогућава приÑтуп Ñамо за читање вашим -датотекама врÑте `tar' преко наредбе `chdir' (промена текућег -директоријума). Да биÑте прешли у датотеку врÑте `tar', можете да -кориÑтите наредбу промене текућег директоријума уз Ñледећу ÑинтакÑу: -.PP -.I /datoteka.tar/utar://[дир\-унутар\-дат] -.PP -Датотека `mc.ext.ini' већ Ñадржи пречицу за датотеке врÑте `tar', што -значи да можете Ñамо показати на датотеку врÑте `tar' и притиÑнути -`Return' или `Enter' да биÑте ушли у њу; погледајте одељак -.\"LINK2" -Уређивање датотеке врÑта -.\"Edit Extension File" -за детаље како да ово обавите. -.PP -Примери: -.PP -.nf - mc\-3.0.tar.gz/utar://mc\-3.0/vfs - /ftp/GCC/gcc\-2.7.0.tar/utar:// -.fi -.PP -ПоÑледњи ред задаје пуну путању архиве врÑте `tar'. -.\"NODE " FIle transfer over SHell filesystem" -.SH " СиÑтем датотека FISH (Ð¿Ñ€ÐµÐ½Ð¾Ñ Ð´Ð°Ñ‚Ð¾Ñ‚ÐµÐºÐ° преко љуÑке)" -СиÑтем датотека fish је ÑиÑтем датотека заÑнован на мрежи који вам -омогућава да радите Ñа датотекама на удаљеној машини, као да Ñу оне у -локалу. Да биÑте ово кориÑтили, друга Ñтрана мора да има покренут -Ñервер `fish', или да поÑедује љуÑку ÑаглаÑну Ñа љуÑком `bash'. -.PP -Да биÑте Ñе повезали на удаљену машину, потребно је Ñамо да поÑтавите -текући директоријум на поÑебан директоријум чији назив је у Ñледећем -формату: -.PP -.I sh://[кориÑник@]машина[:избори]/[удаљени\-дир] -.PP -Елементи -.IR кориÑник , -.I избори -и -.I удаљени\-дир -Ñу необавезни. Уколико задате елемент -.IR кориÑник , -Поноћни наредник ће покушати да Ñе пријави на удаљену машину под тим -кориÑничким именом, а иначе ће кориÑтити ваше кориÑничко име. -.PP -Могући -.I избори -Ñу `C' \- кориÑти компримовање и `rsh' \- кориÑти `rsh' умеÑто `ssh'. -Уколико је приÑутан елемент -.IR удаљени\-дир , -ваш текући директоријум на удаљеној машини ће бити поÑтављен на тај -директоријум. -.PP -Примери: -.PP -.nf - sh://onlyrsh.mx:r/linux/local - sh://joe@hocu.komprimovanje.edu:C/private - sh://joe@nekomprimovan.ssh.edu/private -.fi -.\"NODE " Undelete File System" -.SH " СиÑтем датотека за одбриÑање" -Ðа ГÐУ\-овим ÑиÑтемима, уколико Ñте од програма `configure' захтевали -да кориÑти могућноÑти одбриÑања на ÑиÑтему датотека `ext2fs', моћи -ћете да кориÑтите ÑиÑтем датотека за одбриÑање. Опоравак обриÑаних -датотека је могућ Ñамо на ÑиÑтемима датотека врÑте `ext2'. СиÑтем -датотека за одбриÑање је Ñамо Ñпрега за добављање Ñвих обриÑаних -датотека на ÑиÑтему датотека `ext2fs' библиотеке `ext2fs'\-а. Он -омогућава издвајање изабраних датотека у обичну партицију. -.PP -Да биÑте кориÑтили овај ÑиÑтем датотека, морате да поÑтавите текући -директоријум на поÑебни назив датотеке који Ñе ÑаÑтоји од префикÑа -`undel://' и назива датотеке у којој Ñе налази ÑиÑтем датотека. -.PP -Ðа пример, да биÑте опоравили обриÑане датотеке на другој партицији -првог Ñкази диÑка под ГÐУ\-ом, можете да кориÑтите Ñледећу путању: -.PP -.nf - undel://sda2 -.fi -.PP -Учитавање тражених података пре него што можете да почнете разгледање -датотека може потрајати. -.\"NODE " EXTernal File System" -.SH " Спољашњи ÑиÑтеми датотека (EXTFS)" -.B extfs -вам омогућавају да на лак начин Ñпојите бројне одлике и ÑиÑтеме -датотека Ñа ГÐУ\-овим Поноћним наредником, пишући ÑпиÑе. -.PP -СиÑтеми датотека `extfs'\-а Ñе могу поделити у две категорије: -.PP -1. СамоÑтални ÑиÑтеми датотека, који ниÑу повезани ни Ñа једном -Ñтварном датотеком. Они предÑтављају извеÑне податке за цео ÑиÑтем у -виду Ñтабла директоријума. Можете их позвати куцајући -.RI ' `cd називÑд://' ' -где је `називÑд' кратки назив ÑиÑтема `extfs'\-а (погледајте доле). -Примери оваквих ÑиÑтема датотека Ñу `audio' (наводи звучне траке на -CD\-овима) или `apt' (ÑпиÑак Ñвих Дебијанових пакета на ÑиÑтему). -.PP -Ðа пример, да биÑте добили ÑпиÑак трака врÑте `CD\-Audio' Ñа вашег -уређаја за CD\-ROM\-ове, можете да откуцате -.PP -.nf - cd audio:// -.fi -.PP -2. `Ðрхивни' ÑиÑтеми датотека (као што Ñу `rpm', `patchfs' и други), -који предÑтављају Ñадржај датотеке у виду Ñтабла директоријума. Они Ñе -могу ÑаÑтојати од `Ñтварних' датотека, које Ñу компримоване у архиву -(`urar', `rpm') или виртуалних датотека, као што Ñу поруке у -Ñандучићима (`mailfs') или делови закрпе (`patchfs'). Да биÑте -приÑтупили таквим ÑиÑтемима датотека, требало би да на назив архиве -надовежете -.RI ` називÑд://. ' -Приметите да Ñама архива може да буде у другом виртуалном ÑиÑтему -датотека. -.PP -Ðа пример, да биÑте приказали Ñадржај архиве врÑте `zip' под називом -`dokumenti.zip', откуцајте -.PP -.nf - cd dokumenti.zip/uzip:// -.fi -.PP -Ðа више начина, можете да Ñматрате да Ñу Ñпољашњи ÑиÑтеми датотека -као и Ñви оÑтали директоријуми. Ðа пример, можете их додати у брзи -ÑпиÑак или прећи у њих из иÑторије директоријума. Важно огреничење је -то што не можете да покрећете наредбе љуÑке из Ñпољашњих ÑиÑтема -датотека као на другим не\-локалним ВСД. -.PP -Општи ÑпиÑи Ñпољашњих ÑиÑтема датотека који Ñе иÑпоручују уз Поноћног -наредника Ñу: -.TP -.B a -приÑтупа диÑкети ДОС\-а/ВиндовÑа `A:' -.RI ( "`cd a://'" ). -.TP -.B apt -љуÑка за Дебијанов ÑиÑтем управљања пакетима `APT' -.RI ( "`cd apt://'" ). -.TP -.B audio -Ñкидање и пуштање звучних CD\-ова -.RI ( "`cd audio://'" -или -.IR "`cd device/audio://'" ). -.TP -.B bpp -пакет диÑтрибуције ГÐУ/ЛинукÑа Лош Пингвин (Bad Penguin) -.IR ( "`cd file.bpp/bpp://'" ). -.TP -.B deb -пакет диÑтрибуције ГÐУ/ЛинукÑа Дебијан -.RI ( "`cd file.deb/deb://'" ). -.TP -.B dpkg -инÑталирани пакети Дебијановог ГÐУ/ЛинукÑа -.RI ( "`cd deb://'" ). -.TP -.B hp48 -преглед и копирање датотека на/Ñа калкулатора ХП48 -.RI ( "`cd hp48://'" ). -.TP -.B lslR -разгледање ÑпиÑкова `lslR' који Ñе могу наћи на многим Ñерверима FTP\-а -.RI ( "`cd filename/lslR://'" ). -.TP -.B mailfs -подршка за Ñандучиће електронÑке поште врÑте `mbox' -.RI ( "`cd mailbox/mailfs://'" ). -.TP -.B patchfs -Ñпољашњи ÑиÑтем датотека за рад Ñа унификованим и контекÑтним -датотекама врÑте `diff' -.RI ( "`cd filename/patchfs://'" ). -.TP -.B rpm -пакет врÑте `RPM' -.RI ( "`cd filename/rpm://'" ). -.TP -.B rpms -управљање базом пакета врÑте `RPM' -.RI ( "`cd rpms://'" ). -.TP -.B ulha, urar, uzip, uzoo, uar, uha -архивари -.RI ( "`cd архива/xxxx://'" -где xxxx може да буде: -.IR ulha , -.IR urar , -.IR uzip , -.IR uzoo , -.IR uar , -.IR uha ). -.PP -Можете да придружите врÑту датотеке одређеном Ñпољашњем ÑиÑтему -датотека, као што је то опиÑано у одељку -.\"LINK2" -уређивање датотеке врÑта\&. -.\"Edit Extension File" -Ево примера Ñтавке за Дебијанове пакете: -.PP -.nf - regex/\.deb$ - Отвори=%cd %p/deb:// -.fi -.\"NODE "Colors" -.SH "Боје" -Поноћни наредник ће покушати да открије да ли ваш терминал подржава -боје преко базе терминала и назива вашег терминала. Понекад Ñе он може -збунити, па ћете можда желети да захтевате режим у боји или да -иÑкључите режим у боји преко прекидача `\-c' и `\-b', тим редом. -.PP -Уколико је програм преведен Ñа управитељом екрана `S\-Lang' умеÑто -`ncurses', ПРће такође проверити да ли је поÑтављена променљива -.B COLORTERM, -која има Ñличан ефекат као прекидач `\-c'. -.PP -Можете да задате терминале који увек захтевају режим у боји додавањем -променљиве -.I color_terminals -у одељак `Colors' датотеке Ñа почетним поÑтавкама. Ово ће Ñпречити -Поноћног наредника да покуша да открије да ли ваш терминал подржава -боје. Ево примера: -.PP -.nf -[Colors] -color_terminals=linux,xterm -color_terminals=terminal\-name1,terminal\-name2... -.fi -.PP -Програм Ñе може превеÑти и Ñа подршком за `ncurses' и `S\-Lang'; -`ncurses' нема начина да захтева режим у боји: он кориÑти Ñамо податке -из базе терминала. -.PP -Поноћни наредник поÑедује начин да промени подразумеване боје. За Ñада -Ñе боје подешавају преко променљиве окружења -.B MC_COLOR_TABLE -или одељка `Colors' у датотеци Ñа почетним поÑтавкама. -.PP -У одељку `Colors', подразумевана мапа боја Ñе учитава из променљиве -.IR base_color . -Можете да задате другачију мапу боја терминала коришћењем назива -терминала као кључ у овом одељку. Ðа пример: -.PP -.nf -[Colors] -base_color= -xterm=menu=magenta:marked=,magenta:markselect=,red -.fi -.PP -Формат задавања боје је Ñледећи: -.PP -.nf - <кључнареч>=<бојатекÑта>,<бојапозадине>:<кључнареч>= ... -.fi -.PP -Боје Ñу необавезне, док кључне речи могу бити: normal, selected, -marked, markselect, errors, input, reverse, gauge. Боје менија Ñу: -menunormal, menusel, menuhot, menuhotsel, menuinactive. Боје дијалога Ñу: -dnormal, dfocus, dhotnormal, dhotfocus. Боје помоћи Ñу: helpnormal, helpitalic, -helpbold, helplink, helpslink. Боја прегледача је: viewunderline. -ПоÑебне боје за иÑтицање Ñу: executable, directory, link, stalelink, -device, special, core. Viewer colors are: viewnormal, viewbold, viewunderline, -viewselected. Боје уређивача Ñу: editnormal, editbold, editmarked, editnonprintable. -.PP -.I input -одређује боју редова за ÑƒÐ½Ð¾Ñ ÐºÐ¾Ñ˜Ð¸ Ñе кориÑте у дијалозима упита. -.PP -.I gauge -одређује боју иÑпуњеног дела реда напретка, који Ñе кориÑти за приказ -напретка операција над датотекама, као што је копирање. -.PP -Дијалози кориÑте Ñледеће боје: -.I dnormal -Ñе кориÑти за обичан текÑÑ‚, -.I dfocus -Ñе кориÑти за тренутно изабрану контролу, -.I dhotnormal -Ñе кориÑти за разликовање боје пречице у обичним контролама, а боја -.I dhotfocus -Ñе кориÑти за боју иÑтицања у тренутно изабраној контроли. -.PP -Менији кориÑте иÑту шему, али кориÑте изнаке menunormal, menusel, menuhot, menuhotsel -и menuinactive. -.PP -Помоћ кориÑти Ñледеће боје: -.I helpnormal -Ñе кориÑти за обичан текÑÑ‚, -.I helpitalic -Ñе кориÑти за текÑÑ‚ који је у Ñтраници упутÑтва иÑтакнут курзивом, -.I helpbold -Ñе кориÑти за текÑÑ‚ који је у Ñтраници упутÑтва иÑтакнут полуцрним -Ñловима, -.I helplink -Ñе кориÑти за хипервезе које ниÑу изабране, а -.I helpslink -Ñе кориÑти за изабране хипервезе. -.PP -ПоÑебне боје иÑтицања одређују како Ñу датотеке приказане у Ñлучају да -је укључено иÑтицање датотека (погледајте одељак -.\"LINK2" -Изглед\&). -.\"Layout" -.I directory -Ñе кориÑти за директоријуме или Ñимболичке везе ка директоријумима; -.I executable -за извршне датотеке; -.I link -Ñе кориÑти за Ñимболичке везе које ниÑу ни бајате нити указују на -директоријум; -.I stalelink -Ñе кориÑти за бајате Ñимболичке везе; -.I device -\- знаковни уређаји и блок уређаји; -.I special -Ñе кориÑти за поÑебне датотеке, као што Ñу цеви и утичнице; -.I core -је за датотеке Ñржи. -.PP - -Могуће боје Ñу: black, gray, red, brightred, green, -brightgreen, brown, yellow, blue, brightblue, magenta, brightmagenta, -cyan, brightcyan, lightgray и white. ПоÑтоји и поÑебна кључна реч за -провидну позадину. Она глаÑи: `default' и може да Ñе кориÑти Ñамо за -боју позадине. Ðа пример: -.PP -.nf -[Colors] -base_color=normal=white,default:marked=magenta,default -.fi -.\"NODE "Special Settings" -.SH "ПоÑебна подешавања" -Већина подешавања Поноћног наредника Ñе могу изменити из менија. -Међутим, поÑтоји нешто поÑтавки које Ñе могу изменити Ñамо уређивањем -датотеке поÑтавки. -.PP -Ове променљиве Ñе могу подеÑити у вашој датотеци `~/.config/mc/ini': -.TP -.I clear_before_exec -Подразумевано ће пре извршавања наредбе Поноћни наредник очиÑтити -екран. Уколико желите да видите излаз наредби на дну екрана, уредите -вашу датотеку `~/.config/mc/ini' и промените вредноÑÑ‚ поља -`clear_before_exec' на 0. -.TP -.I confirm_view_dir -Када притиÑнете таÑтер F3 над директоријумом, подразумевано ће ПРући -у тај директоријум. Уколико је овај прекидач поÑтављен на 1, ПРће -питати за потврду пре промене директоријума уколико Ñте означили -датотеке. -.TP -.I ftpfs_retry_seconds -Ова вредноÑÑ‚ предÑтавља број Ñекунди чекања пре покушаја поновног -повезивања Ñа Ñервером FTP\-а који одбија пријаву. Уколико је ова -вредноÑÑ‚ нула, пријављивање Ñе неће поново покушавати. -.TP -.I max_dirt_limit -Задаје колико највише ажурирања екрана може бити преÑкочено у -уграђеном прегледачу датотека. Ова вредноÑÑ‚ подразумевано није -значајна, јер код ÑамоÑтално подешава број преÑкочених ажурирања у -Ñкладу Ñа количином примљених притиÑака на таÑтере. Међутим, на веома -Ñпорим машинама или терминалима Ñа брзим Ñамопонављањем таÑтера, -превиÑока вредноÑÑ‚ ће дати Ñкоковита ажурирања екрана. -.IP -Изгледа да поÑтављање променљиве `max_dirt_limit' на 10 даје најбоље -понашање, и то је подразумевана вредноÑÑ‚. -.TP -.I mouse_move_pages -Одређује да ли Ñе клизање мишем одвија по Ñтранама или ред по ред у -окнима. -.TP -.I mouse_move_pages_viewer -Одређује да ли Ñе клизање мишем одвија по Ñтранама или ред по ред у -уграђеном прегледачу датотека. -.TP -.I old_esc_mode -Подразумевано ће Поноћни наредник Ñматрати да је таÑтер `ESC' Ð¿Ñ€ÐµÑ„Ð¸ÐºÑ -за пречице (old_esc_mode=0). Уколико је овај избор укључен -(old_esc_mode=1), таÑтер `ESC' ће Ñе понашати као Ð¿Ñ€ÐµÑ„Ð¸ÐºÑ Ð·Ð° пречице -током једне Ñекунде, а уколико нови притиÑци на таÑтере ниÑу -региÑтровани, таÑтер `ESC' ће бити протумачен као пречица за -поништавање (`ESC ESC'). -.TP -.I only_leading_plus_minus -Дозвољава поÑебно третирање знакова `+', `\-', `*' у наредбеном реду -(избор, одизбор, обртање избора) у Ñлучају да је наредбени ред празан. -Онда нећете морати да цитирате те знаке уÑред наредбеног реда. Са -друге Ñтране, нећете моћи ни да их кориÑтите за промену избора уколико -наредбени ред није празан. -.TP -.I panel_scroll_pages -Уколико је ово укључено (подразумевано), окно ће клизати за пола -приказа када курÑор доÑтигне крај или почетак окна, а иначе ће Ñамо -клизати за једну датотеку. -.TP -.I show_output_starts_shell -Ова променљива ради Ñамо уколико не кориÑтите подршку за подљуÑке. -Када кориÑтите пречицу `C\-o' да биÑте прешли на кориÑнички екран, -уколико је ово подешено, добићете Ñвежу љуÑку. Иначе ће Ð²Ð°Ñ Ð¿Ñ€Ð¸Ñ‚Ð¸Ñак -на било који таÑтер довеÑти у Поноћног наредника. -.TP -.I torben_fj_mode -Уколико је овај прекидач поÑтављен, онда ће таÑтери `home' и `end' -радити мало другачије над окнима; умеÑто да Ñе избор помера на прву и -поÑледњу датотеку у окну, таÑтери ће имати Ñледећи ефекат: -.IP -ТаÑтер `home' ће: ићи на Ñредњи ред, уколико Ñе налазимо иÑпод њега; -иначе ће ићи на први ред, оÑим уколико Ñе већ налазимо у првом реду, а -тада ће ићи на прву датотеку у окну. -.IP -ТаÑтер `end' Ñе Ñлично понаша: ићи ће доле на Ñредњи ред, уколико Ñе -налазимо на њему; иначе ће ићи на поÑледњи ред, оÑим уколико Ñмо већ у -поÑледњем реду, а тада ће ићи на поÑледњи назив датотеке у окну. -.TP -.I use_file_to_guess_type -Уколико је ова променљива укључена (подразумевано), ПРће покренути -наредбу `file' за одређивање врÑте датотека које Ñу задане у -.\"LINK2" -датотеци `mc.ext.ini'\&. -.\"Edit Extension File" -.TP -.I xtree_mode -Уколико је ова променљива укључена (подразумевано је иÑкључена), -приликом разгледања ÑиÑтема датотека у окну које је у режиму Стабла, -друго окно ће Ñе аутоматÑки поново учитати у изабраном директоријуму. -.\"NODE "Terminal databases" -.SH "Базе терминала" -Поноћни наредник обезбеђује начин да поправи вашу ÑиÑтемÑку базу -терминала без потребе за админиÑтраторÑким привилегијама. Поноћни -наредник претражује ÑиÑтемÑку датотеку Ñа почетним поÑтавкама -(датотеку `mc.lib' у библиотечком директоријуму Поноћног наредника), -онда одељак `terminal:назив\-вашег\-терминала' у датотеци `~/.config/mc/ini', -и онда одељак `terminal:general', чији Ñваки ред Ñадржи Ñимбол таÑтера -кога желите да задате, поÑле кога Ñледи знак једнакоÑти и задавање -таÑтера. Можете да кориÑтите поÑебан облик `\\e' да биÑте предÑтавили -наведени знак и `^x' да биÑте предÑтавили знак `control\-x'. -.PP -ДоÑтупни Ñимболи таÑтера Ñу: -.PP -.nf -f0 до f20 ФункцијÑки таÑтери f0\-f20 -bs backspace -home таÑтер `home' -end таÑтер `end' -up таÑтер `Ñтрелица навише' -down таÑтер `Ñтрелица наниже' -left таÑтер `Ñтрелица налево' -right таÑтер `Ñтрелица надеÑно' -pgdn таÑтер `page down' -pgup таÑтер `page up' -insert знак `insert' -delete знак `delete' -complete за допуну -.fi -.PP -Ðа пример, како биÑте задали да таÑтер `insert' буде `Escape + [ + O + -p', можете да поÑтавите ово у датотеци Ñа почетним поÑтавкама: -.PP -.nf -insert=\\e[Op -.fi -.PP -Симбол таÑтера -.I complete -предÑтавља низове цитирања који Ñе кориÑте за поÑтупак допуне; ово Ñе -подразумевано покреће Ñа M\-tab, али можете да задате и друге пречице -за иÑту радњу (на оним таÑтатурама Ñа тонама финих и неиÑкоришћених -таÑтера). -.SH "" -.\"NODE "FILES" -.SH "ДÐТОТЕКЕ" -Програм ће добавити Ñве Ñвоје податке у одноÑу на променљиву окружења -.BR MC_DATADIR . -Ðко ова променљива није поÑтављена, биће употребљен директоријум -%pkgdatadir%. -.PP -.I %pkgdatadir%/help/mc.hlp -.IP -Датотека помоћи за програм. -.PP -.I %pkgdatadir%/mc.ext.ini -.IP -Подразумевана ÑиÑтемÑка датотека врÑта. -.PP -.I ~/.config/mc/mc.ext.ini -.IP -КориÑничке датотеке врÑта, подешавања прегледача и уређивача. Уколико -поÑтоје, оне заобилазе ÑиÑтемÑке датотеке. -.PP -.I %pkgdatadir%/mc.ini -.IP -Подразумевана ÑиÑтемÑка подешавања Поноћног наредника; кориÑте Ñе Ñамо -у Ñлучају да кориÑник нема ÑопÑтвену датотеку ~/.config/mc/ini. -.PP -.I %pkgdatadir%/mc.lib -.IP -Глобалне поÑтавке Поноћног наредника. ПоÑтавке из ове датотеке Ñе -одноÑе на Ñве кориÑнике без обзира на то да ли они имају Ñвоје -датотеке ~/.config/mc/ini или не. За Ñада, из датотеке mc.lib Ñе учитавају -Ñамо -.\"LINK2" -поÑтавке терминала\&. -.\"Terminal databases" -.PP -.I ~/.config/mc/ini -.IP -КориÑничка подешавања. Ðко је ова датотека приÑутна, подешавања Ñе -учитавају из ње умеÑто из ÑиÑтемÑке почетне датотеке. -.PP -.I %pkgdatadir%/hints/mc.hint -.IP -Ова датотека Ñадржи Ñавете (колачиће) који Ñе приказују у програму. -.PP -.I %pkgdatadir%/mc.menu -.IP -Ова датотека Ñадржи подразумевани мени програма за цео ÑиÑтем. -.PP -.I ~/.config/mc/menu -.IP -КориÑнички мени програма. Ðко је ова датотека приÑутна, онда Ñе она -кориÑти умеÑто менија програма ÑиÑтема. -.PP -.I ~/.cache/mc/Tree -.IP -СпиÑак директоријума за одлику `Ñтабло директоријума' и -директоријумÑки поглед. -.PP -.I ./.mc.menu -.IP -Локални кориÑнички мени. Ðко је ова датотека приÑутна, онда Ñе она -кориÑти умеÑто менија програма дома или ÑиÑтема. -.\"SKIP_SECTION" -.SH "ЛИЦЕÐЦÐ" -Овај програм Ñе раÑподељује под одредбама ГÐУ\-ове опште јавне лиценце -коју је објавила Задужбина за Ñлободни Ñофтвер. Погледајте уграђену -помоћ за детаље о Лиценци и одÑуÑтву гаранције. -.\"NODE "AVAILABILITY" -.SH "ДОСТУПÐОСТ" -Ðајновија верзија овог програма Ñе може наћи на адреÑи -http://ftp.midnight\-commander.org/. -.\"NODE "SEE ALSO" -.SH "ВИДИТЕ И" -ed(1), gpm(1), terminfo(1), view(1), sh(1), bash(1), -tcsh(1), zsh(1). -.PP -.nf -Страница Поноћног наредника на Међународној мрежи: - https://www.midnight\-commander.org/ -.fi -.\"NODE "AUTHORS" -.SH "ÐУТОРИ" -Ðутори и дародавци Ñу наведени у датотеци AUTHORS из изворне -диÑтрибуције. -.\"NODE "BUGS" -.SH "ГРЕШКЕ" -Погледајте датотеку TODO из диÑтрибуције за информације о томе шта -оÑтаје да Ñе уради. -.PP -Ðко желите да пријавите проблем у вези Ñа програмом, молим да пошаљете -епиÑмо на Ñледећу адреÑу: mc\-devel@lists.midnight-commander.org. -.PP -ДоÑтавите детаљан Ð¾Ð¿Ð¸Ñ Ð³Ñ€ÐµÑˆÐºÐµ, верзију програма коју кориÑтите -.RI ( "mc \-V" -приказује овај податак) и оперативни ÑиÑтем под којим покрећете -програм. Ðко програм крахира, било би нам кориÑно да нам пошаљете мапу -Ñтога (stack trace). diff --git a/recipes/wip/files/mc/source/lib/Makefile.am b/recipes/wip/files/mc/source/lib/Makefile.am deleted file mode 100644 index 9e0bbbb775..0000000000 --- a/recipes/wip/files/mc/source/lib/Makefile.am +++ /dev/null @@ -1,80 +0,0 @@ -SUBDIRS = event filehighlight mcconfig search skin tty vfs strutil widget . - -if ENABLE_MCLIB - LIB_VERSION=`echo $(LIBMC_VERSION) | \ - tr '.' ' '| \ - while read v1 v2 v3; do echo $$v2':'$$v3':'$$v1; done` - - AM_LDFLAGS=-no-undefined -version-info $(LIB_VERSION) -release $(LIBMC_RELEASE) - - lib_LTLIBRARIES = libmc.la -else - noinst_LTLIBRARIES = libmc.la -endif - - -SUBLIB_includes = \ - event.h event-types.h \ - filehighlight.h \ - idx.h \ - intprops-internal.h \ - intprops.h \ - mcconfig.h \ - search.h \ - skin.h \ - strutil.h \ - widget.h - -SRC_mc_utils = \ - utilunix.c \ - unixcompat.h \ - util.c util.h - - -libmc_la_SOURCES = \ - $(SUBLIB_includes) \ - $(SRC_mc_utils) \ - file-entry.h \ - fileloc.h \ - fs.h \ - hook.c hook.h \ - glibcompat.c glibcompat.h \ - global.c global.h \ - keybind.c keybind.h \ - lock.c lock.h \ - serialize.c serialize.h \ - shell.c shell.h \ - stat-size.h \ - timefmt.c timefmt.h - -if USE_MAINTAINER_MODE -libmc_la_SOURCES += logging.c logging.h -endif - -if CHARSET -libmc_la_SOURCES += charsets.c charsets.h -endif - -EXTRA_DIST = \ - stdckdint.in.h - -AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) - -libmc_la_LIBADD = \ - event/libmcevent.la \ - filehighlight/libmcfilehighlight.la \ - mcconfig/libmcconfig.la \ - search/libsearch.la \ - strutil/libmcstrutil.la \ - skin/libmcskin.la \ - tty/libmctty.la \ - vfs/libmcvfs.la \ - widget/libmcwidget.la - -libmc_la_LIBADD += $(MCLIBS) $(SLANGLIB) - -if HAVE_GMODULE - libmc_la_LIBADD += $(GMODULE_LIBS) -else - libmc_la_LIBADD += $(GLIB_LIBS) -endif diff --git a/recipes/wip/files/mc/source/lib/Makefile.in b/recipes/wip/files/mc/source/lib/Makefile.in deleted file mode 100644 index 9f5ff0190e..0000000000 --- a/recipes/wip/files/mc/source/lib/Makefile.in +++ /dev/null @@ -1,1022 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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@ -@USE_MAINTAINER_MODE_TRUE@am__append_1 = logging.c logging.h -@CHARSET_TRUE@am__append_2 = charsets.c charsets.h -@HAVE_GMODULE_TRUE@am__append_3 = $(GMODULE_LIBS) -@HAVE_GMODULE_FALSE@am__append_4 = $(GLIB_LIBS) -subdir = lib -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(libdir)" -LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES) -am__DEPENDENCIES_1 = -@HAVE_GMODULE_TRUE@am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) -@HAVE_GMODULE_FALSE@am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) -libmc_la_DEPENDENCIES = event/libmcevent.la \ - filehighlight/libmcfilehighlight.la mcconfig/libmcconfig.la \ - search/libsearch.la strutil/libmcstrutil.la skin/libmcskin.la \ - tty/libmctty.la vfs/libmcvfs.la widget/libmcwidget.la \ - $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_2) \ - $(am__DEPENDENCIES_3) -am__libmc_la_SOURCES_DIST = event.h event-types.h filehighlight.h \ - idx.h intprops-internal.h intprops.h mcconfig.h search.h \ - skin.h strutil.h widget.h utilunix.c unixcompat.h util.c \ - util.h file-entry.h fileloc.h fs.h hook.c hook.h glibcompat.c \ - glibcompat.h global.c global.h keybind.c keybind.h lock.c \ - lock.h serialize.c serialize.h shell.c shell.h stat-size.h \ - timefmt.c timefmt.h logging.c logging.h charsets.c charsets.h -am__objects_1 = -am__objects_2 = utilunix.lo util.lo -@USE_MAINTAINER_MODE_TRUE@am__objects_3 = logging.lo -@CHARSET_TRUE@am__objects_4 = charsets.lo -am_libmc_la_OBJECTS = $(am__objects_1) $(am__objects_2) hook.lo \ - glibcompat.lo global.lo keybind.lo lock.lo serialize.lo \ - shell.lo timefmt.lo $(am__objects_3) $(am__objects_4) -libmc_la_OBJECTS = $(am_libmc_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = -@ENABLE_MCLIB_FALSE@am_libmc_la_rpath = -@ENABLE_MCLIB_TRUE@am_libmc_la_rpath = -rpath $(libdir) -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__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/charsets.Plo \ - ./$(DEPDIR)/glibcompat.Plo ./$(DEPDIR)/global.Plo \ - ./$(DEPDIR)/hook.Plo ./$(DEPDIR)/keybind.Plo \ - ./$(DEPDIR)/lock.Plo ./$(DEPDIR)/logging.Plo \ - ./$(DEPDIR)/serialize.Plo ./$(DEPDIR)/shell.Plo \ - ./$(DEPDIR)/timefmt.Plo ./$(DEPDIR)/util.Plo \ - ./$(DEPDIR)/utilunix.Plo -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libmc_la_SOURCES) -DIST_SOURCES = $(am__libmc_la_SOURCES_DIST) -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 -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 \ - distdir distdir-am -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)` -DIST_SUBDIRS = $(SUBDIRS) -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -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" -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -SUBDIRS = event filehighlight mcconfig search skin tty vfs strutil widget . -@ENABLE_MCLIB_TRUE@LIB_VERSION = `echo $(LIBMC_VERSION) | \ -@ENABLE_MCLIB_TRUE@ tr '.' ' '| \ -@ENABLE_MCLIB_TRUE@ while read v1 v2 v3; do echo $$v2':'$$v3':'$$v1; done` - -@ENABLE_MCLIB_TRUE@AM_LDFLAGS = -no-undefined -version-info $(LIB_VERSION) -release $(LIBMC_RELEASE) -@ENABLE_MCLIB_TRUE@lib_LTLIBRARIES = libmc.la -@ENABLE_MCLIB_FALSE@noinst_LTLIBRARIES = libmc.la -SUBLIB_includes = \ - event.h event-types.h \ - filehighlight.h \ - idx.h \ - intprops-internal.h \ - intprops.h \ - mcconfig.h \ - search.h \ - skin.h \ - strutil.h \ - widget.h - -SRC_mc_utils = \ - utilunix.c \ - unixcompat.h \ - util.c util.h - -libmc_la_SOURCES = $(SUBLIB_includes) $(SRC_mc_utils) file-entry.h \ - fileloc.h fs.h hook.c hook.h glibcompat.c glibcompat.h \ - global.c global.h keybind.c keybind.h lock.c lock.h \ - serialize.c serialize.h shell.c shell.h stat-size.h timefmt.c \ - timefmt.h $(am__append_1) $(am__append_2) -EXTRA_DIST = \ - stdckdint.in.h - -AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) -libmc_la_LIBADD = event/libmcevent.la \ - filehighlight/libmcfilehighlight.la mcconfig/libmcconfig.la \ - search/libsearch.la strutil/libmcstrutil.la skin/libmcskin.la \ - tty/libmctty.la vfs/libmcvfs.la widget/libmcwidget.la \ - $(MCLIBS) $(SLANGLIB) $(am__append_3) $(am__append_4) -all: all-recursive - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -install-libLTLIBRARIES: $(lib_LTLIBRARIES) - @$(NORMAL_INSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - list2=; for p in $$list; do \ - if test -f $$p; then \ - list2="$$list2 $$p"; \ - else :; fi; \ - done; \ - test -z "$$list2" || { \ - echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ - } - -uninstall-libLTLIBRARIES: - @$(NORMAL_UNINSTALL) - @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \ - for p in $$list; do \ - $(am__strip_dir) \ - echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \ - $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \ - done - -clean-libLTLIBRARIES: - -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) - @list='$(lib_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libmc.la: $(libmc_la_OBJECTS) $(libmc_la_DEPENDENCIES) $(EXTRA_libmc_la_DEPENDENCIES) - $(AM_V_CCLD)$(LINK) $(am_libmc_la_rpath) $(libmc_la_OBJECTS) $(libmc_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/charsets.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glibcompat.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/global.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hook.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keybind.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lock.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/logging.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/serialize.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/shell.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/timefmt.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/util.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utilunix.Plo@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.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 -o $@ $< - -.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 -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -# 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" -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 -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 - @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 -check-am: all-am -check: check-recursive -all-am: Makefile $(LTLIBRARIES) -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(libdir)"; 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 clean-libLTLIBRARIES clean-libtool \ - clean-noinstLTLIBRARIES mostlyclean-am - -distclean: distclean-recursive - -rm -f ./$(DEPDIR)/charsets.Plo - -rm -f ./$(DEPDIR)/glibcompat.Plo - -rm -f ./$(DEPDIR)/global.Plo - -rm -f ./$(DEPDIR)/hook.Plo - -rm -f ./$(DEPDIR)/keybind.Plo - -rm -f ./$(DEPDIR)/lock.Plo - -rm -f ./$(DEPDIR)/logging.Plo - -rm -f ./$(DEPDIR)/serialize.Plo - -rm -f ./$(DEPDIR)/shell.Plo - -rm -f ./$(DEPDIR)/timefmt.Plo - -rm -f ./$(DEPDIR)/util.Plo - -rm -f ./$(DEPDIR)/utilunix.Plo - -rm -f Makefile -distclean-am: clean-am distclean-compile distclean-generic \ - distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: - -install-dvi: install-dvi-recursive - -install-dvi-am: - -install-exec-am: install-libLTLIBRARIES - -install-html: install-html-recursive - -install-html-am: - -install-info: install-info-recursive - -install-info-am: - -install-man: - -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 ./$(DEPDIR)/charsets.Plo - -rm -f ./$(DEPDIR)/glibcompat.Plo - -rm -f ./$(DEPDIR)/global.Plo - -rm -f ./$(DEPDIR)/hook.Plo - -rm -f ./$(DEPDIR)/keybind.Plo - -rm -f ./$(DEPDIR)/lock.Plo - -rm -f ./$(DEPDIR)/logging.Plo - -rm -f ./$(DEPDIR)/serialize.Plo - -rm -f ./$(DEPDIR)/shell.Plo - -rm -f ./$(DEPDIR)/timefmt.Plo - -rm -f ./$(DEPDIR)/util.Plo - -rm -f ./$(DEPDIR)/utilunix.Plo - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-libLTLIBRARIES - -.MAKE: $(am__recursive_targets) install-am install-strip - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \ - am--depfiles check check-am clean clean-generic \ - clean-libLTLIBRARIES clean-libtool clean-noinstLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-html install-html-am \ - install-info install-info-am install-libLTLIBRARIES \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs installdirs-am maintainer-clean \ - maintainer-clean-generic mostlyclean mostlyclean-compile \ - mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am uninstall-libLTLIBRARIES - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/lib/charsets.c b/recipes/wip/files/mc/source/lib/charsets.c deleted file mode 100644 index 1912bf963d..0000000000 --- a/recipes/wip/files/mc/source/lib/charsets.c +++ /dev/null @@ -1,530 +0,0 @@ -/* - Text conversion from one charset to another. - - Copyright (C) 2001-2025 - Free Software Foundation, Inc. - - Written by: - Walery Studennikov - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file charsets.c - * \brief Source: Text conversion from one charset to another - */ - -#include - -#include -#include -#include - -#include "lib/global.h" -#include "lib/strutil.h" /* utf-8 functions */ -#include "lib/fileloc.h" -#include "lib/util.h" /* whitespace() */ - -#include "lib/charsets.h" - -/*** global variables ****************************************************************************/ - -GPtrArray *codepages = NULL; - -unsigned char conv_displ[256]; -unsigned char conv_input[256]; - -const char *cp_display = NULL; -const char *cp_source = NULL; - -/*** file scope macro definitions ****************************************************************/ - -#define UNKNCHAR '\001' - -#define OTHER_8BIT "Other_8_bit" - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static codepage_desc * -new_codepage_desc (const char *id, const char *name) -{ - codepage_desc *desc; - - desc = g_new (codepage_desc, 1); - desc->id = g_strdup (id); - desc->name = g_strdup (name); - - return desc; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -free_codepage_desc (gpointer data) -{ - codepage_desc *desc = (codepage_desc *) data; - - g_free (desc->id); - g_free (desc->name); - g_free (desc); -} - -/* --------------------------------------------------------------------------------------------- */ -/* returns display codepage */ - -static void -load_codepages_list_from_file (GPtrArray **list, const char *fname) -{ - FILE *f; - char buf[BUF_MEDIUM]; - char *default_codepage = NULL; - - f = fopen (fname, "r"); - if (f == NULL) - return; - - while (fgets (buf, sizeof buf, f) != NULL) - { - /* split string into id and cpname */ - char *p = buf; - size_t buflen; - - if (*p == '\n' || *p == '\0' || *p == '#') - continue; - - buflen = strlen (buf); - - if (buflen != 0 && buf[buflen - 1] == '\n') - buf[buflen - 1] = '\0'; - while (*p != '\0' && !whitespace (*p)) - ++p; - if (*p == '\0') - goto fail; - - *p++ = '\0'; - g_strstrip (p); - if (*p == '\0') - goto fail; - - if (strcmp (buf, "default") == 0) - default_codepage = g_strdup (p); - else - { - const char *id = buf; - - if (*list == NULL) - { - *list = g_ptr_array_new_full (16, free_codepage_desc); - g_ptr_array_add (*list, new_codepage_desc (id, p)); - } - else - { - unsigned int i; - - /* whether id is already present in list */ - /* if yes, overwrite description */ - for (i = 0; i < (*list)->len; i++) - { - codepage_desc *desc; - - desc = (codepage_desc *) g_ptr_array_index (*list, i); - - if (strcmp (id, desc->id) == 0) - { - /* found */ - g_free (desc->name); - desc->name = g_strdup (p); - break; - } - } - - /* not found */ - if (i == (*list)->len) - g_ptr_array_add (*list, new_codepage_desc (id, p)); - } - } - } - - if (default_codepage != NULL) - { - mc_global.display_codepage = get_codepage_index (default_codepage); - g_free (default_codepage); - } - - fail: - fclose (f); -} - -/* --------------------------------------------------------------------------------------------- */ - -static char -translate_character (GIConv cd, char c) -{ - gchar *tmp_buff = NULL; - gsize bytes_read, bytes_written = 0; - const char *ibuf = &c; - char ch = UNKNCHAR; - int ibuflen = 1; - - tmp_buff = g_convert_with_iconv (ibuf, ibuflen, cd, &bytes_read, &bytes_written, NULL); - if (tmp_buff != NULL) - ch = tmp_buff[0]; - g_free (tmp_buff); - return ch; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -load_codepages_list (void) -{ - char *fname; - - /* 1: try load /usr/share/mc/mc.charsets */ - fname = g_build_filename (mc_global.share_data_dir, CHARSETS_LIST, (char *) NULL); - load_codepages_list_from_file (&codepages, fname); - g_free (fname); - - /* 2: try load /etc/mc/mc.charsets */ - fname = g_build_filename (mc_global.sysconfig_dir, CHARSETS_LIST, (char *) NULL); - load_codepages_list_from_file (&codepages, fname); - g_free (fname); - - if (codepages == NULL) - { - /* files are not found, add default codepage */ - fprintf (stderr, "%s\n", _("Warning: cannot load codepages list")); - - codepages = g_ptr_array_new_with_free_func (free_codepage_desc); - g_ptr_array_add (codepages, new_codepage_desc (DEFAULT_CHARSET, _("7-bit ASCII"))); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -free_codepages_list (void) -{ - g_ptr_array_free (codepages, TRUE); - /* NULL-ize pointer to make unit tests happy */ - codepages = NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -get_codepage_id (const int n) -{ - return (n < 0) ? OTHER_8BIT : ((codepage_desc *) g_ptr_array_index (codepages, n))->id; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -get_codepage_index (const char *id) -{ - size_t i; - - if (codepages == NULL) - return -1; - if (strcmp (id, OTHER_8BIT) == 0) - return -1; - for (i = 0; i < codepages->len; i++) - if (strcmp (id, ((codepage_desc *) g_ptr_array_index (codepages, i))->id) == 0) - return i; - return -1; -} - -/* --------------------------------------------------------------------------------------------- */ -/** Check if specified encoding can be used in mc. - * @param encoding name of encoding - * @return TRUE if encoding is supported by mc, FALSE otherwise - */ - -gboolean -is_supported_encoding (const char *encoding) -{ - GIConv coder; - gboolean result; - - if (encoding == NULL) - return FALSE; - - coder = str_crt_conv_from (encoding); - result = coder != INVALID_CONV; - if (result) - str_close_conv (coder); - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -init_translation_table (int cpsource, int cpdisplay) -{ - int i; - GIConv cd; - - /* Fill input <-> display tables */ - - if (cpsource < 0 || cpdisplay < 0 || cpsource == cpdisplay) - { - for (i = 0; i <= 255; ++i) - { - conv_displ[i] = i; - conv_input[i] = i; - } - cp_source = cp_display; - return NULL; - } - - for (i = 0; i <= 127; ++i) - { - conv_displ[i] = i; - conv_input[i] = i; - } - cp_source = ((codepage_desc *) g_ptr_array_index (codepages, cpsource))->id; - cp_display = ((codepage_desc *) g_ptr_array_index (codepages, cpdisplay))->id; - - /* display <- inpit table */ - - cd = g_iconv_open (cp_display, cp_source); - if (cd == INVALID_CONV) - return g_strdup_printf (_("Cannot translate from %s to %s"), cp_source, cp_display); - - for (i = 128; i <= 255; ++i) - conv_displ[i] = translate_character (cd, i); - - g_iconv_close (cd); - - /* inpit <- display table */ - - cd = g_iconv_open (cp_source, cp_display); - if (cd == INVALID_CONV) - return g_strdup_printf (_("Cannot translate from %s to %s"), cp_display, cp_source); - - for (i = 128; i <= 255; ++i) - { - unsigned char ch; - ch = translate_character (cd, i); - conv_input[i] = (ch == UNKNCHAR) ? i : ch; - } - - g_iconv_close (cd); - - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -convert_to_display (char *str) -{ - if (str != NULL) - for (; *str != '\0'; str++) - *str = conv_displ[(unsigned char) *str]; -} - -/* --------------------------------------------------------------------------------------------- */ - -GString * -str_nconvert_to_display (const char *str, int len) -{ - GString *buff; - GIConv conv; - - if (str == NULL) - return NULL; - - if (cp_display == cp_source) - return g_string_new (str); - - conv = str_crt_conv_from (cp_source); - if (conv == INVALID_CONV) - return g_string_new (str); - - buff = g_string_new (""); - str_nconvert (conv, str, len, buff); - str_close_conv (conv); - return buff; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -convert_from_input (char *str) -{ - if (str != NULL) - for (; *str != '\0'; str++) - *str = conv_input[(unsigned char) *str]; -} - -/* --------------------------------------------------------------------------------------------- */ - -GString * -str_nconvert_to_input (const char *str, int len) -{ - GString *buff; - GIConv conv; - - if (str == NULL) - return NULL; - - if (cp_display == cp_source) - return g_string_new (str); - - conv = str_crt_conv_to (cp_source); - if (conv == INVALID_CONV) - return g_string_new (str); - - buff = g_string_new (""); - str_nconvert (conv, str, len, buff); - str_close_conv (conv); - return buff; -} - -/* --------------------------------------------------------------------------------------------- */ - -unsigned char -convert_from_utf_to_current (const char *str) -{ - unsigned char buf_ch[UTF8_CHAR_LEN + 1]; - unsigned char ch = '.'; - GIConv conv; - const char *cp_to; - - if (str == NULL) - return '.'; - - cp_to = get_codepage_id (mc_global.source_codepage); - conv = str_crt_conv_to (cp_to); - - if (conv != INVALID_CONV) - { - switch (str_translate_char (conv, str, -1, (char *) buf_ch, sizeof (buf_ch))) - { - case ESTR_SUCCESS: - ch = buf_ch[0]; - break; - case ESTR_PROBLEM: - case ESTR_FAILURE: - ch = '.'; - break; - default: - break; - } - str_close_conv (conv); - } - - return ch; -} - -/* --------------------------------------------------------------------------------------------- */ - -unsigned char -convert_from_utf_to_current_c (int input_char, GIConv conv) -{ - unsigned char str[UTF8_CHAR_LEN + 1]; - unsigned char buf_ch[UTF8_CHAR_LEN + 1]; - unsigned char ch = '.'; - int res; - - res = g_unichar_to_utf8 (input_char, (char *) str); - if (res == 0) - return ch; - - str[res] = '\0'; - - switch (str_translate_char (conv, (char *) str, -1, (char *) buf_ch, sizeof (buf_ch))) - { - case ESTR_SUCCESS: - ch = buf_ch[0]; - break; - case ESTR_PROBLEM: - case ESTR_FAILURE: - ch = '.'; - break; - default: - break; - } - - return ch; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -convert_from_8bit_to_utf_c (char input_char, GIConv conv) -{ - unsigned char str[2]; - unsigned char buf_ch[UTF8_CHAR_LEN + 1]; - int ch; - - str[0] = (unsigned char) input_char; - str[1] = '\0'; - - switch (str_translate_char (conv, (char *) str, -1, (char *) buf_ch, sizeof (buf_ch))) - { - case ESTR_SUCCESS: - { - int res; - - res = g_utf8_get_char_validated ((char *) buf_ch, -1); - ch = res >= 0 ? res : buf_ch[0]; - break; - } - case ESTR_PROBLEM: - case ESTR_FAILURE: - default: - ch = '.'; - break; - } - - return ch; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -convert_from_8bit_to_utf_c2 (char input_char) -{ - int ch = '.'; - GIConv conv; - const char *cp_from; - - cp_from = get_codepage_id (mc_global.source_codepage); - - conv = str_crt_conv_to (cp_from); - if (conv != INVALID_CONV) - { - ch = convert_from_8bit_to_utf_c (input_char, conv); - str_close_conv (conv); - } - - return ch; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/charsets.h b/recipes/wip/files/mc/source/lib/charsets.h deleted file mode 100644 index a7c1bb7323..0000000000 --- a/recipes/wip/files/mc/source/lib/charsets.h +++ /dev/null @@ -1,113 +0,0 @@ -/** \file charsets.h - * \brief Header: Text conversion from one charset to another - */ - -#ifndef MC__CHARSETS_H -#define MC__CHARSETS_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct -{ - char *id; - char *name; -} codepage_desc; - -/*** global variables defined in .c file *********************************************************/ - -extern unsigned char conv_displ[256]; -extern unsigned char conv_input[256]; - -extern const char *cp_display; -extern const char *cp_source; -extern GPtrArray *codepages; - -/*** declarations of public functions ************************************************************/ - -const char *get_codepage_id (const int n); -int get_codepage_index (const char *id); -void load_codepages_list (void); -void free_codepages_list (void); -gboolean is_supported_encoding (const char *encoding); -char *init_translation_table (int cpsource, int cpdisplay); -void convert_to_display (char *str); -void convert_from_input (char *str); -void convert_string (unsigned char *str); - -/* - * Converter from utf to selected codepage - * param str, utf char - * return char in needle codepage (by global int mc_global.source_codepage) - */ -unsigned char convert_from_utf_to_current (const char *str); - -/* - * Converter from utf to selected codepage - * param input_char, gunichar - * return char in needle codepage (by global int mc_global.source_codepage) - */ -unsigned char convert_from_utf_to_current_c (int input_char, GIConv conv); - -/* - * Converter from selected codepage 8-bit - * param char input_char, GIConv converter - * return int utf char - */ -int convert_from_8bit_to_utf_c (char input_char, GIConv conv); - -/* - * Converter from display codepage 8-bit to utf-8 - * param char input_char, GIConv converter - * return int utf char - */ -int convert_from_8bit_to_utf_c2 (char input_char); - -GString *str_nconvert_to_input (const char *str, int len); -GString *str_nconvert_to_display (const char *str, int len); - -/* --------------------------------------------------------------------------------------------- */ -/*** inline functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* Convert single characters */ -static inline int -convert_to_display_c (int c) -{ - if (c < 0 || c >= 256) - return c; - return (int) conv_displ[c]; -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline int -convert_from_input_c (int c) -{ - if (c < 0 || c >= 256) - return c; - return (int) conv_input[c]; -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline GString * -str_convert_to_input (const char *str) -{ - return str_nconvert_to_input (str, -1); -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline GString * -str_convert_to_display (const char *str) -{ - return str_nconvert_to_display (str, -1); -} - -/* --------------------------------------------------------------------------------------------- */ - -#endif /* MC__CHARSETS_H */ diff --git a/recipes/wip/files/mc/source/lib/event-types.h b/recipes/wip/files/mc/source/lib/event-types.h deleted file mode 100644 index 2625c3698f..0000000000 --- a/recipes/wip/files/mc/source/lib/event-types.h +++ /dev/null @@ -1,84 +0,0 @@ -#ifndef MC__EVENT_TYPES_H -#define MC__EVENT_TYPES_H - -#include - -/*** typedefs(not structures) and defined constants **********************************************/ - -/* Event groups for main modules */ -#define MCEVENT_GROUP_CORE "Core" -#define MCEVENT_GROUP_DIALOG "Dialog" -#define MCEVENT_GROUP_DIFFVIEWER "DiffViewer" -#define MCEVENT_GROUP_EDITOR "Editor" -#define MCEVENT_GROUP_FILEMANAGER "FileManager" -#define MCEVENT_GROUP_VIEWER "Viewer" - -/* Events */ -#define MCEVENT_HISTORY_LOAD "history_load" -#define MCEVENT_HISTORY_SAVE "history_save" - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/* MCEVENT_GROUP_CORE:vfs_timestamp */ -struct vfs_class; -typedef struct -{ - struct vfs_class *vclass; - gpointer id; - gboolean ret; -} ev_vfs_stamp_create_t; - -/* MCEVENT_GROUP_CORE:vfs_print_message */ -typedef struct -{ - char *msg; -} ev_vfs_print_message_t; - -/* MCEVENT_GROUP_CORE:clipboard_text_from_file */ -typedef struct -{ - char **text; - gboolean ret; -} ev_clipboard_text_from_file_t; - -/* MCEVENT_GROUP_CORE:help */ -typedef struct -{ - const char *filename; - const char *node; -} ev_help_t; - -/* MCEVENT_GROUP_CORE:background_parent_call */ -/* MCEVENT_GROUP_CORE:background_parent_call_string */ -typedef struct -{ - void *routine; - gpointer *ctx; - int argc; - va_list ap; - union - { - int i; - char *s; - } ret; -} ev_background_parent_call_t; - -/* MCEVENT_GROUP_DIALOG:history_load */ -/* MCEVENT_GROUP_DIALOG:history_save */ -struct mc_config_t; -struct Widget; -typedef struct -{ - struct mc_config_t *cfg; - struct Widget *receiver; /* NULL means broadcast message */ -} ev_history_load_save_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/*** inline functions ****************************************************************************/ - -#endif /* MC__EVENT_TYPES_H */ diff --git a/recipes/wip/files/mc/source/lib/event.h b/recipes/wip/files/mc/source/lib/event.h deleted file mode 100644 index 66616393e4..0000000000 --- a/recipes/wip/files/mc/source/lib/event.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef MC__EVENT_H -#define MC__EVENT_H - -#include "event-types.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -typedef gboolean (*mc_event_callback_func_t) (const gchar *, const gchar *, gpointer, gpointer); - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct -{ - const char *event_group_name; - const char *event_name; - mc_event_callback_func_t cb; - gpointer init_data; -} event_init_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/* event.c: */ -gboolean mc_event_init (GError ** mcerror); -gboolean mc_event_deinit (GError ** mcerror); - - -/* manage.c: */ -gboolean mc_event_add (const gchar * event_group_name, const gchar * event_name, - mc_event_callback_func_t event_callback, gpointer event_init_data, - GError ** mcerror); -void mc_event_del (const gchar * event_group_name, const gchar * event_name, - mc_event_callback_func_t event_callback, gpointer event_init_data); -void mc_event_destroy (const gchar * event_group_name, const gchar * event_name); -void mc_event_group_del (const gchar * event_group_name); -gboolean mc_event_present (const gchar * event_group_name, const gchar * event_name); -gboolean mc_event_mass_add (const event_init_t * events, GError ** mcerror); - -/* raise.c: */ -gboolean mc_event_raise (const gchar *, const gchar *, gpointer); - - -/*** inline functions ****************************************************************************/ - -#endif /* MC__EVENT_H */ diff --git a/recipes/wip/files/mc/source/lib/event/Makefile.am b/recipes/wip/files/mc/source/lib/event/Makefile.am deleted file mode 100644 index 407bead6dc..0000000000 --- a/recipes/wip/files/mc/source/lib/event/Makefile.am +++ /dev/null @@ -1,10 +0,0 @@ - -noinst_LTLIBRARIES = libmcevent.la - -libmcevent_la_SOURCES = \ - event.c \ - internal.h \ - manage.c \ - raise.c - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) diff --git a/recipes/wip/files/mc/source/lib/event/Makefile.in b/recipes/wip/files/mc/source/lib/event/Makefile.in deleted file mode 100644 index ec0d971f74..0000000000 --- a/recipes/wip/files/mc/source/lib/event/Makefile.in +++ /dev/null @@ -1,749 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = lib/event -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libmcevent_la_LIBADD = -am_libmcevent_la_OBJECTS = event.lo manage.lo raise.lo -libmcevent_la_OBJECTS = $(am_libmcevent_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_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__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/event.Plo ./$(DEPDIR)/manage.Plo \ - ./$(DEPDIR)/raise.Plo -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libmcevent_la_SOURCES) -DIST_SOURCES = $(libmcevent_la_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)` -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -noinst_LTLIBRARIES = libmcevent.la -libmcevent_la_SOURCES = \ - event.c \ - internal.h \ - manage.c \ - raise.c - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/event/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/event/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libmcevent.la: $(libmcevent_la_OBJECTS) $(libmcevent_la_DEPENDENCIES) $(EXTRA_libmcevent_la_DEPENDENCIES) - $(AM_V_CCLD)$(LINK) $(libmcevent_la_OBJECTS) $(libmcevent_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/event.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/manage.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/raise.Plo@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.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 -o $@ $< - -.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 -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -f ./$(DEPDIR)/event.Plo - -rm -f ./$(DEPDIR)/manage.Plo - -rm -f ./$(DEPDIR)/raise.Plo - -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-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f ./$(DEPDIR)/event.Plo - -rm -f ./$(DEPDIR)/manage.Plo - -rm -f ./$(DEPDIR)/raise.Plo - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ - clean-generic clean-libtool clean-noinstLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/lib/event/event.c b/recipes/wip/files/mc/source/lib/event/event.c deleted file mode 100644 index f5984a37f6..0000000000 --- a/recipes/wip/files/mc/source/lib/event/event.c +++ /dev/null @@ -1,135 +0,0 @@ -/* - Handle events in application. - Interface functions: init/deinit; start/stop - - Copyright (C) 2011-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2011. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "lib/global.h" -#include "lib/util.h" -#include "lib/event.h" - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -GTree *mc_event_grouplist = NULL; - -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_event_init (GError **mcerror) -{ - mc_return_val_if_error (mcerror, FALSE); - - if (mc_event_grouplist != NULL) - { - mc_propagate_error (mcerror, 0, "%s", _("Event system already initialized")); - return FALSE; - } - - mc_event_grouplist = - g_tree_new_full ((GCompareDataFunc) g_ascii_strcasecmp, - NULL, (GDestroyNotify) g_free, (GDestroyNotify) g_tree_destroy); - - if (mc_event_grouplist == NULL) - { - mc_propagate_error (mcerror, 0, "%s", _("Failed to initialize event system")); - return FALSE; - } - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_event_deinit (GError **mcerror) -{ - mc_return_val_if_error (mcerror, FALSE); - - if (mc_event_grouplist == NULL) - { - mc_propagate_error (mcerror, 0, "%s", _("Event system not initialized")); - return FALSE; - } - - g_tree_destroy (mc_event_grouplist); - mc_event_grouplist = NULL; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_event_mass_add (const event_init_t *events, GError **mcerror) -{ - size_t array_index; - - mc_return_val_if_error (mcerror, FALSE); - - for (array_index = 0; events[array_index].event_group_name != NULL; array_index++) - { - if (!mc_event_add (events[array_index].event_group_name, - events[array_index].event_name, - events[array_index].cb, events[array_index].init_data, mcerror)) - { - return FALSE; - } - } - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_event_present (const gchar *event_group_name, const gchar *event_name) -{ - GTree *event_group; - GPtrArray *callbacks; - - if (mc_event_grouplist == NULL || event_group_name == NULL || event_name == NULL) - return FALSE; - - event_group = mc_event_get_event_group_by_name (event_group_name, FALSE, NULL); - if (event_group == NULL) - return FALSE; - - callbacks = mc_event_get_event_by_name (event_group, event_name, FALSE, NULL); - if (callbacks == NULL) - return FALSE; - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/event/internal.h b/recipes/wip/files/mc/source/lib/event/internal.h deleted file mode 100644 index f82ac3ae02..0000000000 --- a/recipes/wip/files/mc/source/lib/event/internal.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef MC_EVENT_INTERNAL_H -#define MC_EVENT_INTERNAL_H - -/*** typedefs(not structures) and defined constants ********************/ - -/*** enums *************************************************************/ - -/*** structures declarations (and typedefs of structures)***************/ - -typedef struct mc_event_callback_struct -{ - gpointer init_data; - mc_event_callback_func_t callback; -} mc_event_callback_t; - - -/*** global variables defined in .c file *******************************/ - -extern GTree *mc_event_grouplist; - -/*** declarations of public functions **********************************/ - -GTree *mc_event_get_event_group_by_name (const gchar * event_group_name, gboolean create_new, - GError ** mcerror); -GPtrArray *mc_event_get_event_by_name (GTree * event_group, const gchar * event_name, - gboolean create_new, GError ** mcerror); -mc_event_callback_t *mc_event_is_callback_in_array (GPtrArray * callbacks, - mc_event_callback_func_t event_callback, - gpointer event_init_data); - -/*** inline functions ****************************************************************************/ -#endif /* MC_EVENT_INTERNAL_H */ diff --git a/recipes/wip/files/mc/source/lib/event/manage.c b/recipes/wip/files/mc/source/lib/event/manage.c deleted file mode 100644 index 409de64484..0000000000 --- a/recipes/wip/files/mc/source/lib/event/manage.c +++ /dev/null @@ -1,216 +0,0 @@ -/* - Handle any events in application. - Manage events: add, delete, destroy, search - - Copyright (C) 2011-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2011. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "lib/global.h" -#include "lib/util.h" -#include "lib/event.h" - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_event_group_destroy_value (gpointer data) -{ - g_ptr_array_free ((GPtrArray *) data, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_event_add (const gchar *event_group_name, const gchar *event_name, - mc_event_callback_func_t event_callback, gpointer event_init_data, GError **mcerror) -{ - GTree *event_group; - GPtrArray *callbacks; - mc_event_callback_t *cb; - - mc_return_val_if_error (mcerror, FALSE); - - if (mc_event_grouplist == NULL || event_group_name == NULL || event_name == NULL - || event_callback == NULL) - { - mc_propagate_error (mcerror, 0, "%s", _("Check input data! Some of parameters are NULL!")); - return FALSE; - } - - event_group = mc_event_get_event_group_by_name (event_group_name, TRUE, mcerror); - if (event_group == NULL) - return FALSE; - - callbacks = mc_event_get_event_by_name (event_group, event_name, TRUE, mcerror); - if (callbacks == NULL) - return FALSE; - - cb = mc_event_is_callback_in_array (callbacks, event_callback, event_init_data); - if (cb == NULL) - { - cb = g_new0 (mc_event_callback_t, 1); - cb->callback = event_callback; - g_ptr_array_add (callbacks, (gpointer) cb); - } - cb->init_data = event_init_data; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_event_del (const gchar *event_group_name, const gchar *event_name, - mc_event_callback_func_t event_callback, gpointer event_init_data) -{ - GTree *event_group; - GPtrArray *callbacks; - mc_event_callback_t *cb; - - if (mc_event_grouplist == NULL || event_group_name == NULL || event_name == NULL - || event_callback == NULL) - return; - - event_group = mc_event_get_event_group_by_name (event_group_name, FALSE, NULL); - if (event_group == NULL) - return; - - callbacks = mc_event_get_event_by_name (event_group, event_name, FALSE, NULL); - if (callbacks == NULL) - return; - - cb = mc_event_is_callback_in_array (callbacks, event_callback, event_init_data); - if (cb != NULL) - g_ptr_array_remove (callbacks, (gpointer) cb); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_event_destroy (const gchar *event_group_name, const gchar *event_name) -{ - GTree *event_group; - - if (mc_event_grouplist == NULL || event_group_name == NULL || event_name == NULL) - return; - - event_group = mc_event_get_event_group_by_name (event_group_name, FALSE, NULL); - g_tree_remove (event_group, (gconstpointer) event_name); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_event_group_del (const gchar *event_group_name) -{ - - if (mc_event_grouplist != NULL && event_group_name != NULL) - g_tree_remove (mc_event_grouplist, (gconstpointer) event_group_name); -} - -/* --------------------------------------------------------------------------------------------- */ - -GTree * -mc_event_get_event_group_by_name (const gchar *event_group_name, gboolean create_new, - GError **mcerror) -{ - GTree *event_group; - - mc_return_val_if_error (mcerror, FALSE); - - event_group = (GTree *) g_tree_lookup (mc_event_grouplist, (gconstpointer) event_group_name); - if (event_group == NULL && create_new) - { - event_group = - g_tree_new_full ((GCompareDataFunc) g_ascii_strcasecmp, - NULL, - (GDestroyNotify) g_free, - (GDestroyNotify) mc_event_group_destroy_value); - if (event_group == NULL) - { - mc_propagate_error (mcerror, 0, _("Unable to create group '%s' for events!"), - event_group_name); - return NULL; - } - g_tree_insert (mc_event_grouplist, g_strdup (event_group_name), (gpointer) event_group); - } - return event_group; -} - -/* --------------------------------------------------------------------------------------------- */ - -GPtrArray * -mc_event_get_event_by_name (GTree *event_group, const gchar *event_name, gboolean create_new, - GError **mcerror) -{ - GPtrArray *callbacks; - - mc_return_val_if_error (mcerror, FALSE); - - callbacks = (GPtrArray *) g_tree_lookup (event_group, (gconstpointer) event_name); - if (callbacks == NULL && create_new) - { - callbacks = g_ptr_array_new_with_free_func (g_free); - if (callbacks == NULL) - { - mc_propagate_error (mcerror, 0, _("Unable to create event '%s'!"), event_name); - return NULL; - } - g_tree_insert (event_group, g_strdup (event_name), (gpointer) callbacks); - } - return callbacks; -} - -/* --------------------------------------------------------------------------------------------- */ - -mc_event_callback_t * -mc_event_is_callback_in_array (GPtrArray *callbacks, mc_event_callback_func_t event_callback, - gpointer event_init_data) -{ - guint array_index; - - for (array_index = 0; array_index < callbacks->len; array_index++) - { - mc_event_callback_t *cb = g_ptr_array_index (callbacks, array_index); - if (cb->callback == event_callback && cb->init_data == event_init_data) - return cb; - } - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/event/raise.c b/recipes/wip/files/mc/source/lib/event/raise.c deleted file mode 100644 index 747a797726..0000000000 --- a/recipes/wip/files/mc/source/lib/event/raise.c +++ /dev/null @@ -1,75 +0,0 @@ -/* - Handle any events in application. - Raise events. - - Copyright (C) 2011-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2011. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "lib/global.h" -#include "lib/event.h" - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/*** file scope functions ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_event_raise (const gchar *event_group_name, const gchar *event_name, gpointer event_data) -{ - GTree *event_group; - GPtrArray *callbacks; - guint array_index; - - if (mc_event_grouplist == NULL || event_group_name == NULL || event_name == NULL) - return FALSE; - - event_group = mc_event_get_event_group_by_name (event_group_name, FALSE, NULL); - if (event_group == NULL) - return FALSE; - - callbacks = mc_event_get_event_by_name (event_group, event_name, FALSE, NULL); - if (callbacks == NULL) - return FALSE; - - for (array_index = callbacks->len; array_index > 0; array_index--) - { - mc_event_callback_t *cb = g_ptr_array_index (callbacks, array_index - 1); - if (!(*cb->callback) (event_group_name, event_name, cb->init_data, event_data)) - break; - } - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/file-entry.h b/recipes/wip/files/mc/source/lib/file-entry.h deleted file mode 100644 index 2d9cfc425c..0000000000 --- a/recipes/wip/files/mc/source/lib/file-entry.h +++ /dev/null @@ -1,49 +0,0 @@ -/** \file lib/file-entry.h - * \brief Header: file entry definition - */ - -#ifndef MC__ILE_ENTRY_H -#define MC__ILE_ENTRY_H - -#include -#include - -#include "lib/global.h" /* include */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/* keys are set only during sorting */ -typedef struct -{ - /* File name */ - GString *fname; - /* File attributes */ - struct stat st; - /* Key used for comparing names */ - char *name_sort_key; - /* Key used for comparing extensions */ - char *extension_sort_key; - - /* Flags */ - struct - { - unsigned int marked:1; /* File marked in pane window */ - unsigned int link_to_dir:1; /* If this is a link, does it point to directory? */ - unsigned int stale_link:1; /* If this is a symlink and points to Charon's land */ - unsigned int dir_size_computed:1; /* Size of directory was computed with dirsizes_cmd */ - } f; -} file_entry_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** inline functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -#endif /* MC__FILE_ENTRY_H */ diff --git a/recipes/wip/files/mc/source/lib/filehighlight.h b/recipes/wip/files/mc/source/lib/filehighlight.h deleted file mode 100644 index fd2c976a7d..0000000000 --- a/recipes/wip/files/mc/source/lib/filehighlight.h +++ /dev/null @@ -1,34 +0,0 @@ -#ifndef MC__FILEHIGHLIGHT_H -#define MC__FILEHIGHLIGHT_H - -#include "lib/mcconfig.h" /* mc_config_t */ -#include "lib/file-entry.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct mc_fhl_struct -{ - mc_config_t *config; - GPtrArray *filters; -} mc_fhl_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -mc_fhl_t *mc_fhl_new (gboolean need_auto_fill); -void mc_fhl_free (mc_fhl_t ** fhl); - -int mc_fhl_get_color (const mc_fhl_t * fhl, const file_entry_t * fe); - -gboolean mc_fhl_read_ini_file (mc_fhl_t * fhl, const gchar * filename); -gboolean mc_fhl_parse_ini_file (mc_fhl_t * fhl); -void mc_fhl_clear (mc_fhl_t * fhl); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__FILEHIGHLIGHT_H */ diff --git a/recipes/wip/files/mc/source/lib/filehighlight/Makefile.am b/recipes/wip/files/mc/source/lib/filehighlight/Makefile.am deleted file mode 100644 index dee24e29f8..0000000000 --- a/recipes/wip/files/mc/source/lib/filehighlight/Makefile.am +++ /dev/null @@ -1,9 +0,0 @@ -noinst_LTLIBRARIES = libmcfilehighlight.la - -libmcfilehighlight_la_SOURCES = \ - common.c \ - get-color.c \ - ini-file-read.c \ - internal.h - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) diff --git a/recipes/wip/files/mc/source/lib/filehighlight/Makefile.in b/recipes/wip/files/mc/source/lib/filehighlight/Makefile.in deleted file mode 100644 index 3e05ffe5f1..0000000000 --- a/recipes/wip/files/mc/source/lib/filehighlight/Makefile.in +++ /dev/null @@ -1,750 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = lib/filehighlight -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libmcfilehighlight_la_LIBADD = -am_libmcfilehighlight_la_OBJECTS = common.lo get-color.lo \ - ini-file-read.lo -libmcfilehighlight_la_OBJECTS = $(am_libmcfilehighlight_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_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__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/common.Plo ./$(DEPDIR)/get-color.Plo \ - ./$(DEPDIR)/ini-file-read.Plo -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libmcfilehighlight_la_SOURCES) -DIST_SOURCES = $(libmcfilehighlight_la_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)` -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -noinst_LTLIBRARIES = libmcfilehighlight.la -libmcfilehighlight_la_SOURCES = \ - common.c \ - get-color.c \ - ini-file-read.c \ - internal.h - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/filehighlight/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/filehighlight/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libmcfilehighlight.la: $(libmcfilehighlight_la_OBJECTS) $(libmcfilehighlight_la_DEPENDENCIES) $(EXTRA_libmcfilehighlight_la_DEPENDENCIES) - $(AM_V_CCLD)$(LINK) $(libmcfilehighlight_la_OBJECTS) $(libmcfilehighlight_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get-color.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ini-file-read.Plo@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.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 -o $@ $< - -.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 -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -f ./$(DEPDIR)/common.Plo - -rm -f ./$(DEPDIR)/get-color.Plo - -rm -f ./$(DEPDIR)/ini-file-read.Plo - -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-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f ./$(DEPDIR)/common.Plo - -rm -f ./$(DEPDIR)/get-color.Plo - -rm -f ./$(DEPDIR)/ini-file-read.Plo - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ - clean-generic clean-libtool clean-noinstLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/lib/filehighlight/common.c b/recipes/wip/files/mc/source/lib/filehighlight/common.c deleted file mode 100644 index 163fba9cb2..0000000000 --- a/recipes/wip/files/mc/source/lib/filehighlight/common.c +++ /dev/null @@ -1,129 +0,0 @@ -/* - File highlight plugin. - Interface functions - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "lib/global.h" -#include "lib/util.h" /* MC_PTR_FREE */ - -#include "lib/filehighlight.h" - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_fhl_filter_free (gpointer data) -{ - mc_fhl_filter_t *filter = (mc_fhl_filter_t *) data; - - g_free (filter->fgcolor); - g_free (filter->bgcolor); - mc_search_free (filter->search_condition); - g_free (filter); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_fhl_array_free (mc_fhl_t *fhl) -{ - if (fhl->filters != NULL) - { - g_ptr_array_free (fhl->filters, TRUE); - fhl->filters = NULL; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -mc_fhl_t * -mc_fhl_new (gboolean need_auto_fill) -{ - mc_fhl_t *fhl; - - fhl = g_try_new0 (mc_fhl_t, 1); - if (fhl == NULL) - return NULL; - - if (!need_auto_fill) - return fhl; - - if (!mc_fhl_init_from_standard_files (fhl)) - { - g_free (fhl); - return NULL; - } - - if (!mc_fhl_parse_ini_file (fhl)) - { - mc_fhl_free (&fhl); - return NULL; - } - - return fhl; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_fhl_free (mc_fhl_t **fhl) -{ - if (fhl == NULL || *fhl == NULL) - return; - - mc_fhl_clear (*fhl); - - MC_PTR_FREE (*fhl); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_fhl_clear (mc_fhl_t *fhl) -{ - if (fhl != NULL) - { - mc_config_deinit (fhl->config); - mc_fhl_array_free (fhl); - } -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/filehighlight/get-color.c b/recipes/wip/files/mc/source/lib/filehighlight/get-color.c deleted file mode 100644 index 53c8d1799a..0000000000 --- a/recipes/wip/files/mc/source/lib/filehighlight/get-color.c +++ /dev/null @@ -1,313 +0,0 @@ -/* - File highlight plugin. - Interface functions. get color pair index for highlighted file. - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include -#include - -#include "lib/global.h" -#include "lib/skin.h" -#include "lib/util.h" /* is_exe() */ -#include "lib/filehighlight.h" -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/*inline functions */ -inline static gboolean -mc_fhl_is_file (const file_entry_t *fe) -{ -#if HAVE_S_ISREG == 0 - (void) fe; -#endif - return S_ISREG (fe->st.st_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_file_exec (const file_entry_t *fe) -{ - return is_exe (fe->st.st_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_dir (const file_entry_t *fe) -{ -#if HAVE_S_ISDIR == 0 - (void) fe; -#endif - return S_ISDIR (fe->st.st_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_link (const file_entry_t *fe) -{ -#if HAVE_S_ISLNK == 0 - (void) fe; -#endif - return S_ISLNK (fe->st.st_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_hlink (const file_entry_t *fe) -{ - return (fe->st.st_nlink > 1); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_link_to_dir (const file_entry_t *fe) -{ - return mc_fhl_is_link (fe) && fe->f.link_to_dir != 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_stale_link (const file_entry_t *fe) -{ - return mc_fhl_is_link (fe) ? (fe->f.stale_link != 0) : !mc_fhl_is_file (fe); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_device_char (const file_entry_t *fe) -{ -#if HAVE_S_ISCHR == 0 - (void) fe; -#endif - return S_ISCHR (fe->st.st_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_device_block (const file_entry_t *fe) -{ -#if HAVE_S_ISBLK == 0 - (void) fe; -#endif - return S_ISBLK (fe->st.st_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_special_socket (const file_entry_t *fe) -{ -#if HAVE_S_ISSOCK == 0 - (void) fe; -#endif - return S_ISSOCK (fe->st.st_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_special_fifo (const file_entry_t *fe) -{ -#if HAVE_S_ISFIFO == 0 - (void) fe; -#endif - return S_ISFIFO (fe->st.st_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_special_door (const file_entry_t *fe) -{ -#if HAVE_S_ISDOOR == 0 - (void) fe; -#endif - return S_ISDOOR (fe->st.st_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -inline static gboolean -mc_fhl_is_special (const file_entry_t *fe) -{ - return - (mc_fhl_is_special_socket (fe) || mc_fhl_is_special_fifo (fe) - || mc_fhl_is_special_door (fe)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -mc_fhl_get_color_filetype (const mc_fhl_filter_t *mc_filter, const mc_fhl_t *fhl, - const file_entry_t *fe) -{ - gboolean my_color = FALSE; - - (void) fhl; - - switch (mc_filter->file_type) - { - case MC_FLHGH_FTYPE_T_FILE: - if (mc_fhl_is_file (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_FILE_EXE: - if (mc_fhl_is_file (fe) && mc_fhl_is_file_exec (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_DIR: - if (mc_fhl_is_dir (fe) || mc_fhl_is_link_to_dir (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_LINK_DIR: - if (mc_fhl_is_link_to_dir (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_LINK: - if (mc_fhl_is_link (fe) || mc_fhl_is_hlink (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_HARDLINK: - if (mc_fhl_is_hlink (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_SYMLINK: - if (mc_fhl_is_link (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_STALE_LINK: - if (mc_fhl_is_stale_link (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_DEVICE: - if (mc_fhl_is_device_char (fe) || mc_fhl_is_device_block (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_DEVICE_BLOCK: - if (mc_fhl_is_device_block (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_DEVICE_CHAR: - if (mc_fhl_is_device_char (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_SPECIAL: - if (mc_fhl_is_special (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_SPECIAL_SOCKET: - if (mc_fhl_is_special_socket (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_SPECIAL_FIFO: - if (mc_fhl_is_special_fifo (fe)) - my_color = TRUE; - break; - case MC_FLHGH_FTYPE_T_SPECIAL_DOOR: - if (mc_fhl_is_special_door (fe)) - my_color = TRUE; - break; - default: - break; - } - - return my_color ? mc_filter->color_pair_index : -1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -mc_fhl_get_color_regexp (const mc_fhl_filter_t *mc_filter, const mc_fhl_t *fhl, - const file_entry_t *fe) -{ - (void) fhl; - - if (mc_filter->search_condition == NULL) - return -1; - - if (mc_search_run (mc_filter->search_condition, fe->fname->str, 0, fe->fname->len, NULL)) - return mc_filter->color_pair_index; - - return -1; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -int -mc_fhl_get_color (const mc_fhl_t *fhl, const file_entry_t *fe) -{ - guint i; - int ret; - - if (fhl == NULL) - return NORMAL_COLOR; - - for (i = 0; i < fhl->filters->len; i++) - { - mc_fhl_filter_t *mc_filter; - - mc_filter = (mc_fhl_filter_t *) g_ptr_array_index (fhl->filters, i); - switch (mc_filter->type) - { - case MC_FLHGH_T_FTYPE: - ret = mc_fhl_get_color_filetype (mc_filter, fhl, fe); - if (ret > 0) - return -ret; - break; - case MC_FLHGH_T_EXT: - case MC_FLHGH_T_FREGEXP: - ret = mc_fhl_get_color_regexp (mc_filter, fhl, fe); - if (ret > 0) - return -ret; - break; - default: - break; - } - } - return NORMAL_COLOR; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/filehighlight/ini-file-read.c b/recipes/wip/files/mc/source/lib/filehighlight/ini-file-read.c deleted file mode 100644 index 9dce9bea22..0000000000 --- a/recipes/wip/files/mc/source/lib/filehighlight/ini-file-read.c +++ /dev/null @@ -1,268 +0,0 @@ -/* - File highlight plugin. - Reading and parse rules from ini-files - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include -#include - -#include "lib/global.h" -#include "lib/fileloc.h" -#include "lib/strutil.h" -#include "lib/skin.h" -#include "lib/util.h" /* exist_file() */ - -#include "lib/filehighlight.h" - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_fhl_parse_fill_color_info (mc_fhl_filter_t *mc_filter, mc_fhl_t *fhl, const gchar *group_name) -{ - (void) fhl; - - mc_filter->color_pair_index = mc_skin_color_get ("filehighlight", group_name); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -mc_fhl_parse_get_file_type_id (mc_fhl_t *fhl, const gchar *group_name) -{ - mc_fhl_filter_t *mc_filter; - - const gchar *types[] = { - "FILE", "FILE_EXE", - "DIR", "LINK_DIR", - "LINK", "HARDLINK", "SYMLINK", - "STALE_LINK", - "DEVICE", "DEVICE_BLOCK", "DEVICE_CHAR", - "SPECIAL", "SPECIAL_SOCKET", "SPECIAL_FIFO", "SPECIAL_DOOR", - NULL - }; - int i; - gchar *param_type; - - param_type = mc_config_get_string (fhl->config, group_name, "type", ""); - if (*param_type == '\0') - { - g_free (param_type); - return FALSE; - } - - for (i = 0; types[i] != NULL; i++) - if (strcmp (types[i], param_type) == 0) - break; - - g_free (param_type); - - if (types[i] == NULL) - return FALSE; - - mc_filter = g_new0 (mc_fhl_filter_t, 1); - mc_filter->type = MC_FLHGH_T_FTYPE; - mc_filter->file_type = (mc_flhgh_ftype_type) i; - mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name); - - g_ptr_array_add (fhl->filters, (gpointer) mc_filter); - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -mc_fhl_parse_get_regexp (mc_fhl_t *fhl, const gchar *group_name) -{ - mc_fhl_filter_t *mc_filter; - gchar *regexp; - - regexp = mc_config_get_string (fhl->config, group_name, "regexp", ""); - if (*regexp == '\0') - { - g_free (regexp); - return FALSE; - } - - mc_filter = g_new0 (mc_fhl_filter_t, 1); - mc_filter->type = MC_FLHGH_T_FREGEXP; - mc_filter->search_condition = mc_search_new (regexp, DEFAULT_CHARSET); - mc_filter->search_condition->is_case_sensitive = TRUE; - mc_filter->search_condition->search_type = MC_SEARCH_T_REGEX; - - mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name); - g_ptr_array_add (fhl->filters, (gpointer) mc_filter); - g_free (regexp); - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -mc_fhl_parse_get_extensions (mc_fhl_t *fhl, const gchar *group_name) -{ - mc_fhl_filter_t *mc_filter; - gchar **exts, **exts_orig; - GString *buf; - - exts_orig = mc_config_get_string_list (fhl->config, group_name, "extensions", NULL); - if (exts_orig == NULL || exts_orig[0] == NULL) - { - g_strfreev (exts_orig); - return FALSE; - } - - buf = g_string_sized_new (64); - - for (exts = exts_orig; *exts != NULL; exts++) - { - char *esc_ext; - - esc_ext = str_regex_escape (*exts); - if (buf->len != 0) - g_string_append_c (buf, '|'); - g_string_append (buf, esc_ext); - g_free (esc_ext); - } - - g_strfreev (exts_orig); - - g_string_prepend (buf, ".*\\.("); - g_string_append (buf, ")$"); - - mc_filter = g_new0 (mc_fhl_filter_t, 1); - mc_filter->type = MC_FLHGH_T_FREGEXP; - mc_filter->search_condition = mc_search_new_len (buf->str, buf->len, DEFAULT_CHARSET); - mc_filter->search_condition->is_case_sensitive = - mc_config_get_bool (fhl->config, group_name, "extensions_case", FALSE); - mc_filter->search_condition->search_type = MC_SEARCH_T_REGEX; - - mc_fhl_parse_fill_color_info (mc_filter, fhl, group_name); - g_ptr_array_add (fhl->filters, (gpointer) mc_filter); - g_string_free (buf, TRUE); - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_fhl_read_ini_file (mc_fhl_t *fhl, const gchar *filename) -{ - if (fhl == NULL || filename == NULL || !exist_file (filename)) - return FALSE; - - if (fhl->config != NULL) - return mc_config_read_file (fhl->config, filename, TRUE, FALSE); - - fhl->config = mc_config_init (filename, TRUE); - - return (fhl->config != NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_fhl_init_from_standard_files (mc_fhl_t *fhl) -{ - gchar *name; - gboolean ok; - - /* ${XDG_CONFIG_HOME}/mc/filehighlight.ini */ - name = mc_config_get_full_path (MC_FHL_INI_FILE); - ok = mc_fhl_read_ini_file (fhl, name); - g_free (name); - if (ok) - return TRUE; - - /* ${sysconfdir}/mc/filehighlight.ini */ - name = g_build_filename (mc_global.sysconfig_dir, MC_FHL_INI_FILE, (char *) NULL); - ok = mc_fhl_read_ini_file (fhl, name); - g_free (name); - if (ok) - return TRUE; - - /* ${datadir}/mc/filehighlight.ini */ - name = g_build_filename (mc_global.share_data_dir, MC_FHL_INI_FILE, (char *) NULL); - ok = mc_fhl_read_ini_file (fhl, name); - g_free (name); - return ok; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_fhl_parse_ini_file (mc_fhl_t *fhl) -{ - gchar **group_names, **orig_group_names; - gboolean ok; - - mc_fhl_array_free (fhl); - fhl->filters = g_ptr_array_new_with_free_func (mc_fhl_filter_free); - - orig_group_names = mc_config_get_groups (fhl->config, NULL); - ok = (*orig_group_names != NULL); - - for (group_names = orig_group_names; *group_names != NULL; group_names++) - { - if (mc_config_has_param (fhl->config, *group_names, "type")) - { - /* parse filetype filter */ - mc_fhl_parse_get_file_type_id (fhl, *group_names); - } - if (mc_config_has_param (fhl->config, *group_names, "regexp")) - { - /* parse regexp filter */ - mc_fhl_parse_get_regexp (fhl, *group_names); - } - if (mc_config_has_param (fhl->config, *group_names, "extensions")) - { - /* parse extensions filter */ - mc_fhl_parse_get_extensions (fhl, *group_names); - } - } - - g_strfreev (orig_group_names); - - return ok; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/filehighlight/internal.h b/recipes/wip/files/mc/source/lib/filehighlight/internal.h deleted file mode 100644 index 3cf718dab6..0000000000 --- a/recipes/wip/files/mc/source/lib/filehighlight/internal.h +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef MC__FILEHIGHLIGHT_INTERNAL_H -#define MC__FILEHIGHLIGHT_INTERNAL_H - -#include "lib/search.h" /* mc_search_t */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -typedef enum -{ - MC_FLHGH_T_FTYPE, - MC_FLHGH_T_EXT, - MC_FLHGH_T_FREGEXP -} mc_flhgh_filter_type; - -typedef enum -{ - MC_FLHGH_FTYPE_T_FILE, - MC_FLHGH_FTYPE_T_FILE_EXE, - MC_FLHGH_FTYPE_T_DIR, - MC_FLHGH_FTYPE_T_LINK_DIR, - MC_FLHGH_FTYPE_T_LINK, - MC_FLHGH_FTYPE_T_HARDLINK, - MC_FLHGH_FTYPE_T_SYMLINK, - MC_FLHGH_FTYPE_T_STALE_LINK, - MC_FLHGH_FTYPE_T_DEVICE, - MC_FLHGH_FTYPE_T_DEVICE_BLOCK, - MC_FLHGH_FTYPE_T_DEVICE_CHAR, - MC_FLHGH_FTYPE_T_SPECIAL, - MC_FLHGH_FTYPE_T_SPECIAL_SOCKET, - MC_FLHGH_FTYPE_T_SPECIAL_FIFO, - MC_FLHGH_FTYPE_T_SPECIAL_DOOR, -} mc_flhgh_ftype_type; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct mc_fhl_filter_struct -{ - - int color_pair_index; - gchar *fgcolor; - gchar *bgcolor; - mc_flhgh_filter_type type; - mc_search_t *search_condition; - mc_flhgh_ftype_type file_type; - -} mc_fhl_filter_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -void mc_fhl_filter_free (gpointer data); -void mc_fhl_array_free (mc_fhl_t * fhl); - -gboolean mc_fhl_init_from_standard_files (mc_fhl_t * fhl); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__FILEHIGHLIGHT_INTERNAL_H */ diff --git a/recipes/wip/files/mc/source/lib/fileloc.h b/recipes/wip/files/mc/source/lib/fileloc.h deleted file mode 100644 index fad3181bcb..0000000000 --- a/recipes/wip/files/mc/source/lib/fileloc.h +++ /dev/null @@ -1,97 +0,0 @@ -/** \file fileloc.h - * \brief Header: config files list - * - * This file defines the locations of the various user specific - * configuration files of the Midnight Commander. Historically the - * system wide and the user specific file names have not always been - * the same, so don't use these names for finding system wide - * configuration files. - * - * \todo This inconsistency should disappear in the one of the next versions (5.0?) - */ - -#ifndef MC_FILELOC_H -#define MC_FILELOC_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#ifndef MC_USERCONF_DIR -#define MC_USERCONF_DIR "mc" -#endif - -#define TAGS_NAME "TAGS" - -#define MC_GLOBAL_CONFIG_FILE "mc.lib" -#define MC_GLOBAL_MENU "mc.menu" -#define MC_LOCAL_MENU ".mc.menu" -#define MC_HINT "hints" PATH_SEP_STR "mc.hint" -#define MC_HELP "help" PATH_SEP_STR "mc.hlp" -#define GLOBAL_KEYMAP_FILE "mc.keymap" -#define CHARSETS_LIST "mc.charsets" -#define MC_MACRO_FILE "mc.macros" - -#define VFS_SHELL_PREFIX "shell" - -#define VFS_SHELL_LS_FILE "ls" -#define VFS_SHELL_EXISTS_FILE "fexists" -#define VFS_SHELL_MKDIR_FILE "mkdir" -#define VFS_SHELL_UNLINK_FILE "unlink" -#define VFS_SHELL_CHOWN_FILE "chown" -#define VFS_SHELL_CHMOD_FILE "chmod" -#define VFS_SHELL_UTIME_FILE "utime" -#define VFS_SHELL_RMDIR_FILE "rmdir" -#define VFS_SHELL_LN_FILE "ln" -#define VFS_SHELL_MV_FILE "mv" -#define VFS_SHELL_HARDLINK_FILE "hardlink" -#define VFS_SHELL_GET_FILE "get" -#define VFS_SHELL_SEND_FILE "send" -#define VFS_SHELL_APPEND_FILE "append" -#define VFS_SHELL_INFO_FILE "info" - -#define MC_EXTFS_DIR "extfs.d" - -#define MC_BASHRC_FILE "bashrc" -#define MC_ZSHRC_FILE ".zshrc" -#define MC_ASHRC_FILE "ashrc" -#define MC_KSHRC_FILE "kshrc" -#define MC_MKSHRC_FILE "mkshrc" -#define MC_INPUTRC_FILE "inputrc" -#define MC_CONFIG_FILE "ini" -#define MC_EXT_FILE "mc.ext.ini" -#define MC_EXT_OLD_FILE "mc.ext" -#define MC_FILEPOS_FILE "filepos" -#define MC_HISTORY_FILE "history" -#define MC_HOTLIST_FILE "hotlist" -#define MC_USERMENU_FILE "menu" -#define MC_TREESTORE_FILE "Tree" -#define MC_PANELS_FILE "panels.ini" -#define MC_FHL_INI_FILE "filehighlight.ini" - -#define MC_SKINS_DIR "skins" - -/* editor home directory */ -#define EDIT_HOME_DIR "mcedit" - -/* file names */ -#define EDIT_HOME_MACRO_FILE EDIT_HOME_DIR PATH_SEP_STR "macros.d" PATH_SEP_STR "macro" -#define EDIT_HOME_CLIP_FILE EDIT_HOME_DIR PATH_SEP_STR "mcedit.clip" -#define EDIT_HOME_BLOCK_FILE EDIT_HOME_DIR PATH_SEP_STR "mcedit.block" -#define EDIT_HOME_TEMP_FILE EDIT_HOME_DIR PATH_SEP_STR "mcedit.temp" -#define EDIT_SYNTAX_DIR "syntax" -#define EDIT_SYNTAX_FILE EDIT_SYNTAX_DIR PATH_SEP_STR "Syntax" - -#define EDIT_GLOBAL_MENU "mcedit.menu" -#define EDIT_LOCAL_MENU ".cedit.menu" -#define EDIT_HOME_MENU EDIT_HOME_DIR PATH_SEP_STR "menu" - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/*** inline functions ****************************************************************************/ - -#endif diff --git a/recipes/wip/files/mc/source/lib/fs.h b/recipes/wip/files/mc/source/lib/fs.h deleted file mode 100644 index bb4c705dc8..0000000000 --- a/recipes/wip/files/mc/source/lib/fs.h +++ /dev/null @@ -1,121 +0,0 @@ -/** \file fs.h - * \brief Header: fs compatibility definitions - */ - -/* Include file to use opendir/closedir/readdir */ - -#ifndef MC_FS_H -#define MC_FS_H - -#include -#include -#include -#include - -/*** typedefs(not structures) and defined constants **********************************************/ - -#ifdef S_ISREG -#define HAVE_S_ISREG 1 -#else -#define HAVE_S_ISREG 0 -#define S_ISREG(x) 0 -#endif - -#ifdef S_ISDIR -#define HAVE_S_ISDIR 1 -#else -#define HAVE_S_ISDIR 0 -#define S_ISDIR(x) 0 -#endif - -/* Replacement for permission bits missing in sys/stat.h */ -#ifdef S_ISLNK -#define HAVE_S_ISLNK 1 -#else -#define HAVE_S_ISLNK 0 -#define S_ISLNK(x) 0 -#endif - -#ifdef S_ISSOCK -#define HAVE_S_ISSOCK 1 -#else -#define HAVE_S_ISSOCK 0 -#define S_ISSOCK(x) 0 -#endif - -#ifdef S_ISFIFO -#define HAVE_S_ISFIFO 1 -#else -#define HAVE_S_ISFIFO 0 -#define S_ISFIFO(x) 0 -#endif - -#ifdef S_ISCHR -#define HAVE_S_ISCHR 1 -#else -#define HAVE_S_ISCHR 0 -#define S_ISCHR(x) 0 -#endif - -#ifdef S_ISBLK -#define HAVE_S_ISBLK 1 -#else -#define HAVE_S_ISBLK 0 -#define S_ISBLK(x) 0 -#endif - -/* Door is something that only exists on Solaris */ -#ifdef S_ISDOOR -#define HAVE_S_ISDOOR 1 -#else -#define HAVE_S_ISDOOR 0 -#define S_ISDOOR(x) 0 -#endif - -/* Special named files are widely used in QNX6 */ -#ifdef S_ISNAM -#define HAVE_S_ISNAM 1 -#else -#define HAVE_S_ISNAM 0 -#define S_ISNAM(x) 0 -#endif - -#ifndef PATH_MAX -#ifdef _POSIX_VERSION -#define PATH_MAX _POSIX_PATH_MAX -#else -#ifdef MAXPATHLEN -#define PATH_MAX MAXPATHLEN -#else -#define PATH_MAX 1024 -#endif -#endif -#endif - -#ifndef MAXPATHLEN -#define MC_MAXPATHLEN 4096 -#else -#define MC_MAXPATHLEN MAXPATHLEN -#endif - -/* DragonFlyBSD doesn't provide MAXNAMLEN macro */ -#ifndef MAXNAMLEN -#define MAXNAMLEN NAME_MAX -#endif - -#define MC_MAXFILENAMELEN MAXNAMLEN - -#define DIR_IS_DOT(x) ((x)[0] == '.' && (x)[1] == '\0') -#define DIR_IS_DOTDOT(x) ((x)[0] == '.' && (x)[1] == '.' && (x)[2] == '\0') - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/*** inline functions ****************************************************************************/ - -#endif diff --git a/recipes/wip/files/mc/source/lib/glibcompat.c b/recipes/wip/files/mc/source/lib/glibcompat.c deleted file mode 100644 index 5f1e7b9c0a..0000000000 --- a/recipes/wip/files/mc/source/lib/glibcompat.c +++ /dev/null @@ -1,304 +0,0 @@ -/* - GLIB - Library of useful routines for C programming - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009, 2013. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file glibcompat.c - * \brief Source: compatibility with older versions of glib - * - * Following code was copied from glib to GNU Midnight Commander to - * provide compatibility with older versions of glib. - */ - -#include -#include - -#include "global.h" -#include "glibcompat.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -#if ! GLIB_CHECK_VERSION (2, 54, 0) -/** - * g_ptr_array_find_with_equal_func: (skip) - * @haystack: pointer array to be searched - * @needle: pointer to look for - * @equal_func: (nullable): the function to call for each element, which should - * return %TRUE when the desired element is found; or %NULL to use pointer - * equality - * @index_: (optional) (out): return location for the index of - * the element, if found - * - * Checks whether @needle exists in @haystack, using the given @equal_func. - * If the element is found, %TRUE is returned and the element^A^A^As index is - * returned in @index_ (if non-%NULL). Otherwise, %FALSE is returned and @index_ - * is undefined. If @needle exists multiple times in @haystack, the index of - * the first instance is returned. - * - * @equal_func is called with the element from the array as its first parameter, - * and @needle as its second parameter. If @equal_func is %NULL, pointer - * equality is used. - * - * Returns: %TRUE if @needle is one of the elements of @haystack - * Since: 2.54 - */ -gboolean -g_ptr_array_find_with_equal_func (GPtrArray *haystack, gconstpointer needle, GEqualFunc equal_func, - guint *index_) -{ - guint i; - - g_return_val_if_fail (haystack != NULL, FALSE); - - if (equal_func == NULL) - equal_func = g_direct_equal; - - for (i = 0; i < haystack->len; i++) - if (equal_func (g_ptr_array_index (haystack, i), needle)) - { - if (index_ != NULL) - *index_ = i; - return TRUE; - } - - return FALSE; -} -#endif /* ! GLIB_CHECK_VERSION (2, 54, 0) */ - -/* --------------------------------------------------------------------------------------------- */ - -#if ! GLIB_CHECK_VERSION (2, 63, 3) -/** - * g_clear_slist: (skip) - * @slist_ptr: (not nullable): a #GSList return location - * @destroy: (nullable): the function to pass to g_slist_free_full() or NULL to not free elements - * - * Clears a pointer to a #GSList, freeing it and, optionally, freeing its elements using @destroy. - * - * @slist_ptr must be a valid pointer. If @slist_ptr points to a null #GSList, this does nothing. - * - * Since: 2.64 - */ -void -g_clear_slist (GSList **slist_ptr, GDestroyNotify destroy) -{ - GSList *slist; - - slist = *slist_ptr; - - if (slist != NULL) - { - *slist_ptr = NULL; - - if (destroy != NULL) - g_slist_free_full (slist, destroy); - else - g_slist_free (slist); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * g_clear_list: - * @list_ptr: (not nullable): a #GList return location - * @destroy: (nullable): the function to pass to g_list_free_full() or NULL to not free elements - * - * Clears a pointer to a #GList, freeing it and, optionally, freeing its elements using @destroy. - * - * @list_ptr must be a valid pointer. If @list_ptr points to a null #GList, this does nothing. - * - * Since: 2.64 - */ -void -g_clear_list (GList **list_ptr, GDestroyNotify destroy) -{ - GList *list; - - list = *list_ptr; - - if (list != NULL) - { - *list_ptr = NULL; - - if (destroy != NULL) - g_list_free_full (list, destroy); - else - g_list_free (list); - } -} - -#endif /* ! GLIB_CHECK_VERSION (2, 63, 3) */ - -/* --------------------------------------------------------------------------------------------- */ - -#if ! GLIB_CHECK_VERSION (2, 60, 0) -/** - * g_queue_clear_full: - * @queue: a pointer to a #GQueue - * @free_func: (nullable): the function to be called to free memory allocated - * - * Convenience method, which frees all the memory used by a #GQueue, - * and calls the provided @free_func on each item in the #GQueue. - * - * Since: 2.60 - */ -void -g_queue_clear_full (GQueue *queue, GDestroyNotify free_func) -{ - g_return_if_fail (queue != NULL); - - if (free_func != NULL) - g_queue_foreach (queue, (GFunc) free_func, NULL); - - g_queue_clear (queue); -} -#endif /* ! GLIB_CHECK_VERSION (2, 60, 0) */ - -/* --------------------------------------------------------------------------------------------- */ - -#if ! GLIB_CHECK_VERSION (2, 77, 0) -/** - * g_string_new_take: - * @init: (nullable): initial text used as the string. - * Ownership of the string is transferred to the #GString. - * Passing NULL creates an empty string. - * - * Creates a new #GString, initialized with the given string. - * - * After this call, @init belongs to the #GString and may no longer be - * modified by the caller. The memory of @data has to be dynamically - * allocated and will eventually be freed with g_free(). - * - * Returns: the new #GString - */ -GString * -g_string_new_take (char *init) -{ - GString *string; - - if (init == NULL) - return g_string_new (NULL); - - string = g_slice_new (GString); - - string->str = init; - string->len = strlen (string->str); - string->allocated_len = string->len + 1; - - return string; -} -#endif /* ! GLIB_CHECK_VERSION (2, 77, 0) */ - -/* --------------------------------------------------------------------------------------------- */ - -/** - * mc_g_string_copy: - * @dest: (not nullable): the destination #GString. Its current contents are destroyed - * @src: (not nullable): the source #GString - * @return: @dest - * - * Copies the bytes from a #GString into a #GString, destroying any previous contents. - * It is rather like the standard strcpy() function, except that you do not have to worry about - * having enough space to copy the string. - * - * There is no such API in GLib2. - */ -GString * -mc_g_string_copy (GString *dest, const GString *src) -{ - g_return_val_if_fail (src != NULL, NULL); - g_return_val_if_fail (dest != NULL, NULL); - - g_string_set_size (dest, 0); - g_string_append_len (dest, src->str, src->len); - - return dest; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * mc_g_string_dup: - * @s: (nullable): the source #GString - * @return: @copy of @s - * - * Copies the bytes from one #GString to another. - * - * There is no such API in GLib2. - */ -GString * -mc_g_string_dup (const GString *s) -{ - GString *ret = NULL; - - if (s != NULL) - ret = g_string_new_len (s->str, s->len); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * mc_g_string_append_c_len: - * @s: (not nullable): the destination #GString. - * @c: the byte to append onto the end of @s - * @len: the number of bytes @c to append onto the end of @s - * @return: @s - * - * Adds @len bytes @c onto the end of @s. - * - * There is no such API in GLib2. - */ -GString * -mc_g_string_append_c_len (GString *s, gchar c, guint len) -{ - g_return_val_if_fail (s != NULL, NULL); - - if (len != 0) - { - guint s_len = s->len; - - g_string_set_size (s, s->len + len); - memset (s->str + s_len, (unsigned char) c, len); - } - - return s; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/glibcompat.h b/recipes/wip/files/mc/source/lib/glibcompat.h deleted file mode 100644 index 9ab3b47f50..0000000000 --- a/recipes/wip/files/mc/source/lib/glibcompat.h +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef MC_GLIBCOMPAT_H -#define MC_GLIBCOMPAT_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#ifndef G_OPTION_ENTRY_NULL -#define G_OPTION_ENTRY_NULL \ - { NULL, '\0', 0, 0, NULL, NULL, NULL } -#endif /* G_OPTION_ENTRY_NULL */ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -#if ! GLIB_CHECK_VERSION (2, 54, 0) -gboolean g_ptr_array_find_with_equal_func (GPtrArray * haystack, gconstpointer needle, - GEqualFunc equal_func, guint * index_); -#endif /* ! GLIB_CHECK_VERSION (2, 54, 0) */ - -#if ! GLIB_CHECK_VERSION (2, 63, 3) -void g_clear_slist (GSList ** slist_ptr, GDestroyNotify destroy); -void g_clear_list (GList ** list_ptr, GDestroyNotify destroy); -#endif /* ! GLIB_CHECK_VERSION (2, 63, 3) */ - -#if ! GLIB_CHECK_VERSION (2, 60, 0) -void g_queue_clear_full (GQueue * queue, GDestroyNotify free_func); -#endif /* ! GLIB_CHECK_VERSION (2, 60, 0) */ - -#if ! GLIB_CHECK_VERSION (2, 77, 0) -GString *g_string_new_take (char *init); -#endif /* ! GLIB_CHECK_VERSION (2, 77, 0) */ - -/* There is no such API in GLib2 */ -GString *mc_g_string_copy (GString * dest, const GString * src); - -/* There is no such API in GLib2 */ -GString *mc_g_string_dup (const GString * s); - -/* There is no such API in GLib2 */ -GString *mc_g_string_append_c_len (GString * s, gchar c, guint len); - -/*** inline functions ****************************************************************************/ - -#endif /* MC_GLIBCOMPAT_H */ diff --git a/recipes/wip/files/mc/source/lib/global.c b/recipes/wip/files/mc/source/lib/global.c deleted file mode 100644 index 59d8f31515..0000000000 --- a/recipes/wip/files/mc/source/lib/global.c +++ /dev/null @@ -1,137 +0,0 @@ -/* - Global structure for some library-related variables - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file glibcompat.c - * \brief Source: global structure for some library-related variables - * - */ - -#include - -#include "mc-version.h" - -#include "global.h" - -/* *INDENT-OFF* */ -#ifdef ENABLE_SUBSHELL -# ifdef SUBSHELL_OPTIONAL -# define SUBSHELL_USE FALSE -# else /* SUBSHELL_OPTIONAL */ -# define SUBSHELL_USE TRUE -# endif /* SUBSHELL_OPTIONAL */ -#else /* !ENABLE_SUBSHELL */ -# define SUBSHELL_USE FALSE -#endif /* !ENABLE_SUBSHELL */ -/* *INDENT-ON* */ - -/*** global variables ****************************************************************************/ - -/* *INDENT-OFF* */ -mc_global_t mc_global = -{ - .mc_version = MC_CURRENT_VERSION, - - .mc_run_mode = MC_RUN_FULL, - .run_from_parent_mc = FALSE, - .midnight_shutdown = FALSE, - - .sysconfig_dir = NULL, - .share_data_dir = NULL, - - .profile_name = NULL, - -#ifdef HAVE_CHARSET - .source_codepage = -1, - .display_codepage = -1, -#else - .eight_bit_clean = TRUE, - .full_eight_bits = FALSE, -#endif /* !HAVE_CHARSET */ - .utf8_display = FALSE, - - .message_visible = TRUE, - .keybar_visible = TRUE, - -#ifdef ENABLE_BACKGROUND - .we_are_background = FALSE, -#endif /* ENABLE_BACKGROUND */ - - .widget = - { - .confirm_history_cleanup = TRUE, - .show_all_if_ambiguous = FALSE, - .is_right = FALSE - }, - - .shell = NULL, - - .tty = - { - .skin = NULL, - .shadows = TRUE, - .setup_color_string = NULL, - .term_color_string = NULL, - .color_terminal_string = NULL, - .command_line_colors = NULL, -#ifndef LINUX_CONS_SAVER_C - .console_flag = '\0', -#endif /* !LINUX_CONS_SAVER_C */ - - .use_subshell = SUBSHELL_USE, - -#ifdef ENABLE_SUBSHELL - .subshell_pty = 0, -#endif /* !ENABLE_SUBSHELL */ - - .xterm_flag = FALSE, - .disable_x11 = FALSE, - .slow_terminal = FALSE, - .disable_colors = FALSE, - .ugly_line_drawing = FALSE, - .old_mouse = FALSE, - .alternate_plus_minus = FALSE - }, - - .vfs = - { - .cd_symlinks = TRUE, - .preallocate_space = FALSE, - } - -}; -/* *INDENT-ON* */ - -#undef SUBSHELL_USE - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/*** file scope functions ************************************************************************/ - -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/global.h b/recipes/wip/files/mc/source/lib/global.h deleted file mode 100644 index a09607eb2a..0000000000 --- a/recipes/wip/files/mc/source/lib/global.h +++ /dev/null @@ -1,230 +0,0 @@ -/** \file global.h - * \brief Header: %global definitions for compatibility - * - * This file should be included after all system includes and before all local includes. - */ - -#ifndef MC_GLOBAL_H -#define MC_GLOBAL_H - -#include - -#if defined(HAVE_FUNC_ATTRIBUTE_WEAK) && defined(HAVE_TESTS) -#define MC_MOCKABLE __attribute__((weak)) -#else -#define MC_MOCKABLE -#endif - -#include "glibcompat.h" - -#include "unixcompat.h" - -#include "fs.h" -#include "shell.h" -#include "mcconfig.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -#ifdef ENABLE_NLS -#include -#define _(String) gettext (String) -#ifdef gettext_noop -#define N_(String) gettext_noop (String) -#else -#define N_(String) (String) -#endif -#else /* Stubs that do something close enough. */ -#define textdomain(String) 1 -#define gettext(String) (String) -#define ngettext(String1,String2,Num) (((Num) == 1) ? (String1) : (String2)) -#define dgettext(Domain,Message) (Message) -#define dcgettext(Domain,Message,Type) (Message) -#define bindtextdomain(Domain,Directory) 1 -#define _(String) (String) -#define N_(String) (String) -#endif /* !ENABLE_NLS */ - -#ifdef HAVE_FUNC_ATTRIBUTE_FALLTHROUGH -#define MC_FALLTHROUGH __attribute__((fallthrough)) -#else -#define MC_FALLTHROUGH -#endif - -#ifdef HAVE_FUNC_ATTRIBUTE_UNUSED -#define MC_UNUSED __attribute__((unused)) -#else -#define MC_UNUSED -#endif - -#ifdef USE_MAINTAINER_MODE -#include "lib/logging.h" -#endif - -/* Just for keeping Your's brains from invention a proper size of the buffer :-) */ -#define BUF_10K 10240L -#define BUF_8K 8192L -#define BUF_4K 4096L -#define BUF_1K 1024L - -#define BUF_LARGE BUF_1K -#define BUF_MEDIUM 512 -#define BUF_SMALL 128 -#define BUF_TINY 64 - -#define UTF8_CHAR_LEN 6 - -/* Used to distinguish between a normal MC termination and */ -/* one caused by typing 'exit' or 'logout' in the subshell */ -#define SUBSHELL_EXIT 128 - -#define MC_ERROR g_quark_from_static_string (PACKAGE) - -#define DEFAULT_CHARSET "ASCII" - -/*** enums ***************************************************************************************/ - -/* run mode and params */ -typedef enum -{ - MC_RUN_FULL = 0, - MC_RUN_EDITOR, - MC_RUN_VIEWER, - MC_RUN_DIFFVIEWER -} mc_run_mode_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct -{ - const char *mc_version; - - mc_run_mode_t mc_run_mode; - gboolean run_from_parent_mc; - /* Used so that widgets know if they are being destroyed or shut down */ - gboolean midnight_shutdown; - - /* sysconfig_dir: Area for default settings from maintainers of distributuves - default is /etc/mc or may be defined by MC_DATADIR */ - char *sysconfig_dir; - /* share_data_dir: Area for default settings from developers */ - char *share_data_dir; - - char *profile_name; - - mc_config_t *main_config; - mc_config_t *panels_config; - -#ifdef HAVE_CHARSET - /* Numbers of (file I/O) and (input/display) codepages. -1 if not selected */ - int source_codepage; - int display_codepage; -#else - /* If true, allow characters in the range 160-255 */ - gboolean eight_bit_clean; - /* - * If true, also allow characters in the range 128-159. - * This is reported to break on many terminals (xterm, qansi-m). - */ - gboolean full_eight_bits; -#endif /* !HAVE_CHARSET */ - /* - * If utf-8 terminal utf8_display = TRUE - * Display bits set UTF-8 - */ - gboolean utf8_display; - - /* Set if the nice message (hint) bar is visible */ - gboolean message_visible; - /* Set if the nice and useful keybar is visible */ - gboolean keybar_visible; - -#ifdef ENABLE_BACKGROUND - /* If true, this is a background process */ - gboolean we_are_background; -#endif /* ENABLE_BACKGROUND */ - - struct - { - /* Asks for confirmation before clean up of history */ - gboolean confirm_history_cleanup; - - /* Set if you want the possible completions dialog for the first time */ - gboolean show_all_if_ambiguous; - - /* Ugly hack in order to distinguish between left and right panel in menubar */ - /* Set if the command is being run from the "Right" menu */ - gboolean is_right; /* If the selected menu was the right */ - } widget; - - /* The user's shell */ - mc_shell_t *shell; - - struct - { - /* Use the specified skin */ - char *skin; - /* Dialog window and drop down menu have a shadow */ - gboolean shadows; - - char *setup_color_string; - char *term_color_string; - char *color_terminal_string; - /* colors specified on the command line: they override any other setting */ - char *command_line_colors; - -#ifndef LINUX_CONS_SAVER_C - /* Used only in mc, not in cons.saver */ - char console_flag; -#endif /* !LINUX_CONS_SAVER_C */ - /* If using a subshell for evaluating commands this is true */ - gboolean use_subshell; - -#ifdef ENABLE_SUBSHELL - /* File descriptors of the pseudoterminal used by the subshell */ - int subshell_pty; -#endif /* !ENABLE_SUBSHELL */ - - /* This flag is set by xterm detection routine in function main() */ - /* It is used by function toggle_subshell() */ - gboolean xterm_flag; - - /* disable x11 support */ - gboolean disable_x11; - - /* For slow terminals */ - /* If true lines are shown by spaces */ - gboolean slow_terminal; - - /* Set to force black and white display at program startup */ - gboolean disable_colors; - - /* If true use +, -, | for line drawing */ - gboolean ugly_line_drawing; - - /* Tries to use old highlight mouse tracking */ - gboolean old_mouse; - - /* If true, use + and \ keys normally and select/unselect do if M-+ / M-\. - and M-- and keypad + / - */ - gboolean alternate_plus_minus; - } tty; - - struct - { - /* Set when cd symlink following is desirable (bash mode) */ - gboolean cd_symlinks; - - /* Preallocate space before file copying */ - gboolean preallocate_space; - - } vfs; -} mc_global_t; - -/*** global variables defined in .c file *********************************************************/ - -extern mc_global_t mc_global; - -/*** declarations of public functions ************************************************************/ - -/*** inline functions ****************************************************************************/ -#endif diff --git a/recipes/wip/files/mc/source/lib/hook.c b/recipes/wip/files/mc/source/lib/hook.c deleted file mode 100644 index 9a89978968..0000000000 --- a/recipes/wip/files/mc/source/lib/hook.c +++ /dev/null @@ -1,133 +0,0 @@ -/* - Hooks. - - Slavaz: Warning! this file is deprecated and should be replaced - by mcevents functional. - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Miguel de Icaza, 1994, 1995, 1996 - Janne Kukonlehto, 1994, 1995, 1996 - Dugan Porter, 1994, 1995, 1996 - Jakub Jelinek, 1994, 1995, 1996 - Mauricio Plaza, 1994, 1995, 1996 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file - * \brief Source: hooks - */ - -#include - -#include "lib/global.h" -#include "lib/hook.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/*** file scope functions ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -add_hook (hook_t **hook_list, void (*hook_fn) (void *), void *data) -{ - hook_t *new_hook = g_new (hook_t, 1); - - new_hook->hook_fn = hook_fn; - new_hook->next = *hook_list; - new_hook->hook_data = data; - - *hook_list = new_hook; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -execute_hooks (hook_t *hook_list) -{ - hook_t *new_hook = NULL; - hook_t *p; - - /* We copy the hook list first so tahat we let the hook - * function call delete_hook - */ - - while (hook_list != NULL) - { - add_hook (&new_hook, hook_list->hook_fn, hook_list->hook_data); - hook_list = hook_list->next; - } - p = new_hook; - - while (new_hook != NULL) - { - new_hook->hook_fn (new_hook->hook_data); - new_hook = new_hook->next; - } - - for (hook_list = p; hook_list != NULL;) - { - p = hook_list; - hook_list = hook_list->next; - g_free (p); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -delete_hook (hook_t **hook_list, void (*hook_fn) (void *)) -{ - hook_t *new_list = NULL; - hook_t *current, *next; - - for (current = *hook_list; current != NULL; current = next) - { - next = current->next; - if (current->hook_fn == hook_fn) - g_free (current); - else - add_hook (&new_list, current->hook_fn, current->hook_data); - } - *hook_list = new_list; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -hook_present (hook_t *hook_list, void (*hook_fn) (void *)) -{ - hook_t *p; - - for (p = hook_list; p != NULL; p = p->next) - if (p->hook_fn == hook_fn) - return TRUE; - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/hook.h b/recipes/wip/files/mc/source/lib/hook.h deleted file mode 100644 index 0cd3f4669b..0000000000 --- a/recipes/wip/files/mc/source/lib/hook.h +++ /dev/null @@ -1,34 +0,0 @@ -/** \file lib/hook.h - * \brief Header: hooks - */ - -#ifndef MC_HOOK_H -#define MC_HOOK_H - -#include "lib/global.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct hook_t -{ - void (*hook_fn) (void *); - void *hook_data; - struct hook_t *next; -} hook_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -void add_hook (hook_t ** hook_list, void (*hook_fn) (void *), void *data); -void execute_hooks (hook_t * hook_list); -void delete_hook (hook_t ** hook_list, void (*hook_fn) (void *)); -gboolean hook_present (hook_t * hook_list, void (*hook_fn) (void *)); - -/*** inline functions **************************************************/ - -#endif /* MC_HOOK_H */ diff --git a/recipes/wip/files/mc/source/lib/idx.h b/recipes/wip/files/mc/source/lib/idx.h deleted file mode 100644 index 43793f2d62..0000000000 --- a/recipes/wip/files/mc/source/lib/idx.h +++ /dev/null @@ -1,144 +0,0 @@ -/* A type for indices and sizes. - Copyright (C) 2020-2024 Free Software Foundation, Inc. - This file is part of the GNU C Library. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . */ - -#ifndef _IDX_H -#define _IDX_H - -/* Get ptrdiff_t. */ -#include - -/* Get PTRDIFF_MAX. */ -#include - -/* The type 'idx_t' holds an (array) index or an (object) size. - Its implementation promotes to a signed integer type, - which can hold the values - 0..2^63-1 (on 64-bit platforms) or - 0..2^31-1 (on 32-bit platforms). - - Why a signed integer type? - - * Security: Signed types can be checked for overflow via - '-fsanitize=undefined', but unsigned types cannot. - - * Comparisons without surprises: ISO C99 § 6.3.1.8 specifies a few - surprising results for comparisons, such as - - (int) -3 < (unsigned long) 7 => false - (int) -3 < (unsigned int) 7 => false - and on 32-bit machines: - (long) -3 < (unsigned int) 7 => false - - This is surprising because the natural comparison order is by - value in the realm of infinite-precision signed integers (ℤ). - - The best way to get rid of such surprises is to use signed types - for numerical integer values, and use unsigned types only for - bit masks and enums. - - Why not use 'size_t' directly? - - * Because 'size_t' is an unsigned type, and a signed type is better. - See above. - - Why not use 'ssize_t'? - - * 'ptrdiff_t' is more portable; it is standardized by ISO C - whereas 'ssize_t' is standardized only by POSIX. - - * 'ssize_t' is not required to be as wide as 'size_t', and some - now-obsolete POSIX platforms had 'size_t' wider than 'ssize_t'. - - * Conversely, some now-obsolete platforms had 'ptrdiff_t' wider - than 'size_t', which can be a win and conforms to POSIX. - - Won't this cause a problem with objects larger than PTRDIFF_MAX? - - * Typical modern or large platforms do not allocate such objects, - so this is not much of a problem in practice; for example, you - can safely write 'idx_t len = strlen (s);'. To port to older - small platforms where allocations larger than PTRDIFF_MAX could - in theory be a problem, you can use Gnulib's ialloc module, or - functions like ximalloc in Gnulib's xalloc module. - - Why not use 'ptrdiff_t' directly? - - * Maintainability: When reading and modifying code, it helps to know that - a certain variable cannot have negative values. For example, when you - have a loop - - int n = ...; - for (int i = 0; i < n; i++) ... - - or - - ptrdiff_t n = ...; - for (ptrdiff_t i = 0; i < n; i++) ... - - you have to ask yourself "what if n < 0?". Whereas in - - idx_t n = ...; - for (idx_t i = 0; i < n; i++) ... - - you know that this case cannot happen. - - Similarly, when a programmer writes - - idx_t = ptr2 - ptr1; - - there is an implied assertion that ptr1 and ptr2 point into the same - object and that ptr1 <= ptr2. - - * Being future-proof: In the future, range types (integers which are - constrained to a certain range of values) may be added to C compilers - or to the C standard. Several programming languages (Ada, Haskell, - Common Lisp, Pascal) already have range types. Such range types may - help producing good code and good warnings. The type 'idx_t' could - then be typedef'ed to a range type that is signed after promotion. */ - -#ifdef __cplusplus -extern "C" { -#endif - - -/* In the future, idx_t could be typedef'ed to a signed range type. - The clang "extended integer types", supported in Clang 11 or newer - , - are a special case of range types. However, these types don't support binary - operators with plain integer types (e.g. expressions such as x > 1). - Therefore, they don't behave like signed types (and not like unsigned types - either). So, we cannot use them here. */ - -/* Use the signed type 'ptrdiff_t'. */ -/* Note: ISO C does not mandate that 'size_t' and 'ptrdiff_t' have the same - size, but it is so on all platforms we have seen since 1990. */ -typedef ptrdiff_t idx_t; - -/* IDX_MAX is the maximum value of an idx_t. */ -#define IDX_MAX PTRDIFF_MAX - -/* So far no need has been found for an IDX_WIDTH macro. - Perhaps there should be another macro IDX_VALUE_BITS that does not - count the sign bit and is therefore one less than PTRDIFF_WIDTH. */ - - -#ifdef __cplusplus -} -#endif - -#endif /* _IDX_H */ diff --git a/recipes/wip/files/mc/source/lib/intprops-internal.h b/recipes/wip/files/mc/source/lib/intprops-internal.h deleted file mode 100644 index 443024c665..0000000000 --- a/recipes/wip/files/mc/source/lib/intprops-internal.h +++ /dev/null @@ -1,399 +0,0 @@ -/* intprops-internal.h -- properties of integer types not visible to users - - Copyright (C) 2001-2024 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - This 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 Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with this program. If not, see . */ - -#ifndef _GL_INTPROPS_INTERNAL_H -#define _GL_INTPROPS_INTERNAL_H - -#include - -/* Pacify GCC 13.2 in some calls to _GL_EXPR_SIGNED. */ -#if defined __GNUC__ && 4 < __GNUC__ + (3 <= __GNUC_MINOR__) -# pragma GCC diagnostic ignored "-Wtype-limits" -#endif - -/* Return a value with the common real type of E and V and the value of V. - Do not evaluate E. */ -#define _GL_INT_CONVERT(e, v) ((1 ? 0 : (e)) + (v)) - -/* Act like _GL_INT_CONVERT (E, -V) but work around a bug in IRIX 6.5 cc; see - . */ -#define _GL_INT_NEGATE_CONVERT(e, v) ((1 ? 0 : (e)) - (v)) - -/* The extra casts in the following macros work around compiler bugs, - e.g., in Cray C 5.0.3.0. */ - -/* True if the real type T is signed. */ -#define _GL_TYPE_SIGNED(t) (! ((t) 0 < (t) -1)) - -/* Return 1 if the real expression E, after promotion, has a - signed or floating type. Do not evaluate E. */ -#define _GL_EXPR_SIGNED(e) (_GL_INT_NEGATE_CONVERT (e, 1) < 0) - - -/* Minimum and maximum values for integer types and expressions. */ - -/* The width in bits of the integer type or expression T. - Do not evaluate T. T must not be a bit-field expression. - Padding bits are not supported; this is checked at compile-time below. */ -#define _GL_TYPE_WIDTH(t) (sizeof (t) * CHAR_BIT) - -/* The maximum and minimum values for the type of the expression E, - after integer promotion. E is not evaluated. */ -#define _GL_INT_MINIMUM(e) \ - (_GL_EXPR_SIGNED (e) \ - ? ~ _GL_SIGNED_INT_MAXIMUM (e) \ - : _GL_INT_CONVERT (e, 0)) -#define _GL_INT_MAXIMUM(e) \ - (_GL_EXPR_SIGNED (e) \ - ? _GL_SIGNED_INT_MAXIMUM (e) \ - : _GL_INT_NEGATE_CONVERT (e, 1)) -#define _GL_SIGNED_INT_MAXIMUM(e) \ - (((_GL_INT_CONVERT (e, 1) << (_GL_TYPE_WIDTH (+ (e)) - 2)) - 1) * 2 + 1) - -/* Work around OpenVMS incompatibility with C99. */ -#if !defined LLONG_MAX && defined __INT64_MAX -# define LLONG_MAX __INT64_MAX -# define LLONG_MIN __INT64_MIN -#endif - -/* This include file assumes that signed types are two's complement without - padding bits; the above macros have undefined behavior otherwise. - If this is a problem for you, please let us know how to fix it for your host. - This assumption is tested by the intprops-tests module. */ - -/* Does the __typeof__ keyword work? This could be done by - 'configure', but for now it's easier to do it by hand. */ -#if (2 <= __GNUC__ \ - || (4 <= __clang_major__) \ - || (1210 <= __IBMC__ && defined __IBM__TYPEOF__) \ - || (0x5110 <= __SUNPRO_C && !__STDC__)) -# define _GL_HAVE___TYPEOF__ 1 -#else -# define _GL_HAVE___TYPEOF__ 0 -#endif - -/* Return 1 if the integer type or expression T might be signed. Return 0 - if it is definitely unsigned. T must not be a bit-field expression. - This macro does not evaluate its argument, and expands to an - integer constant expression. */ -#if _GL_HAVE___TYPEOF__ -# define _GL_SIGNED_TYPE_OR_EXPR(t) _GL_TYPE_SIGNED (__typeof__ (t)) -#else -# define _GL_SIGNED_TYPE_OR_EXPR(t) 1 -#endif - -/* Return 1 if - A would overflow in [MIN,MAX] arithmetic. - A should not have side effects, and A's type should be an - integer with minimum value MIN and maximum MAX. */ -#define _GL_INT_NEGATE_RANGE_OVERFLOW(a, min, max) \ - ((min) < 0 ? (a) < - (max) : 0 < (a)) - -/* True if __builtin_add_overflow (A, B, P) and __builtin_sub_overflow - (A, B, P) work when P is non-null. */ -#ifdef __EDG__ -/* EDG-based compilers like nvc 22.1 cannot add 64-bit signed to unsigned - . */ -# define _GL_HAS_BUILTIN_ADD_OVERFLOW 0 -#elif defined __has_builtin -# define _GL_HAS_BUILTIN_ADD_OVERFLOW __has_builtin (__builtin_add_overflow) -/* __builtin_{add,sub}_overflow exists but is not reliable in GCC 5.x and 6.x, - see . */ -#elif 7 <= __GNUC__ -# define _GL_HAS_BUILTIN_ADD_OVERFLOW 1 -#else -# define _GL_HAS_BUILTIN_ADD_OVERFLOW 0 -#endif - -/* True if __builtin_mul_overflow (A, B, P) works when P is non-null. */ -#if defined __clang_major__ && __clang_major__ < 14 -/* Work around Clang bug . */ -# define _GL_HAS_BUILTIN_MUL_OVERFLOW 0 -#else -# define _GL_HAS_BUILTIN_MUL_OVERFLOW _GL_HAS_BUILTIN_ADD_OVERFLOW -#endif - -/* True if __builtin_add_overflow_p (A, B, C) works, and similarly for - __builtin_sub_overflow_p and __builtin_mul_overflow_p. */ -#ifdef __EDG__ -/* In EDG-based compilers like ICC 2021.3 and earlier, - __builtin_add_overflow_p etc. are not treated as integral constant - expressions even when all arguments are. */ -# define _GL_HAS_BUILTIN_OVERFLOW_P 0 -#elif defined __has_builtin -# define _GL_HAS_BUILTIN_OVERFLOW_P __has_builtin (__builtin_mul_overflow_p) -#else -# define _GL_HAS_BUILTIN_OVERFLOW_P (7 <= __GNUC__) -#endif - -#if (!defined _GL_STDCKDINT_H && 202311 <= __STDC_VERSION__ \ - && ! (_GL_HAS_BUILTIN_ADD_OVERFLOW && _GL_HAS_BUILTIN_MUL_OVERFLOW)) -# include -#endif - -/* Store the low-order bits of A + B, A - B, A * B, respectively, into *R. - Return 1 if the result overflows. Arguments should not have side - effects and A, B and *R can be of any integer type other than char, - bool, a bit-precise integer type, or an enumeration type. */ -#if _GL_HAS_BUILTIN_ADD_OVERFLOW -# define _GL_INT_ADD_WRAPV(a, b, r) __builtin_add_overflow (a, b, r) -# define _GL_INT_SUBTRACT_WRAPV(a, b, r) __builtin_sub_overflow (a, b, r) -#elif defined ckd_add && defined ckd_sub && !defined _GL_STDCKDINT_H -# define _GL_INT_ADD_WRAPV(a, b, r) ckd_add (r, + (a), + (b)) -# define _GL_INT_SUBTRACT_WRAPV(a, b, r) ckd_sub (r, + (a), + (b)) -#else -# define _GL_INT_ADD_WRAPV(a, b, r) \ - _GL_INT_OP_WRAPV (a, b, r, +, _GL_INT_ADD_RANGE_OVERFLOW) -# define _GL_INT_SUBTRACT_WRAPV(a, b, r) \ - _GL_INT_OP_WRAPV (a, b, r, -, _GL_INT_SUBTRACT_RANGE_OVERFLOW) -#endif -#if _GL_HAS_BUILTIN_MUL_OVERFLOW -# if ((9 < __GNUC__ + (3 <= __GNUC_MINOR__) \ - || (__GNUC__ == 8 && 4 <= __GNUC_MINOR__)) \ - && !defined __EDG__) -# define _GL_INT_MULTIPLY_WRAPV(a, b, r) __builtin_mul_overflow (a, b, r) -# else - /* Work around GCC bug 91450. */ -# define _GL_INT_MULTIPLY_WRAPV(a, b, r) \ - ((!_GL_SIGNED_TYPE_OR_EXPR (*(r)) && _GL_EXPR_SIGNED (a) && _GL_EXPR_SIGNED (b) \ - && _GL_INT_MULTIPLY_RANGE_OVERFLOW (a, b, \ - (__typeof__ (*(r))) 0, \ - (__typeof__ (*(r))) -1)) \ - ? ((void) __builtin_mul_overflow (a, b, r), 1) \ - : __builtin_mul_overflow (a, b, r)) -# endif -#elif defined ckd_mul && !defined _GL_STDCKDINT_H -# define _GL_INT_MULTIPLY_WRAPV(a, b, r) ckd_mul (r, + (a), + (b)) -#else -# define _GL_INT_MULTIPLY_WRAPV(a, b, r) \ - _GL_INT_OP_WRAPV (a, b, r, *, _GL_INT_MULTIPLY_RANGE_OVERFLOW) -#endif - -/* Nonzero if this compiler has GCC bug 68193 or Clang bug 25390. See: - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68193 - https://llvm.org/bugs/show_bug.cgi?id=25390 - For now, assume GCC < 14 and all Clang versions generate bogus - warnings for _Generic. This matters only for compilers that - lack relevant builtins. */ -#if (__GNUC__ && __GNUC__ < 14) || defined __clang__ -# define _GL__GENERIC_BOGUS 1 -#else -# define _GL__GENERIC_BOGUS 0 -#endif - -/* Store the low-order bits of A B into *R, where OP specifies - the operation and OVERFLOW the overflow predicate. Return 1 if the - result overflows. Arguments should not have side effects, - and A, B and *R can be of any integer type other than char, bool, a - bit-precise integer type, or an enumeration type. */ -#if 201112 <= __STDC_VERSION__ && !_GL__GENERIC_BOGUS -# define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \ - (_Generic \ - (*(r), \ - signed char: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - signed char, SCHAR_MIN, SCHAR_MAX), \ - unsigned char: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - unsigned char, 0, UCHAR_MAX), \ - short int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - short int, SHRT_MIN, SHRT_MAX), \ - unsigned short int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - unsigned short int, 0, USHRT_MAX), \ - int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - int, INT_MIN, INT_MAX), \ - unsigned int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - unsigned int, 0, UINT_MAX), \ - long int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ - long int, LONG_MIN, LONG_MAX), \ - unsigned long int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ - unsigned long int, 0, ULONG_MAX), \ - long long int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ - long long int, LLONG_MIN, LLONG_MAX), \ - unsigned long long int: \ - _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ - unsigned long long int, 0, ULLONG_MAX))) -#else -/* Store the low-order bits of A B into *R, where OP specifies - the operation and OVERFLOW the overflow predicate. If *R is - signed, its type is ST with bounds SMIN..SMAX; otherwise its type - is UT with bounds U..UMAX. ST and UT are narrower than int. - Return 1 if the result overflows. Arguments should not have side - effects, and A, B and *R can be of any integer type other than - char, bool, a bit-precise integer type, or an enumeration type. */ -# if _GL_HAVE___TYPEOF__ -# define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \ - (_GL_TYPE_SIGNED (__typeof__ (*(r))) \ - ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, st, smin, smax) \ - : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, ut, 0, umax)) -# else -# define _GL_INT_OP_WRAPV_SMALLISH(a,b,r,op,overflow,st,smin,smax,ut,umax) \ - (overflow (a, b, smin, smax) \ - ? (overflow (a, b, 0, umax) \ - ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 1) \ - : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) < 0) \ - : (overflow (a, b, 0, umax) \ - ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st)) >= 0 \ - : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a,b,op,unsigned,st), 0))) -# endif - -# define _GL_INT_OP_WRAPV(a, b, r, op, overflow) \ - (sizeof *(r) == sizeof (signed char) \ - ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \ - signed char, SCHAR_MIN, SCHAR_MAX, \ - unsigned char, UCHAR_MAX) \ - : sizeof *(r) == sizeof (short int) \ - ? _GL_INT_OP_WRAPV_SMALLISH (a, b, r, op, overflow, \ - short int, SHRT_MIN, SHRT_MAX, \ - unsigned short int, USHRT_MAX) \ - : sizeof *(r) == sizeof (int) \ - ? (_GL_EXPR_SIGNED (*(r)) \ - ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - int, INT_MIN, INT_MAX) \ - : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned int, \ - unsigned int, 0, UINT_MAX)) \ - : _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow)) -# ifdef LLONG_MAX -# define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ - (sizeof *(r) == sizeof (long int) \ - ? (_GL_EXPR_SIGNED (*(r)) \ - ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ - long int, LONG_MIN, LONG_MAX) \ - : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ - unsigned long int, 0, ULONG_MAX)) \ - : (_GL_EXPR_SIGNED (*(r)) \ - ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ - long long int, LLONG_MIN, LLONG_MAX) \ - : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long long int, \ - unsigned long long int, 0, ULLONG_MAX))) -# else -# define _GL_INT_OP_WRAPV_LONGISH(a, b, r, op, overflow) \ - (_GL_EXPR_SIGNED (*(r)) \ - ? _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ - long int, LONG_MIN, LONG_MAX) \ - : _GL_INT_OP_CALC (a, b, r, op, overflow, unsigned long int, \ - unsigned long int, 0, ULONG_MAX)) -# endif -#endif - -/* Store the low-order bits of A B into *R, where the operation - is given by OP. Use the unsigned type UT for calculation to avoid - overflow problems. *R's type is T, with extrema TMIN and TMAX. - T can be any signed integer type other than char, bool, a - bit-precise integer type, or an enumeration type. - Return 1 if the result overflows. */ -#define _GL_INT_OP_CALC(a, b, r, op, overflow, ut, t, tmin, tmax) \ - (overflow (a, b, tmin, tmax) \ - ? (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 1) \ - : (*(r) = _GL_INT_OP_WRAPV_VIA_UNSIGNED (a, b, op, ut, t), 0)) - -/* Return 1 if the integer expressions A - B and -A would overflow, - respectively. Arguments should not have side effects, - and can be any signed integer type other than char, bool, a - bit-precise integer type, or an enumeration type. - These macros are tuned for their last input argument being a constant. */ - -#if _GL_HAS_BUILTIN_OVERFLOW_P -# define _GL_INT_NEGATE_OVERFLOW(a) \ - __builtin_sub_overflow_p (0, a, (__typeof__ (- (a))) 0) -#else -# define _GL_INT_NEGATE_OVERFLOW(a) \ - _GL_INT_NEGATE_RANGE_OVERFLOW (a, _GL_INT_MINIMUM (a), _GL_INT_MAXIMUM (a)) -#endif - -/* Return the low-order bits of A B, where the operation is given - by OP. Use the unsigned type UT for calculation to avoid undefined - behavior on signed integer overflow, and convert the result to type T. - UT is at least as wide as T and is no narrower than unsigned int, - T is two's complement, and there is no padding or trap representations. - Assume that converting UT to T yields the low-order bits, as is - done in all known two's-complement C compilers. E.g., see: - https://gcc.gnu.org/onlinedocs/gcc/Integers-implementation.html - - According to the C standard, converting UT to T yields an - implementation-defined result or signal for values outside T's - range. However, code that works around this theoretical problem - runs afoul of a compiler bug in Oracle Studio 12.3 x86. See: - https://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html - As the compiler bug is real, don't try to work around the - theoretical problem. */ - -#define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, ut, t) \ - ((t) ((ut) (a) op (ut) (b))) - -/* Return true if the numeric values A + B, A - B, A * B fall outside - the range TMIN..TMAX. Arguments should not have side effects - and can be any integer type other than char, bool, - a bit-precise integer type, or an enumeration type. - TMIN should be signed and nonpositive. - TMAX should be positive, and should be signed unless TMIN is zero. */ -#define _GL_INT_ADD_RANGE_OVERFLOW(a, b, tmin, tmax) \ - ((b) < 0 \ - ? (((tmin) \ - ? ((_GL_EXPR_SIGNED (_GL_INT_CONVERT (a, (tmin) - (b))) || (b) < (tmin)) \ - && (a) < (tmin) - (b)) \ - : (a) <= -1 - (b)) \ - || ((_GL_EXPR_SIGNED (a) ? 0 <= (a) : (tmax) < (a)) && (tmax) < (a) + (b))) \ - : (a) < 0 \ - ? (((tmin) \ - ? ((_GL_EXPR_SIGNED (_GL_INT_CONVERT (b, (tmin) - (a))) || (a) < (tmin)) \ - && (b) < (tmin) - (a)) \ - : (b) <= -1 - (a)) \ - || ((_GL_EXPR_SIGNED (_GL_INT_CONVERT (a, b)) || (tmax) < (b)) \ - && (tmax) < (a) + (b))) \ - : (tmax) < (b) || (tmax) - (b) < (a)) -#define _GL_INT_SUBTRACT_RANGE_OVERFLOW(a, b, tmin, tmax) \ - (((a) < 0) == ((b) < 0) \ - ? ((a) < (b) \ - ? !(tmin) || -1 - (tmin) < (b) - (a) - 1 \ - : (tmax) < (a) - (b)) \ - : (a) < 0 \ - ? ((!_GL_EXPR_SIGNED (_GL_INT_CONVERT ((a) - (tmin), b)) && (a) - (tmin) < 0) \ - || (a) - (tmin) < (b)) \ - : ((! (_GL_EXPR_SIGNED (_GL_INT_CONVERT (tmax, b)) \ - && _GL_EXPR_SIGNED (_GL_INT_CONVERT ((tmax) + (b), a))) \ - && (tmax) <= -1 - (b)) \ - || (tmax) + (b) < (a))) -#define _GL_INT_MULTIPLY_RANGE_OVERFLOW(a, b, tmin, tmax) \ - ((b) < 0 \ - ? ((a) < 0 \ - ? (_GL_EXPR_SIGNED (_GL_INT_CONVERT (tmax, b)) \ - ? (a) < (tmax) / (b) \ - : ((_GL_INT_NEGATE_OVERFLOW (b) \ - ? _GL_INT_CONVERT (b, tmax) >> (_GL_TYPE_WIDTH (+ (b)) - 1) \ - : (tmax) / -(b)) \ - <= -1 - (a))) \ - : _GL_INT_NEGATE_OVERFLOW (_GL_INT_CONVERT (b, tmin)) && (b) == -1 \ - ? (_GL_EXPR_SIGNED (a) \ - ? 0 < (a) + (tmin) \ - : 0 < (a) && -1 - (tmin) < (a) - 1) \ - : (tmin) / (b) < (a)) \ - : (b) == 0 \ - ? 0 \ - : ((a) < 0 \ - ? (_GL_INT_NEGATE_OVERFLOW (_GL_INT_CONVERT (a, tmin)) && (a) == -1 \ - ? (_GL_EXPR_SIGNED (b) ? 0 < (b) + (tmin) : -1 - (tmin) < (b) - 1) \ - : (tmin) / (a) < (b)) \ - : (tmax) / (b) < (a))) - -#endif /* _GL_INTPROPS_INTERNAL_H */ diff --git a/recipes/wip/files/mc/source/lib/intprops.h b/recipes/wip/files/mc/source/lib/intprops.h deleted file mode 100644 index 43734f3440..0000000000 --- a/recipes/wip/files/mc/source/lib/intprops.h +++ /dev/null @@ -1,335 +0,0 @@ -/* intprops.h -- properties of integer types - - Copyright (C) 2001-2024 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - This 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 Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with this program. If not, see . */ - -#ifndef _GL_INTPROPS_H -#define _GL_INTPROPS_H - -#include "intprops-internal.h" - -/* The extra casts in the following macros work around compiler bugs, - e.g., in Cray C 5.0.3.0. */ - -/* True if the arithmetic type T is an integer type. bool counts as - an integer. */ -#define TYPE_IS_INTEGER(t) ((t) 1.5 == 1) - -/* True if the real type T is signed. */ -#define TYPE_SIGNED(t) _GL_TYPE_SIGNED (t) - -/* Return 1 if the real expression E, after promotion, has a - signed or floating type. Do not evaluate E. */ -#define EXPR_SIGNED(e) _GL_EXPR_SIGNED (e) - - -/* Minimum and maximum values for integer types and expressions. */ - -/* The width in bits of the integer type or expression T. - Do not evaluate T. T must not be a bit-field expression. - Padding bits are not supported; this is checked at compile-time below. */ -#define TYPE_WIDTH(t) _GL_TYPE_WIDTH (t) - -/* The maximum and minimum values for the integer type T. */ -#define TYPE_MINIMUM(t) ((t) ~ TYPE_MAXIMUM (t)) -#define TYPE_MAXIMUM(t) \ - ((t) (! TYPE_SIGNED (t) \ - ? (t) -1 \ - : ((((t) 1 << (TYPE_WIDTH (t) - 2)) - 1) * 2 + 1))) - -/* Bound on length of the string representing an unsigned integer - value representable in B bits. log10 (2.0) < 146/485. The - smallest value of B where this bound is not tight is 2621. */ -#define INT_BITS_STRLEN_BOUND(b) (((b) * 146 + 484) / 485) - -/* Bound on length of the string representing an integer type or expression T. - T must not be a bit-field expression. - - Subtract 1 for the sign bit if T is signed, and then add 1 more for - a minus sign if needed. - - Because _GL_SIGNED_TYPE_OR_EXPR sometimes returns 1 when its argument is - unsigned, this macro may overestimate the true bound by one byte when - applied to unsigned types of size 2, 4, 16, ... bytes. */ -#define INT_STRLEN_BOUND(t) \ - (INT_BITS_STRLEN_BOUND (TYPE_WIDTH (t) - _GL_SIGNED_TYPE_OR_EXPR (t)) \ - + _GL_SIGNED_TYPE_OR_EXPR (t)) - -/* Bound on buffer size needed to represent an integer type or expression T, - including the terminating null. T must not be a bit-field expression. */ -#define INT_BUFSIZE_BOUND(t) (INT_STRLEN_BOUND (t) + 1) - - -/* Range overflow checks. - - The INT__RANGE_OVERFLOW macros return 1 if the corresponding C - operators overflow arithmetically when given the same arguments. - These macros do not rely on undefined or implementation-defined behavior. - Although their implementations are simple and straightforward, - they are harder to use and may be less efficient than the - INT__WRAPV, INT__OK, and INT__OVERFLOW macros described below. - - Example usage: - - long int i = ...; - long int j = ...; - if (INT_MULTIPLY_RANGE_OVERFLOW (i, j, LONG_MIN, LONG_MAX)) - printf ("multiply would overflow"); - else - printf ("product is %ld", i * j); - - Restrictions on *_RANGE_OVERFLOW macros: - - These macros do not check for all possible numerical problems or - undefined or unspecified behavior: they do not check for division - by zero, for bad shift counts, or for shifting negative numbers. - - These macros may evaluate their arguments zero or multiple times, - so the arguments should not have side effects. The arithmetic - arguments (including the MIN and MAX arguments) must be of the same - integer type after the usual arithmetic conversions, and the type - must have minimum value MIN and maximum MAX. Unsigned types should - use a zero MIN of the proper type. - - Because all arguments are subject to integer promotions, these - macros typically do not work on types narrower than 'int'. - - These macros are tuned for constant MIN and MAX. For commutative - operations such as A + B, they are also tuned for constant B. */ - -/* Return 1 if A + B would overflow in [MIN,MAX] arithmetic. - See above for restrictions. */ -#define INT_ADD_RANGE_OVERFLOW(a, b, min, max) \ - ((b) < 0 \ - ? (a) < (min) - (b) \ - : (max) - (b) < (a)) - -/* Return 1 if A - B would overflow in [MIN,MAX] arithmetic. - See above for restrictions. */ -#define INT_SUBTRACT_RANGE_OVERFLOW(a, b, min, max) \ - ((b) < 0 \ - ? (max) + (b) < (a) \ - : (a) < (min) + (b)) - -/* Return 1 if - A would overflow in [MIN,MAX] arithmetic. - See above for restrictions. */ -#define INT_NEGATE_RANGE_OVERFLOW(a, min, max) \ - _GL_INT_NEGATE_RANGE_OVERFLOW (a, min, max) - -/* Return 1 if A * B would overflow in [MIN,MAX] arithmetic. - See above for restrictions. Avoid && and || as they tickle - bugs in Sun C 5.11 2010/08/13 and other compilers; see - . */ -#define INT_MULTIPLY_RANGE_OVERFLOW(a, b, min, max) \ - ((b) < 0 \ - ? ((a) < 0 \ - ? (a) < (max) / (b) \ - : (b) == -1 \ - ? 0 \ - : (min) / (b) < (a)) \ - : (b) == 0 \ - ? 0 \ - : ((a) < 0 \ - ? (a) < (min) / (b) \ - : (max) / (b) < (a))) - -/* Return 1 if A / B would overflow in [MIN,MAX] arithmetic. - See above for restrictions. Do not check for division by zero. */ -#define INT_DIVIDE_RANGE_OVERFLOW(a, b, min, max) \ - ((min) < 0 && (b) == -1 && (a) < - (max)) - -/* Return 1 if A % B would overflow in [MIN,MAX] arithmetic. - See above for restrictions. Do not check for division by zero. - Mathematically, % should never overflow, but on x86-like hosts - INT_MIN % -1 traps, and the C standard permits this, so treat this - as an overflow too. */ -#define INT_REMAINDER_RANGE_OVERFLOW(a, b, min, max) \ - INT_DIVIDE_RANGE_OVERFLOW (a, b, min, max) - -/* Return 1 if A << B would overflow in [MIN,MAX] arithmetic. - See above for restrictions. Here, MIN and MAX are for A only, and B need - not be of the same type as the other arguments. The C standard says that - behavior is undefined for shifts unless 0 <= B < wordwidth, and that when - A is negative then A << B has undefined behavior and A >> B has - implementation-defined behavior, but do not check these other - restrictions. */ -#define INT_LEFT_SHIFT_RANGE_OVERFLOW(a, b, min, max) \ - ((a) < 0 \ - ? (a) < (min) >> (b) \ - : (max) >> (b) < (a)) - -/* The _GL*_OVERFLOW macros have the same restrictions as the - *_RANGE_OVERFLOW macros, except that they do not assume that operands - (e.g., A and B) have the same type as MIN and MAX. Instead, they assume - that the result (e.g., A + B) has that type. */ -#if _GL_HAS_BUILTIN_OVERFLOW_P -# define _GL_ADD_OVERFLOW(a, b, min, max) \ - __builtin_add_overflow_p (a, b, (__typeof__ ((a) + (b))) 0) -# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \ - __builtin_sub_overflow_p (a, b, (__typeof__ ((a) - (b))) 0) -# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \ - __builtin_mul_overflow_p (a, b, (__typeof__ ((a) * (b))) 0) -#else -# define _GL_ADD_OVERFLOW(a, b, min, max) \ - ((min) < 0 ? INT_ADD_RANGE_OVERFLOW (a, b, min, max) \ - : (a) < 0 ? (b) <= (a) + (b) \ - : (b) < 0 ? (a) <= (a) + (b) \ - : (a) + (b) < (b)) -# define _GL_SUBTRACT_OVERFLOW(a, b, min, max) \ - ((min) < 0 ? INT_SUBTRACT_RANGE_OVERFLOW (a, b, min, max) \ - : (a) < 0 ? 1 \ - : (b) < 0 ? (a) - (b) <= (a) \ - : (a) < (b)) -# define _GL_MULTIPLY_OVERFLOW(a, b, min, max) \ - (((min) == 0 && (((a) < 0 && 0 < (b)) || ((b) < 0 && 0 < (a)))) \ - || INT_MULTIPLY_RANGE_OVERFLOW (a, b, min, max)) -#endif -#define _GL_DIVIDE_OVERFLOW(a, b, min, max) \ - ((min) < 0 ? (b) == _GL_INT_NEGATE_CONVERT (min, 1) && (a) < - (max) \ - : (a) < 0 ? (b) <= (a) + (b) - 1 \ - : (b) < 0 && (a) + (b) <= (a)) -#define _GL_REMAINDER_OVERFLOW(a, b, min, max) \ - ((min) < 0 ? (b) == _GL_INT_NEGATE_CONVERT (min, 1) && (a) < - (max) \ - : (a) < 0 ? (a) % (b) != ((max) - (b) + 1) % (b) \ - : (b) < 0 && ! _GL_UNSIGNED_NEG_MULTIPLE (a, b, max)) - -/* Return a nonzero value if A is a mathematical multiple of B, where - A is unsigned, B is negative, and MAX is the maximum value of A's - type. A's type must be the same as (A % B)'s type. Normally (A % - -B == 0) suffices, but things get tricky if -B would overflow. */ -#define _GL_UNSIGNED_NEG_MULTIPLE(a, b, max) \ - (((b) < -_GL_SIGNED_INT_MAXIMUM (b) \ - ? (_GL_SIGNED_INT_MAXIMUM (b) == (max) \ - ? (a) \ - : (a) % (_GL_INT_CONVERT (a, _GL_SIGNED_INT_MAXIMUM (b)) + 1)) \ - : (a) % - (b)) \ - == 0) - -/* Check for integer overflow, and report low order bits of answer. - - The INT__OVERFLOW macros return 1 if the corresponding C operators - might not yield numerically correct answers due to arithmetic overflow. - The INT__WRAPV macros compute the low-order bits of the sum, - difference, and product of two C integers, and return 1 if these - low-order bits are not numerically correct. - These macros work correctly on all known practical hosts, and do not rely - on undefined behavior due to signed arithmetic overflow. - - Example usage, assuming A and B are long int: - - if (INT_MULTIPLY_OVERFLOW (a, b)) - printf ("result would overflow\n"); - else - printf ("result is %ld (no overflow)\n", a * b); - - Example usage with WRAPV flavor: - - long int result; - bool overflow = INT_MULTIPLY_WRAPV (a, b, &result); - printf ("result is %ld (%s)\n", result, - overflow ? "after overflow" : "no overflow"); - - Restrictions on these macros: - - These macros do not check for all possible numerical problems or - undefined or unspecified behavior: they do not check for division - by zero, for bad shift counts, or for shifting negative numbers. - - These macros may evaluate their arguments zero or multiple times, so the - arguments should not have side effects. - - The WRAPV macros are not constant expressions. They support only - +, binary -, and *. - - Because the WRAPV macros convert the result, they report overflow - in different circumstances than the OVERFLOW macros do. For - example, in the typical case with 16-bit 'short' and 32-bit 'int', - if A, B and *R are all of type 'short' then INT_ADD_OVERFLOW (A, B) - returns false because the addition cannot overflow after A and B - are converted to 'int', whereas INT_ADD_WRAPV (A, B, R) returns - true or false depending on whether the sum fits into 'short'. - - These macros are tuned for their last input argument being a constant. - - A, B, and *R should be integers; they need not be the same type, - and they need not be all signed or all unsigned. - However, none of the integer types should be bit-precise, - and *R's type should not be char, bool, or an enumeration type. - - Return 1 if the integer expressions A * B, A - B, -A, A * B, A / B, - A % B, and A << B would overflow, respectively. */ - -#define INT_ADD_OVERFLOW(a, b) \ - _GL_BINARY_OP_OVERFLOW (a, b, _GL_ADD_OVERFLOW) -#define INT_SUBTRACT_OVERFLOW(a, b) \ - _GL_BINARY_OP_OVERFLOW (a, b, _GL_SUBTRACT_OVERFLOW) -#define INT_NEGATE_OVERFLOW(a) _GL_INT_NEGATE_OVERFLOW (a) -#define INT_MULTIPLY_OVERFLOW(a, b) \ - _GL_BINARY_OP_OVERFLOW (a, b, _GL_MULTIPLY_OVERFLOW) -#define INT_DIVIDE_OVERFLOW(a, b) \ - _GL_BINARY_OP_OVERFLOW (a, b, _GL_DIVIDE_OVERFLOW) -#define INT_REMAINDER_OVERFLOW(a, b) \ - _GL_BINARY_OP_OVERFLOW (a, b, _GL_REMAINDER_OVERFLOW) -#define INT_LEFT_SHIFT_OVERFLOW(a, b) \ - INT_LEFT_SHIFT_RANGE_OVERFLOW (a, b, \ - _GL_INT_MINIMUM (a), _GL_INT_MAXIMUM (a)) - -/* Return 1 if the expression A B would overflow, - where OP_RESULT_OVERFLOW (A, B, MIN, MAX) does the actual test, - assuming MIN and MAX are the minimum and maximum for the result type. - Arguments should be free of side effects. */ -#define _GL_BINARY_OP_OVERFLOW(a, b, op_result_overflow) \ - op_result_overflow (a, b, \ - _GL_INT_MINIMUM (_GL_INT_CONVERT (a, b)), \ - _GL_INT_MAXIMUM (_GL_INT_CONVERT (a, b))) - -/* Store the low-order bits of A + B, A - B, A * B, respectively, into *R. - Return 1 if the result overflows. See above for restrictions. */ -#define INT_ADD_WRAPV(a, b, r) _GL_INT_ADD_WRAPV (a, b, r) -#define INT_SUBTRACT_WRAPV(a, b, r) _GL_INT_SUBTRACT_WRAPV (a, b, r) -#define INT_MULTIPLY_WRAPV(a, b, r) _GL_INT_MULTIPLY_WRAPV (a, b, r) - -/* The following macros compute A + B, A - B, and A * B, respectively. - If no overflow occurs, they set *R to the result and return 1; - otherwise, they return 0 and may modify *R. - - Example usage: - - long int result; - if (INT_ADD_OK (a, b, &result)) - printf ("result is %ld\n", result); - else - printf ("overflow\n"); - - A, B, and *R should be integers; they need not be the same type, - and they need not be all signed or all unsigned. - However, none of the integer types should be bit-precise, - and *R's type should not be char, bool, or an enumeration type. - - These macros work correctly on all known practical hosts, and do not rely - on undefined behavior due to signed arithmetic overflow. - - These macros are not constant expressions. - - These macros may evaluate their arguments zero or multiple times, so the - arguments should not have side effects. - - These macros are tuned for B being a constant. */ - -#define INT_ADD_OK(a, b, r) (! INT_ADD_WRAPV (a, b, r)) -#define INT_SUBTRACT_OK(a, b, r) (! INT_SUBTRACT_WRAPV (a, b, r)) -#define INT_MULTIPLY_OK(a, b, r) (! INT_MULTIPLY_WRAPV (a, b, r)) - -#endif /* _GL_INTPROPS_H */ diff --git a/recipes/wip/files/mc/source/lib/keybind.c b/recipes/wip/files/mc/source/lib/keybind.c deleted file mode 100644 index 430f2f51c6..0000000000 --- a/recipes/wip/files/mc/source/lib/keybind.c +++ /dev/null @@ -1,509 +0,0 @@ -/* - Definitions of key bindings. - - Copyright (C) 2005-2025 - Free Software Foundation, Inc. - - Written by: - Vitja Makarov, 2005 - Ilia Maslakov , 2009, 2012 - Andrew Borodin , 2009-2020 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include -#include -#include -#include - -#include "lib/global.h" -#include "lib/tty/key.h" /* KEY_M_ */ -#include "lib/keybind.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#define ADD_KEYMAP_NAME(name) \ - { #name, CK_##name } - -/*** file scope type declarations ****************************************************************/ - -typedef struct name_keymap_t -{ - const char *name; - long val; -} name_keymap_t; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static name_keymap_t command_names[] = { - /* common */ - ADD_KEYMAP_NAME (InsertChar), - ADD_KEYMAP_NAME (Enter), - ADD_KEYMAP_NAME (ChangePanel), - ADD_KEYMAP_NAME (Up), - ADD_KEYMAP_NAME (Down), - ADD_KEYMAP_NAME (Left), - ADD_KEYMAP_NAME (Right), - ADD_KEYMAP_NAME (LeftQuick), - ADD_KEYMAP_NAME (RightQuick), - ADD_KEYMAP_NAME (Home), - ADD_KEYMAP_NAME (End), - ADD_KEYMAP_NAME (PageUp), - ADD_KEYMAP_NAME (PageDown), - ADD_KEYMAP_NAME (HalfPageUp), - ADD_KEYMAP_NAME (HalfPageDown), - ADD_KEYMAP_NAME (Top), - ADD_KEYMAP_NAME (Bottom), - ADD_KEYMAP_NAME (TopOnScreen), - ADD_KEYMAP_NAME (MiddleOnScreen), - ADD_KEYMAP_NAME (BottomOnScreen), - ADD_KEYMAP_NAME (WordLeft), - ADD_KEYMAP_NAME (WordRight), - ADD_KEYMAP_NAME (Copy), - ADD_KEYMAP_NAME (Move), - ADD_KEYMAP_NAME (Delete), - ADD_KEYMAP_NAME (MakeDir), - ADD_KEYMAP_NAME (ChangeMode), - ADD_KEYMAP_NAME (ChangeOwn), - ADD_KEYMAP_NAME (ChangeOwnAdvanced), -#ifdef ENABLE_EXT2FS_ATTR - ADD_KEYMAP_NAME (ChangeAttributes), -#endif - ADD_KEYMAP_NAME (Remove), - ADD_KEYMAP_NAME (BackSpace), - ADD_KEYMAP_NAME (Redo), - ADD_KEYMAP_NAME (Clear), - ADD_KEYMAP_NAME (Menu), - ADD_KEYMAP_NAME (MenuLastSelected), - ADD_KEYMAP_NAME (UserMenu), - ADD_KEYMAP_NAME (EditUserMenu), - ADD_KEYMAP_NAME (Search), - ADD_KEYMAP_NAME (SearchContinue), - ADD_KEYMAP_NAME (Replace), - ADD_KEYMAP_NAME (ReplaceContinue), - ADD_KEYMAP_NAME (Help), - ADD_KEYMAP_NAME (Shell), - ADD_KEYMAP_NAME (Edit), - ADD_KEYMAP_NAME (EditNew), -#ifdef HAVE_CHARSET - ADD_KEYMAP_NAME (SelectCodepage), -#endif - ADD_KEYMAP_NAME (EditorViewerHistory), - ADD_KEYMAP_NAME (History), - ADD_KEYMAP_NAME (HistoryNext), - ADD_KEYMAP_NAME (HistoryPrev), - ADD_KEYMAP_NAME (Complete), - ADD_KEYMAP_NAME (Save), - ADD_KEYMAP_NAME (SaveAs), - ADD_KEYMAP_NAME (Goto), - ADD_KEYMAP_NAME (Reread), - ADD_KEYMAP_NAME (Refresh), - ADD_KEYMAP_NAME (Suspend), - ADD_KEYMAP_NAME (Swap), - ADD_KEYMAP_NAME (HotList), - ADD_KEYMAP_NAME (SelectInvert), - ADD_KEYMAP_NAME (ScreenList), - ADD_KEYMAP_NAME (ScreenNext), - ADD_KEYMAP_NAME (ScreenPrev), - ADD_KEYMAP_NAME (FileNext), - ADD_KEYMAP_NAME (FilePrev), - ADD_KEYMAP_NAME (DeleteToHome), - ADD_KEYMAP_NAME (DeleteToEnd), - ADD_KEYMAP_NAME (DeleteToWordBegin), - ADD_KEYMAP_NAME (DeleteToWordEnd), - ADD_KEYMAP_NAME (Cut), - ADD_KEYMAP_NAME (Store), - ADD_KEYMAP_NAME (Paste), - ADD_KEYMAP_NAME (Mark), - ADD_KEYMAP_NAME (MarkLeft), - ADD_KEYMAP_NAME (MarkRight), - ADD_KEYMAP_NAME (MarkUp), - ADD_KEYMAP_NAME (MarkDown), - ADD_KEYMAP_NAME (MarkToWordBegin), - ADD_KEYMAP_NAME (MarkToWordEnd), - ADD_KEYMAP_NAME (MarkToHome), - ADD_KEYMAP_NAME (MarkToEnd), - ADD_KEYMAP_NAME (ToggleNavigation), - ADD_KEYMAP_NAME (Sort), - ADD_KEYMAP_NAME (Options), - ADD_KEYMAP_NAME (LearnKeys), - ADD_KEYMAP_NAME (Bookmark), - ADD_KEYMAP_NAME (Quit), - ADD_KEYMAP_NAME (QuitQuiet), - ADD_KEYMAP_NAME (ExtendedKeyMap), - - /* main commands */ -#ifdef USE_INTERNAL_EDIT - ADD_KEYMAP_NAME (EditForceInternal), -#endif - ADD_KEYMAP_NAME (View), - ADD_KEYMAP_NAME (ViewRaw), - ADD_KEYMAP_NAME (ViewFile), - ADD_KEYMAP_NAME (ViewFiltered), - ADD_KEYMAP_NAME (Find), - ADD_KEYMAP_NAME (DirSize), - ADD_KEYMAP_NAME (CompareDirs), -#ifdef USE_DIFF_VIEW - ADD_KEYMAP_NAME (CompareFiles), -#endif - ADD_KEYMAP_NAME (OptionsVfs), - ADD_KEYMAP_NAME (OptionsConfirm), - ADD_KEYMAP_NAME (OptionsDisplayBits), - ADD_KEYMAP_NAME (EditExtensionsFile), - ADD_KEYMAP_NAME (EditFileHighlightFile), - ADD_KEYMAP_NAME (LinkSymbolicEdit), - ADD_KEYMAP_NAME (ExternalPanelize), - ADD_KEYMAP_NAME (Filter), -#ifdef ENABLE_VFS_SHELL - ADD_KEYMAP_NAME (ConnectShell), -#endif -#ifdef ENABLE_VFS_FTP - ADD_KEYMAP_NAME (ConnectFtp), -#endif -#ifdef ENABLE_VFS_SFTP - ADD_KEYMAP_NAME (ConnectSftp), -#endif - ADD_KEYMAP_NAME (PanelInfo), -#ifdef ENABLE_BACKGROUND - ADD_KEYMAP_NAME (Jobs), -#endif - ADD_KEYMAP_NAME (OptionsLayout), - ADD_KEYMAP_NAME (OptionsAppearance), - ADD_KEYMAP_NAME (Link), - ADD_KEYMAP_NAME (SetupListingFormat), - ADD_KEYMAP_NAME (PanelListing), -#ifdef LISTMODE_EDITOR - ADD_KEYMAP_NAME (ListMode), -#endif - ADD_KEYMAP_NAME (OptionsPanel), - ADD_KEYMAP_NAME (CdQuick), - ADD_KEYMAP_NAME (PanelQuickView), - ADD_KEYMAP_NAME (LinkSymbolicRelative), - ADD_KEYMAP_NAME (VfsList), - ADD_KEYMAP_NAME (SaveSetup), - ADD_KEYMAP_NAME (LinkSymbolic), - ADD_KEYMAP_NAME (PanelTree), - ADD_KEYMAP_NAME (Tree), -#ifdef ENABLE_VFS_UNDELFS - ADD_KEYMAP_NAME (Undelete), -#endif - ADD_KEYMAP_NAME (PutCurrentLink), - ADD_KEYMAP_NAME (PutOtherLink), - ADD_KEYMAP_NAME (HotListAdd), - ADD_KEYMAP_NAME (ShowHidden), - ADD_KEYMAP_NAME (SplitVertHoriz), - ADD_KEYMAP_NAME (SplitEqual), - ADD_KEYMAP_NAME (SplitMore), - ADD_KEYMAP_NAME (SplitLess), - ADD_KEYMAP_NAME (PutCurrentPath), - ADD_KEYMAP_NAME (PutOtherPath), - ADD_KEYMAP_NAME (PutCurrentSelected), - ADD_KEYMAP_NAME (PutCurrentFullSelected), - ADD_KEYMAP_NAME (PutCurrentTagged), - ADD_KEYMAP_NAME (PutOtherTagged), - ADD_KEYMAP_NAME (Select), - ADD_KEYMAP_NAME (Unselect), - - /* panel */ - ADD_KEYMAP_NAME (SelectExt), - ADD_KEYMAP_NAME (ScrollLeft), - ADD_KEYMAP_NAME (ScrollRight), - ADD_KEYMAP_NAME (PanelOtherCd), - ADD_KEYMAP_NAME (PanelOtherCdLink), - ADD_KEYMAP_NAME (CopySingle), - ADD_KEYMAP_NAME (MoveSingle), - ADD_KEYMAP_NAME (DeleteSingle), - ADD_KEYMAP_NAME (CdParent), - ADD_KEYMAP_NAME (CdChild), - ADD_KEYMAP_NAME (Panelize), - ADD_KEYMAP_NAME (PanelOtherSync), - ADD_KEYMAP_NAME (SortNext), - ADD_KEYMAP_NAME (SortPrev), - ADD_KEYMAP_NAME (SortReverse), - ADD_KEYMAP_NAME (SortByName), - ADD_KEYMAP_NAME (SortByExt), - ADD_KEYMAP_NAME (SortBySize), - ADD_KEYMAP_NAME (SortByMTime), - ADD_KEYMAP_NAME (CdParentSmart), - ADD_KEYMAP_NAME (CycleListingFormat), - - /* dialog */ - ADD_KEYMAP_NAME (Ok), - ADD_KEYMAP_NAME (Cancel), - - /* input line */ - ADD_KEYMAP_NAME (Yank), - - /* help */ - ADD_KEYMAP_NAME (Index), - ADD_KEYMAP_NAME (Back), - ADD_KEYMAP_NAME (LinkNext), - ADD_KEYMAP_NAME (LinkPrev), - ADD_KEYMAP_NAME (NodeNext), - ADD_KEYMAP_NAME (NodePrev), - - /* tree */ - ADD_KEYMAP_NAME (Forget), - -#if defined (USE_INTERNAL_EDIT) || defined (USE_DIFF_VIEW) - ADD_KEYMAP_NAME (ShowNumbers), -#endif - - /* chattr dialog */ - ADD_KEYMAP_NAME (MarkAndDown), - -#ifdef USE_INTERNAL_EDIT - ADD_KEYMAP_NAME (Close), - ADD_KEYMAP_NAME (Tab), - ADD_KEYMAP_NAME (Undo), - ADD_KEYMAP_NAME (ScrollUp), - ADD_KEYMAP_NAME (ScrollDown), - ADD_KEYMAP_NAME (Return), - ADD_KEYMAP_NAME (ParagraphUp), - ADD_KEYMAP_NAME (ParagraphDown), - ADD_KEYMAP_NAME (EditFile), - ADD_KEYMAP_NAME (MarkWord), - ADD_KEYMAP_NAME (MarkLine), - ADD_KEYMAP_NAME (MarkAll), - ADD_KEYMAP_NAME (Unmark), - ADD_KEYMAP_NAME (MarkColumn), - ADD_KEYMAP_NAME (BlockSave), - ADD_KEYMAP_NAME (InsertFile), - ADD_KEYMAP_NAME (InsertOverwrite), - ADD_KEYMAP_NAME (Date), - ADD_KEYMAP_NAME (DeleteLine), - ADD_KEYMAP_NAME (EditMail), - ADD_KEYMAP_NAME (ParagraphFormat), - ADD_KEYMAP_NAME (MatchBracket), - ADD_KEYMAP_NAME (ExternalCommand), - ADD_KEYMAP_NAME (MacroStartRecord), - ADD_KEYMAP_NAME (MacroStopRecord), - ADD_KEYMAP_NAME (MacroStartStopRecord), - ADD_KEYMAP_NAME (MacroDelete), - ADD_KEYMAP_NAME (RepeatStartStopRecord), -#ifdef HAVE_ASPELL - ADD_KEYMAP_NAME (SpellCheck), - ADD_KEYMAP_NAME (SpellCheckCurrentWord), - ADD_KEYMAP_NAME (SpellCheckSelectLang), -#endif /* HAVE_ASPELL */ - ADD_KEYMAP_NAME (BookmarkFlush), - ADD_KEYMAP_NAME (BookmarkNext), - ADD_KEYMAP_NAME (BookmarkPrev), - ADD_KEYMAP_NAME (MarkPageUp), - ADD_KEYMAP_NAME (MarkPageDown), - ADD_KEYMAP_NAME (MarkToFileBegin), - ADD_KEYMAP_NAME (MarkToFileEnd), - ADD_KEYMAP_NAME (MarkToPageBegin), - ADD_KEYMAP_NAME (MarkToPageEnd), - ADD_KEYMAP_NAME (MarkScrollUp), - ADD_KEYMAP_NAME (MarkScrollDown), - ADD_KEYMAP_NAME (MarkParagraphUp), - ADD_KEYMAP_NAME (MarkParagraphDown), - ADD_KEYMAP_NAME (MarkColumnPageUp), - ADD_KEYMAP_NAME (MarkColumnPageDown), - ADD_KEYMAP_NAME (MarkColumnLeft), - ADD_KEYMAP_NAME (MarkColumnRight), - ADD_KEYMAP_NAME (MarkColumnUp), - ADD_KEYMAP_NAME (MarkColumnDown), - ADD_KEYMAP_NAME (MarkColumnScrollUp), - ADD_KEYMAP_NAME (MarkColumnScrollDown), - ADD_KEYMAP_NAME (MarkColumnParagraphUp), - ADD_KEYMAP_NAME (MarkColumnParagraphDown), - ADD_KEYMAP_NAME (BlockShiftLeft), - ADD_KEYMAP_NAME (BlockShiftRight), - ADD_KEYMAP_NAME (InsertLiteral), - ADD_KEYMAP_NAME (ShowTabTws), - ADD_KEYMAP_NAME (SyntaxOnOff), - ADD_KEYMAP_NAME (SyntaxChoose), - ADD_KEYMAP_NAME (ShowMargin), - ADD_KEYMAP_NAME (OptionsSaveMode), - ADD_KEYMAP_NAME (About), - /* An action to run external script from macro */ - {"ExecuteScript", CK_PipeBlock (0)}, - ADD_KEYMAP_NAME (WindowMove), - ADD_KEYMAP_NAME (WindowResize), - ADD_KEYMAP_NAME (WindowFullscreen), - ADD_KEYMAP_NAME (WindowList), - ADD_KEYMAP_NAME (WindowNext), - ADD_KEYMAP_NAME (WindowPrev), -#endif /* USE_INTERNAL_EDIT */ - - /* viewer */ - ADD_KEYMAP_NAME (WrapMode), - ADD_KEYMAP_NAME (HexEditMode), - ADD_KEYMAP_NAME (HexMode), - ADD_KEYMAP_NAME (MagicMode), - ADD_KEYMAP_NAME (NroffMode), - ADD_KEYMAP_NAME (BookmarkGoto), - ADD_KEYMAP_NAME (Ruler), - ADD_KEYMAP_NAME (SearchForward), - ADD_KEYMAP_NAME (SearchBackward), - ADD_KEYMAP_NAME (SearchForwardContinue), - ADD_KEYMAP_NAME (SearchBackwardContinue), - ADD_KEYMAP_NAME (SearchOppositeContinue), - -#ifdef USE_DIFF_VIEW - /* diff viewer */ - ADD_KEYMAP_NAME (ShowSymbols), - ADD_KEYMAP_NAME (SplitFull), - ADD_KEYMAP_NAME (Tab2), - ADD_KEYMAP_NAME (Tab3), - ADD_KEYMAP_NAME (Tab4), - ADD_KEYMAP_NAME (Tab8), - ADD_KEYMAP_NAME (HunkNext), - ADD_KEYMAP_NAME (HunkPrev), - ADD_KEYMAP_NAME (EditOther), - ADD_KEYMAP_NAME (Merge), - ADD_KEYMAP_NAME (MergeOther), -#endif /* USE_DIFF_VIEW */ - - {NULL, CK_IgnoreKey} -}; - -/* *INDENT-OFF* */ -static const size_t num_command_names = G_N_ELEMENTS (command_names) - 1; -/* *INDENT-ON* */ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static int -name_keymap_comparator (const void *p1, const void *p2) -{ - const name_keymap_t *m1 = (const name_keymap_t *) p1; - const name_keymap_t *m2 = (const name_keymap_t *) p2; - - return g_ascii_strcasecmp (m1->name, m2->name); -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline void -sort_command_names (void) -{ - static gboolean has_been_sorted = FALSE; - - if (!has_been_sorted) - { - qsort (command_names, num_command_names, - sizeof (command_names[0]), &name_keymap_comparator); - has_been_sorted = TRUE; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -keymap_add (GArray *keymap, long key, long cmd, const char *caption) -{ - if (key != 0 && cmd != CK_IgnoreKey) - { - global_keymap_t new_bind; - - new_bind.key = key; - new_bind.command = cmd; - g_snprintf (new_bind.caption, sizeof (new_bind.caption), "%s", caption); - g_array_append_val (keymap, new_bind); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -keybind_cmd_bind (GArray *keymap, const char *keybind, long action) -{ - char *caption = NULL; - long key; - - key = tty_keyname_to_keycode (keybind, &caption); - keymap_add (keymap, key, action, caption); - g_free (caption); -} - -/* --------------------------------------------------------------------------------------------- */ - -long -keybind_lookup_action (const char *name) -{ - const name_keymap_t key = { name, 0 }; - name_keymap_t *res; - - sort_command_names (); - - res = bsearch (&key, command_names, num_command_names, - sizeof (command_names[0]), name_keymap_comparator); - - return (res != NULL) ? res->val : CK_IgnoreKey; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -keybind_lookup_actionname (long action) -{ - size_t i; - - for (i = 0; command_names[i].name != NULL; i++) - if (command_names[i].val == action) - return command_names[i].name; - - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -keybind_lookup_keymap_shortcut (const global_keymap_t *keymap, long action) -{ - if (keymap != NULL) - { - size_t i; - - for (i = 0; keymap[i].key != 0; i++) - if (keymap[i].command == action) - return (keymap[i].caption[0] != '\0') ? keymap[i].caption : NULL; - } - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -long -keybind_lookup_keymap_command (const global_keymap_t *keymap, long key) -{ - if (keymap != NULL) - { - size_t i; - - for (i = 0; keymap[i].key != 0; i++) - if (keymap[i].key == key) - return keymap[i].command; - } - - return CK_IgnoreKey; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/keybind.h b/recipes/wip/files/mc/source/lib/keybind.h deleted file mode 100644 index 4c01f589cc..0000000000 --- a/recipes/wip/files/mc/source/lib/keybind.h +++ /dev/null @@ -1,367 +0,0 @@ -#ifndef MC__KEYBIND_H -#define MC__KEYBIND_H - -#include "lib/global.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -/* keymap sections */ -#define KEYMAP_SECTION_FILEMANAGER "filemanager" -#define KEYMAP_SECTION_FILEMANAGER_EXT "filemanager:xmap" -#define KEYMAP_SECTION_PANEL "panel" -#define KEYMAP_SECTION_DIALOG "dialog" -#define KEYMAP_SECTION_MENU "menu" -#define KEYMAP_SECTION_INPUT "input" -#define KEYMAP_SECTION_LISTBOX "listbox" -#define KEYMAP_SECTION_RADIO "radio" -#define KEYMAP_SECTION_TREE "tree" -#define KEYMAP_SECTION_HELP "help" -#define KEYMAP_SECTION_CHATTR "chattr" -#define KEYMAP_SECTION_EDITOR "editor" -#define KEYMAP_SECTION_EDITOR_EXT "editor:xmap" -#define KEYMAP_SECTION_VIEWER "viewer" -#define KEYMAP_SECTION_VIEWER_HEX "viewer:hex" -#define KEYMAP_SECTION_DIFFVIEWER "diffviewer" - -#define KEYMAP_SHORTCUT_LENGTH 32 /* FIXME: is 32 bytes enough for shortcut? */ - -#define CK_PipeBlock(i) (10000+(i)) -#define CK_Macro(i) (20000+(i)) -#define CK_MacroLast CK_Macro(0x7FFF) - -/*** enums ***************************************************************************************/ - -enum -{ - /* special commands */ - CK_InsertChar = -1L, - CK_IgnoreKey = 0L, - - /* common */ - CK_Enter = 1L, - CK_ChangePanel, - CK_Up, - CK_Down, - CK_Left, - CK_Right, - CK_Home, - CK_End, - CK_LeftQuick, - CK_RightQuick, - CK_PageUp, - CK_PageDown, - CK_HalfPageUp, - CK_HalfPageDown, - CK_Top, - CK_Bottom, - CK_TopOnScreen, - CK_MiddleOnScreen, - CK_BottomOnScreen, - CK_WordLeft, - CK_WordRight, - CK_Copy, - CK_Move, - CK_Delete, - CK_MakeDir, - CK_ChangeMode, - CK_ChangeOwn, - CK_ChangeOwnAdvanced, - CK_ChangeAttributes, - CK_Remove, - CK_BackSpace, - CK_Redo, - CK_Clear, - CK_Menu, - CK_MenuLastSelected, - CK_UserMenu, - CK_EditUserMenu, - CK_Search, - CK_SearchContinue, - CK_Replace, - CK_ReplaceContinue, - CK_SearchStop, - CK_Help, - CK_Edit, - CK_EditNew, - CK_Shell, - CK_SelectCodepage, - CK_EditorViewerHistory, - CK_History, - CK_HistoryNext, - CK_HistoryPrev, - CK_Complete, - CK_Save, - CK_SaveAs, - CK_Goto, - CK_Reread, - CK_Refresh, - CK_Suspend, - CK_Swap, - CK_Mark, - CK_HotList, - CK_ScreenList, - CK_ScreenNext, - CK_ScreenPrev, - CK_FilePrev, - CK_FileNext, - CK_DeleteToHome, - CK_DeleteToEnd, - CK_DeleteToWordBegin, - CK_DeleteToWordEnd, - CK_ShowNumbers, - CK_Store, - CK_Cut, - CK_Paste, - CK_MarkLeft, - CK_MarkRight, - CK_MarkUp, - CK_MarkDown, - CK_MarkToWordBegin, - CK_MarkToWordEnd, - CK_MarkToHome, - CK_MarkToEnd, - CK_ToggleNavigation, - CK_Sort, - CK_Options, - CK_LearnKeys, - CK_Bookmark, - CK_Quit, - CK_QuitQuiet, - /* C-x or similar */ - CK_ExtendedKeyMap, - - /* main commands */ - CK_EditForceInternal = 100L, - CK_View, - CK_ViewRaw, - CK_ViewFile, - CK_ViewFiltered, - CK_Find, - CK_DirSize, - CK_HotListAdd, - CK_SetupListingFormat, - CK_CompareDirs, - CK_OptionsVfs, - CK_OptionsConfirm, - CK_PutCurrentLink, - CK_PutOtherLink, - CK_OptionsDisplayBits, - CK_EditExtensionsFile, - CK_EditFileHighlightFile, - CK_LinkSymbolicEdit, - CK_ExternalPanelize, - CK_Filter, - CK_ConnectShell, - CK_ConnectFtp, - CK_ConnectSftp, - CK_PanelInfo, - CK_Jobs, - CK_OptionsLayout, - CK_OptionsAppearance, - CK_Link, - CK_PanelListing, - CK_ListMode, - CK_CdQuick, - CK_PanelQuickView, - CK_VfsList, - CK_SaveSetup, - CK_LinkSymbolic, - CK_ShowHidden, - CK_PanelTree, - CK_Tree, - CK_Undelete, - CK_SplitVertHoriz, - CK_SplitEqual, - CK_SplitMore, - CK_SplitLess, - CK_CompareFiles, - CK_OptionsPanel, - CK_LinkSymbolicRelative, - CK_PutCurrentPath, - CK_PutOtherPath, - CK_PutCurrentSelected, - CK_PutCurrentFullSelected, - CK_PutCurrentTagged, - CK_PutOtherTagged, - CK_Select, - CK_Unselect, - CK_SelectExt, - CK_SelectInvert, - - /* panels */ - CK_PanelOtherCd = 200L, - CK_PanelOtherCdLink, - CK_Panelize, - CK_CopySingle, - CK_MoveSingle, - CK_DeleteSingle, - CK_CdChild, - CK_CdParent, - CK_CdParentSmart, - CK_PanelOtherSync, - CK_SortNext, - CK_SortPrev, - CK_SortReverse, - CK_SortByName, - CK_SortByExt, - CK_SortBySize, - CK_SortByMTime, - CK_ScrollLeft, - CK_ScrollRight, - CK_CycleListingFormat, - - /* dialog */ - CK_Ok = 300L, - CK_Cancel, - - /* input */ - CK_Yank = 350L, - - /* help */ - CK_Index = 400L, - CK_Back, - CK_LinkNext, - CK_LinkPrev, - CK_NodeNext, - CK_NodePrev, - - /* tree */ - CK_Forget = 450L, - - /* chattr dialog */ - CK_MarkAndDown = 480L, - - /* editor */ - /* cursor movements */ - CK_Tab = 500L, - CK_Undo, - CK_ScrollUp, - CK_ScrollDown, - CK_Return, - CK_ParagraphUp, - CK_ParagraphDown, - /* file commands */ - CK_EditFile, - CK_InsertFile, - CK_EditSyntaxFile, - CK_Close, - /* block commands */ - CK_BlockSave, - CK_BlockShiftLeft, - CK_BlockShiftRight, - CK_DeleteLine, - /* bookmarks */ - CK_BookmarkFlush, - CK_BookmarkNext, - CK_BookmarkPrev, - /* mark commands */ - CK_MarkColumn, - CK_MarkWord, - CK_MarkLine, - CK_MarkAll, - CK_Unmark, - CK_MarkPageUp, - CK_MarkPageDown, - CK_MarkToFileBegin, - CK_MarkToFileEnd, - CK_MarkToPageBegin, - CK_MarkToPageEnd, - CK_MarkScrollUp, - CK_MarkScrollDown, - CK_MarkParagraphUp, - CK_MarkParagraphDown, - /* column mark commands */ - CK_MarkColumnPageUp, - CK_MarkColumnPageDown, - CK_MarkColumnLeft, - CK_MarkColumnRight, - CK_MarkColumnUp, - CK_MarkColumnDown, - CK_MarkColumnScrollUp, - CK_MarkColumnScrollDown, - CK_MarkColumnParagraphUp, - CK_MarkColumnParagraphDown, - /* macros */ - CK_MacroStartRecord, - CK_MacroStopRecord, - CK_MacroStartStopRecord, - CK_MacroDelete, - CK_RepeatStartRecord, - CK_RepeatStopRecord, - CK_RepeatStartStopRecord, - /* window commands */ - CK_WindowMove, - CK_WindowResize, - CK_WindowFullscreen, - CK_WindowList, - CK_WindowNext, - CK_WindowPrev, - /* misc commands */ - CK_SpellCheck, - CK_SpellCheckCurrentWord, - CK_SpellCheckSelectLang, - CK_InsertOverwrite, - CK_ParagraphFormat, - CK_MatchBracket, - CK_OptionsSaveMode, - CK_About, - CK_ShowMargin, - CK_ShowTabTws, - CK_SyntaxOnOff, - CK_SyntaxChoose, - CK_InsertLiteral, - CK_ExternalCommand, - CK_Date, - CK_EditMail, - - /* viewer */ - CK_WrapMode = 600L, - CK_MagicMode, - CK_NroffMode, - CK_HexMode, - CK_HexEditMode, - CK_BookmarkGoto, - CK_Ruler, - CK_SearchForward, - CK_SearchBackward, - CK_SearchForwardContinue, - CK_SearchBackwardContinue, - CK_SearchOppositeContinue, - - /* diff viewer */ - CK_ShowSymbols = 700L, - CK_SplitFull, - CK_Tab2, - CK_Tab3, - CK_Tab4, - CK_Tab8, - CK_HunkNext, - CK_HunkPrev, - CK_EditOther, - CK_Merge, - CK_MergeOther -}; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/* The global keymaps are of this type */ -typedef struct global_keymap_t -{ - long key; - long command; - char caption[KEYMAP_SHORTCUT_LENGTH]; -} global_keymap_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -void keybind_cmd_bind (GArray * keymap, const char *keybind, long action); -long keybind_lookup_action (const char *name); -const char *keybind_lookup_actionname (long action); -const char *keybind_lookup_keymap_shortcut (const global_keymap_t * keymap, long action); -long keybind_lookup_keymap_command (const global_keymap_t * keymap, long key); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__KEYBIND_H */ diff --git a/recipes/wip/files/mc/source/lib/lock.c b/recipes/wip/files/mc/source/lib/lock.c deleted file mode 100644 index fa863c0997..0000000000 --- a/recipes/wip/files/mc/source/lib/lock.c +++ /dev/null @@ -1,314 +0,0 @@ -/* - File locking - - Copyright (C) 2003-2025 - Free Software Foundation, Inc. - - Written by: - Adam Byrtek, 2003 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file - * \brief Source: file locking - * \author Adam Byrtek - * \date 2003 - * - * Locking scheme is based on a documentation found - * in JED editor sources. Abstract from lock.c file (by John E. Davis): - * - * The basic idea here is quite simple. Whenever a buffer is attached to - * a file, and that buffer is modified, then attempt to lock the - * file. Moreover, before writing to a file for any reason, lock the - * file. The lock is really a protocol respected and not a real lock. - * The protocol is this: If in the directory of the file is a - * symbolic link with name ".#FILE", the FILE is considered to be locked - * by the process specified by the link. - */ - -#include - -#include /* kill() */ -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "lib/global.h" -#include "lib/vfs/vfs.h" -#include "lib/util.h" -#include "lib/lock.h" -#include "lib/widget.h" /* query_dialog() */ - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#define BUF_SIZE 255 -#define PID_BUF_SIZE 10 - -/*** file scope type declarations ****************************************************************/ - -typedef struct -{ - char *who; - pid_t pid; -} lock_s; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/** \fn static char * lock_build_name (void) - * \brief builds user@host.domain.pid string (need to be freed) - * \return a pointer to lock filename - */ - -static char * -lock_build_name (void) -{ - char host[BUF_SIZE]; - const char *user = NULL; - struct passwd *pw; - - pw = getpwuid (getuid ()); - if (pw != NULL) - user = pw->pw_name; - if (user == NULL) - user = getenv ("USER"); - if (user == NULL) - user = getenv ("USERNAME"); - if (user == NULL) - user = getenv ("LOGNAME"); - if (user == NULL) - user = ""; - - /** \todo Use FQDN, no clean interface, so requires lot of code */ - if (gethostname (host, sizeof (host) - 1) == -1) - *host = '\0'; - - return g_strdup_printf ("%s@%s.%d", user, host, (int) getpid ()); -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -lock_build_symlink_name (const vfs_path_t *fname_vpath) -{ - const char *elpath; - char *str_filename, *str_dirname, *symlink_name; - - /* get first path piece */ - elpath = vfs_path_get_by_index (fname_vpath, 0)->path; - - str_filename = g_path_get_basename (elpath); - str_dirname = g_path_get_dirname (elpath); - symlink_name = g_strconcat (str_dirname, PATH_SEP_STR ".#", str_filename, (char *) NULL); - g_free (str_dirname); - g_free (str_filename); - - return symlink_name; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Extract pid from user@host.domain.pid string - */ - -static lock_s * -lock_extract_info (const char *str) -{ - size_t i, len; - const char *p, *s; - static char pid[PID_BUF_SIZE], who[BUF_SIZE]; - static lock_s lock; - - len = strlen (str); - - for (p = str + len - 1; p >= str && *p != '.'; p--) - ; - - /* Everything before last '.' is user@host */ - for (i = 0, s = str; i < sizeof (who) && s < p; i++, s++) - who[i] = *s; - if (i == sizeof (who)) - i--; - who[i] = '\0'; - - /* Treat text between '.' and ':' or '\0' as pid */ - for (i = 0, p++, s = str + len; i < sizeof (pid) && p < s && *p != ':'; i++, p++) - pid[i] = *p; - if (i == sizeof (pid)) - i--; - pid[i] = '\0'; - - lock.pid = (pid_t) atol (pid); - lock.who = who; - return &lock; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Extract user@host.domain.pid from lock file (static string) - */ - -static const char * -lock_get_info (const char *lockfname) -{ - ssize_t cnt; - static char buf[BUF_SIZE]; - - cnt = readlink (lockfname, buf, sizeof (buf) - 1); - if (cnt == -1 || *buf == '\0') - return NULL; - buf[cnt] = '\0'; - return buf; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* Tries to raise file lock - Returns 1 on success, 0 on failure, -1 if abort - Warning: Might do screen refresh and lose edit->force */ - -int -lock_file (const vfs_path_t *fname_vpath) -{ - char *lockfname = NULL, *newlock, *msg; - struct stat statbuf; - lock_s *lockinfo; - gboolean is_local; - gboolean symlink_ok = FALSE; - const char *elpath; - - if (fname_vpath == NULL) - return 0; - - elpath = vfs_path_get_by_index (fname_vpath, 0)->path; - /* Just to be sure (and don't lock new file) */ - if (*elpath == '\0') - return 0; - - /* Locking on VFS is not supported */ - is_local = vfs_file_is_local (fname_vpath); - if (is_local) - { - /* Check if already locked */ - lockfname = lock_build_symlink_name (fname_vpath); - } - - if (!is_local || lockfname == NULL) - return 0; - - if (lstat (lockfname, &statbuf) == 0) - { - const char *lock; - - lock = lock_get_info (lockfname); - if (lock == NULL) - goto ret; - lockinfo = lock_extract_info (lock); - - /* Check if locking process alive, ask user if required */ - if (lockinfo->pid == 0 || !(kill (lockinfo->pid, 0) == -1 && errno == ESRCH)) - { - msg = - g_strdup_printf (_ - ("File \"%s\" is already being edited.\n" - "User: %s\nProcess ID: %d"), x_basename (lockfname) + 2, - lockinfo->who, (int) lockinfo->pid); - /* TODO: Implement "Abort" - needs to rewind undo stack */ - switch (query_dialog - (_("File locked"), msg, D_NORMAL, 2, _("&Grab lock"), _("&Ignore lock"))) - { - case 0: - break; - case 1: - case -1: - default: /* Esc Esc */ - g_free (msg); - goto ret; - } - g_free (msg); - } - unlink (lockfname); - } - - /* Create lock symlink */ - newlock = lock_build_name (); - symlink_ok = (symlink (newlock, lockfname) != -1); - g_free (newlock); - - ret: - g_free (lockfname); - return symlink_ok ? 1 : 0; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Lowers file lock if possible - * @return Always 0 - */ - -int -unlock_file (const vfs_path_t *fname_vpath) -{ - char *lockfname; - const char *elpath; - - if (fname_vpath == NULL) - return 0; - - elpath = vfs_path_get_by_index (fname_vpath, 0)->path; - /* Just to be sure (and don't lock new file) */ - if (*elpath == '\0') - return 0; - - lockfname = lock_build_symlink_name (fname_vpath); - if (lockfname != NULL) - { - struct stat statbuf; - - /* Check if lock exists */ - if (lstat (lockfname, &statbuf) != -1) - { - const char *lock; - - lock = lock_get_info (lockfname); - /* Don't touch if lock is not ours */ - if (lock == NULL || lock_extract_info (lock)->pid == getpid ()) - unlink (lockfname); - } - - g_free (lockfname); - } - - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/lock.h b/recipes/wip/files/mc/source/lib/lock.h deleted file mode 100644 index 7cca65fa26..0000000000 --- a/recipes/wip/files/mc/source/lib/lock.h +++ /dev/null @@ -1,29 +0,0 @@ - -/** \file - * \brief Header: file locking - * \author Adam Byrtek - * \date 2003 - * Look at lock.c for more details - */ - -#ifndef MC_LOCK_H -#define MC_LOCK_H - -#include "lib/vfs/vfs.h" /* vfs_path_t */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -int lock_file (const vfs_path_t * fname_vpath); -int unlock_file (const vfs_path_t * fname_vpath); - -/*** inline functions ****************************************************************************/ - -#endif /* MC_LOCK_H */ diff --git a/recipes/wip/files/mc/source/lib/logging.c b/recipes/wip/files/mc/source/lib/logging.c deleted file mode 100644 index 569e45d113..0000000000 --- a/recipes/wip/files/mc/source/lib/logging.c +++ /dev/null @@ -1,168 +0,0 @@ -/* - Provides a log file to ease tracing the program. - - Copyright (C) 2006-2025 - Free Software Foundation, Inc. - - Written by: - Roland Illig , 2006 - Slava Zanko , 2009, 2011 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file logging.c - * \brief Source: provides a log file to ease tracing the program - */ - -#include - -#include -#include - -#include "lib/global.h" -#include "lib/mcconfig.h" -#include "lib/fileloc.h" - -#include "logging.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#define CONFIG_GROUP_NAME "Development" -#define CONFIG_KEY_NAME "logging" -#define CONFIG_KEY_NAME_FILE "logfile" - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static gboolean logging_initialized = FALSE; -static gboolean logging_enabled = FALSE; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -is_logging_enabled_from_env (void) -{ - const char *env_is_enabled; - - env_is_enabled = g_getenv ("MC_LOG_ENABLE"); - if (env_is_enabled == NULL) - return FALSE; - - logging_enabled = (*env_is_enabled == '1' || g_ascii_strcasecmp (env_is_enabled, "true") == 0); - logging_initialized = TRUE; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -is_logging_enabled (void) -{ - - if (logging_initialized) - return logging_enabled; - - if (is_logging_enabled_from_env ()) - return logging_enabled; - - logging_enabled = - mc_config_get_bool (mc_global.main_config, CONFIG_GROUP_NAME, CONFIG_KEY_NAME, FALSE); - logging_initialized = TRUE; - - return logging_enabled; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -get_log_filename (void) -{ - const char *env_filename; - - env_filename = g_getenv ("MC_LOG_FILE"); - if (env_filename != NULL) - return g_strdup (env_filename); - - if (mc_config_has_param (mc_global.main_config, CONFIG_GROUP_NAME, CONFIG_KEY_NAME_FILE)) - return mc_config_get_string (mc_global.main_config, CONFIG_GROUP_NAME, CONFIG_KEY_NAME_FILE, - NULL); - - return mc_config_get_full_path ("mc.log"); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -G_GNUC_PRINTF (1, 0) -mc_va_log (const char *fmt, va_list args) -{ - char *logfilename; - - logfilename = get_log_filename (); - - if (logfilename != NULL) - { - FILE *f; - - f = fopen (logfilename, "a"); - if (f != NULL) - { - (void) vfprintf (f, fmt, args); - (void) fclose (f); - } - g_free (logfilename); - } - -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_log (const char *fmt, ...) -{ - va_list args; - - if (!is_logging_enabled ()) - return; - - va_start (args, fmt); - mc_va_log (fmt, args); - va_end (args); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_always_log (const char *fmt, ...) -{ - va_list args; - - va_start (args, fmt); - mc_va_log (fmt, args); - va_end (args); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/logging.h b/recipes/wip/files/mc/source/lib/logging.h deleted file mode 100644 index effdfb48ce..0000000000 --- a/recipes/wip/files/mc/source/lib/logging.h +++ /dev/null @@ -1,32 +0,0 @@ -/** \file logging.h - * \brief Header: provides a log file to ease tracing the program - */ - -#ifndef MC_LOGGING_H -#define MC_LOGGING_H - -/* - This file provides an easy-to-use function for writing all kinds of - events into a central log file that can be used for debugging. - */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define mc_log_mark() mc_log("%s:%d\n",__FILE__,__LINE__) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/* *INDENT-OFF* */ -void mc_log (const char *fmt, ...) G_GNUC_PRINTF (1, 2); -void mc_always_log (const char *fmt, ...) G_GNUC_PRINTF (1, 2); -/* *INDENT-ON* */ - -/*** inline functions ****************************************************************************/ - -#endif diff --git a/recipes/wip/files/mc/source/lib/mcconfig.h b/recipes/wip/files/mc/source/lib/mcconfig.h deleted file mode 100644 index 13af8346ac..0000000000 --- a/recipes/wip/files/mc/source/lib/mcconfig.h +++ /dev/null @@ -1,118 +0,0 @@ -#ifndef MC__CONFIG_H -#define MC__CONFIG_H - -#include "lib/vfs/vfs.h" /* vfs_path_t */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define CONFIG_APP_SECTION "Midnight-Commander" -#define CONFIG_PANELS_SECTION "Panels" -#define CONFIG_LAYOUT_SECTION "Layout" -#define CONFIG_MISC_SECTION "Misc" -#define CONFIG_EXT_EDITOR_VIEWER_SECTION "External editor or viewer parameters" - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct mc_config_t -{ - GKeyFile *handle; - gchar *ini_path; -} mc_config_t; - -/*** global variables defined in .c file *********************************************************/ - -extern int num_history_items_recorded; - -/*** declarations of public functions ************************************************************/ - -/* mcconfig/common.c: */ - -mc_config_t *mc_config_init (const gchar * ini_path, gboolean read_only); -void mc_config_deinit (mc_config_t * mc_config); - -gboolean mc_config_has_param (const mc_config_t * mc_config, const char *group, - const gchar * param); -gboolean mc_config_has_group (mc_config_t * mc_config, const char *group); - -gboolean mc_config_del_key (mc_config_t * mc_config, const char *group, const gchar * param); -gboolean mc_config_del_group (mc_config_t * mc_config, const char *group); - -gboolean mc_config_read_file (mc_config_t * mc_config, const gchar * ini_path, gboolean read_only, - gboolean remove_empty); -gboolean mc_config_save_file (mc_config_t * config, GError ** mcerror); -gboolean mc_config_save_to_file (mc_config_t * mc_config, const gchar * ini_path, - GError ** mcerror); - - -/* mcconfig/get.c: */ - -gchar **mc_config_get_groups (const mc_config_t * mc_config, gsize * len); -gchar **mc_config_get_keys (const mc_config_t * mc_config, const gchar * group, gsize * len); - -gchar *mc_config_get_string (mc_config_t * mc_config, const gchar * group, const gchar * param, - const gchar * def); -MC_MOCKABLE gchar *mc_config_get_string_raw (mc_config_t * mc_config, const gchar * group, - const gchar * param, const gchar * def); -gboolean mc_config_get_bool (mc_config_t * mc_config, const gchar * group, const gchar * param, - gboolean def); -int mc_config_get_int (mc_config_t * mc_config, const gchar * group, const gchar * param, int def); - -gchar **mc_config_get_string_list (mc_config_t * mc_config, const gchar * group, - const gchar * param, gsize * length); -gboolean *mc_config_get_bool_list (mc_config_t * mc_config, const gchar * group, - const gchar * param, gsize * length); -int *mc_config_get_int_list (mc_config_t * mc_config, const gchar * group, const gchar * param, - gsize * length); - - -/* mcconfig/set.c: */ - -void mc_config_set_string_raw (mc_config_t * mc_config, const gchar * group, const gchar * param, - const gchar * value); -void mc_config_set_string_raw_value (mc_config_t * mc_config, const gchar * group, - const gchar * param, const gchar * value); -void mc_config_set_string (mc_config_t * mc_config, const gchar * group, const gchar * param, - const gchar * value); -void mc_config_set_bool (mc_config_t * mc_config, const gchar * group, const gchar * param, - gboolean value); -void mc_config_set_int (mc_config_t * mc_config, const gchar * group, const gchar * param, - int value); - -void -mc_config_set_string_list (mc_config_t * mc_config, const gchar * group, const gchar * param, - const gchar * const value[], gsize length); -void mc_config_set_bool_list (mc_config_t * mc_config, const gchar * group, const gchar * param, - gboolean value[], gsize length); -void mc_config_set_int_list (mc_config_t * mc_config, const gchar * group, const gchar * param, - int value[], gsize length); - - -/* mcconfig/paths.c: */ - -void mc_config_init_config_paths (GError ** error); -void mc_config_deinit_config_paths (void); - -const char *mc_config_get_data_path (void); -const char *mc_config_get_cache_path (void); -MC_MOCKABLE const char *mc_config_get_home_dir (void); -const char *mc_config_get_path (void); -char *mc_config_get_full_path (const char *config_name); -vfs_path_t *mc_config_get_full_vpath (const char *config_name); - -/* mcconfig/history.h */ - -/* read history to the mc_config, but don't save config to file */ -GList *mc_config_history_get (const char *name); -/* read recent item from the history */ -char *mc_config_history_get_recent_item (const char *name); -/* load history from the mc_config */ -GList *mc_config_history_load (mc_config_t * cfg, const char *name); -/* save history to the mc_config, but don't save config to file */ -void mc_config_history_save (mc_config_t * cfg, const char *name, GList * h); - - -/*** inline functions ****************************************************************************/ - -#endif /* MC__CONFIG_H */ diff --git a/recipes/wip/files/mc/source/lib/mcconfig/Makefile.am b/recipes/wip/files/mc/source/lib/mcconfig/Makefile.am deleted file mode 100644 index ad62b91325..0000000000 --- a/recipes/wip/files/mc/source/lib/mcconfig/Makefile.am +++ /dev/null @@ -1,11 +0,0 @@ - -noinst_LTLIBRARIES = libmcconfig.la - -libmcconfig_la_SOURCES = \ - common.c \ - get.c \ - history.c \ - set.c \ - paths.c - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) diff --git a/recipes/wip/files/mc/source/lib/mcconfig/Makefile.in b/recipes/wip/files/mc/source/lib/mcconfig/Makefile.in deleted file mode 100644 index fb81dd8663..0000000000 --- a/recipes/wip/files/mc/source/lib/mcconfig/Makefile.in +++ /dev/null @@ -1,758 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = lib/mcconfig -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libmcconfig_la_LIBADD = -am_libmcconfig_la_OBJECTS = common.lo get.lo history.lo set.lo \ - paths.lo -libmcconfig_la_OBJECTS = $(am_libmcconfig_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_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__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/common.Plo ./$(DEPDIR)/get.Plo \ - ./$(DEPDIR)/history.Plo ./$(DEPDIR)/paths.Plo \ - ./$(DEPDIR)/set.Plo -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libmcconfig_la_SOURCES) -DIST_SOURCES = $(libmcconfig_la_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)` -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -noinst_LTLIBRARIES = libmcconfig.la -libmcconfig_la_SOURCES = \ - common.c \ - get.c \ - history.c \ - set.c \ - paths.c - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/mcconfig/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/mcconfig/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libmcconfig.la: $(libmcconfig_la_OBJECTS) $(libmcconfig_la_DEPENDENCIES) $(EXTRA_libmcconfig_la_DEPENDENCIES) - $(AM_V_CCLD)$(LINK) $(libmcconfig_la_OBJECTS) $(libmcconfig_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/get.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/history.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/paths.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/set.Plo@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.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 -o $@ $< - -.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 -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -f ./$(DEPDIR)/common.Plo - -rm -f ./$(DEPDIR)/get.Plo - -rm -f ./$(DEPDIR)/history.Plo - -rm -f ./$(DEPDIR)/paths.Plo - -rm -f ./$(DEPDIR)/set.Plo - -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-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f ./$(DEPDIR)/common.Plo - -rm -f ./$(DEPDIR)/get.Plo - -rm -f ./$(DEPDIR)/history.Plo - -rm -f ./$(DEPDIR)/paths.Plo - -rm -f ./$(DEPDIR)/set.Plo - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ - clean-generic clean-libtool clean-noinstLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/lib/mcconfig/common.c b/recipes/wip/files/mc/source/lib/mcconfig/common.c deleted file mode 100644 index 3284760b8b..0000000000 --- a/recipes/wip/files/mc/source/lib/mcconfig/common.c +++ /dev/null @@ -1,287 +0,0 @@ -/* - Configure module for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include -#include -#include -#include /* extern int errno */ - -#include "lib/global.h" -#include "lib/vfs/vfs.h" /* mc_stat */ -#include "lib/util.h" - -#include "lib/mcconfig.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -mc_config_new_or_override_file (mc_config_t *mc_config, const gchar *ini_path, GError **mcerror) -{ - gchar *data, *written_data; - gsize len, total_written; - gboolean ret; - int fd; - ssize_t cur_written; - vfs_path_t *ini_vpath; - - mc_return_val_if_error (mcerror, FALSE); - - data = g_key_file_to_data (mc_config->handle, &len, NULL); - if (!exist_file (ini_path)) - { - ret = g_file_set_contents (ini_path, data, len, mcerror); - g_free (data); - return ret; - } - - mc_util_make_backup_if_possible (ini_path, "~"); - - ini_vpath = vfs_path_from_str (ini_path); - fd = mc_open (ini_vpath, O_WRONLY | O_TRUNC, 0); - vfs_path_free (ini_vpath, TRUE); - - if (fd == -1) - { - mc_propagate_error (mcerror, 0, "%s", unix_error_string (errno)); - g_free (data); - return FALSE; - } - - for (written_data = data, total_written = len; - (cur_written = mc_write (fd, (const void *) written_data, total_written)) > 0; - written_data += cur_written, total_written -= cur_written) - ; - - mc_close (fd); - g_free (data); - - if (cur_written == -1) - { - mc_util_restore_from_backup_if_possible (ini_path, "~"); - mc_propagate_error (mcerror, 0, "%s", unix_error_string (errno)); - return FALSE; - } - - mc_util_unlink_backup_if_possible (ini_path, "~"); - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -mc_config_t * -mc_config_init (const gchar *ini_path, gboolean read_only) -{ - mc_config_t *mc_config; - struct stat st; - - mc_config = g_try_malloc0 (sizeof (mc_config_t)); - if (mc_config == NULL) - return NULL; - - mc_config->handle = g_key_file_new (); - if (mc_config->handle == NULL) - { - g_free (mc_config); - return NULL; - } - - if (ini_path == NULL) - return mc_config; - - if (exist_file (ini_path)) - { - vfs_path_t *vpath; - - vpath = vfs_path_from_str (ini_path); - if (mc_stat (vpath, &st) == 0 && st.st_size != 0) - { - GKeyFileFlags flags = G_KEY_FILE_NONE; - - if (!read_only) - flags |= G_KEY_FILE_KEEP_COMMENTS; - - /* file exists and not empty */ - g_key_file_load_from_file (mc_config->handle, ini_path, flags, NULL); - } - vfs_path_free (vpath, TRUE); - } - - mc_config->ini_path = g_strdup (ini_path); - return mc_config; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_deinit (mc_config_t *mc_config) -{ - if (mc_config != NULL) - { - g_free (mc_config->ini_path); - g_key_file_free (mc_config->handle); - g_free (mc_config); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_config_has_param (const mc_config_t *mc_config, const char *group, const gchar *param) -{ - char *value; - gboolean ret; - - g_return_val_if_fail (mc_config != NULL, FALSE); - - value = g_key_file_get_value (mc_config->handle, group, param, NULL); - ret = value != NULL; - g_free (value); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_config_has_group (mc_config_t *mc_config, const char *group) -{ - if (mc_config == NULL || group == NULL) - return FALSE; - - return g_key_file_has_group (mc_config->handle, group); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_config_del_key (mc_config_t *mc_config, const char *group, const gchar *param) -{ - if (mc_config == NULL || group == NULL || param == NULL) - return FALSE; - - return g_key_file_remove_key (mc_config->handle, group, param, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_config_del_group (mc_config_t *mc_config, const char *group) -{ - if (mc_config == NULL || group == NULL) - return FALSE; - - return g_key_file_remove_group (mc_config->handle, group, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_config_read_file (mc_config_t *mc_config, const gchar *ini_path, gboolean read_only, - gboolean remove_empty) -{ - mc_config_t *tmp_config; - gchar **groups, **curr_grp; - gchar *value; - gboolean ok; - - if (mc_config == NULL) - return FALSE; - - tmp_config = mc_config_init (ini_path, read_only); - if (tmp_config == NULL) - return FALSE; - - groups = mc_config_get_groups (tmp_config, NULL); - ok = (*groups != NULL); - - for (curr_grp = groups; *curr_grp != NULL; curr_grp++) - { - gchar **keys, **curr_key; - - keys = mc_config_get_keys (tmp_config, *curr_grp, NULL); - - for (curr_key = keys; *curr_key != NULL; curr_key++) - { - value = g_key_file_get_value (tmp_config->handle, *curr_grp, *curr_key, NULL); - if (value != NULL) - { - if (*value == '\0' && remove_empty) - g_key_file_remove_key (mc_config->handle, *curr_grp, *curr_key, NULL); - else - g_key_file_set_value (mc_config->handle, *curr_grp, *curr_key, value); - g_free (value); - } - else if (remove_empty) - g_key_file_remove_key (mc_config->handle, *curr_grp, *curr_key, NULL); - } - g_strfreev (keys); - } - - g_strfreev (groups); - mc_config_deinit (tmp_config); - - return ok; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_config_save_file (mc_config_t *mc_config, GError **mcerror) -{ - mc_return_val_if_error (mcerror, FALSE); - - if (mc_config == NULL || mc_config->ini_path == NULL) - return FALSE; - - return mc_config_new_or_override_file (mc_config, mc_config->ini_path, mcerror); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_config_save_to_file (mc_config_t *mc_config, const gchar *ini_path, GError **mcerror) -{ - mc_return_val_if_error (mcerror, FALSE); - - if (mc_config == NULL) - return FALSE; - - return mc_config_new_or_override_file (mc_config, ini_path, mcerror); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/mcconfig/get.c b/recipes/wip/files/mc/source/lib/mcconfig/get.c deleted file mode 100644 index 5e623a7e18..0000000000 --- a/recipes/wip/files/mc/source/lib/mcconfig/get.c +++ /dev/null @@ -1,214 +0,0 @@ -/* - Configure module for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "lib/global.h" -#include "lib/strutil.h" - -#include "lib/mcconfig.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/*** file scope functions ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -gchar ** -mc_config_get_groups (const mc_config_t *mc_config, gsize *len) -{ - gchar **ret = NULL; - - if (mc_config != NULL) - ret = g_key_file_get_groups (mc_config->handle, len); - - if (ret == NULL) - { - ret = g_try_malloc0 (sizeof (gchar **)); - if (len != NULL) - *len = 0; - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -gchar ** -mc_config_get_keys (const mc_config_t *mc_config, const gchar *group, gsize *len) -{ - gchar **ret = NULL; - - if (mc_config != NULL && group != NULL) - ret = g_key_file_get_keys (mc_config->handle, group, len, NULL); - - if (ret == NULL) - { - ret = g_try_malloc0 (sizeof (gchar **)); - if (len != NULL) - *len = 0; - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -gchar * -mc_config_get_string (mc_config_t *mc_config, const gchar *group, - const gchar *param, const gchar *def) -{ - GIConv conv; - GString *buffer; - gchar *ret; - estr_t conv_res; - - ret = mc_config_get_string_raw (mc_config, group, param, def); - - if (mc_global.utf8_display) - return ret; - - conv = str_crt_conv_from ("UTF-8"); - if (conv == INVALID_CONV) - return ret; - - buffer = g_string_new (""); - conv_res = str_convert (conv, ret, buffer); - str_close_conv (conv); - - if (conv_res == ESTR_FAILURE) - { - g_string_free (buffer, TRUE); - return ret; - } - - g_free (ret); - - return g_string_free (buffer, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ - -gchar * -mc_config_get_string_raw (mc_config_t *mc_config, const gchar *group, - const gchar *param, const gchar *def) -{ - gchar *ret; - - if (mc_config == NULL || group == NULL || param == NULL) - return g_strdup (def); - - if (!mc_config_has_param (mc_config, group, param)) - { - if (def != NULL) - mc_config_set_string (mc_config, group, param, def); - return g_strdup (def); - } - - ret = g_key_file_get_string (mc_config->handle, group, param, NULL); - - return ret != NULL ? ret : g_strdup (def); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_config_get_bool (mc_config_t *mc_config, const gchar *group, const gchar *param, gboolean def) -{ - if (mc_config == NULL || group == NULL || param == NULL) - return def; - - if (!mc_config_has_param (mc_config, group, param)) - { - mc_config_set_bool (mc_config, group, param, def); - return def; - } - - return g_key_file_get_boolean (mc_config->handle, group, param, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_config_get_int (mc_config_t *mc_config, const gchar *group, const gchar *param, int def) -{ - if (mc_config == NULL || group == NULL || param == NULL) - return def; - - if (!mc_config_has_param (mc_config, group, param)) - { - mc_config_set_int (mc_config, group, param, def); - return def; - } - - return g_key_file_get_integer (mc_config->handle, group, param, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -gchar ** -mc_config_get_string_list (mc_config_t *mc_config, const gchar *group, - const gchar *param, gsize *length) -{ - if (mc_config == NULL || group == NULL || param == NULL) - return NULL; - - return g_key_file_get_string_list (mc_config->handle, group, param, length, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean * -mc_config_get_bool_list (mc_config_t *mc_config, const gchar *group, - const gchar *param, gsize *length) -{ - if (mc_config == NULL || group == NULL || param == NULL) - return NULL; - - return g_key_file_get_boolean_list (mc_config->handle, group, param, length, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -int * -mc_config_get_int_list (mc_config_t *mc_config, const gchar *group, - const gchar *param, gsize *length) -{ - if (mc_config == NULL || group == NULL || param == NULL) - return NULL; - - return g_key_file_get_integer_list (mc_config->handle, group, param, length, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/mcconfig/history.c b/recipes/wip/files/mc/source/lib/mcconfig/history.c deleted file mode 100644 index 94b711d541..0000000000 --- a/recipes/wip/files/mc/source/lib/mcconfig/history.c +++ /dev/null @@ -1,245 +0,0 @@ -/* - Configure module for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2023 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file history.c - * \brief Source: save and load history - */ - -#include - -#include -#include - -#include "lib/global.h" - -#include "lib/fileloc.h" /* MC_HISTORY_FILE */ -#include "lib/strutil.h" -#include "lib/util.h" /* list_append_unique */ - -#include "lib/mcconfig.h" - -/*** global variables ****************************************************************************/ - -/* how much history items are used */ -int num_history_items_recorded = 60; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** - * Load the history from the ${XDG_DATA_HOME}/mc/history file. - * It is called with the widgets history name and returns the GList list. - */ - -GList * -mc_config_history_get (const char *name) -{ - GList *hist = NULL; - char *profile; - mc_config_t *cfg; - - if (num_history_items_recorded == 0) /* this is how to disable */ - return NULL; - if (name == NULL || *name == '\0') - return NULL; - - profile = mc_config_get_full_path (MC_HISTORY_FILE); - cfg = mc_config_init (profile, TRUE); - - hist = mc_config_history_load (cfg, name); - - mc_config_deinit (cfg); - g_free (profile); - - return hist; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Get the recent item of a history from the ${XDG_DATA_HOME}/mc/history file. - * - * TODO: get rid of load the entire history to get the only top item. - */ - -char * -mc_config_history_get_recent_item (const char *name) -{ - GList *history; - char *item = NULL; - - history = mc_config_history_get (name); - if (history != NULL) - { - /* FIXME: can history->data be NULL? */ - item = (char *) history->data; - history->data = NULL; - history = g_list_first (history); - g_list_free_full (history, g_free); - } - - return item; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Load history from the mc_config - */ -GList * -mc_config_history_load (mc_config_t *cfg, const char *name) -{ - size_t i; - GList *hist = NULL; - char **keys; - size_t keys_num = 0; - GIConv conv = INVALID_CONV; - GString *buffer; - - if (name == NULL || *name == '\0') - return NULL; - - /* get number of keys */ - keys = mc_config_get_keys (cfg, name, &keys_num); - g_strfreev (keys); - - /* create charset conversion handler to convert strings - from utf-8 to system codepage */ - if (!mc_global.utf8_display) - conv = str_crt_conv_from ("UTF-8"); - - buffer = g_string_sized_new (64); - - for (i = 0; i < keys_num; i++) - { - char key[BUF_TINY]; - char *this_entry; - - g_snprintf (key, sizeof (key), "%lu", (unsigned long) i); - this_entry = mc_config_get_string_raw (cfg, name, key, ""); - - if (this_entry == NULL) - continue; - - if (conv == INVALID_CONV) - hist = list_append_unique (hist, this_entry); - else - { - g_string_set_size (buffer, 0); - if (str_convert (conv, this_entry, buffer) == ESTR_FAILURE) - hist = list_append_unique (hist, this_entry); - else - { - hist = list_append_unique (hist, g_strndup (buffer->str, buffer->len)); - g_free (this_entry); - } - } - } - - g_string_free (buffer, TRUE); - if (conv != INVALID_CONV) - str_close_conv (conv); - - /* return pointer to the last entry in the list */ - return g_list_last (hist); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Save history to the mc_config, but don't save config to file - */ -void -mc_config_history_save (mc_config_t *cfg, const char *name, GList *h) -{ - GIConv conv = INVALID_CONV; - GString *buffer; - int i; - - if (name == NULL || *name == '\0' || h == NULL) - return; - - /* go to end of list */ - h = g_list_last (h); - - /* go back 60 places */ - for (i = 0; (i < num_history_items_recorded - 1) && (h->prev != NULL); i++) - h = g_list_previous (h); - - mc_config_del_group (cfg, name); - - /* create charset conversion handler to convert strings - from system codepage to UTF-8 */ - if (!mc_global.utf8_display) - conv = str_crt_conv_to ("UTF-8"); - - buffer = g_string_sized_new (64); - - /* dump history into profile */ - for (i = 0; h != NULL; h = g_list_next (h)) - { - char key[BUF_TINY]; - char *text = (char *) h->data; - - /* We shouldn't have null entries, but let's be sure */ - if (text == NULL) - continue; - - g_snprintf (key, sizeof (key), "%d", i++); - - if (conv == INVALID_CONV) - mc_config_set_string_raw (cfg, name, key, text); - else - { - g_string_set_size (buffer, 0); - if (str_convert (conv, text, buffer) == ESTR_FAILURE) - mc_config_set_string_raw (cfg, name, key, text); - else - mc_config_set_string_raw (cfg, name, key, buffer->str); - } - } - - g_string_free (buffer, TRUE); - if (conv != INVALID_CONV) - str_close_conv (conv); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/mcconfig/paths.c b/recipes/wip/files/mc/source/lib/mcconfig/paths.c deleted file mode 100644 index f33ea99330..0000000000 --- a/recipes/wip/files/mc/source/lib/mcconfig/paths.c +++ /dev/null @@ -1,315 +0,0 @@ -/* - paths to configuration files - - Copyright (C) 2010-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2010. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include -#include - -#include "lib/global.h" -#include "lib/fileloc.h" -#include "lib/vfs/vfs.h" -#include "lib/util.h" /* unix_error_string() */ - -#include "lib/mcconfig.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static gboolean xdg_vars_initialized = FALSE; -static char *mc_config_str = NULL; -static char *mc_cache_str = NULL; -static char *mc_data_str = NULL; - -static gboolean config_dir_present = FALSE; - -static const struct -{ - char **basedir; - const char *filename; -} mc_config_files_reference[] = { - /* *INDENT-OFF* */ - /* config */ - { &mc_config_str, MC_CONFIG_FILE }, - { &mc_config_str, MC_FHL_INI_FILE }, - { &mc_config_str, MC_HOTLIST_FILE }, - { &mc_config_str, GLOBAL_KEYMAP_FILE }, - { &mc_config_str, MC_USERMENU_FILE }, - { &mc_config_str, EDIT_HOME_MENU }, - { &mc_config_str, MC_PANELS_FILE }, - - /* User should move this file with applying some changes in file */ - { &mc_config_str, MC_EXT_FILE }, - { &mc_config_str, MC_EXT_OLD_FILE }, - - /* data */ - { &mc_data_str, MC_SKINS_DIR }, - { &mc_data_str, VFS_SHELL_PREFIX }, - { &mc_data_str, MC_ASHRC_FILE }, - { &mc_data_str, MC_KSHRC_FILE }, - { &mc_data_str, MC_MKSHRC_FILE }, - { &mc_data_str, MC_BASHRC_FILE }, - { &mc_data_str, MC_INPUTRC_FILE }, - { &mc_data_str, MC_ZSHRC_FILE }, - { &mc_data_str, MC_EXTFS_DIR }, - { &mc_data_str, MC_HISTORY_FILE }, - { &mc_data_str, MC_FILEPOS_FILE }, - { &mc_data_str, EDIT_SYNTAX_FILE }, - { &mc_data_str, EDIT_HOME_CLIP_FILE }, - { &mc_data_str, MC_MACRO_FILE }, - - /* cache */ - { &mc_cache_str, "mc.log" }, - { &mc_cache_str, MC_TREESTORE_FILE }, - { &mc_cache_str, EDIT_HOME_TEMP_FILE }, - { &mc_cache_str, EDIT_HOME_BLOCK_FILE }, - - { NULL, NULL } - /* *INDENT-ON* */ -}; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions *********************************************************************** */ -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_config_mkdir (const char *directory_name, GError **mcerror) -{ - mc_return_if_error (mcerror); - - if ((!g_file_test (directory_name, G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)) && - (g_mkdir_with_parents (directory_name, 0700) != 0)) - mc_propagate_error (mcerror, 0, _("Cannot create %s directory"), directory_name); -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -mc_config_init_one_config_path (const char *path_base, const char *subdir, GError **mcerror) -{ - char *full_path; - - mc_return_val_if_error (mcerror, FALSE); - - full_path = g_build_filename (path_base, subdir, (char *) NULL); - - if (g_file_test (full_path, G_FILE_TEST_EXISTS)) - { - if (g_file_test (full_path, G_FILE_TEST_IS_DIR)) - config_dir_present = TRUE; - else - { - fprintf (stderr, "%s %s\n", _("FATAL: not a directory:"), full_path); - exit (EXIT_FAILURE); - } - } - - mc_config_mkdir (full_path, mcerror); - if (mcerror != NULL && *mcerror != NULL) - MC_PTR_FREE (full_path); - - return full_path; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_init_config_paths (GError **mcerror) -{ - const char *profile_root; - char *dir; - - mc_return_if_error (mcerror); - - if (xdg_vars_initialized) - return; - - profile_root = mc_get_profile_root (); - - if (strcmp (profile_root, mc_config_get_home_dir ()) != 0) - { - /* - * The user overrode the default profile root. - * - * In this case we can't use GLib's g_get_user_{config,cache,data}_dir() - * as these functions use the user's home dir as the root. - */ - - dir = g_build_filename (profile_root, ".config", (char *) NULL); - mc_config_str = mc_config_init_one_config_path (dir, MC_USERCONF_DIR, mcerror); - g_free (dir); - - dir = g_build_filename (profile_root, ".cache", (char *) NULL); - mc_cache_str = mc_config_init_one_config_path (dir, MC_USERCONF_DIR, mcerror); - g_free (dir); - - dir = g_build_filename (profile_root, ".local", "share", (char *) NULL); - mc_data_str = mc_config_init_one_config_path (dir, MC_USERCONF_DIR, mcerror); - g_free (dir); - } - else - { - mc_config_str = - mc_config_init_one_config_path (g_get_user_config_dir (), MC_USERCONF_DIR, mcerror); - mc_cache_str = - mc_config_init_one_config_path (g_get_user_cache_dir (), MC_USERCONF_DIR, mcerror); - mc_data_str = - mc_config_init_one_config_path (g_get_user_data_dir (), MC_USERCONF_DIR, mcerror); - } - - xdg_vars_initialized = TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_deinit_config_paths (void) -{ - if (!xdg_vars_initialized) - return; - - g_free (mc_config_str); - g_free (mc_cache_str); - g_free (mc_data_str); - - g_free (mc_global.share_data_dir); - g_free (mc_global.sysconfig_dir); - - xdg_vars_initialized = FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -mc_config_get_data_path (void) -{ - if (!xdg_vars_initialized) - mc_config_init_config_paths (NULL); - - return (const char *) mc_data_str; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -mc_config_get_cache_path (void) -{ - if (!xdg_vars_initialized) - mc_config_init_config_paths (NULL); - - return (const char *) mc_cache_str; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -mc_config_get_home_dir (void) -{ - static const char *homedir = NULL; - - if (homedir == NULL) - { - /* Prior to GLib 2.36, g_get_home_dir() ignores $HOME, which is why - * we read it ourselves. As that function's documentation explains, - * using $HOME is good for compatibility with other programs and - * for running from test frameworks. */ - homedir = g_getenv ("HOME"); - if (homedir == NULL || *homedir == '\0') - homedir = g_get_home_dir (); - } - - return homedir; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -mc_config_get_path (void) -{ - if (!xdg_vars_initialized) - mc_config_init_config_paths (NULL); - - return (const char *) mc_config_str; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Get full path to config file by short name. - * - * @param config_name short name - * @return full path to config file - */ - -char * -mc_config_get_full_path (const char *config_name) -{ - size_t rule_index; - - if (config_name == NULL) - return NULL; - - if (!xdg_vars_initialized) - mc_config_init_config_paths (NULL); - - for (rule_index = 0; mc_config_files_reference[rule_index].filename != NULL; rule_index++) - if (strcmp (config_name, mc_config_files_reference[rule_index].filename) == 0) - return g_build_filename (*mc_config_files_reference[rule_index].basedir, - mc_config_files_reference[rule_index].filename, (char *) NULL); - - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Get full path to config file by short name. - * - * @param config_name short name - * @return object with full path to config file - */ - -vfs_path_t * -mc_config_get_full_vpath (const char *config_name) -{ - vfs_path_t *ret_vpath; - char *str_path; - - str_path = mc_config_get_full_path (config_name); - - ret_vpath = vfs_path_from_str (str_path); - g_free (str_path); - - return ret_vpath; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/mcconfig/set.c b/recipes/wip/files/mc/source/lib/mcconfig/set.c deleted file mode 100644 index a7e3258c34..0000000000 --- a/recipes/wip/files/mc/source/lib/mcconfig/set.c +++ /dev/null @@ -1,158 +0,0 @@ -/* - Configure module for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "lib/global.h" -#include "lib/strutil.h" - -#include "lib/mcconfig.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static gchar * -mc_config_normalize_before_save (const gchar *value) -{ - GIConv conv; - GString *buffer; - gboolean ok; - - if (mc_global.utf8_display) - return g_strdup (value); - - conv = str_crt_conv_to ("UTF-8"); - if (conv == INVALID_CONV) - return g_strdup (value); - - buffer = g_string_new (""); - - ok = (str_convert (conv, value, buffer) != ESTR_FAILURE); - str_close_conv (conv); - - if (!ok) - { - g_string_free (buffer, TRUE); - return g_strdup (value); - } - - return g_string_free (buffer, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_set_string_raw (mc_config_t *mc_config, const gchar *group, - const gchar *param, const gchar *value) -{ - if (mc_config != NULL && group != NULL && param != NULL && value != NULL) - g_key_file_set_string (mc_config->handle, group, param, value); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_set_string_raw_value (mc_config_t *mc_config, const gchar *group, - const gchar *param, const gchar *value) -{ - if (mc_config != NULL && group != NULL && param != NULL && value != NULL) - g_key_file_set_value (mc_config->handle, group, param, value); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_set_string (mc_config_t *mc_config, const gchar *group, - const gchar *param, const gchar *value) -{ - if (mc_config != NULL && group != NULL && param != NULL && value != NULL) - { - gchar *buffer; - - buffer = mc_config_normalize_before_save (value); - g_key_file_set_string (mc_config->handle, group, param, buffer); - g_free (buffer); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_set_bool (mc_config_t *mc_config, const gchar *group, const gchar *param, gboolean value) -{ - if (mc_config != NULL && group != NULL && param != NULL) - g_key_file_set_boolean (mc_config->handle, group, param, value); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_set_int (mc_config_t *mc_config, const gchar *group, const gchar *param, int value) -{ - if (mc_config != NULL && group != NULL && param != NULL) - g_key_file_set_integer (mc_config->handle, group, param, value); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_set_string_list (mc_config_t *mc_config, const gchar *group, - const gchar *param, const gchar *const value[], gsize length) -{ - if (mc_config != NULL && group != NULL && param != NULL && value != NULL && length != 0) - g_key_file_set_string_list (mc_config->handle, group, param, value, length); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_set_bool_list (mc_config_t *mc_config, const gchar *group, - const gchar *param, gboolean value[], gsize length) -{ - if (mc_config != NULL && group != NULL && param != NULL && value != NULL && length != 0) - g_key_file_set_boolean_list (mc_config->handle, group, param, value, length); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_config_set_int_list (mc_config_t *mc_config, const gchar *group, - const gchar *param, int value[], gsize length) -{ - if (mc_config != NULL && group != NULL && param != NULL && value != NULL && length != 0) - g_key_file_set_integer_list (mc_config->handle, group, param, value, length); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/search.h b/recipes/wip/files/mc/source/lib/search.h deleted file mode 100644 index 6ce4b189e6..0000000000 --- a/recipes/wip/files/mc/source/lib/search.h +++ /dev/null @@ -1,210 +0,0 @@ -#ifndef MC__SEARCH_H -#define MC__SEARCH_H - -#include - -#include "lib/global.h" /* */ - -#include - -#ifdef SEARCH_TYPE_PCRE -#ifdef HAVE_PCRE2 -#define PCRE2_CODE_UNIT_WIDTH 8 -#include -#else -#include -#endif -#endif /* SEARCH_TYPE_PCRE */ -/*** typedefs(not structures) and defined constants **********************************************/ - -typedef enum mc_search_cbret_t mc_search_cbret_t; - -typedef mc_search_cbret_t (*mc_search_fn) (const void *user_data, off_t char_offset, - int *current_char); -typedef mc_search_cbret_t (*mc_update_fn) (const void *user_data, off_t char_offset); - -#define MC_SEARCH__NUM_REPLACE_ARGS 64 - -#ifdef SEARCH_TYPE_GLIB -#define mc_search_matchinfo_t GMatchInfo -#else -#ifdef HAVE_PCRE2 -/* no pcre_extra in PCRE2. pcre2_jit_compile (equivalent of pcre_study) handles - * all of this internally. but we can use this to hold the pcre2_matches data - * until the search is complete */ -#define mc_search_matchinfo_t pcre2_match_data -#else -#define mc_search_matchinfo_t pcre_extra -#endif -#endif - -/*** enums ***************************************************************************************/ - -typedef enum -{ - MC_SEARCH_E_OK = 0, - MC_SEARCH_E_INPUT, - MC_SEARCH_E_REGEX_COMPILE, - MC_SEARCH_E_REGEX, - MC_SEARCH_E_REGEX_REPLACE, - MC_SEARCH_E_NOTFOUND, - MC_SEARCH_E_ABORT -} mc_search_error_t; - -typedef enum -{ - MC_SEARCH_T_INVALID = -1, - MC_SEARCH_T_NORMAL, - MC_SEARCH_T_REGEX, - MC_SEARCH_T_HEX, - MC_SEARCH_T_GLOB -} mc_search_type_t; - -/** - * enum to store search conditions check results. - * (whether the search condition has BOL (^) or EOL ($) regexp characters). -*/ -typedef enum -{ - MC_SEARCH_LINE_NONE = 0, - MC_SEARCH_LINE_BEGIN = 1 << 0, - MC_SEARCH_LINE_END = 1 << 1, - MC_SEARCH_LINE_ENTIRE = MC_SEARCH_LINE_BEGIN | MC_SEARCH_LINE_END -} mc_search_line_t; - -enum mc_search_cbret_t -{ - MC_SEARCH_CB_OK = 0, - MC_SEARCH_CB_INVALID = -1, - MC_SEARCH_CB_ABORT = -2, - MC_SEARCH_CB_SKIP = -3, - MC_SEARCH_CB_NOTFOUND = -4 -}; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct mc_search_struct -{ - /* public input data */ - -#ifdef HAVE_CHARSET - /* search in all charsets */ - gboolean is_all_charsets; -#endif - - /* case sensitive search */ - gboolean is_case_sensitive; - - /* search only once. Is this for replace? */ - gboolean is_once_only; - - /* search only whole words (from begin to end). Used only with NORMAL search type */ - gboolean whole_words; - - /* search entire string (from begin to end). Used only with GLOB search type */ - gboolean is_entire_line; - - /* function, used for getting data. NULL if not used */ - mc_search_fn search_fn; - - /* function, used for updatin current search status. NULL if not used */ - mc_update_fn update_fn; - - /* type of search */ - mc_search_type_t search_type; - - /* public output data */ - - /* some data for normal */ - off_t normal_offset; - - off_t start_buffer; - /* some data for regexp */ - int num_results; - gboolean is_utf8; - mc_search_matchinfo_t *regex_match_info; - GString *regex_buffer; -#ifdef SEARCH_TYPE_PCRE -#ifdef HAVE_PCRE2 - /* pcre2 will provide a pointer to a match_data structure that can be manipulated like an iovector */ - size_t *iovector; -#else - int iovector[MC_SEARCH__NUM_REPLACE_ARGS * 2]; -#endif -#endif /* SEARCH_TYPE_PCRE */ - - /* private data */ - - struct - { - GPtrArray *conditions; - gboolean result; - } prepared; - - /* original search string */ - struct - { - GString *str; -#ifdef HAVE_CHARSET - gchar *charset; -#endif - } original; - - /* error code after search */ - mc_search_error_t error; - gchar *error_str; -} mc_search_t; - -typedef struct mc_search_type_str_struct -{ - const char *str; - mc_search_type_t type; -} mc_search_type_str_t; - -/*** global variables defined in .c file *********************************************************/ - -/* Error messages */ -extern const char *STR_E_NOTFOUND; -extern const char *STR_E_UNKNOWN_TYPE; -extern const char *STR_E_RPL_NOT_EQ_TO_FOUND; -extern const char *STR_E_RPL_INVALID_TOKEN; - -/*** declarations of public functions ************************************************************/ - -mc_search_t *mc_search_new (const gchar * original, const gchar * original_charset); - -mc_search_t *mc_search_new_len (const gchar * original, gsize original_len, - const gchar * original_charset); - -void mc_search_free (mc_search_t * lc_mc_search); - -gboolean mc_search_prepare (mc_search_t * mc_search); - -gboolean mc_search_run (mc_search_t * mc_search, const void *user_data, off_t start_search, - off_t end_search, gsize * found_len); - -gboolean mc_search_is_type_avail (mc_search_type_t search_type); - -const mc_search_type_str_t *mc_search_types_list_get (size_t *num); - -GString *mc_search_prepare_replace_str (mc_search_t * mc_search, GString * replace_str); -char *mc_search_prepare_replace_str2 (mc_search_t * lc_mc_search, const char *replace_str); - -gboolean mc_search_is_fixed_search_str (const mc_search_t * lc_mc_search); - -gchar **mc_search_get_types_strings_array (size_t *num); - -gboolean mc_search (const gchar * pattern, const gchar * pattern_charset, const gchar * str, - mc_search_type_t type); - -mc_search_line_t mc_search_get_line_type (const mc_search_t *search); - -int mc_search_getstart_result_by_num (mc_search_t * lc_mc_search, int lc_index); -int mc_search_getend_result_by_num (mc_search_t * lc_mc_search, int lc_index); - -/* *INDENT-OFF* */ -void mc_search_set_error (mc_search_t * lc_mc_search, mc_search_error_t code, const gchar * format, ...) - G_GNUC_PRINTF (3, 4); -/* *INDENT-ON* */ - -#endif /* MC__SEARCH_H */ diff --git a/recipes/wip/files/mc/source/lib/search/Makefile.am b/recipes/wip/files/mc/source/lib/search/Makefile.am deleted file mode 100644 index 48774a5ae8..0000000000 --- a/recipes/wip/files/mc/source/lib/search/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -noinst_LTLIBRARIES = libsearch.la - -libsearch_la_SOURCES = \ - search.c \ - internal.h \ - lib.c \ - normal.c \ - regex.c \ - glob.c \ - hex.c - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) diff --git a/recipes/wip/files/mc/source/lib/search/Makefile.in b/recipes/wip/files/mc/source/lib/search/Makefile.in deleted file mode 100644 index 6d1ed6dddb..0000000000 --- a/recipes/wip/files/mc/source/lib/search/Makefile.in +++ /dev/null @@ -1,763 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = lib/search -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libsearch_la_LIBADD = -am_libsearch_la_OBJECTS = search.lo lib.lo normal.lo regex.lo glob.lo \ - hex.lo -libsearch_la_OBJECTS = $(am_libsearch_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_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__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/glob.Plo ./$(DEPDIR)/hex.Plo \ - ./$(DEPDIR)/lib.Plo ./$(DEPDIR)/normal.Plo \ - ./$(DEPDIR)/regex.Plo ./$(DEPDIR)/search.Plo -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libsearch_la_SOURCES) -DIST_SOURCES = $(libsearch_la_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)` -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -noinst_LTLIBRARIES = libsearch.la -libsearch_la_SOURCES = \ - search.c \ - internal.h \ - lib.c \ - normal.c \ - regex.c \ - glob.c \ - hex.c - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/search/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/search/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libsearch.la: $(libsearch_la_OBJECTS) $(libsearch_la_DEPENDENCIES) $(EXTRA_libsearch_la_DEPENDENCIES) - $(AM_V_CCLD)$(LINK) $(libsearch_la_OBJECTS) $(libsearch_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/glob.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hex.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lib.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/normal.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/regex.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/search.Plo@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.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 -o $@ $< - -.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 -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -f ./$(DEPDIR)/glob.Plo - -rm -f ./$(DEPDIR)/hex.Plo - -rm -f ./$(DEPDIR)/lib.Plo - -rm -f ./$(DEPDIR)/normal.Plo - -rm -f ./$(DEPDIR)/regex.Plo - -rm -f ./$(DEPDIR)/search.Plo - -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-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f ./$(DEPDIR)/glob.Plo - -rm -f ./$(DEPDIR)/hex.Plo - -rm -f ./$(DEPDIR)/lib.Plo - -rm -f ./$(DEPDIR)/normal.Plo - -rm -f ./$(DEPDIR)/regex.Plo - -rm -f ./$(DEPDIR)/search.Plo - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ - clean-generic clean-libtool clean-noinstLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/lib/search/glob.c b/recipes/wip/files/mc/source/lib/search/glob.c deleted file mode 100644 index dcc8590c6c..0000000000 --- a/recipes/wip/files/mc/source/lib/search/glob.c +++ /dev/null @@ -1,210 +0,0 @@ -/* - Search text engine. - Glob-style pattern matching - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "lib/global.h" -#include "lib/strutil.h" -#include "lib/search.h" - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static GString * -mc_search__glob_translate_to_regex (const GString *astr) -{ - GString *buff; - gsize loop; - gboolean inside_group = FALSE; - - buff = g_string_sized_new (32); - - for (loop = 0; loop < astr->len; loop++) - { - const char *str = astr->str; - gboolean not_escaped; - - not_escaped = !str_is_char_escaped (str, str + loop); - - switch (str[loop]) - { - case '*': - if (not_escaped) - { - g_string_append (buff, inside_group ? ".*" : "(.*)"); - continue; - } - break; - case '?': - if (not_escaped) - { - g_string_append (buff, inside_group ? "." : "(.)"); - continue; - } - break; - case ',': - if (not_escaped) - { - g_string_append_c (buff, inside_group ? '|' : ','); - continue; - } - break; - case '{': - if (not_escaped) - { - g_string_append_c (buff, '('); - inside_group = TRUE; - continue; - } - break; - case '}': - if (not_escaped) - { - g_string_append_c (buff, ')'); - inside_group = FALSE; - continue; - } - break; - case '+': - case '.': - case '$': - case '(': - case ')': - case '^': - g_string_append_c (buff, '\\'); - break; - default: - break; - } - g_string_append_c (buff, str[loop]); - } - return buff; -} - -/* --------------------------------------------------------------------------------------------- */ - -static GString * -mc_search__translate_replace_glob_to_regex (const char *str) -{ - GString *buff; - char cnt = '0'; - gboolean escaped_mode = FALSE; - - buff = g_string_sized_new (32); - - while (*str != '\0') - { - char c = *str++; - - switch (c) - { - case '\\': - if (!escaped_mode) - { - escaped_mode = TRUE; - g_string_append_c (buff, '\\'); - continue; - } - break; - case '*': - case '?': - if (!escaped_mode) - { - g_string_append_c (buff, '\\'); - c = ++cnt; - } - break; - case '&': - if (!escaped_mode) - g_string_append_c (buff, '\\'); - break; - default: - break; - } - g_string_append_c (buff, c); - escaped_mode = FALSE; - } - return buff; -} - -/*** public functions ****************************************************************************/ - -void -mc_search__cond_struct_new_init_glob (const char *charset, mc_search_t *lc_mc_search, - mc_search_cond_t *mc_search_cond) -{ - GString *tmp; - - tmp = mc_search__glob_translate_to_regex (mc_search_cond->str); - g_string_free (mc_search_cond->str, TRUE); - - if (lc_mc_search->is_entire_line) - { - g_string_prepend_c (tmp, '^'); - g_string_append_c (tmp, '$'); - } - mc_search_cond->str = tmp; - - mc_search__cond_struct_new_init_regex (charset, lc_mc_search, mc_search_cond); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_search__run_glob (mc_search_t *lc_mc_search, const void *user_data, - off_t start_search, off_t end_search, gsize *found_len) -{ - return mc_search__run_regex (lc_mc_search, user_data, start_search, end_search, found_len); -} - -/* --------------------------------------------------------------------------------------------- */ - -GString * -mc_search_glob_prepare_replace_str (mc_search_t *lc_mc_search, GString *replace_str) -{ - GString *repl, *res; - - repl = mc_search__translate_replace_glob_to_regex (replace_str->str); - res = mc_search_regex_prepare_replace_str (lc_mc_search, repl); - g_string_free (repl, TRUE); - - return res; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/search/hex.c b/recipes/wip/files/mc/source/lib/search/hex.c deleted file mode 100644 index 2440aa3d0f..0000000000 --- a/recipes/wip/files/mc/source/lib/search/hex.c +++ /dev/null @@ -1,234 +0,0 @@ -/* - Search text engine. - HEX-style pattern matching - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include - -#include "lib/global.h" -#include "lib/strutil.h" -#include "lib/search.h" - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -typedef enum -{ - MC_SEARCH_HEX_E_OK, - MC_SEARCH_HEX_E_NUM_OUT_OF_RANGE, - MC_SEARCH_HEX_E_INVALID_CHARACTER, - MC_SEARCH_HEX_E_UNMATCHED_QUOTES -} mc_search_hex_parse_error_t; - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static GString * -mc_search__hex_translate_to_regex (const GString *astr, mc_search_hex_parse_error_t *error_ptr, - int *error_pos_ptr) -{ - GString *buff; - const char *str; - gsize str_len; - gsize loop = 0; - mc_search_hex_parse_error_t error = MC_SEARCH_HEX_E_OK; - - buff = g_string_sized_new (64); - str = astr->str; - str_len = astr->len; - - while (loop < str_len && error == MC_SEARCH_HEX_E_OK) - { - unsigned int val; - int ptr; - - if (g_ascii_isspace (str[loop])) - { - /* Eat-up whitespace between tokens. */ - while (g_ascii_isspace (str[loop])) - loop++; - } - /* cppcheck-suppress invalidscanf */ - else if (sscanf (str + loop, "%x%n", &val, &ptr) == 1) - { - if (val > 255) - error = MC_SEARCH_HEX_E_NUM_OUT_OF_RANGE; - else - { - g_string_append_printf (buff, "\\x%02X", val); - loop += ptr; - } - } - else if (str[loop] == '"') - { - gsize loop2; - - loop2 = loop + 1; - - while (loop2 < str_len) - { - if (str[loop2] == '"') - break; - if (str[loop2] == '\\' && loop2 + 1 < str_len) - loop2++; - g_string_append_c (buff, str[loop2]); - loop2++; - } - - if (str[loop2] == '\0') - error = MC_SEARCH_HEX_E_UNMATCHED_QUOTES; - else - loop = loop2 + 1; - } - else - error = MC_SEARCH_HEX_E_INVALID_CHARACTER; - } - - if (error != MC_SEARCH_HEX_E_OK) - { - g_string_free (buff, TRUE); - if (error_ptr != NULL) - *error_ptr = error; - if (error_pos_ptr != NULL) - *error_pos_ptr = loop; - return NULL; - } - - return buff; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_search__cond_struct_new_init_hex (const char *charset, mc_search_t *lc_mc_search, - mc_search_cond_t *mc_search_cond) -{ - GString *tmp; - mc_search_hex_parse_error_t error = MC_SEARCH_HEX_E_OK; - int error_pos = 0; - - /* - * We may be searching in binary data, which is often invalid UTF-8. - * - * We have to create a non UTF-8 regex (that is, G_REGEX_RAW) or else, as - * the data is invalid UTF-8, both GLib's PCRE and our - * mc_search__g_regex_match_full_safe() are going to fail us. The former by - * not finding all bytes, the latter by overwriting the supposedly invalid - * UTF-8 with NULs. - * - * To do this, we specify "ASCII" as the charset. - * - * In fact, we can specify any charset other than "UTF-8": any such charset - * will trigger G_REGEX_RAW (see [1]). The output of [2] will be the same - * for all charsets because it skips the \xXX symbols - * mc_search__hex_translate_to_regex() outputs. - * - * But "ASCII" is the best choice because a hex pattern may contain a - * quoted string: this way we know [2] will ignore any characters outside - * ASCII letters range (these ignored chars will be copied verbatim to the - * output and will match as-is; in other words, in a case-sensitive manner; - * If the user is interested in case-insensitive searches of international - * text, he shouldn't be using hex search in the first place.) - * - * Switching out of UTF-8 has another advantage: - * - * When doing case-insensitive searches, GLib treats \xXX symbols as normal - * letters and therefore matches both "a" and "A" for the hex pattern - * "0x61". When we switch out of UTF-8, we're switching to using [2], which - * doesn't have this issue. - * - * [1] mc_search__cond_struct_new_init_regex - * [2] mc_search__cond_struct_new_regex_ci_str - */ - if (str_isutf8 (charset)) - charset = "ASCII"; - - tmp = mc_search__hex_translate_to_regex (mc_search_cond->str, &error, &error_pos); - if (tmp != NULL) - { - g_string_free (mc_search_cond->str, TRUE); - mc_search_cond->str = tmp; - mc_search__cond_struct_new_init_regex (charset, lc_mc_search, mc_search_cond); - } - else - { - const char *desc; - - switch (error) - { - case MC_SEARCH_HEX_E_NUM_OUT_OF_RANGE: - desc = - _ - ("Number out of range (should be in byte range, 0 <= n <= 0xFF, expressed in hex)"); - break; - case MC_SEARCH_HEX_E_INVALID_CHARACTER: - desc = _("Invalid character"); - break; - case MC_SEARCH_HEX_E_UNMATCHED_QUOTES: - desc = _("Unmatched quotes character"); - break; - default: - desc = ""; - } - - lc_mc_search->error = MC_SEARCH_E_INPUT; - lc_mc_search->error_str = - g_strdup_printf (_("Hex pattern error at position %d:\n%s."), error_pos + 1, desc); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_search__run_hex (mc_search_t *lc_mc_search, const void *user_data, - off_t start_search, off_t end_search, gsize *found_len) -{ - return mc_search__run_regex (lc_mc_search, user_data, start_search, end_search, found_len); -} - -/* --------------------------------------------------------------------------------------------- */ - -GString * -mc_search_hex_prepare_replace_str (mc_search_t *lc_mc_search, GString *replace_str) -{ - (void) lc_mc_search; - - return mc_g_string_dup (replace_str); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/search/internal.h b/recipes/wip/files/mc/source/lib/search/internal.h deleted file mode 100644 index 88f19f3dd3..0000000000 --- a/recipes/wip/files/mc/source/lib/search/internal.h +++ /dev/null @@ -1,86 +0,0 @@ -#ifndef MC__SEARCH_INTERNAL_H -#define MC__SEARCH_INTERNAL_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#ifdef SEARCH_TYPE_GLIB -#define mc_search_regex_t GRegex -#else -#ifdef HAVE_PCRE2 -#define mc_search_regex_t pcre2_code -#else -#define mc_search_regex_t pcre -#endif -#endif - -/*** enums ***************************************************************************************/ - -typedef enum -{ - COND__NOT_FOUND, - COND__NOT_ALL_FOUND, - COND__FOUND_CHAR, - COND__FOUND_CHAR_LAST, - COND__FOUND_OK, - COND__FOUND_ERROR -} mc_search__found_cond_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct mc_search_cond_struct -{ - GString *str; - GString *upper; - GString *lower; - mc_search_regex_t *regex_handle; - gchar *charset; -} mc_search_cond_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/* search/lib.c : */ - -GString *mc_search__recode_str (const char *str, gsize str_len, const char *charset_from, - const char *charset_to); -GString *mc_search__get_one_symbol (const char *charset, const char *str, gsize str_len, - gboolean * just_letters); -GString *mc_search__tolower_case_str (const char *charset, const GString * str); -GString *mc_search__toupper_case_str (const char *charset, const GString * str); - -/* search/regex.c : */ - -void mc_search__cond_struct_new_init_regex (const char *charset, mc_search_t * lc_mc_search, - mc_search_cond_t * mc_search_cond); -gboolean mc_search__run_regex (mc_search_t * lc_mc_search, const void *user_data, - off_t start_search, off_t end_search, gsize * found_len); -GString *mc_search_regex_prepare_replace_str (mc_search_t * lc_mc_search, GString * replace_str); - -/* search/normal.c : */ - -void mc_search__cond_struct_new_init_normal (const char *charset, mc_search_t * lc_mc_search, - mc_search_cond_t * mc_search_cond); -gboolean mc_search__run_normal (mc_search_t * lc_mc_search, const void *user_data, - off_t start_search, off_t end_search, gsize * found_len); -GString *mc_search_normal_prepare_replace_str (mc_search_t * lc_mc_search, GString * replace_str); - -/* search/glob.c : */ - -void mc_search__cond_struct_new_init_glob (const char *charset, mc_search_t * lc_mc_search, - mc_search_cond_t * mc_search_cond); -gboolean mc_search__run_glob (mc_search_t * lc_mc_search, const void *user_data, - off_t start_search, off_t end_search, gsize * found_len); -GString *mc_search_glob_prepare_replace_str (mc_search_t * lc_mc_search, GString * replace_str); - -/* search/hex.c : */ - -void mc_search__cond_struct_new_init_hex (const char *charset, mc_search_t * lc_mc_search, - mc_search_cond_t * mc_search_cond); -gboolean mc_search__run_hex (mc_search_t * lc_mc_search, const void *user_data, - off_t start_search, off_t end_search, gsize * found_len); -GString *mc_search_hex_prepare_replace_str (mc_search_t * lc_mc_search, GString * replace_str); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__SEARCH_INTERNAL_H */ diff --git a/recipes/wip/files/mc/source/lib/search/lib.c b/recipes/wip/files/mc/source/lib/search/lib.c deleted file mode 100644 index c914b6cdfa..0000000000 --- a/recipes/wip/files/mc/source/lib/search/lib.c +++ /dev/null @@ -1,233 +0,0 @@ -/* - Search text engine. - Common share code for module. - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009, 2011 - Andrew Borodin , 2013 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include -#include - -#include "lib/global.h" -#include "lib/strutil.h" -#include "lib/search.h" -#ifdef HAVE_CHARSET -#include "lib/charsets.h" -#endif - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/* *INDENT-OFF* */ -const char *STR_E_NOTFOUND = N_("Search string not found"); -const char *STR_E_UNKNOWN_TYPE = N_("Not implemented yet"); -const char *STR_E_RPL_NOT_EQ_TO_FOUND = - N_("Num of replace tokens not equal to num of found tokens"); -const char *STR_E_RPL_INVALID_TOKEN = N_("Invalid token number %d"); -/* *INDENT-ON* */ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -typedef gboolean (*case_conv_fn) (const char *ch, char **out, size_t *remain); - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static GString * -mc_search__change_case_str (const char *charset, const GString *str, case_conv_fn case_conv) -{ - GString *ret; - const char *src_ptr; - gchar *dst_str; - gchar *dst_ptr; - gsize dst_len; -#ifdef HAVE_CHARSET - GString *converted_str; - - if (charset == NULL) - charset = cp_source; - - converted_str = mc_search__recode_str (str->str, str->len, charset, cp_display); - - dst_len = converted_str->len + 1; /* +1 is required for str_toupper/str_tolower */ - dst_str = g_malloc (dst_len); - - for (src_ptr = converted_str->str, dst_ptr = dst_str; - case_conv (src_ptr, &dst_ptr, &dst_len); src_ptr += str_length_char (src_ptr)) - ; - *dst_ptr = '\0'; - - dst_len = converted_str->len; - g_string_free (converted_str, TRUE); - - ret = mc_search__recode_str (dst_str, dst_len, cp_display, charset); - g_free (dst_str); -#else - (void) charset; - - dst_len = str->len + 1; /* +1 is required for str_toupper/str_tolower */ - dst_str = g_malloc (dst_len); - - for (src_ptr = str->str, dst_ptr = dst_str; - case_conv (src_ptr, &dst_ptr, &dst_len); src_ptr += str_length_char (src_ptr)) - ; - *dst_ptr = '\0'; - - ret = g_string_new_len (dst_str, dst_len); - g_free (dst_str); -#endif - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -GString * -mc_search__recode_str (const char *str, gsize str_len, const char *charset_from, - const char *charset_to) -{ - GString *ret = NULL; - - if (charset_from != NULL && charset_to != NULL - && g_ascii_strcasecmp (charset_to, charset_from) != 0) - { - GIConv conv; - - conv = g_iconv_open (charset_to, charset_from); - if (conv != INVALID_CONV) - { - gchar *val; - gsize bytes_read = 0; - gsize bytes_written = 0; - - val = g_convert_with_iconv (str, str_len, conv, &bytes_read, &bytes_written, NULL); - - g_iconv_close (conv); - - if (val != NULL) - { - ret = g_string_new_len (val, bytes_written); - g_free (val); - } - } - } - - if (ret == NULL) - ret = g_string_new_len (str, str_len); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -GString * -mc_search__get_one_symbol (const char *charset, const char *str, gsize str_len, - gboolean *just_letters) -{ - GString *converted_str; - const gchar *next_char; - -#ifdef HAVE_CHARSET - GString *converted_str2; - - if (charset == NULL) - charset = cp_source; - - converted_str = mc_search__recode_str (str, str_len, charset, cp_display); -#else - (void) charset; - - converted_str = g_string_new_len (str, str_len); -#endif - - next_char = str_cget_next_char (converted_str->str); - g_string_set_size (converted_str, (gsize) (next_char - converted_str->str)); - -#ifdef HAVE_CHARSET - converted_str2 = - mc_search__recode_str (converted_str->str, converted_str->len, cp_display, charset); -#endif - if (just_letters != NULL) - *just_letters = str_isalnum (converted_str->str) && !str_isdigit (converted_str->str); -#ifdef HAVE_CHARSET - g_string_free (converted_str, TRUE); - return converted_str2; -#else - return converted_str; -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -GString * -mc_search__tolower_case_str (const char *charset, const GString *str) -{ - return mc_search__change_case_str (charset, str, str_tolower); -} - -/* --------------------------------------------------------------------------------------------- */ - -GString * -mc_search__toupper_case_str (const char *charset, const GString *str) -{ - return mc_search__change_case_str (charset, str, str_toupper); -} - -/* --------------------------------------------------------------------------------------------- */ - -gchar ** -mc_search_get_types_strings_array (size_t *num) -{ - gchar **ret; - int lc_index; - size_t n; - - const mc_search_type_str_t *type_str; - const mc_search_type_str_t *types_str = mc_search_types_list_get (&n); - - ret = g_try_new0 (char *, n + 1); - if (ret == NULL) - return NULL; - - for (lc_index = 0, type_str = types_str; type_str->str != NULL; type_str++, lc_index++) - ret[lc_index] = g_strdup (type_str->str); - - /* don't count last NULL item */ - if (num != NULL) - *num = (size_t) lc_index; - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/search/normal.c b/recipes/wip/files/mc/source/lib/search/normal.c deleted file mode 100644 index d83b13272a..0000000000 --- a/recipes/wip/files/mc/source/lib/search/normal.c +++ /dev/null @@ -1,109 +0,0 @@ -/* - Search text engine. - Plain search - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "lib/global.h" -#include "lib/strutil.h" -#include "lib/search.h" - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_search__normal_translate_to_regex (GString *str) -{ - gsize loop; - - for (loop = 0; loop < str->len; loop++) - switch (str->str[loop]) - { - case '*': - case '?': - case ',': - case '{': - case '}': - case '[': - case ']': - case '\\': - case '+': - case '.': - case '$': - case '(': - case ')': - case '^': - case '-': - case '|': - g_string_insert_c (str, loop, '\\'); - loop++; - break; - default: - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_search__cond_struct_new_init_normal (const char *charset, mc_search_t *lc_mc_search, - mc_search_cond_t *mc_search_cond) -{ - mc_search__normal_translate_to_regex (mc_search_cond->str); - mc_search__cond_struct_new_init_regex (charset, lc_mc_search, mc_search_cond); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_search__run_normal (mc_search_t *lc_mc_search, const void *user_data, - off_t start_search, off_t end_search, gsize *found_len) -{ - return mc_search__run_regex (lc_mc_search, user_data, start_search, end_search, found_len); -} - -/* --------------------------------------------------------------------------------------------- */ -GString * -mc_search_normal_prepare_replace_str (mc_search_t *lc_mc_search, GString *replace_str) -{ - (void) lc_mc_search; - - return mc_g_string_dup (replace_str); -} diff --git a/recipes/wip/files/mc/source/lib/search/regex.c b/recipes/wip/files/mc/source/lib/search/regex.c deleted file mode 100644 index 815477766f..0000000000 --- a/recipes/wip/files/mc/source/lib/search/regex.c +++ /dev/null @@ -1,1143 +0,0 @@ -/* - Search text engine. - Regex search - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009, 2010, 2011, 2013 - Vitaliy Filippov , 2011 - Andrew Borodin , 2013-2015 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include - -#include "lib/global.h" -#include "lib/strutil.h" -#include "lib/search.h" -#include "lib/util.h" /* MC_PTR_FREE */ - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#define REPLACE_PREPARE_T_NOTHING_SPECIAL -1 -#define REPLACE_PREPARE_T_REPLACE_FLAG -2 -#define REPLACE_PREPARE_T_ESCAPE_SEQ -3 - -/*** file scope type declarations ****************************************************************/ - -typedef enum -{ - REPLACE_T_NO_TRANSFORM = 0, - REPLACE_T_UPP_TRANSFORM_CHAR = 1, - REPLACE_T_LOW_TRANSFORM_CHAR = 2, - REPLACE_T_UPP_TRANSFORM = 4, - REPLACE_T_LOW_TRANSFORM = 8 -} replace_transform_type_t; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -mc_search__regex_str_append_if_special (GString *copy_to, const GString *regex_str, gsize *offset) -{ - const char *special_chars[] = { - "\\s", "\\S", - "\\d", "\\D", - "\\b", "\\B", - "\\w", "\\W", - "\\t", "\\n", - "\\r", "\\f", - "\\a", "\\e", - "\\x", "\\X", - "\\c", "\\C", - "\\l", "\\L", - "\\u", "\\U", - "\\E", "\\Q", - NULL - }; - - char *tmp_regex_str; - const char **spec_chr; - - tmp_regex_str = &(regex_str->str[*offset]); - - for (spec_chr = special_chars; *spec_chr != NULL; spec_chr++) - { - gsize spec_chr_len; - - spec_chr_len = strlen (*spec_chr); - - if (strncmp (tmp_regex_str, *spec_chr, spec_chr_len) == 0 - && !str_is_char_escaped (regex_str->str, tmp_regex_str)) - { - if (strncmp ("\\x", *spec_chr, spec_chr_len) == 0) - { - if (tmp_regex_str[spec_chr_len] != '{') - spec_chr_len += 2; - else - { - while ((spec_chr_len < regex_str->len - *offset) - && tmp_regex_str[spec_chr_len] != '}') - spec_chr_len++; - if (tmp_regex_str[spec_chr_len] == '}') - spec_chr_len++; - } - } - g_string_append_len (copy_to, tmp_regex_str, spec_chr_len); - *offset += spec_chr_len; - return TRUE; - } - } - - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_search__cond_struct_new_regex_hex_add (const char *charset, GString *str_to, - const GString *one_char) -{ - GString *upp, *low; - gsize loop; - - upp = mc_search__toupper_case_str (charset, one_char); - low = mc_search__tolower_case_str (charset, one_char); - - for (loop = 0; loop < upp->len; loop++) - { - gchar tmp_str[10 + 1]; /* longest content is "[\\x%02X\\x%02X]" */ - gint tmp_len; - - if (loop >= low->len || upp->str[loop] == low->str[loop]) - tmp_len = - g_snprintf (tmp_str, sizeof (tmp_str), "\\x%02X", (unsigned char) upp->str[loop]); - else - tmp_len = - g_snprintf (tmp_str, sizeof (tmp_str), "[\\x%02X\\x%02X]", - (unsigned char) upp->str[loop], (unsigned char) low->str[loop]); - - g_string_append_len (str_to, tmp_str, tmp_len); - } - - g_string_free (upp, TRUE); - g_string_free (low, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_search__cond_struct_new_regex_accum_append (const char *charset, GString *str_to, - GString *str_from) -{ - GString *recoded_part; - gsize loop = 0; - - recoded_part = g_string_sized_new (32); - - while (loop < str_from->len) - { - GString *one_char; - gboolean just_letters; - - one_char = - mc_search__get_one_symbol (charset, str_from->str + loop, - MIN (str_from->len - loop, 6), &just_letters); - - if (one_char->len == 0) - loop++; - else - { - loop += one_char->len; - - if (just_letters) - mc_search__cond_struct_new_regex_hex_add (charset, recoded_part, one_char); - else - g_string_append_len (recoded_part, one_char->str, one_char->len); - } - - g_string_free (one_char, TRUE); - } - - g_string_append_len (str_to, recoded_part->str, recoded_part->len); - g_string_free (recoded_part, TRUE); - g_string_set_size (str_from, 0); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Creates a case-insensitive version of a regex pattern. - * - * For example (assuming ASCII charset): given "\\bHello!\\xAB", returns - * "\\b[Hh][Ee][Ll][Ll][Oo]!\\xAB" (this example is for easier reading; in - * reality hex codes are used instead of letters). - * - * This function knows not to ruin special regex symbols. - * - * This function is used when working with non-UTF-8 charsets: GLib's - * regex engine doesn't understand such charsets and therefore can't do - * this job itself. - */ -static GString * -mc_search__cond_struct_new_regex_ci_str (const char *charset, const GString *astr) -{ - GString *accumulator, *spec_char, *ret_str; - gsize loop; - - ret_str = g_string_sized_new (64); - accumulator = g_string_sized_new (64); - spec_char = g_string_sized_new (64); - loop = 0; - - while (loop < astr->len) - { - if (mc_search__regex_str_append_if_special (spec_char, astr, &loop)) - { - mc_search__cond_struct_new_regex_accum_append (charset, ret_str, accumulator); - g_string_append_len (ret_str, spec_char->str, spec_char->len); - g_string_set_size (spec_char, 0); - continue; - } - - if (astr->str[loop] == '[' && !str_is_char_escaped (astr->str, &(astr->str[loop]))) - { - mc_search__cond_struct_new_regex_accum_append (charset, ret_str, accumulator); - - while (loop < astr->len && !(astr->str[loop] == ']' - && !str_is_char_escaped (astr->str, &(astr->str[loop])))) - { - g_string_append_c (ret_str, astr->str[loop]); - loop++; - } - - g_string_append_c (ret_str, astr->str[loop]); - loop++; - continue; - } - /* - TODO: handle [ and ] - */ - g_string_append_c (accumulator, astr->str[loop]); - loop++; - } - mc_search__cond_struct_new_regex_accum_append (charset, ret_str, accumulator); - - g_string_free (accumulator, TRUE); - g_string_free (spec_char, TRUE); - - return ret_str; -} - -/* --------------------------------------------------------------------------------------------- */ - -#ifdef SEARCH_TYPE_GLIB -/* A thin wrapper above g_regex_match_full that makes sure the string passed - * to it is valid UTF-8 (unless G_REGEX_RAW compile flag was set), as it is a - * requirement by glib and it might crash otherwise. See: mc ticket 3449. - * Be careful: there might be embedded NULs in the strings. */ -static gboolean -mc_search__g_regex_match_full_safe (const GRegex *regex, - const gchar *string, - gssize string_len, - gint start_position, - GRegexMatchFlags match_options, - GMatchInfo **match_info, GError **error) -{ - char *string_safe, *p, *end; - gboolean ret; - - if (string_len < 0) - string_len = strlen (string); - - if ((g_regex_get_compile_flags (regex) & G_REGEX_RAW) - || g_utf8_validate (string, string_len, NULL)) - { - return g_regex_match_full (regex, string, string_len, start_position, match_options, - match_info, error); - } - - /* Correctly handle embedded NULs while copying */ - p = string_safe = g_malloc (string_len + 1); - memcpy (string_safe, string, string_len); - string_safe[string_len] = '\0'; - end = p + string_len; - - while (p < end) - { - gunichar c = g_utf8_get_char_validated (p, -1); - if (c != (gunichar) (-1) && c != (gunichar) (-2)) - { - p = g_utf8_next_char (p); - } - else - { - /* U+FFFD would be the proper choice, but then we'd have to - maintain mapping between old and new offsets. - So rather do a byte by byte replacement. */ - *p++ = '\0'; - } - } - - ret = - g_regex_match_full (regex, string_safe, string_len, start_position, match_options, - match_info, error); - g_free (string_safe); - return ret; -} -#endif /* SEARCH_TYPE_GLIB */ - -/* --------------------------------------------------------------------------------------------- */ - -static mc_search__found_cond_t -mc_search__regex_found_cond_one (mc_search_t *lc_mc_search, mc_search_regex_t *regex, - GString *search_str) -{ -#ifdef SEARCH_TYPE_GLIB - GError *mcerror = NULL; - - if (!mc_search__g_regex_match_full_safe - (regex, search_str->str, search_str->len, 0, G_REGEX_MATCH_NEWLINE_ANY, - &lc_mc_search->regex_match_info, &mcerror)) - { - g_match_info_free (lc_mc_search->regex_match_info); - lc_mc_search->regex_match_info = NULL; - if (mcerror != NULL) - { - lc_mc_search->error = MC_SEARCH_E_REGEX; - g_free (lc_mc_search->error_str); - lc_mc_search->error_str = - str_conv_gerror_message (mcerror, _("Regular expression error")); - g_error_free (mcerror); - return COND__FOUND_ERROR; - } - return COND__NOT_FOUND; - } - lc_mc_search->num_results = g_match_info_get_match_count (lc_mc_search->regex_match_info); -#else /* SEARCH_TYPE_GLIB */ - - lc_mc_search->num_results = -#ifdef HAVE_PCRE2 - pcre2_match (regex, (unsigned char *) search_str->str, search_str->len, 0, 0, - lc_mc_search->regex_match_info, NULL); -#else - pcre_exec (regex, lc_mc_search->regex_match_info, search_str->str, search_str->len, 0, 0, - lc_mc_search->iovector, MC_SEARCH__NUM_REPLACE_ARGS); -#endif - if (lc_mc_search->num_results < 0) - { - return COND__NOT_FOUND; - } -#endif /* SEARCH_TYPE_GLIB */ - return COND__FOUND_OK; - -} - -/* --------------------------------------------------------------------------------------------- */ - -static mc_search__found_cond_t -mc_search__regex_found_cond (mc_search_t *lc_mc_search, GString *search_str) -{ - gsize loop1; - - for (loop1 = 0; loop1 < lc_mc_search->prepared.conditions->len; loop1++) - { - mc_search_cond_t *mc_search_cond; - mc_search__found_cond_t ret; - - mc_search_cond = - (mc_search_cond_t *) g_ptr_array_index (lc_mc_search->prepared.conditions, loop1); - - if (!mc_search_cond->regex_handle) - continue; - - ret = - mc_search__regex_found_cond_one (lc_mc_search, mc_search_cond->regex_handle, - search_str); - if (ret != COND__NOT_FOUND) - return ret; - } - return COND__NOT_ALL_FOUND; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -mc_search_regex__get_max_num_of_replace_tokens (const gchar *str, gsize len) -{ - int max_token = 0; - gsize loop; - - for (loop = 0; loop < len - 1; loop++) - if (str[loop] == '\\' && g_ascii_isdigit (str[loop + 1])) - { - if (str_is_char_escaped (str, &str[loop])) - continue; - if (max_token < str[loop + 1] - '0') - max_token = str[loop + 1] - '0'; - } - else if (str[loop] == '$' && str[loop + 1] == '{') - { - gsize tmp_len; - - if (str_is_char_escaped (str, &str[loop])) - continue; - - for (tmp_len = 0; - loop + tmp_len + 2 < len && (str[loop + 2 + tmp_len] & (char) 0xf0) == 0x30; - tmp_len++); - - if (str[loop + 2 + tmp_len] == '}') - { - int tmp_token; - char *tmp_str; - - tmp_str = g_strndup (&str[loop + 2], tmp_len); - tmp_token = atoi (tmp_str); - if (max_token < tmp_token) - max_token = tmp_token; - g_free (tmp_str); - } - } - - return max_token; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -mc_search_regex__get_token_by_num (const mc_search_t *lc_mc_search, gsize lc_index) -{ - int fnd_start = 0, fnd_end = 0; - -#ifdef SEARCH_TYPE_GLIB - g_match_info_fetch_pos (lc_mc_search->regex_match_info, lc_index, &fnd_start, &fnd_end); -#else /* SEARCH_TYPE_GLIB */ - fnd_start = lc_mc_search->iovector[lc_index * 2 + 0]; - fnd_end = lc_mc_search->iovector[lc_index * 2 + 1]; -#endif /* SEARCH_TYPE_GLIB */ - - if (fnd_end == fnd_start) - return g_strdup (""); - - return g_strndup (lc_mc_search->regex_buffer->str + fnd_start, fnd_end - fnd_start); - -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -mc_search_regex__replace_handle_esc_seq (const GString *replace_str, const gsize current_pos, - gsize *skip_len, int *ret) -{ - char *curr_str = &(replace_str->str[current_pos]); - char c = curr_str[1]; - - if (replace_str->len > current_pos + 2) - { - if (c == '{') - { - for (*skip_len = 2; /* \{ */ - current_pos + *skip_len < replace_str->len && curr_str[*skip_len] >= '0' - && curr_str[*skip_len] <= '7'; (*skip_len)++) - ; - - if (current_pos + *skip_len < replace_str->len && curr_str[*skip_len] == '}') - { - (*skip_len)++; - *ret = REPLACE_PREPARE_T_ESCAPE_SEQ; - return FALSE; - } - else - { - *ret = REPLACE_PREPARE_T_NOTHING_SPECIAL; - return TRUE; - } - } - - if (c == 'x') - { - *skip_len = 2; /* \x */ - c = curr_str[2]; - if (c == '{') - { - for (*skip_len = 3; /* \x{ */ - current_pos + *skip_len < replace_str->len - && g_ascii_isxdigit ((guchar) curr_str[*skip_len]); (*skip_len)++) - ; - - if (current_pos + *skip_len < replace_str->len && curr_str[*skip_len] == '}') - { - (*skip_len)++; - *ret = REPLACE_PREPARE_T_ESCAPE_SEQ; - return FALSE; - } - else - { - *ret = REPLACE_PREPARE_T_NOTHING_SPECIAL; - return TRUE; - } - } - else if (!g_ascii_isxdigit ((guchar) c)) - { - *skip_len = 2; /* \x without number behind */ - *ret = REPLACE_PREPARE_T_NOTHING_SPECIAL; - return FALSE; - } - else - { - c = curr_str[3]; - if (!g_ascii_isxdigit ((guchar) c)) - *skip_len = 3; /* \xH */ - else - *skip_len = 4; /* \xHH */ - *ret = REPLACE_PREPARE_T_ESCAPE_SEQ; - return FALSE; - } - } - } - - if (strchr ("ntvbrfa", c) != NULL) - { - *skip_len = 2; - *ret = REPLACE_PREPARE_T_ESCAPE_SEQ; - return FALSE; - } - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -mc_search_regex__process_replace_str (const GString *replace_str, const gsize current_pos, - gsize *skip_len, replace_transform_type_t *replace_flags) -{ - int ret = -1; - const char *curr_str = &(replace_str->str[current_pos]); - - if (current_pos > replace_str->len) - return REPLACE_PREPARE_T_NOTHING_SPECIAL; - - *skip_len = 0; - - if (replace_str->len > current_pos + 2 && curr_str[0] == '$' && curr_str[1] == '{' - && (curr_str[2] & (char) 0xf0) == 0x30) - { - char *tmp_str; - - if (str_is_char_escaped (replace_str->str, curr_str)) - { - *skip_len = 1; - return REPLACE_PREPARE_T_NOTHING_SPECIAL; - } - - for (*skip_len = 0; - current_pos + *skip_len + 2 < replace_str->len - && (curr_str[2 + *skip_len] & (char) 0xf0) == 0x30; (*skip_len)++) - ; - - if (curr_str[2 + *skip_len] != '}') - return REPLACE_PREPARE_T_NOTHING_SPECIAL; - - tmp_str = g_strndup (curr_str + 2, *skip_len); - if (tmp_str == NULL) - return REPLACE_PREPARE_T_NOTHING_SPECIAL; - - ret = atoi (tmp_str); - g_free (tmp_str); - - *skip_len += 3; /* ${} */ - return ret; /* capture buffer index >= 0 */ - } - - if (curr_str[0] == '\\' && replace_str->len > current_pos + 1) - { - if (str_is_char_escaped (replace_str->str, curr_str)) - { - *skip_len = 1; - return REPLACE_PREPARE_T_NOTHING_SPECIAL; - } - - if (g_ascii_isdigit (curr_str[1])) - { - ret = g_ascii_digit_value (curr_str[1]); /* capture buffer index >= 0 */ - *skip_len = 2; /* \\ and one digit */ - return ret; - } - - if (!mc_search_regex__replace_handle_esc_seq (replace_str, current_pos, skip_len, &ret)) - return ret; - - ret = REPLACE_PREPARE_T_REPLACE_FLAG; - *skip_len += 2; - - switch (curr_str[1]) - { - case 'U': - *replace_flags |= REPLACE_T_UPP_TRANSFORM; - *replace_flags &= ~REPLACE_T_LOW_TRANSFORM; - break; - case 'u': - *replace_flags |= REPLACE_T_UPP_TRANSFORM_CHAR; - break; - case 'L': - *replace_flags |= REPLACE_T_LOW_TRANSFORM; - *replace_flags &= ~REPLACE_T_UPP_TRANSFORM; - break; - case 'l': - *replace_flags |= REPLACE_T_LOW_TRANSFORM_CHAR; - break; - case 'E': - *replace_flags = REPLACE_T_NO_TRANSFORM; - break; - default: - ret = REPLACE_PREPARE_T_NOTHING_SPECIAL; - break; - } - } - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_search_regex__process_append_str (GString *dest_str, const char *from, gsize len, - replace_transform_type_t *replace_flags) -{ - gsize loop; - gsize char_len; - - if (len == (gsize) (-1)) - len = strlen (from); - - if (*replace_flags == REPLACE_T_NO_TRANSFORM) - { - g_string_append_len (dest_str, from, len); - return; - } - - for (loop = 0; loop < len; loop += char_len) - { - GString *tmp_string = NULL; - GString *s; - - s = mc_search__get_one_symbol (NULL, from + loop, len - loop, NULL); - char_len = s->len; - - if ((*replace_flags & REPLACE_T_UPP_TRANSFORM_CHAR) != 0) - { - *replace_flags &= ~REPLACE_T_UPP_TRANSFORM_CHAR; - tmp_string = mc_search__toupper_case_str (NULL, s); - g_string_append_len (dest_str, tmp_string->str, tmp_string->len); - } - else if ((*replace_flags & REPLACE_T_LOW_TRANSFORM_CHAR) != 0) - { - *replace_flags &= ~REPLACE_T_LOW_TRANSFORM_CHAR; - tmp_string = mc_search__tolower_case_str (NULL, s); - g_string_append_len (dest_str, tmp_string->str, tmp_string->len); - } - else if ((*replace_flags & REPLACE_T_UPP_TRANSFORM) != 0) - { - tmp_string = mc_search__toupper_case_str (NULL, s); - g_string_append_len (dest_str, tmp_string->str, tmp_string->len); - } - else if ((*replace_flags & REPLACE_T_LOW_TRANSFORM) != 0) - { - tmp_string = mc_search__tolower_case_str (NULL, s); - g_string_append_len (dest_str, tmp_string->str, tmp_string->len); - } - - g_string_free (s, TRUE); - if (tmp_string != NULL) - g_string_free (tmp_string, TRUE); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_search_regex__process_escape_sequence (GString *dest_str, const char *from, gsize len, - replace_transform_type_t *replace_flags, gboolean is_utf8) -{ - gsize i = 0; - unsigned int c = 0; - char b; - - if (len == (gsize) (-1)) - len = strlen (from); - if (len == 0) - return; - - if (from[i] == '{') - i++; - if (i >= len) - return; - - if (from[i] == 'x') - { - i++; - if (i < len && from[i] == '{') - i++; - for (; i < len; i++) - { - if (from[i] >= '0' && from[i] <= '9') - c = c * 16 + from[i] - '0'; - else if (from[i] >= 'a' && from[i] <= 'f') - c = c * 16 + 10 + from[i] - 'a'; - else if (from[i] >= 'A' && from[i] <= 'F') - c = c * 16 + 10 + from[i] - 'A'; - else - break; - } - } - else if (from[i] >= '0' && from[i] <= '7') - for (; i < len && from[i] >= '0' && from[i] <= '7'; i++) - c = c * 8 + from[i] - '0'; - else - { - switch (from[i]) - { - case 'n': - c = '\n'; - break; - case 't': - c = '\t'; - break; - case 'v': - c = '\v'; - break; - case 'b': - c = '\b'; - break; - case 'r': - c = '\r'; - break; - case 'f': - c = '\f'; - break; - case 'a': - c = '\a'; - break; - default: - mc_search_regex__process_append_str (dest_str, from, len, replace_flags); - return; - } - } - - if (c < 0x80 || !is_utf8) - g_string_append_c (dest_str, (char) c); - else if (c < 0x800) - { - b = 0xC0 | (c >> 6); - g_string_append_c (dest_str, b); - b = 0x80 | (c & 0x3F); - g_string_append_c (dest_str, b); - } - else if (c < 0x10000) - { - b = 0xE0 | (c >> 12); - g_string_append_c (dest_str, b); - b = 0x80 | ((c >> 6) & 0x3F); - g_string_append_c (dest_str, b); - b = 0x80 | (c & 0x3F); - g_string_append_c (dest_str, b); - } - else if (c < 0x10FFFF) - { - b = 0xF0 | (c >> 16); - g_string_append_c (dest_str, b); - b = 0x80 | ((c >> 12) & 0x3F); - g_string_append_c (dest_str, b); - b = 0x80 | ((c >> 6) & 0x3F); - g_string_append_c (dest_str, b); - b = 0x80 | (c & 0x3F); - g_string_append_c (dest_str, b); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_search__cond_struct_new_init_regex (const char *charset, mc_search_t *lc_mc_search, - mc_search_cond_t *mc_search_cond) -{ - if (lc_mc_search->whole_words && !lc_mc_search->is_entire_line) - { - /* NOTE: \b as word boundary doesn't allow search - * whole words with non-ASCII symbols. - * Update: Is it still true nowadays? Probably not. #2396, #3524 */ - g_string_prepend (mc_search_cond->str, "(?str, "(?![\\p{L}\\p{N}_])"); - } - - { -#ifdef SEARCH_TYPE_GLIB - GError *mcerror = NULL; - GRegexCompileFlags g_regex_options = G_REGEX_OPTIMIZE | G_REGEX_DOTALL; - - if (str_isutf8 (charset) && mc_global.utf8_display) - { - if (!lc_mc_search->is_case_sensitive) - g_regex_options |= G_REGEX_CASELESS; - } - else - { - g_regex_options |= G_REGEX_RAW; - - if (!lc_mc_search->is_case_sensitive) - { - GString *tmp; - - tmp = mc_search_cond->str; - mc_search_cond->str = mc_search__cond_struct_new_regex_ci_str (charset, tmp); - g_string_free (tmp, TRUE); - } - } - - mc_search_cond->regex_handle = - g_regex_new (mc_search_cond->str->str, g_regex_options, 0, &mcerror); - - if (mcerror != NULL) - { - lc_mc_search->error = MC_SEARCH_E_REGEX_COMPILE; - g_free (lc_mc_search->error_str); - lc_mc_search->error_str = - str_conv_gerror_message (mcerror, _("Regular expression error")); - g_error_free (mcerror); - return; - } -#else /* SEARCH_TYPE_GLIB */ - -#ifdef HAVE_PCRE2 - int errcode; - char error[BUF_SMALL] = ""; - size_t erroffset; - int pcre_options = PCRE2_MULTILINE; -#else - const char *error; - int erroffset; - int pcre_options = PCRE_EXTRA | PCRE_MULTILINE; -#endif - - if (str_isutf8 (charset) && mc_global.utf8_display) - { -#ifdef HAVE_PCRE2 - pcre_options |= PCRE2_UTF; - if (!lc_mc_search->is_case_sensitive) - pcre_options |= PCRE2_CASELESS; -#else - pcre_options |= PCRE_UTF8; - if (!lc_mc_search->is_case_sensitive) - pcre_options |= PCRE_CASELESS; -#endif - } - else if (!lc_mc_search->is_case_sensitive) - { - GString *tmp; - - tmp = mc_search_cond->str; - mc_search_cond->str = mc_search__cond_struct_new_regex_ci_str (charset, tmp); - g_string_free (tmp, TRUE); - } - - mc_search_cond->regex_handle = -#ifdef HAVE_PCRE2 - pcre2_compile ((unsigned char *) mc_search_cond->str->str, PCRE2_ZERO_TERMINATED, - pcre_options, &errcode, &erroffset, NULL); -#else - pcre_compile (mc_search_cond->str->str, pcre_options, &error, &erroffset, NULL); -#endif - if (mc_search_cond->regex_handle == NULL) - { -#ifdef HAVE_PCRE2 - pcre2_get_error_message (errcode, (unsigned char *) error, sizeof (error)); -#endif - mc_search_set_error (lc_mc_search, MC_SEARCH_E_REGEX_COMPILE, "%s", error); - return; - } -#ifdef HAVE_PCRE2 - if (pcre2_jit_compile (mc_search_cond->regex_handle, PCRE2_JIT_COMPLETE) && *error != '\0') -#else - lc_mc_search->regex_match_info = pcre_study (mc_search_cond->regex_handle, 0, &error); - if (lc_mc_search->regex_match_info == NULL && error != NULL) -#endif - { - mc_search_set_error (lc_mc_search, MC_SEARCH_E_REGEX_COMPILE, "%s", error); - MC_PTR_FREE (mc_search_cond->regex_handle); - return; - } -#endif /* SEARCH_TYPE_GLIB */ - } - - lc_mc_search->is_utf8 = str_isutf8 (charset); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_search__run_regex (mc_search_t *lc_mc_search, const void *user_data, - off_t start_search, off_t end_search, gsize *found_len) -{ - mc_search_cbret_t ret = MC_SEARCH_CB_NOTFOUND; - off_t current_pos, virtual_pos; - gint start_pos; - gint end_pos; - - if (lc_mc_search->regex_buffer != NULL) - g_string_set_size (lc_mc_search->regex_buffer, 0); - else - lc_mc_search->regex_buffer = g_string_sized_new (64); - - virtual_pos = current_pos = start_search; - while (virtual_pos <= end_search) - { - g_string_set_size (lc_mc_search->regex_buffer, 0); - lc_mc_search->start_buffer = current_pos; - - if (lc_mc_search->search_fn != NULL) - { - while (TRUE) - { - int current_chr = '\n'; /* stop search symbol */ - - ret = lc_mc_search->search_fn (user_data, current_pos, ¤t_chr); - - if (ret == MC_SEARCH_CB_ABORT) - break; - - if (ret == MC_SEARCH_CB_INVALID) - continue; - - current_pos++; - - if (ret == MC_SEARCH_CB_SKIP) - continue; - - virtual_pos++; - - g_string_append_c (lc_mc_search->regex_buffer, (char) current_chr); - - if ((char) current_chr == '\n' || virtual_pos > end_search) - break; - } - } - else - { - /* optimization for standard case (for search from file manager) - * where there is no MC_SEARCH_CB_INVALID or MC_SEARCH_CB_SKIP - * return codes, so we can copy line at regex buffer all at once - */ - while (TRUE) - { - const char current_chr = ((const char *) user_data)[current_pos]; - - if (current_chr == '\0') - break; - - current_pos++; - - if (current_chr == '\n' || current_pos > end_search) - break; - } - - /* use virtual_pos as index of start of current chunk */ - g_string_append_len (lc_mc_search->regex_buffer, (const char *) user_data + virtual_pos, - current_pos - virtual_pos); - virtual_pos = current_pos; - } - - switch (mc_search__regex_found_cond (lc_mc_search, lc_mc_search->regex_buffer)) - { - case COND__FOUND_OK: -#ifdef SEARCH_TYPE_GLIB - g_match_info_fetch_pos (lc_mc_search->regex_match_info, 0, &start_pos, &end_pos); -#else /* SEARCH_TYPE_GLIB */ - start_pos = lc_mc_search->iovector[0]; - end_pos = lc_mc_search->iovector[1]; -#endif /* SEARCH_TYPE_GLIB */ - if (found_len != NULL) - *found_len = end_pos - start_pos; - lc_mc_search->normal_offset = lc_mc_search->start_buffer + start_pos; - return TRUE; - case COND__NOT_ALL_FOUND: - break; - default: - g_string_free (lc_mc_search->regex_buffer, TRUE); - lc_mc_search->regex_buffer = NULL; - return FALSE; - } - - if ((lc_mc_search->update_fn != NULL) && - ((lc_mc_search->update_fn) (user_data, current_pos) == MC_SEARCH_CB_ABORT)) - ret = MC_SEARCH_CB_ABORT; - - if (ret == MC_SEARCH_CB_ABORT || ret == MC_SEARCH_CB_NOTFOUND) - break; - } - - g_string_free (lc_mc_search->regex_buffer, TRUE); - lc_mc_search->regex_buffer = NULL; - - MC_PTR_FREE (lc_mc_search->error_str); - lc_mc_search->error = ret == MC_SEARCH_CB_ABORT ? MC_SEARCH_E_ABORT : MC_SEARCH_E_NOTFOUND; - - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ - -GString * -mc_search_regex_prepare_replace_str (mc_search_t *lc_mc_search, GString *replace_str) -{ - GString *ret; - - int num_replace_tokens; - gsize loop; - gsize prev = 0; - replace_transform_type_t replace_flags = REPLACE_T_NO_TRANSFORM; - - num_replace_tokens = - mc_search_regex__get_max_num_of_replace_tokens (replace_str->str, replace_str->len); - - if (lc_mc_search->num_results < 0) - return mc_g_string_dup (replace_str); - - if (num_replace_tokens > lc_mc_search->num_results - 1 - || num_replace_tokens > MC_SEARCH__NUM_REPLACE_ARGS) - { - mc_search_set_error (lc_mc_search, MC_SEARCH_E_REGEX_REPLACE, "%s", - _(STR_E_RPL_NOT_EQ_TO_FOUND)); - return NULL; - } - - ret = g_string_sized_new (64); - - for (loop = 0; loop < replace_str->len - 1; loop++) - { - int lc_index; - gchar *tmp_str; - gsize len = 0; - - lc_index = mc_search_regex__process_replace_str (replace_str, loop, &len, &replace_flags); - - if (lc_index == REPLACE_PREPARE_T_NOTHING_SPECIAL) - { - if (len != 0) - { - mc_search_regex__process_append_str (ret, replace_str->str + prev, loop - prev, - &replace_flags); - mc_search_regex__process_append_str (ret, replace_str->str + loop + 1, len - 1, - &replace_flags); - prev = loop + len; - loop = prev - 1; /* prepare to loop++ */ - } - - continue; - } - - if (lc_index == REPLACE_PREPARE_T_REPLACE_FLAG) - { - if (loop != 0) - mc_search_regex__process_append_str (ret, replace_str->str + prev, loop - prev, - &replace_flags); - prev = loop + len; - loop = prev - 1; /* prepare to loop++ */ - continue; - } - - /* escape sequence */ - if (lc_index == REPLACE_PREPARE_T_ESCAPE_SEQ) - { - mc_search_regex__process_append_str (ret, replace_str->str + prev, loop - prev, - &replace_flags); - /* call process_escape_sequence without starting '\\' */ - mc_search_regex__process_escape_sequence (ret, replace_str->str + loop + 1, len - 1, - &replace_flags, lc_mc_search->is_utf8); - prev = loop + len; - loop = prev - 1; /* prepare to loop++ */ - continue; - } - - /* invalid capture buffer number */ - if (lc_index > lc_mc_search->num_results) - { - g_string_free (ret, TRUE); - mc_search_set_error (lc_mc_search, MC_SEARCH_E_REGEX_REPLACE, - _(STR_E_RPL_INVALID_TOKEN), lc_index); - return NULL; - } - - tmp_str = mc_search_regex__get_token_by_num (lc_mc_search, lc_index); - - if (loop != 0) - mc_search_regex__process_append_str (ret, replace_str->str + prev, loop - prev, - &replace_flags); - - mc_search_regex__process_append_str (ret, tmp_str, -1, &replace_flags); - g_free (tmp_str); - - prev = loop + len; - loop = prev - 1; /* prepare to loop++ */ - } - - mc_search_regex__process_append_str (ret, replace_str->str + prev, replace_str->len - prev, - &replace_flags); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Checks whether search condition has BOL (^) or EOL ($) regexp special characters. - * - * @param search search object - * @return check result - */ - -mc_search_line_t -mc_search_get_line_type (const mc_search_t *search) -{ - mc_search_line_t search_line_type = MC_SEARCH_LINE_NONE; - - if (search->search_type == MC_SEARCH_T_REGEX) - { - if (search->original.str->str[0] == '^') - search_line_type |= MC_SEARCH_LINE_BEGIN; - - if (search->original.str->str[search->original.str->len - 1] == '$') - search_line_type |= MC_SEARCH_LINE_END; - } - - return search_line_type; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/search/search.c b/recipes/wip/files/mc/source/lib/search/search.c deleted file mode 100644 index dada2869ed..0000000000 --- a/recipes/wip/files/mc/source/lib/search/search.c +++ /dev/null @@ -1,521 +0,0 @@ -/* - Search text engine. - Interface functions - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009 - Andrew Borodin , 2013 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include -#include -#include - -#include "lib/global.h" -#include "lib/strutil.h" -#include "lib/search.h" -#include "lib/util.h" -#ifdef HAVE_CHARSET -#include "lib/charsets.h" -#endif - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static const mc_search_type_str_t mc_search__list_types[] = { - {N_("No&rmal"), MC_SEARCH_T_NORMAL}, - {N_("Re&gular expression"), MC_SEARCH_T_REGEX}, - {N_("He&xadecimal"), MC_SEARCH_T_HEX}, - {N_("Wil&dcard search"), MC_SEARCH_T_GLOB}, - {NULL, MC_SEARCH_T_INVALID} -}; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static mc_search_cond_t * -mc_search__cond_struct_new (mc_search_t *lc_mc_search, const GString *str, const char *charset) -{ - mc_search_cond_t *mc_search_cond; - - mc_search_cond = g_malloc0 (sizeof (mc_search_cond_t)); - mc_search_cond->str = mc_g_string_dup (str); - mc_search_cond->charset = g_strdup (charset); -#ifdef HAVE_PCRE2 - lc_mc_search->regex_match_info = pcre2_match_data_create (MC_SEARCH__NUM_REPLACE_ARGS, NULL); - lc_mc_search->iovector = pcre2_get_ovector_pointer (lc_mc_search->regex_match_info); -#endif - switch (lc_mc_search->search_type) - { - case MC_SEARCH_T_GLOB: - mc_search__cond_struct_new_init_glob (charset, lc_mc_search, mc_search_cond); - break; - case MC_SEARCH_T_NORMAL: - mc_search__cond_struct_new_init_normal (charset, lc_mc_search, mc_search_cond); - break; - case MC_SEARCH_T_REGEX: - mc_search__cond_struct_new_init_regex (charset, lc_mc_search, mc_search_cond); - break; - case MC_SEARCH_T_HEX: - mc_search__cond_struct_new_init_hex (charset, lc_mc_search, mc_search_cond); - break; - default: - break; - } - return mc_search_cond; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_search__cond_struct_free (gpointer data) -{ - mc_search_cond_t *mc_search_cond = (mc_search_cond_t *) data; - - if (mc_search_cond->upper != NULL) - g_string_free (mc_search_cond->upper, TRUE); - - if (mc_search_cond->lower != NULL) - g_string_free (mc_search_cond->lower, TRUE); - - g_string_free (mc_search_cond->str, TRUE); - g_free (mc_search_cond->charset); - -#ifdef SEARCH_TYPE_GLIB - if (mc_search_cond->regex_handle != NULL) - g_regex_unref (mc_search_cond->regex_handle); -#else /* SEARCH_TYPE_GLIB */ - g_free (mc_search_cond->regex_handle); -#endif /* SEARCH_TYPE_GLIB */ - - g_free (mc_search_cond); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/* Init search descriptor. - * - * @param original pattern to search - * @param original_charset charset of #original. If NULL then cp_display will be used - * - * @return new mc_search_t object. Use #mc_search_free() to free it. - */ - -mc_search_t * -mc_search_new (const gchar *original, const gchar *original_charset) -{ - if (original == NULL) - return NULL; - - return mc_search_new_len (original, strlen (original), original_charset); -} - -/* --------------------------------------------------------------------------------------------- */ -/* Init search descriptor. - * - * @param original pattern to search - * @param original_len length of #original or -1 if #original is NULL-terminated - * @param original_charset charset of #original. If NULL then cp_display will be used - * - * @return new mc_search_t object. Use #mc_search_free() to free it. - */ - -mc_search_t * -mc_search_new_len (const gchar *original, gsize original_len, const gchar *original_charset) -{ - mc_search_t *lc_mc_search; - - if (original == NULL || original_len == 0) - return NULL; - - lc_mc_search = g_new0 (mc_search_t, 1); - lc_mc_search->original.str = g_string_new_len (original, original_len); -#ifdef HAVE_CHARSET - lc_mc_search->original.charset = - g_strdup (original_charset != NULL - && *original_charset != '\0' ? original_charset : cp_display); -#else - (void) original_charset; -#endif - - return lc_mc_search; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_search_free (mc_search_t *lc_mc_search) -{ - if (lc_mc_search == NULL) - return; - - g_string_free (lc_mc_search->original.str, TRUE); -#ifdef HAVE_CHARSET - g_free (lc_mc_search->original.charset); -#endif - g_free (lc_mc_search->error_str); - - if (lc_mc_search->prepared.conditions != NULL) - g_ptr_array_free (lc_mc_search->prepared.conditions, TRUE); - -#ifdef SEARCH_TYPE_GLIB - if (lc_mc_search->regex_match_info != NULL) - g_match_info_free (lc_mc_search->regex_match_info); -#else /* SEARCH_TYPE_GLIB */ - g_free (lc_mc_search->regex_match_info); -#endif /* SEARCH_TYPE_GLIB */ - - if (lc_mc_search->regex_buffer != NULL) - g_string_free (lc_mc_search->regex_buffer, TRUE); - - g_free (lc_mc_search); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_search_prepare (mc_search_t *lc_mc_search) -{ - GPtrArray *ret; - - if (lc_mc_search->prepared.conditions != NULL) - return lc_mc_search->prepared.result; - - ret = g_ptr_array_new_with_free_func (mc_search__cond_struct_free); -#ifdef HAVE_CHARSET - if (!lc_mc_search->is_all_charsets) - g_ptr_array_add (ret, - mc_search__cond_struct_new (lc_mc_search, lc_mc_search->original.str, - lc_mc_search->original.charset)); - else - { - gsize loop1; - - for (loop1 = 0; loop1 < codepages->len; loop1++) - { - const char *id; - - id = ((codepage_desc *) g_ptr_array_index (codepages, loop1))->id; - if (g_ascii_strcasecmp (id, lc_mc_search->original.charset) == 0) - g_ptr_array_add (ret, - mc_search__cond_struct_new (lc_mc_search, - lc_mc_search->original.str, - lc_mc_search->original.charset)); - else - { - GString *buffer; - - buffer = - mc_search__recode_str (lc_mc_search->original.str->str, - lc_mc_search->original.str->len, - lc_mc_search->original.charset, id); - g_ptr_array_add (ret, mc_search__cond_struct_new (lc_mc_search, buffer, id)); - g_string_free (buffer, TRUE); - } - } - } -#else - g_ptr_array_add (ret, - mc_search__cond_struct_new (lc_mc_search, lc_mc_search->original.str, - str_detect_termencoding ())); -#endif - lc_mc_search->prepared.conditions = ret; - lc_mc_search->prepared.result = (lc_mc_search->error == MC_SEARCH_E_OK); - - return lc_mc_search->prepared.result; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Carries out the search. - * - * Returns TRUE if found. - * - * Returns FALSE if not found. In this case, lc_mc_search->error reveals - * the reason: - * - * - MC_SEARCH_E_NOTFOUND: the pattern isn't in the subject string. - * - MC_SEARCH_E_ABORT: the user aborted the search. - * - For any other reason (but not for the above two!): the description - * is in lc_mc_search->error_str. - */ -gboolean -mc_search_run (mc_search_t *lc_mc_search, const void *user_data, - off_t start_search, off_t end_search, gsize *found_len) -{ - gboolean ret = FALSE; - - if (lc_mc_search == NULL || user_data == NULL) - return FALSE; - if (!mc_search_is_type_avail (lc_mc_search->search_type)) - { - mc_search_set_error (lc_mc_search, MC_SEARCH_E_INPUT, "%s", _(STR_E_UNKNOWN_TYPE)); - return FALSE; - } -#ifdef SEARCH_TYPE_GLIB - if (lc_mc_search->regex_match_info != NULL) - { - g_match_info_free (lc_mc_search->regex_match_info); - lc_mc_search->regex_match_info = NULL; - } -#endif /* SEARCH_TYPE_GLIB */ - - mc_search_set_error (lc_mc_search, MC_SEARCH_E_OK, NULL); - - if (!mc_search_prepare (lc_mc_search)) - return FALSE; - - switch (lc_mc_search->search_type) - { - case MC_SEARCH_T_NORMAL: - ret = mc_search__run_normal (lc_mc_search, user_data, start_search, end_search, found_len); - break; - case MC_SEARCH_T_REGEX: - ret = mc_search__run_regex (lc_mc_search, user_data, start_search, end_search, found_len); - break; - case MC_SEARCH_T_GLOB: - ret = mc_search__run_glob (lc_mc_search, user_data, start_search, end_search, found_len); - break; - case MC_SEARCH_T_HEX: - ret = mc_search__run_hex (lc_mc_search, user_data, start_search, end_search, found_len); - break; - default: - break; - } - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_search_is_type_avail (mc_search_type_t search_type) -{ - switch (search_type) - { - case MC_SEARCH_T_GLOB: - case MC_SEARCH_T_NORMAL: - case MC_SEARCH_T_REGEX: - case MC_SEARCH_T_HEX: - return TRUE; - default: - break; - } - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ - -const mc_search_type_str_t * -mc_search_types_list_get (size_t *num) -{ - /* don't count last NULL item */ - if (num != NULL) - *num = G_N_ELEMENTS (mc_search__list_types) - 1; - - return mc_search__list_types; -} - -/* --------------------------------------------------------------------------------------------- */ - -GString * -mc_search_prepare_replace_str (mc_search_t *lc_mc_search, GString *replace_str) -{ - GString *ret; - - if (replace_str == NULL || replace_str->len == 0) - return g_string_new (""); - - if (lc_mc_search == NULL) - return mc_g_string_dup (replace_str); - - switch (lc_mc_search->search_type) - { - case MC_SEARCH_T_REGEX: - ret = mc_search_regex_prepare_replace_str (lc_mc_search, replace_str); - break; - case MC_SEARCH_T_GLOB: - ret = mc_search_glob_prepare_replace_str (lc_mc_search, replace_str); - break; - case MC_SEARCH_T_NORMAL: - ret = mc_search_normal_prepare_replace_str (lc_mc_search, replace_str); - break; - case MC_SEARCH_T_HEX: - ret = mc_search_hex_prepare_replace_str (lc_mc_search, replace_str); - break; - default: - ret = mc_g_string_dup (replace_str); - break; - } - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -mc_search_prepare_replace_str2 (mc_search_t *lc_mc_search, const char *replace_str) -{ - GString *ret; - GString *replace_str2; - - replace_str2 = g_string_new (replace_str); - ret = mc_search_prepare_replace_str (lc_mc_search, replace_str2); - g_string_free (replace_str2, TRUE); - return (ret != NULL) ? g_string_free (ret, FALSE) : NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_search_is_fixed_search_str (const mc_search_t *lc_mc_search) -{ - if (lc_mc_search == NULL) - return FALSE; - switch (lc_mc_search->search_type) - { - case MC_SEARCH_T_REGEX: - case MC_SEARCH_T_GLOB: - return FALSE; - default: - return TRUE; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/* Search specified pattern in specified string. - * - * @param pattern string to search - * @param pattern_charset charset of #pattern. If NULL then cp_display will be used - * @param str string where search #pattern - * @param search type (normal, regex, hex or glob) - * - * @return TRUE if found is successful, FALSE otherwise. - */ - -gboolean -mc_search (const gchar *pattern, const gchar *pattern_charset, const gchar *str, - mc_search_type_t type) -{ - gboolean ret; - mc_search_t *search; - - if (str == NULL) - return FALSE; - - search = mc_search_new (pattern, pattern_charset); - if (search == NULL) - return FALSE; - - search->search_type = type; - search->is_case_sensitive = TRUE; - - if (type == MC_SEARCH_T_GLOB) - search->is_entire_line = TRUE; - - ret = mc_search_run (search, str, 0, strlen (str), NULL); - mc_search_free (search); - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_search_getstart_result_by_num (mc_search_t *lc_mc_search, int lc_index) -{ - if (lc_mc_search == NULL) - return 0; - if (lc_mc_search->search_type == MC_SEARCH_T_NORMAL) - return 0; -#ifdef SEARCH_TYPE_GLIB - { - gint start_pos; - gint end_pos; - - g_match_info_fetch_pos (lc_mc_search->regex_match_info, lc_index, &start_pos, &end_pos); - return (int) start_pos; - } -#else /* SEARCH_TYPE_GLIB */ - return lc_mc_search->iovector[lc_index * 2]; -#endif /* SEARCH_TYPE_GLIB */ -} - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_search_getend_result_by_num (mc_search_t *lc_mc_search, int lc_index) -{ - if (lc_mc_search == NULL) - return 0; - if (lc_mc_search->search_type == MC_SEARCH_T_NORMAL) - return 0; -#ifdef SEARCH_TYPE_GLIB - { - gint start_pos; - gint end_pos; - - g_match_info_fetch_pos (lc_mc_search->regex_match_info, lc_index, &start_pos, &end_pos); - return (int) end_pos; - } -#else /* SEARCH_TYPE_GLIB */ - return lc_mc_search->iovector[lc_index * 2 + 1]; -#endif /* SEARCH_TYPE_GLIB */ -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Replace an old error code and message of an mc_search_t object. - * - * @param mc_search mc_search_t object - * @param code error code, one of mc_search_error_t values - * @param format format of error message. If NULL, the old error string is free'd and become NULL - */ - -void -mc_search_set_error (mc_search_t *lc_mc_search, mc_search_error_t code, const gchar *format, ...) -{ - lc_mc_search->error = code; - - MC_PTR_FREE (lc_mc_search->error_str); - - if (format != NULL) - { - va_list args; - - va_start (args, format); - lc_mc_search->error_str = g_strdup_vprintf (format, args); - va_end (args); - } -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/serialize.c b/recipes/wip/files/mc/source/lib/serialize.c deleted file mode 100644 index 4d0c2f0fc7..0000000000 --- a/recipes/wip/files/mc/source/lib/serialize.c +++ /dev/null @@ -1,351 +0,0 @@ -/* - Provides a serialize/unserialize functionality for INI-like formats. - - Copyright (C) 2011-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2011 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file lib/serialize.c - * \brief Source: serialize/unserialize functionality for INI-like formats. - */ - -#include - -#include -#include -#include - -#include "lib/global.h" - -#include "lib/serialize.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#define SRLZ_DELIM_C ':' -#define SRLZ_DELIM_S ":" - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -G_GNUC_PRINTF (2, 3) -prepend_error_message (GError **error, const char *format, ...) -{ - char *prepend_str; - char *split_str; - va_list ap; - - if ((error == NULL) || (*error == NULL)) - return; - - va_start (ap, format); - prepend_str = g_strdup_vprintf (format, ap); - va_end (ap); - - split_str = g_strdup_printf ("%s: %s", prepend_str, (*error)->message); - g_free (prepend_str); - g_free ((*error)->message); - (*error)->message = split_str; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -go_to_end_of_serialized_string (const char *non_serialized_data, - const char *already_serialized_part, size_t *offset) -{ - size_t calculated_offset; - const char *semi_ptr = strchr (non_serialized_data + 1, SRLZ_DELIM_C); - - calculated_offset = (semi_ptr - non_serialized_data) + 1 + strlen (already_serialized_part); - if (calculated_offset >= strlen (non_serialized_data)) - return NULL; - - non_serialized_data += calculated_offset; - *offset += calculated_offset; - - return non_serialized_data; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** - * Serialize some string object to string - * - * @param prefix prefix for serialization - * @param data data for serialization - * @param error contain pointer to object for handle error code and message - * - * @return serialized data as newly allocated string - */ - -char * -mc_serialize_str (const char prefix, const char *data, GError **error) -{ - if (data == NULL) - { - g_set_error (error, MC_ERROR, 0, "mc_serialize_str(): Input data is NULL."); - return NULL; - } - return g_strdup_printf ("%c%zu" SRLZ_DELIM_S "%s", prefix, strlen (data), data); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Deserialize string to string object - * - * @param prefix prefix for deserailization - * @param data data for deserialization - * @param error contain pointer to object for handle error code and message - * - * @return newly allocated string - */ - -#define FUNC_NAME "mc_serialize_str()" -char * -mc_deserialize_str (const char prefix, const char *data, GError **error) -{ - size_t data_len; - - if ((data == NULL) || (*data == '\0')) - { - g_set_error (error, MC_ERROR, 0, FUNC_NAME ": Input data is NULL or empty."); - return NULL; - } - - if (*data != prefix) - { - g_set_error (error, MC_ERROR, 0, FUNC_NAME ": String prefix doesn't equal to '%c'", prefix); - return NULL; - } - - { - char buffer[BUF_TINY]; - char *semi_ptr; - size_t semi_offset; - - semi_ptr = strchr (data + 1, SRLZ_DELIM_C); - if (semi_ptr == NULL) - { - g_set_error (error, MC_ERROR, 0, - FUNC_NAME ": Length delimiter '%c' doesn't exists", SRLZ_DELIM_C); - return NULL; - } - semi_offset = semi_ptr - (data + 1); - if (semi_offset >= BUF_TINY) - { - g_set_error (error, MC_ERROR, 0, FUNC_NAME ": Too big string length"); - return NULL; - } - strncpy (buffer, data + 1, semi_offset); - buffer[semi_offset] = '\0'; - data_len = atol (buffer); - data += semi_offset + 2; - } - - if (data_len > strlen (data)) - { - g_set_error (error, MC_ERROR, 0, - FUNC_NAME - ": Specified data length (%zu) is greater than actual data length (%zu)", - data_len, strlen (data)); - return NULL; - } - return g_strndup (data, data_len); -} - -#undef FUNC_NAME - -/* --------------------------------------------------------------------------------------------- */ -/** - * Serialize mc_config_t object to string - * - * @param data data for serialization - * @param error contain pointer to object for handle error code and message - * - * @return serialized data as newly allocated string - */ - -char * -mc_serialize_config (mc_config_t *data, GError **error) -{ - gchar **groups, **group_iterator; - GString *buffer; - - buffer = g_string_new (""); - groups = mc_config_get_groups (data, NULL); - - for (group_iterator = groups; *group_iterator != NULL; group_iterator++) - { - char *serialized_str; - gchar **params, **param_iterator; - - serialized_str = mc_serialize_str ('g', *group_iterator, error); - if (serialized_str == NULL) - { - g_string_free (buffer, TRUE); - g_strfreev (groups); - return NULL; - } - g_string_append (buffer, serialized_str); - g_free (serialized_str); - - params = mc_config_get_keys (data, *group_iterator, NULL); - - for (param_iterator = params; *param_iterator != NULL; param_iterator++) - { - char *value; - - serialized_str = mc_serialize_str ('p', *param_iterator, error); - if (serialized_str == NULL) - { - g_string_free (buffer, TRUE); - g_strfreev (params); - g_strfreev (groups); - return NULL; - } - g_string_append (buffer, serialized_str); - g_free (serialized_str); - - value = mc_config_get_string_raw (data, *group_iterator, *param_iterator, ""); - serialized_str = mc_serialize_str ('v', value, error); - g_free (value); - - if (serialized_str == NULL) - { - g_string_free (buffer, TRUE); - g_strfreev (params); - g_strfreev (groups); - return NULL; - } - - g_string_append (buffer, serialized_str); - g_free (serialized_str); - } - - g_strfreev (params); - } - - g_strfreev (groups); - - return g_string_free (buffer, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Deserialize string to mc_config_t object - * - * @param data data for serialization - * @param error contain pointer to object for handle error code and message - * - * @return newly allocated mc_config_t object - */ - -#define FUNC_NAME "mc_deserialize_config()" -#define prepend_error_and_exit() { \ - prepend_error_message (error, FUNC_NAME " at %zu", current_position + 1); \ - mc_config_deinit (ret_data); \ - return NULL; \ -} - -mc_config_t * -mc_deserialize_config (const char *data, GError **error) -{ - char *current_group = NULL, *current_param = NULL, *current_value = NULL; - size_t current_position = 0; - mc_config_t *ret_data; - enum automat_status - { - WAIT_GROUP, - WAIT_PARAM, - WAIT_VALUE - } current_status = WAIT_GROUP; - - ret_data = mc_config_init (NULL, FALSE); - - while (data != NULL) - { - if ((current_status == WAIT_GROUP) && (*data == 'p') && (current_group != NULL)) - current_status = WAIT_PARAM; - - switch (current_status) - { - case WAIT_GROUP: - g_free (current_group); - - current_group = mc_deserialize_str ('g', data, error); - if (current_group == NULL) - prepend_error_and_exit (); - - data = go_to_end_of_serialized_string (data, current_group, ¤t_position); - current_status = WAIT_PARAM; - break; - case WAIT_PARAM: - g_free (current_param); - - current_param = mc_deserialize_str ('p', data, error); - if (current_param == NULL) - { - g_free (current_group); - prepend_error_and_exit (); - } - - data = go_to_end_of_serialized_string (data, current_param, ¤t_position); - current_status = WAIT_VALUE; - break; - case WAIT_VALUE: - current_value = mc_deserialize_str ('v', data, error); - if (current_value == NULL) - { - g_free (current_group); - g_free (current_param); - prepend_error_and_exit (); - } - mc_config_set_string (ret_data, current_group, current_param, current_value); - - data = go_to_end_of_serialized_string (data, current_value, ¤t_position); - g_free (current_value); - current_status = WAIT_GROUP; - break; - default: - break; - } - } - g_free (current_group); - g_free (current_param); - - return ret_data; -} - -#undef FUNC_NAME - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/serialize.h b/recipes/wip/files/mc/source/lib/serialize.h deleted file mode 100644 index ba24a809fd..0000000000 --- a/recipes/wip/files/mc/source/lib/serialize.h +++ /dev/null @@ -1,27 +0,0 @@ -#ifndef MC__SERIALIZE_H -#define MC__SERIALIZE_H - -#include - -#include "lib/global.h" -#include "lib/mcconfig.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -char *mc_serialize_str (const char prefix, const char *data, GError ** error); -char *mc_deserialize_str (const char prefix, const char *data, GError ** error); - -char *mc_serialize_config (mc_config_t * data, GError ** error); -mc_config_t *mc_deserialize_config (const char *data, GError ** error); - -/*** inline functions ****************************************************************************/ - -#endif diff --git a/recipes/wip/files/mc/source/lib/shell.c b/recipes/wip/files/mc/source/lib/shell.c deleted file mode 100644 index f8a4b7fa55..0000000000 --- a/recipes/wip/files/mc/source/lib/shell.c +++ /dev/null @@ -1,304 +0,0 @@ -/* - Provides a functions for working with shell. - - Copyright (C) 2006-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2015. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file shell.c - * \brief Source: provides a functions for working with shell. - */ - -#include - -#include /* for username in xterm title */ -#include -#include -#include - -#include "global.h" -#include "util.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static char rp_shell[PATH_MAX]; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/** - * Get a system shell. - * - * @return newly allocated mc_shell_t object with shell name - */ - -static mc_shell_t * -mc_shell_get_installed_in_system (void) -{ - mc_shell_t *mc_shell; - - mc_shell = g_new0 (mc_shell_t, 1); - - /* 3rd choice: look for existing shells supported as MC subshells. */ - if (access ("/bin/bash", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/bash"); - else if (access ("/bin/zsh", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/zsh"); - else if (access ("/bin/oksh", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/oksh"); - else if (access ("/bin/ksh", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/ksh"); - else if (access ("/bin/ksh93", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/ksh93"); - else if (access ("/bin/ash", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/ash"); - else if (access ("/bin/dash", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/dash"); - else if (access ("/bin/busybox", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/busybox"); - else if (access ("/bin/tcsh", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/tcsh"); - else if (access ("/bin/csh", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/csh"); - else if (access ("/bin/mksh", X_OK) == 0) - mc_shell->path = g_strdup ("/bin/mksh"); - /* No fish as fallback because it is so much different from other shells and - * in a way exotic (even though user-friendly by name) that we should not - * present it as a subshell without the user's explicit intention. We rather - * will not use a subshell but just a command line. - * else if (access("/bin/fish", X_OK) == 0) - * mc_global.tty.shell = g_strdup ("/bin/fish"); - */ - else - /* Fallback and last resort: system default shell */ - mc_shell->path = g_strdup ("/bin/sh"); - - return mc_shell; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -mc_shell_get_name_env (void) -{ - const char *shell_env; - char *shell_name = NULL; - - shell_env = g_getenv ("SHELL"); - if ((shell_env == NULL) || (shell_env[0] == '\0')) - { - /* 2nd choice: user login shell */ - struct passwd *pwd; - - pwd = getpwuid (geteuid ()); - if (pwd != NULL) - shell_name = g_strdup (pwd->pw_shell); - } - else - /* 1st choice: SHELL environment variable */ - shell_name = g_strdup (shell_env); - - return shell_name; -} - -/* --------------------------------------------------------------------------------------------- */ - -static mc_shell_t * -mc_shell_get_from_env (void) -{ - mc_shell_t *mc_shell = NULL; - - char *shell_name; - - shell_name = mc_shell_get_name_env (); - - if (shell_name != NULL) - { - mc_shell = g_new0 (mc_shell_t, 1); - mc_shell->path = shell_name; - } - - return mc_shell; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_shell_recognize_real_path (mc_shell_t *mc_shell) -{ - if (strstr (mc_shell->path, "/zsh") != NULL || strstr (mc_shell->real_path, "/zsh") != NULL - || getenv ("ZSH_VERSION") != NULL) - { - /* Also detects ksh symlinked to zsh */ - mc_shell->type = SHELL_ZSH; - mc_shell->name = "zsh"; - } - else if (strstr (mc_shell->path, "/tcsh") != NULL - || strstr (mc_shell->real_path, "/tcsh") != NULL) - { - /* Also detects csh symlinked to tcsh */ - mc_shell->type = SHELL_TCSH; - mc_shell->name = "tcsh"; - } - else if (strstr (mc_shell->path, "/csh") != NULL - || strstr (mc_shell->real_path, "/csh") != NULL) - { - mc_shell->type = SHELL_TCSH; - mc_shell->name = "csh"; - } - else if (strstr (mc_shell->path, "/fish") != NULL - || strstr (mc_shell->real_path, "/fish") != NULL) - { - mc_shell->type = SHELL_FISH; - mc_shell->name = "fish"; - } - else if (strstr (mc_shell->path, "/dash") != NULL - || strstr (mc_shell->real_path, "/dash") != NULL) - { - /* Debian ash (also found if symlinked to by ash/sh) */ - mc_shell->type = SHELL_DASH; - mc_shell->name = "dash"; - } - else if (strstr (mc_shell->real_path, "/busybox") != NULL) - { - /* If shell is symlinked to busybox, assume it is an ash, even though theoretically - * it could also be a hush (a mini shell for non-MMU systems deactivated by default). - * For simplicity's sake we assume that busybox always contains an ash, not a hush. - * On embedded platforms or on server systems, /bin/sh often points to busybox. - * Sometimes even bash is symlinked to busybox (CONFIG_FEATURE_BASH_IS_ASH option), - * so we need to check busybox symlinks *before* checking for the name "bash" - * in order to avoid that case. */ - mc_shell->type = SHELL_ASH_BUSYBOX; - mc_shell->name = mc_shell->path; - } - else if (strstr (mc_shell->path, "/ksh") != NULL - || strstr (mc_shell->real_path, "/ksh") != NULL - || strstr (mc_shell->path, "/ksh93") != NULL - || strstr (mc_shell->real_path, "/ksh93") != NULL - || strstr (mc_shell->path, "/oksh") != NULL - || strstr (mc_shell->real_path, "/oksh") != NULL) - { - mc_shell->type = SHELL_KSH; - mc_shell->name = "ksh"; - } - else if (strstr (mc_shell->path, "/mksh") != NULL - || strstr (mc_shell->real_path, "/mksh") != NULL) - { - mc_shell->type = SHELL_MKSH; - mc_shell->name = "mksh"; - } - else - mc_shell->type = SHELL_NONE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_shell_recognize_path (mc_shell_t *mc_shell) -{ - /* If shell is not symlinked to busybox, it is safe to assume it is a real shell */ - if (strstr (mc_shell->path, "/bash") != NULL || getenv ("BASH_VERSION") != NULL) - { - mc_shell->type = SHELL_BASH; - mc_shell->name = "bash"; - } - else if (strstr (mc_shell->path, "/sh") != NULL) - { - mc_shell->type = SHELL_SH; - mc_shell->name = "sh"; - } - else if (strstr (mc_shell->path, "/ash") != NULL || getenv ("BB_ASH_VERSION") != NULL) - { - mc_shell->type = SHELL_ASH_BUSYBOX; - mc_shell->name = "ash"; - } - else if (strstr (mc_shell->path, "/ksh") != NULL - || strstr (mc_shell->path, "/ksh93") != NULL - || strstr (mc_shell->path, "/oksh") != NULL - || (getenv ("KSH_VERSION") != NULL - && strstr (getenv ("KSH_VERSION"), "PD KSH") != NULL)) - { - mc_shell->type = SHELL_KSH; - mc_shell->name = "ksh"; - } - else if (strstr (mc_shell->path, "/mksh") != NULL - || (getenv ("KSH_VERSION") != NULL - && strstr (getenv ("KSH_VERSION"), "MIRBSD KSH") != NULL)) - { - mc_shell->type = SHELL_MKSH; - mc_shell->name = "mksh"; - } - else - mc_shell->type = SHELL_NONE; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_shell_init (void) -{ - mc_shell_t *mc_shell; - - mc_shell = mc_shell_get_from_env (); - - if (mc_shell == NULL) - mc_shell = mc_shell_get_installed_in_system (); - - mc_shell->real_path = mc_realpath (mc_shell->path, rp_shell); - - /* Find out what type of shell we have. Also consider real paths (resolved symlinks) - * because e.g. csh might point to tcsh, ash to dash or busybox, sh to anything. */ - - if (mc_shell->real_path != NULL) - mc_shell_recognize_real_path (mc_shell); - - if (mc_shell->type == SHELL_NONE) - mc_shell_recognize_path (mc_shell); - - if (mc_shell->type == SHELL_NONE) - mc_global.tty.use_subshell = FALSE; - - mc_global.shell = mc_shell; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_shell_deinit (void) -{ - if (mc_global.shell != NULL) - { - g_free (mc_global.shell->path); - MC_PTR_FREE (mc_global.shell); - } -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/shell.h b/recipes/wip/files/mc/source/lib/shell.h deleted file mode 100644 index bf5ada3adc..0000000000 --- a/recipes/wip/files/mc/source/lib/shell.h +++ /dev/null @@ -1,45 +0,0 @@ -/** \file shell.h - * \brief Header: shell structure - */ - -#ifndef MC_SHELL_H -#define MC_SHELL_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -typedef enum -{ - SHELL_NONE, - SHELL_SH, - SHELL_BASH, - SHELL_ASH_BUSYBOX, /* BusyBox default shell (ash) */ - SHELL_DASH, /* Debian variant of ash */ - SHELL_TCSH, - SHELL_ZSH, - SHELL_FISH, - SHELL_KSH, /* Public Domain Korn shell (pdksh) and variants */ - SHELL_MKSH /* MirBSD Korn shell (mksh) */ -} shell_type_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct -{ - shell_type_t type; - const char *name; - char *path; - char *real_path; -} mc_shell_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -void mc_shell_init (void); -void mc_shell_deinit (void); - -/*** inline functions **************************************************/ - -#endif /* MC_SHELL_H */ diff --git a/recipes/wip/files/mc/source/lib/skin.h b/recipes/wip/files/mc/source/lib/skin.h deleted file mode 100644 index 099c3646ba..0000000000 --- a/recipes/wip/files/mc/source/lib/skin.h +++ /dev/null @@ -1,146 +0,0 @@ -#ifndef MC_SKIN_H -#define MC_SKIN_H - -#include "lib/global.h" - -#include "lib/mcconfig.h" - -#include "lib/tty/color.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -/* Beware! When using Slang with color, not all the indexes are free. - See color-slang.h (A_*) */ - -/* cache often used colors */ -#define DEFAULT_COLOR mc_skin_color__cache[0] -#define NORMAL_COLOR mc_skin_color__cache[1] -#define MARKED_COLOR mc_skin_color__cache[2] -#define SELECTED_COLOR mc_skin_color__cache[3] -#define MARKED_SELECTED_COLOR mc_skin_color__cache[4] -#define DISABLED_COLOR mc_skin_color__cache[5] -#define REVERSE_COLOR mc_skin_color__cache[6] -#define COMMAND_MARK_COLOR mc_skin_color__cache[7] -#define HEADER_COLOR mc_skin_color__cache[8] -#define SHADOW_COLOR mc_skin_color__cache[9] - -/* Dialog colors */ -#define COLOR_NORMAL mc_skin_color__cache[10] -#define COLOR_FOCUS mc_skin_color__cache[11] -#define COLOR_HOT_NORMAL mc_skin_color__cache[12] -#define COLOR_HOT_FOCUS mc_skin_color__cache[13] -#define COLOR_TITLE mc_skin_color__cache[14] - -/* Error dialog colors */ -#define ERROR_COLOR mc_skin_color__cache[15] -#define ERROR_FOCUS mc_skin_color__cache[16] -#define ERROR_HOT_NORMAL mc_skin_color__cache[17] -#define ERROR_HOT_FOCUS mc_skin_color__cache[18] -#define ERROR_TITLE mc_skin_color__cache[19] - -/* Menu colors */ -#define MENU_ENTRY_COLOR mc_skin_color__cache[20] -#define MENU_SELECTED_COLOR mc_skin_color__cache[21] -#define MENU_HOT_COLOR mc_skin_color__cache[22] -#define MENU_HOTSEL_COLOR mc_skin_color__cache[23] -#define MENU_INACTIVE_COLOR mc_skin_color__cache[24] - -/* Popup menu colors */ -#define PMENU_ENTRY_COLOR mc_skin_color__cache[25] -#define PMENU_SELECTED_COLOR mc_skin_color__cache[26] -#define PMENU_HOT_COLOR mc_skin_color__cache[27] /* unused: not implemented yet */ -#define PMENU_HOTSEL_COLOR mc_skin_color__cache[28] /* unused: not implemented yet */ -#define PMENU_TITLE_COLOR mc_skin_color__cache[29] - -#define BUTTONBAR_HOTKEY_COLOR mc_skin_color__cache[30] -#define BUTTONBAR_BUTTON_COLOR mc_skin_color__cache[31] - -#define STATUSBAR_COLOR mc_skin_color__cache[32] - -/* - * This should be selectable independently. Default has to be black background - * foreground does not matter at all. - */ -#define GAUGE_COLOR mc_skin_color__cache[33] -#define INPUT_COLOR mc_skin_color__cache[34] -#define INPUT_UNCHANGED_COLOR mc_skin_color__cache[35] -#define INPUT_MARK_COLOR mc_skin_color__cache[36] -#define INPUT_HISTORY_COLOR mc_skin_color__cache[37] -#define COMMAND_HISTORY_COLOR mc_skin_color__cache[38] - -#define HELP_NORMAL_COLOR mc_skin_color__cache[39] -#define HELP_ITALIC_COLOR mc_skin_color__cache[40] -#define HELP_BOLD_COLOR mc_skin_color__cache[41] -#define HELP_LINK_COLOR mc_skin_color__cache[42] -#define HELP_SLINK_COLOR mc_skin_color__cache[43] -#define HELP_TITLE_COLOR mc_skin_color__cache[44] - - -#define VIEW_NORMAL_COLOR mc_skin_color__cache[45] -#define VIEW_BOLD_COLOR mc_skin_color__cache[46] -#define VIEW_UNDERLINED_COLOR mc_skin_color__cache[47] -#define VIEW_SELECTED_COLOR mc_skin_color__cache[48] - -/* - * editor colors - only 4 for normal, search->found, select, and whitespace - * respectively - * Last is defined to view color. - */ -#define EDITOR_NORMAL_COLOR mc_skin_color__cache[49] -#define EDITOR_NONPRINTABLE_COLOR mc_skin_color__cache[50] -#define EDITOR_BOLD_COLOR mc_skin_color__cache[51] -#define EDITOR_MARKED_COLOR mc_skin_color__cache[52] -#define EDITOR_WHITESPACE_COLOR mc_skin_color__cache[53] -#define EDITOR_RIGHT_MARGIN_COLOR mc_skin_color__cache[54] -#define EDITOR_BACKGROUND mc_skin_color__cache[55] -#define EDITOR_FRAME mc_skin_color__cache[56] -#define EDITOR_FRAME_ACTIVE mc_skin_color__cache[57] -#define EDITOR_FRAME_DRAG mc_skin_color__cache[58] -/* color of left 8 char status per line */ -#define LINE_STATE_COLOR mc_skin_color__cache[59] -#define BOOK_MARK_COLOR mc_skin_color__cache[60] -#define BOOK_MARK_FOUND_COLOR mc_skin_color__cache[61] - -/* Diff colors */ -#define DFF_ADD_COLOR mc_skin_color__cache[62] -#define DFF_CHG_COLOR mc_skin_color__cache[63] -#define DFF_CHH_COLOR mc_skin_color__cache[64] -#define DFF_CHD_COLOR mc_skin_color__cache[65] -#define DFF_DEL_COLOR mc_skin_color__cache[66] -#define DFF_ERROR_COLOR mc_skin_color__cache[67] - -#define MC_SKIN_COLOR_CACHE_COUNT 68 - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct mc_skin_struct -{ - gchar *name; - gchar *description; - mc_config_t *config; - GHashTable *colors; - gboolean have_256_colors; - gboolean have_true_colors; -} mc_skin_t; - -/*** global variables defined in .c file *********************************************************/ - -extern int mc_skin_color__cache[]; -extern mc_skin_t mc_skin__default; - -/*** declarations of public functions ************************************************************/ - -gboolean mc_skin_init (const gchar * skin_override, GError ** error); -void mc_skin_deinit (void); - -int mc_skin_color_get (const gchar * group, const gchar * name); - -void mc_skin_lines_parse_ini_file (mc_skin_t * mc_skin); - -gchar *mc_skin_get (const gchar * group, const gchar * key, const gchar * default_value); - -GPtrArray *mc_skin_list (void); - -#endif /* MC_SKIN_H */ diff --git a/recipes/wip/files/mc/source/lib/skin/Makefile.am b/recipes/wip/files/mc/source/lib/skin/Makefile.am deleted file mode 100644 index 04f12ed1df..0000000000 --- a/recipes/wip/files/mc/source/lib/skin/Makefile.am +++ /dev/null @@ -1,12 +0,0 @@ -noinst_LTLIBRARIES = libmcskin.la - -libmcskin_la_SOURCES = \ - colors.c \ - colors-old.c \ - common.c \ - hc-skins.c \ - ini-file.c \ - lines.c \ - internal.h - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) diff --git a/recipes/wip/files/mc/source/lib/skin/Makefile.in b/recipes/wip/files/mc/source/lib/skin/Makefile.in deleted file mode 100644 index 290c15a7ef..0000000000 --- a/recipes/wip/files/mc/source/lib/skin/Makefile.in +++ /dev/null @@ -1,764 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = lib/skin -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libmcskin_la_LIBADD = -am_libmcskin_la_OBJECTS = colors.lo colors-old.lo common.lo \ - hc-skins.lo ini-file.lo lines.lo -libmcskin_la_OBJECTS = $(am_libmcskin_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_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__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/colors-old.Plo \ - ./$(DEPDIR)/colors.Plo ./$(DEPDIR)/common.Plo \ - ./$(DEPDIR)/hc-skins.Plo ./$(DEPDIR)/ini-file.Plo \ - ./$(DEPDIR)/lines.Plo -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libmcskin_la_SOURCES) -DIST_SOURCES = $(libmcskin_la_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)` -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -noinst_LTLIBRARIES = libmcskin.la -libmcskin_la_SOURCES = \ - colors.c \ - colors-old.c \ - common.c \ - hc-skins.c \ - ini-file.c \ - lines.c \ - internal.h - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/skin/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/skin/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libmcskin.la: $(libmcskin_la_OBJECTS) $(libmcskin_la_DEPENDENCIES) $(EXTRA_libmcskin_la_DEPENDENCIES) - $(AM_V_CCLD)$(LINK) $(libmcskin_la_OBJECTS) $(libmcskin_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/colors-old.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/colors.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hc-skins.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ini-file.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lines.Plo@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.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 -o $@ $< - -.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 -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -f ./$(DEPDIR)/colors-old.Plo - -rm -f ./$(DEPDIR)/colors.Plo - -rm -f ./$(DEPDIR)/common.Plo - -rm -f ./$(DEPDIR)/hc-skins.Plo - -rm -f ./$(DEPDIR)/ini-file.Plo - -rm -f ./$(DEPDIR)/lines.Plo - -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-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f ./$(DEPDIR)/colors-old.Plo - -rm -f ./$(DEPDIR)/colors.Plo - -rm -f ./$(DEPDIR)/common.Plo - -rm -f ./$(DEPDIR)/hc-skins.Plo - -rm -f ./$(DEPDIR)/ini-file.Plo - -rm -f ./$(DEPDIR)/lines.Plo - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ - clean-generic clean-libtool clean-noinstLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/lib/skin/colors-old.c b/recipes/wip/files/mc/source/lib/skin/colors-old.c deleted file mode 100644 index ebd6c85dce..0000000000 --- a/recipes/wip/files/mc/source/lib/skin/colors-old.c +++ /dev/null @@ -1,204 +0,0 @@ -/* - Skins engine. - Work with colors - backward compatibility - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009 - Egmont Koblinger , 2010 - Andrew Borodin , 2012 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include -#include -#include /* strcmp() */ -#include /* size_t */ - -#include "internal.h" - -#include "lib/tty/color.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope type declarations ****************************************************************/ - -typedef struct mc_skin_colors_old_struct -{ - const char *old_color; - const char *group; - const char *key; -} mc_skin_colors_old_t; - -/*** file scope variables ************************************************************************/ - -/* keep this table alphabetically sorted */ -static const mc_skin_colors_old_t old_colors[] = { - {"bbarbutton", "buttonbar", "button"}, - {"bbarhotkey", "buttonbar", "hotkey"}, - {"commandlinemark", "core", "commandlinemark"}, - {"dfocus", "dialog", "dfocus"}, - {"dhotfocus", "dialog", "dhotfocus"}, - {"dhotnormal", "dialog", "dhotnormal"}, - {"disabled", "core", "disabled"}, - {"dnormal", "dialog", "_default_"}, - {"editbg", "editor", "editbg"}, - {"editbold", "editor", "editbold"}, - {"editframe", "editor", "editframe"}, - {"editframeactive", "editor", "editframeactive"}, - {"editframedrag", "editor", "editframedrag"}, - {"editlinestate", "editor", "editlinestate"}, - {"editmarked", "editor", "editmarked"}, - {"editnonprintable", "editor", "editnonprintable"}, - {"editnormal", "editor", "_default_"}, - {"editwhitespace", "editor", "editwhitespace"}, - {"errdhotfocus", "error", "errdhotfocus"}, - {"errdhotnormal", "error", "errdhotnormal"}, - {"errors", "error", "_default_"}, - {"gauge", "core", "gauge"}, - {"header", "core", "header"}, - {"helpbold", "help", "helpbold"}, - {"helpitalic", "help", "helpitalic"}, - {"helplink", "help", "helplink"}, - {"helpnormal", "help", "_default_"}, - {"helpslink", "help", "helpslink"}, - {"input", "core", "input"}, - {"inputmark", "core", "inputmark"}, - {"inputunchanged", "core", "inputunchanged"}, - {"marked", "core", "marked"}, - {"markselect", "core", "markselect"}, - {"menuhot", "menu", "menuhot"}, - {"menuhotsel", "menu", "menuhotsel"}, - {"menuinactive", "menu", "menuinactive"}, - {"menunormal", "menu", "_default_"}, - {"menusel", "menu", "menusel"}, - {"normal", "core", "_default_"}, - {"pmenunormal", "popupmenu", "_default_"}, - {"pmenusel", "popupmenu", "menusel"}, - {"pmenutitle", "popupmenu", "menutitle"}, - {"reverse", "core", "reverse"}, - {"selected", "core", "selected"}, - {"statusbar", "statusbar", "_default_"}, - {"viewbold", "viewer", "viewbold"}, - {"viewnormal", "viewer", "_default_"}, - {"viewselected", "viewer", "viewselected"}, - {"viewunderline", "viewer", "viewunderline"} -}; - -static const size_t num_old_colors = G_N_ELEMENTS (old_colors); - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static int -old_color_comparator (const void *p1, const void *p2) -{ - const mc_skin_colors_old_t *m1 = (const mc_skin_colors_old_t *) p1; - const mc_skin_colors_old_t *m2 = (const mc_skin_colors_old_t *) p2; - - return strcmp (m1->old_color, m2->old_color); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -mc_skin_colors_old_transform (const char *old_color, const char **group, const char **key) -{ - const mc_skin_colors_old_t oc = { old_color, NULL, NULL }; - mc_skin_colors_old_t *res; - - if (old_color == NULL) - return FALSE; - - res = (mc_skin_colors_old_t *) bsearch (&oc, old_colors, num_old_colors, - sizeof (old_colors[0]), old_color_comparator); - - if (res == NULL) - return FALSE; - - if (group != NULL) - *group = res->group; - if (key != NULL) - *key = res->key; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_skin_colors_old_configure_one (mc_skin_t *mc_skin, const char *the_color_string) -{ - gchar **colors, **orig_colors; - - if (the_color_string == NULL) - return; - - orig_colors = g_strsplit (the_color_string, ":", -1); - if (orig_colors == NULL) - return; - - for (colors = orig_colors; *colors != NULL; colors++) - { - gchar **key_val; - const gchar *skin_group, *skin_key; - - key_val = g_strsplit_set (*colors, "=,", 4); - - if (key_val == NULL) - continue; - - if (key_val[1] != NULL && mc_skin_colors_old_transform (key_val[0], &skin_group, &skin_key)) - { - gchar *skin_val; - - if (key_val[2] == NULL) - skin_val = g_strdup_printf ("%s;", key_val[1]); - else if (key_val[3] == NULL) - skin_val = g_strdup_printf ("%s;%s", key_val[1], key_val[2]); - else - skin_val = g_strdup_printf ("%s;%s;%s", key_val[1], key_val[2], key_val[3]); - - mc_config_set_string (mc_skin->config, skin_group, skin_key, skin_val); - g_free (skin_val); - } - - g_strfreev (key_val); - } - g_strfreev (orig_colors); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_skin_colors_old_configure (mc_skin_t *mc_skin) -{ - mc_skin_colors_old_configure_one (mc_skin, mc_global.tty.setup_color_string); - mc_skin_colors_old_configure_one (mc_skin, mc_global.tty.term_color_string); - mc_skin_colors_old_configure_one (mc_skin, getenv ("MC_COLOR_TABLE")); - mc_skin_colors_old_configure_one (mc_skin, mc_global.tty.command_line_colors); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/skin/colors.c b/recipes/wip/files/mc/source/lib/skin/colors.c deleted file mode 100644 index 8aa8d86d57..0000000000 --- a/recipes/wip/files/mc/source/lib/skin/colors.c +++ /dev/null @@ -1,420 +0,0 @@ -/* - Skins engine. - Work with colors - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009 - Egmont Koblinger , 2010 - Andrew Borodin , 2012 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include -#include - -#include "internal.h" - -#include "lib/tty/color.h" - -/*** global variables ****************************************************************************/ - -int mc_skin_color__cache[MC_SKIN_COLOR_CACHE_COUNT]; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static tty_color_pair_t * -mc_skin_color_get_from_hash (mc_skin_t *mc_skin, const gchar *group, const gchar *key) -{ - gchar kname[BUF_TINY]; - tty_color_pair_t *mc_skin_color; - - if (group == NULL || key == NULL) - return NULL; - - if (mc_skin == NULL) - mc_skin = &mc_skin__default; - - g_snprintf (kname, sizeof (kname), "%s.%s", group, key); - mc_skin_color = (tty_color_pair_t *) g_hash_table_lookup (mc_skin->colors, (gpointer) kname); - - return mc_skin_color; -} - -/* --------------------------------------------------------------------------------------------- */ - -#if 0 -static void -mc_skin_color_remove_from_hash (mc_skin_t *mc_skin, const gchar *group, const gchar *key) -{ - gchar kname[BUF_TINY]; - if (group == NULL || key == NULL) - return; - - if (mc_skin == NULL) - mc_skin = &mc_skin__default; - - g_snprintf (kname, sizeof (kname), "%s.%s", group, key); - g_hash_table_remove (mc_skin->colors, (gpointer) kname); -} -#endif - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_skin_color_add_to_hash (mc_skin_t *mc_skin, const gchar *group, const gchar *key, - tty_color_pair_t *mc_skin_color) -{ - gchar *kname; - - kname = g_strdup_printf ("%s.%s", group, key); - if (kname != NULL) - { - if (g_hash_table_lookup (mc_skin->colors, (gpointer) kname) != NULL) - g_hash_table_remove (mc_skin->colors, (gpointer) kname); - - g_hash_table_insert (mc_skin->colors, (gpointer) kname, (gpointer) mc_skin_color); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static tty_color_pair_t * -mc_skin_color_get_with_defaults (const gchar *group, const gchar *name) -{ - tty_color_pair_t *mc_skin_color; - - mc_skin_color = mc_skin_color_get_from_hash (NULL, group, name); - if (mc_skin_color != NULL) - return mc_skin_color; - - mc_skin_color = mc_skin_color_get_from_hash (NULL, group, "_default_"); - if (mc_skin_color != NULL) - return mc_skin_color; - - mc_skin_color = mc_skin_color_get_from_hash (NULL, "core", "_default_"); - return mc_skin_color; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* If an alias is found, alloc a new string for the resolved value and free the input parameter. - Otherwise it's a no-op returning the original string. */ -static gchar * -mc_skin_color_look_up_alias (mc_skin_t *mc_skin, gchar *str) -{ - gchar *orig, *str2; - int hop = 0; - - orig = g_strdup (str); - str2 = g_strdup (str); - - while (TRUE) - { - gchar **values; - gsize items_count; - - values = mc_config_get_string_list (mc_skin->config, "aliases", str, &items_count); - if (items_count != 1) - { - /* No such alias declaration found, that is, we've got the resolved value. */ - g_strfreev (values); - g_free (str2); - g_free (orig); - return str; - } - - g_free (str); - str = g_strdup (values[0]); - g_strfreev (values); - - /* str2 resolves at half speed than str. This is used for loop detection. */ - if (hop++ % 2 != 0) - { - values = mc_config_get_string_list (mc_skin->config, "aliases", str2, &items_count); - g_assert (items_count == 1); - g_free (str2); - str2 = g_strdup (values[0]); - g_strfreev (values); - - if (strcmp (str, str2) == 0) - { - /* Loop detected. */ - fprintf (stderr, - "Loop detected while trying to resolve alias \"%s\" in skin \"%s\"\n", - orig, mc_skin->name); - g_free (str); - g_free (str2); - return orig; - } - } - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static tty_color_pair_t * -mc_skin_color_get_from_ini_file (mc_skin_t *mc_skin, const gchar *group, const gchar *key) -{ - gsize items_count; - gchar **values; - tty_color_pair_t *mc_skin_color, *tmp; - - values = mc_config_get_string_list (mc_skin->config, group, key, &items_count); - if (values == NULL || values[0] == NULL) - { - g_strfreev (values); - return NULL; - } - - mc_skin_color = g_try_new0 (tty_color_pair_t, 1); - if (mc_skin_color == NULL) - { - g_strfreev (values); - return NULL; - } - - tmp = mc_skin_color_get_with_defaults (group, "_default_"); - mc_skin_color->fg = (items_count > 0 && values[0][0]) ? - mc_skin_color_look_up_alias (mc_skin, g_strstrip (g_strdup (values[0]))) : - (tmp != NULL) ? g_strdup (tmp->fg) : NULL; - mc_skin_color->bg = (items_count > 1 && values[1][0]) ? - mc_skin_color_look_up_alias (mc_skin, g_strstrip (g_strdup (values[1]))) : - (tmp != NULL) ? g_strdup (tmp->bg) : NULL; - mc_skin_color->attrs = (items_count > 2 && values[2][0]) ? - mc_skin_color_look_up_alias (mc_skin, g_strstrip (g_strdup (values[2]))) : - (tmp != NULL) ? g_strdup (tmp->attrs) : NULL; - - g_strfreev (values); - - mc_skin_color->pair_index = tty_try_alloc_color_pair (mc_skin_color, FALSE); - - return mc_skin_color; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_skin_color_set_default_for_terminal (mc_skin_t *mc_skin) -{ - tty_color_pair_t *mc_skin_color; - - mc_skin_color = g_try_new0 (tty_color_pair_t, 1); - if (mc_skin_color != NULL) - { - mc_skin_color->fg = g_strdup ("default"); - mc_skin_color->bg = g_strdup ("default"); - mc_skin_color->attrs = NULL; - mc_skin_color->pair_index = tty_try_alloc_color_pair (mc_skin_color, FALSE); - mc_skin_color_add_to_hash (mc_skin, "skin", "terminal_default_color", mc_skin_color); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_skin_color_cache_init (void) -{ - DEFAULT_COLOR = mc_skin_color_get ("skin", "terminal_default_color"); - NORMAL_COLOR = mc_skin_color_get ("core", "_default_"); - MARKED_COLOR = mc_skin_color_get ("core", "marked"); - SELECTED_COLOR = mc_skin_color_get ("core", "selected"); - MARKED_SELECTED_COLOR = mc_skin_color_get ("core", "markselect"); - DISABLED_COLOR = mc_skin_color_get ("core", "disabled"); - REVERSE_COLOR = mc_skin_color_get ("core", "reverse"); - HEADER_COLOR = mc_skin_color_get ("core", "header"); - COMMAND_MARK_COLOR = mc_skin_color_get ("core", "commandlinemark"); - SHADOW_COLOR = mc_skin_color_get ("core", "shadow"); - - COLOR_NORMAL = mc_skin_color_get ("dialog", "_default_"); - COLOR_FOCUS = mc_skin_color_get ("dialog", "dfocus"); - COLOR_HOT_NORMAL = mc_skin_color_get ("dialog", "dhotnormal"); - COLOR_HOT_FOCUS = mc_skin_color_get ("dialog", "dhotfocus"); - COLOR_TITLE = mc_skin_color_get ("dialog", "dtitle"); - - ERROR_COLOR = mc_skin_color_get ("error", "_default_"); - ERROR_FOCUS = mc_skin_color_get ("error", "errdfocus"); - ERROR_HOT_NORMAL = mc_skin_color_get ("error", "errdhotnormal"); - ERROR_HOT_FOCUS = mc_skin_color_get ("error", "errdhotfocus"); - ERROR_TITLE = mc_skin_color_get ("error", "errdtitle"); - - MENU_ENTRY_COLOR = mc_skin_color_get ("menu", "_default_"); - MENU_SELECTED_COLOR = mc_skin_color_get ("menu", "menusel"); - MENU_HOT_COLOR = mc_skin_color_get ("menu", "menuhot"); - MENU_HOTSEL_COLOR = mc_skin_color_get ("menu", "menuhotsel"); - MENU_INACTIVE_COLOR = mc_skin_color_get ("menu", "menuinactive"); - - PMENU_ENTRY_COLOR = mc_skin_color_get ("popupmenu", "_default_"); - PMENU_SELECTED_COLOR = mc_skin_color_get ("popupmenu", "menusel"); - PMENU_TITLE_COLOR = mc_skin_color_get ("popupmenu", "menutitle"); - - BUTTONBAR_HOTKEY_COLOR = mc_skin_color_get ("buttonbar", "hotkey"); - BUTTONBAR_BUTTON_COLOR = mc_skin_color_get ("buttonbar", "button"); - - STATUSBAR_COLOR = mc_skin_color_get ("statusbar", "_default_"); - - GAUGE_COLOR = mc_skin_color_get ("core", "gauge"); - INPUT_COLOR = mc_skin_color_get ("core", "input"); - INPUT_HISTORY_COLOR = mc_skin_color_get ("core", "inputhistory"); - COMMAND_HISTORY_COLOR = mc_skin_color_get ("core", "commandhistory"); - INPUT_MARK_COLOR = mc_skin_color_get ("core", "inputmark"); - INPUT_UNCHANGED_COLOR = mc_skin_color_get ("core", "inputunchanged"); - - HELP_NORMAL_COLOR = mc_skin_color_get ("help", "_default_"); - HELP_ITALIC_COLOR = mc_skin_color_get ("help", "helpitalic"); - HELP_BOLD_COLOR = mc_skin_color_get ("help", "helpbold"); - HELP_LINK_COLOR = mc_skin_color_get ("help", "helplink"); - HELP_SLINK_COLOR = mc_skin_color_get ("help", "helpslink"); - HELP_TITLE_COLOR = mc_skin_color_get ("help", "helptitle"); - - VIEW_NORMAL_COLOR = mc_skin_color_get ("viewer", "_default_"); - VIEW_BOLD_COLOR = mc_skin_color_get ("viewer", "viewbold"); - VIEW_UNDERLINED_COLOR = mc_skin_color_get ("viewer", "viewunderline"); - VIEW_SELECTED_COLOR = mc_skin_color_get ("viewer", "viewselected"); - - EDITOR_NORMAL_COLOR = mc_skin_color_get ("editor", "_default_"); - EDITOR_BOLD_COLOR = mc_skin_color_get ("editor", "editbold"); - EDITOR_MARKED_COLOR = mc_skin_color_get ("editor", "editmarked"); - EDITOR_WHITESPACE_COLOR = mc_skin_color_get ("editor", "editwhitespace"); - EDITOR_NONPRINTABLE_COLOR = mc_skin_color_get ("editor", "editnonprintable"); - EDITOR_RIGHT_MARGIN_COLOR = mc_skin_color_get ("editor", "editrightmargin"); - LINE_STATE_COLOR = mc_skin_color_get ("editor", "editlinestate"); - EDITOR_BACKGROUND = mc_skin_color_get ("editor", "editbg"); - EDITOR_FRAME = mc_skin_color_get ("editor", "editframe"); - EDITOR_FRAME_ACTIVE = mc_skin_color_get ("editor", "editframeactive"); - EDITOR_FRAME_DRAG = mc_skin_color_get ("editor", "editframedrag"); - - BOOK_MARK_COLOR = mc_skin_color_get ("editor", "bookmark"); - BOOK_MARK_FOUND_COLOR = mc_skin_color_get ("editor", "bookmarkfound"); - - DFF_ADD_COLOR = mc_skin_color_get ("diffviewer", "added"); - DFF_CHG_COLOR = mc_skin_color_get ("diffviewer", "changedline"); - DFF_CHH_COLOR = mc_skin_color_get ("diffviewer", "changednew"); - DFF_CHD_COLOR = mc_skin_color_get ("diffviewer", "changed"); - DFF_DEL_COLOR = mc_skin_color_get ("diffviewer", "removed"); - DFF_ERROR_COLOR = mc_skin_color_get ("diffviewer", "error"); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -mc_skin_color_check_inisection (const gchar *group) -{ - return !((strcasecmp ("skin", group) == 0) || (strcasecmp ("aliases", group) == 0) - || (strcasecmp ("lines", group) == 0) || (strncasecmp ("widget-", group, 7) == 0)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_skin_color_check_bw_mode (mc_skin_t *mc_skin) -{ - gchar **groups, **orig_groups; - - if (tty_use_colors () && !mc_global.tty.disable_colors) - return; - - orig_groups = mc_config_get_groups (mc_skin->config, NULL); - - for (groups = orig_groups; *groups != NULL; groups++) - if (mc_skin_color_check_inisection (*groups)) - mc_config_del_group (mc_skin->config, *groups); - - g_strfreev (orig_groups); - - mc_skin_hardcoded_blackwhite_colors (mc_skin); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_skin_color_parse_ini_file (mc_skin_t *mc_skin) -{ - gboolean ret = FALSE; - gsize items_count; - gchar **groups, **orig_groups; - tty_color_pair_t *mc_skin_color; - - mc_skin_color_check_bw_mode (mc_skin); - - orig_groups = mc_config_get_groups (mc_skin->config, &items_count); - if (*orig_groups == NULL) - goto ret; - - /* as first, need to set up default colors */ - mc_skin_color_set_default_for_terminal (mc_skin); - mc_skin_color = mc_skin_color_get_from_ini_file (mc_skin, "core", "_default_"); - if (mc_skin_color == NULL) - goto ret; - - tty_color_set_defaults (mc_skin_color); - mc_skin_color_add_to_hash (mc_skin, "core", "_default_", mc_skin_color); - - for (groups = orig_groups; *groups != NULL; groups++) - { - gchar **keys, **orig_keys; - - if (!mc_skin_color_check_inisection (*groups)) - continue; - - orig_keys = mc_config_get_keys (mc_skin->config, *groups, NULL); - - for (keys = orig_keys; *keys != NULL; keys++) - { - mc_skin_color = mc_skin_color_get_from_ini_file (mc_skin, *groups, *keys); - if (mc_skin_color != NULL) - mc_skin_color_add_to_hash (mc_skin, *groups, *keys, mc_skin_color); - } - g_strfreev (orig_keys); - } - - mc_skin_color_cache_init (); - - ret = TRUE; - - ret: - g_strfreev (orig_groups); - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_skin_color_get (const gchar *group, const gchar *name) -{ - tty_color_pair_t *mc_skin_color; - - mc_skin_color = mc_skin_color_get_with_defaults (group, name); - - return (mc_skin_color != NULL) ? mc_skin_color->pair_index : 0; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/skin/common.c b/recipes/wip/files/mc/source/lib/skin/common.c deleted file mode 100644 index ede88701f7..0000000000 --- a/recipes/wip/files/mc/source/lib/skin/common.c +++ /dev/null @@ -1,209 +0,0 @@ -/* - Skins engine. - Interface functions - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009 - Egmont Koblinger , 2010 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include -#include - -#include "internal.h" -#include "lib/util.h" - -#include "lib/tty/color.h" /* tty_use_256colors(); */ - -/*** global variables ****************************************************************************/ - -mc_skin_t mc_skin__default; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static gboolean mc_skin_is_init = FALSE; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_skin_hash_destroy_value (gpointer data) -{ - tty_color_pair_t *mc_skin_color = (tty_color_pair_t *) data; - - g_free (mc_skin_color->fg); - g_free (mc_skin_color->bg); - g_free (mc_skin_color->attrs); - g_free (mc_skin_color); -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -mc_skin_get_default_name (void) -{ - char *tmp_str; - - /* from command line */ - if (mc_global.tty.skin != NULL) - return g_strdup (mc_global.tty.skin); - - /* from envirovement variable */ - tmp_str = getenv ("MC_SKIN"); - if (tmp_str != NULL) - return g_strdup (tmp_str); - - /* from config. Or 'default' if no present in config */ - return mc_config_get_string (mc_global.main_config, CONFIG_APP_SECTION, "skin", "default"); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_skin_reinit (void) -{ - mc_skin_deinit (); - mc_skin__default.name = mc_skin_get_default_name (); - mc_skin__default.colors = g_hash_table_new_full (g_str_hash, g_str_equal, - g_free, mc_skin_hash_destroy_value); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_skin_try_to_load_default (void) -{ - mc_skin_reinit (); - g_free (mc_skin__default.name); - mc_skin__default.name = g_strdup ("default"); - if (!mc_skin_ini_file_load (&mc_skin__default)) - { - mc_skin_reinit (); - mc_skin_set_hardcoded_skin (&mc_skin__default); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_skin_init (const gchar *skin_override, GError **mcerror) -{ - gboolean is_good_init = TRUE; - GError *error = NULL; - - mc_return_val_if_error (mcerror, FALSE); - - mc_skin__default.have_256_colors = FALSE; - mc_skin__default.have_true_colors = FALSE; - - mc_skin__default.name = - skin_override != NULL ? g_strdup (skin_override) : mc_skin_get_default_name (); - - mc_skin__default.colors = g_hash_table_new_full (g_str_hash, g_str_equal, - g_free, mc_skin_hash_destroy_value); - if (!mc_skin_ini_file_load (&mc_skin__default)) - { - mc_propagate_error (mcerror, 0, - _("Unable to load '%s' skin.\nDefault skin has been loaded"), - mc_skin__default.name); - mc_skin_try_to_load_default (); - is_good_init = FALSE; - } - mc_skin_colors_old_configure (&mc_skin__default); - - if (!mc_skin_ini_file_parse (&mc_skin__default)) - { - mc_propagate_error (mcerror, 0, - _("Unable to parse '%s' skin.\nDefault skin has been loaded"), - mc_skin__default.name); - - mc_skin_try_to_load_default (); - mc_skin_colors_old_configure (&mc_skin__default); - (void) mc_skin_ini_file_parse (&mc_skin__default); - is_good_init = FALSE; - } - if (is_good_init && mc_skin__default.have_true_colors && !tty_use_truecolors (&error)) - { - mc_propagate_error (mcerror, 0, - _ - ("Unable to use '%s' skin with true colors support:\n%s\nDefault skin has been loaded"), - mc_skin__default.name, error->message); - g_error_free (error); - mc_skin_try_to_load_default (); - mc_skin_colors_old_configure (&mc_skin__default); - (void) mc_skin_ini_file_parse (&mc_skin__default); - is_good_init = FALSE; - } - if (is_good_init && mc_skin__default.have_256_colors && !tty_use_256colors (&error)) - { - mc_propagate_error (mcerror, 0, - _ - ("Unable to use '%s' skin with 256 colors support\non non-256 colors terminal.\nDefault skin has been loaded"), - mc_skin__default.name); - mc_skin_try_to_load_default (); - mc_skin_colors_old_configure (&mc_skin__default); - (void) mc_skin_ini_file_parse (&mc_skin__default); - is_good_init = FALSE; - } - mc_skin_is_init = TRUE; - return is_good_init; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_skin_deinit (void) -{ - tty_color_free_all (); - - MC_PTR_FREE (mc_skin__default.name); - g_hash_table_destroy (mc_skin__default.colors); - mc_skin__default.colors = NULL; - - MC_PTR_FREE (mc_skin__default.description); - - mc_config_deinit (mc_skin__default.config); - mc_skin__default.config = NULL; - - mc_skin_is_init = FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ - -gchar * -mc_skin_get (const gchar *group, const gchar *key, const gchar *default_value) -{ - if (mc_global.tty.ugly_line_drawing) - return g_strdup (default_value); - - return mc_config_get_string (mc_skin__default.config, group, key, default_value); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/skin/hc-skins.c b/recipes/wip/files/mc/source/lib/skin/hc-skins.c deleted file mode 100644 index 551e3a28c5..0000000000 --- a/recipes/wip/files/mc/source/lib/skin/hc-skins.c +++ /dev/null @@ -1,146 +0,0 @@ -/* - Skins engine. - Set of hardcoded skins - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009 - Andrew Borodin , 2012 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#define set_lines(x,y) mc_config_set_string(mc_skin->config, "Lines", x, y) - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_skin_hardcoded_blackwhite_colors (mc_skin_t *mc_skin) -{ - mc_config_set_string (mc_skin->config, "core", "_default_", "default;default"); - mc_config_set_string (mc_skin->config, "core", "selected", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "core", "marked", "A_BOLD"); - mc_config_set_string (mc_skin->config, "core", "markselect", "A_BOLD_REVERSE"); - mc_config_set_string (mc_skin->config, "core", "disabled", "default"); - mc_config_set_string (mc_skin->config, "core", "reverse", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "dialog", "_default_", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "dialog", "dfocus", "A_BOLD"); - mc_config_set_string (mc_skin->config, "dialog", "dhotnormal", "A_UNDERLINE"); - mc_config_set_string (mc_skin->config, "dialog", "dhotfocus", "A_UNDERLINE"); - mc_config_set_string (mc_skin->config, "error", "_default_", "A_BOLD"); - mc_config_set_string (mc_skin->config, "menu", "_default_", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "menu", "menuhot", "A_BOLD"); - mc_config_set_string (mc_skin->config, "menu", "menusel", "default"); - mc_config_set_string (mc_skin->config, "menu", "menuhotsel", "A_UNDERLINE"); - mc_config_set_string (mc_skin->config, "menu", "menuinactive", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "popupmenu", "_default_", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "popupmenu", "menusel", "default"); - mc_config_set_string (mc_skin->config, "popupmenu", "menutitle", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "statusbar", "_default_", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "help", "_default_", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "help", "helpitalic", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "help", "helpbold", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "help", "helpslink", "A_BOLD"); - mc_config_set_string (mc_skin->config, "viewer", "viewunderline", "A_UNDERLINE"); - mc_config_set_string (mc_skin->config, "editor", "editbold", "A_BOLD"); - mc_config_set_string (mc_skin->config, "editor", "editmarked", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "editor", "editframeactive", "A_BOLD"); - mc_config_set_string (mc_skin->config, "editor", "editframedrag", "A_REVERSE"); - mc_config_set_string (mc_skin->config, "buttonbar", "hotkey", "default"); - mc_config_set_string (mc_skin->config, "buttonbar", "button", "A_REVERSE"); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_skin_hardcoded_space_lines (mc_skin_t *mc_skin) -{ - /* single lines */ - set_lines ("vert", " "); - set_lines ("horiz", " "); - set_lines ("lefttop", " "); - set_lines ("righttop", " "); - set_lines ("leftbottom", " "); - set_lines ("rightbottom", " "); - set_lines ("topmiddle", " "); - set_lines ("bottommiddle", " "); - set_lines ("leftmiddle", " "); - set_lines ("rightmiddle", " "); - set_lines ("cross", " "); - - set_lines ("dvert", " "); - set_lines ("dhoriz", " "); - set_lines ("dlefttop", " "); - set_lines ("drighttop", " "); - set_lines ("dleftbottom", " "); - set_lines ("drightbottom", " "); - set_lines ("dtopmiddle", " "); - set_lines ("dbottommiddle", " "); - set_lines ("dleftmiddle", " "); - set_lines ("drightmiddle", " "); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_skin_hardcoded_ugly_lines (mc_skin_t *mc_skin) -{ - /* single lines */ - set_lines ("vert", "|"); - set_lines ("horiz", "-"); - set_lines ("lefttop", "+"); - set_lines ("righttop", "+"); - set_lines ("leftbottom", "+"); - set_lines ("rightbottom", "+"); - set_lines ("topmiddle", "-"); - set_lines ("bottommiddle", "-"); - set_lines ("leftmiddle", "|"); - set_lines ("rightmiddle", "|"); - set_lines ("cross", "+"); - - /* double lines */ - set_lines ("dvert", "|"); - set_lines ("dhoriz", "-"); - set_lines ("dlefttop", "+"); - set_lines ("drighttop", "+"); - set_lines ("dleftbottom", "+"); - set_lines ("drightbottom", "+"); - set_lines ("dtopmiddle", "-"); - set_lines ("dbottommiddle", "-"); - set_lines ("dleftmiddle", "|"); - set_lines ("drightmiddle", "|"); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/skin/ini-file.c b/recipes/wip/files/mc/source/lib/skin/ini-file.c deleted file mode 100644 index c6b4381da1..0000000000 --- a/recipes/wip/files/mc/source/lib/skin/ini-file.c +++ /dev/null @@ -1,210 +0,0 @@ -/* - Skins engine. - Reading and parse ini-files - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include - -#include "lib/global.h" /* */ - -#include "internal.h" -#include "lib/fileloc.h" -#include "lib/util.h" /* exist_file() */ - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_skin_get_list_from_dir (const gchar *base_dir, GPtrArray *list) -{ - gchar *name; - GDir *dir; - - name = g_build_filename (base_dir, MC_SKINS_DIR, (char *) NULL); - dir = g_dir_open (name, 0, NULL); - g_free (name); - - if (dir != NULL) - { - const gchar *cname; - - while ((cname = g_dir_read_name (dir)) != NULL) - { - gchar *sname; - size_t slen; - unsigned int i; - - slen = strlen (cname); - sname = g_strndup (cname, slen); - - if (slen > 4 && strcmp (sname + slen - 4, ".ini") == 0) - sname[slen - 4] = '\0'; - - for (i = 0; i < list->len; i++) - if (strcmp (sname, g_ptr_array_index (list, i)) == 0) - break; - - if (i < list->len) - g_free (sname); - else - g_ptr_array_add (list, sname); - } - - g_dir_close (dir); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -string_array_comparator (gconstpointer a, gconstpointer b) -{ - return strcmp (*(char *const *) a, *(char *const *) b); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -mc_skin_ini_file_load_search_in_dir (mc_skin_t *mc_skin, const gchar *base_dir) -{ - char *file_name, *file_name2; - - file_name = g_build_filename (base_dir, MC_SKINS_DIR, mc_skin->name, (char *) NULL); - if (exist_file (file_name)) - { - mc_skin->config = mc_config_init (file_name, TRUE); - g_free (file_name); - return (mc_skin->config != NULL); - } - g_free (file_name); - - file_name2 = g_strdup_printf ("%s.ini", mc_skin->name); - file_name = g_build_filename (base_dir, MC_SKINS_DIR, file_name2, (char *) NULL); - g_free (file_name2); - - if (exist_file (file_name)) - { - mc_skin->config = mc_config_init (file_name, TRUE); - g_free (file_name); - return (mc_skin->config != NULL); - } - g_free (file_name); - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -GPtrArray * -mc_skin_list (void) -{ - GPtrArray *list; - - list = g_ptr_array_new_with_free_func (g_free); - mc_skin_get_list_from_dir (mc_config_get_data_path (), list); - mc_skin_get_list_from_dir (mc_global.sysconfig_dir, list); - mc_skin_get_list_from_dir (mc_global.share_data_dir, list); - g_ptr_array_sort (list, (GCompareFunc) string_array_comparator); - - return list; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_skin_ini_file_load (mc_skin_t *mc_skin) -{ - char *file_name; - - file_name = g_path_get_basename (mc_skin->name); - if (file_name == NULL) - return FALSE; - - if (strcmp (file_name, mc_skin->name) != 0) - { - g_free (file_name); - if (!g_path_is_absolute (mc_skin->name)) - return FALSE; - mc_skin->config = mc_config_init (mc_skin->name, TRUE); - return (mc_skin->config != NULL); - } - g_free (file_name); - - /* ${XDG_DATA_HOME}/mc/skins/ */ - if (mc_skin_ini_file_load_search_in_dir (mc_skin, mc_config_get_data_path ())) - return TRUE; - - /* /etc/mc/skins/ */ - if (mc_skin_ini_file_load_search_in_dir (mc_skin, mc_global.sysconfig_dir)) - return TRUE; - - /* /usr/share/mc/skins/ */ - return mc_skin_ini_file_load_search_in_dir (mc_skin, mc_global.share_data_dir); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_skin_ini_file_parse (mc_skin_t *mc_skin) -{ - mc_skin->description = - mc_config_get_string (mc_skin->config, "skin", "description", "- no description -"); - if (!mc_skin_color_parse_ini_file (mc_skin)) - return FALSE; - - mc_skin_lines_parse_ini_file (mc_skin); - mc_skin->have_256_colors = mc_config_get_bool (mc_skin->config, "skin", "256colors", FALSE); - mc_skin->have_true_colors = mc_config_get_bool (mc_skin->config, "skin", "truecolors", FALSE); - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_skin_set_hardcoded_skin (mc_skin_t *mc_skin) -{ - mc_skin->config = mc_config_init (NULL, TRUE); - - mc_config_set_string (mc_skin->config, "skin", "description", "hardcoded skin"); - - mc_skin_hardcoded_ugly_lines (mc_skin); - mc_skin_hardcoded_blackwhite_colors (mc_skin); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/skin/internal.h b/recipes/wip/files/mc/source/lib/skin/internal.h deleted file mode 100644 index 6bc0a23b51..0000000000 --- a/recipes/wip/files/mc/source/lib/skin/internal.h +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef MC__SKIN_INTERNAL_H -#define MC__SKIN_INTERNAL_H - -#include "lib/global.h" -#include "lib/skin.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -gboolean mc_skin_ini_file_load (mc_skin_t * mc_skin); -gboolean mc_skin_ini_file_parse (mc_skin_t * mc_skin); -void mc_skin_set_hardcoded_skin (mc_skin_t * mc_skin); - -gboolean mc_skin_ini_file_parse_colors (mc_skin_t * mc_skin); -gboolean mc_skin_color_parse_ini_file (mc_skin_t * mc_skin); - -void mc_skin_hardcoded_ugly_lines (mc_skin_t * mc_skin); -void mc_skin_hardcoded_space_lines (mc_skin_t * mc_skin); -void mc_skin_hardcoded_blackwhite_colors (mc_skin_t * mc_skin); - -void mc_skin_colors_old_configure (mc_skin_t * mc_skin); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__SKIN_INTERNAL_H */ diff --git a/recipes/wip/files/mc/source/lib/skin/lines.c b/recipes/wip/files/mc/source/lib/skin/lines.c deleted file mode 100644 index 4deb4ab401..0000000000 --- a/recipes/wip/files/mc/source/lib/skin/lines.c +++ /dev/null @@ -1,98 +0,0 @@ -/* - Skins engine. - Work with line draving chars. - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include -#include - -#include "internal.h" -#include "lib/tty/tty.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static int -mc_skin_lines_load_frm (mc_skin_t *mc_skin, const char *name) -{ - int ret; - char *frm_val; - - frm_val = mc_config_get_string_raw (mc_skin->config, "Lines", name, " "); - ret = mc_tty_normalize_lines_char (frm_val); - g_free (frm_val); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -mc_skin_lines_parse_ini_file (mc_skin_t *mc_skin) -{ - if (mc_global.tty.slow_terminal) - mc_skin_hardcoded_space_lines (mc_skin); - else if (mc_global.tty.ugly_line_drawing) - mc_skin_hardcoded_ugly_lines (mc_skin); - - /* single lines */ - mc_tty_frm[MC_TTY_FRM_VERT] = mc_skin_lines_load_frm (mc_skin, "vert"); - mc_tty_frm[MC_TTY_FRM_HORIZ] = mc_skin_lines_load_frm (mc_skin, "horiz"); - mc_tty_frm[MC_TTY_FRM_LEFTTOP] = mc_skin_lines_load_frm (mc_skin, "lefttop"); - mc_tty_frm[MC_TTY_FRM_RIGHTTOP] = mc_skin_lines_load_frm (mc_skin, "righttop"); - mc_tty_frm[MC_TTY_FRM_LEFTBOTTOM] = mc_skin_lines_load_frm (mc_skin, "leftbottom"); - mc_tty_frm[MC_TTY_FRM_RIGHTBOTTOM] = mc_skin_lines_load_frm (mc_skin, "rightbottom"); - mc_tty_frm[MC_TTY_FRM_TOPMIDDLE] = mc_skin_lines_load_frm (mc_skin, "topmiddle"); - mc_tty_frm[MC_TTY_FRM_BOTTOMMIDDLE] = mc_skin_lines_load_frm (mc_skin, "bottommiddle"); - mc_tty_frm[MC_TTY_FRM_LEFTMIDDLE] = mc_skin_lines_load_frm (mc_skin, "leftmiddle"); - mc_tty_frm[MC_TTY_FRM_RIGHTMIDDLE] = mc_skin_lines_load_frm (mc_skin, "rightmiddle"); - mc_tty_frm[MC_TTY_FRM_CROSS] = mc_skin_lines_load_frm (mc_skin, "cross"); - - /* double lines */ - mc_tty_frm[MC_TTY_FRM_DVERT] = mc_skin_lines_load_frm (mc_skin, "dvert"); - mc_tty_frm[MC_TTY_FRM_DHORIZ] = mc_skin_lines_load_frm (mc_skin, "dhoriz"); - mc_tty_frm[MC_TTY_FRM_DLEFTTOP] = mc_skin_lines_load_frm (mc_skin, "dlefttop"); - mc_tty_frm[MC_TTY_FRM_DRIGHTTOP] = mc_skin_lines_load_frm (mc_skin, "drighttop"); - mc_tty_frm[MC_TTY_FRM_DLEFTBOTTOM] = mc_skin_lines_load_frm (mc_skin, "dleftbottom"); - mc_tty_frm[MC_TTY_FRM_DRIGHTBOTTOM] = mc_skin_lines_load_frm (mc_skin, "drightbottom"); - mc_tty_frm[MC_TTY_FRM_DTOPMIDDLE] = mc_skin_lines_load_frm (mc_skin, "dtopmiddle"); - mc_tty_frm[MC_TTY_FRM_DBOTTOMMIDDLE] = mc_skin_lines_load_frm (mc_skin, "dbottommiddle"); - mc_tty_frm[MC_TTY_FRM_DLEFTMIDDLE] = mc_skin_lines_load_frm (mc_skin, "dleftmiddle"); - mc_tty_frm[MC_TTY_FRM_DRIGHTMIDDLE] = mc_skin_lines_load_frm (mc_skin, "drightmiddle"); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/stat-size.h b/recipes/wip/files/mc/source/lib/stat-size.h deleted file mode 100644 index cc8ec121a4..0000000000 --- a/recipes/wip/files/mc/source/lib/stat-size.h +++ /dev/null @@ -1,99 +0,0 @@ -/* macros useful in interpreting size-related values in struct stat. - Copyright (C) 1989, 1991-2016 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 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* *INDENT-OFF* */ -/* - Macros defined by this file (s is an rvalue of type struct stat): - - DEV_BSIZE: The device blocksize. But use ST_NBLOCKSIZE instead. - ST_BLKSIZE(s): Preferred (in the sense of best performance) I/O blocksize - for the file, in bytes. - ST_NBLOCKS(s): Number of blocks in the file, including indirect blocks. - ST_NBLOCKSIZE: Size of blocks used when calculating ST_NBLOCKS. - */ -/* *INDENT-ON* */ - -#ifndef STAT_SIZE_H -#define STAT_SIZE_H - -/* sys/param.h may define DEV_BSIZE */ -#if HAVE_SYS_PARAM_H -#include -#endif - - -/* Get or fake the disk device blocksize. - Usually defined by sys/param.h (if at all). */ -#if !defined DEV_BSIZE && defined BSIZE -#define DEV_BSIZE BSIZE -#endif -#if !defined DEV_BSIZE && defined BBSIZE /* SGI sys/param.h */ -#define DEV_BSIZE BBSIZE -#endif -#ifndef DEV_BSIZE -#define DEV_BSIZE 4096 -#endif - - - -/* Extract or fake data from a 'struct stat'. - ST_BLKSIZE: Preferred I/O blocksize for the file, in bytes. - ST_NBLOCKS: Number of blocks in the file, including indirect blocks. - ST_NBLOCKSIZE: Size of blocks used when calculating ST_NBLOCKS. */ -#ifndef HAVE_STRUCT_STAT_ST_BLOCKS -#define ST_BLKSIZE(statbuf) DEV_BSIZE - /* coreutils' fileblocks.c also uses BSIZE. */ -#if defined _POSIX_SOURCE || !defined BSIZE -#define ST_NBLOCKS(statbuf) \ - ((statbuf).st_size / ST_NBLOCKSIZE + ((statbuf).st_size % ST_NBLOCKSIZE != 0)) -#else - /* This definition calls st_blocks, which is in the fileblocks module. */ -#define ST_NBLOCKS(statbuf) \ - (S_ISREG ((statbuf).st_mode) || S_ISDIR ((statbuf).st_mode) ? \ - st_blocks ((statbuf).st_size) : 0) -#endif -#else -/* When running 'rsh hpux11-system cat any-file', cat would - determine that the output stream had an st_blksize of 2147421096. - Conversely st_blksize can be 2 GiB (or maybe even larger) with XFS - on 64-bit hosts. Somewhat arbitrarily, limit the "optimal" block - size to SIZE_MAX / 8 + 1. (Dividing SIZE_MAX by only 4 wouldn't - suffice, since "cat" sometimes multiplies the result by 4.) If - anyone knows of a system for which this limit is too small, please - report it as a bug in this code. */ -#define ST_BLKSIZE(statbuf) ((0 < (statbuf).st_blksize \ - && (size_t) ((statbuf).st_blksize) <= ((size_t)-1) / 8 + 1) \ - ? (size_t) ((statbuf).st_blksize) : DEV_BSIZE) -#if defined hpux || defined __hpux__ || defined __hpux - /* HP-UX counts st_blocks in 1024-byte units. - This loses when mixing HP-UX and BSD file systems with NFS. */ -#define ST_NBLOCKSIZE 1024 -#endif -#endif - -#ifndef ST_NBLOCKS -#define ST_NBLOCKS(statbuf) ((statbuf).st_blocks) -#endif - -#ifndef ST_NBLOCKSIZE -#ifdef S_BLKSIZE -#define ST_NBLOCKSIZE S_BLKSIZE -#else -#define ST_NBLOCKSIZE 512 -#endif -#endif - -#endif /* STAT_SIZE_H */ diff --git a/recipes/wip/files/mc/source/lib/stdckdint.in.h b/recipes/wip/files/mc/source/lib/stdckdint.in.h deleted file mode 100644 index 91848806d8..0000000000 --- a/recipes/wip/files/mc/source/lib/stdckdint.in.h +++ /dev/null @@ -1,35 +0,0 @@ -/* stdckdint.h -- checked integer arithmetic - - Copyright 2022-2024 Free Software Foundation, Inc. - - This program is free software: you can redistribute it and/or modify it - under the terms of the GNU Lesser General Public License as published - by the Free Software Foundation; either version 2.1 of the License, or - (at your option) any later version. - - This 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 Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with this program. If not, see . */ - -#ifndef _GL_STDCKDINT_H -#define _GL_STDCKDINT_H - -#include "intprops-internal.h" - -/* Store into *R the low-order bits of A + B, A - B, A * B, respectively. - Return 1 if the result overflows, 0 otherwise. - A, B, and *R can have any integer type other than char, bool, a - bit-precise integer type, or an enumeration type. - - These are like the standard macros introduced in C23, except that - arguments should not have side effects. */ - -#define ckd_add(r, a, b) ((bool) _GL_INT_ADD_WRAPV (a, b, r)) -#define ckd_sub(r, a, b) ((bool) _GL_INT_SUBTRACT_WRAPV (a, b, r)) -#define ckd_mul(r, a, b) ((bool) _GL_INT_MULTIPLY_WRAPV (a, b, r)) - -#endif /* _GL_STDCKDINT_H */ diff --git a/recipes/wip/files/mc/source/lib/strutil.h b/recipes/wip/files/mc/source/lib/strutil.h deleted file mode 100644 index 713f997eb5..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil.h +++ /dev/null @@ -1,684 +0,0 @@ -#ifndef MC_STRUTIL_H -#define MC_STRUTIL_H - -#include "lib/global.h" /* include glib.h */ - -#include -#include -#include - -/* Header file for strutil.c, strutilascii.c, strutil8bit.c, strutilutf8.c. - * There are two sort of functions: - * 1. functions for working with growing strings and conversion strings between - * different encodings. - * (implemented directly in strutil.c) - * 2. functions, that hide differences between encodings derived from ASCII. - * (implemented separately in strutilascii.c, strutil8bit.c, strutilutf8.c) - * documentation is made for UTF-8 version of functions. - */ - -/* invalid strings - * function, that works with invalid strings are marked with "I" - * in documentation - * invalid bytes of string are handled as one byte characters with width 1, they - * are displayed as question marks, I-marked comparing functions try to keep - * the original value of these bytes. - */ - -/* combining characters - * displaying: all handled as zero with characters, expect combing character - * at the begin of string, this character has with one (space add before), - * so str_term_width is not good for computing width of singles characters - * (never return zero, expect empty string) - * for compatibility are strings composed before displaying - * comparing: comparing decompose all string before comparing, n-compare - * functions do not work as is usual, because same strings do not have to be - * same length in UTF-8. So they return 0 if one string is prefix of the other - * one. - * str_prefix is used to determine, how many characters from one string are - * prefix in second string. However, str_prefix return number of characters in - * decompose form. (used in do_search (screen.c)) - */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define IS_FIT(x) ((x) & 0x0010) -#define MAKE_FIT(x) ((x) | 0x0010) -#define HIDE_FIT(x) ((x) & 0x000f) - -#define INVALID_CONV ((GIConv) (-1)) - -/*** enums ***************************************************************************************/ - -/* results of conversion function - */ -typedef enum -{ - /* Success means, that the conversion has been finished successfully - */ - ESTR_SUCCESS = 0, - /* Problem means, that not every character was successfully converted (some are - * replaced with question marks). So it is impossible to convert string back. - */ - ESTR_PROBLEM = 1, - /* Failure means, that the conversion is not possible (example: wrong encoding - * of the input string) - */ - ESTR_FAILURE = 2 -} estr_t; - -/* alignment strings on terminal - */ -typedef enum -{ - J_LEFT = 0x01, - J_RIGHT = 0x02, - J_CENTER = 0x03, - /* if there is enough space for string on terminal, - * string is centered otherwise is aligned to the left */ - J_CENTER_LEFT = 0x04, - /* fit alignment: if string is too long, truncate with '~' */ - J_LEFT_FIT = 0x11, - J_RIGHT_FIT = 0x12, - J_CENTER_FIT = 0x13, - J_CENTER_LEFT_FIT = 0x14 -} align_crt_t; - -/* string-to-integer parsing results - */ -typedef enum -{ - LONGINT_OK = 0, - - /* These two values can be ORed together, to indicate that both errors occurred. */ - LONGINT_OVERFLOW = 1, - LONGINT_INVALID_SUFFIX_CHAR = 2, - - LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW = (LONGINT_INVALID_SUFFIX_CHAR | LONGINT_OVERFLOW), - LONGINT_INVALID = 4 -} strtol_error_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/* all functions in str_class must be defined for every encoding */ -struct str_class -{ - /* *INDENT-OFF* */ - gchar *(*conv_gerror_message) (GError * error, const char *def_msg); - /*I*/ estr_t (*vfs_convert_to) (GIConv coder, const char *string, int size, GString * buffer); - /*I*/ void (*insert_replace_char) (GString * buffer); - gboolean (*is_valid_string) (const char *text); - /*I*/ int (*is_valid_char) (const char *ch, size_t size); - /*I*/ void (*cnext_char) (const char **text); - void (*cprev_char) (const char **text); - void (*cnext_char_safe) (const char **text); - /*I*/ void (*cprev_char_safe) (const char **text); - /*I*/ int (*cnext_noncomb_char) (const char **text); - /*I*/ int (*cprev_noncomb_char) (const char **text, const char *begin); - /*I*/ gboolean (*char_isspace) (const char *ch); - /*I*/ gboolean (*char_ispunct) (const char *ch); - /*I*/ gboolean (*char_isalnum) (const char *ch); - /*I*/ gboolean (*char_isdigit) (const char *ch); - /*I*/ gboolean (*char_isprint) (const char *ch); - /*I*/ gboolean (*char_iscombiningmark) (const char *ch); - /*I*/ int (*length) (const char *text); - /*I*/ int (*length2) (const char *text, int size); - /*I*/ int (*length_noncomb) (const char *text); - /*I*/ gboolean (*char_toupper) (const char *ch, char **out, size_t * remain); - gboolean (*char_tolower) (const char *ch, char **out, size_t * remain); - void (*fix_string) (char *text); - /*I*/ const char *(*term_form) (const char *text); - /*I*/ const char *(*fit_to_term) (const char *text, int width, align_crt_t just_mode); - /*I*/ const char *(*term_trim) (const char *text, int width); - /*I*/ const char *(*term_substring) (const char *text, int start, int width); - /*I*/ int (*term_width1) (const char *text); - /*I*/ int (*term_width2) (const char *text, size_t length); - /*I*/ int (*term_char_width) (const char *length); - /*I*/ const char *(*trunc) (const char *length, int width); - /*I*/ int (*offset_to_pos) (const char *text, size_t length); - /*I*/ int (*column_to_pos) (const char *text, size_t pos); - /*I*/ char *(*create_search_needle) (const char *needle, gboolean case_sen); - void (*release_search_needle) (char *needle, gboolean case_sen); - const char *(*search_first) (const char *text, const char *needle, gboolean case_sen); - const char *(*search_last) (const char *text, const char *needle, gboolean case_sen); - int (*compare) (const char *t1, const char *t2); - /*I*/ int (*ncompare) (const char *t1, const char *t2); - /*I*/ int (*casecmp) (const char *t1, const char *t2); - /*I*/ int (*ncasecmp) (const char *t1, const char *t2); - /*I*/ int (*prefix) (const char *text, const char *prefix); - /*I*/ int (*caseprefix) (const char *text, const char *prefix); - /*I*/ char *(*create_key) (const char *text, gboolean case_sen); - /*I*/ char *(*create_key_for_filename) (const char *text, gboolean case_sen); - /*I*/ int (*key_collate) (const char *t1, const char *t2, gboolean case_sen); - /*I*/ void (*release_key) (char *key, gboolean case_sen); - /* *INDENT-ON* */ -}; - -/*** global variables defined in .c file *********************************************************/ - -/* standard converters */ -extern GIConv str_cnv_to_term; -extern GIConv str_cnv_from_term; -/* from terminal encoding to terminal encoding */ -extern GIConv str_cnv_not_convert; - -/*** declarations of public functions ************************************************************/ - -struct str_class str_utf8_init (void); -struct str_class str_8bit_init (void); -struct str_class str_ascii_init (void); - -/* create converter from "from_enc" to terminal encoding - * if "from_enc" is not supported return INVALID_CONV - */ -GIConv str_crt_conv_from (const char *from_enc); - -/* create converter from terminal encoding to "to_enc" - * if "to_enc" is not supported return INVALID_CONV - */ -GIConv str_crt_conv_to (const char *to_enc); - -/* close converter, do not close str_cnv_to_term, str_cnv_from_term, - * str_cnv_not_convert - */ -void str_close_conv (GIConv conv); - -/* return on of not used buffers (.used == 0) or create new - * returned buffer has set .used to 1 - */ - -/* convert string using coder, result of conversion is appended at end of buffer - * return ESTR_SUCCESS if there was no problem. - * otherwise return ESTR_PROBLEM or ESTR_FAILURE - */ -estr_t str_convert (GIConv coder, const char *string, GString * buffer); -estr_t str_nconvert (GIConv coder, const char *string, int size, GString * buffer); - -/* convert GError message (which in UTF-8) to terminal charset - * def_char is used if result of error->str conversion if ESTR_FAILURE - * return new allocated null-terminated string, which is need to be freed - * I - */ -gchar *str_conv_gerror_message (GError * error, const char *def_msg); - -/* return only ESTR_SUCCESS or ESTR_FAILURE, because vfs must be able to convert - * result to original string. (so no replace with questionmark) - * if coder is str_cnv_from_term or str_cnv_not_convert, string is only copied, - * so is possible to show file, that is not valid in terminal encoding - */ -estr_t str_vfs_convert_from (GIConv coder, const char *string, GString * buffer); - -/* if coder is str_cnv_to_term or str_cnv_not_convert, string is only copied, - * does replace with question mark - * I - */ -estr_t str_vfs_convert_to (GIConv coder, const char *string, int size, GString * buffer); - -/* printf function for str_buffer, append result of printf at the end of buffer - */ -/* *INDENT-OFF* */ -void str_printf (GString * buffer, const char *format, ...) G_GNUC_PRINTF (2, 3); -/* *INDENT-ON* */ - -/* add standard replacement character in terminal encoding - */ -void str_insert_replace_char (GString * buffer); - -/* init strings and set terminal encoding, - * if is termenc NULL, detect terminal encoding - * create all str_cnv_* and set functions for terminal encoding - */ -void str_init_strings (const char *termenc); - -/* free all str_buffer and all str_cnv_* - */ -void str_uninit_strings (void); - -/* try convert characters in ch to output using conv - * ch_size is size of ch, can by (size_t)(-1) (-1 only for ASCII - * compatible encoding, for other must be set) - * return ESTR_SUCCESS if conversion was successfully, - * ESTR_PROBLEM if ch contains only part of characters, - * ESTR_FAILURE if conversion is not possible - */ -estr_t str_translate_char (GIConv conv, const char *ch, size_t ch_size, - char *output, size_t out_size); - -/* test, if text is valid in terminal encoding - * I - */ -gboolean str_is_valid_string (const char *text); - -/* test, if first char of ch is valid - * size, how many bytes characters occupied, could be (size_t)(-1) - * return 1 if it is valid, -1 if it is invalid or -2 if it is only part of - * multibyte character - * I - */ -int str_is_valid_char (const char *ch, size_t size); - -/* return next characters after text, do not call on the end of string - */ -char *str_get_next_char (char *text); -const char *str_cget_next_char (const char *text); - -/* return previous characters before text, do not call on the start of strings - */ -char *str_get_prev_char (char *text); -const char *str_cget_prev_char (const char *text); - -/* set text to next characters, do not call on the end of string - */ -void str_next_char (char **text); -void str_cnext_char (const char **text); - -/* set text to previous characters, do not call on the start of strings - */ -void str_prev_char (char **text); -void str_cprev_char (const char **text); - -/* return next characters after text, do not call on the end of string - * works with invalid string - * I - */ -char *str_get_next_char_safe (char *text); -const char *str_cget_next_char_safe (const char *text); - -/* return previous characters before text, do not call on the start of strings - * works with invalid string - * I - */ -char *str_get_prev_char_safe (char *text); -const char *str_cget_prev_char_safe (const char *text); - -/* set text to next characters, do not call on the end of string - * works with invalid string - * I - */ -void str_next_char_safe (char **text); -void str_cnext_char_safe (const char **text); - -/* set text to previous characters, do not call on the start of strings - * works with invalid string - * I - */ -void str_prev_char_safe (char **text); -void str_cprev_char_safe (const char **text); - -/* set text to next noncombining characters, check the end of text - * return how many characters was skipped - * works with invalid string - * I - */ -int str_next_noncomb_char (char **text); -int str_cnext_noncomb_char (const char **text); - -/* set text to previous noncombining characters, search stop at begin - * return how many characters was skipped - * works with invalid string - * I - */ -int str_prev_noncomb_char (char **text, const char *begin); -int str_cprev_noncomb_char (const char **text, const char *begin); - -/* if first characters in ch is space, tabulator or new lines - * I - */ -gboolean str_isspace (const char *ch); - -/* if first characters in ch is punctuation or symbol - * I - */ -gboolean str_ispunct (const char *ch); - -/* if first characters in ch is alphanum - * I - */ -gboolean str_isalnum (const char *ch); - -/* if first characters in ch is digit - * I - */ -gboolean str_isdigit (const char *ch); - -/* if first characters in ch is printable - * I - */ -gboolean str_isprint (const char *ch); - -/* if first characters in ch is a combining mark (only in utf-8) - * combining makrs are assumed to be zero width - * I - */ -gboolean str_iscombiningmark (const char *ch); - -/* write lower from of first characters in ch into out - * decrease remain by size of returned characters - * if out is not big enough, do nothing - */ -gboolean str_toupper (const char *ch, char **out, size_t *remain); - -/* write upper from of first characters in ch into out - * decrease remain by size of returned characters - * if out is not big enough, do nothing - */ -gboolean str_tolower (const char *ch, char **out, size_t *remain); - -/* return length of text in characters - * I - */ -int str_length (const char *text); - -/* return length of text in characters, limit to size - * I - */ -int str_length2 (const char *text, int size); - -/* return length of one char - * I - */ -int str_length_char (const char *text); - -/* return length of text in characters, count only noncombining characters - * I - */ -int str_length_noncomb (const char *text); - -/* replace all invalid characters in text with questionmark - * after return, text is valid string in terminal encoding - * I - */ -void str_fix_string (char *text); - -/* replace all invalid characters in text with questionmark - * replace all unprintable characters with '.' - * return static allocated string, "text" is not changed - * returned string do not need to be freed - * I - */ -const char *str_term_form (const char *text); - -/* like str_term_form, but text can be alignment to width - * alignment is specified in just_mode (J_LEFT, J_LEFT_FIT, ...) - * result is completed with spaces to width - * I - */ -const char *str_fit_to_term (const char *text, int width, align_crt_t just_mode); - -/* like str_term_form, but when text is wider than width, three dots are - * inserted at begin and result is completed with suffix of text - * no additional spaces are inserted - * I - */ -const char *str_term_trim (const char *text, int width); - - -/* like str_term_form, but return only specified substring - * start - column (position) on terminal, where substring begin - * result is completed with spaces to width - * I - */ -const char *str_term_substring (const char *text, int start, int width); - -/* return width, that will be text occupied on terminal - * I - */ -int str_term_width1 (const char *text); - -/* return width, that will be text occupied on terminal - * text is limited by length in characters - * I - */ -int str_term_width2 (const char *text, size_t length); - -/* return width, that will be character occupied on terminal - * combining characters are always zero width - * I - */ -int str_term_char_width (const char *text); - -/* convert position in characters to position in bytes - * I - */ -int str_offset_to_pos (const char *text, size_t length); - -/* convert position on terminal to position in characters - * I - */ -int str_column_to_pos (const char *text, size_t pos); - -/* like str_fit_to_term width just_mode = J_LEFT_FIT, - * but do not insert additional spaces - * I - */ -const char *str_trunc (const char *text, int width); - -/* create needle, that will be searched in str_search_fist/last, - * so needle can be reused - * in UTF-8 return normalized form of needle - */ -char *str_create_search_needle (const char *needle, gboolean case_sen); - -/* free needle returned by str_create_search_needle - */ -void str_release_search_needle (char *needle, gboolean case_sen); - -/* search for first occurrence of search in text - */ -const char *str_search_first (const char *text, const char *needle, gboolean case_sen); - -/* search for last occurrence of search in text - */ -const char *str_search_last (const char *text, const char *needle, gboolean case_sen); - -/* case sensitive compare two strings - * I - */ -int str_compare (const char *t1, const char *t2); - -/* case sensitive compare two strings - * if one string is prefix of the other string, return 0 - * I - */ -int str_ncompare (const char *t1, const char *t2); - -/* case insensitive compare two strings - * I - */ -int str_casecmp (const char *t1, const char *t2); - -/* case insensitive compare two strings - * if one string is prefix of the other string, return 0 - * I - */ -int str_ncasecmp (const char *t1, const char *t2); - -/* return, how many bytes are are same from start in text and prefix - * both strings are decomposed before comparing and return value is counted - * in decomposed form, too. calling with prefix, prefix, you get size in bytes - * of prefix in decomposed form, - * I - */ -int str_prefix (const char *text, const char *prefix); - -/* case insensitive version of str_prefix - * I - */ -int str_caseprefix (const char *text, const char *prefix); - -/* create a key that is used by str_key_collate - * I - */ -char *str_create_key (const char *text, gboolean case_sen); - -/* create a key that is used by str_key_collate - * should aware dot '.' in text - * I - */ -char *str_create_key_for_filename (const char *text, gboolean case_sen); - -/* compare two string using LC_COLLATE, if is possible - * if case_sen is set, comparing is case sensitive, - * case_sen must be same for str_create_key, str_key_collate and str_release_key - * I - */ -int str_key_collate (const char *t1, const char *t2, gboolean case_sen); - -/* release_key created by str_create_key, only right way to release key - * I - */ -void str_release_key (char *key, gboolean case_sen); - -/* return TRUE if codeset_name is utf8 or utf-8 - * I - */ -gboolean str_isutf8 (const char *codeset_name); - -const char *str_detect_termencoding (void); - -int str_verscmp (const char *s1, const char *s2); - -/* Like filevercmp, except compare the byte arrays a (of length alen) and b (of length blen) - so that a and b can contain '\0', which sorts just before '\1'. But if alen is -1 treat - a as a string terminated by '\0', and similarly for blen. - */ -int filenvercmp (char const *a, ssize_t alen, char const *b, ssize_t blen); - - -/* return how many lines and columns will text occupy on terminal - */ -void str_msg_term_size (const char *text, int *lines, int *columns); - -/** - * skip first needle's in haystack - * - * @param haystack pointer to string - * @param needle pointer to string - * @param skip_count skip first bytes - * - * @return pointer to skip_count+1 needle (or NULL if not found). - */ - -char *strrstr_skip_count (const char *haystack, const char *needle, size_t skip_count); - -char *str_replace_all (const char *haystack, const char *needle, const char *replacement); - -GPtrArray *str_tokenize (const char *string); - -strtol_error_t xstrtoumax (const char *nptr, char **endptr, int base, uintmax_t * val, - const char *valid_suffixes); -uintmax_t parse_integer (const char *str, gboolean * invalid); - -char *str_escape (const char *src, gsize src_len, const char *escaped_chars, - gboolean escape_non_printable); -char *str_unescape (const char *src, gsize src_len, const char *unescaped_chars, - gboolean unescape_non_printable); -char *str_shell_unescape (const char *text); -char *str_shell_escape (const char *text); - -char *str_glob_escape (const char *text); -char *str_glob_unescape (const char *text); - -char *str_regex_escape (const char *text); -char *str_regex_unescape (const char *text); - -gboolean str_is_char_escaped (const char *start, const char *current); - -/* --------------------------------------------------------------------------------------------- */ -/*** inline functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static inline void -str_replace (char *s, char from, char to) -{ - for (; *s != '\0'; s++) - { - if (*s == from) - *s = to; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * strcpy is unsafe on overlapping memory areas, so define memmove-alike - * string function. - * Have sense only when: - * * dest <= src - * AND - * * dest and str are pointers to one object (as Roland Illig pointed). - * - * We can't use str*cpy funs here: - * http://kerneltrap.org/mailarchive/openbsd-misc/2008/5/27/1951294 - * - * @param dest pointer to string - * @param src pointer to string - * - * @return newly allocated string - * - */ - -static inline char * -str_move (char *dest, const char *src) -{ - size_t n; - - g_assert (dest <= src); - - n = strlen (src) + 1; /* + '\0' */ - - return (char *) memmove (dest, src, n); -} - -/* --------------------------------------------------------------------------------------------- */ -/* Compare version strings: - - Compare strings a and b as file names containing version numbers, and return an integer - that is negative, zero, or positive depending on whether a compares less than, equal to, - or greater than b. - - Use the following version sort algorithm: - - 1. Compare the strings' maximal-length non-digit prefixes lexically. - If there is a difference return that difference. - Otherwise discard the prefixes and continue with the next step. - - 2. Compare the strings' maximal-length digit prefixes, using numeric comparison - of the numbers represented by each prefix. (Treat an empty prefix as zero; this can - happen only at string end.) - If there is a difference, return that difference. - Otherwise discard the prefixes and continue with the next step. - - 3. If both strings are empty, return 0. Otherwise continue with step 1. - - In version sort, lexical comparison is left to right, byte by byte, using the byte's numeric - value (0-255), except that: - - 1. ASCII letters sort before other bytes. - 2. A tilde sorts before anything, even an empty string. - - In addition to the version sort rules, the following strings have special priority and sort - before all other strings (listed in order): - - 1. The empty string. - 2. ".". - 3. "..". - 4. Strings starting with "." sort before other strings. - - Before comparing two strings where both begin with non-".", or where both begin with "." - but neither is "." or "..", suffixes matching the C-locale extended regular expression - (\.[A-Za-z~][A-Za-z0-9~]*)*$ are removed and the strings compared without them, using version sort - without special priority; if they do not compare equal, this comparison result is used and - the suffixes are effectively ignored. Otherwise, the entire strings are compared using version sort. - When removing a suffix from a nonempty string, remove the maximal-length suffix such that - the remaining string is nonempty. - */ - -static inline int -filevercmp (const char *s1, const char *s2) -{ - return filenvercmp (s1, -1, s2, -1); -} - -/* --------------------------------------------------------------------------------------------- */ - -#endif /* MC_STRUTIL_H */ diff --git a/recipes/wip/files/mc/source/lib/strutil/Makefile.am b/recipes/wip/files/mc/source/lib/strutil/Makefile.am deleted file mode 100644 index 85ec16e59c..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/Makefile.am +++ /dev/null @@ -1,15 +0,0 @@ -noinst_LTLIBRARIES = libmcstrutil.la - -libmcstrutil_la_SOURCES = \ - filevercmp.c \ - replace.c \ - strescape.c \ - strutil8bit.c \ - strutilascii.c \ - strutil.c \ - strutilutf8.c \ - strverscmp.c \ - tokenize.c \ - xstrtol.c - -AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) diff --git a/recipes/wip/files/mc/source/lib/strutil/Makefile.in b/recipes/wip/files/mc/source/lib/strutil/Makefile.in deleted file mode 100644 index bd77c665b8..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/Makefile.in +++ /dev/null @@ -1,782 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = lib/strutil -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libmcstrutil_la_LIBADD = -am_libmcstrutil_la_OBJECTS = filevercmp.lo replace.lo strescape.lo \ - strutil8bit.lo strutilascii.lo strutil.lo strutilutf8.lo \ - strverscmp.lo tokenize.lo xstrtol.lo -libmcstrutil_la_OBJECTS = $(am_libmcstrutil_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_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__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/filevercmp.Plo \ - ./$(DEPDIR)/replace.Plo ./$(DEPDIR)/strescape.Plo \ - ./$(DEPDIR)/strutil.Plo ./$(DEPDIR)/strutil8bit.Plo \ - ./$(DEPDIR)/strutilascii.Plo ./$(DEPDIR)/strutilutf8.Plo \ - ./$(DEPDIR)/strverscmp.Plo ./$(DEPDIR)/tokenize.Plo \ - ./$(DEPDIR)/xstrtol.Plo -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libmcstrutil_la_SOURCES) -DIST_SOURCES = $(libmcstrutil_la_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)` -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -noinst_LTLIBRARIES = libmcstrutil.la -libmcstrutil_la_SOURCES = \ - filevercmp.c \ - replace.c \ - strescape.c \ - strutil8bit.c \ - strutilascii.c \ - strutil.c \ - strutilutf8.c \ - strverscmp.c \ - tokenize.c \ - xstrtol.c - -AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/strutil/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/strutil/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libmcstrutil.la: $(libmcstrutil_la_OBJECTS) $(libmcstrutil_la_DEPENDENCIES) $(EXTRA_libmcstrutil_la_DEPENDENCIES) - $(AM_V_CCLD)$(LINK) $(libmcstrutil_la_OBJECTS) $(libmcstrutil_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filevercmp.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/replace.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strescape.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strutil.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strutil8bit.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strutilascii.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strutilutf8.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/strverscmp.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tokenize.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xstrtol.Plo@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.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 -o $@ $< - -.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 -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -f ./$(DEPDIR)/filevercmp.Plo - -rm -f ./$(DEPDIR)/replace.Plo - -rm -f ./$(DEPDIR)/strescape.Plo - -rm -f ./$(DEPDIR)/strutil.Plo - -rm -f ./$(DEPDIR)/strutil8bit.Plo - -rm -f ./$(DEPDIR)/strutilascii.Plo - -rm -f ./$(DEPDIR)/strutilutf8.Plo - -rm -f ./$(DEPDIR)/strverscmp.Plo - -rm -f ./$(DEPDIR)/tokenize.Plo - -rm -f ./$(DEPDIR)/xstrtol.Plo - -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-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f ./$(DEPDIR)/filevercmp.Plo - -rm -f ./$(DEPDIR)/replace.Plo - -rm -f ./$(DEPDIR)/strescape.Plo - -rm -f ./$(DEPDIR)/strutil.Plo - -rm -f ./$(DEPDIR)/strutil8bit.Plo - -rm -f ./$(DEPDIR)/strutilascii.Plo - -rm -f ./$(DEPDIR)/strutilutf8.Plo - -rm -f ./$(DEPDIR)/strverscmp.Plo - -rm -f ./$(DEPDIR)/tokenize.Plo - -rm -f ./$(DEPDIR)/xstrtol.Plo - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ - clean-generic clean-libtool clean-noinstLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/lib/strutil/filevercmp.c b/recipes/wip/files/mc/source/lib/strutil/filevercmp.c deleted file mode 100644 index 64d209c86e..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/filevercmp.c +++ /dev/null @@ -1,253 +0,0 @@ -/* - Copyright (C) 1995 Ian Jackson - Copyright (C) 2001 Anthony Towns - Copyright (C) 2008-2022 Free Software Foundation, Inc. - - This file is free software: you can redistribute it and/or modify - it under the terms of the GNU Lesser General Public License as - published by the Free Software Foundation, either version 3 of the - License, or (at your option) any later version. - - This file is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public License - along with this program. If not, see . - */ - -#include - -#include -#include - -#include "lib/strutil.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* Return the length of a prefix of @s that corresponds to the suffix defined by this extended - * regular expression in the C locale: (\.[A-Za-z~][A-Za-z0-9~]*)*$ - * - * Use the longest suffix matching this regular expression, except do not use all of s as a suffix - * if s is nonempty. - * - * If *len is -1, s is a string; set *lem to s's length. - * Otherwise, *len should be nonnegative, s is a char array, and *len does not change. - */ -static ssize_t -file_prefixlen (const char *s, ssize_t *len) -{ - size_t n = (size_t) (*len); /* SIZE_MAX if N == -1 */ - size_t i = 0; - size_t prefixlen = 0; - - while (TRUE) - { - gboolean done; - - if (*len < 0) - done = s[i] == '\0'; - else - done = i == n; - - if (done) - { - *len = (ssize_t) i; - return (ssize_t) prefixlen; - } - - i++; - prefixlen = i; - - while (i + 1 < n && s[i] == '.' && (g_ascii_isalpha (s[i + 1]) || s[i + 1] == '~')) - for (i += 2; i < n && (g_ascii_isalnum (s[i]) || s[i] == '~'); i++) - ; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Return a version sort comparison value for @s's byte at position @pos. - * - * @param s a string - * @param pos a position in @s - * @param len a length of @s. If @pos == @len, sort before all non-'~' bytes. - */ - -static int -order (const char *s, size_t pos, size_t len) -{ - unsigned char c; - - if (pos == len) - return (-1); - - c = s[pos]; - - if (g_ascii_isdigit (c)) - return 0; - if (g_ascii_isalpha (c)) - return c; - if (c == '~') - return (-2); - - g_assert (UCHAR_MAX <= (INT_MAX - 1 - 2) / 2); - - return (int) c + UCHAR_MAX + 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Slightly modified verrevcmp function from dpkg - * - * This implements the algorithm for comparison of version strings - * specified by Debian and now widely adopted. The detailed - * specification can be found in the Debian Policy Manual in the - * section on the 'Version' control field. This version of the code - * implements that from s5.6.12 of Debian Policy v3.8.0.1 - * https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Version - * - * @param s1 first char array to compare - * @param s1_len length of @s1 - * @param s2 second char array to compare - * @param s2_len length of @s2 - * - * @return an integer less than, equal to, or greater than zero, if @s1 is <, == or > than @s2. - */ -static int -verrevcmp (const char *s1, ssize_t s1_len, const char *s2, ssize_t s2_len) -{ - ssize_t s1_pos = 0; - ssize_t s2_pos = 0; - - while (s1_pos < s1_len || s2_pos < s2_len) - { - int first_diff = 0; - - while ((s1_pos < s1_len && !g_ascii_isdigit (s1[s1_pos])) - || (s2_pos < s2_len && !g_ascii_isdigit (s2[s2_pos]))) - { - int s1_c, s2_c; - - s1_c = order (s1, s1_pos, s1_len); - s2_c = order (s2, s2_pos, s2_len); - - if (s1_c != s2_c) - return (s1_c - s2_c); - - s1_pos++; - s2_pos++; - } - - while (s1_pos < s1_len && s1[s1_pos] == '0') - s1_pos++; - while (s2_pos < s2_len && s2[s2_pos] == '0') - s2_pos++; - - while (s1_pos < s1_len && s2_pos < s2_len - && g_ascii_isdigit (s1[s1_pos]) && g_ascii_isdigit (s2[s2_pos])) - { - if (first_diff == 0) - first_diff = s1[s1_pos] - s2[s2_pos]; - - s1_pos++; - s2_pos++; - } - - if (s1_pos < s1_len && g_ascii_isdigit (s1[s1_pos])) - return 1; - if (s2_pos < s2_len && g_ascii_isdigit (s2[s2_pos])) - return (-1); - if (first_diff != 0) - return first_diff; - } - - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* Compare version strings. - * - * @param a first string to compare - * @param alen length of @a or (-1) - * @param b second string to compare - * @param blen length of @b or (-1) - * - * @return an integer less than, equal to, or greater than zero, if @s1 is <, == or > than @s2. - */ -int -filenvercmp (const char *a, ssize_t alen, const char *b, ssize_t blen) -{ - gboolean aempty, bempty; - ssize_t aprefixlen, bprefixlen; - gboolean one_pass_only; - int result; - - /* Special case for empty versions. */ - aempty = alen < 0 ? a[0] == '\0' : alen == 0; - bempty = blen < 0 ? b[0] == '\0' : blen == 0; - - if (aempty) - return (bempty ? 0 : -1); - if (bempty) - return 1; - - /* Special cases for leading ".": "." sorts first, then "..", then other names with leading ".", - then other names. */ - if (a[0] == '.') - { - gboolean adot, bdot; - gboolean adotdot, bdotdot; - - if (b[0] != '.') - return (-1); - - adot = alen < 0 ? a[1] == '\0' : alen == 1; - bdot = blen < 0 ? b[1] == '\0' : blen == 1; - - if (adot) - return (bdot ? 0 : -1); - if (bdot) - return 1; - - adotdot = a[1] == '.' && (alen < 0 ? a[2] == '\0' : alen == 2); - bdotdot = b[1] == '.' && (blen < 0 ? b[2] == '\0' : blen == 2); - if (adotdot) - return (bdotdot ? 0 : -1); - if (bdotdot) - return 1; - } - else if (b[0] == '.') - return 1; - - /* Cut file suffixes. */ - aprefixlen = file_prefixlen (a, &alen); - bprefixlen = file_prefixlen (b, &blen); - - /* If both suffixes are empty, a second pass would return the same thing. */ - one_pass_only = aprefixlen == alen && bprefixlen == blen; - - result = verrevcmp (a, aprefixlen, b, bprefixlen); - - /* Return the initial result if nonzero, or if no second pass is needed. - Otherwise, restore the suffixes and try again. */ - return (result != 0 || one_pass_only ? result : verrevcmp (a, alen, b, blen)); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/strutil/replace.c b/recipes/wip/files/mc/source/lib/strutil/replace.c deleted file mode 100644 index b39bbfc095..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/replace.c +++ /dev/null @@ -1,103 +0,0 @@ -/* - Functions for replacing substrings in strings. - - Copyright (C) 2013-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2013; - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "lib/global.h" -#include "lib/strutil.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/** - * Replace all substrings 'needle' in string 'haystack' by 'replacement'. - * If the 'needle' in the 'haystack' is escaped by backslash, - * then this occurrence isn't be replaced. - * - * @param haystack string contains substrings for replacement. Cannot be NULL. - * @param needle string for search. Cannot be NULL. - * @param replacement string for replace. Cannot be NULL. - * @return newly allocated string with replaced substrings or NULL if @haystack is empty. - */ - -char * -str_replace_all (const char *haystack, const char *needle, const char *replacement) -{ - size_t needle_len, replacement_len; - GString *return_str = NULL; - char *needle_in_str; - - needle_len = strlen (needle); - replacement_len = strlen (replacement); - - while ((needle_in_str = strstr (haystack, needle)) != NULL) - { - if (return_str == NULL) - return_str = g_string_sized_new (32); - - if (str_is_char_escaped (haystack, needle_in_str)) - { - char *backslash = needle_in_str - 1; - - if (haystack != backslash) - g_string_append_len (return_str, haystack, backslash - haystack); - g_string_append_len (return_str, needle_in_str, needle_in_str - backslash); - haystack = needle_in_str + 1; - } - else - { - if (needle_in_str != haystack) - g_string_append_len (return_str, haystack, needle_in_str - haystack); - g_string_append_len (return_str, replacement, replacement_len); - haystack = needle_in_str + needle_len; - } - } - - if (*haystack != '\0') - { - if (return_str == NULL) - return strdup (haystack); - - g_string_append (return_str, haystack); - } - - return (return_str != NULL ? g_string_free (return_str, FALSE) : NULL); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/strutil/strescape.c b/recipes/wip/files/mc/source/lib/strutil/strescape.c deleted file mode 100644 index 97b165c8a5..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/strescape.c +++ /dev/null @@ -1,266 +0,0 @@ -/* - Functions for escaping and unescaping strings - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2009; - Patrick Winnertz , 2009 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include "lib/global.h" -#include "lib/strutil.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static const char ESCAPE_SHELL_CHARS[] = " !#$%()&{}[]`?|<>;*\\\"'"; -static const char ESCAPE_REGEX_CHARS[] = "^!#$%()&{}[]`?|<>;*+.\\"; -static const char ESCAPE_GLOB_CHARS[] = "$*\\?"; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -char * -str_escape (const char *src, gsize src_len, const char *escaped_chars, - gboolean escape_non_printable) -{ - GString *ret; - gsize curr_index; - /* do NOT break allocation semantics */ - if (src == NULL) - return NULL; - - if (*src == '\0') - return strdup (""); - - ret = g_string_new (""); - - if (src_len == (gsize) (-1)) - src_len = strlen (src); - - for (curr_index = 0; curr_index < src_len; curr_index++) - { - if (escape_non_printable) - { - switch (src[curr_index]) - { - case '\n': - g_string_append (ret, "\\n"); - continue; - case '\t': - g_string_append (ret, "\\t"); - continue; - case '\b': - g_string_append (ret, "\\b"); - continue; - case '\0': - g_string_append (ret, "\\0"); - continue; - default: - break; - } - } - - if (strchr (escaped_chars, (int) src[curr_index])) - g_string_append_c (ret, '\\'); - - g_string_append_c (ret, src[curr_index]); - } - return g_string_free (ret, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_unescape (const char *src, gsize src_len, const char *unescaped_chars, - gboolean unescape_non_printable) -{ - GString *ret; - gsize curr_index; - - if (src == NULL) - return NULL; - - if (*src == '\0') - return strdup (""); - - ret = g_string_sized_new (16); - - if (src_len == (gsize) (-1)) - src_len = strlen (src); - src_len--; - - for (curr_index = 0; curr_index < src_len; curr_index++) - { - if (src[curr_index] != '\\') - { - g_string_append_c (ret, src[curr_index]); - continue; - } - - curr_index++; - - if (unescaped_chars == ESCAPE_SHELL_CHARS && src[curr_index] == '$') - { - /* special case: \$ is used to disallow variable substitution */ - g_string_append_c (ret, '\\'); - } - else - { - if (unescape_non_printable) - { - switch (src[curr_index]) - { - case 'n': - g_string_append_c (ret, '\n'); - continue; - case 't': - g_string_append_c (ret, '\t'); - continue; - case 'b': - g_string_append_c (ret, '\b'); - continue; - case '0': - g_string_append_c (ret, '\0'); - continue; - default: - break; - } - } - - if (strchr (unescaped_chars, (int) src[curr_index]) == NULL) - g_string_append_c (ret, '\\'); - } - - g_string_append_c (ret, src[curr_index]); - } - g_string_append_c (ret, src[curr_index]); - - return g_string_free (ret, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * To be compatible with the general posix command lines we have to escape - * strings for the command line - * - * @param src string for escaping - * - * @return escaped string (which needs to be freed later) or NULL when NULL string is passed. - */ - -char * -str_shell_escape (const char *src) -{ - return str_escape (src, -1, ESCAPE_SHELL_CHARS, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_glob_escape (const char *src) -{ - return str_escape (src, -1, ESCAPE_GLOB_CHARS, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_regex_escape (const char *src) -{ - return str_escape (src, -1, ESCAPE_REGEX_CHARS, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Unescape paths or other strings for e.g the internal cd - * shell-unescape within a given buffer (writing to it!) - * - * @param text string for unescaping - * - * @return unescaped string (which needs to be freed) - */ - -char * -str_shell_unescape (const char *text) -{ - return str_unescape (text, -1, ESCAPE_SHELL_CHARS, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_glob_unescape (const char *text) -{ - return str_unescape (text, -1, ESCAPE_GLOB_CHARS, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ -char * -str_regex_unescape (const char *text) -{ - return str_unescape (text, -1, ESCAPE_REGEX_CHARS, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Check if char in pointer contain escape'd chars - * - * @param start string for checking - * @param current pointer to checked character - * - * @return TRUE if string contain escaped chars otherwise return FALSE - */ - -gboolean -str_is_char_escaped (const char *start, const char *current) -{ - int num_esc = 0; - - if (start == NULL || current == NULL || current <= start) - return FALSE; - - current--; - while (current >= start && *current == '\\') - { - num_esc++; - current--; - } - return (gboolean) num_esc % 2; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/strutil/strutil.c b/recipes/wip/files/mc/source/lib/strutil/strutil.c deleted file mode 100644 index a86598ce8c..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/strutil.c +++ /dev/null @@ -1,1017 +0,0 @@ -/* - Common strings utilities - - Copyright (C) 2007-2025 - Free Software Foundation, Inc. - - Written by: - Rostislav Benes, 2007 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include -#include -#include -#include - -#include "lib/global.h" -#include "lib/util.h" /* MC_PTR_FREE */ -#include "lib/strutil.h" - -/*** global variables ****************************************************************************/ - -GIConv str_cnv_to_term; -GIConv str_cnv_from_term; -GIConv str_cnv_not_convert = INVALID_CONV; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* names, that are used for utf-8 */ -static const char *const str_utf8_encodings[] = { - "utf-8", - "utf8", - NULL -}; - -/* standard 8bit encodings, no wide or multibytes characters */ -static const char *const str_8bit_encodings[] = { - "cp-1251", - "cp1251", - /* solaris */ - "ansi-1251", - "ansi1251", - "cp-1250", - "cp1250", - "cp-866", - "cp866", - /* glibc */ - "ibm-866", - "ibm866", - "cp-850", - "cp850", - "cp-852", - "cp852", - "iso-8859", - "iso8859", - "koi8", - NULL -}; - -/* terminal encoding */ -static char *codeset = NULL; -static char *term_encoding = NULL; -/* function for encoding specific operations */ -static struct str_class used_class; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* if enc is same encoding like on terminal */ -static int -str_test_not_convert (const char *enc) -{ - return g_ascii_strcasecmp (enc, codeset) == 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static estr_t -_str_convert (GIConv coder, const char *string, int size, GString *buffer) -{ - estr_t state = ESTR_SUCCESS; - gssize left; - gsize bytes_read = 0; - gsize bytes_written = 0; - - errno = 0; /* FIXME: is it really needed? */ - - if (coder == INVALID_CONV) - return ESTR_FAILURE; - - if (string == NULL || buffer == NULL) - return ESTR_FAILURE; - - /* - if (! used_class.is_valid_string (string)) - { - return ESTR_FAILURE; - } - */ - if (size < 0) - size = strlen (string); - else - { - left = strlen (string); - if (left < size) - size = left; - } - - left = size; - g_iconv (coder, NULL, NULL, NULL, NULL); - - while (left != 0) - { - gchar *tmp_buff; - GError *mcerror = NULL; - - tmp_buff = g_convert_with_iconv ((const gchar *) string, - left, coder, &bytes_read, &bytes_written, &mcerror); - if (mcerror != NULL) - { - int code = mcerror->code; - - g_error_free (mcerror); - mcerror = NULL; - - switch (code) - { - case G_CONVERT_ERROR_NO_CONVERSION: - /* Conversion between the requested character sets is not supported. */ - g_free (tmp_buff); - mc_g_string_append_c_len (buffer, '?', strlen (string)); - return ESTR_FAILURE; - - case G_CONVERT_ERROR_ILLEGAL_SEQUENCE: - /* Invalid byte sequence in conversion input. */ - if ((tmp_buff == NULL) && (bytes_read != 0)) - /* recode valid byte sequence */ - tmp_buff = g_convert_with_iconv ((const gchar *) string, - bytes_read, coder, NULL, NULL, NULL); - - if (tmp_buff != NULL) - { - g_string_append (buffer, tmp_buff); - g_free (tmp_buff); - } - - if ((int) bytes_read >= left) - return ESTR_PROBLEM; - - string += bytes_read + 1; - size -= (bytes_read + 1); - left -= (bytes_read + 1); - g_string_append_c (buffer, *(string - 1)); - state = ESTR_PROBLEM; - break; - - case G_CONVERT_ERROR_PARTIAL_INPUT: - /* Partial character sequence at end of input. */ - g_string_append (buffer, tmp_buff); - g_free (tmp_buff); - if ((int) bytes_read < left) - mc_g_string_append_c_len (buffer, '?', left - bytes_read); - return ESTR_PROBLEM; - - case G_CONVERT_ERROR_BAD_URI: /* Don't know how handle this error :( */ - case G_CONVERT_ERROR_NOT_ABSOLUTE_PATH: /* Don't know how handle this error :( */ - case G_CONVERT_ERROR_FAILED: /* Conversion failed for some reason. */ - default: - g_free (tmp_buff); - return ESTR_FAILURE; - } - } - else if (tmp_buff == NULL) - { - g_string_append (buffer, string); - return ESTR_PROBLEM; - } - else if (*tmp_buff == '\0') - { - g_free (tmp_buff); - g_string_append (buffer, string); - return state; - } - else - { - g_string_append (buffer, tmp_buff); - g_free (tmp_buff); - string += bytes_read; - left -= bytes_read; - } - } - - return state; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_test_encoding_class (const char *encoding, const char *const *table) -{ - int result = 0; - - if (encoding != NULL) - { - int t; - - for (t = 0; table[t] != NULL; t++) - if (g_ascii_strncasecmp (encoding, table[t], strlen (table[t])) == 0) - result++; - } - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_choose_str_functions (void) -{ - if (str_test_encoding_class (codeset, str_utf8_encodings)) - used_class = str_utf8_init (); - else if (str_test_encoding_class (codeset, str_8bit_encodings)) - used_class = str_8bit_init (); - else - used_class = str_ascii_init (); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -GIConv -str_crt_conv_to (const char *to_enc) -{ - return (!str_test_not_convert (to_enc)) ? g_iconv_open (to_enc, codeset) : str_cnv_not_convert; -} - -/* --------------------------------------------------------------------------------------------- */ - -GIConv -str_crt_conv_from (const char *from_enc) -{ - return (!str_test_not_convert (from_enc)) - ? g_iconv_open (codeset, from_enc) : str_cnv_not_convert; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_close_conv (GIConv conv) -{ - if (conv != INVALID_CONV && conv != str_cnv_not_convert) - g_iconv_close (conv); -} - -/* --------------------------------------------------------------------------------------------- */ - -estr_t -str_convert (GIConv coder, const char *string, GString *buffer) -{ - return _str_convert (coder, string, -1, buffer); -} - -/* --------------------------------------------------------------------------------------------- */ - -estr_t -str_nconvert (GIConv coder, const char *string, int size, GString *buffer) -{ - return _str_convert (coder, string, size, buffer); -} - -/* --------------------------------------------------------------------------------------------- */ - -gchar * -str_conv_gerror_message (GError *mcerror, const char *def_msg) -{ - return used_class.conv_gerror_message (mcerror, def_msg); -} - -/* --------------------------------------------------------------------------------------------- */ - -estr_t -str_vfs_convert_from (GIConv coder, const char *string, GString *buffer) -{ - estr_t result = ESTR_SUCCESS; - - if (coder == str_cnv_not_convert) - g_string_append (buffer, string != NULL ? string : ""); - else - result = _str_convert (coder, string, -1, buffer); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -estr_t -str_vfs_convert_to (GIConv coder, const char *string, int size, GString *buffer) -{ - return used_class.vfs_convert_to (coder, string, size, buffer); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_printf (GString *buffer, const char *format, ...) -{ - va_list ap; - va_start (ap, format); - - g_string_append_vprintf (buffer, format, ap); - va_end (ap); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_insert_replace_char (GString *buffer) -{ - used_class.insert_replace_char (buffer); -} - -/* --------------------------------------------------------------------------------------------- */ - -estr_t -str_translate_char (GIConv conv, const char *keys, size_t ch_size, char *output, size_t out_size) -{ - size_t left; - size_t cnv; - - g_iconv (conv, NULL, NULL, NULL, NULL); - - left = (ch_size == (size_t) (-1)) ? strlen (keys) : ch_size; - - cnv = g_iconv (conv, (gchar **) & keys, &left, &output, &out_size); - if (cnv == (size_t) (-1)) - return (errno == EINVAL) ? ESTR_PROBLEM : ESTR_FAILURE; - - output[0] = '\0'; - return ESTR_SUCCESS; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_detect_termencoding (void) -{ - if (term_encoding == NULL) - { - /* On Linux, nl_langinfo (CODESET) returns upper case UTF-8 whether the LANG is set - to utf-8 or UTF-8. - On Mac OS X, it returns the same case as the LANG input. - So let transform result of nl_langinfo (CODESET) to upper case unconditionally. */ - term_encoding = g_ascii_strup (nl_langinfo (CODESET), -1); - } - - return term_encoding; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -str_isutf8 (const char *codeset_name) -{ - return (str_test_encoding_class (codeset_name, str_utf8_encodings) != 0); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_init_strings (const char *termenc) -{ - codeset = termenc != NULL ? g_ascii_strup (termenc, -1) : g_strdup (str_detect_termencoding ()); - - str_cnv_not_convert = g_iconv_open (codeset, codeset); - if (str_cnv_not_convert == INVALID_CONV) - { - if (termenc != NULL) - { - g_free (codeset); - codeset = g_strdup (str_detect_termencoding ()); - str_cnv_not_convert = g_iconv_open (codeset, codeset); - } - - if (str_cnv_not_convert == INVALID_CONV) - { - g_free (codeset); - codeset = g_strdup (DEFAULT_CHARSET); - str_cnv_not_convert = g_iconv_open (codeset, codeset); - } - } - - str_cnv_to_term = str_cnv_not_convert; - str_cnv_from_term = str_cnv_not_convert; - - str_choose_str_functions (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_uninit_strings (void) -{ - if (str_cnv_not_convert != INVALID_CONV) - g_iconv_close (str_cnv_not_convert); - /* NULL-ize pointers to avoid double free in unit tests */ - MC_PTR_FREE (term_encoding); - MC_PTR_FREE (codeset); -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_term_form (const char *text) -{ - return used_class.term_form (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_fit_to_term (const char *text, int width, align_crt_t just_mode) -{ - return used_class.fit_to_term (text, width, just_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_term_trim (const char *text, int width) -{ - return used_class.term_trim (text, width); -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_term_substring (const char *text, int start, int width) -{ - return used_class.term_substring (text, start, width); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_get_next_char (char *text) -{ - - used_class.cnext_char ((const char **) &text); - return text; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_cget_next_char (const char *text) -{ - used_class.cnext_char (&text); - return text; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_next_char (char **text) -{ - used_class.cnext_char ((const char **) text); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_cnext_char (const char **text) -{ - used_class.cnext_char (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_get_prev_char (char *text) -{ - used_class.cprev_char ((const char **) &text); - return text; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_cget_prev_char (const char *text) -{ - used_class.cprev_char (&text); - return text; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_prev_char (char **text) -{ - used_class.cprev_char ((const char **) text); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_cprev_char (const char **text) -{ - used_class.cprev_char (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_get_next_char_safe (char *text) -{ - used_class.cnext_char_safe ((const char **) &text); - return text; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_cget_next_char_safe (const char *text) -{ - used_class.cnext_char_safe (&text); - return text; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_next_char_safe (char **text) -{ - used_class.cnext_char_safe ((const char **) text); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_cnext_char_safe (const char **text) -{ - used_class.cnext_char_safe (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_get_prev_char_safe (char *text) -{ - used_class.cprev_char_safe ((const char **) &text); - return text; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_cget_prev_char_safe (const char *text) -{ - used_class.cprev_char_safe (&text); - return text; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_prev_char_safe (char **text) -{ - used_class.cprev_char_safe ((const char **) text); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_cprev_char_safe (const char **text) -{ - used_class.cprev_char_safe (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_next_noncomb_char (char **text) -{ - return used_class.cnext_noncomb_char ((const char **) text); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_cnext_noncomb_char (const char **text) -{ - return used_class.cnext_noncomb_char (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_prev_noncomb_char (char **text, const char *begin) -{ - return used_class.cprev_noncomb_char ((const char **) text, begin); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_cprev_noncomb_char (const char **text, const char *begin) -{ - return used_class.cprev_noncomb_char (text, begin); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_is_valid_char (const char *ch, size_t size) -{ - return used_class.is_valid_char (ch, size); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_term_width1 (const char *text) -{ - return used_class.term_width1 (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_term_width2 (const char *text, size_t length) -{ - return used_class.term_width2 (text, length); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_term_char_width (const char *text) -{ - return used_class.term_char_width (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_offset_to_pos (const char *text, size_t length) -{ - return used_class.offset_to_pos (text, length); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_length (const char *text) -{ - return used_class.length (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_length_char (const char *text) -{ - return str_cget_next_char_safe (text) - text; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_length2 (const char *text, int size) -{ - return used_class.length2 (text, size); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_length_noncomb (const char *text) -{ - return used_class.length_noncomb (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_column_to_pos (const char *text, size_t pos) -{ - return used_class.column_to_pos (text, pos); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -str_isspace (const char *ch) -{ - return used_class.char_isspace (ch); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -str_ispunct (const char *ch) -{ - return used_class.char_ispunct (ch); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -str_isalnum (const char *ch) -{ - return used_class.char_isalnum (ch); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -str_isdigit (const char *ch) -{ - return used_class.char_isdigit (ch); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -str_toupper (const char *ch, char **out, size_t *remain) -{ - return used_class.char_toupper (ch, out, remain); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -str_tolower (const char *ch, char **out, size_t *remain) -{ - return used_class.char_tolower (ch, out, remain); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -str_isprint (const char *ch) -{ - return used_class.char_isprint (ch); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -str_iscombiningmark (const char *ch) -{ - return used_class.char_iscombiningmark (ch); -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_trunc (const char *text, int width) -{ - return used_class.trunc (text, width); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_create_search_needle (const char *needle, gboolean case_sen) -{ - return used_class.create_search_needle (needle, case_sen); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_release_search_needle (char *needle, gboolean case_sen) -{ - used_class.release_search_needle (needle, case_sen); -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_search_first (const char *text, const char *search, gboolean case_sen) -{ - return used_class.search_first (text, search, case_sen); -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -str_search_last (const char *text, const char *search, gboolean case_sen) -{ - return used_class.search_last (text, search, case_sen); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -str_is_valid_string (const char *text) -{ - return used_class.is_valid_string (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_compare (const char *t1, const char *t2) -{ - return used_class.compare (t1, t2); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_ncompare (const char *t1, const char *t2) -{ - return used_class.ncompare (t1, t2); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_casecmp (const char *t1, const char *t2) -{ - return used_class.casecmp (t1, t2); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_ncasecmp (const char *t1, const char *t2) -{ - return used_class.ncasecmp (t1, t2); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_prefix (const char *text, const char *prefix) -{ - return used_class.prefix (text, prefix); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_caseprefix (const char *text, const char *prefix) -{ - return used_class.caseprefix (text, prefix); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_fix_string (char *text) -{ - used_class.fix_string (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_create_key (const char *text, gboolean case_sen) -{ - return used_class.create_key (text, case_sen); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -str_create_key_for_filename (const char *text, gboolean case_sen) -{ - return used_class.create_key_for_filename (text, case_sen); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -str_key_collate (const char *t1, const char *t2, gboolean case_sen) -{ - return used_class.key_collate (t1, t2, case_sen); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_release_key (char *key, gboolean case_sen) -{ - used_class.release_key (key, case_sen); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -str_msg_term_size (const char *text, int *lines, int *columns) -{ - char *p, *tmp; - char *q; - char c = '\0'; - - *lines = 1; - *columns = 0; - - tmp = g_strdup (text); - p = tmp; - - while (TRUE) - { - int width; - - q = strchr (p, '\n'); - if (q != NULL) - { - c = q[0]; - q[0] = '\0'; - } - - width = str_term_width1 (p); - if (width > *columns) - *columns = width; - - if (q == NULL) - break; - - q[0] = c; - p = q + 1; - (*lines)++; - } - - g_free (tmp); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -strrstr_skip_count (const char *haystack, const char *needle, size_t skip_count) -{ - char *semi; - ssize_t len; - - len = strlen (haystack); - - do - { - semi = g_strrstr_len (haystack, len, needle); - if (semi == NULL) - return NULL; - len = semi - haystack - 1; - } - while (skip_count-- != 0); - - return semi; -} - -/* --------------------------------------------------------------------------------------------- */ -/* Interpret string as a non-negative decimal integer, optionally multiplied by various values. - * - * @param str input value - * @param invalid set to TRUE if "str" does not represent a number in this format - * - * @return non-negative integer representation of "str", 0 in case of error. - */ - -uintmax_t -parse_integer (const char *str, gboolean *invalid) -{ - uintmax_t n; - char *suffix; - strtol_error_t e; - - e = xstrtoumax (str, &suffix, 10, &n, "bcEGkKMPTwYZ0"); - if (e == LONGINT_INVALID_SUFFIX_CHAR && *suffix == 'x') - { - uintmax_t multiplier; - - multiplier = parse_integer (suffix + 1, invalid); - if (multiplier != 0 && n * multiplier / multiplier != n) - { - *invalid = TRUE; - return 0; - } - - n *= multiplier; - } - else if (e != LONGINT_OK) - { - *invalid = TRUE; - n = 0; - } - - return n; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/strutil/strutil8bit.c b/recipes/wip/files/mc/source/lib/strutil/strutil8bit.c deleted file mode 100644 index 285c2cd4d8..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/strutil8bit.c +++ /dev/null @@ -1,876 +0,0 @@ -/* - 8bit strings utilities - - Copyright (C) 2007-2025 - Free Software Foundation, Inc. - - Written by: - Rostislav Benes, 2007 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include -#include - -#include "lib/global.h" -#include "lib/strutil.h" - -/* Functions for singlebyte encodings, all characters have width 1 - * using standard system functions. - * There are only small differences between functions in strutil8bit.c - * and strutilascii.c. - */ - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/* - * Inlines to equalize 'char' signedness for single 'char' encodings. - * Instead of writing - * isspace ((unsigned char) c); - * you can write - * char_isspace (c); - */ -#define DECLARE_CTYPE_WRAPPER(func_name) \ -static inline int char_##func_name(char c) \ -{ \ - return func_name((int)(unsigned char)c); \ -} - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static const char replch = '?'; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* *INDENT-OFF* */ -DECLARE_CTYPE_WRAPPER (isalnum) -DECLARE_CTYPE_WRAPPER (isdigit) -DECLARE_CTYPE_WRAPPER (isprint) -DECLARE_CTYPE_WRAPPER (ispunct) -DECLARE_CTYPE_WRAPPER (isspace) -DECLARE_CTYPE_WRAPPER (toupper) -DECLARE_CTYPE_WRAPPER (tolower) -/* *INDENT-ON* */ - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_8bit_insert_replace_char (GString *buffer) -{ - g_string_append_c (buffer, replch); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_8bit_is_valid_string (const char *text) -{ - (void) text; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_is_valid_char (const char *ch, size_t size) -{ - (void) ch; - (void) size; - return 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_8bit_cnext_char (const char **text) -{ - (*text)++; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_8bit_cprev_char (const char **text) -{ - (*text)--; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_cnext_noncomb_char (const char **text) -{ - if (*text[0] == '\0') - return 0; - - (*text)++; - return 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_cprev_noncomb_char (const char **text, const char *begin) -{ - if ((*text) == begin) - return 0; - - (*text)--; - return 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_8bit_isspace (const char *text) -{ - return char_isspace (text[0]) != 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_8bit_ispunct (const char *text) -{ - return char_ispunct (text[0]) != 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_8bit_isalnum (const char *text) -{ - return char_isalnum (text[0]) != 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_8bit_isdigit (const char *text) -{ - return char_isdigit (text[0]) != 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_8bit_isprint (const char *text) -{ - return char_isprint (text[0]) != 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_8bit_iscombiningmark (const char *text) -{ - (void) text; - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_toupper (const char *text, char **out, size_t *remain) -{ - if (*remain <= 1) - return FALSE; - - (*out)[0] = char_toupper (text[0]); - (*out)++; - (*remain)--; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_8bit_tolower (const char *text, char **out, size_t *remain) -{ - if (*remain <= 1) - return FALSE; - - (*out)[0] = char_tolower (text[0]); - (*out)++; - (*remain)--; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_length (const char *text) -{ - return strlen (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_length2 (const char *text, int size) -{ - size_t length; - - length = strlen (text); - - return (size >= 0) ? MIN (length, (size_t) size) : length; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gchar * -str_8bit_conv_gerror_message (GError *mcerror, const char *def_msg) -{ - GIConv conv; - gchar *ret; - - /* glib messages are in UTF-8 charset */ - conv = str_crt_conv_from ("UTF-8"); - - if (conv == INVALID_CONV) - ret = g_strdup (def_msg != NULL ? def_msg : ""); - else - { - GString *buf; - - buf = g_string_new (""); - - if (str_convert (conv, mcerror->message, buf) != ESTR_FAILURE) - ret = g_string_free (buf, FALSE); - else - { - ret = g_strdup (def_msg != NULL ? def_msg : ""); - g_string_free (buf, TRUE); - } - - str_close_conv (conv); - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -static estr_t -str_8bit_vfs_convert_to (GIConv coder, const char *string, int size, GString *buffer) -{ - estr_t result = ESTR_SUCCESS; - - if (coder == str_cnv_not_convert) - g_string_append_len (buffer, string, size); - else - result = str_nconvert (coder, string, size, buffer); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_8bit_term_form (const char *text) -{ - static char result[BUF_MEDIUM]; - char *actual; - size_t remain; - size_t length; - size_t pos = 0; - - actual = result; - remain = sizeof (result); - length = strlen (text); - - for (; pos < length && remain > 1; pos++, actual++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - - actual[0] = '\0'; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_8bit_fit_to_term (const char *text, int width, align_crt_t just_mode) -{ - static char result[BUF_MEDIUM]; - char *actual; - size_t remain; - int ident = 0; - size_t length; - size_t pos = 0; - - length = strlen (text); - actual = result; - remain = sizeof (result); - - if ((int) length <= width) - { - switch (HIDE_FIT (just_mode)) - { - case J_CENTER_LEFT: - case J_CENTER: - ident = (width - length) / 2; - break; - case J_RIGHT: - ident = width - length; - break; - default: - break; - } - - if ((int) remain <= ident) - goto finally; - memset (actual, ' ', ident); - actual += ident; - remain -= ident; - - for (; pos < length && remain > 1; pos++, actual++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - - if (width - length - ident > 0) - { - if (remain <= width - length - ident) - goto finally; - memset (actual, ' ', width - length - ident); - actual += width - length - ident; - } - } - else if (IS_FIT (just_mode)) - { - for (; pos + 1 <= (gsize) width / 2 && remain > 1; actual++, pos++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - - if (remain <= 1) - goto finally; - actual[0] = '~'; - actual++; - remain--; - - pos += length - width + 1; - for (; pos < length && remain > 1; pos++, actual++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - } - else - { - switch (HIDE_FIT (just_mode)) - { - case J_CENTER: - ident = (length - width) / 2; - break; - case J_RIGHT: - ident = length - width; - break; - default: - break; - } - - pos += ident; - for (; pos < (gsize) (ident + width) && remain > 1; pos++, actual++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - } - - finally: - if (actual >= result + sizeof (result)) - actual = result + sizeof (result) - 1; - actual[0] = '\0'; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_8bit_term_trim (const char *text, int width) -{ - static char result[BUF_MEDIUM]; - size_t remain; - char *actual; - size_t length; - - length = strlen (text); - actual = result; - remain = sizeof (result); - - if (width > 0) - { - size_t pos; - - if (width >= (int) length) - { - for (pos = 0; pos < length && remain > 1; pos++, actual++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - } - else if (width <= 3) - { - memset (actual, '.', width); - actual += width; - } - else - { - memset (actual, '.', 3); - actual += 3; - remain -= 3; - - for (pos = length - width + 3; pos < length && remain > 1; pos++, actual++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - } - } - - actual[0] = '\0'; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_term_width2 (const char *text, size_t length) -{ - size_t text_len; - - text_len = strlen (text); - - return (length != (size_t) (-1)) ? MIN (text_len, length) : text_len; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_term_width1 (const char *text) -{ - return str_8bit_term_width2 (text, (size_t) (-1)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_term_char_width (const char *text) -{ - (void) text; - return 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_8bit_term_substring (const char *text, int start, int width) -{ - static char result[BUF_MEDIUM]; - size_t remain; - char *actual; - size_t length; - - actual = result; - remain = sizeof (result); - length = strlen (text); - - if (start < (int) length) - { - size_t pos; - - for (pos = start; pos < length && width > 0 && remain > 1; - pos++, width--, actual++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - } - - for (; width > 0 && remain > 1; actual++, remain--, width--) - actual[0] = ' '; - - actual[0] = '\0'; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_8bit_trunc (const char *text, int width) -{ - static char result[MC_MAXPATHLEN]; - int remain; - char *actual; - size_t pos = 0; - size_t length; - - actual = result; - remain = sizeof (result); - length = strlen (text); - - if ((int) length > width) - { - for (; pos + 1 <= (gsize) width / 2 && remain > 1; actual++, pos++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - - if (remain <= 1) - goto finally; - actual[0] = '~'; - actual++; - remain--; - - pos += length - width + 1; - for (; pos < length && remain > 1; pos++, actual++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - } - else - { - for (; pos < length && remain > 1; pos++, actual++, remain--) - actual[0] = char_isprint (text[pos]) ? text[pos] : '.'; - } - - finally: - actual[0] = '\0'; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_offset_to_pos (const char *text, size_t length) -{ - (void) text; - return (int) length; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_column_to_pos (const char *text, size_t pos) -{ - (void) text; - return (int) pos; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -str_8bit_create_search_needle (const char *needle, gboolean case_sen) -{ - (void) case_sen; - return (char *) needle; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_8bit_release_search_needle (char *needle, gboolean case_sen) -{ - (void) case_sen; - (void) needle; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -str_8bit_strdown (const char *str) -{ - char *rets, *p; - - if (str == NULL) - return NULL; - - rets = g_strdup (str); - - for (p = rets; *p != '\0'; p++) - *p = char_tolower (*p); - - return rets; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_8bit_search_first (const char *text, const char *search, gboolean case_sen) -{ - char *fold_text; - char *fold_search; - const char *match; - - fold_text = case_sen ? (char *) text : str_8bit_strdown (text); - fold_search = case_sen ? (char *) search : str_8bit_strdown (search); - - match = g_strstr_len (fold_text, -1, fold_search); - if (match != NULL) - { - size_t offset; - - offset = match - fold_text; - match = text + offset; - } - - if (!case_sen) - { - g_free (fold_text); - g_free (fold_search); - } - - return match; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_8bit_search_last (const char *text, const char *search, gboolean case_sen) -{ - char *fold_text; - char *fold_search; - const char *match; - - fold_text = case_sen ? (char *) text : str_8bit_strdown (text); - fold_search = case_sen ? (char *) search : str_8bit_strdown (search); - - match = g_strrstr_len (fold_text, -1, fold_search); - if (match != NULL) - { - size_t offset; - - offset = match - fold_text; - match = text + offset; - } - - if (!case_sen) - { - g_free (fold_text); - g_free (fold_search); - } - - return match; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_compare (const char *t1, const char *t2) -{ - return strcmp (t1, t2); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_ncompare (const char *t1, const char *t2) -{ - size_t l1, l2; - - l1 = strlen (t1); - l2 = strlen (t2); - - return strncmp (t1, t2, MIN (l1, l2)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_casecmp (const char *s1, const char *s2) -{ - /* code from GLib */ - -#ifdef HAVE_STRCASECMP - g_return_val_if_fail (s1 != NULL, 0); - g_return_val_if_fail (s2 != NULL, 0); - - return strcasecmp (s1, s2); -#else - - g_return_val_if_fail (s1 != NULL, 0); - g_return_val_if_fail (s2 != NULL, 0); - - for (; *s1 != '\0' && *s2 != '\0'; s1++, s2++) - { - gint c1, c2; - - /* According to A. Cox, some platforms have islower's that - * don't work right on non-uppercase - */ - c1 = isupper ((guchar) * s1) ? tolower ((guchar) * s1) : *s1; - c2 = isupper ((guchar) * s2) ? tolower ((guchar) * s2) : *s2; - if (c1 != c2) - return (c1 - c2); - } - - return (((gint) (guchar) * s1) - ((gint) (guchar) * s2)); -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_ncasecmp (const char *s1, const char *s2) -{ - size_t l1, l2; - size_t n; - - g_return_val_if_fail (s1 != NULL, 0); - g_return_val_if_fail (s2 != NULL, 0); - - l1 = strlen (s1); - l2 = strlen (s2); - n = MIN (l1, l2); - - /* code from GLib */ - -#ifdef HAVE_STRNCASECMP - return strncasecmp (s1, s2, n); -#else - - for (; *s1 != '\0' && *s2 != '\0'; s1++, s2++) - { - gint c1, c2; - - n--; - /* According to A. Cox, some platforms have islower's that - * don't work right on non-uppercase - */ - c1 = isupper ((guchar) * s1) ? tolower ((guchar) * s1) : *s1; - c2 = isupper ((guchar) * s2) ? tolower ((guchar) * s2) : *s2; - if (c1 != c2) - return (c1 - c2); - } - - if (n == 0) - return 0; - - return (((gint) (guchar) * s1) - ((gint) (guchar) * s2)); - -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_prefix (const char *text, const char *prefix) -{ - int result; - - for (result = 0; text[result] != '\0' && prefix[result] != '\0' - && text[result] == prefix[result]; result++); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_caseprefix (const char *text, const char *prefix) -{ - int result; - - for (result = 0; text[result] != '\0' && prefix[result] != '\0' - && char_toupper (text[result]) == char_toupper (prefix[result]); result++); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_8bit_fix_string (char *text) -{ - (void) text; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -str_8bit_create_key (const char *text, gboolean case_sen) -{ - return case_sen ? (char *) text : str_8bit_strdown (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_8bit_key_collate (const char *t1, const char *t2, gboolean case_sen) -{ - return case_sen ? strcmp (t1, t2) : strcoll (t1, t2); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_8bit_release_key (char *key, gboolean case_sen) -{ - if (!case_sen) - g_free (key); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -struct str_class -str_8bit_init (void) -{ - struct str_class result; - - result.conv_gerror_message = str_8bit_conv_gerror_message; - result.vfs_convert_to = str_8bit_vfs_convert_to; - result.insert_replace_char = str_8bit_insert_replace_char; - result.is_valid_string = str_8bit_is_valid_string; - result.is_valid_char = str_8bit_is_valid_char; - result.cnext_char = str_8bit_cnext_char; - result.cprev_char = str_8bit_cprev_char; - result.cnext_char_safe = str_8bit_cnext_char; - result.cprev_char_safe = str_8bit_cprev_char; - result.cnext_noncomb_char = str_8bit_cnext_noncomb_char; - result.cprev_noncomb_char = str_8bit_cprev_noncomb_char; - result.char_isspace = str_8bit_isspace; - result.char_ispunct = str_8bit_ispunct; - result.char_isalnum = str_8bit_isalnum; - result.char_isdigit = str_8bit_isdigit; - result.char_isprint = str_8bit_isprint; - result.char_iscombiningmark = str_8bit_iscombiningmark; - result.char_toupper = str_8bit_toupper; - result.char_tolower = str_8bit_tolower; - result.length = str_8bit_length; - result.length2 = str_8bit_length2; - result.length_noncomb = str_8bit_length; - result.fix_string = str_8bit_fix_string; - result.term_form = str_8bit_term_form; - result.fit_to_term = str_8bit_fit_to_term; - result.term_trim = str_8bit_term_trim; - result.term_width2 = str_8bit_term_width2; - result.term_width1 = str_8bit_term_width1; - result.term_char_width = str_8bit_term_char_width; - result.term_substring = str_8bit_term_substring; - result.trunc = str_8bit_trunc; - result.offset_to_pos = str_8bit_offset_to_pos; - result.column_to_pos = str_8bit_column_to_pos; - result.create_search_needle = str_8bit_create_search_needle; - result.release_search_needle = str_8bit_release_search_needle; - result.search_first = str_8bit_search_first; - result.search_last = str_8bit_search_last; - result.compare = str_8bit_compare; - result.ncompare = str_8bit_ncompare; - result.casecmp = str_8bit_casecmp; - result.ncasecmp = str_8bit_ncasecmp; - result.prefix = str_8bit_prefix; - result.caseprefix = str_8bit_caseprefix; - result.create_key = str_8bit_create_key; - result.create_key_for_filename = str_8bit_create_key; - result.key_collate = str_8bit_key_collate; - result.release_key = str_8bit_release_key; - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/strutil/strutilascii.c b/recipes/wip/files/mc/source/lib/strutil/strutilascii.c deleted file mode 100644 index ccc8ade6fb..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/strutilascii.c +++ /dev/null @@ -1,803 +0,0 @@ -/* - ASCII strings utilities - - Copyright (C) 2007-2025 - Free Software Foundation, Inc. - - Written by: - Rostislav Benes, 2007 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include -#include - -#include "lib/global.h" -#include "lib/strutil.h" - -/* using g_ascii function from glib - * on terminal are showed only ascii characters (lower than 0x80) - */ - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static const char replch = '?'; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -str_ascii_insert_replace_char (GString *buffer) -{ - g_string_append_c (buffer, replch); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_ascii_is_valid_string (const char *text) -{ - (void) text; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_is_valid_char (const char *ch, size_t size) -{ - (void) ch; - (void) size; - return 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_ascii_cnext_char (const char **text) -{ - (*text)++; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_ascii_cprev_char (const char **text) -{ - (*text)--; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_cnext_noncomb_char (const char **text) -{ - if (*text[0] == '\0') - return 0; - - (*text)++; - return 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_cprev_noncomb_char (const char **text, const char *begin) -{ - if ((*text) == begin) - return 0; - - (*text)--; - return 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_ascii_isspace (const char *text) -{ - return g_ascii_isspace ((gchar) text[0]); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_ascii_ispunct (const char *text) -{ - return g_ascii_ispunct ((gchar) text[0]); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_ascii_isalnum (const char *text) -{ - return g_ascii_isalnum ((gchar) text[0]); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_ascii_isdigit (const char *text) -{ - return g_ascii_isdigit ((gchar) text[0]); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_ascii_isprint (const char *text) -{ - return g_ascii_isprint ((gchar) text[0]); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_ascii_iscombiningmark (const char *text) -{ - (void) text; - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_toupper (const char *text, char **out, size_t *remain) -{ - if (*remain <= 1) - return FALSE; - - (*out)[0] = (char) g_ascii_toupper ((gchar) text[0]); - (*out)++; - (*remain)--; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_ascii_tolower (const char *text, char **out, size_t *remain) -{ - if (*remain <= 1) - return FALSE; - - (*out)[0] = (char) g_ascii_tolower ((gchar) text[0]); - (*out)++; - (*remain)--; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_length (const char *text) -{ - return strlen (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_length2 (const char *text, int size) -{ - size_t length; - - length = strlen (text); - - return (size >= 0) ? MIN (length, (size_t) size) : length; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gchar * -str_ascii_conv_gerror_message (GError *mcerror, const char *def_msg) -{ - /* the same as str_utf8_conv_gerror_message() */ - if (mcerror != NULL) - return g_strdup (mcerror->message); - - return g_strdup (def_msg != NULL ? def_msg : ""); -} - -/* --------------------------------------------------------------------------------------------- */ - -static estr_t -str_ascii_vfs_convert_to (GIConv coder, const char *string, int size, GString *buffer) -{ - (void) coder; - g_string_append_len (buffer, string, size); - return ESTR_SUCCESS; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_ascii_term_form (const char *text) -{ - static char result[BUF_MEDIUM]; - char *actual; - size_t remain; - size_t length; - size_t pos = 0; - - actual = result; - remain = sizeof (result); - length = strlen (text); - - /* go throw all characters and check, if they are ascii and printable */ - for (; pos < length && remain > 1; pos++, actual++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - - actual[0] = '\0'; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_ascii_fit_to_term (const char *text, int width, align_crt_t just_mode) -{ - static char result[BUF_MEDIUM]; - char *actual; - size_t remain; - int ident = 0; - size_t length; - size_t pos = 0; - - length = strlen (text); - actual = result; - remain = sizeof (result); - - if ((int) length <= width) - { - switch (HIDE_FIT (just_mode)) - { - case J_CENTER_LEFT: - case J_CENTER: - ident = (width - length) / 2; - break; - case J_RIGHT: - ident = width - length; - break; - default: - break; - } - - /* add space before text */ - if ((int) remain <= ident) - goto finally; - memset (actual, ' ', ident); - actual += ident; - remain -= ident; - - /* copy all characters */ - for (; pos < (gsize) length && remain > 1; pos++, actual++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - - /* add space after text */ - if (width - length - ident > 0) - { - if (remain <= width - length - ident) - goto finally; - memset (actual, ' ', width - length - ident); - actual += width - length - ident; - } - } - else if (IS_FIT (just_mode)) - { - /* copy prefix of text, that is not wider than width / 2 */ - for (; pos + 1 <= (gsize) width / 2 && remain > 1; actual++, pos++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - - if (remain <= 1) - goto finally; - actual[0] = '~'; - actual++; - remain--; - - pos += length - width + 1; - - /* copy suffix of text */ - for (; pos < length && remain > 1; pos++, actual++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - } - else - { - switch (HIDE_FIT (just_mode)) - { - case J_CENTER: - ident = (length - width) / 2; - break; - case J_RIGHT: - ident = length - width; - break; - default: - break; - } - - /* copy substring text, substring start from ident and take width - * characters from text */ - pos += ident; - for (; pos < (gsize) (ident + width) && remain > 1; pos++, actual++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - - } - - finally: - if (actual >= result + sizeof (result)) - actual = result + sizeof (result) - 1; - actual[0] = '\0'; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_ascii_term_trim (const char *text, int width) -{ - static char result[BUF_MEDIUM]; - size_t remain; - char *actual; - size_t length; - - length = strlen (text); - actual = result; - remain = sizeof (result); - - if (width > 0) - { - size_t pos; - - if (width >= (int) length) - { - /* copy all characters */ - for (pos = 0; pos < length && remain > 1; pos++, actual++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - } - else if (width <= 3) - { - memset (actual, '.', width); - actual += width; - } - else - { - memset (actual, '.', 3); - actual += 3; - remain -= 3; - - /* copy suffix of text */ - for (pos = length - width + 3; pos < length && remain > 1; pos++, actual++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - } - } - - actual[0] = '\0'; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_term_width2 (const char *text, size_t length) -{ - size_t text_len; - - text_len = strlen (text); - - return (length != (size_t) (-1)) ? MIN (text_len, length) : text_len; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_term_width1 (const char *text) -{ - return str_ascii_term_width2 (text, (size_t) (-1)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_term_char_width (const char *text) -{ - (void) text; - return 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_ascii_term_substring (const char *text, int start, int width) -{ - static char result[BUF_MEDIUM]; - size_t remain; - char *actual; - size_t length; - - actual = result; - remain = sizeof (result); - length = strlen (text); - - if (start < (int) length) - { - size_t pos; - - /* copy at most width characters from text from start */ - for (pos = start; pos < length && width > 0 && remain > 1; - pos++, width--, actual++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - } - - /* if text is shorter then width, add space to the end */ - for (; width > 0 && remain > 1; actual++, remain--, width--) - actual[0] = ' '; - - actual[0] = '\0'; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_ascii_trunc (const char *text, int width) -{ - static char result[MC_MAXPATHLEN]; - int remain; - char *actual; - size_t pos = 0; - size_t length; - - actual = result; - remain = sizeof (result); - length = strlen (text); - - if ((int) length > width) - { - /* copy prefix of text */ - for (; pos + 1 <= (gsize) width / 2 && remain > 1; actual++, pos++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - - if (remain <= 1) - goto finally; - actual[0] = '~'; - actual++; - remain--; - - pos += length - width + 1; - - /* copy suffix of text */ - for (; pos < length && remain > 1; pos++, actual++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - } - else - { - /* copy all characters */ - for (; pos < length && remain > 1; pos++, actual++, remain--) - { - actual[0] = isascii ((unsigned char) text[pos]) ? text[pos] : '?'; - actual[0] = g_ascii_isprint ((gchar) actual[0]) ? actual[0] : '.'; - } - } - - finally: - actual[0] = '\0'; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_offset_to_pos (const char *text, size_t length) -{ - (void) text; - return (int) length; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_column_to_pos (const char *text, size_t pos) -{ - (void) text; - return (int) pos; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -str_ascii_create_search_needle (const char *needle, gboolean case_sen) -{ - (void) case_sen; - return (char *) needle; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_ascii_release_search_needle (char *needle, gboolean case_sen) -{ - (void) case_sen; - (void) needle; - -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_ascii_search_first (const char *text, const char *search, gboolean case_sen) -{ - char *fold_text; - char *fold_search; - const char *match; - - fold_text = case_sen ? (char *) text : g_ascii_strdown (text, -1); - fold_search = case_sen ? (char *) search : g_ascii_strdown (search, -1); - - match = g_strstr_len (fold_text, -1, fold_search); - if (match != NULL) - { - size_t offset; - - offset = match - fold_text; - match = text + offset; - } - - if (!case_sen) - { - g_free (fold_text); - g_free (fold_search); - } - - return match; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_ascii_search_last (const char *text, const char *search, gboolean case_sen) -{ - char *fold_text; - char *fold_search; - const char *match; - - fold_text = case_sen ? (char *) text : g_ascii_strdown (text, -1); - fold_search = case_sen ? (char *) search : g_ascii_strdown (search, -1); - - match = g_strrstr_len (fold_text, -1, fold_search); - if (match != NULL) - { - size_t offset; - - offset = match - fold_text; - match = text + offset; - } - - if (!case_sen) - { - g_free (fold_text); - g_free (fold_search); - } - - return match; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_compare (const char *t1, const char *t2) -{ - return strcmp (t1, t2); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_ncompare (const char *t1, const char *t2) -{ - size_t l1, l2; - - l1 = strlen (t1); - l2 = strlen (t2); - - return strncmp (t1, t2, MIN (l1, l2)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_casecmp (const char *t1, const char *t2) -{ - return g_ascii_strcasecmp (t1, t2); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_ncasecmp (const char *t1, const char *t2) -{ - size_t l1, l2; - - l1 = strlen (t1); - l2 = strlen (t2); - - return g_ascii_strncasecmp (t1, t2, MIN (l1, l2)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_ascii_fix_string (char *text) -{ - for (; text[0] != '\0'; text++) - text[0] = ((unsigned char) text[0] < 128) ? text[0] : '?'; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -str_ascii_create_key (const char *text, gboolean case_sen) -{ - (void) case_sen; - return (char *) text; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_key_collate (const char *t1, const char *t2, gboolean case_sen) -{ - return case_sen ? strcmp (t1, t2) : g_ascii_strcasecmp (t1, t2); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_ascii_release_key (char *key, gboolean case_sen) -{ - (void) key; - (void) case_sen; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_prefix (const char *text, const char *prefix) -{ - int result; - - for (result = 0; text[result] != '\0' && prefix[result] != '\0' - && text[result] == prefix[result]; result++); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_ascii_caseprefix (const char *text, const char *prefix) -{ - int result; - - for (result = 0; text[result] != '\0' && prefix[result] != '\0' - && g_ascii_toupper (text[result]) == g_ascii_toupper (prefix[result]); result++); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -struct str_class -str_ascii_init (void) -{ - struct str_class result; - - result.conv_gerror_message = str_ascii_conv_gerror_message; - result.vfs_convert_to = str_ascii_vfs_convert_to; - result.insert_replace_char = str_ascii_insert_replace_char; - result.is_valid_string = str_ascii_is_valid_string; - result.is_valid_char = str_ascii_is_valid_char; - result.cnext_char = str_ascii_cnext_char; - result.cprev_char = str_ascii_cprev_char; - result.cnext_char_safe = str_ascii_cnext_char; - result.cprev_char_safe = str_ascii_cprev_char; - result.cnext_noncomb_char = str_ascii_cnext_noncomb_char; - result.cprev_noncomb_char = str_ascii_cprev_noncomb_char; - result.char_isspace = str_ascii_isspace; - result.char_ispunct = str_ascii_ispunct; - result.char_isalnum = str_ascii_isalnum; - result.char_isdigit = str_ascii_isdigit; - result.char_isprint = str_ascii_isprint; - result.char_iscombiningmark = str_ascii_iscombiningmark; - result.char_toupper = str_ascii_toupper; - result.char_tolower = str_ascii_tolower; - result.length = str_ascii_length; - result.length2 = str_ascii_length2; - result.length_noncomb = str_ascii_length; - result.fix_string = str_ascii_fix_string; - result.term_form = str_ascii_term_form; - result.fit_to_term = str_ascii_fit_to_term; - result.term_trim = str_ascii_term_trim; - result.term_width2 = str_ascii_term_width2; - result.term_width1 = str_ascii_term_width1; - result.term_char_width = str_ascii_term_char_width; - result.term_substring = str_ascii_term_substring; - result.trunc = str_ascii_trunc; - result.offset_to_pos = str_ascii_offset_to_pos; - result.column_to_pos = str_ascii_column_to_pos; - result.create_search_needle = str_ascii_create_search_needle; - result.release_search_needle = str_ascii_release_search_needle; - result.search_first = str_ascii_search_first; - result.search_last = str_ascii_search_last; - result.compare = str_ascii_compare; - result.ncompare = str_ascii_ncompare; - result.casecmp = str_ascii_casecmp; - result.ncasecmp = str_ascii_ncasecmp; - result.prefix = str_ascii_prefix; - result.caseprefix = str_ascii_caseprefix; - result.create_key = str_ascii_create_key; - result.create_key_for_filename = str_ascii_create_key; - result.key_collate = str_ascii_key_collate; - result.release_key = str_ascii_release_key; - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/strutil/strutilutf8.c b/recipes/wip/files/mc/source/lib/strutil/strutilutf8.c deleted file mode 100644 index 5d033ae314..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/strutilutf8.c +++ /dev/null @@ -1,1540 +0,0 @@ -/* - UTF-8 strings utilities - - Copyright (C) 2007-2025 - Free Software Foundation, Inc. - - Written by: - Rostislav Benes, 2007 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#include -#include -#include /* MB_LEN_MAX */ -#include - -#include "lib/global.h" -#include "lib/strutil.h" - -/* using function for utf-8 from glib */ - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -struct utf8_tool -{ - char *actual; - size_t remain; - const char *checked; - int ident; - gboolean compose; -}; - -struct term_form -{ - char text[BUF_MEDIUM * MB_LEN_MAX]; - size_t width; - gboolean compose; -}; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static const char replch[] = "\xEF\xBF\xBD"; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_unichar_iscombiningmark (gunichar uni) -{ - GUnicodeType type; - - type = g_unichar_type (uni); - return (type == G_UNICODE_SPACING_MARK) - || (type == G_UNICODE_ENCLOSING_MARK) || (type == G_UNICODE_NON_SPACING_MARK); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_utf8_insert_replace_char (GString *buffer) -{ - g_string_append (buffer, replch); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_utf8_is_valid_string (const char *text) -{ - return g_utf8_validate (text, -1, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_is_valid_char (const char *ch, size_t size) -{ - switch (g_utf8_get_char_validated (ch, size)) - { - case (gunichar) (-2): - return (-2); - case (gunichar) (-1): - return (-1); - default: - return 1; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_utf8_cnext_char (const char **text) -{ - (*text) = g_utf8_next_char (*text); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_utf8_cprev_char (const char **text) -{ - (*text) = g_utf8_prev_char (*text); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_utf8_cnext_char_safe (const char **text) -{ - if (str_utf8_is_valid_char (*text, -1) == 1) - (*text) = g_utf8_next_char (*text); - else - (*text)++; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_utf8_cprev_char_safe (const char **text) -{ - const char *result, *t; - - result = g_utf8_prev_char (*text); - t = result; - str_utf8_cnext_char_safe (&t); - if (t == *text) - (*text) = result; - else - (*text)--; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_utf8_fix_string (char *text) -{ - while (text[0] != '\0') - { - gunichar uni; - - uni = g_utf8_get_char_validated (text, -1); - if ((uni != (gunichar) (-1)) && (uni != (gunichar) (-2))) - text = g_utf8_next_char (text); - else - { - text[0] = '?'; - text++; - } - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_utf8_isspace (const char *text) -{ - gunichar uni; - - uni = g_utf8_get_char_validated (text, -1); - return g_unichar_isspace (uni); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_utf8_ispunct (const char *text) -{ - gunichar uni; - - uni = g_utf8_get_char_validated (text, -1); - return g_unichar_ispunct (uni); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_utf8_isalnum (const char *text) -{ - gunichar uni; - - uni = g_utf8_get_char_validated (text, -1); - return g_unichar_isalnum (uni); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_utf8_isdigit (const char *text) -{ - gunichar uni; - - uni = g_utf8_get_char_validated (text, -1); - return g_unichar_isdigit (uni); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_utf8_isprint (const char *ch) -{ - gunichar uni; - - uni = g_utf8_get_char_validated (ch, -1); - return g_unichar_isprint (uni); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_utf8_iscombiningmark (const char *ch) -{ - gunichar uni; - - uni = g_utf8_get_char_validated (ch, -1); - return str_unichar_iscombiningmark (uni); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_cnext_noncomb_char (const char **text) -{ - int count = 0; - - while ((*text)[0] != '\0') - { - str_utf8_cnext_char_safe (text); - count++; - if (!str_utf8_iscombiningmark (*text)) - break; - } - - return count; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_cprev_noncomb_char (const char **text, const char *begin) -{ - int count = 0; - - while ((*text) != begin) - { - str_utf8_cprev_char_safe (text); - count++; - if (!str_utf8_iscombiningmark (*text)) - break; - } - - return count; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_utf8_toupper (const char *text, char **out, size_t *remain) -{ - gunichar uni; - size_t left; - - uni = g_utf8_get_char_validated (text, -1); - if (uni == (gunichar) (-1) || uni == (gunichar) (-2)) - return FALSE; - - uni = g_unichar_toupper (uni); - left = g_unichar_to_utf8 (uni, NULL); - if (left >= *remain) - return FALSE; - - left = g_unichar_to_utf8 (uni, *out); - (*out) += left; - (*remain) -= left; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -str_utf8_tolower (const char *text, char **out, size_t *remain) -{ - gunichar uni; - size_t left; - - uni = g_utf8_get_char_validated (text, -1); - if (uni == (gunichar) (-1) || uni == (gunichar) (-2)) - return FALSE; - - uni = g_unichar_tolower (uni); - left = g_unichar_to_utf8 (uni, NULL); - if (left >= *remain) - return FALSE; - - left = g_unichar_to_utf8 (uni, *out); - (*out) += left; - (*remain) -= left; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_length (const char *text) -{ - int result = 0; - const char *start; - const char *end; - - start = text; - while (!g_utf8_validate (start, -1, &end) && start[0] != '\0') - { - if (start != end) - result += g_utf8_strlen (start, end - start); - - result++; - start = end + 1; - } - - if (start == text) - result = g_utf8_strlen (text, -1); - else if (start[0] != '\0' && start != end) - result += g_utf8_strlen (start, end - start); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_length2 (const char *text, int size) -{ - int result = 0; - const char *start; - const char *end; - - start = text; - while (!g_utf8_validate (start, -1, &end) && start[0] != '\0' && size > 0) - { - if (start != end) - { - result += g_utf8_strlen (start, MIN (end - start, size)); - size -= end - start; - } - result += (size > 0); - size--; - start = end + 1; - } - - if (start == text) - result = g_utf8_strlen (text, size); - else if (start[0] != '\0' && start != end && size > 0) - result += g_utf8_strlen (start, MIN (end - start, size)); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_length_noncomb (const char *text) -{ - int result = 0; - const char *t = text; - - while (t[0] != '\0') - { - str_utf8_cnext_noncomb_char (&t); - result++; - } - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -#if 0 -static void -str_utf8_questmark_sustb (char **string, size_t *left, GString *buffer) -{ - char *next; - - next = g_utf8_next_char (*string); - (*left) -= next - (*string); - (*string) = next; - g_string_append_c (buffer, '?'); -} -#endif - -/* --------------------------------------------------------------------------------------------- */ - -static gchar * -str_utf8_conv_gerror_message (GError *mcerror, const char *def_msg) -{ - if (mcerror != NULL) - return g_strdup (mcerror->message); - - return g_strdup (def_msg != NULL ? def_msg : ""); -} - -/* --------------------------------------------------------------------------------------------- */ - -static estr_t -str_utf8_vfs_convert_to (GIConv coder, const char *string, int size, GString *buffer) -{ - estr_t result = ESTR_SUCCESS; - - if (coder == str_cnv_not_convert) - g_string_append_len (buffer, string, size); - else - result = str_nconvert (coder, string, size, buffer); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ -/* utility function, that makes string valid in utf8 and all characters printable - * return width of string too */ - -static const struct term_form * -str_utf8_make_make_term_form (const char *text, size_t length) -{ - static struct term_form result; - gunichar uni; - size_t left; - char *actual; - - result.text[0] = '\0'; - result.width = 0; - result.compose = FALSE; - actual = result.text; - - /* check if text start with combining character, - * add space at begin in this case */ - if (length != 0 && text[0] != '\0') - { - uni = g_utf8_get_char_validated (text, -1); - if ((uni != (gunichar) (-1)) && (uni != (gunichar) (-2)) - && str_unichar_iscombiningmark (uni)) - { - actual[0] = ' '; - actual++; - result.width++; - result.compose = TRUE; - } - } - - while (length != 0 && text[0] != '\0') - { - uni = g_utf8_get_char_validated (text, -1); - if ((uni != (gunichar) (-1)) && (uni != (gunichar) (-2))) - { - if (g_unichar_isprint (uni)) - { - left = g_unichar_to_utf8 (uni, actual); - actual += left; - if (str_unichar_iscombiningmark (uni)) - result.compose = TRUE; - else - { - result.width++; - if (g_unichar_iswide (uni)) - result.width++; - } - } - else - { - actual[0] = '.'; - actual++; - result.width++; - } - text = g_utf8_next_char (text); - } - else - { - size_t repl_len; - - text++; - /*actual[0] = '?'; */ - repl_len = strlen (replch); - memcpy (actual, replch, repl_len); - actual += repl_len; - result.width++; - } - - if (length != (size_t) (-1)) - length--; - } - actual[0] = '\0'; - - return &result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_utf8_term_form (const char *text) -{ - static char result[BUF_MEDIUM * MB_LEN_MAX]; - const struct term_form *pre_form; - - pre_form = str_utf8_make_make_term_form (text, (size_t) (-1)); - if (pre_form->compose) - { - char *composed; - - composed = g_utf8_normalize (pre_form->text, -1, G_NORMALIZE_DEFAULT_COMPOSE); - g_strlcpy (result, composed, sizeof (result)); - g_free (composed); - } - else - g_strlcpy (result, pre_form->text, sizeof (result)); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ -/* utility function, that copies all characters from checked to actual */ - -static gboolean -utf8_tool_copy_chars_to_end (struct utf8_tool *tool) -{ - tool->compose = FALSE; - - while (tool->checked[0] != '\0') - { - gunichar uni; - size_t left; - - uni = g_utf8_get_char (tool->checked); - tool->compose = tool->compose || str_unichar_iscombiningmark (uni); - left = g_unichar_to_utf8 (uni, NULL); - if (tool->remain <= left) - return FALSE; - left = g_unichar_to_utf8 (uni, tool->actual); - tool->actual += left; - tool->remain -= left; - tool->checked = g_utf8_next_char (tool->checked); - } - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/* utility function, that copies characters from checked to actual until ident is - * smaller than to_ident */ - -static gboolean -utf8_tool_copy_chars_to (struct utf8_tool *tool, int to_ident) -{ - tool->compose = FALSE; - - while (tool->checked[0] != '\0') - { - gunichar uni; - size_t left; - int w = 0; - - uni = g_utf8_get_char (tool->checked); - if (str_unichar_iscombiningmark (uni)) - tool->compose = TRUE; - else - { - w = 1; - if (g_unichar_iswide (uni)) - w++; - if (tool->ident + w > to_ident) - return TRUE; - } - - left = g_unichar_to_utf8 (uni, NULL); - if (tool->remain <= left) - return FALSE; - left = g_unichar_to_utf8 (uni, tool->actual); - tool->actual += left; - tool->remain -= left; - tool->checked = g_utf8_next_char (tool->checked); - tool->ident += w; - } - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/* utility function, adds count spaces to actual */ - -static int -utf8_tool_insert_space (struct utf8_tool *tool, int count) -{ - if (count <= 0) - return 1; - if (tool->remain <= (gsize) count) - return 0; - - memset (tool->actual, ' ', count); - tool->actual += count; - tool->remain -= count; - return 1; -} - -/* --------------------------------------------------------------------------------------------- */ -/* utility function, adds one characters to actual */ - -static int -utf8_tool_insert_char (struct utf8_tool *tool, char ch) -{ - if (tool->remain <= 1) - return 0; - - tool->actual[0] = ch; - tool->actual++; - tool->remain--; - return 1; -} - -/* --------------------------------------------------------------------------------------------- */ -/* utility function, thah skips characters from checked until ident is greater or - * equal to to_ident */ - -static gboolean -utf8_tool_skip_chars_to (struct utf8_tool *tool, int to_ident) -{ - gunichar uni; - - while (to_ident > tool->ident && tool->checked[0] != '\0') - { - uni = g_utf8_get_char (tool->checked); - if (!str_unichar_iscombiningmark (uni)) - { - tool->ident++; - if (g_unichar_iswide (uni)) - tool->ident++; - } - tool->checked = g_utf8_next_char (tool->checked); - } - - uni = g_utf8_get_char (tool->checked); - while (str_unichar_iscombiningmark (uni)) - { - tool->checked = g_utf8_next_char (tool->checked); - uni = g_utf8_get_char (tool->checked); - } - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -utf8_tool_compose (char *buffer, size_t size) -{ - char *composed; - - composed = g_utf8_normalize (buffer, -1, G_NORMALIZE_DEFAULT_COMPOSE); - g_strlcpy (buffer, composed, size); - g_free (composed); -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_utf8_fit_to_term (const char *text, int width, align_crt_t just_mode) -{ - static char result[BUF_MEDIUM * MB_LEN_MAX]; - const struct term_form *pre_form; - struct utf8_tool tool; - - pre_form = str_utf8_make_make_term_form (text, (size_t) (-1)); - tool.checked = pre_form->text; - tool.actual = result; - tool.remain = sizeof (result); - tool.compose = FALSE; - - if (pre_form->width <= (gsize) width) - { - switch (HIDE_FIT (just_mode)) - { - case J_CENTER_LEFT: - case J_CENTER: - tool.ident = (width - pre_form->width) / 2; - break; - case J_RIGHT: - tool.ident = width - pre_form->width; - break; - default: - tool.ident = 0; - break; - } - - utf8_tool_insert_space (&tool, tool.ident); - utf8_tool_copy_chars_to_end (&tool); - utf8_tool_insert_space (&tool, width - pre_form->width - tool.ident); - } - else if (IS_FIT (just_mode)) - { - tool.ident = 0; - utf8_tool_copy_chars_to (&tool, width / 2); - utf8_tool_insert_char (&tool, '~'); - - tool.ident = 0; - utf8_tool_skip_chars_to (&tool, pre_form->width - width + 1); - utf8_tool_copy_chars_to_end (&tool); - utf8_tool_insert_space (&tool, width - (pre_form->width - tool.ident + 1)); - } - else - { - switch (HIDE_FIT (just_mode)) - { - case J_CENTER: - tool.ident = (width - pre_form->width) / 2; - break; - case J_RIGHT: - tool.ident = width - pre_form->width; - break; - default: - tool.ident = 0; - break; - } - - utf8_tool_skip_chars_to (&tool, 0); - utf8_tool_insert_space (&tool, tool.ident); - utf8_tool_copy_chars_to (&tool, width); - utf8_tool_insert_space (&tool, width - tool.ident); - } - - tool.actual[0] = '\0'; - if (tool.compose) - utf8_tool_compose (result, sizeof (result)); - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_utf8_term_trim (const char *text, int width) -{ - static char result[BUF_MEDIUM * MB_LEN_MAX]; - const struct term_form *pre_form; - struct utf8_tool tool; - - if (width < 1) - { - result[0] = '\0'; - return result; - } - - pre_form = str_utf8_make_make_term_form (text, (size_t) (-1)); - - tool.checked = pre_form->text; - tool.actual = result; - tool.remain = sizeof (result); - tool.compose = FALSE; - - if ((gsize) width >= pre_form->width) - utf8_tool_copy_chars_to_end (&tool); - else if (width <= 3) - { - memset (tool.actual, '.', width); - tool.actual += width; - tool.remain -= width; - } - else - { - memset (tool.actual, '.', 3); - tool.actual += 3; - tool.remain -= 3; - - tool.ident = 0; - utf8_tool_skip_chars_to (&tool, pre_form->width - width + 3); - utf8_tool_copy_chars_to_end (&tool); - } - - tool.actual[0] = '\0'; - if (tool.compose) - utf8_tool_compose (result, sizeof (result)); - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_term_width2 (const char *text, size_t length) -{ - const struct term_form *result; - - result = str_utf8_make_make_term_form (text, length); - return result->width; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_term_width1 (const char *text) -{ - return str_utf8_term_width2 (text, (size_t) (-1)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_term_char_width (const char *text) -{ - gunichar uni; - - uni = g_utf8_get_char_validated (text, -1); - return (str_unichar_iscombiningmark (uni)) ? 0 : ((g_unichar_iswide (uni)) ? 2 : 1); -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_utf8_term_substring (const char *text, int start, int width) -{ - static char result[BUF_MEDIUM * MB_LEN_MAX]; - const struct term_form *pre_form; - struct utf8_tool tool; - - pre_form = str_utf8_make_make_term_form (text, (size_t) (-1)); - - tool.checked = pre_form->text; - tool.actual = result; - tool.remain = sizeof (result); - tool.compose = FALSE; - - tool.ident = -start; - utf8_tool_skip_chars_to (&tool, 0); - if (tool.ident < 0) - tool.ident = 0; - utf8_tool_insert_space (&tool, tool.ident); - - utf8_tool_copy_chars_to (&tool, width); - utf8_tool_insert_space (&tool, width - tool.ident); - - tool.actual[0] = '\0'; - if (tool.compose) - utf8_tool_compose (result, sizeof (result)); - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_utf8_trunc (const char *text, int width) -{ - static char result[MC_MAXPATHLEN * MB_LEN_MAX * 2]; - const struct term_form *pre_form; - struct utf8_tool tool; - - pre_form = str_utf8_make_make_term_form (text, (size_t) (-1)); - - tool.checked = pre_form->text; - tool.actual = result; - tool.remain = sizeof (result); - tool.compose = FALSE; - - if (pre_form->width <= (gsize) width) - utf8_tool_copy_chars_to_end (&tool); - else - { - tool.ident = 0; - utf8_tool_copy_chars_to (&tool, width / 2); - utf8_tool_insert_char (&tool, '~'); - - tool.ident = 0; - utf8_tool_skip_chars_to (&tool, pre_form->width - width + 1); - utf8_tool_copy_chars_to_end (&tool); - } - - tool.actual[0] = '\0'; - if (tool.compose) - utf8_tool_compose (result, sizeof (result)); - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_offset_to_pos (const char *text, size_t length) -{ - if (str_utf8_is_valid_string (text)) - return g_utf8_offset_to_pointer (text, length) - text; - else - { - int result; - char *buffer; - - buffer = g_strdup (text); - str_utf8_fix_string (buffer); - result = g_utf8_offset_to_pointer (buffer, length) - buffer; - g_free (buffer); - return result; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_column_to_pos (const char *text, size_t pos) -{ - int result = 0; - int width = 0; - - while (text[0] != '\0') - { - gunichar uni; - - uni = g_utf8_get_char_validated (text, MB_LEN_MAX); - if ((uni != (gunichar) (-1)) && (uni != (gunichar) (-2))) - { - if (g_unichar_isprint (uni)) - { - if (!str_unichar_iscombiningmark (uni)) - { - width++; - if (g_unichar_iswide (uni)) - width++; - } - } - else - { - width++; - } - text = g_utf8_next_char (text); - } - else - { - text++; - width++; - } - - if ((gsize) width > pos) - return result; - - result++; - } - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -str_utf8_create_search_needle (const char *needle, gboolean case_sen) -{ - char *fold, *result; - - if (needle == NULL) - return NULL; - - if (case_sen) - return g_utf8_normalize (needle, -1, G_NORMALIZE_ALL); - - fold = g_utf8_casefold (needle, -1); - result = g_utf8_normalize (fold, -1, G_NORMALIZE_ALL); - g_free (fold); - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_utf8_release_search_needle (char *needle, gboolean case_sen) -{ - (void) case_sen; - g_free (needle); -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_utf8_search_first (const char *text, const char *search, gboolean case_sen) -{ - char *deco_text; - const char *match; - const char *result = NULL; - size_t search_len; - - if (case_sen) - deco_text = g_utf8_normalize (text, -1, G_NORMALIZE_ALL); - else - { - char *fold_text; - - fold_text = g_utf8_casefold (text, -1); - deco_text = g_utf8_normalize (fold_text, -1, G_NORMALIZE_ALL); - g_free (fold_text); - } - - search_len = strlen (search); - - match = deco_text; - do - { - match = g_strstr_len (match, -1, search); - if (match != NULL) - { - if ((!str_utf8_iscombiningmark (match) || (match == deco_text)) && - !str_utf8_iscombiningmark (match + search_len)) - { - const char *m = deco_text; - - result = text; - while (m < match) - { - str_utf8_cnext_noncomb_char (&m); - str_utf8_cnext_noncomb_char (&result); - } - } - else - str_utf8_cnext_char (&match); - } - } - while (match != NULL && result == NULL); - - g_free (deco_text); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const char * -str_utf8_search_last (const char *text, const char *search, gboolean case_sen) -{ - char *deco_text; - char *match; - const char *result = NULL; - size_t search_len; - - if (case_sen) - deco_text = g_utf8_normalize (text, -1, G_NORMALIZE_ALL); - else - { - char *fold_text; - - fold_text = g_utf8_casefold (text, -1); - deco_text = g_utf8_normalize (fold_text, -1, G_NORMALIZE_ALL); - g_free (fold_text); - } - - search_len = strlen (search); - - do - { - match = g_strrstr_len (deco_text, -1, search); - if (match != NULL) - { - if ((!str_utf8_iscombiningmark (match) || (match == deco_text)) && - !str_utf8_iscombiningmark (match + search_len)) - { - const char *m = deco_text; - - result = text; - while (m < match) - { - str_utf8_cnext_noncomb_char (&m); - str_utf8_cnext_noncomb_char (&result); - } - } - else - match[0] = '\0'; - } - } - while (match != NULL && result == NULL); - - g_free (deco_text); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -str_utf8_normalize (const char *text) -{ - GString *fixed; - char *tmp; - char *result; - const char *start; - const char *end; - - /* g_utf8_normalize() is a heavyweight function, that converts UTF-8 into UCS-4, - * does the normalization and then converts UCS-4 back into UTF-8. - * Since file names are composed of ASCII characters in most cases, we can speed up - * utf8 normalization by checking if the heavyweight Unicode normalization is actually - * needed. Normalization of ASCII string is no-op. - */ - - /* find out whether text is ASCII only */ - for (end = text; *end != '\0'; end++) - if ((*end & 0x80) != 0) - { - /* found 2nd byte of utf8-encoded symbol */ - break; - } - - /* if text is ASCII-only, return copy, normalize otherwise */ - if (*end == '\0') - return g_strndup (text, end - text); - - fixed = g_string_sized_new (4); - - start = text; - while (!g_utf8_validate (start, -1, &end) && start[0] != '\0') - { - if (start != end) - { - tmp = g_utf8_normalize (start, end - start, G_NORMALIZE_ALL); - g_string_append (fixed, tmp); - g_free (tmp); - } - g_string_append_c (fixed, end[0]); - start = end + 1; - } - - if (start == text) - { - result = g_utf8_normalize (text, -1, G_NORMALIZE_ALL); - g_string_free (fixed, TRUE); - } - else - { - if (start[0] != '\0' && start != end) - { - tmp = g_utf8_normalize (start, end - start, G_NORMALIZE_ALL); - g_string_append (fixed, tmp); - g_free (tmp); - } - result = g_string_free (fixed, FALSE); - } - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -str_utf8_casefold_normalize (const char *text) -{ - GString *fixed; - char *tmp, *fold; - char *result; - const char *start; - const char *end; - - fixed = g_string_sized_new (4); - - start = text; - while (!g_utf8_validate (start, -1, &end) && start[0] != '\0') - { - if (start != end) - { - fold = g_utf8_casefold (start, end - start); - tmp = g_utf8_normalize (fold, -1, G_NORMALIZE_ALL); - g_string_append (fixed, tmp); - g_free (tmp); - g_free (fold); - } - g_string_append_c (fixed, end[0]); - start = end + 1; - } - - if (start == text) - { - fold = g_utf8_casefold (text, -1); - result = g_utf8_normalize (fold, -1, G_NORMALIZE_ALL); - g_free (fold); - g_string_free (fixed, TRUE); - } - else - { - if (start[0] != '\0' && start != end) - { - fold = g_utf8_casefold (start, end - start); - tmp = g_utf8_normalize (fold, -1, G_NORMALIZE_ALL); - g_string_append (fixed, tmp); - g_free (tmp); - g_free (fold); - } - result = g_string_free (fixed, FALSE); - } - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_compare (const char *t1, const char *t2) -{ - char *n1, *n2; - int result; - - n1 = str_utf8_normalize (t1); - n2 = str_utf8_normalize (t2); - - result = strcmp (n1, n2); - - g_free (n1); - g_free (n2); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_ncompare (const char *t1, const char *t2) -{ - char *n1, *n2; - size_t l1, l2; - int result; - - n1 = str_utf8_normalize (t1); - n2 = str_utf8_normalize (t2); - - l1 = strlen (n1); - l2 = strlen (n2); - result = strncmp (n1, n2, MIN (l1, l2)); - - g_free (n1); - g_free (n2); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_casecmp (const char *t1, const char *t2) -{ - char *n1, *n2; - int result; - - n1 = str_utf8_casefold_normalize (t1); - n2 = str_utf8_casefold_normalize (t2); - - result = strcmp (n1, n2); - - g_free (n1); - g_free (n2); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_ncasecmp (const char *t1, const char *t2) -{ - char *n1, *n2; - size_t l1, l2; - int result; - - n1 = str_utf8_casefold_normalize (t1); - n2 = str_utf8_casefold_normalize (t2); - - l1 = strlen (n1); - l2 = strlen (n2); - result = strncmp (n1, n2, MIN (l1, l2)); - - g_free (n1); - g_free (n2); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_prefix (const char *text, const char *prefix) -{ - char *t, *p; - const char *nt, *np; - const char *nnt, *nnp; - int result; - - t = str_utf8_normalize (text); - p = str_utf8_normalize (prefix); - nt = t; - np = p; - nnt = t; - nnp = p; - - while (nt[0] != '\0' && np[0] != '\0') - { - str_utf8_cnext_char_safe (&nnt); - str_utf8_cnext_char_safe (&nnp); - if (nnt - nt != nnp - np) - break; - if (strncmp (nt, np, nnt - nt) != 0) - break; - nt = nnt; - np = nnp; - } - - result = np - p; - - g_free (t); - g_free (p); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_caseprefix (const char *text, const char *prefix) -{ - char *t, *p; - const char *nt, *np; - const char *nnt, *nnp; - int result; - - t = str_utf8_casefold_normalize (text); - p = str_utf8_casefold_normalize (prefix); - nt = t; - np = p; - nnt = t; - nnp = p; - - while (nt[0] != '\0' && np[0] != '\0') - { - str_utf8_cnext_char_safe (&nnt); - str_utf8_cnext_char_safe (&nnp); - if (nnt - nt != nnp - np) - break; - if (strncmp (nt, np, nnt - nt) != 0) - break; - nt = nnt; - np = nnp; - } - - result = np - p; - - g_free (t); - g_free (p); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -str_utf8_create_key_gen (const char *text, gboolean case_sen, - gchar *(*keygen) (const gchar *text, gssize size)) -{ - char *result; - - if (case_sen) - result = str_utf8_normalize (text); - else - { - gboolean dot; - GString *fixed; - const char *start, *end; - char *fold, *key; - - dot = text[0] == '.'; - fixed = g_string_sized_new (16); - - if (!dot) - start = text; - else - { - start = text + 1; - g_string_append_c (fixed, '.'); - } - - while (!g_utf8_validate (start, -1, &end) && start[0] != '\0') - { - if (start != end) - { - fold = g_utf8_casefold (start, end - start); - key = keygen (fold, -1); - g_string_append (fixed, key); - g_free (key); - g_free (fold); - } - g_string_append_c (fixed, end[0]); - start = end + 1; - } - - if (start == text) - { - fold = g_utf8_casefold (start, -1); - result = keygen (fold, -1); - g_free (fold); - g_string_free (fixed, TRUE); - } - else if (dot && (start == text + 1)) - { - fold = g_utf8_casefold (start, -1); - key = keygen (fold, -1); - g_string_append (fixed, key); - g_free (key); - g_free (fold); - result = g_string_free (fixed, FALSE); - } - else - { - if (start[0] != '\0' && start != end) - { - fold = g_utf8_casefold (start, end - start); - key = keygen (fold, -1); - g_string_append (fixed, key); - g_free (key); - g_free (fold); - } - result = g_string_free (fixed, FALSE); - } - } - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -str_utf8_create_key (const char *text, gboolean case_sen) -{ - return str_utf8_create_key_gen (text, case_sen, g_utf8_collate_key); -} - -/* --------------------------------------------------------------------------------------------- */ - -#ifdef MC__USE_STR_UTF8_CREATE_KEY_FOR_FILENAME -static char * -str_utf8_create_key_for_filename (const char *text, gboolean case_sen) -{ - return str_utf8_create_key_gen (text, case_sen, g_utf8_collate_key_for_filename); -} -#endif - -/* --------------------------------------------------------------------------------------------- */ - -static int -str_utf8_key_collate (const char *t1, const char *t2, gboolean case_sen) -{ - (void) case_sen; - return strcmp (t1, t2); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -str_utf8_release_key (char *key, gboolean case_sen) -{ - (void) case_sen; - g_free (key); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -struct str_class -str_utf8_init (void) -{ - struct str_class result; - - result.conv_gerror_message = str_utf8_conv_gerror_message; - result.vfs_convert_to = str_utf8_vfs_convert_to; - result.insert_replace_char = str_utf8_insert_replace_char; - result.is_valid_string = str_utf8_is_valid_string; - result.is_valid_char = str_utf8_is_valid_char; - result.cnext_char = str_utf8_cnext_char; - result.cprev_char = str_utf8_cprev_char; - result.cnext_char_safe = str_utf8_cnext_char_safe; - result.cprev_char_safe = str_utf8_cprev_char_safe; - result.cnext_noncomb_char = str_utf8_cnext_noncomb_char; - result.cprev_noncomb_char = str_utf8_cprev_noncomb_char; - result.char_isspace = str_utf8_isspace; - result.char_ispunct = str_utf8_ispunct; - result.char_isalnum = str_utf8_isalnum; - result.char_isdigit = str_utf8_isdigit; - result.char_isprint = str_utf8_isprint; - result.char_iscombiningmark = str_utf8_iscombiningmark; - result.char_toupper = str_utf8_toupper; - result.char_tolower = str_utf8_tolower; - result.length = str_utf8_length; - result.length2 = str_utf8_length2; - result.length_noncomb = str_utf8_length_noncomb; - result.fix_string = str_utf8_fix_string; - result.term_form = str_utf8_term_form; - result.fit_to_term = str_utf8_fit_to_term; - result.term_trim = str_utf8_term_trim; - result.term_width2 = str_utf8_term_width2; - result.term_width1 = str_utf8_term_width1; - result.term_char_width = str_utf8_term_char_width; - result.term_substring = str_utf8_term_substring; - result.trunc = str_utf8_trunc; - result.offset_to_pos = str_utf8_offset_to_pos; - result.column_to_pos = str_utf8_column_to_pos; - result.create_search_needle = str_utf8_create_search_needle; - result.release_search_needle = str_utf8_release_search_needle; - result.search_first = str_utf8_search_first; - result.search_last = str_utf8_search_last; - result.compare = str_utf8_compare; - result.ncompare = str_utf8_ncompare; - result.casecmp = str_utf8_casecmp; - result.ncasecmp = str_utf8_ncasecmp; - result.prefix = str_utf8_prefix; - result.caseprefix = str_utf8_caseprefix; - result.create_key = str_utf8_create_key; -#ifdef MC__USE_STR_UTF8_CREATE_KEY_FOR_FILENAME - /* case insensitive sort files in "a1 a2 a10" order */ - result.create_key_for_filename = str_utf8_create_key_for_filename; -#else - /* case insensitive sort files in "a1 a10 a2" order */ - result.create_key_for_filename = str_utf8_create_key; -#endif - result.key_collate = str_utf8_key_collate; - result.release_key = str_utf8_release_key; - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/strutil/strverscmp.c b/recipes/wip/files/mc/source/lib/strutil/strverscmp.c deleted file mode 100644 index d197498005..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/strverscmp.c +++ /dev/null @@ -1,157 +0,0 @@ -/* - Compare strings while treating digits characters numerically. - - Copyright (C) 1997-2025 - Free Software Foundation, Inc. - - This file is part of the GNU C Library. - Contributed by Jean-François Bignolles , 1997. - - The GNU C Library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - The GNU C Library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with the GNU C Library; if not, see - . - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -#include - -#ifdef HAVE_STRVERSCMP -#include -#endif /* HAVE_STRVERSCMP */ - -#include "lib/strutil.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#ifndef HAVE_STRVERSCMP - -/* states: S_N: normal, S_I: comparing integral part, S_F: comparing - fractional parts, S_Z: idem but with leading Zeroes only */ -#define S_N 0x0 -#define S_I 0x3 -#define S_F 0x6 -#define S_Z 0x9 - -/* result_type: CMP: return diff; LEN: compare using len_diff/diff */ -#define CMP 2 -#define LEN 3 - -#endif /* HAVE_STRVERSCMP */ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/* Compare S1 and S2 as strings holding indices/version numbers, - returning less than, equal to or greater than zero if S1 is less than, - equal to or greater than S2 (for more info, see the texinfo doc). - */ -int -str_verscmp (const char *s1, const char *s2) -{ -#ifdef HAVE_STRVERSCMP - return strverscmp (s1, s2); - -#else /* HAVE_STRVERSCMP */ - const unsigned char *p1 = (const unsigned char *) s1; - const unsigned char *p2 = (const unsigned char *) s2; - unsigned char c1, c2; - int state; - int diff; - - /* *INDENT-OFF* */ - /* Symbol(s) 0 [1-9] others - Transition (10) 0 (01) d (00) x */ - static const unsigned char next_state[] = - { - /* state x d 0 */ - /* S_N */ S_N, S_I, S_Z, - /* S_I */ S_N, S_I, S_I, - /* S_F */ S_N, S_F, S_F, - /* S_Z */ S_N, S_F, S_Z - }; - - static const signed char result_type[] = - { - /* state x/x x/d x/0 d/x d/d d/0 0/x 0/d 0/0 */ - - /* S_N */ CMP, CMP, CMP, CMP, LEN, CMP, CMP, CMP, CMP, - /* S_I */ CMP, -1, -1, +1, LEN, LEN, +1, LEN, LEN, - /* S_F */ CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, CMP, - /* S_Z */ CMP, +1, +1, -1, CMP, CMP, -1, CMP, CMP - }; - /* *INDENT-ON* */ - - if (p1 == p2) - return 0; - - c1 = *p1++; - c2 = *p2++; - /* Hint: '0' is a digit too. */ - state = S_N + ((c1 == '0') + (g_ascii_isdigit (c1) ? 1 : 0)); - - while ((diff = c1 - c2) == 0) - { - if (c1 == '\0') - return diff; - - state = next_state[state]; - c1 = *p1++; - c2 = *p2++; - state += (c1 == '0') + (g_ascii_isdigit (c1) ? 1 : 0); - } - - state = result_type[state * 3 + (((c2 == '0') + (g_ascii_isdigit (c2) ? 1 : 0)))]; - - switch (state) - { - case CMP: - return diff; - - case LEN: - while (g_ascii_isdigit (*p1++)) - if (!g_ascii_isdigit (*p2++)) - return 1; - - return g_ascii_isdigit (*p2) ? -1 : diff; - - default: - return state; - } -#endif /* HAVE_STRVERSCMP */ -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/strutil/tokenize.c b/recipes/wip/files/mc/source/lib/strutil/tokenize.c deleted file mode 100644 index 9e3f22679b..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/tokenize.c +++ /dev/null @@ -1,251 +0,0 @@ -/* - Parse string into tokens. - - Copyright (C) 2024-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin 2010-2024 - - The str_tokenize() and str_tokenize_word routines are mostly from - GNU readline-8.2. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file tokenize.c - * \brief Source: parse string into tokens. - */ - -#include - -#include -#include - -#include "lib/global.h" -#include "lib/util.h" /* whiteness() */ - -#include "lib/strutil.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#define WORD_DELIMITERS " \t\n;&()|<>" -#define QUOTE_CHARACTERS "\"'`" - -#define slashify_in_quotes "\\`\"$" - -#define member(c, s) ((c != '\0') ? (strchr ((s), (c)) != NULL) : FALSE) - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* - * Based on history_tokenize_word() from GNU readline-8.2 - */ -static int -str_tokenize_word (const char *string, int start) -{ - int i = start; - char delimiter = '\0'; - char delimopen = '\0'; - int nestdelim = 0; - - if (member (string[i], "()\n")) /* XXX - included \n, but why? been here forever */ - return (i + 1); - - if (g_ascii_isdigit (string[i])) - { - int j; - - for (j = i; string[j] != '\0' && g_ascii_isdigit (string[j]); j++) - ; - - if (string[j] == '\0') - return j; - - if (string[j] == '<' || string[j] == '>') - i = j; /* digit sequence is a file descriptor */ - else - { - i = j; /* digit sequence is part of a word */ - goto get_word; - } - } - - if (member (string[i], "<>;&|")) - { - char peek = string[i + 1]; - - if (peek == string[i]) - { - if (peek == '<' && (string[i + 2] == '-' || string[i + 2] == '<')) - i++; - return (i + 2); - } - - if (peek == '&' && (string[i] == '>' || string[i] == '<')) - { - int j; - - /* file descriptor */ - for (j = i + 2; string[j] != '\0' && g_ascii_isdigit (string[j]); j++) - ; - if (string[j] == '-') /* <&[digits]-, >&[digits]- */ - j++; - return j; - } - - if ((peek == '>' && string[i] == '&') || (peek == '|' && string[i] == '>')) - return (i + 2); - - /* XXX - process substitution -- separated out for later -- bash-4.2 */ - if (peek == '(' && (string[i] == '>' || string[i] == '<')) - { - /* ) */ - i += 2; - delimopen = '('; - delimiter = ')'; - nestdelim = 1; - goto get_word; - } - - return (i + 1); - } - - get_word: - /* Get word from string + i; */ - - if (delimiter == '\0' && member (string[i], QUOTE_CHARACTERS)) - { - delimiter = string[i]; - i++; - } - - for (; string[i] != '\0'; i++) - { - if (string[i] == '\\' && string[i + 1] == '\n') - { - i++; - continue; - } - - if (string[i] == '\\' && delimiter != '\'' && - (delimiter != '"' || member (string[i], slashify_in_quotes))) - { - i++; - continue; - } - - /* delimiter must be set and set to something other than a quote if - nestdelim is set, so these tests are safe. */ - if (nestdelim != 0 && string[i] == delimopen) - { - nestdelim++; - continue; - } - if (nestdelim != 0 && string[i] == delimiter) - { - nestdelim--; - if (nestdelim == 0) - delimiter = '\0'; - continue; - } - - if (delimiter != '\0' && string[i] == delimiter) - { - delimiter = '\0'; - continue; - } - - /* Command and process substitution; shell extended globbing patterns */ - if (nestdelim == 0 && delimiter == '\0' && member (string[i], "<>$!@?+*") - && string[i + 1] == '(') - { - /* ) */ - i += 2; - delimopen = '('; - delimiter = ')'; - nestdelim = 1; - continue; - } - - if (delimiter == '\0' && member (string[i], WORD_DELIMITERS)) - break; - - if (delimiter == '\0' && member (string[i], QUOTE_CHARACTERS)) - delimiter = string[i]; - } - - return i; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* Parse string into tokens. - * - * Based on history_tokenize_internal() from GNU readline-8.2 - */ -GPtrArray * -str_tokenize (const char *string) -{ - GPtrArray *result = NULL; - int i = 0; - - /* Get a token, and stuff it into RESULT. The tokens are split - exactly where the shell would split them. */ - while (string[i] != '\0') - { - int start; - - /* Skip leading whitespace */ - for (; string[i] != '\0' && whiteness (string[i]); i++) - ; - - if (string[i] == '\0') - return result; - - start = i; - i = str_tokenize_word (string, start); - - /* If we have a non-whitespace delimiter character (which would not be - skipped by the loop above), use it and any adjacent delimiters to - make a separate field. Any adjacent white space will be skipped the - next time through the loop. */ - if (i == start) - for (i++; string[i] != '\0' && member (string[i], WORD_DELIMITERS); i++) - ; - - if (result == NULL) - result = g_ptr_array_new (); - - g_ptr_array_add (result, g_strndup (string + start, i - start)); - } - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/strutil/xstrtol.c b/recipes/wip/files/mc/source/lib/strutil/xstrtol.c deleted file mode 100644 index de5755502b..0000000000 --- a/recipes/wip/files/mc/source/lib/strutil/xstrtol.c +++ /dev/null @@ -1,281 +0,0 @@ -/* A more useful interface to strtol. - - Copyright (C) 1995-2025 - 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 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . */ - -/* Written by Jim Meyering. */ - -#include - -#include -#include -#include -#include -#include -#include - -#include "lib/strutil.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static strtol_error_t -bkm_scale (uintmax_t *x, int scale_factor) -{ - if (UINTMAX_MAX / scale_factor < *x) - { - *x = UINTMAX_MAX; - return LONGINT_OVERFLOW; - } - - *x *= scale_factor; - return LONGINT_OK; -} - -/* --------------------------------------------------------------------------------------------- */ - -static strtol_error_t -bkm_scale_by_power (uintmax_t *x, int base, int power) -{ - strtol_error_t err = LONGINT_OK; - while (power-- != 0) - err |= bkm_scale (x, base); - return err; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* Act like the system's strtol (NPTR, ENDPTR, BASE) except: - - The TYPE of the result might be something other than long int. - - Return strtol_error, and store any result through an additional - TYPE *VAL pointer instead of returning the result. - - If TYPE is unsigned, reject leading '-'. - - Behavior is undefined if BASE is negative, 1, or greater than 36. - (In this respect xstrtol acts like the C standard, not like POSIX.) - - Accept an additional char const *VALID_SUFFIXES pointer to a - possibly-empty string containing allowed numeric suffixes, - which multiply the value. These include SI suffixes like 'k' and 'M'; - these normally stand for powers of 1024, but if VALID_SUFFIXES also - includes '0' they can be followed by "B" to stand for the usual - SI powers of 1000 (or by "iB" to stand for powers of 1024 as before). - Other supported suffixes include 'K' for 1024 or 1000, 'b' for 512, - 'c' for 1, and 'w' for 2. - - Suppose that after the initial whitespace, the number is missing - but there is a valid suffix. Then the number is treated as 1. -*/ -strtol_error_t -xstrtoumax (const char *nptr, char **endptr, int base, uintmax_t *val, const char *valid_suffixes) -{ - char *t_ptr; - char **p; - uintmax_t tmp; - strtol_error_t err = LONGINT_OK; - - p = endptr != NULL ? endptr : &t_ptr; - - { - const char *q = nptr; - unsigned char ch = *q; - - while (isspace (ch)) - ch = *++q; - - if (ch == '-') - { - *p = (char *) nptr; - return LONGINT_INVALID; - } - } - - errno = 0; - tmp = strtol (nptr, p, base); - - if (*p == nptr) - { - /* If there is no number but there is a valid suffix, assume the - number is 1. The string is invalid otherwise. */ - if (!(valid_suffixes != NULL && *nptr != '\0' && strchr (valid_suffixes, *nptr) != NULL)) - return LONGINT_INVALID; - tmp = 1; - } - else if (errno != 0) - { - if (errno != ERANGE) - return LONGINT_INVALID; - err = LONGINT_OVERFLOW; - } - - /* Let valid_suffixes == NULL mean "allow any suffix". */ - /* FIXME: update all callers except the ones that allow suffixes - after the number, changing last parameter NULL to "". */ - if (valid_suffixes == NULL) - { - *val = tmp; - return err; - } - - if (**p != '\0') - { - int xbase = 1024; - int suffixes = 1; - strtol_error_t overflow; - - if (strchr (valid_suffixes, **p) == NULL) - { - *val = tmp; - return err | LONGINT_INVALID_SUFFIX_CHAR; - } - - switch (**p) - { - case 'E': - case 'G': - case 'g': - case 'k': - case 'K': - case 'M': - case 'm': - case 'P': - case 'Q': - case 'R': - case 'T': - case 't': - case 'Y': - case 'Z': - if (strchr (valid_suffixes, '0') != NULL) - { - /* The "valid suffix" '0' is a special flag meaning that - an optional second suffix is allowed, which can change - the base. A suffix "B" (e.g. "100MB") stands for a power - of 1000, whereas a suffix "iB" (e.g. "100MiB") stands for - a power of 1024. If no suffix (e.g. "100M"), assume - power-of-1024. */ - - switch (p[0][1]) - { - case 'i': - if (p[0][2] == 'B') - suffixes += 2; - break; - - case 'B': - case 'D': /* 'D' is obsolescent */ - xbase = 1000; - suffixes++; - break; - default: - break; - } - } - break; - default: - break; - } - - switch (**p) - { - case 'b': - overflow = bkm_scale (&tmp, 512); - break; - - case 'B': - /* This obsolescent first suffix is distinct from the 'B' - second suffix above. E.g., 'tar -L 1000B' means change - the tape after writing 1000 KiB of data. */ - overflow = bkm_scale (&tmp, 1024); - break; - - case 'c': - overflow = LONGINT_OK; - break; - - case 'E': /* exa or exbi */ - overflow = bkm_scale_by_power (&tmp, xbase, 6); - break; - - case 'G': /* giga or gibi */ - case 'g': /* 'g' is undocumented; for compatibility only */ - overflow = bkm_scale_by_power (&tmp, xbase, 3); - break; - - case 'k': /* kilo */ - case 'K': /* kibi */ - overflow = bkm_scale_by_power (&tmp, xbase, 1); - break; - - case 'M': /* mega or mebi */ - case 'm': /* 'm' is undocumented; for compatibility only */ - overflow = bkm_scale_by_power (&tmp, xbase, 2); - break; - - case 'P': /* peta or pebi */ - overflow = bkm_scale_by_power (&tmp, xbase, 5); - break; - - case 'Q': /* quetta or 2**100 */ - overflow = bkm_scale_by_power (&tmp, xbase, 10); - break; - - case 'R': /* ronna or 2**90 */ - overflow = bkm_scale_by_power (&tmp, xbase, 9); - break; - - case 'T': /* tera or tebi */ - case 't': /* 't' is undocumented; for compatibility only */ - overflow = bkm_scale_by_power (&tmp, xbase, 4); - break; - - case 'w': - overflow = bkm_scale (&tmp, 2); - break; - - case 'Y': /* yotta or 2**80 */ - overflow = bkm_scale_by_power (&tmp, xbase, 8); - break; - - case 'Z': /* zetta or 2**70 */ - overflow = bkm_scale_by_power (&tmp, xbase, 7); - break; - - default: - *val = tmp; - return err | LONGINT_INVALID_SUFFIX_CHAR; - } - - err |= overflow; - *p += suffixes; - if (**p != '\0') - err |= LONGINT_INVALID_SUFFIX_CHAR; - } - - *val = tmp; - return err; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/timefmt.c b/recipes/wip/files/mc/source/lib/timefmt.c deleted file mode 100644 index b79671effe..0000000000 --- a/recipes/wip/files/mc/source/lib/timefmt.c +++ /dev/null @@ -1,156 +0,0 @@ -/* - Time formatting functions - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Miguel de Icaza, 1994, 1995, 1996 - Janne Kukonlehto, 1994, 1995, 1996 - Dugan Porter, 1994, 1995, 1996 - Jakub Jelinek, 1994, 1995, 1996 - Mauricio Plaza, 1994, 1995, 1996 - - The file_date routine is mostly from GNU's fileutils package, - written by Richard Stallman and David MacKenzie. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file - * \brief Source: time formatting functions - */ - -#include - -#include -#include /* MB_LEN_MAX */ - -#include "lib/global.h" -#include "lib/strutil.h" - -#include "lib/timefmt.h" - -/*** global variables ****************************************************************************/ - -char *user_recent_timeformat = NULL; /* time format string for recent dates */ -char *user_old_timeformat = NULL; /* time format string for older dates */ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* - * Cache variable for the i18n_checktimelength function, - * initially set to a clearly invalid value to show that - * it hasn't been initialized yet. - */ -static size_t i18n_timelength_cache = MAX_I18NTIMELENGTH + 1; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/** - * Check strftime() results. Some systems (i.e. Solaris) have different - * short-month and month name sizes for different locales - */ -size_t -i18n_checktimelength (void) -{ - size_t length = 0; - time_t testtime; - struct tm *lt; - - if (i18n_timelength_cache <= MAX_I18NTIMELENGTH) - return i18n_timelength_cache; - - testtime = time (NULL); - lt = localtime (&testtime); - - if (lt == NULL) - { - /* huh, localtime() doesn't seem to work ... falling back to "(invalid)" */ - length = str_term_width1 (_(INVALID_TIME_TEXT)); - } - else - { - char buf[MB_LEN_MAX * MAX_I18NTIMELENGTH + 1]; - size_t tlen; - - /* We are interested in the longest possible date */ - lt->tm_sec = lt->tm_min = lt->tm_hour = lt->tm_mday = 10; - - /* Loop through all months to find out the longest one */ - for (lt->tm_mon = 0; lt->tm_mon < 12; lt->tm_mon++) - { - strftime (buf, sizeof (buf) - 1, user_recent_timeformat, lt); - tlen = (size_t) str_term_width1 (buf); - length = MAX (tlen, length); - strftime (buf, sizeof (buf) - 1, user_old_timeformat, lt); - tlen = (size_t) str_term_width1 (buf); - length = MAX (tlen, length); - } - - tlen = (size_t) str_term_width1 (_(INVALID_TIME_TEXT)); - length = MAX (tlen, length); - } - - /* Don't handle big differences. Use standard value (email bug, please) */ - if (length > MAX_I18NTIMELENGTH || length < MIN_I18NTIMELENGTH) - length = STD_I18NTIMELENGTH; - - /* Save obtained value to the cache */ - i18n_timelength_cache = length; - - return i18n_timelength_cache; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -file_date (time_t when) -{ - static char timebuf[MB_LEN_MAX * MAX_I18NTIMELENGTH + 1]; - time_t current_time = time (NULL); - const char *fmt; - - if (current_time > when + 6L * 30L * 24L * 60L * 60L /* Old. */ - || current_time < when - 60L * 60L) /* In the future. */ - /* The file is fairly old or in the future. - POSIX says the cutoff is 6 months old; - approximate this by 6*30 days. - Allow a 1 hour slop factor for what is considered "the future", - to allow for NFS server/client clock disagreement. - Show the year instead of the time of day. */ - - fmt = user_old_timeformat; - else - fmt = user_recent_timeformat; - - FMT_LOCALTIME (timebuf, sizeof (timebuf), fmt, when); - - return timebuf; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/timefmt.h b/recipes/wip/files/mc/source/lib/timefmt.h deleted file mode 100644 index 7e3a1d780c..0000000000 --- a/recipes/wip/files/mc/source/lib/timefmt.h +++ /dev/null @@ -1,59 +0,0 @@ - -/** \file timefmt.h - * \brief Header: time formatting functions - */ - -#ifndef MC__UTIL_TIMEFMT_H -#define MC__UTIL_TIMEFMT_H - -#include -#include - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define MAX_I18NTIMELENGTH 20 -#define MIN_I18NTIMELENGTH 10 -#define STD_I18NTIMELENGTH 12 - -#define INVALID_TIME_TEXT "(invalid)" - -/* safe localtime formatting - strftime()-using version */ -#define FMT_LOCALTIME(buffer, bufsize, fmt, when) \ - { \ - struct tm *whentm; \ - whentm = localtime(&when); \ - if (whentm == NULL) \ - { \ - strncpy(buffer, INVALID_TIME_TEXT, bufsize); \ - buffer[bufsize-1] = 0; \ - } \ - else \ - { \ - strftime(buffer, bufsize, fmt, whentm); \ - } \ - } \ - -#define FMT_LOCALTIME_CURRENT(buffer, bufsize, fmt) \ - { \ - time_t __current_time; \ - time(&__current_time); \ - FMT_LOCALTIME(buffer,bufsize,fmt,__current_time); \ - } - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -extern char *user_recent_timeformat; /* time format string for recent dates */ -extern char *user_old_timeformat; /* time format string for older dates */ - -/*** declarations of public functions ************************************************************/ - -size_t i18n_checktimelength (void); -const char *file_date (time_t when); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__UTIL_TIMEFMT_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/Makefile.am b/recipes/wip/files/mc/source/lib/tty/Makefile.am deleted file mode 100644 index d4260fee8e..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/Makefile.am +++ /dev/null @@ -1,36 +0,0 @@ - -noinst_LTLIBRARIES = libmctty.la - -if USE_SCREEN_SLANG - TTY_SCREEN_SRC = \ - color-slang.c color-slang.h \ - tty-slang.c tty-slang.h -else - TTY_SCREEN_SRC = \ - color-ncurses.c \ - tty-ncurses.c tty-ncurses.h -endif - -TTY_SRC = \ - color-internal.c color-internal.h \ - color.c color.h \ - key.c key.h keyxdef.c \ - mouse.c mouse.h \ - tty-internal.c tty-internal.h \ - tty.c tty.h \ - win.c win.h - -if HAVE_TEXTMODE_X11_SUPPORT -TTY_SRC += x11conn.c x11conn.h -endif - -libmctty_la_SOURCES = $(TTY_SRC) $(TTY_SCREEN_SRC) - -AM_CPPFLAGS = -I$(top_srcdir) - -if HAVE_GMODULE -AM_CPPFLAGS += $(GMODULE_CFLAGS) -else -AM_CPPFLAGS += $(GLIB_CFLAGS) -endif - diff --git a/recipes/wip/files/mc/source/lib/tty/Makefile.in b/recipes/wip/files/mc/source/lib/tty/Makefile.in deleted file mode 100644 index fbdccb020c..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/Makefile.in +++ /dev/null @@ -1,805 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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@ -@HAVE_TEXTMODE_X11_SUPPORT_TRUE@am__append_1 = x11conn.c x11conn.h -@HAVE_GMODULE_TRUE@am__append_2 = $(GMODULE_CFLAGS) -@HAVE_GMODULE_FALSE@am__append_3 = $(GLIB_CFLAGS) -subdir = lib/tty -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libmctty_la_LIBADD = -am__libmctty_la_SOURCES_DIST = color-internal.c color-internal.h \ - color.c color.h key.c key.h keyxdef.c mouse.c mouse.h \ - tty-internal.c tty-internal.h tty.c tty.h win.c win.h \ - x11conn.c x11conn.h color-ncurses.c tty-ncurses.c \ - tty-ncurses.h color-slang.c color-slang.h tty-slang.c \ - tty-slang.h -@HAVE_TEXTMODE_X11_SUPPORT_TRUE@am__objects_1 = x11conn.lo -am__objects_2 = color-internal.lo color.lo key.lo keyxdef.lo mouse.lo \ - tty-internal.lo tty.lo win.lo $(am__objects_1) -@USE_SCREEN_SLANG_FALSE@am__objects_3 = color-ncurses.lo \ -@USE_SCREEN_SLANG_FALSE@ tty-ncurses.lo -@USE_SCREEN_SLANG_TRUE@am__objects_3 = color-slang.lo tty-slang.lo -am_libmctty_la_OBJECTS = $(am__objects_2) $(am__objects_3) -libmctty_la_OBJECTS = $(am_libmctty_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_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__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/color-internal.Plo \ - ./$(DEPDIR)/color-ncurses.Plo ./$(DEPDIR)/color-slang.Plo \ - ./$(DEPDIR)/color.Plo ./$(DEPDIR)/key.Plo \ - ./$(DEPDIR)/keyxdef.Plo ./$(DEPDIR)/mouse.Plo \ - ./$(DEPDIR)/tty-internal.Plo ./$(DEPDIR)/tty-ncurses.Plo \ - ./$(DEPDIR)/tty-slang.Plo ./$(DEPDIR)/tty.Plo \ - ./$(DEPDIR)/win.Plo ./$(DEPDIR)/x11conn.Plo -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libmctty_la_SOURCES) -DIST_SOURCES = $(am__libmctty_la_SOURCES_DIST) -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)` -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -noinst_LTLIBRARIES = libmctty.la -@USE_SCREEN_SLANG_FALSE@TTY_SCREEN_SRC = \ -@USE_SCREEN_SLANG_FALSE@ color-ncurses.c \ -@USE_SCREEN_SLANG_FALSE@ tty-ncurses.c tty-ncurses.h - -@USE_SCREEN_SLANG_TRUE@TTY_SCREEN_SRC = \ -@USE_SCREEN_SLANG_TRUE@ color-slang.c color-slang.h \ -@USE_SCREEN_SLANG_TRUE@ tty-slang.c tty-slang.h - -TTY_SRC = color-internal.c color-internal.h color.c color.h key.c \ - key.h keyxdef.c mouse.c mouse.h tty-internal.c tty-internal.h \ - tty.c tty.h win.c win.h $(am__append_1) -libmctty_la_SOURCES = $(TTY_SRC) $(TTY_SCREEN_SRC) -AM_CPPFLAGS = -I$(top_srcdir) $(am__append_2) $(am__append_3) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/tty/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/tty/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libmctty.la: $(libmctty_la_OBJECTS) $(libmctty_la_DEPENDENCIES) $(EXTRA_libmctty_la_DEPENDENCIES) - $(AM_V_CCLD)$(LINK) $(libmctty_la_OBJECTS) $(libmctty_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color-internal.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color-ncurses.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color-slang.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/color.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/key.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/keyxdef.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mouse.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tty-internal.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tty-ncurses.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tty-slang.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tty.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/win.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/x11conn.Plo@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.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 -o $@ $< - -.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 -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -f ./$(DEPDIR)/color-internal.Plo - -rm -f ./$(DEPDIR)/color-ncurses.Plo - -rm -f ./$(DEPDIR)/color-slang.Plo - -rm -f ./$(DEPDIR)/color.Plo - -rm -f ./$(DEPDIR)/key.Plo - -rm -f ./$(DEPDIR)/keyxdef.Plo - -rm -f ./$(DEPDIR)/mouse.Plo - -rm -f ./$(DEPDIR)/tty-internal.Plo - -rm -f ./$(DEPDIR)/tty-ncurses.Plo - -rm -f ./$(DEPDIR)/tty-slang.Plo - -rm -f ./$(DEPDIR)/tty.Plo - -rm -f ./$(DEPDIR)/win.Plo - -rm -f ./$(DEPDIR)/x11conn.Plo - -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-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f ./$(DEPDIR)/color-internal.Plo - -rm -f ./$(DEPDIR)/color-ncurses.Plo - -rm -f ./$(DEPDIR)/color-slang.Plo - -rm -f ./$(DEPDIR)/color.Plo - -rm -f ./$(DEPDIR)/key.Plo - -rm -f ./$(DEPDIR)/keyxdef.Plo - -rm -f ./$(DEPDIR)/mouse.Plo - -rm -f ./$(DEPDIR)/tty-internal.Plo - -rm -f ./$(DEPDIR)/tty-ncurses.Plo - -rm -f ./$(DEPDIR)/tty-slang.Plo - -rm -f ./$(DEPDIR)/tty.Plo - -rm -f ./$(DEPDIR)/win.Plo - -rm -f ./$(DEPDIR)/x11conn.Plo - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ - clean-generic clean-libtool clean-noinstLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/lib/tty/color-internal.c b/recipes/wip/files/mc/source/lib/tty/color-internal.c deleted file mode 100644 index ecabe8e377..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/color-internal.c +++ /dev/null @@ -1,244 +0,0 @@ -/* - Internal stuff of color setup - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2009 - Slava Zanko , 2009, 2013 - Egmont Koblinger , 2010 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file color-internal.c - * \brief Source: Internal stuff of color setup - */ - -#include - -#include /* strcmp */ - -#include "color.h" /* colors and attributes */ -#include "color-internal.h" - -/*** global variables ****************************************************************************/ - -gboolean mc_tty_color_disable; - -/*** file scope macro definitions ****************************************************************/ - -#define COLOR_INTENSITY 8 - -/*** file scope type declarations ****************************************************************/ - -typedef struct mc_tty_color_table_struct -{ - const char *name; - int value; -} mc_tty_color_table_t; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static mc_tty_color_table_t const color_table[] = { - {"black", COLOR_BLACK}, - {"gray", COLOR_BLACK + COLOR_INTENSITY}, - {"red", COLOR_RED}, - {"brightred", COLOR_RED + COLOR_INTENSITY}, - {"green", COLOR_GREEN}, - {"brightgreen", COLOR_GREEN + COLOR_INTENSITY}, - {"brown", COLOR_YELLOW}, - {"yellow", COLOR_YELLOW + COLOR_INTENSITY}, - {"blue", COLOR_BLUE}, - {"brightblue", COLOR_BLUE + COLOR_INTENSITY}, - {"magenta", COLOR_MAGENTA}, - {"brightmagenta", COLOR_MAGENTA + COLOR_INTENSITY}, - {"cyan", COLOR_CYAN}, - {"brightcyan", COLOR_CYAN + COLOR_INTENSITY}, - {"lightgray", COLOR_WHITE}, - {"white", COLOR_WHITE + COLOR_INTENSITY}, - {"default", -1}, /* default color of the terminal */ - /* special colors */ - {"A_REVERSE", SPEC_A_REVERSE}, - {"A_BOLD", SPEC_A_BOLD}, - {"A_BOLD_REVERSE", SPEC_A_BOLD_REVERSE}, - {"A_UNDERLINE", SPEC_A_UNDERLINE}, - /* End of list */ - {NULL, 0} -}; - -static mc_tty_color_table_t const attributes_table[] = { - {"bold", A_BOLD}, -#ifdef A_ITALIC /* available since ncurses-5.9-20130831 / slang-pre2.3.0-107 */ - {"italic", A_ITALIC}, -#endif /* A_ITALIC */ - {"underline", A_UNDERLINE}, - {"reverse", A_REVERSE}, - {"blink", A_BLINK}, - /* End of list */ - {NULL, 0} -}; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static inline int -parse_hex_digit (char c) -{ - if (c >= '0' && c <= '9') - return c - '0'; - c |= 0x20; - if (c >= 'a' && c <= 'f') - return c - 'a' + 10; - return -1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -parse_256_or_true_color_name (const char *color_name) -{ - int i; - char dummy; - - /* cppcheck-suppress invalidscanf */ - if (sscanf (color_name, "color%d%c", &i, &dummy) == 1 && i >= 0 && i < 256) - { - return i; - } - /* cppcheck-suppress invalidscanf */ - if (sscanf (color_name, "gray%d%c", &i, &dummy) == 1 && i >= 0 && i < 24) - { - return 232 + i; - } - if (strncmp (color_name, "rgb", 3) == 0 && - color_name[3] >= '0' && color_name[3] < '6' && - color_name[4] >= '0' && color_name[4] < '6' && - color_name[5] >= '0' && color_name[5] < '6' && color_name[6] == '\0') - { - return 16 + 36 * (color_name[3] - '0') + 6 * (color_name[4] - '0') + (color_name[5] - '0'); - } - if (color_name[0] == '#') - { - int len; - - color_name++; - len = (int) strlen (color_name); - if (len == 3 || len == 6) - { - int h[6]; - - for (i = 0; i < len; i++) - { - h[i] = parse_hex_digit (color_name[i]); - if (h[i] == -1) - return -1; - } - - if (i == 3) - i = (h[0] << 20) | (h[0] << 16) | (h[1] << 12) | (h[1] << 8) | (h[2] << 4) | h[2]; - else - i = (h[0] << 20) | (h[1] << 16) | (h[2] << 12) | (h[3] << 8) | (h[4] << 4) | h[5]; - return (1 << 24) | i; - } - } - - return -1; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -const char * -tty_color_get_name_by_index (int idx) -{ - int i; - - /* Find the real English name of the first 16 colors, */ - /* as well as the A_* special values. */ - for (i = 0; color_table[i].name != NULL; i++) - if (idx == color_table[i].value) - return color_table[i].name; - - /* Create and return the strings in "colorNNN" or "#rrggbb" format. */ - if ((idx >= 16 && idx < 256) || (idx & (1 << 24)) != 0) - { - char name[9]; - - if (idx < 256) - g_snprintf (name, sizeof (name), "color%d", idx); - else - g_snprintf (name, sizeof (name), "#%06X", (unsigned int) idx & 0xFFFFFF); - return g_intern_string (name); - } - return "default"; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_color_get_index_by_name (const char *color_name) -{ - if (color_name != NULL) - { - size_t i; - - for (i = 0; color_table[i].name != NULL; i++) - if (strcmp (color_name, color_table[i].name) == 0) - return color_table[i].value; - return parse_256_or_true_color_name (color_name); - } - return -1; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_attr_get_bits (const char *attrs) -{ - int attr_bits = 0; - - if (attrs != NULL) - { - gchar **attr_list; - int i; - - attr_list = g_strsplit (attrs, "+", -1); - - for (i = 0; attr_list[i] != NULL; i++) - { - int j; - - for (j = 0; attributes_table[j].name != NULL; j++) - { - if (strcmp (attr_list[i], attributes_table[j].name) == 0) - { - attr_bits |= attributes_table[j].value; - break; - } - } - } - g_strfreev (attr_list); - } - return attr_bits; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/color-internal.h b/recipes/wip/files/mc/source/lib/tty/color-internal.h deleted file mode 100644 index a9b8d69079..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/color-internal.h +++ /dev/null @@ -1,62 +0,0 @@ - -/** \file color-internal.h - * \brief Header: Internal stuff of color setup - */ - -#ifndef MC__COLOR_INTERNAL_H -#define MC__COLOR_INTERNAL_H - -#include /* size_t */ - -#include "lib/global.h" - -#ifdef HAVE_SLANG -#include "tty-slang.h" -#else -#include "tty-ncurses.h" -#endif /* HAVE_SLANG */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/* *INDENT-OFF* */ -typedef enum { - SPEC_A_REVERSE = -100, - SPEC_A_BOLD = -101, - SPEC_A_BOLD_REVERSE = -102, - SPEC_A_UNDERLINE = -103 -} tty_special_color_t; -/* *INDENT-ON* */ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/* Screen library specific color pair */ -typedef struct -{ - int fg; - int bg; - int attr; - size_t pair_index; - gboolean is_temp; -} tty_color_lib_pair_t; - -/*** global variables defined in .c file *********************************************************/ - -extern gboolean use_colors; -extern gboolean mc_tty_color_disable; - -/*** declarations of public functions ************************************************************/ - -const char *tty_color_get_name_by_index (int idx); -int tty_color_get_index_by_name (const char *color_name); -int tty_attr_get_bits (const char *attrs); - -void tty_color_init_lib (gboolean disable, gboolean force); -void tty_color_deinit_lib (void); - -void tty_color_try_alloc_lib_pair (tty_color_lib_pair_t * mc_color_pair); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__COLOR_INTERNAL_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/color-ncurses.c b/recipes/wip/files/mc/source/lib/tty/color-ncurses.c deleted file mode 100644 index 6ca99ff3f5..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/color-ncurses.c +++ /dev/null @@ -1,251 +0,0 @@ -/* - Color setup for NCurses screen library - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2009 - Slava Zanko , 2010 - Egmont Koblinger , 2010 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file color-ncurses.c - * \brief Source: NCUrses-specific color setup - */ - -#include - -#include -#include -#include -#include /* size_t */ - -#include "lib/global.h" - -#include "tty-ncurses.h" -#include "color.h" /* variables */ -#include "color-internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static GHashTable *mc_tty_color_color_pair_attrs = NULL; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static inline void -mc_tty_color_attr_destroy_cb (gpointer data) -{ - g_free (data); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_tty_color_save_attr (int color_pair, int color_attr) -{ - int *attr, *key; - - attr = g_try_new0 (int, 1); - if (attr == NULL) - return; - - key = g_try_new (int, 1); - if (key == NULL) - { - g_free (attr); - return; - } - - *key = color_pair; - *attr = color_attr; - - g_hash_table_replace (mc_tty_color_color_pair_attrs, (gpointer) key, (gpointer) attr); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -color_get_attr (int color_pair) -{ - int *fnd = NULL; - - if (mc_tty_color_color_pair_attrs != NULL) - fnd = (int *) g_hash_table_lookup (mc_tty_color_color_pair_attrs, (gpointer) & color_pair); - return (fnd != NULL) ? *fnd : 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_tty_color_pair_init_special (tty_color_lib_pair_t *mc_color_pair, - int fg1, int bg1, int fg2, int bg2, int attr) -{ - if (has_colors () && !mc_tty_color_disable) - init_pair (mc_color_pair->pair_index, fg1, bg1); - else - init_pair (mc_color_pair->pair_index, fg2, bg2); - mc_tty_color_save_attr (mc_color_pair->pair_index, attr); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -tty_color_init_lib (gboolean disable, gboolean force) -{ - (void) force; - - if (has_colors () && !disable) - { - use_colors = TRUE; - start_color (); - use_default_colors (); - } - - mc_tty_color_color_pair_attrs = g_hash_table_new_full - (g_int_hash, g_int_equal, mc_tty_color_attr_destroy_cb, mc_tty_color_attr_destroy_cb); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_color_deinit_lib (void) -{ - g_hash_table_destroy (mc_tty_color_color_pair_attrs); - mc_tty_color_color_pair_attrs = NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_color_try_alloc_lib_pair (tty_color_lib_pair_t *mc_color_pair) -{ - if (mc_color_pair->fg <= (int) SPEC_A_REVERSE) - { - switch (mc_color_pair->fg) - { - case SPEC_A_REVERSE: - mc_tty_color_pair_init_special (mc_color_pair, - COLOR_BLACK, COLOR_WHITE, - COLOR_BLACK, COLOR_WHITE | A_BOLD, A_REVERSE); - break; - case SPEC_A_BOLD: - mc_tty_color_pair_init_special (mc_color_pair, - COLOR_WHITE, COLOR_BLACK, - COLOR_WHITE, COLOR_BLACK, A_BOLD); - break; - case SPEC_A_BOLD_REVERSE: - mc_tty_color_pair_init_special (mc_color_pair, - COLOR_WHITE, COLOR_WHITE, - COLOR_WHITE, COLOR_WHITE, A_BOLD | A_REVERSE); - break; - case SPEC_A_UNDERLINE: - mc_tty_color_pair_init_special (mc_color_pair, - COLOR_WHITE, COLOR_BLACK, - COLOR_WHITE, COLOR_BLACK, A_UNDERLINE); - break; - default: - break; - } - } - else - { - int ifg, ibg, attr; - - ifg = mc_color_pair->fg; - ibg = mc_color_pair->bg; - attr = mc_color_pair->attr; - - /* In legacy color mode, change bright colors into bold */ - if (!tty_use_256colors (NULL) && !tty_use_truecolors (NULL)) - { - if (ifg >= 8 && ifg < 16) - { - ifg &= 0x07; - attr |= A_BOLD; - } - - if (ibg >= 8 && ibg < 16) - { - ibg &= 0x07; - /* attr | = A_BOLD | A_REVERSE ; */ - } - } - - init_pair (mc_color_pair->pair_index, ifg, ibg); - mc_tty_color_save_attr (mc_color_pair->pair_index, attr); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_setcolor (int color) -{ - attrset (COLOR_PAIR (color) | color_get_attr (color)); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_lowlevel_setcolor (int color) -{ - tty_setcolor (color); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_set_normal_attrs (void) -{ - standend (); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -tty_use_256colors (GError **error) -{ - (void) error; - - return (COLORS == 256); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -tty_use_truecolors (GError **error) -{ - /* Not yet supported in ncurses */ - g_set_error (error, MC_ERROR, -1, _("True color not supported with ncurses.")); - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/color-slang.c b/recipes/wip/files/mc/source/lib/tty/color-slang.c deleted file mode 100644 index 8d9195e94c..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/color-slang.c +++ /dev/null @@ -1,260 +0,0 @@ -/* - Color setup for S_Lang screen library - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2009 - Egmont Koblinger , 2010 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file color-slang.c - * \brief Source: S-Lang-specific color setup - */ - -#include - -#include -#include -#include -#include /* size_t */ - -#include "lib/global.h" -#include "lib/util.h" /* whitespace() */ - -#include "tty-slang.h" -#include "color.h" /* variables */ -#include "color-internal.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static int -has_colors (gboolean disable, gboolean force) -{ - mc_tty_color_disable = disable; - - if (force || (getenv ("COLORTERM") != NULL)) - SLtt_Use_Ansi_Colors = 1; - - if (!mc_tty_color_disable) - { - const char *terminal = getenv ("TERM"); - const size_t len = strlen (terminal); - char *cts = mc_global.tty.color_terminal_string; - - /* check mc_global.tty.color_terminal_string */ - while (*cts != '\0') - { - char *s; - size_t i = 0; - - while (whitespace (*cts)) - cts++; - s = cts; - - while (*cts != '\0' && *cts != ',') - { - cts++; - i++; - } - - if ((i != 0) && (i == len) && (strncmp (s, terminal, i) == 0)) - SLtt_Use_Ansi_Colors = 1; - - if (*cts == ',') - cts++; - } - } - return SLtt_Use_Ansi_Colors; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_tty_color_pair_init_special (tty_color_lib_pair_t *mc_color_pair, - const char *fg1, const char *bg1, - const char *fg2, const char *bg2, SLtt_Char_Type mask) -{ - if (SLtt_Use_Ansi_Colors != 0) - { - if (!mc_tty_color_disable) - { - SLtt_set_color (mc_color_pair->pair_index, (char *) "", (char *) fg1, (char *) bg1); - } - else - { - SLtt_set_color (mc_color_pair->pair_index, (char *) "", (char *) fg2, (char *) bg2); - } - } - else - { - SLtt_set_mono (mc_color_pair->pair_index, NULL, mask); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -tty_color_init_lib (gboolean disable, gboolean force) -{ - /* FIXME: if S-Lang is used, has_colors() must be called regardless - of whether we are interested in its result */ - if (has_colors (disable, force) && !disable) - { - use_colors = TRUE; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_color_deinit_lib (void) -{ -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_color_try_alloc_lib_pair (tty_color_lib_pair_t *mc_color_pair) -{ - if (mc_color_pair->fg <= (int) SPEC_A_REVERSE) - { - switch (mc_color_pair->fg) - { - case SPEC_A_REVERSE: - mc_tty_color_pair_init_special (mc_color_pair, - "black", "white", "black", "lightgray", SLTT_REV_MASK); - break; - case SPEC_A_BOLD: - mc_tty_color_pair_init_special (mc_color_pair, - "white", "black", "white", "black", SLTT_BOLD_MASK); - break; - case SPEC_A_BOLD_REVERSE: - mc_tty_color_pair_init_special (mc_color_pair, - "white", "white", - "white", "white", SLTT_BOLD_MASK | SLTT_REV_MASK); - break; - case SPEC_A_UNDERLINE: - mc_tty_color_pair_init_special (mc_color_pair, - "white", "black", "white", "black", SLTT_ULINE_MASK); - break; - default: - break; - } - } - else - { - const char *fg, *bg; - - fg = tty_color_get_name_by_index (mc_color_pair->fg); - bg = tty_color_get_name_by_index (mc_color_pair->bg); - SLtt_set_color (mc_color_pair->pair_index, (char *) "", (char *) fg, (char *) bg); - SLtt_add_color_attribute (mc_color_pair->pair_index, mc_color_pair->attr); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_setcolor (int color) -{ - SLsmg_set_color (color); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Set colorpair by index, don't interpret S-Lang "emulated attributes" - */ - -void -tty_lowlevel_setcolor (int color) -{ - SLsmg_set_color (color & 0x7F); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_set_normal_attrs (void) -{ - SLsmg_normal_video (); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -tty_use_256colors (GError **error) -{ - gboolean ret; - - ret = (SLtt_Use_Ansi_Colors && SLtt_tgetnum ((char *) "Co") == 256); - - if (!ret) - g_set_error (error, MC_ERROR, -1, - _("Your terminal doesn't even seem to support 256 colors.")); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -tty_use_truecolors (GError **error) -{ - char *colorterm; - - /* True color is supported since slang-2.3.1 on 64-bit machines, - and expected to be supported from slang-3 on 32-bit machines: - http://lists.jedsoft.org/lists/slang-users/2016/0000014.html. - Check for sizeof (long) being 8, exactly as slang does. */ - if (SLang_Version < 20301 || (sizeof (long) != 8 && SLang_Version < 30000)) - { - g_set_error (error, MC_ERROR, -1, _("True color not supported in this slang version.")); - return FALSE; - } - - /* Duplicate slang's check so that we can pop up an error message - rather than silently use wrong colors. */ - colorterm = getenv ("COLORTERM"); - if (colorterm == NULL - || (strcmp (colorterm, "truecolor") != 0 && strcmp (colorterm, "24bit") != 0)) - { - g_set_error (error, MC_ERROR, -1, - _("Set COLORTERM=truecolor if your terminal really supports true colors.")); - return FALSE; - } - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/color-slang.h b/recipes/wip/files/mc/source/lib/tty/color-slang.h deleted file mode 100644 index a1a8d55734..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/color-slang.h +++ /dev/null @@ -1,56 +0,0 @@ - -/** \file color-slang.h - * \brief Header: S-Lang-specific color setup - */ - -#ifndef MC__COLOR_SLANG_H -#define MC__COLOR_SLANG_H - -#include "tty-slang.h" /* S-Lang headers */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -/* When using Slang with color, we have all the indexes free but - * those defined here (A_BOLD, A_ITALIC, A_UNDERLINE, A_REVERSE, A_BLINK) - */ - -#ifndef A_BOLD -#define A_BOLD SLTT_BOLD_MASK -#endif /* A_BOLD */ -#ifdef SLTT_ITALIC_MASK /* available since slang-pre2.3.0-107 */ -#ifndef A_ITALIC -#define A_ITALIC SLTT_ITALIC_MASK -#endif /* A_ITALIC */ -#endif /* SLTT_ITALIC_MASK */ -#ifndef A_UNDERLINE -#define A_UNDERLINE SLTT_ULINE_MASK -#endif /* A_UNDERLINE */ -#ifndef A_REVERSE -#define A_REVERSE SLTT_REV_MASK -#endif /* A_REVERSE */ -#ifndef A_BLINK -#define A_BLINK SLTT_BLINK_MASK -#endif /* A_BLINK */ - -/*** enums ***************************************************************************************/ - -enum -{ - COLOR_BLACK = 0, - COLOR_RED, - COLOR_GREEN, - COLOR_YELLOW, - COLOR_BLUE, - COLOR_MAGENTA, - COLOR_CYAN, - COLOR_WHITE -}; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/*** inline functions ****************************************************************************/ -#endif /* MC_COLOR_SLANG_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/color.c b/recipes/wip/files/mc/source/lib/tty/color.c deleted file mode 100644 index fea0d7f1be..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/color.c +++ /dev/null @@ -1,233 +0,0 @@ -/* - Color setup. - Interface functions. - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2009 - Slava Zanko , 2009 - Egmont Koblinger , 2010 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file color.c - * \brief Source: color setup - */ - -#include - -#include -#include -#include -#include /* size_t */ - -#include "lib/global.h" - -#include "tty.h" -#include "color.h" - -#include "color-internal.h" - -/*** global variables ****************************************************************************/ - -/* *INDENT-OFF* */ -static tty_color_pair_t tty_color_defaults = -{ - .fg = NULL, - .bg = NULL, - .attrs = NULL, - .pair_index = 0 -}; -/* *INDENT-ON* */ - -/* Set if we are actually using colors */ -gboolean use_colors = FALSE; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static GHashTable *mc_tty_color__hashtable = NULL; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_color__deinit (tty_color_pair_t *color) -{ - g_free (color->fg); - g_free (color->bg); - g_free (color->attrs); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -tty_color_free_temp_cb (gpointer key, gpointer value, gpointer user_data) -{ - (void) key; - (void) user_data; - - return ((tty_color_lib_pair_t *) value)->is_temp; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -tty_color_get_next_cpn_cb (gpointer key, gpointer value, gpointer user_data) -{ - tty_color_lib_pair_t *mc_color_pair = (tty_color_lib_pair_t *) value; - size_t cp = GPOINTER_TO_SIZE (user_data); - - (void) key; - - return (cp == mc_color_pair->pair_index); -} - -/* --------------------------------------------------------------------------------------------- */ - -static size_t -tty_color_get_next__color_pair_number (void) -{ - size_t cp_count, cp; - - cp_count = g_hash_table_size (mc_tty_color__hashtable); - for (cp = 0; cp < cp_count; cp++) - if (g_hash_table_find (mc_tty_color__hashtable, tty_color_get_next_cpn_cb, - GSIZE_TO_POINTER (cp)) == NULL) - break; - - return cp; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -tty_init_colors (gboolean disable, gboolean force) -{ - tty_color_init_lib (disable, force); - mc_tty_color__hashtable = g_hash_table_new_full (g_str_hash, g_str_equal, g_free, g_free); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_colors_done (void) -{ - tty_color_deinit_lib (); - mc_color__deinit (&tty_color_defaults); - g_hash_table_destroy (mc_tty_color__hashtable); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -tty_use_colors (void) -{ - return use_colors; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_try_alloc_color_pair (const tty_color_pair_t *color, gboolean is_temp) -{ - gboolean is_base; - gchar *color_pair; - tty_color_lib_pair_t *mc_color_pair; - int ifg, ibg, attr; - - is_base = (color->fg == NULL || strcmp (color->fg, "base") == 0); - ifg = tty_color_get_index_by_name (is_base ? tty_color_defaults.fg : color->fg); - is_base = (color->bg == NULL || strcmp (color->bg, "base") == 0); - ibg = tty_color_get_index_by_name (is_base ? tty_color_defaults.bg : color->bg); - is_base = (color->attrs == NULL || strcmp (color->attrs, "base") == 0); - attr = tty_attr_get_bits (is_base ? tty_color_defaults.attrs : color->attrs); - - color_pair = g_strdup_printf ("%d.%d.%d", ifg, ibg, attr); - if (color_pair == NULL) - return 0; - - mc_color_pair = - (tty_color_lib_pair_t *) g_hash_table_lookup (mc_tty_color__hashtable, - (gpointer) color_pair); - - if (mc_color_pair != NULL) - { - g_free (color_pair); - return mc_color_pair->pair_index; - } - - mc_color_pair = g_try_new0 (tty_color_lib_pair_t, 1); - if (mc_color_pair == NULL) - { - g_free (color_pair); - return 0; - } - - mc_color_pair->is_temp = is_temp; - mc_color_pair->fg = ifg; - mc_color_pair->bg = ibg; - mc_color_pair->attr = attr; - mc_color_pair->pair_index = tty_color_get_next__color_pair_number (); - - tty_color_try_alloc_lib_pair (mc_color_pair); - - g_hash_table_insert (mc_tty_color__hashtable, (gpointer) color_pair, (gpointer) mc_color_pair); - - return mc_color_pair->pair_index; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_color_free_temp (void) -{ - g_hash_table_foreach_remove (mc_tty_color__hashtable, tty_color_free_temp_cb, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_color_free_all (void) -{ - g_hash_table_remove_all (mc_tty_color__hashtable); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_color_set_defaults (const tty_color_pair_t *color) -{ - mc_color__deinit (&tty_color_defaults); - - tty_color_defaults.fg = g_strdup (color->fg); - tty_color_defaults.bg = g_strdup (color->bg); - tty_color_defaults.attrs = g_strdup (color->attrs); - tty_color_defaults.pair_index = 0; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/color.h b/recipes/wip/files/mc/source/lib/tty/color.h deleted file mode 100644 index e09516f6e6..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/color.h +++ /dev/null @@ -1,60 +0,0 @@ -/** \file color.h - * \brief Header: color setup - * - * PLEASE FORGOT ABOUT tty/color.h! - * Use skin engine for getting needed color pairs. - * - * edit/syntax.c may use this file directly, I'm agree. :) - * - */ - -#ifndef MC__COLOR_H -#define MC__COLOR_H - -#include "lib/global.h" /* glib.h */ - -#ifdef HAVE_SLANG -#include "color-slang.h" -#else -#include "tty-ncurses.h" -#endif - -/*** typedefs(not structures) and defined constants **********************************************/ - -typedef struct -{ - char *fg; - char *bg; - char *attrs; - size_t pair_index; -} tty_color_pair_t; - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -void tty_init_colors (gboolean disable, gboolean force); -void tty_colors_done (void); - -gboolean tty_use_colors (void); -int tty_try_alloc_color_pair (const tty_color_pair_t * color, gboolean is_temp); - -void tty_color_free_temp (void); -void tty_color_free_all (void); - -void tty_setcolor (int color); -void tty_lowlevel_setcolor (int color); -void tty_set_normal_attrs (void); - -void tty_color_set_defaults (const tty_color_pair_t * color); - -extern gboolean tty_use_256colors (GError ** error); -extern gboolean tty_use_truecolors (GError ** error); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__COLOR_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/key.c b/recipes/wip/files/mc/source/lib/tty/key.c deleted file mode 100644 index e2d68ad7e2..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/key.c +++ /dev/null @@ -1,2244 +0,0 @@ -/* - Keyboard support routines. - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Miguel de Icaza, 1994, 1995 - Janne Kukonlehto, 1994, 1995 - Jakub Jelinek, 1995 - Norbert Warmuth, 1997 - Denys Vlasenko , 2013 - Slava Zanko , 2013 - Egmont Koblinger , 2013 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file key.c - * \brief Source: keyboard support routines - */ - -#include - -#include -#include -#include -#include -#include -#ifdef HAVE_SYS_SELECT_H -#include -#else -#include -#include -#include -#endif - -#include "lib/global.h" - -#include "lib/vfs/vfs.h" - -#include "tty.h" -#include "tty-internal.h" /* mouse_enabled */ -#include "mouse.h" -#include "key.h" - -#include "lib/widget.h" /* mc_refresh() */ - -#ifdef HAVE_TEXTMODE_X11_SUPPORT -#include "x11conn.h" -#endif - -#ifdef __linux__ -#if defined(__GLIBC__) && (__GLIBC__ < 2) -#include /* TIOCLINUX */ -#else -#include -#endif -#ifdef HAVE_SYS_IOCTL_H -#include -#endif -#endif /* __linux__ */ - -#ifdef __CYGWIN__ -#include -#ifdef HAVE_SYS_IOCTL_H -#include -#endif -#endif /* __CYGWIN__ */ - -#ifdef __QNXNTO__ -#include -#include -#include -#endif /* __QNXNTO__ */ - -/*** global variables ****************************************************************************/ - -int mou_auto_repeat = 100; /* ms */ -int double_click_speed = 250; /* ms */ -gboolean old_esc_mode = TRUE; -/* timeout for old_esc_mode in usec */ -int old_esc_mode_timeout = G_USEC_PER_SEC; /* us, settable via env */ -gboolean use_8th_bit_as_meta = FALSE; - -gboolean bracketed_pasting_in_progress = FALSE; - -/* This table is a mapping between names and the constants we use - * We use this to allow users to define alternate definitions for - * certain keys that may be missing from the terminal database - */ -const key_code_name_t key_name_conv_tab[] = { - {ESC_CHAR, "escape", N_("Escape"), "Esc"}, - /* KEY_F(0) is not here, since we are mapping it to f10, so there is no reason - to define f0 as well. Also, it makes Learn keys a bunch of problems :( */ - {KEY_F (1), "f1", N_("Function key 1"), "F1"}, - {KEY_F (2), "f2", N_("Function key 2"), "F2"}, - {KEY_F (3), "f3", N_("Function key 3"), "F3"}, - {KEY_F (4), "f4", N_("Function key 4"), "F4"}, - {KEY_F (5), "f5", N_("Function key 5"), "F5"}, - {KEY_F (6), "f6", N_("Function key 6"), "F6"}, - {KEY_F (7), "f7", N_("Function key 7"), "F7"}, - {KEY_F (8), "f8", N_("Function key 8"), "F8"}, - {KEY_F (9), "f9", N_("Function key 9"), "F9"}, - {KEY_F (10), "f10", N_("Function key 10"), "F10"}, - {KEY_F (11), "f11", N_("Function key 11"), "F11"}, - {KEY_F (12), "f12", N_("Function key 12"), "F12"}, - {KEY_F (13), "f13", N_("Function key 13"), "F13"}, - {KEY_F (14), "f14", N_("Function key 14"), "F14"}, - {KEY_F (15), "f15", N_("Function key 15"), "F15"}, - {KEY_F (16), "f16", N_("Function key 16"), "F16"}, - {KEY_F (17), "f17", N_("Function key 17"), "F17"}, - {KEY_F (18), "f18", N_("Function key 18"), "F18"}, - {KEY_F (19), "f19", N_("Function key 19"), "F19"}, - {KEY_F (20), "f20", N_("Function key 20"), "F20"}, - {ALT ('\t'), "complete", N_("Completion/M-tab"), "Meta-Tab"}, - {KEY_BTAB, "backtab", N_("BackTab/S-tab"), "Shift-Tab"}, - {KEY_BACKSPACE, "backspace", N_("Backspace"), "Backspace"}, - {KEY_UP, "up", N_("Up arrow"), "Up"}, - {KEY_DOWN, "down", N_("Down arrow"), "Down"}, - {KEY_LEFT, "left", N_("Left arrow"), "Left"}, - {KEY_RIGHT, "right", N_("Right arrow"), "Right"}, - {KEY_IC, "insert", N_("Insert"), "Ins"}, - {KEY_DC, "delete", N_("Delete"), "Del"}, - {KEY_HOME, "home", N_("Home"), "Home"}, - {KEY_END, "end", N_("End key"), "End"}, - {KEY_PPAGE, "pgup", N_("Page Up"), "PgUp"}, - {KEY_NPAGE, "pgdn", N_("Page Down"), "PgDn"}, - {(int) '/', "kpslash", N_("/ on keypad"), "/"}, - {KEY_KP_MULTIPLY, "kpasterisk", N_("* on keypad"), "*"}, - {KEY_KP_SUBTRACT, "kpminus", N_("- on keypad"), "-"}, - {KEY_KP_ADD, "kpplus", N_("+ on keypad"), "+"}, - - /* From here on, these won't be shown in Learn keys (no space) */ - {KEY_LEFT, "kpleft", N_("Left arrow keypad"), "Left"}, - {KEY_RIGHT, "kpright", N_("Right arrow keypad"), "Right"}, - {KEY_UP, "kpup", N_("Up arrow keypad"), "Up"}, - {KEY_DOWN, "kpdown", N_("Down arrow keypad"), "Down"}, - {KEY_HOME, "kphome", N_("Home on keypad"), "Home"}, - {KEY_END, "kpend", N_("End on keypad"), "End"}, - {KEY_NPAGE, "kpnpage", N_("Page Down keypad"), "PgDn"}, - {KEY_PPAGE, "kpppage", N_("Page Up keypad"), "PgUp"}, - {KEY_IC, "kpinsert", N_("Insert on keypad"), "Ins"}, - {KEY_DC, "kpdelete", N_("Delete on keypad"), "Del"}, - {(int) '\n', "kpenter", N_("Enter on keypad"), "Enter"}, - {KEY_F (21), "f21", N_("Function key 21"), "F21"}, - {KEY_F (22), "f22", N_("Function key 22"), "F22"}, - {KEY_F (23), "f23", N_("Function key 23"), "F23"}, - {KEY_F (24), "f24", N_("Function key 24"), "F24"}, - {KEY_A1, "a1", N_("A1 key"), "A1"}, - {KEY_C1, "c1", N_("C1 key"), "C1"}, - - /* Alternative label */ - {ESC_CHAR, "esc", N_("Escape"), "Esc"}, - {KEY_BACKSPACE, "bs", N_("Backspace"), "Bakspace"}, - {KEY_IC, "ins", N_("Insert"), "Ins"}, - {KEY_DC, "del", N_("Delete"), "Del"}, - {(int) '*', "asterisk", N_("Asterisk"), "*"}, - {(int) '-', "minus", N_("Minus"), "-"}, - {(int) '+', "plus", N_("Plus"), "+"}, - {(int) '.', "dot", N_("Dot"), "."}, - {(int) '<', "lt", N_("Less than"), "<"}, - {(int) '>', "gt", N_("Great than"), ">"}, - {(int) '=', "equal", N_("Equal"), "="}, - {(int) ',', "comma", N_("Comma"), ","}, - {(int) '\'', "apostrophe", N_("Apostrophe"), "\'"}, - {(int) ':', "colon", N_("Colon"), ":"}, - {(int) ';', "semicolon", N_("Semicolon"), ";"}, - {(int) '!', "exclamation", N_("Exclamation mark"), "!"}, - {(int) '?', "question", N_("Question mark"), "?"}, - {(int) '&', "ampersand", N_("Ampersand"), "&"}, - {(int) '$', "dollar", N_("Dollar sign"), "$"}, - {(int) '"', "quota", N_("Quotation mark"), "\""}, - {(int) '%', "percent", N_("Percent sign"), "%"}, - {(int) '^', "caret", N_("Caret"), "^"}, - {(int) '~', "tilda", N_("Tilda"), "~"}, - {(int) '`', "prime", N_("Prime"), "`"}, - {(int) '_', "underline", N_("Underline"), "_"}, - {(int) '_', "understrike", N_("Understrike"), "_"}, - {(int) '|', "pipe", N_("Pipe"), "|"}, - {(int) '(', "lparenthesis", N_("Left parenthesis"), "("}, - {(int) ')', "rparenthesis", N_("Right parenthesis"), ")"}, - {(int) '[', "lbracket", N_("Left bracket"), "["}, - {(int) ']', "rbracket", N_("Right bracket"), "]"}, - {(int) '{', "lbrace", N_("Left brace"), "{"}, - {(int) '}', "rbrace", N_("Right brace"), "}"}, - {(int) '\n', "enter", N_("Enter"), "Enter"}, - {(int) '\t', "tab", N_("Tab key"), "Tab"}, - {(int) ' ', "space", N_("Space key"), "Space"}, - {(int) '/', "slash", N_("Slash key"), "/"}, - {(int) '\\', "backslash", N_("Backslash key"), "\\"}, - {(int) '#', "number", N_("Number sign #"), "#"}, - {(int) '#', "hash", N_("Number sign #"), "#"}, - /* TRANSLATORS: Please translate as in "at sign" (@). */ - {(int) '@', "at", N_("At sign"), "@"}, - - /* meta keys */ - {KEY_M_CTRL, "control", N_("Ctrl"), "C"}, - {KEY_M_CTRL, "ctrl", N_("Ctrl"), "C"}, - {KEY_M_ALT, "meta", N_("Alt"), "M"}, - {KEY_M_ALT, "alt", N_("Alt"), "M"}, - {KEY_M_ALT, "ralt", N_("Alt"), "M"}, - {KEY_M_SHIFT, "shift", N_("Shift"), "S"}, - - {0, NULL, NULL, NULL} -}; - -/*** file scope macro definitions ****************************************************************/ - -#define MC_USEC_PER_MSEC 1000 - -/* The maximum sequence length (32 + null terminator) */ -#define SEQ_BUFFER_LEN 33 - -/*** file scope type declarations ****************************************************************/ - -/* Linux console keyboard modifiers */ -typedef enum -{ - SHIFT_PRESSED = (1 << 0), - ALTR_PRESSED = (1 << 1), - CONTROL_PRESSED = (1 << 2), - ALTL_PRESSED = (1 << 3) -} mod_pressed_t; - -typedef struct key_def -{ - char ch; /* Holds the matching char code */ - int code; /* The code returned, valid if child == NULL */ - struct key_def *next; - struct key_def *child; /* sequence continuation */ - int action; /* optional action to be done. Now used only - to mark that we are just after the first - Escape */ -} key_def; - -typedef struct -{ - int code; - const char *seq; - int action; -} key_define_t; - -/* File descriptor monitoring add/remove routines */ -typedef struct -{ - int fd; - select_fn callback; - void *info; -} select_t; - -typedef enum KeySortType -{ - KEY_NOSORT = 0, - KEY_SORTBYNAME, - KEY_SORTBYCODE -} KeySortType; - -#ifdef __QNXNTO__ -typedef int (*ph_dv_f) (void *, void *); -typedef int (*ph_ov_f) (void *); -typedef int (*ph_pqc_f) (unsigned short, PhCursorInfo_t *); -#endif - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static key_define_t mc_default_keys[] = { - {ESC_CHAR, ESC_STR, MCKEY_ESCAPE}, - {ESC_CHAR, ESC_STR ESC_STR, MCKEY_NOACTION}, - {MCKEY_BRACKETED_PASTING_START, ESC_STR "[200~", MCKEY_NOACTION}, - {MCKEY_BRACKETED_PASTING_END, ESC_STR "[201~", MCKEY_NOACTION}, - {0, NULL, MCKEY_NOACTION}, -}; - -/* Broken terminfo and termcap databases on xterminals */ -static key_define_t xterm_key_defines[] = { - {KEY_F (1), ESC_STR "OP", MCKEY_NOACTION}, - {KEY_F (2), ESC_STR "OQ", MCKEY_NOACTION}, - {KEY_F (3), ESC_STR "OR", MCKEY_NOACTION}, - {KEY_F (4), ESC_STR "OS", MCKEY_NOACTION}, - {KEY_F (1), ESC_STR "[11~", MCKEY_NOACTION}, - {KEY_F (2), ESC_STR "[12~", MCKEY_NOACTION}, - {KEY_F (3), ESC_STR "[13~", MCKEY_NOACTION}, - {KEY_F (4), ESC_STR "[14~", MCKEY_NOACTION}, - {KEY_F (5), ESC_STR "[15~", MCKEY_NOACTION}, - {KEY_F (6), ESC_STR "[17~", MCKEY_NOACTION}, - {KEY_F (7), ESC_STR "[18~", MCKEY_NOACTION}, - {KEY_F (8), ESC_STR "[19~", MCKEY_NOACTION}, - {KEY_F (9), ESC_STR "[20~", MCKEY_NOACTION}, - {KEY_F (10), ESC_STR "[21~", MCKEY_NOACTION}, - - /* old xterm Shift-arrows */ - {KEY_M_SHIFT | KEY_UP, ESC_STR "O2A", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_DOWN, ESC_STR "O2B", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_RIGHT, ESC_STR "O2C", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_LEFT, ESC_STR "O2D", MCKEY_NOACTION}, - - /* new xterm Shift-arrows */ - {KEY_M_SHIFT | KEY_UP, ESC_STR "[1;2A", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_DOWN, ESC_STR "[1;2B", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_RIGHT, ESC_STR "[1;2C", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_LEFT, ESC_STR "[1;2D", MCKEY_NOACTION}, - - /* more xterm keys with modifiers */ - {KEY_M_CTRL | KEY_PPAGE, ESC_STR "[5;5~", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_NPAGE, ESC_STR "[6;5~", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_IC, ESC_STR "[2;5~", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_DC, ESC_STR "[3;5~", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_HOME, ESC_STR "[1;5H", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_END, ESC_STR "[1;5F", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_HOME, ESC_STR "[1;2H", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_END, ESC_STR "[1;2F", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_UP, ESC_STR "[1;5A", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_DOWN, ESC_STR "[1;5B", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_RIGHT, ESC_STR "[1;5C", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_LEFT, ESC_STR "[1;5D", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_IC, ESC_STR "[2;2~", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_DC, ESC_STR "[3;2~", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_UP, ESC_STR "[1;6A", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_DOWN, ESC_STR "[1;6B", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_RIGHT, ESC_STR "[1;6C", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_LEFT, ESC_STR "[1;6D", MCKEY_NOACTION}, - {KEY_M_SHIFT | '\t', ESC_STR "[Z", MCKEY_NOACTION}, - - /* putty */ - {KEY_M_SHIFT | KEY_M_CTRL | KEY_UP, ESC_STR "[[1;6A", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_DOWN, ESC_STR "[[1;6B", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_RIGHT, ESC_STR "[[1;6C", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_LEFT, ESC_STR "[[1;6D", MCKEY_NOACTION}, - - /* putty alt-arrow keys */ - /* removed as source esc esc esc trouble */ - /* - { KEY_M_ALT | KEY_UP, ESC_STR ESC_STR "OA", MCKEY_NOACTION }, - { KEY_M_ALT | KEY_DOWN, ESC_STR ESC_STR "OB", MCKEY_NOACTION }, - { KEY_M_ALT | KEY_RIGHT, ESC_STR ESC_STR "OC", MCKEY_NOACTION }, - { KEY_M_ALT | KEY_LEFT, ESC_STR ESC_STR "OD", MCKEY_NOACTION }, - { KEY_M_ALT | KEY_PPAGE, ESC_STR ESC_STR "[5~", MCKEY_NOACTION }, - { KEY_M_ALT | KEY_NPAGE, ESC_STR ESC_STR "[6~", MCKEY_NOACTION }, - { KEY_M_ALT | KEY_HOME, ESC_STR ESC_STR "[1~", MCKEY_NOACTION }, - { KEY_M_ALT | KEY_END, ESC_STR ESC_STR "[4~", MCKEY_NOACTION }, - - { KEY_M_CTRL | KEY_M_ALT | KEY_UP, ESC_STR ESC_STR "[1;2A", MCKEY_NOACTION }, - { KEY_M_CTRL | KEY_M_ALT | KEY_DOWN, ESC_STR ESC_STR "[1;2B", MCKEY_NOACTION }, - { KEY_M_CTRL | KEY_M_ALT | KEY_RIGHT, ESC_STR ESC_STR "[1;2C", MCKEY_NOACTION }, - { KEY_M_CTRL | KEY_M_ALT | KEY_LEFT, ESC_STR ESC_STR "[1;2D", MCKEY_NOACTION }, - - { KEY_M_CTRL | KEY_M_ALT | KEY_PPAGE, ESC_STR ESC_STR "[[5;5~", MCKEY_NOACTION }, - { KEY_M_CTRL | KEY_M_ALT | KEY_NPAGE, ESC_STR ESC_STR "[[6;5~", MCKEY_NOACTION }, - { KEY_M_CTRL | KEY_M_ALT | KEY_HOME, ESC_STR ESC_STR "[1;5H", MCKEY_NOACTION }, - { KEY_M_CTRL | KEY_M_ALT | KEY_END, ESC_STR ESC_STR "[1;5F", MCKEY_NOACTION }, - */ - /* xterm alt-arrow keys */ - {KEY_M_ALT | KEY_UP, ESC_STR "[1;3A", MCKEY_NOACTION}, - {KEY_M_ALT | KEY_DOWN, ESC_STR "[1;3B", MCKEY_NOACTION}, - {KEY_M_ALT | KEY_RIGHT, ESC_STR "[1;3C", MCKEY_NOACTION}, - {KEY_M_ALT | KEY_LEFT, ESC_STR "[1;3D", MCKEY_NOACTION}, - {KEY_M_ALT | KEY_PPAGE, ESC_STR "[5;3~", MCKEY_NOACTION}, - {KEY_M_ALT | KEY_NPAGE, ESC_STR "[6;3~", MCKEY_NOACTION}, - {KEY_M_ALT | KEY_HOME, ESC_STR "[1~", MCKEY_NOACTION}, - {KEY_M_ALT | KEY_END, ESC_STR "[4~", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_M_ALT | KEY_UP, ESC_STR "[1;7A", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_M_ALT | KEY_DOWN, ESC_STR "[1;7B", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_M_ALT | KEY_RIGHT, ESC_STR "[1;7C", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_M_ALT | KEY_LEFT, ESC_STR "[1;7D", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_M_ALT | KEY_PPAGE, ESC_STR "[5;7~", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_M_ALT | KEY_NPAGE, ESC_STR "[6;7~", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_M_ALT | KEY_HOME, ESC_STR "OH", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_M_ALT | KEY_END, ESC_STR "OF", MCKEY_NOACTION}, - - {KEY_M_SHIFT | KEY_M_ALT | KEY_UP, ESC_STR "[1;4A", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_ALT | KEY_DOWN, ESC_STR "[1;4B", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_ALT | KEY_RIGHT, ESC_STR "[1;4C", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_ALT | KEY_LEFT, ESC_STR "[1;4D", MCKEY_NOACTION}, - - /* rxvt keys with modifiers */ - {KEY_M_SHIFT | KEY_UP, ESC_STR "[a", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_DOWN, ESC_STR "[b", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_RIGHT, ESC_STR "[c", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_LEFT, ESC_STR "[d", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_UP, ESC_STR "Oa", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_DOWN, ESC_STR "Ob", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_RIGHT, ESC_STR "Oc", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_LEFT, ESC_STR "Od", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_PPAGE, ESC_STR "[5^", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_NPAGE, ESC_STR "[6^", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_HOME, ESC_STR "[7^", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_END, ESC_STR "[8^", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_HOME, ESC_STR "[7$", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_END, ESC_STR "[8$", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_IC, ESC_STR "[2^", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_DC, ESC_STR "[3^", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_DC, ESC_STR "[3$", MCKEY_NOACTION}, - - /* konsole keys with modifiers */ - {KEY_M_SHIFT | KEY_HOME, ESC_STR "O2H", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_END, ESC_STR "O2F", MCKEY_NOACTION}, - - /* gnome-terminal */ - {KEY_M_SHIFT | KEY_UP, ESC_STR "[2A", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_DOWN, ESC_STR "[2B", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_RIGHT, ESC_STR "[2C", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_LEFT, ESC_STR "[2D", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_UP, ESC_STR "[5A", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_DOWN, ESC_STR "[5B", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_RIGHT, ESC_STR "[5C", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_LEFT, ESC_STR "[5D", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_UP, ESC_STR "[6A", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_DOWN, ESC_STR "[6B", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_RIGHT, ESC_STR "[6C", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_LEFT, ESC_STR "[6D", MCKEY_NOACTION}, - - /* gnome-terminal - application mode */ - {KEY_M_CTRL | KEY_UP, ESC_STR "O5A", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_DOWN, ESC_STR "O5B", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_RIGHT, ESC_STR "O5C", MCKEY_NOACTION}, - {KEY_M_CTRL | KEY_LEFT, ESC_STR "O5D", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_UP, ESC_STR "O6A", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_DOWN, ESC_STR "O6B", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_RIGHT, ESC_STR "O6C", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_M_CTRL | KEY_LEFT, ESC_STR "O6D", MCKEY_NOACTION}, - - /* iTerm */ - {KEY_M_SHIFT | KEY_PPAGE, ESC_STR "[5;2~", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_NPAGE, ESC_STR "[6;2~", MCKEY_NOACTION}, - - /* putty */ - {KEY_M_SHIFT | KEY_PPAGE, ESC_STR "[[5;53~", MCKEY_NOACTION}, - {KEY_M_SHIFT | KEY_NPAGE, ESC_STR "[[6;53~", MCKEY_NOACTION}, - - /* keypad keys */ - {KEY_IC, ESC_STR "Op", MCKEY_NOACTION}, - {KEY_DC, ESC_STR "On", MCKEY_NOACTION}, - {'/', ESC_STR "Oo", MCKEY_NOACTION}, - {'\n', ESC_STR "OM", MCKEY_NOACTION}, - - {0, NULL, MCKEY_NOACTION}, -}; - -/* qansi-m terminals have a much more key combinations, - which are undefined in termcap/terminfo */ -static key_define_t qansi_key_defines[] = { - /* qansi-m terminal */ - {KEY_M_CTRL | KEY_NPAGE, ESC_STR "[u", MCKEY_NOACTION}, /* Ctrl-PgDown */ - {KEY_M_CTRL | KEY_PPAGE, ESC_STR "[v", MCKEY_NOACTION}, /* Ctrl-PgUp */ - {KEY_M_CTRL | KEY_HOME, ESC_STR "[h", MCKEY_NOACTION}, /* Ctrl-Home */ - {KEY_M_CTRL | KEY_END, ESC_STR "[y", MCKEY_NOACTION}, /* Ctrl-End */ - {KEY_M_CTRL | KEY_IC, ESC_STR "[`", MCKEY_NOACTION}, /* Ctrl-Insert */ - {KEY_M_CTRL | KEY_DC, ESC_STR "[p", MCKEY_NOACTION}, /* Ctrl-Delete */ - {KEY_M_CTRL | KEY_LEFT, ESC_STR "[d", MCKEY_NOACTION}, /* Ctrl-Left */ - {KEY_M_CTRL | KEY_RIGHT, ESC_STR "[c", MCKEY_NOACTION}, /* Ctrl-Right */ - {KEY_M_CTRL | KEY_DOWN, ESC_STR "[b", MCKEY_NOACTION}, /* Ctrl-Down */ - {KEY_M_CTRL | KEY_UP, ESC_STR "[a", MCKEY_NOACTION}, /* Ctrl-Up */ - {KEY_M_CTRL | KEY_KP_ADD, ESC_STR "[s", MCKEY_NOACTION}, /* Ctrl-Gr-Plus */ - {KEY_M_CTRL | KEY_KP_SUBTRACT, ESC_STR "[t", MCKEY_NOACTION}, /* Ctrl-Gr-Minus */ - {KEY_M_CTRL | '\t', ESC_STR "[z", MCKEY_NOACTION}, /* Ctrl-Tab */ - {KEY_M_SHIFT | '\t', ESC_STR "[Z", MCKEY_NOACTION}, /* Shift-Tab */ - {KEY_M_CTRL | KEY_F (1), ESC_STR "[1~", MCKEY_NOACTION}, /* Ctrl-F1 */ - {KEY_M_CTRL | KEY_F (2), ESC_STR "[2~", MCKEY_NOACTION}, /* Ctrl-F2 */ - {KEY_M_CTRL | KEY_F (3), ESC_STR "[3~", MCKEY_NOACTION}, /* Ctrl-F3 */ - {KEY_M_CTRL | KEY_F (4), ESC_STR "[4~", MCKEY_NOACTION}, /* Ctrl-F4 */ - {KEY_M_CTRL | KEY_F (5), ESC_STR "[5~", MCKEY_NOACTION}, /* Ctrl-F5 */ - {KEY_M_CTRL | KEY_F (6), ESC_STR "[6~", MCKEY_NOACTION}, /* Ctrl-F6 */ - {KEY_M_CTRL | KEY_F (7), ESC_STR "[7~", MCKEY_NOACTION}, /* Ctrl-F7 */ - {KEY_M_CTRL | KEY_F (8), ESC_STR "[8~", MCKEY_NOACTION}, /* Ctrl-F8 */ - {KEY_M_CTRL | KEY_F (9), ESC_STR "[9~", MCKEY_NOACTION}, /* Ctrl-F9 */ - {KEY_M_CTRL | KEY_F (10), ESC_STR "[10~", MCKEY_NOACTION}, /* Ctrl-F10 */ - {KEY_M_CTRL | KEY_F (11), ESC_STR "[11~", MCKEY_NOACTION}, /* Ctrl-F11 */ - {KEY_M_CTRL | KEY_F (12), ESC_STR "[12~", MCKEY_NOACTION}, /* Ctrl-F12 */ - {KEY_M_ALT | KEY_F (1), ESC_STR "[17~", MCKEY_NOACTION}, /* Alt-F1 */ - {KEY_M_ALT | KEY_F (2), ESC_STR "[18~", MCKEY_NOACTION}, /* Alt-F2 */ - {KEY_M_ALT | KEY_F (3), ESC_STR "[19~", MCKEY_NOACTION}, /* Alt-F3 */ - {KEY_M_ALT | KEY_F (4), ESC_STR "[20~", MCKEY_NOACTION}, /* Alt-F4 */ - {KEY_M_ALT | KEY_F (5), ESC_STR "[21~", MCKEY_NOACTION}, /* Alt-F5 */ - {KEY_M_ALT | KEY_F (6), ESC_STR "[22~", MCKEY_NOACTION}, /* Alt-F6 */ - {KEY_M_ALT | KEY_F (7), ESC_STR "[23~", MCKEY_NOACTION}, /* Alt-F7 */ - {KEY_M_ALT | KEY_F (8), ESC_STR "[24~", MCKEY_NOACTION}, /* Alt-F8 */ - {KEY_M_ALT | KEY_F (9), ESC_STR "[25~", MCKEY_NOACTION}, /* Alt-F9 */ - {KEY_M_ALT | KEY_F (10), ESC_STR "[26~", MCKEY_NOACTION}, /* Alt-F10 */ - {KEY_M_ALT | KEY_F (11), ESC_STR "[27~", MCKEY_NOACTION}, /* Alt-F11 */ - {KEY_M_ALT | KEY_F (12), ESC_STR "[28~", MCKEY_NOACTION}, /* Alt-F12 */ - {KEY_M_ALT | 'a', ESC_STR "Na", MCKEY_NOACTION}, /* Alt-a */ - {KEY_M_ALT | 'b', ESC_STR "Nb", MCKEY_NOACTION}, /* Alt-b */ - {KEY_M_ALT | 'c', ESC_STR "Nc", MCKEY_NOACTION}, /* Alt-c */ - {KEY_M_ALT | 'd', ESC_STR "Nd", MCKEY_NOACTION}, /* Alt-d */ - {KEY_M_ALT | 'e', ESC_STR "Ne", MCKEY_NOACTION}, /* Alt-e */ - {KEY_M_ALT | 'f', ESC_STR "Nf", MCKEY_NOACTION}, /* Alt-f */ - {KEY_M_ALT | 'g', ESC_STR "Ng", MCKEY_NOACTION}, /* Alt-g */ - {KEY_M_ALT | 'h', ESC_STR "Nh", MCKEY_NOACTION}, /* Alt-h */ - {KEY_M_ALT | 'i', ESC_STR "Ni", MCKEY_NOACTION}, /* Alt-i */ - {KEY_M_ALT | 'j', ESC_STR "Nj", MCKEY_NOACTION}, /* Alt-j */ - {KEY_M_ALT | 'k', ESC_STR "Nk", MCKEY_NOACTION}, /* Alt-k */ - {KEY_M_ALT | 'l', ESC_STR "Nl", MCKEY_NOACTION}, /* Alt-l */ - {KEY_M_ALT | 'm', ESC_STR "Nm", MCKEY_NOACTION}, /* Alt-m */ - {KEY_M_ALT | 'n', ESC_STR "Nn", MCKEY_NOACTION}, /* Alt-n */ - {KEY_M_ALT | 'o', ESC_STR "No", MCKEY_NOACTION}, /* Alt-o */ - {KEY_M_ALT | 'p', ESC_STR "Np", MCKEY_NOACTION}, /* Alt-p */ - {KEY_M_ALT | 'q', ESC_STR "Nq", MCKEY_NOACTION}, /* Alt-q */ - {KEY_M_ALT | 'r', ESC_STR "Nr", MCKEY_NOACTION}, /* Alt-r */ - {KEY_M_ALT | 's', ESC_STR "Ns", MCKEY_NOACTION}, /* Alt-s */ - {KEY_M_ALT | 't', ESC_STR "Nt", MCKEY_NOACTION}, /* Alt-t */ - {KEY_M_ALT | 'u', ESC_STR "Nu", MCKEY_NOACTION}, /* Alt-u */ - {KEY_M_ALT | 'v', ESC_STR "Nv", MCKEY_NOACTION}, /* Alt-v */ - {KEY_M_ALT | 'w', ESC_STR "Nw", MCKEY_NOACTION}, /* Alt-w */ - {KEY_M_ALT | 'x', ESC_STR "Nx", MCKEY_NOACTION}, /* Alt-x */ - {KEY_M_ALT | 'y', ESC_STR "Ny", MCKEY_NOACTION}, /* Alt-y */ - {KEY_M_ALT | 'z', ESC_STR "Nz", MCKEY_NOACTION}, /* Alt-z */ - {KEY_KP_SUBTRACT, ESC_STR "[S", MCKEY_NOACTION}, /* Gr-Minus */ - {KEY_KP_ADD, ESC_STR "[T", MCKEY_NOACTION}, /* Gr-Plus */ - {0, NULL, MCKEY_NOACTION}, -}; - -/* This holds all the key definitions */ -static key_def *keys = NULL; - -static int input_fd; -static int disabled_channels = 0; /* Disable channels checking */ - -static GSList *select_list = NULL; - -static int seq_buffer[SEQ_BUFFER_LEN]; -static int *seq_append = NULL; - -static int *pending_keys = NULL; - -#ifdef __QNXNTO__ -ph_dv_f ph_attach; -ph_ov_f ph_input_group; -ph_pqc_f ph_query_cursor; -#endif - -#ifdef HAVE_TEXTMODE_X11_SUPPORT -static Display *x11_display; -static Window x11_window; -#endif /* HAVE_TEXTMODE_X11_SUPPORT */ - -static KeySortType has_been_sorted = KEY_NOSORT; - -/* *INDENT-OFF* */ -static const size_t key_conv_tab_size = G_N_ELEMENTS (key_name_conv_tab) - 1; -/* *INDENT-ON* */ - -static const key_code_name_t *key_conv_tab_sorted[G_N_ELEMENTS (key_name_conv_tab) - 1]; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static int -select_cmp_by_fd_set (gconstpointer a, gconstpointer b) -{ - const select_t *s = (const select_t *) a; - const fd_set *f = (const fd_set *) b; - - return (FD_ISSET (s->fd, f) ? 0 : 1); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -select_cmp_by_fd (gconstpointer a, gconstpointer b) -{ - const select_t *s = (const select_t *) a; - const int fd = GPOINTER_TO_INT (b); - - return (s->fd == fd ? 0 : 1); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -add_selects (fd_set *select_set) -{ - int top_fd = 0; - - if (disabled_channels == 0) - { - GSList *s; - - for (s = select_list; s != NULL; s = g_slist_next (s)) - { - select_t *p = (select_t *) s->data; - - FD_SET (p->fd, select_set); - if (p->fd > top_fd) - top_fd = p->fd; - } - } - - return top_fd; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -check_selects (fd_set *select_set) -{ - while (disabled_channels == 0) - { - GSList *s; - select_t *p; - - s = g_slist_find_custom (select_list, select_set, select_cmp_by_fd_set); - if (s == NULL) - break; - - p = (select_t *) s->data; - FD_CLR (p->fd, select_set); - p->callback (p->fd, p->info); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/* If set timeout is set, then we wait 0.1 seconds, else, we block */ - -static void -try_channels (gboolean set_timeout) -{ - struct timeval time_out; - static fd_set select_set; - - while (TRUE) - { - struct timeval *timeptr = NULL; - int maxfdp, v; - - FD_ZERO (&select_set); - FD_SET (input_fd, &select_set); /* Add stdin */ - maxfdp = MAX (add_selects (&select_set), input_fd); - - if (set_timeout) - { - time_out.tv_sec = 0; - time_out.tv_usec = 100 * MC_USEC_PER_MSEC; - timeptr = &time_out; - } - - v = select (maxfdp + 1, &select_set, NULL, NULL, timeptr); - if (v > 0) - { - check_selects (&select_set); - if (FD_ISSET (input_fd, &select_set)) - break; - } - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static key_def * -create_sequence (const char *seq, int code, int action) -{ - key_def *base, *attach; - - for (base = attach = NULL; *seq != '\0'; seq++) - { - key_def *p; - - p = g_new (key_def, 1); - if (base == NULL) - base = p; - if (attach != NULL) - attach->child = p; - - p->ch = *seq; - p->code = code; - p->child = NULL; - p->next = NULL; - p->action = seq[1] == '\0' ? action : MCKEY_NOACTION; - attach = p; - } - return base; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -define_sequences (const key_define_t *kd) -{ - int i; - - for (i = 0; kd[i].code != 0; i++) - define_sequence (kd[i].code, kd[i].seq, kd[i].action); -} - -/* --------------------------------------------------------------------------------------------- */ - -#ifdef HAVE_TEXTMODE_X11_SUPPORT -static void -init_key_x11 (void) -{ - if (getenv ("DISPLAY") != NULL && !mc_global.tty.disable_x11) - { - x11_display = mc_XOpenDisplay (0); - - if (x11_display != NULL) - x11_window = DefaultRootWindow (x11_display); - } -} -#endif /* HAVE_TEXTMODE_X11_SUPPORT */ - -/* --------------------------------------------------------------------------------------------- */ -/* Workaround for System V Curses vt100 bug */ - -static int -getch_with_delay (void) -{ - int c; - - /* This routine could be used on systems without mouse support, - so we need to do the select check :-( */ - while (TRUE) - { - if (pending_keys == NULL) - try_channels (FALSE); - - /* Try to get a character */ - c = get_key_code (0); - if (c != -1) - break; - - /* Failed -> wait 0.1 secs and try again */ - try_channels (TRUE); - } - - /* Success -> return the character */ - return c; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -xmouse_get_event (Gpm_Event *ev, gboolean extended) -{ - static gint64 tv1 = 0; /* Force first click as single */ - static int clicks = 0; - static int last_btn = 0; - int btn; - - /* Decode Xterm mouse information to a GPM style event */ - - if (!extended) - { - /* Variable btn has following meaning: */ - /* 0 = btn1 dn, 1 = btn2 dn, 2 = btn3 dn, 3 = btn up */ - btn = tty_lowlevel_getch () - 32; - /* Coordinates are 33-based */ - /* Transform them to 1-based */ - ev->x = tty_lowlevel_getch () - 32; - ev->y = tty_lowlevel_getch () - 32; - } - else - { - /* SGR 1006 extension (e.g. "\e[<0;12;300M"): - - Numbers are encoded in decimal to make it ASCII-safe - and to overcome the limit of 223 columns/rows. - - Mouse release is encoded by trailing 'm' rather than 'M' - so that the released button can be reported. - - Numbers are no longer offset by 32. */ - char c; - - btn = ev->x = ev->y = 0; - ev->type = 0; /* In case we return on an invalid sequence */ - - while ((c = tty_lowlevel_getch ()) != ';') - { - if (c < '0' || c > '9') - return; - btn = 10 * btn + (c - '0'); - } - while ((c = tty_lowlevel_getch ()) != ';') - { - if (c < '0' || c > '9') - return; - ev->x = 10 * ev->x + (c - '0'); - } - while ((c = tty_lowlevel_getch ()) != 'M' && c != 'm') - { - if (c < '0' || c > '9') - return; - ev->y = 10 * ev->y + (c - '0'); - } - /* Legacy mouse protocol doesn't tell which button was released, - conveniently all of mc's widgets are written not to rely on this - information. With the SGR extension the released button becomes - known, but for the sake of simplicity we just ignore it. */ - if (c == 'm') - btn = 3; - } - - /* There seems to be no way of knowing which button was released */ - /* So we assume all the buttons were released */ - - if (btn == 3) - { - if (last_btn != 0) - { - if ((last_btn & (GPM_B_UP | GPM_B_DOWN)) != 0) - { - /* FIXME: DIRTY HACK */ - /* don't generate GPM_UP after mouse wheel */ - /* need for menu event handling */ - ev->type = 0; - tv1 = 0; - } - else - { - ev->type = GPM_UP | (GPM_SINGLE << clicks); - tv1 = g_get_monotonic_time (); - } - ev->buttons = 0; - last_btn = 0; - clicks = 0; - } - else - { - /* Bogus event, maybe mouse wheel */ - ev->type = 0; - } - } - else - { - gint64 tv2; - - if (btn >= 32 && btn <= 34) - { - btn -= 32; - ev->type = GPM_DRAG; - } - else - ev->type = GPM_DOWN; - - tv2 = g_get_monotonic_time (); - if (tv1 != 0 && tv2 - tv1 < (gint64) double_click_speed * MC_USEC_PER_MSEC) - { - clicks++; - clicks %= 3; - } - else - clicks = 0; - - switch (btn) - { - case 0: - ev->buttons = GPM_B_LEFT; - break; - case 1: - ev->buttons = GPM_B_MIDDLE; - break; - case 2: - ev->buttons = GPM_B_RIGHT; - break; - case 64: - ev->buttons = GPM_B_UP; - clicks = 0; - break; - case 65: - ev->buttons = GPM_B_DOWN; - clicks = 0; - break; - default: - /* Nothing */ - ev->type = 0; - ev->buttons = 0; - break; - } - last_btn = ev->buttons; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Get modifier state (shift, alt, ctrl) for the last key pressed. - * We are assuming that the state didn't change since the key press. - * This is only correct if get_modifier() is called very fast after - * the input was received, so that the user didn't release the - * modifier keys yet. - */ - -static int -get_modifier (void) -{ - int result = 0; -#ifdef __QNXNTO__ - static int in_photon = 0; - static int ph_ig = 0; -#endif /* __QNXNTO__ */ - -#ifdef HAVE_TEXTMODE_X11_SUPPORT - if (x11_window != 0) - { - Window root, child; - int root_x, root_y; - int win_x, win_y; - unsigned int mask; - - mc_XQueryPointer (x11_display, x11_window, &root, &child, &root_x, - &root_y, &win_x, &win_y, &mask); - - if ((mask & ShiftMask) != 0) - result |= KEY_M_SHIFT; - if ((mask & ControlMask) != 0) - result |= KEY_M_CTRL; - return result; - } -#endif /* HAVE_TEXTMODE_X11_SUPPORT */ - -#ifdef __QNXNTO__ - if (in_photon == 0) - { - /* First time here, let's load Photon library and attach to Photon */ - in_photon = -1; - - if (getenv ("PHOTON2_PATH") != NULL) - { - /* QNX 6.x has no support for RTLD_LAZY */ - void *ph_handle; - - ph_handle = dlopen ("/usr/lib/libph.so", RTLD_NOW); - if (ph_handle != NULL) - { - ph_attach = (ph_dv_f) dlsym (ph_handle, "PhAttach"); - ph_input_group = (ph_ov_f) dlsym (ph_handle, "PhInputGroup"); - ph_query_cursor = (ph_pqc_f) dlsym (ph_handle, "PhQueryCursor"); - if ((ph_attach != NULL) && (ph_input_group != NULL) && (ph_query_cursor != NULL) - && (*ph_attach) (0, 0) != NULL) - { - /* Attached */ - ph_ig = (*ph_input_group) (0); - in_photon = 1; - } - } - } - } - /* We do not have Photon running. Assume we are in text console or xterm */ - if (in_photon == -1) - { - int mod_status; - int shift_ext_status; - - if (devctl (fileno (stdin), DCMD_CHR_LINESTATUS, &mod_status, sizeof (mod_status), NULL) == - -1) - return 0; - - shift_ext_status = mod_status & 0xffffff00UL; - mod_status &= 0x7f; - if ((mod_status & _LINESTATUS_CON_ALT) != 0) - result |= KEY_M_ALT; - if ((mod_status & _LINESTATUS_CON_CTRL) != 0) - result |= KEY_M_CTRL; - if ((mod_status & _LINESTATUS_CON_SHIFT) != 0 || (shift_ext_status & 0x00000800UL) != 0) - result |= KEY_M_SHIFT; - } - else - { - PhCursorInfo_t cursor_info; - - (*ph_query_cursor) (ph_ig, &cursor_info); - if ((cursor_info.key_mods & 0x04) != 0) - result |= KEY_M_ALT; - if ((cursor_info.key_mods & 0x02) != 0) - result |= KEY_M_CTRL; - if ((cursor_info.key_mods & 0x01) != 0) - result |= KEY_M_SHIFT; - } -#endif /* __QNXNTO__ */ - -#if defined __linux__ || (defined __CYGWIN__ && defined TIOCLINUX) - { - unsigned char modifiers = 6; - - if (ioctl (0, TIOCLINUX, &modifiers) < 0) - return 0; - - /* Translate Linux modifiers into mc modifiers */ - if ((modifiers & SHIFT_PRESSED) != 0) - result |= KEY_M_SHIFT; - if ((modifiers & (ALTL_PRESSED | ALTR_PRESSED)) != 0) - result |= KEY_M_ALT; - if ((modifiers & CONTROL_PRESSED) != 0) - result |= KEY_M_CTRL; - } -#endif /* !__linux__ */ - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -push_char (int c) -{ - gboolean ret = FALSE; - - if (seq_append == NULL) - seq_append = seq_buffer; - - if (seq_append != &(seq_buffer[SEQ_BUFFER_LEN - 2])) - { - *(seq_append++) = c; - *seq_append = '\0'; - ret = TRUE; - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/* Apply corrections for the keycode generated in get_key_code() */ - -static int -correct_key_code (int code) -{ - unsigned int c = code & ~KEY_M_MASK; /* code without modifier */ - unsigned int mod = code & KEY_M_MASK; /* modifier */ -#ifdef __QNXNTO__ - unsigned int qmod; /* bunch of the QNX console - modifiers needs unchanged */ -#endif /* __QNXNTO__ */ - - /* - * Add key modifiers directly from X11 or OS. - * Ordinary characters only get modifiers from sequences. - */ - if (c < 32 || c >= 256) - mod |= get_modifier (); - - /* This is needed if the newline is reported as carriage return */ - if (c == '\r') - c = '\n'; - - /* This is reported to be useful on AIX */ - if (c == KEY_SCANCEL) - c = '\t'; - - /* Convert Back Tab to Shift+Tab */ - if (c == KEY_BTAB) - { - c = '\t'; - mod = KEY_M_SHIFT; - } - - /* F0 is the same as F10 for out purposes */ - if (c == KEY_F (0)) - c = KEY_F (10); - - /* - * We are not interested if Ctrl was pressed when entering control - * characters, so assume that it was. When checking for such keys, - * XCTRL macro should be used. In some cases, we are interested, - * e.g. to distinguish Ctrl-Enter from Enter. - */ - if (c == '\b') - { - /* Special case for backspase ('\b' < 32) */ - c = KEY_BACKSPACE; - mod &= ~KEY_M_CTRL; - } - else if (c < 32 && c != ESC_CHAR && c != '\t' && c != '\n') - mod |= KEY_M_CTRL; - -#ifdef __QNXNTO__ - qmod = get_modifier (); - - if (c == 127 && mod == 0) - { - /* Add Ctrl/Alt/Shift-BackSpace */ - mod |= get_modifier (); - c = KEY_BACKSPACE; - } - - if (c == '0' && mod == 0 && (qmod & KEY_M_SHIFT) == KEY_M_SHIFT) - { - /* Add Shift-Insert on key pad */ - mod = KEY_M_SHIFT; - c = KEY_IC; - } - - if (c == '.' && mod == 0 && (qmod & KEY_M_SHIFT) == KEY_M_SHIFT) - { - /* Add Shift-Del on key pad */ - mod = KEY_M_SHIFT; - c = KEY_DC; - } -#endif /* __QNXNTO__ */ - - /* Unrecognized 0177 is delete (preserve Ctrl) */ - if (c == 0177) - c = KEY_BACKSPACE; - -#if 0 - /* Unrecognized Ctrl-d is delete */ - if (c == 'd' & 31) - { - c = KEY_DC; - mod &= ~KEY_M_CTRL; - } - - /* Unrecognized Ctrl-h is backspace */ - if (c == 'h' & 31) - { - c = KEY_BACKSPACE; - mod &= ~KEY_M_CTRL; - } -#endif - - /* Shift+BackSpace is backspace */ - if (c == KEY_BACKSPACE && (mod & KEY_M_SHIFT) != 0) - mod &= ~KEY_M_SHIFT; - - /* Convert Shift+Fn to F(n+10) */ - if (c >= KEY_F (1) && c <= KEY_F (10) && (mod & KEY_M_SHIFT) != 0) - c += 10; - - /* Remove Shift information from function keys */ - if (c >= KEY_F (1) && c <= KEY_F (20)) - mod &= ~KEY_M_SHIFT; - - if (!mc_global.tty.alternate_plus_minus) - switch (c) - { - case KEY_KP_ADD: - c = '+'; - break; - case KEY_KP_SUBTRACT: - c = '-'; - break; - case KEY_KP_MULTIPLY: - c = '*'; - break; - default: - break; - } - - return (mod | c); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -getch_with_timeout (unsigned int delay_us) -{ - fd_set Read_FD_Set; - int c; - struct timeval time_out; - - time_out.tv_sec = delay_us / G_USEC_PER_SEC; - time_out.tv_usec = delay_us % G_USEC_PER_SEC; - tty_nodelay (TRUE); - FD_ZERO (&Read_FD_Set); - FD_SET (input_fd, &Read_FD_Set); - select (input_fd + 1, &Read_FD_Set, NULL, NULL, &time_out); - c = tty_lowlevel_getch (); - tty_nodelay (FALSE); - return c; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -learn_store_key (GString *buffer, int c) -{ - if (c == ESC_CHAR) - g_string_append (buffer, "\\e"); - else if (c < ' ') - { - g_string_append_c (buffer, '^'); - g_string_append_c (buffer, c + 'a' - 1); - } - else if (c == '^') - g_string_append (buffer, "^^"); - else - g_string_append_c (buffer, (char) c); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -k_dispose (key_def *k) -{ - if (k != NULL) - { - k_dispose (k->child); - k_dispose (k->next); - g_free (k); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -key_code_comparator_by_name (const void *p1, const void *p2) -{ - const key_code_name_t *n1 = *(const key_code_name_t * const *) p1; - const key_code_name_t *n2 = *(const key_code_name_t * const *) p2; - - return g_ascii_strcasecmp (n1->name, n2->name); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -key_code_comparator_by_code (const void *p1, const void *p2) -{ - const key_code_name_t *n1 = *(const key_code_name_t * const *) p1; - const key_code_name_t *n2 = *(const key_code_name_t * const *) p2; - - return n1->code - n2->code; -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline void -sort_key_conv_tab (enum KeySortType type_sort) -{ - if (has_been_sorted != type_sort) - { - size_t i; - - for (i = 0; i < key_conv_tab_size; i++) - key_conv_tab_sorted[i] = &key_name_conv_tab[i]; - - if (type_sort == KEY_SORTBYNAME) - qsort (key_conv_tab_sorted, key_conv_tab_size, sizeof (key_conv_tab_sorted[0]), - &key_code_comparator_by_name); - else if (type_sort == KEY_SORTBYCODE) - qsort (key_conv_tab_sorted, key_conv_tab_size, sizeof (key_conv_tab_sorted[0]), - &key_code_comparator_by_code); - - has_been_sorted = type_sort; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -lookup_keyname (const char *name, int *idx) -{ - if (name[0] != '\0') - { - const key_code_name_t key = { 0, name, NULL, NULL }; - const key_code_name_t *keyp = &key; - const key_code_name_t **res; - - if (name[1] == '\0') - { - *idx = -1; - return (int) name[0]; - } - - sort_key_conv_tab (KEY_SORTBYNAME); - - res = bsearch (&keyp, key_conv_tab_sorted, key_conv_tab_size, - sizeof (key_conv_tab_sorted[0]), key_code_comparator_by_name); - - if (res != NULL) - { - *idx = (int) (res - key_conv_tab_sorted); - return (*res)->code; - } - } - - *idx = -1; - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -lookup_keycode (const long code, int *idx) -{ - if (code != 0) - { - const key_code_name_t key = { code, NULL, NULL, NULL }; - const key_code_name_t *keyp = &key; - const key_code_name_t **res; - - sort_key_conv_tab (KEY_SORTBYCODE); - - res = bsearch (&keyp, key_conv_tab_sorted, key_conv_tab_size, - sizeof (key_conv_tab_sorted[0]), key_code_comparator_by_code); - - if (res != NULL) - { - *idx = (int) (res - key_conv_tab_sorted); - return TRUE; - } - } - - *idx = -1; - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/* This has to be called before init_slang or whatever routine - calls any define_sequence */ - -void -init_key (void) -{ - const char *term; - - term = getenv ("TERM"); - - /* This has to be the first define_sequence */ - /* So, we can assume that the first keys member has ESC */ - define_sequences (mc_default_keys); - - /* Terminfo on irix does not have some keys */ - if (mc_global.tty.xterm_flag - || (term != NULL - && (strncmp (term, "iris-ansi", 9) == 0 - || strncmp (term, "xterm", 5) == 0 - || strncmp (term, "rxvt", 4) == 0 || strncmp (term, "screen", 6) == 0))) - define_sequences (xterm_key_defines); - - /* load some additional keys (e.g. direct Alt-? support) */ - load_xtra_key_defines (); - -#ifdef __QNX__ - if ((term != NULL) && (strncmp (term, "qnx", 3) == 0)) - { - /* Modify the default value of use_8th_bit_as_meta: we would - * like to provide a working mc for a newbie who knows nothing - * about [Options|Display bits|Full 8 bits input]... - * - * Don't use 'meta'-bit, when we are dealing with a - * 'qnx*'-type terminal: clear the default value! - * These terminal types use 0xFF as an escape character, - * so use_8th_bit_as_meta==1 must not be enabled! - * - * [mc-4.1.21+,slint.c/getch(): the DEC_8BIT_HACK stuff - * is not used now (doesn't even depend on use_8th_bit_as_meta - * as in mc-3.1.2)...GREAT!...no additional code is required!] - */ - use_8th_bit_as_meta = FALSE; - } -#endif /* __QNX__ */ - -#ifdef HAVE_TEXTMODE_X11_SUPPORT - init_key_x11 (); -#endif - - /* Load the qansi-m key definitions - if we are running under the qansi-m terminal */ - if (term != NULL && (strncmp (term, "qansi-m", 7) == 0)) - define_sequences (qansi_key_defines); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * This has to be called after SLang_init_tty/slint_init - */ - -void -init_key_input_fd (void) -{ -#ifdef HAVE_SLANG - input_fd = SLang_TT_Read_FD; -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -void -done_key (void) -{ - k_dispose (keys); - g_slist_free_full (select_list, g_free); - -#ifdef HAVE_TEXTMODE_X11_SUPPORT - if (x11_display) - mc_XCloseDisplay (x11_display); -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -void -add_select_channel (int fd, select_fn callback, void *info) -{ - select_t *new; - - new = g_new (select_t, 1); - new->fd = fd; - new->callback = callback; - new->info = info; - - select_list = g_slist_prepend (select_list, new); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -delete_select_channel (int fd) -{ - GSList *p; - - p = g_slist_find_custom (select_list, GINT_TO_POINTER (fd), select_cmp_by_fd); - if (p != NULL) - select_list = g_slist_delete_link (select_list, p); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -channels_up (void) -{ - if (disabled_channels == 0) - fputs ("Error: channels_up called with disabled_channels = 0\n", stderr); - disabled_channels--; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -channels_down (void) -{ - disabled_channels++; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Return the code associated with the symbolic name keyname - */ - -long -tty_keyname_to_keycode (const char *name, char **label) -{ - char **lc_keys, **p; - char *cname; - int k = -1; - int key = 0; - int lc_index = -1; - - int use_meta = -1; - int use_ctrl = -1; - int use_shift = -1; - - if (name == NULL) - return 0; - - cname = g_strstrip (g_strdup (name)); - lc_keys = g_strsplit_set (cname, "-+ ", -1); - g_free (cname); - - for (p = lc_keys; p != NULL && *p != NULL; p++) - { - if ((*p)[0] != '\0') - { - int idx; - - key = lookup_keyname (g_strstrip (*p), &idx); - - if (key == KEY_M_ALT) - use_meta = idx; - else if (key == KEY_M_CTRL) - use_ctrl = idx; - else if (key == KEY_M_SHIFT) - use_shift = idx; - else - { - k = key; - lc_index = idx; - break; - } - } - } - - g_strfreev (lc_keys); - - /* output */ - if (k <= 0) - return 0; - - if (label != NULL) - { - GString *s; - - s = g_string_new (""); - - if (use_meta != -1) - { - g_string_append (s, key_conv_tab_sorted[use_meta]->shortcut); - g_string_append_c (s, '-'); - } - if (use_ctrl != -1) - { - g_string_append (s, key_conv_tab_sorted[use_ctrl]->shortcut); - g_string_append_c (s, '-'); - } - if (use_shift != -1) - { - if (k < 127) - g_string_append_c (s, (gchar) g_ascii_toupper ((gchar) k)); - else - { - g_string_append (s, key_conv_tab_sorted[use_shift]->shortcut); - g_string_append_c (s, '-'); - g_string_append (s, key_conv_tab_sorted[lc_index]->shortcut); - } - } - else if (k < 128) - { - if ((k >= 'A') || (lc_index < 0) || (key_conv_tab_sorted[lc_index]->shortcut == NULL)) - g_string_append_c (s, (gchar) g_ascii_tolower ((gchar) k)); - else - g_string_append (s, key_conv_tab_sorted[lc_index]->shortcut); - } - else if ((lc_index != -1) && (key_conv_tab_sorted[lc_index]->shortcut != NULL)) - g_string_append (s, key_conv_tab_sorted[lc_index]->shortcut); - else - g_string_append_c (s, (gchar) g_ascii_tolower ((gchar) key)); - - *label = g_string_free (s, FALSE); - } - - if (use_shift != -1) - { - if (k < 127 && k > 31) - k = g_ascii_toupper ((gchar) k); - else - k |= KEY_M_SHIFT; - } - - if (use_ctrl != -1) - { - if (k < 256) - k = XCTRL (k); - else - k |= KEY_M_CTRL; - } - - if (use_meta != -1) - k = ALT (k); - - return (long) k; -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -tty_keycode_to_keyname (const int keycode) -{ - /* code without modifier */ - unsigned int k = keycode & ~KEY_M_MASK; - /* modifier */ - unsigned int mod = keycode & KEY_M_MASK; - - int key_idx = -1; - - GString *s; - int idx; - - s = g_string_sized_new (8); - - if (lookup_keycode (k, &key_idx) || (k > 0 && k < 256)) - { - if ((mod & KEY_M_ALT) != 0 && lookup_keycode (KEY_M_ALT, &idx)) - { - g_string_append (s, key_conv_tab_sorted[idx]->name); - g_string_append_c (s, '-'); - } - - if ((mod & KEY_M_CTRL) != 0) - { - /* non printeble chars like a CTRL-[A..Z] */ - if (k < 32) - k += 64; - - if (lookup_keycode (KEY_M_CTRL, &idx)) - { - g_string_append (s, key_conv_tab_sorted[idx]->name); - g_string_append_c (s, '-'); - } - } - - if ((mod & KEY_M_SHIFT) != 0) - { - if (lookup_keycode (KEY_M_ALT, &idx)) - { - if (k < 127) - g_string_append_c (s, (gchar) g_ascii_toupper ((gchar) k)); - else - { - g_string_append (s, key_conv_tab_sorted[idx]->name); - g_string_append_c (s, '-'); - g_string_append (s, key_conv_tab_sorted[key_idx]->name); - } - } - } - else if (k < 128) - { - if ((k >= 'A') || (key_idx < 0) || (key_conv_tab_sorted[key_idx]->name == NULL)) - g_string_append_c (s, (gchar) k); - else - g_string_append (s, key_conv_tab_sorted[key_idx]->name); - } - else if ((key_idx != -1) && (key_conv_tab_sorted[key_idx]->name != NULL)) - g_string_append (s, key_conv_tab_sorted[key_idx]->name); - else - g_string_append_c (s, (gchar) keycode); - } - - return g_string_free (s, s->len == 0); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Return TRUE on success, FALSE on error. - * An error happens if SEQ is a beginning of an existing longer sequence. - */ - -gboolean -define_sequence (int code, const char *seq, int action) -{ - key_def *base; - - if (strlen (seq) > SEQ_BUFFER_LEN - 1) - return FALSE; - - for (base = keys; (base != NULL) && (*seq != '\0');) - if (*seq == base->ch) - { - if (base->child == NULL) - { - if (*(seq + 1) != '\0') - base->child = create_sequence (seq + 1, code, action); - else - { - /* The sequence matches an existing one. */ - base->code = code; - base->action = action; - } - return TRUE; - } - - base = base->child; - seq++; - } - else - { - if (base->next != NULL) - base = base->next; - else - { - base->next = create_sequence (seq, code, action); - return TRUE; - } - } - - if (*seq == '\0') - { - /* Attempt to redefine a sequence with a shorter sequence. */ - return FALSE; - } - - keys = create_sequence (seq, code, action); - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Check if we are idle, i.e. there are no pending keyboard or mouse - * events. Return 1 is idle, 0 is there are pending events. - */ -gboolean -is_idle (void) -{ - int nfd; - fd_set select_set; - struct timeval time_out; - - FD_ZERO (&select_set); - FD_SET (input_fd, &select_set); - nfd = MAX (0, input_fd) + 1; - time_out.tv_sec = 0; - time_out.tv_usec = 0; -#ifdef HAVE_LIBGPM - if (mouse_enabled && use_mouse_p == MOUSE_GPM) - { - if (gpm_fd >= 0) - { - FD_SET (gpm_fd, &select_set); - nfd = MAX (nfd, gpm_fd + 1); - } - else - { - if (mouse_fd >= 0) /* error indicative */ - { - if (FD_ISSET (mouse_fd, &select_set)) - FD_CLR (mouse_fd, &select_set); - mouse_fd = gpm_fd; - } - /* gpm_fd == -2 means under some X terminal */ - if (gpm_fd == -1) - { - mouse_enabled = FALSE; - use_mouse_p = MOUSE_NONE; - } - } - } -#endif - return (select (nfd, &select_set, 0, 0, &time_out) <= 0); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -get_key_code (int no_delay) -{ - int c; - static key_def *this = NULL, *parent; - static gint64 esc_time = -1; - static int lastnodelay = -1; - - if (no_delay != lastnodelay) - { - this = NULL; - lastnodelay = no_delay; - } - - pend_send: - if (pending_keys != NULL) - { - gboolean bad_seq; - - c = *pending_keys++; - while (c == ESC_CHAR) - c = ALT (*pending_keys++); - - bad_seq = (*pending_keys != ESC_CHAR && *pending_keys != '\0'); - if (*pending_keys == '\0' || bad_seq) - pending_keys = seq_append = NULL; - - if (bad_seq) - { - /* This is an unknown ESC sequence. - * To prevent interpreting its tail as a random garbage, - * eat and discard all buffered and quickly following chars. - * Small, but non-zero timeout is needed to reconnect - * escape sequence split up by e.g. a serial line. - */ - int paranoia = 20; - - while (getch_with_timeout (old_esc_mode_timeout) >= 0 && --paranoia != 0) - ; - } - else - { - if (c > 127 && c < 256 && use_8th_bit_as_meta) - c = ALT (c & 0x7f); - - goto done; - } - } - - nodelay_try_again: - if (no_delay != 0) - tty_nodelay (TRUE); - - c = tty_lowlevel_getch (); -#if (defined(USE_NCURSES) || defined(USE_NCURSESW)) && defined(KEY_RESIZE) - if (c == KEY_RESIZE) - goto nodelay_try_again; -#endif - - if (no_delay != 0) - { - tty_nodelay (FALSE); - if (c == -1) - { - if (this == NULL || parent == NULL || parent->action != MCKEY_ESCAPE || !old_esc_mode || - esc_time == -1 || g_get_monotonic_time () < esc_time + old_esc_mode_timeout) - return -1; - - this = NULL; - pending_keys = seq_append = NULL; - return ESC_CHAR; - } - } - else if (c == -1) - { - /* Maybe we got an incomplete match. - This we do only in delay mode, since otherwise - tty_lowlevel_getch can return -1 at any time. */ - if (seq_append == NULL) - { - this = NULL; - return -1; - } - - pending_keys = seq_buffer; - goto pend_send; - } - - /* Search the key on the root */ - if (no_delay == 0 || this == NULL) - { - this = keys; - parent = NULL; - - if (c > 127 && c < 256 && use_8th_bit_as_meta) - { - c &= 0x7f; - - /* The first sequence defined starts with esc */ - parent = keys; - this = keys->child; - } - } - - while (this != NULL) - { - if (c == this->ch) - { - if (this->child == NULL) - { - /* We got a complete match, return and reset search */ - pending_keys = seq_append = NULL; - c = this->code; - goto done; - } - - /* No match yet, but it may be a prefix for a valid seq */ - if (!push_char (c)) - { - pending_keys = seq_buffer; - goto pend_send; - } - - parent = this; - this = this->child; - if (parent->action == MCKEY_ESCAPE && old_esc_mode) - { - if (no_delay != 0) - { - esc_time = g_get_monotonic_time (); - goto nodelay_try_again; - } - - esc_time = -1; - c = getch_with_timeout (old_esc_mode_timeout); - if (c != -1) - continue; - - pending_keys = seq_append = NULL; - this = NULL; - return ESC_CHAR; - } - - if (no_delay != 0) - goto nodelay_try_again; - c = tty_lowlevel_getch (); - continue; - } - - /* c != this->ch. Try other keys with this prefix */ - if (this->next != NULL) - { - this = this->next; - continue; - } - - /* No match found. Is it one of our ESC specials? */ - if ((parent != NULL) && (parent->action == MCKEY_ESCAPE)) - { - /* Convert escape-digits to F-keys */ - if (g_ascii_isdigit (c)) - c = KEY_F (c - '0'); - else if (c == ' ') - c = ESC_CHAR; - else - c = ALT (c); - - pending_keys = seq_append = NULL; - goto done; - } - - /* Unknown sequence. Maybe a prefix of a longer one. Save it. */ - push_char (c); - pending_keys = seq_buffer; - goto pend_send; - } /* while (this != NULL) */ - - done: - this = NULL; - return correct_key_code (c); -} - -/* --------------------------------------------------------------------------------------------- */ -/* Returns a character read from stdin with appropriate interpretation */ -/* Also takes care of generated mouse events */ -/* Returns EV_MOUSE if it is a mouse event */ -/* Returns EV_NONE if non-blocking or interrupt set and nothing was done */ - -int -tty_get_event (struct Gpm_Event *event, gboolean redo_event, gboolean block) -{ - int c; - int flag = 0; /* Return value from select */ -#ifdef HAVE_LIBGPM - static struct Gpm_Event ev; /* Mouse event */ -#endif - struct timeval time_out; - struct timeval *time_addr = NULL; - static int dirty = 3; - - if ((dirty == 3) || is_idle ()) - { - mc_refresh (); - dirty = 1; - } - else - dirty++; - - vfs_timeout_handler (); - - /* Ok, we use (event->x < 0) to signal that the event does not contain - a suitable position for the mouse, so we can't use show_mouse_pointer - on it. - */ - if (event->x > 0) - { - show_mouse_pointer (event->x, event->y); - if (!redo_event) - event->x = -1; - } - - /* Repeat if using mouse */ - while (pending_keys == NULL) - { - int nfd; - fd_set select_set; - - FD_ZERO (&select_set); - FD_SET (input_fd, &select_set); - nfd = MAX (add_selects (&select_set), MAX (0, input_fd)) + 1; - -#ifdef HAVE_LIBGPM - if (mouse_enabled && (use_mouse_p == MOUSE_GPM)) - { - if (gpm_fd >= 0) - { - FD_SET (gpm_fd, &select_set); - nfd = MAX (nfd, gpm_fd + 1); - } - else - { - if (mouse_fd >= 0) /* error indicative */ - { - if (FD_ISSET (mouse_fd, &select_set)) - FD_CLR (mouse_fd, &select_set); - mouse_fd = gpm_fd; - } - /* gpm_fd == -2 means under some X terminal */ - if (gpm_fd == -1) - { - mouse_enabled = FALSE; - use_mouse_p = MOUSE_NONE; - } - break; - } - } -#endif - - if (redo_event) - { - time_out.tv_usec = mou_auto_repeat * MC_USEC_PER_MSEC; - time_out.tv_sec = 0; - - time_addr = &time_out; - } - else - { - int seconds; - - seconds = vfs_timeouts (); - time_addr = NULL; - - if (seconds != 0) - { - /* the timeout could be improved and actually be - * the number of seconds until the next vfs entry - * timeouts in the stamp list. - */ - - time_out.tv_sec = seconds; - time_out.tv_usec = 0; - time_addr = &time_out; - } - } - - if (!block || tty_got_winch ()) - { - time_addr = &time_out; - time_out.tv_sec = 0; - time_out.tv_usec = 0; - } - - tty_enable_interrupt_key (); - flag = select (nfd, &select_set, NULL, NULL, time_addr); - tty_disable_interrupt_key (); - - /* select timed out: it could be for any of the following reasons: - * redo_event -> it was because of the MOU_REPEAT handler - * !block -> we did not block in the select call - * else -> 10 second timeout to check the vfs status. - */ - if (flag == 0) - { - if (redo_event) - return EV_MOUSE; - if (!block || tty_got_winch ()) - return EV_NONE; - vfs_timeout_handler (); - } - if (flag == -1 && errno == EINTR) - return EV_NONE; - - check_selects (&select_set); - - if (FD_ISSET (input_fd, &select_set)) - break; - -#ifdef HAVE_LIBGPM - if (mouse_enabled && use_mouse_p == MOUSE_GPM) - { - if (gpm_fd >= 0) - { - if (FD_ISSET (gpm_fd, &select_set)) - { - int status; - - status = Gpm_GetEvent (&ev); - if (status == 1) /* success */ - { - Gpm_FitEvent (&ev); - *event = ev; - return EV_MOUSE; - } - if (status <= 0) /* connection closed; -1 == error */ - { - if (mouse_fd >= 0 && FD_ISSET (mouse_fd, &select_set)) - FD_CLR (mouse_fd, &select_set); - - disable_mouse (); - return EV_NONE; - } - } - } - else - { - if (mouse_fd >= 0) /* error indicative */ - { - if (FD_ISSET (mouse_fd, &select_set)) - FD_CLR (mouse_fd, &select_set); - mouse_fd = gpm_fd; - } - /* gpm_fd == -2 means under some X terminal */ - if (gpm_fd == -1) - { - mouse_enabled = FALSE; - use_mouse_p = MOUSE_NONE; - } - break; - } - } -#endif /* !HAVE_LIBGPM */ - } - -#ifndef HAVE_SLANG - flag = is_wintouched (stdscr); - untouchwin (stdscr); -#endif /* !HAVE_SLANG */ - c = block ? getch_with_delay () : get_key_code (1); - -#ifndef HAVE_SLANG - if (flag > 0) - tty_touch_screen (); -#endif /* !HAVE_SLANG */ - - if (mouse_enabled && (c == MCKEY_MOUSE -#ifdef KEY_MOUSE - || c == KEY_MOUSE -#endif /* KEY_MOUSE */ - || c == MCKEY_EXTENDED_MOUSE)) - { - /* Mouse event. See tickets 2956 and 3954 for extended mode detection. */ - gboolean extended = c == MCKEY_EXTENDED_MOUSE; - -#ifdef KEY_MOUSE - extended = extended || (c == KEY_MOUSE && xmouse_seq == NULL - && xmouse_extended_seq != NULL); -#endif /* KEY_MOUSE */ - - xmouse_get_event (event, extended); - c = (event->type != 0) ? EV_MOUSE : EV_NONE; - } - else if (c == MCKEY_BRACKETED_PASTING_START) - { - bracketed_pasting_in_progress = TRUE; - c = EV_NONE; - } - else if (c == MCKEY_BRACKETED_PASTING_END) - { - bracketed_pasting_in_progress = FALSE; - c = EV_NONE; - } - - return c; -} - -/* --------------------------------------------------------------------------------------------- */ -/* Returns a key press, mouse events are discarded */ - -int -tty_getch (void) -{ - Gpm_Event ev; - int key; - - ev.x = -1; - while ((key = tty_get_event (&ev, FALSE, TRUE)) == EV_NONE) - ; - return key; -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -learn_key (void) -{ - /* LEARN_TIMEOUT in ms */ -#define LEARN_TIMEOUT 200 - - fd_set Read_FD_Set; - gint64 end_time; - int c; - GString *buffer; - - buffer = g_string_sized_new (16); - - tty_keypad (FALSE); /* disable interpreting keys by ncurses */ - c = tty_lowlevel_getch (); - while (c == -1) - c = tty_lowlevel_getch (); /* Sanity check, should be unnecessary */ - learn_store_key (buffer, c); - - end_time = g_get_monotonic_time () + LEARN_TIMEOUT * MC_USEC_PER_MSEC; - - tty_nodelay (TRUE); - while (TRUE) - { - while ((c = tty_lowlevel_getch ()) == -1) - { - gint64 time_out; - struct timeval tv; - - time_out = end_time - g_get_monotonic_time (); - if (time_out <= 0) - break; - - tv.tv_sec = time_out / G_USEC_PER_SEC; - tv.tv_usec = time_out % G_USEC_PER_SEC; - FD_ZERO (&Read_FD_Set); - FD_SET (input_fd, &Read_FD_Set); - select (input_fd + 1, &Read_FD_Set, NULL, NULL, &tv); - } - if (c == -1) - break; - learn_store_key (buffer, c); - } - tty_keypad (TRUE); - tty_nodelay (FALSE); - - return g_string_free (buffer, buffer->len == 0); -#undef LEARN_TIMEOUT -} - -/* --------------------------------------------------------------------------------------------- */ -/* xterm and linux console only: set keypad to numeric or application - mode. Only in application keypad mode it's possible to distinguish - the '+' key and the '+' on the keypad ('*' and '-' ditto) */ - -void -numeric_keypad_mode (void) -{ - if (mc_global.tty.console_flag != '\0' || mc_global.tty.xterm_flag) - { - fputs (ESC_STR ">", stdout); - fflush (stdout); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -application_keypad_mode (void) -{ - if (mc_global.tty.console_flag != '\0' || mc_global.tty.xterm_flag) - { - fputs (ESC_STR "=", stdout); - fflush (stdout); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -enable_bracketed_paste (void) -{ - printf (ESC_STR "[?2004h"); - fflush (stdout); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -disable_bracketed_paste (void) -{ - printf (ESC_STR "[?2004l"); - fflush (stdout); - bracketed_pasting_in_progress = FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/key.h b/recipes/wip/files/mc/source/lib/tty/key.h deleted file mode 100644 index 6dd2cee549..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/key.h +++ /dev/null @@ -1,121 +0,0 @@ -/** \file key.h - * \brief Header: keyboard support routines - */ - -#ifndef MC__KEY_H -#define MC__KEY_H - -#include "lib/global.h" /* */ -#include "tty.h" /* KEY_F macro */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -/* Possible return values from tty_get_event: */ -#define EV_MOUSE -2 -#define EV_NONE -1 - -/* - * Internal representation of the key modifiers. It is used in the - * sequence tables and the keycodes in the mc sources. - */ -#define KEY_M_SHIFT 0x1000 -#define KEY_M_ALT 0x2000 -#define KEY_M_CTRL 0x4000 -#define KEY_M_MASK 0x7000 - -#define XCTRL(x) (KEY_M_CTRL | ((x) & 0x1F)) -#define ALT(x) (KEY_M_ALT | (unsigned int)(x)) - -/* To define sequences and return codes */ -#define MCKEY_NOACTION 0 -#define MCKEY_ESCAPE 1 - -/* Return code for the mouse sequence */ -#define MCKEY_MOUSE -2 - -/* Return code for the extended mouse sequence */ -#define MCKEY_EXTENDED_MOUSE -3 - -/* Return code for brackets of bracketed paste mode */ -#define MCKEY_BRACKETED_PASTING_START -4 -#define MCKEY_BRACKETED_PASTING_END -5 - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct -{ - int code; - const char *name; - const char *longname; - const char *shortcut; -} key_code_name_t; - -struct Gpm_Event; - -/*** global variables defined in .c file *********************************************************/ - -extern const key_code_name_t key_name_conv_tab[]; - -extern int old_esc_mode_timeout; - -extern int double_click_speed; -extern gboolean old_esc_mode; -extern gboolean use_8th_bit_as_meta; -extern int mou_auto_repeat; - -extern gboolean bracketed_pasting_in_progress; - -/*** declarations of public functions ************************************************************/ - -gboolean define_sequence (int code, const char *seq, int action); - -void init_key (void); -void init_key_input_fd (void); -void done_key (void); - -long tty_keyname_to_keycode (const char *name, char **label); -char *tty_keycode_to_keyname (const int keycode); -/* mouse support */ -int tty_get_event (struct Gpm_Event *event, gboolean redo_event, gboolean block); -gboolean is_idle (void); -int tty_getch (void); - -/* While waiting for input, the program can select on more than one file */ -typedef int (*select_fn) (int fd, void *info); - -/* Channel manipulation */ -void add_select_channel (int fd, select_fn callback, void *info); -void delete_select_channel (int fd); - -/* Activate/deactivate the channel checking */ -void channels_up (void); -void channels_down (void); - -/* internally used in key.c, defined in keyxtra.c */ -void load_xtra_key_defines (void); - -/* Learn a single key */ -char *learn_key (void); - -/* Returns a key code (interpreted) */ -int get_key_code (int nodelay); - -/* Set keypad mode (xterm and linux console only) */ -void numeric_keypad_mode (void); -void application_keypad_mode (void); - -/* Bracketed paste mode */ -void enable_bracketed_paste (void); -void disable_bracketed_paste (void); - -/*** inline functions ****************************************************************************/ - -static inline gboolean -is_abort_char (int c) -{ - return ((c == (int) ESC_CHAR) || (c == (int) KEY_F (10))); -} - -#endif /* MC_KEY_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/keyxdef.c b/recipes/wip/files/mc/source/lib/tty/keyxdef.c deleted file mode 100644 index 5bb91484ff..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/keyxdef.c +++ /dev/null @@ -1,455 +0,0 @@ -/* {{{ Copyright */ - -/* - Additional keyboard support routines. - - Copyright (C) 1998-2025 - Free Software Foundation, Inc. - - Written by: - Gyorgy Tamasi, 1998 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/* }}} */ - -/** \file keyxdef.c - * \brief Source: additional keyboard support routines - * - * PURPOSE: - * We would like to support the direct ALT-?/META-? and some other 'extra' - * keyboard functionality provided by some terminals under some OSes (and - * not supported by the 'learn keys...' facility of 'mc'. - * (First target platform: QNX.) - * - * REMARK: - * - * Implementation strategy: we don't want to rely on a specific terminal - * information database management API (termcap,terminfo,SLang,...), so we - * try to define a superset of the possible key identifiers here. - * - */ - -#include - -#include "lib/global.h" - -#include "tty.h" -#include "mouse.h" /* required before key.h */ -#include "key.h" - -#if defined (__QNX__) && !defined (__QNXNTO__) -#define HAVE_QNX_KEYS -#endif - -#ifdef HAVE_QNX_KEYS - -/* select implementation: use QNX/term interface */ -#define __USE_QNX_TI - -/* implementation specific _TE() definition */ -#ifdef __USE_QNX_TI - -/* include QNX/term.h (not NCURSES/term.h!) */ -#if __WATCOMC__ > 1000 -#include -#else -#include -#endif -#include /* getenv() */ - -/* fieldname -> index conversion */ -#define __QTISX(_qtisn) \ - (((int)(&((struct _strs*)0)->_qtisn))/sizeof(charoffset)) - -/* define the OS/implementation-specific __TK() format */ -#define __TK(_tis,_tcs,_tisx,_qtisn) __QTISX(_qtisn) - -#endif /* __USE_QNX_TI */ - -#endif /* HAVE_QNX_KEYS */ - - -/* {{{ */ - -/* general key definitions: - * - * format: - * - * terminfo name, - * termcap name, - * index in the terminfo string table (ncurses), - * field name in the QNX terminfo strings struct - */ - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - - -#define Key_backspace __TK("kbs", "kb", 55, _ky_backspace ) -#define Key_catab __TK("ktbc", "ka", 56, _ky_catab ) -#define Key_clear __TK("kclr", "kC", 57, _ky_clear ) -#define Key_ctab __TK("kctab", "kt", 58, _ky_ctab ) -#define Key_dc __TK("kdch1", "kD", 59, _ky_dc ) -#define Key_dl __TK("kdl1", "kL", 60, _ky_dl ) -#define Key_down __TK("kcud1", "kd", 61, _ky_down ) -#define Key_eic __TK("krmir", "kM", 62, _ky_eic ) -#define Key_eol __TK("kel", "kE", 63, _ky_eol ) -#define Key_eos __TK("ked", "kS", 64, _ky_eos ) -#define Key_f0 __TK("kf0", "k0", 65, _ky_f0 ) -#define Key_f1 __TK("kf1", "k1", 66, _ky_f1 ) -#define Key_f10 __TK("kf10", "k;", 67, _ky_f10 ) -#define Key_f2 __TK("kf2", "k2", 68, _ky_f2 ) -#define Key_f3 __TK("kf3", "k3", 69, _ky_f3 ) -#define Key_f4 __TK("kf4", "k4", 70, _ky_f4 ) -#define Key_f5 __TK("kf5", "k5", 71, _ky_f5 ) -#define Key_f6 __TK("kf6", "k6", 72, _ky_f6 ) -#define Key_f7 __TK("kf7", "k7", 73, _ky_f7 ) -#define Key_f8 __TK("kf8", "k8", 74, _ky_f8 ) -#define Key_f9 __TK("kf9", "k9", 75, _ky_f9 ) -#define Key_home __TK("khome", "kh", 76, _ky_home ) -#define Key_ic __TK("kich1", "kI", 77, _ky_ic ) -#define Key_il __TK("kil1", "kA", 78, _ky_il ) -#define Key_left __TK("kcub1", "kl", 79, _ky_left ) -#define Key_ll __TK("kll", "kH", 80, _ky_ll ) -#define Key_npage __TK("knp", "kN", 81, _ky_npage ) -#define Key_ppage __TK("kpp", "kP", 82, _ky_ppage ) -#define Key_right __TK("kcuf1", "kr", 83, _ky_right ) -#define Key_sf __TK("kind", "kF", 84, _ky_sf ) -#define Key_sr __TK("kri", "kR", 85, _ky_sr ) -#define Key_stab __TK("khts", "kT", 86, _ky_stab ) -#define Key_up __TK("kcuu1", "ku", 87, _ky_up ) -#define Key_a1 __TK("ka1", "K1", 139, _ky_a1 ) -#define Key_a3 __TK("ka3", "K3", 140, _ky_a3 ) -#define Key_b2 __TK("kb2", "K2", 141, _ky_b2 ) -#define Key_c1 __TK("kc1", "K4", 142, _ky_c1 ) -#define Key_c3 __TK("kc3", "K5", 143, _ky_c3 ) -#define Key_btab __TK("kcbt", "kB", 148, _ky_btab ) -#define Key_beg __TK("kbeg", "@1", 158, _ky_beg ) -#define Key_cancel __TK("kcan", "@2", 159, _ky_cancel ) -#define Key_close __TK("kclo", "@3", 160, _ky_close ) -#define Key_command __TK("kcmd", "@4", 161, _ky_command ) -#define Key_copy __TK("kcpy", "@5", 162, _ky_copy ) -#define Key_create __TK("kcrt", "@6", 163, _ky_create ) -#define Key_end __TK("kend", "@7", 164, _ky_end ) -#define Key_enter __TK("kent", "@8", 165, _ky_enter ) -#define Key_exit __TK("kext", "@9", 166, _ky_exit ) -#define Key_find __TK("kfnd", "@0", 167, _ky_find ) -#define Key_help __TK("khlp", "%1", 168, _ky_help ) -#define Key_mark __TK("kmrk", "%2", 169, _ky_mark ) -#define Key_message __TK("kmsg", "%3", 170, _ky_message ) -#define Key_move __TK("kmov", "%4", 171, _ky_move ) -#define Key_next __TK("knxt", "%5", 172, _ky_next ) -#define Key_open __TK("kopn", "%6", 173, _ky_open ) -#define Key_options __TK("kopt", "%7", 174, _ky_options ) -#define Key_previous __TK("kprv", "%8", 175, _ky_previous ) -#define Key_print __TK("kprt", "%9", 176, _ky_print ) -#define Key_redo __TK("krdo", "%0", 177, _ky_redo ) -#define Key_reference __TK("kref", "&1", 178, _ky_reference ) -#define Key_refresh __TK("krfr", "&2", 179, _ky_refresh ) -#define Key_replace __TK("krpl", "&3", 180, _ky_replace ) -#define Key_restart __TK("krst", "&4", 181, _ky_restart ) -#define Key_resume __TK("kres", "&5", 182, _ky_resume ) -#define Key_save __TK("ksav", "&6", 183, _ky_save ) -#define Key_suspend __TK("kspd", "&7", 184, _ky_suspend ) -#define Key_undo __TK("kund", "&8", 185, _ky_undo ) -#define Key_sbeg __TK("kBEG", "&9", 186, _ky_sbeg ) -#define Key_scancel __TK("kCAN", "&0", 187, _ky_scancel ) -#define Key_scommand __TK("kCMD", "*1", 188, _ky_scommand ) -#define Key_scopy __TK("kCPY", "*2", 189, _ky_scopy ) -#define Key_screate __TK("kCRT", "*3", 190, _ky_screate ) -#define Key_sdc __TK("kDC", "*4", 191, _ky_sdc ) -#define Key_sdl __TK("kDL", "*5", 192, _ky_sdl ) -#define Key_select __TK("kslt", "*6", 193, _ky_select ) -#define Key_send __TK("kEND", "*7", 194, _ky_send ) -#define Key_seol __TK("kEOL", "*8", 195, _ky_seol ) -#define Key_sexit __TK("kEXT", "*9", 196, _ky_sexit ) -#define Key_sfind __TK("kFND", "*0", 197, _ky_sfind ) -#define Key_shelp __TK("kHLP", "#1", 198, _ky_shelp ) -#define Key_shome __TK("kHOM", "#2", 199, _ky_shome ) -#define Key_sic __TK("kIC", "#3", 200, _ky_sic ) -#define Key_sleft __TK("kLFT", "#4", 201, _ky_sleft ) -#define Key_smessage __TK("kMSG", "%a", 202, _ky_smessage ) -#define Key_smove __TK("kMOV", "%b", 203, _ky_smove ) -#define Key_snext __TK("kNXT", "%c", 204, _ky_snext ) -#define Key_soptions __TK("kOPT", "%d", 205, _ky_soptions ) -#define Key_sprevious __TK("kPRV", "%e", 206, _ky_sprevious ) -#define Key_sprint __TK("kPRT", "%f", 207, _ky_sprint ) -#define Key_sredo __TK("kRDO", "%g", 208, _ky_sredo ) -#define Key_sreplace __TK("kRPL", "%h", 209, _ky_sreplace ) -#define Key_sright __TK("kRIT", "%i", 210, _ky_sright ) -#define Key_srsume __TK("kRES", "%j", 211, _ky_srsume ) -#define Key_ssave __TK("kSAV", "!1", 212, _ky_ssave ) -#define Key_ssuspend __TK("kSPD", "!2", 213, _ky_ssuspend ) -#define Key_sundo __TK("kUND", "!3", 214, _ky_sundo ) -#define Key_f11 __TK("kf11", "F1", 216, _ky_f11 ) -#define Key_f12 __TK("kf12", "F2", 217, _ky_f12 ) -#define Key_f13 __TK("kf13", "F3", 218, _ky_f13 ) -#define Key_f14 __TK("kf14", "F4", 219, _ky_f14 ) -#define Key_f15 __TK("kf15", "F5", 220, _ky_f15 ) -#define Key_f16 __TK("kf16", "F6", 221, _ky_f16 ) -#define Key_f17 __TK("kf17", "F7", 222, _ky_f17 ) -#define Key_f18 __TK("kf18", "F8", 223, _ky_f18 ) -#define Key_f19 __TK("kf19", "F9", 224, _ky_f19 ) -#define Key_f20 __TK("kf20", "FA", 225, _ky_f20 ) -#define Key_f21 __TK("kf21", "FB", 226, _ky_f21 ) -#define Key_f22 __TK("kf22", "FC", 227, _ky_f22 ) -#define Key_f23 __TK("kf23", "FD", 228, _ky_f23 ) -#define Key_f24 __TK("kf24", "FE", 229, _ky_f24 ) -#define Key_f25 __TK("kf25", "FF", 230, _ky_f25 ) -#define Key_f26 __TK("kf26", "FG", 231, _ky_f26 ) -#define Key_f27 __TK("kf27", "FH", 232, _ky_f27 ) -#define Key_f28 __TK("kf28", "FI", 233, _ky_f28 ) -#define Key_f29 __TK("kf29", "FJ", 234, _ky_f29 ) -#define Key_f30 __TK("kf30", "FK", 235, _ky_f30 ) -#define Key_f31 __TK("kf31", "FL", 236, _ky_f31 ) -#define Key_f32 __TK("kf32", "FM", 237, _ky_f32 ) -#define Key_f33 __TK("kf33", "FN", 238, _ky_f33 ) -#define Key_f34 __TK("kf34", "FO", 239, _ky_f34 ) -#define Key_f35 __TK("kf35", "FP", 240, _ky_f35 ) -#define Key_f36 __TK("kf36", "FQ", 241, _ky_f36 ) -#define Key_f37 __TK("kf37", "FR", 242, _ky_f37 ) -#define Key_f38 __TK("kf38", "FS", 243, _ky_f38 ) -#define Key_f39 __TK("kf39", "FT", 244, _ky_f39 ) -#define Key_f40 __TK("kf40", "FU", 245, _ky_f40 ) -#define Key_f41 __TK("kf41", "FV", 246, _ky_f41 ) -#define Key_f42 __TK("kf42", "FW", 247, _ky_f42 ) -#define Key_f43 __TK("kf43", "FX", 248, _ky_f43 ) -#define Key_f44 __TK("kf44", "FY", 249, _ky_f44 ) -#define Key_f45 __TK("kf45", "FZ", 250, _ky_f45 ) -#define Key_f46 __TK("kf46", "Fa", 251, _ky_f46 ) -#define Key_f47 __TK("kf47", "Fb", 252, _ky_f47 ) -#define Key_f48 __TK("kf48", "Fc", 253, _ky_f48 ) -#define Key_f49 __TK("kf49", "Fd", 254, _ky_f49 ) -#define Key_f50 __TK("kf50", "Fe", 255, _ky_f50 ) -#define Key_f51 __TK("kf51", "Ff", 256, _ky_f51 ) -#define Key_f52 __TK("kf52", "Fg", 257, _ky_f52 ) -#define Key_f53 __TK("kf53", "Fh", 258, _ky_f53 ) -#define Key_f54 __TK("kf54", "Fi", 259, _ky_f54 ) -#define Key_f55 __TK("kf55", "Fj", 260, _ky_f55 ) -#define Key_f56 __TK("kf56", "Fk", 261, _ky_f56 ) -#define Key_f57 __TK("kf57", "Fl", 262, _ky_f57 ) -#define Key_f58 __TK("kf58", "Fm", 263, _ky_f58 ) -#define Key_f59 __TK("kf59", "Fn", 264, _ky_f59 ) -#define Key_f60 __TK("kf60", "Fo", 265, _ky_f60 ) -#define Key_f61 __TK("kf61", "Fp", 266, _ky_f61 ) -#define Key_f62 __TK("kf62", "Fq", 267, _ky_f62 ) -#define Key_f63 __TK("kf63", "Fr", 268, _ky_f63 ) - -/* }}} */ - -#ifdef HAVE_QNX_KEYS - -/* don't force pre-defining of base keys under QNX */ -#define FORCE_BASE_KEY_DEFS 0 - -/* OS specific key aliases */ -#define Key_alt_a Key_clear -#define Key_alt_b Key_stab -#define Key_alt_c Key_close -#define Key_alt_d Key_catab -#define Key_alt_e Key_message -#define Key_alt_f Key_find -#define Key_alt_g Key_refresh -#define Key_alt_h Key_help -#define Key_alt_i Key_move -#define Key_alt_j Key_restart -#define Key_alt_k Key_options -#define Key_alt_l Key_reference -#define Key_alt_m Key_mark -#define Key_alt_n Key_sbeg -#define Key_alt_o Key_open -#define Key_alt_p Key_resume -#define Key_alt_q Key_save -#define Key_alt_r Key_replace -#define Key_alt_s Key_scopy -#define Key_alt_t Key_screate -#define Key_alt_u Key_undo -#define Key_alt_v Key_sdl -#define Key_alt_w Key_sexit -#define Key_alt_x Key_sfind -#define Key_alt_y Key_shelp -#define Key_alt_z Key_soptions - -#define Key_ctl_enter Key_enter -#define Key_ctl_tab Key_ctab - -#define Key_alt_tab Key_ctl_tab /* map ALT-TAB to CTRL-TAB */ -#define Key_alt_enter Key_ctl_enter /* map ALT-ENTER to CTRL-ENTER */ - -#ifdef __USE_QNX_TI -/* define current xtra_key_define_t (enable OS/implementation) */ -#define xtra_key_define_t qnx_key_define_t -#endif /* __USE_QNX_TI */ -#endif /* HAVE_QNX_KEYS */ - - -#ifdef xtra_key_define_t -#ifndef FORCE_BASE_KEY_DEFS -#define FORCE_BASE_KEY_DEFS 0 -#endif -#endif /* xtra_key_define_t */ - -#ifdef HAVE_QNX_KEYS -#ifdef __USE_QNX_TI -#define __CT (__cur_term) -#define __QTISOFFS(_qtisx) (((charoffset*)(&__CT->_strs))[_qtisx]) -#define __QTISSTR(_qtisx) (&__CT->_strtab[0]+__QTISOFFS(_qtisx)) -#endif /* __USE_QNX_TI */ -#endif /* HAVE_QNX_KEYS */ - -/*** file scope type declarations ****************************************************************/ - -#ifdef HAVE_QNX_KEYS -#ifdef __USE_QNX_TI -/* OS/implementation specific key-define struct */ -typedef const struct qnx_key_define_s -{ - int mc_code; - int str_idx; -} qnx_key_define_t; -#endif /* __USE_QNX_TI */ -#endif /* HAVE_QNX_KEYS */ - -/*** file scope variables ************************************************************************/ - - -#ifdef xtra_key_define_t - -/* general key define table */ -xtra_key_define_t xtra_key_defines[] = { -#if FORCE_BASE_KEY_DEFS - {KEY_BACKSPACE, Key_backspace}, - {KEY_LEFT, Key_left}, - {KEY_RIGHT, Key_right}, - {KEY_UP, Key_up}, - {KEY_DOWN, Key_down}, - {KEY_NPAGE, Key_npage}, - {KEY_PPAGE, Key_ppage}, - {KEY_HOME, Key_home}, - {KEY_END, Key_end}, - {KEY_DC, Key_dc}, - {KEY_IC, Key_ic}, - {KEY_F (1), Key_f1}, - {KEY_F (2), Key_f2}, - {KEY_F (3), Key_f3}, - {KEY_F (4), Key_f4}, - {KEY_F (5), Key_f5}, - {KEY_F (6), Key_f6}, - {KEY_F (7), Key_f7}, - {KEY_F (8), Key_f8}, - {KEY_F (9), Key_f9}, - {KEY_F (10), Key_f10}, - {KEY_F (11), Key_f11}, - {KEY_F (12), Key_f12}, - {KEY_F (13), Key_f13}, - {KEY_F (14), Key_f14}, - {KEY_F (15), Key_f15}, - {KEY_F (16), Key_f16}, - {KEY_F (17), Key_f17}, - {KEY_F (18), Key_f18}, - {KEY_F (19), Key_f19}, - {KEY_F (20), Key_f20}, -#endif - {ALT ('a'), Key_alt_a}, - {ALT ('b'), Key_alt_b}, - {ALT ('c'), Key_alt_c}, - {ALT ('d'), Key_alt_d}, - {ALT ('e'), Key_alt_e}, - {ALT ('f'), Key_alt_f}, - {ALT ('g'), Key_alt_g}, - {ALT ('h'), Key_alt_h}, - {ALT ('i'), Key_alt_i}, - {ALT ('j'), Key_alt_j}, - {ALT ('k'), Key_alt_k}, - {ALT ('l'), Key_alt_l}, - {ALT ('m'), Key_alt_m}, - {ALT ('n'), Key_alt_n}, - {ALT ('o'), Key_alt_o}, - {ALT ('p'), Key_alt_p}, - {ALT ('q'), Key_alt_q}, - {ALT ('r'), Key_alt_r}, - {ALT ('s'), Key_alt_s}, - {ALT ('t'), Key_alt_t}, - {ALT ('u'), Key_alt_u}, - {ALT ('v'), Key_alt_v}, - {ALT ('w'), Key_alt_w}, - {ALT ('x'), Key_alt_x}, - {ALT ('y'), Key_alt_y}, - {ALT ('z'), Key_alt_z}, - - {ALT ('\n'), Key_alt_enter}, - {ALT ('\t'), Key_alt_tab} -}; - -#endif /* xtra_key_define_t */ - -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -#ifdef HAVE_QNX_KEYS -#ifdef __USE_QNX_TI -void -load_qnx_key_defines (void) -{ - static int _qnx_keys_defined = 0; - - if (!_qnx_keys_defined) - { - int idx; - int term_setup_ok; - - __setupterm (NULL, fileno (stdout), &term_setup_ok); - if (term_setup_ok != 1) - return; - - for (idx = 0; idx < sizeof (xtra_key_defines) / sizeof (xtra_key_defines[0]); idx++) - { - int str_idx = xtra_key_defines[idx].str_idx; - - if (__QTISOFFS (str_idx)) - { - if (*__QTISSTR (str_idx)) - { - define_sequence (xtra_key_defines[idx].mc_code, - __QTISSTR (str_idx), MCKEY_NOACTION); - } - } - } - _qnx_keys_defined = 1; - } -} -#endif /* __USE_QNX_TI */ -#endif /* HAVE_QNX_KEYS */ - -/* --------------------------------------------------------------------------------------------- */ -/* called from key.c/init_key() */ - -void -load_xtra_key_defines (void) -{ -#ifdef HAVE_QNX_KEYS - load_qnx_key_defines (); -#endif -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/mouse.c b/recipes/wip/files/mc/source/lib/tty/mouse.c deleted file mode 100644 index c638e87004..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/mouse.c +++ /dev/null @@ -1,216 +0,0 @@ -/* - Mouse managing - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file mouse.c - * \brief Source: mouse managing - * - * Events received by clients of this library have their coordinates 0 based - */ - -#include - -#include -#include -#include - -#include "lib/global.h" - -#include "tty.h" -#include "tty-internal.h" /* mouse_enabled */ -#include "mouse.h" -#include "key.h" /* define sequence */ - -/*** global variables ****************************************************************************/ - -Mouse_Type use_mouse_p = MOUSE_NONE; -gboolean mouse_enabled = FALSE; -int mouse_fd = -1; /* for when gpm_fd changes to < 0 and the old one must be cleared from select_set */ -const char *xmouse_seq; -const char *xmouse_extended_seq; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -show_mouse_pointer (int x, int y) -{ -#ifdef HAVE_LIBGPM - if (use_mouse_p == MOUSE_GPM) - Gpm_DrawPointer (x, y, gpm_consolefd); -#else - (void) x; - (void) y; -#endif /* HAVE_LIBGPM */ -} - -/* --------------------------------------------------------------------------------------------- */ - -void -init_mouse (void) -{ - switch (use_mouse_p) - { -#ifdef HAVE_LIBGPM - case MOUSE_NONE: - use_mouse_p = MOUSE_GPM; - break; -#endif /* HAVE_LIBGPM */ - - case MOUSE_XTERM_NORMAL_TRACKING: - case MOUSE_XTERM_BUTTON_EVENT_TRACKING: - if (xmouse_seq != NULL) - define_sequence (MCKEY_MOUSE, xmouse_seq, MCKEY_NOACTION); - if (xmouse_extended_seq != NULL) - define_sequence (MCKEY_EXTENDED_MOUSE, xmouse_extended_seq, MCKEY_NOACTION); - break; - - default: - break; - } - - enable_mouse (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -enable_mouse (void) -{ - if (mouse_enabled) - return; - - switch (use_mouse_p) - { -#ifdef HAVE_LIBGPM - case MOUSE_GPM: - { - Gpm_Connect conn; - - conn.eventMask = ~GPM_MOVE; - conn.defaultMask = GPM_MOVE; - conn.minMod = 0; - conn.maxMod = 0; - - mouse_fd = Gpm_Open (&conn, 0); - if (mouse_fd == -1) - { - use_mouse_p = MOUSE_NONE; - return; - } - mouse_enabled = TRUE; - } - break; -#endif /* HAVE_LIBGPM */ - - case MOUSE_XTERM_NORMAL_TRACKING: - /* save old highlight mouse tracking */ - printf (ESC_STR "[?1001s"); - - /* enable mouse tracking */ - printf (ESC_STR "[?1000h"); - - /* enable SGR extended mouse reporting */ - printf (ESC_STR "[?1006h"); - - fflush (stdout); - mouse_enabled = TRUE; - break; - - case MOUSE_XTERM_BUTTON_EVENT_TRACKING: - /* save old highlight mouse tracking */ - printf (ESC_STR "[?1001s"); - - /* enable mouse tracking */ - printf (ESC_STR "[?1002h"); - - /* enable SGR extended mouse reporting */ - printf (ESC_STR "[?1006h"); - - fflush (stdout); - mouse_enabled = TRUE; - break; - - default: - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -disable_mouse (void) -{ - if (!mouse_enabled) - return; - - mouse_enabled = FALSE; - - switch (use_mouse_p) - { -#ifdef HAVE_LIBGPM - case MOUSE_GPM: - Gpm_Close (); - break; -#endif - case MOUSE_XTERM_NORMAL_TRACKING: - /* disable SGR extended mouse reporting */ - printf (ESC_STR "[?1006l"); - - /* disable mouse tracking */ - printf (ESC_STR "[?1000l"); - - /* restore old highlight mouse tracking */ - printf (ESC_STR "[?1001r"); - - fflush (stdout); - break; - case MOUSE_XTERM_BUTTON_EVENT_TRACKING: - /* disable SGR extended mouse reporting */ - printf (ESC_STR "[?1006l"); - - /* disable mouse tracking */ - printf (ESC_STR "[?1002l"); - - /* restore old highlight mouse tracking */ - printf (ESC_STR "[?1001r"); - - fflush (stdout); - break; - default: - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/mouse.h b/recipes/wip/files/mc/source/lib/tty/mouse.h deleted file mode 100644 index 99d0a69a2f..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/mouse.h +++ /dev/null @@ -1,117 +0,0 @@ - -/** \file mouse.h - * \brief Header: mouse managing - * - * Events received by clients of this library have their coordinates 0 based - */ - -#ifndef MC__MOUSE_H -#define MC__MOUSE_H - -#ifdef HAVE_LIBGPM -/* GPM mouse support include file */ -#include -#endif /* !HAVE_LIBGPM */ - - -/*** typedefs(not structures) and defined constants **********************************************/ - -#ifndef HAVE_LIBGPM -/* Equivalent definitions for non-GPM mouse support */ -/* These lines are modified version from the lines appearing in the */ -/* gpm.h include file of the Linux General Purpose Mouse server */ - -#define GPM_B_LEFT (1 << 2) -#define GPM_B_MIDDLE (1 << 1) -#define GPM_B_RIGHT (1 << 0) - -#define GPM_BARE_EVENTS(ev) ((ev)&0xF) -#endif /* !HAVE_LIBGPM */ - -/* Mouse wheel events */ -#ifndef GPM_B_DOWN -#define GPM_B_DOWN (1 << 5) -#endif - -#ifndef GPM_B_UP -#define GPM_B_UP (1 << 4) -#endif - -/*** enums ***************************************************************************************/ - -#ifndef HAVE_LIBGPM -/* Xterm mouse support supports only GPM_DOWN and GPM_UP */ -/* If you use others make sure your code also works without them */ -enum Gpm_Etype -{ - GPM_MOVE = 1, - GPM_DRAG = 2, /* exactly one in four is active at a time */ - GPM_DOWN = 4, - GPM_UP = 8, - - - GPM_SINGLE = 16, /* at most one in three is set */ - GPM_DOUBLE = 32, - GPM_TRIPLE = 64, - - GPM_MFLAG = 128, /* motion during click? */ - GPM_HARD = 256 /* if set in the defaultMask, force an already - used event to pass over to another handler */ -}; -#endif /* !HAVE_LIBGPM */ - -/* Constants returned from the mouse callback */ -enum -{ - MOU_UNHANDLED = 0, - MOU_NORMAL, - MOU_REPEAT -}; - -/* Type of mouse support */ -typedef enum -{ - MOUSE_NONE, /* Not detected yet */ - MOUSE_DISABLED, /* Explicitly disabled by -d */ - MOUSE_GPM, /* Support using GPM on Linux */ - MOUSE_XTERM, /* Support using xterm-style mouse reporting */ - MOUSE_XTERM_NORMAL_TRACKING = MOUSE_XTERM, - MOUSE_XTERM_BUTTON_EVENT_TRACKING -} Mouse_Type; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -#ifndef HAVE_LIBGPM -typedef struct Gpm_Event -{ - int buttons, x, y; - enum Gpm_Etype type; -} Gpm_Event; -#endif /* !HAVE_LIBGPM */ - -/*** global variables defined in .c file *********************************************************/ - -/* Type of the currently used mouse */ -extern Mouse_Type use_mouse_p; - -/* To be used when gpm_fd were initially >= 0 */ -extern int mouse_fd; - -/* String indicating that a mouse event has occurred, usually "\E[M" */ -extern const char *xmouse_seq; - -/* String indicating that an SGR extended mouse event has occurred, namely "\E[<" */ -extern const char *xmouse_extended_seq; - -/*** declarations of public functions ************************************************************/ - -/* General (i.e. both for xterm and gpm) mouse support definitions */ - -void init_mouse (void); -void enable_mouse (void); -void disable_mouse (void); - -void show_mouse_pointer (int x, int y); - -/*** inline functions ****************************************************************************/ -#endif /* MC_MOUSE_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/tty-internal.c b/recipes/wip/files/mc/source/lib/tty/tty-internal.c deleted file mode 100644 index 2b8e2d7f83..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/tty-internal.c +++ /dev/null @@ -1,110 +0,0 @@ -/* - Internal stuff of the terminal controlling library. - - Copyright (C) 2019-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2019. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file - * \brief Source: internal stuff of the terminal controlling library. - */ - -#include - -#include -#include -#include -#include - -#include "lib/global.h" - -#include - -#include "tty-internal.h" - -/*** global variables ****************************************************************************/ - -/* pipe to handle SIGWINCH */ -int sigwinch_pipe[2]; - -/*** file scope macro definitions ****************************************************************/ - -/*** global variables ****************************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -tty_create_winch_pipe (void) -{ - GError *mcerror = NULL; - - if (!g_unix_open_pipe (sigwinch_pipe, FD_CLOEXEC, &mcerror)) - { - fprintf (stderr, _("\nCannot create pipe for SIGWINCH: %s (%d)\n"), - mcerror->message, mcerror->code); - g_error_free (mcerror); - exit (EXIT_FAILURE); - } - - /* If we read from an empty pipe, then read(2) will block until data is available. - * If we write to a full pipe, then write(2) blocks until sufficient data has been read - * from the pipe to allow the write to complete.. - * Therefore, use nonblocking I/O. - */ - if (!g_unix_set_fd_nonblocking (sigwinch_pipe[0], TRUE, &mcerror)) - { - fprintf (stderr, _("\nCannot configure write end of SIGWINCH pipe: %s (%d)\n"), - mcerror->message, mcerror->code); - g_error_free (mcerror); - tty_destroy_winch_pipe (); - exit (EXIT_FAILURE); - } - - if (!g_unix_set_fd_nonblocking (sigwinch_pipe[1], TRUE, &mcerror)) - { - fprintf (stderr, _("\nCannot configure read end of SIGWINCH pipe: %s (%d)\n"), - mcerror->message, mcerror->code); - g_error_free (mcerror); - tty_destroy_winch_pipe (); - exit (EXIT_FAILURE); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_destroy_winch_pipe (void) -{ - (void) close (sigwinch_pipe[0]); - (void) close (sigwinch_pipe[1]); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/tty-internal.h b/recipes/wip/files/mc/source/lib/tty/tty-internal.h deleted file mode 100644 index a2cdfa7d70..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/tty-internal.h +++ /dev/null @@ -1,49 +0,0 @@ - -/** \file tty-internal.h - * \brief Header: internal stuff of the terminal controlling library - */ - -#ifndef MC__TTY_INTERNAL_H -#define MC__TTY_INTERNAL_H - -#include "lib/global.h" /* include */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -/* Taken from S-Lang's slutty.c */ -#ifdef _POSIX_VDISABLE -#define NULL_VALUE _POSIX_VDISABLE -#else -#define NULL_VALUE 255 -#endif - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/* The mouse is currently: TRUE - enabled, FALSE - disabled */ -extern gboolean mouse_enabled; - -/* terminal ca capabilities */ -extern char *smcup; -extern char *rmcup; - -/* pipe to handle SIGWINCH */ -extern int sigwinch_pipe[2]; - -/*** declarations of public functions ************************************************************/ - -void tty_create_winch_pipe (void); -void tty_destroy_winch_pipe (void); - -char *mc_tty_normalize_from_utf8 (const char *str); -void tty_init_xterm_support (gboolean is_xterm); -int tty_lowlevel_getch (void); - -void tty_colorize_area (int y, int x, int rows, int cols, int color); - -/*** inline functions ****************************************************************************/ - -#endif /* MC_TTY_INTERNAL_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/tty-ncurses.c b/recipes/wip/files/mc/source/lib/tty/tty-ncurses.c deleted file mode 100644 index f70d76d7a0..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/tty-ncurses.c +++ /dev/null @@ -1,773 +0,0 @@ -/* - Interface to the terminal controlling library. - Ncurses wrapper. - - Copyright (C) 2005-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2009. - Ilia Maslakov , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file - * \brief Source: NCurses-based tty layer of Midnight-commander - */ - -#include - -#include -#include -#include -#ifdef HAVE_SYS_IOCTL_H -#include -#endif -#include - -#include "lib/global.h" -#include "lib/strutil.h" /* str_term_form */ -#include "lib/util.h" - -#ifndef WANT_TERM_H -#define WANT_TERM_H -#endif - -#include "tty-internal.h" /* mc_tty_normalize_from_utf8() */ -#include "tty.h" -#include "color.h" /* tty_setcolor */ -#include "color-internal.h" -#include "key.h" -#include "mouse.h" -#include "win.h" - -/* include at last !!! */ -#ifdef WANT_TERM_H -#ifdef HAVE_NCURSES_TERM_H -#include -#else -#include -#endif /* HAVE_NCURSES_TERM_H */ -#endif /* WANT_TERM_H */ - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#if !defined(CTRL) -#define CTRL(x) ((x) & 0x1f) -#endif - -#define yx_in_screen(y, x) \ - (y >= 0 && y < LINES && x >= 0 && x < COLS) - -/*** global variables ****************************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* ncurses supports cursor positions only within window */ -/* We use our own cursor coordinates to support partially visible widgets */ -static int mc_curs_row, mc_curs_col; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -tty_setup_sigwinch (void (*handler) (int)) -{ -#if (NCURSES_VERSION_MAJOR >= 4) && defined (SIGWINCH) - struct sigaction act, oact; - - memset (&act, 0, sizeof (act)); - act.sa_handler = handler; - sigemptyset (&act.sa_mask); -#ifdef SA_RESTART - act.sa_flags = SA_RESTART; -#endif /* SA_RESTART */ - my_sigaction (SIGWINCH, &act, &oact); -#endif /* SIGWINCH */ - - tty_create_winch_pipe (); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -sigwinch_handler (int dummy) -{ - ssize_t n = 0; - - (void) dummy; - - n = write (sigwinch_pipe[1], "", 1); - (void) n; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Get visible part of area. - * - * @returns TRUE if any part of area is in screen bounds, FALSE otherwise. - */ -static gboolean -tty_clip (int *y, int *x, int *rows, int *cols) -{ - if (*y < 0) - { - *rows += *y; - - if (*rows <= 0) - return FALSE; - - *y = 0; - } - - if (*x < 0) - { - *cols += *x; - - if (*cols <= 0) - return FALSE; - - *x = 0; - } - - if (*y + *rows > LINES) - *rows = LINES - *y; - - if (*rows <= 0) - return FALSE; - - if (*x + *cols > COLS) - *cols = COLS - *x; - - if (*cols <= 0) - return FALSE; - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -int -mc_tty_normalize_lines_char (const char *ch) -{ - char *str2; - int res; - - struct mc_tty_lines_struct - { - const char *line; - int line_code; - } const lines_codes[] = { - {"\342\224\230", ACS_LRCORNER}, /* ┌ */ - {"\342\224\224", ACS_LLCORNER}, /* â”” */ - {"\342\224\220", ACS_URCORNER}, /* â” */ - {"\342\224\214", ACS_ULCORNER}, /* ┘ */ - {"\342\224\234", ACS_LTEE}, /* ├ */ - {"\342\224\244", ACS_RTEE}, /* ┤ */ - {"\342\224\254", ACS_TTEE}, /* ┬ */ - {"\342\224\264", ACS_BTEE}, /* â”´ */ - {"\342\224\200", ACS_HLINE}, /* ─ */ - {"\342\224\202", ACS_VLINE}, /* │ */ - {"\342\224\274", ACS_PLUS}, /* ┼ */ - - {"\342\225\235", ACS_LRCORNER | A_BOLD}, /* â•” */ - {"\342\225\232", ACS_LLCORNER | A_BOLD}, /* ╚ */ - {"\342\225\227", ACS_URCORNER | A_BOLD}, /* â•— */ - {"\342\225\224", ACS_ULCORNER | A_BOLD}, /* â• */ - {"\342\225\237", ACS_LTEE | A_BOLD}, /* ╟ */ - {"\342\225\242", ACS_RTEE | A_BOLD}, /* â•¢ */ - {"\342\225\244", ACS_TTEE | A_BOLD}, /* ╤ */ - {"\342\225\247", ACS_BTEE | A_BOLD}, /* â•§ */ - {"\342\225\220", ACS_HLINE | A_BOLD}, /* â• */ - {"\342\225\221", ACS_VLINE | A_BOLD}, /* â•‘ */ - - {NULL, 0} - }; - - if (ch == NULL) - return (int) ' '; - - for (res = 0; lines_codes[res].line; res++) - { - if (strcmp (ch, lines_codes[res].line) == 0) - return lines_codes[res].line_code; - } - - str2 = mc_tty_normalize_from_utf8 (ch); - res = g_utf8_get_char_validated (str2, -1); - - if (res < 0) - res = (unsigned char) str2[0]; - g_free (str2); - - return res; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_init (gboolean mouse_enable, gboolean is_xterm) -{ - struct termios mode; - - initscr (); - -#ifdef HAVE_ESCDELAY - /* - * If ncurses exports the ESCDELAY variable, it should be set to - * a low value, or you'll experience a delay in processing escape - * sequences that are recognized by mc (e.g. Esc-Esc). On the other - * hand, making ESCDELAY too small can result in some sequences - * (e.g. cursor arrows) being reported as separate keys under heavy - * processor load, and this can be a problem if mc hasn't learned - * them in the "Learn Keys" dialog. The value is in milliseconds. - */ - ESCDELAY = 200; -#endif /* HAVE_ESCDELAY */ - - tcgetattr (STDIN_FILENO, &mode); - /* use Ctrl-g to generate SIGINT */ - mode.c_cc[VINTR] = CTRL ('g'); /* ^g */ - /* disable SIGQUIT to allow use Ctrl-\ key */ - mode.c_cc[VQUIT] = NULL_VALUE; - tcsetattr (STDIN_FILENO, TCSANOW, &mode); - - /* curses remembers the "in-program" modes after this call */ - def_prog_mode (); - - tty_start_interrupt_key (); - - if (!mouse_enable) - use_mouse_p = MOUSE_DISABLED; - tty_init_xterm_support (is_xterm); /* do it before tty_enter_ca_mode() call */ - tty_enter_ca_mode (); - tty_raw_mode (); - noecho (); - keypad (stdscr, TRUE); - nodelay (stdscr, FALSE); - - tty_setup_sigwinch (sigwinch_handler); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_shutdown (void) -{ - tty_destroy_winch_pipe (); - tty_reset_shell_mode (); - tty_noraw_mode (); - tty_keypad (FALSE); - tty_reset_screen (); - tty_exit_ca_mode (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_enter_ca_mode (void) -{ - if (mc_global.tty.xterm_flag && smcup != NULL) - { - fprintf (stdout, /* ESC_STR ")0" */ ESC_STR "7" ESC_STR "[?47h"); - fflush (stdout); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_exit_ca_mode (void) -{ - if (mc_global.tty.xterm_flag && rmcup != NULL) - { - fprintf (stdout, ESC_STR "[?47l" ESC_STR "8" ESC_STR "[m"); - fflush (stdout); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_change_screen_size (void) -{ -#if defined(TIOCGWINSZ) && NCURSES_VERSION_MAJOR >= 4 - struct winsize winsz; - - winsz.ws_col = winsz.ws_row = 0; - -#ifndef NCURSES_VERSION - tty_noraw_mode (); - tty_reset_screen (); -#endif - - /* Ioctl on the STDIN_FILENO */ - ioctl (fileno (stdout), TIOCGWINSZ, &winsz); - if (winsz.ws_col != 0 && winsz.ws_row != 0) - { -#if defined(NCURSES_VERSION) && defined(HAVE_RESIZETERM) - resizeterm (winsz.ws_row, winsz.ws_col); - clearok (stdscr, TRUE); /* sigwinch's should use a semaphore! */ -#else - COLS = winsz.ws_col; - LINES = winsz.ws_row; -#endif - } -#endif /* defined(TIOCGWINSZ) || NCURSES_VERSION_MAJOR >= 4 */ - -#ifdef ENABLE_SUBSHELL - if (mc_global.tty.use_subshell) - tty_resize (mc_global.tty.subshell_pty); -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_reset_prog_mode (void) -{ - reset_prog_mode (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_reset_shell_mode (void) -{ - reset_shell_mode (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_raw_mode (void) -{ - raw (); /* FIXME: unneeded? */ - cbreak (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_noraw_mode (void) -{ - nocbreak (); /* FIXME: unneeded? */ - noraw (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_noecho (void) -{ - noecho (); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_flush_input (void) -{ - return flushinp (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_keypad (gboolean set) -{ - keypad (stdscr, (bool) set); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_nodelay (gboolean set) -{ - nodelay (stdscr, (bool) set); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_baudrate (void) -{ - return baudrate (); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_lowlevel_getch (void) -{ - return getch (); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_reset_screen (void) -{ - return endwin (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_touch_screen (void) -{ - touchwin (stdscr); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_gotoyx (int y, int x) -{ - mc_curs_row = y; - mc_curs_col = x; - - if (y < 0) - y = 0; - if (y >= LINES) - y = LINES - 1; - - if (x < 0) - x = 0; - if (x >= COLS) - x = COLS - 1; - - move (y, x); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_getyx (int *py, int *px) -{ - *py = mc_curs_row; - *px = mc_curs_col; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_draw_hline (int y, int x, int ch, int len) -{ - int x1; - - if (y < 0 || y >= LINES || x >= COLS) - return; - - x1 = x; - - if (x < 0) - { - len += x; - if (len <= 0) - return; - x = 0; - } - - if ((chtype) ch == ACS_HLINE) - ch = mc_tty_frm[MC_TTY_FRM_HORIZ]; - - move (y, x); - hline (ch, len); - move (y, x1); - - mc_curs_row = y; - mc_curs_col = x1; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_draw_vline (int y, int x, int ch, int len) -{ - int y1; - - if (x < 0 || x >= COLS || y >= LINES) - return; - - y1 = y; - - if (y < 0) - { - len += y; - if (len <= 0) - return; - y = 0; - } - - if ((chtype) ch == ACS_VLINE) - ch = mc_tty_frm[MC_TTY_FRM_VERT]; - - move (y, x); - vline (ch, len); - move (y1, x); - - mc_curs_row = y1; - mc_curs_col = x; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_fill_region (int y, int x, int rows, int cols, unsigned char ch) -{ - int i; - - if (!tty_clip (&y, &x, &rows, &cols)) - return; - - for (i = 0; i < rows; i++) - { - move (y + i, x); - hline (ch, cols); - } - - move (y, x); - - mc_curs_row = y; - mc_curs_col = x; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_colorize_area (int y, int x, int rows, int cols, int color) -{ -#ifdef ENABLE_SHADOWS - cchar_t *ctext; - wchar_t wch[10]; /* TODO not sure if the length is correct */ - attr_t attrs; - short color_pair; - - if (!use_colors || !tty_clip (&y, &x, &rows, &cols)) - return; - - tty_setcolor (color); - ctext = g_malloc (sizeof (cchar_t) * (cols + 1)); - - for (int row = 0; row < rows; row++) - { - mvin_wchnstr (y + row, x, ctext, cols); - - for (int col = 0; col < cols; col++) - { - getcchar (&ctext[col], wch, &attrs, &color_pair, NULL); - setcchar (&ctext[col], wch, attrs, color, NULL); - } - - mvadd_wchnstr (y + row, x, ctext, cols); - } - - g_free (ctext); -#else - (void) y; - (void) x; - (void) rows; - (void) cols; - (void) color; -#endif /* ENABLE_SHADOWS */ -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_set_alt_charset (gboolean alt_charset) -{ - (void) alt_charset; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_display_8bit (gboolean what) -{ - meta (stdscr, (int) what); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_print_char (int c) -{ - if (yx_in_screen (mc_curs_row, mc_curs_col)) - addch (c); - mc_curs_col++; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_print_anychar (int c) -{ - if (mc_global.utf8_display || c > 255) - { - int res; - unsigned char str[UTF8_CHAR_LEN + 1]; - - res = g_unichar_to_utf8 (c, (char *) str); - if (res == 0) - { - if (yx_in_screen (mc_curs_row, mc_curs_col)) - addch ('.'); - mc_curs_col++; - } - else - { - const char *s; - - str[res] = '\0'; - s = str_term_form ((char *) str); - - if (yx_in_screen (mc_curs_row, mc_curs_col)) - addstr (s); - - if (g_unichar_iswide (c)) - mc_curs_col += 2; - else if (!g_unichar_iszerowidth (c)) - mc_curs_col++; - } - } - else - { - if (yx_in_screen (mc_curs_row, mc_curs_col)) - addch (c); - mc_curs_col++; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_print_alt_char (int c, gboolean single) -{ - if (yx_in_screen (mc_curs_row, mc_curs_col)) - { - if ((chtype) c == ACS_VLINE) - c = mc_tty_frm[single ? MC_TTY_FRM_VERT : MC_TTY_FRM_DVERT]; - else if ((chtype) c == ACS_HLINE) - c = mc_tty_frm[single ? MC_TTY_FRM_HORIZ : MC_TTY_FRM_DHORIZ]; - else if ((chtype) c == ACS_LTEE) - c = mc_tty_frm[single ? MC_TTY_FRM_LEFTMIDDLE : MC_TTY_FRM_DLEFTMIDDLE]; - else if ((chtype) c == ACS_RTEE) - c = mc_tty_frm[single ? MC_TTY_FRM_RIGHTMIDDLE : MC_TTY_FRM_DRIGHTMIDDLE]; - else if ((chtype) c == ACS_ULCORNER) - c = mc_tty_frm[single ? MC_TTY_FRM_LEFTTOP : MC_TTY_FRM_DLEFTTOP]; - else if ((chtype) c == ACS_LLCORNER) - c = mc_tty_frm[single ? MC_TTY_FRM_LEFTBOTTOM : MC_TTY_FRM_DLEFTBOTTOM]; - else if ((chtype) c == ACS_URCORNER) - c = mc_tty_frm[single ? MC_TTY_FRM_RIGHTTOP : MC_TTY_FRM_DRIGHTTOP]; - else if ((chtype) c == ACS_LRCORNER) - c = mc_tty_frm[single ? MC_TTY_FRM_RIGHTBOTTOM : MC_TTY_FRM_DRIGHTBOTTOM]; - else if ((chtype) c == ACS_PLUS) - c = mc_tty_frm[MC_TTY_FRM_CROSS]; - - addch (c); - } - - mc_curs_col++; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_print_string (const char *s) -{ - int len; - int start = 0; - - s = str_term_form (s); - len = str_term_width1 (s); - - /* line is upper or below the screen or entire line is before or after screen */ - if (mc_curs_row < 0 || mc_curs_row >= LINES || mc_curs_col + len <= 0 || mc_curs_col >= COLS) - { - mc_curs_col += len; - return; - } - - /* skip invisible left part */ - if (mc_curs_col < 0) - { - start = -mc_curs_col; - len += mc_curs_col; - mc_curs_col = 0; - } - - mc_curs_col += len; - if (mc_curs_col >= COLS) - len = COLS - (mc_curs_col - len); - - addstr (str_term_substring (s, start, len)); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_printf (const char *fmt, ...) -{ - va_list args; - char buf[BUF_1K]; /* FIXME: is it enough? */ - - va_start (args, fmt); - g_vsnprintf (buf, sizeof (buf), fmt, args); - va_end (args); - tty_print_string (buf); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -tty_tgetstr (const char *cap) -{ - char *unused = NULL; - - return tgetstr ((NCURSES_CONST char *) cap, &unused); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_refresh (void) -{ - refresh (); - doupdate (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_beep (void) -{ - beep (); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/tty-ncurses.h b/recipes/wip/files/mc/source/lib/tty/tty-ncurses.h deleted file mode 100644 index 8feb17ccd0..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/tty-ncurses.h +++ /dev/null @@ -1,50 +0,0 @@ - -#ifndef MC__TTY_NCURSES_H -#define MC__TTY_NCURSES_H - -/* for cchar_t, getcchar(), setcchar() */ -#ifndef _XOPEN_SOURCE_EXTENDED -#define _XOPEN_SOURCE_EXTENDED -#endif - -#ifdef USE_NCURSES -#ifdef HAVE_NCURSES_CURSES_H -#include -#elif defined (HAVE_NCURSES_NCURSES_H) -#include -#elif defined (HAVE_NCURSESW_CURSES_H) -#include -#elif defined (HAVE_NCURSES_HCURSES_H) || defined (HAVE_NCURSES_H) -#include -#else -#include -#endif -#endif /* USE_NCURSES */ - -#ifdef USE_NCURSESW -#include -#endif /* USE_NCURSESW */ - -/* netbsd-libcurses doesn't define NCURSES_CONST */ -#ifndef NCURSES_CONST -#define NCURSES_CONST const -#endif - -/* do not draw shadows if NCurses is built with --disable-widec */ -#if defined(NCURSES_WIDECHAR) && NCURSES_WIDECHAR -#define ENABLE_SHADOWS 1 -#endif - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/*** inline functions ****************************************************************************/ - -#endif /* MC_TTY_NCURSES_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/tty-slang.c b/recipes/wip/files/mc/source/lib/tty/tty-slang.c deleted file mode 100644 index c9132b1161..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/tty-slang.c +++ /dev/null @@ -1,780 +0,0 @@ -/* - Interface to the terminal controlling library. - Slang wrapper. - - Copyright (C) 2005-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2009 - Egmont Koblinger , 2010 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file - * \brief Source: S-Lang-based tty layer of Midnight Commander - */ - -#include - -#include -#include -#include -#include /* size_t */ -#include -#ifdef HAVE_SYS_IOCTL_H -#include -#endif -#include - -#include "lib/global.h" -#include "lib/strutil.h" /* str_term_form */ -#include "lib/util.h" /* is_printable() */ - -#include "tty-internal.h" /* mc_tty_normalize_from_utf8() */ -#include "tty.h" -#include "color.h" -#include "color-slang.h" -#include "color-internal.h" -#include "mouse.h" /* Gpm_Event is required in key.h */ -#include "key.h" /* define_sequence */ -#include "win.h" - - -/*** global variables ****************************************************************************/ - -/* If true program softkeys (HP terminals only) on startup and after every - command ran in the subshell to the description found in the termcap/terminfo - database */ -int reset_hp_softkeys = 0; - -/*** file scope macro definitions ****************************************************************/ - -#ifndef SLTT_MAX_SCREEN_COLS -#define SLTT_MAX_SCREEN_COLS 512 -#endif - -#ifndef SLTT_MAX_SCREEN_ROWS -#define SLTT_MAX_SCREEN_ROWS 512 -#endif - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* Various saved termios settings that we control here */ -static struct termios boot_mode; -static struct termios new_mode; - -/* Controls whether we should wait for input in tty_lowlevel_getch */ -static gboolean no_slang_delay; - -static gboolean slsmg_active = FALSE; - -/* This table describes which capabilities we want and which values we - * assign to them. - */ -static const struct -{ - int key_code; - const char *key_name; -} key_table[] = { - /* *INDENT-OFF* */ - { KEY_F (0), "k0" }, - { KEY_F (1), "k1" }, - { KEY_F (2), "k2" }, - { KEY_F (3), "k3" }, - { KEY_F (4), "k4" }, - { KEY_F (5), "k5" }, - { KEY_F (6), "k6" }, - { KEY_F (7), "k7" }, - { KEY_F (8), "k8" }, - { KEY_F (9), "k9" }, - { KEY_F (10), "k;" }, - { KEY_F (11), "F1" }, - { KEY_F (12), "F2" }, - { KEY_F (13), "F3" }, - { KEY_F (14), "F4" }, - { KEY_F (15), "F5" }, - { KEY_F (16), "F6" }, - { KEY_F (17), "F7" }, - { KEY_F (18), "F8" }, - { KEY_F (19), "F9" }, - { KEY_F (20), "FA" }, - { KEY_IC, "kI" }, - { KEY_NPAGE, "kN" }, - { KEY_PPAGE, "kP" }, - { KEY_LEFT, "kl" }, - { KEY_RIGHT, "kr" }, - { KEY_UP, "ku" }, - { KEY_DOWN, "kd" }, - { KEY_DC, "kD" }, - { KEY_BACKSPACE, "kb" }, - { KEY_HOME, "kh" }, - { KEY_END, "@7" }, - { 0, NULL } - /* *INDENT-ON* */ -}; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -tty_setup_sigwinch (void (*handler) (int)) -{ - (void) SLsignal (SIGWINCH, handler); - tty_create_winch_pipe (); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -sigwinch_handler (int dummy) -{ - ssize_t n = 0; - - (void) dummy; - - n = write (sigwinch_pipe[1], "", 1); - (void) n; - - (void) SLsignal (SIGWINCH, sigwinch_handler); -} - -/* --------------------------------------------------------------------------------------------- */ - -/* HP Terminals have capabilities (pfkey, pfloc, pfx) to program function keys. - elm 2.4pl15 invoked with the -K option utilizes these softkeys and the - consequence is that function keys don't work in MC sometimes... - Unfortunately I don't now the one and only escape sequence to turn off. - softkeys (elm uses three different capabilities to turn on softkeys and two. - capabilities to turn them off).. - Among other things elm uses the pair we already use in slang_keypad. That's. - the reason why I call slang_reset_softkeys from slang_keypad. In lack of - something better the softkeys are programmed to their defaults from the - termcap/terminfo database. - The escape sequence to program the softkeys is taken from elm and it is. - hardcoded because neither slang nor ncurses 4.1 know how to 'printf' this. - sequence. -- Norbert - */ - -static void -slang_reset_softkeys (void) -{ - int key; - static const char display[] = " "; - char tmp[BUF_SMALL]; - - for (key = 1; key < 9; key++) - { - char *send; - - g_snprintf (tmp, sizeof (tmp), "k%d", key); - send = SLtt_tgetstr (tmp); - if (send != NULL) - { - g_snprintf (tmp, sizeof (tmp), ESC_STR "&f%dk%dd%dL%s%s", key, - (int) (sizeof (display) - 1), (int) strlen (send), display, send); - SLtt_write_string (tmp); - } - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -do_define_key (int code, const char *strcap) -{ - char *seq; - - seq = SLtt_tgetstr ((SLFUTURE_CONST char *) strcap); - if (seq != NULL) - define_sequence (code, seq, MCKEY_NOACTION); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -load_terminfo_keys (void) -{ - int i; - - for (i = 0; key_table[i].key_code; i++) - do_define_key (key_table[i].key_code, key_table[i].key_name); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -int -mc_tty_normalize_lines_char (const char *str) -{ - char *str2; - int res; - - struct mc_tty_lines_struct - { - const char *line; - int line_code; - } const lines_codes[] = { - {"\342\224\214", SLSMG_ULCORN_CHAR}, - {"\342\224\220", SLSMG_URCORN_CHAR}, - {"\342\224\224", SLSMG_LLCORN_CHAR}, - {"\342\224\230", SLSMG_LRCORN_CHAR}, - {"\342\224\234", SLSMG_LTEE_CHAR}, - {"\342\224\244", SLSMG_RTEE_CHAR}, - {"\342\224\254", SLSMG_UTEE_CHAR}, - {"\342\224\264", SLSMG_DTEE_CHAR}, - {"\342\224\200", SLSMG_HLINE_CHAR}, - {"\342\224\202", SLSMG_VLINE_CHAR}, - {"\342\224\274", SLSMG_PLUS_CHAR}, - - {NULL, 0} - }; - - if (!str) - return (int) ' '; - - for (res = 0; lines_codes[res].line; res++) - { - if (strcmp (str, lines_codes[res].line) == 0) - return lines_codes[res].line_code; - } - - str2 = mc_tty_normalize_from_utf8 (str); - res = g_utf8_get_char_validated (str2, -1); - - if (res < 0) - res = (unsigned char) str2[0]; - g_free (str2); - - return res; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_init (gboolean mouse_enable, gboolean is_xterm) -{ - SLtt_Ignore_Beep = 1; - - SLutf8_enable (-1); /* has to be called first before any of the other functions. */ - SLtt_get_terminfo (); - /* - * If the terminal in not in terminfo but begins with a well-known - * string such as "linux" or "xterm" S-Lang will go on, but the - * terminal size and several other variables won't be initialized - * (as of S-Lang 1.4.4). Detect it and abort. Also detect extremely - * small screen dimensions. - */ - if ((COLS < 10) || (LINES < 5) -#if SLANG_VERSION < 20303 - /* Beginning from pre2.3.3-8 (55f58798c267d76a1b93d0d916027b71a10ac1ee), - these limitations were eliminated. */ - || (COLS > SLTT_MAX_SCREEN_COLS) || (LINES > SLTT_MAX_SCREEN_ROWS) -#endif - ) - { - fprintf (stderr, - _("Screen size %dx%d is not supported.\n" - "Check the TERM environment variable.\n"), COLS, LINES); - exit (EXIT_FAILURE); - } - - tcgetattr (fileno (stdin), &boot_mode); - /* 255 = ignore abort char; XCTRL('g') for abort char = ^g */ - SLang_init_tty (XCTRL ('g'), 1, 0); - - if (mc_global.tty.ugly_line_drawing) - SLtt_Has_Alt_Charset = 0; - - tcgetattr (SLang_TT_Read_FD, &new_mode); - - tty_reset_prog_mode (); - load_terminfo_keys (); - - SLtt_Blink_Mode = (tty_use_256colors (NULL) || tty_use_truecolors (NULL)) ? 1 : 0; - - tty_start_interrupt_key (); - - /* It's the small part from the previous init_key() */ - init_key_input_fd (); - - /* For 8-bit locales, NCurses handles 154 (0x9A) symbol properly, while S-Lang - * requires SLsmg_Display_Eight_Bit >= 154 (OR manual filtering if xterm display - * detected - but checking TERM would fail under screen, OR running xterm - * with allowC1Printable). - */ - tty_display_8bit (FALSE); - - SLsmg_init_smg (); - slsmg_active = TRUE; - if (!mouse_enable) - use_mouse_p = MOUSE_DISABLED; - tty_init_xterm_support (is_xterm); /* do it before tty_enter_ca_mode() call */ - tty_enter_ca_mode (); - tty_keypad (TRUE); - tty_nodelay (FALSE); - - tty_setup_sigwinch (sigwinch_handler); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_shutdown (void) -{ - char *op_cap; - - tty_destroy_winch_pipe (); - tty_reset_shell_mode (); - tty_noraw_mode (); - tty_keypad (FALSE); - tty_reset_screen (); - tty_exit_ca_mode (); - SLang_reset_tty (); - slsmg_active = FALSE; - - /* Load the op capability to reset the colors to those that were - * active when the program was started up - */ - op_cap = SLtt_tgetstr ((SLFUTURE_CONST char *) "op"); - if (op_cap != NULL) - { - fputs (op_cap, stdout); - fflush (stdout); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_enter_ca_mode (void) -{ - /* S-Lang handles alternate screen switching and cursor position saving */ -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_exit_ca_mode (void) -{ - /* S-Lang handles alternate screen switching and cursor position restoring */ -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_change_screen_size (void) -{ - SLtt_get_screen_size (); - if (slsmg_active) - SLsmg_reinit_smg (); - -#ifdef ENABLE_SUBSHELL - if (mc_global.tty.use_subshell) - tty_resize (mc_global.tty.subshell_pty); -#endif -} - -/* --------------------------------------------------------------------------------------------- */ -/* Done each time we come back from done mode */ - -void -tty_reset_prog_mode (void) -{ - tcsetattr (SLang_TT_Read_FD, TCSANOW, &new_mode); - SLsmg_init_smg (); - slsmg_active = TRUE; - SLsmg_touch_lines (0, LINES); -} - -/* --------------------------------------------------------------------------------------------- */ -/* Called each time we want to shutdown slang screen manager */ - -void -tty_reset_shell_mode (void) -{ - tcsetattr (SLang_TT_Read_FD, TCSANOW, &boot_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_raw_mode (void) -{ - tcsetattr (SLang_TT_Read_FD, TCSANOW, &new_mode); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_noraw_mode (void) -{ -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_noecho (void) -{ -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_flush_input (void) -{ - return 0; /* OK */ -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_keypad (gboolean set) -{ - char *keypad_string; - - keypad_string = SLtt_tgetstr ((SLFUTURE_CONST char *) (set ? "ks" : "ke")); - if (keypad_string != NULL) - SLtt_write_string (keypad_string); - if (set && reset_hp_softkeys) - slang_reset_softkeys (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_nodelay (gboolean set) -{ - no_slang_delay = set; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_baudrate (void) -{ - return SLang_TT_Baud_Rate; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_lowlevel_getch (void) -{ - int c; - - if (no_slang_delay && (SLang_input_pending (0) == 0)) - return -1; - - c = SLang_getkey (); - if (c == SLANG_GETKEY_ERROR) - { - fprintf (stderr, - "SLang_getkey returned SLANG_GETKEY_ERROR\n" - "Assuming EOF on stdin and exiting\n"); - exit (EXIT_FAILURE); - } - - return c; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -tty_reset_screen (void) -{ - SLsmg_reset_smg (); - slsmg_active = FALSE; - return 0; /* OK */ -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_touch_screen (void) -{ - SLsmg_touch_lines (0, LINES); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_gotoyx (int y, int x) -{ - SLsmg_gotorc (y, x); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_getyx (int *py, int *px) -{ - *py = SLsmg_get_row (); - *px = SLsmg_get_column (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_draw_hline (int y, int x, int ch, int len) -{ - int x1; - - if (y < 0 || y >= LINES || x >= COLS) - return; - - x1 = x; - - if (x < 0) - { - len += x; - if (len <= 0) - return; - x = 0; - } - - if (ch == ACS_HLINE) - ch = mc_tty_frm[MC_TTY_FRM_HORIZ]; - if (ch == 0) - ch = ACS_HLINE; - - SLsmg_gotorc (y, x); - - if (ch == ACS_HLINE) - SLsmg_draw_hline (len); - else - while (len-- != 0) - tty_print_char (ch); - - SLsmg_gotorc (y, x1); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_draw_vline (int y, int x, int ch, int len) -{ - int y1; - - if (x < 0 || x >= COLS || y >= LINES) - return; - - y1 = y; - - if (y < 0) - { - len += y; - if (len <= 0) - return; - y = 0; - } - - if (ch == ACS_VLINE) - ch = mc_tty_frm[MC_TTY_FRM_VERT]; - if (ch == 0) - ch = ACS_VLINE; - - SLsmg_gotorc (y, x); - - if (ch == ACS_VLINE) - SLsmg_draw_vline (len); - else - { - int pos = 0; - - while (len-- != 0) - { - SLsmg_gotorc (y + pos, x); - tty_print_char (ch); - pos++; - } - } - - SLsmg_gotorc (y1, x); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_fill_region (int y, int x, int rows, int cols, unsigned char ch) -{ - SLsmg_fill_region (y, x, rows, cols, ch); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_colorize_area (int y, int x, int rows, int cols, int color) -{ - if (use_colors) - SLsmg_set_color_in_region (color, y, x, rows, cols); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_set_alt_charset (gboolean alt_charset) -{ - SLsmg_set_char_set ((int) alt_charset); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_display_8bit (gboolean what) -{ - SLsmg_Display_Eight_Bit = what ? 128 : 160; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_print_char (int c) -{ - SLsmg_write_char ((SLwchar_Type) ((unsigned int) c)); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_print_alt_char (int c, gboolean single) -{ -#define DRAW(x, y) (x == y) \ - ? SLsmg_draw_object (SLsmg_get_row(), SLsmg_get_column(), x) \ - : SLsmg_write_char ((unsigned int) y) - switch (c) - { - case ACS_VLINE: - DRAW (c, mc_tty_frm[single ? MC_TTY_FRM_VERT : MC_TTY_FRM_DVERT]); - break; - case ACS_HLINE: - DRAW (c, mc_tty_frm[single ? MC_TTY_FRM_HORIZ : MC_TTY_FRM_DHORIZ]); - break; - case ACS_LTEE: - DRAW (c, mc_tty_frm[single ? MC_TTY_FRM_LEFTMIDDLE : MC_TTY_FRM_DLEFTMIDDLE]); - break; - case ACS_RTEE: - DRAW (c, mc_tty_frm[single ? MC_TTY_FRM_RIGHTMIDDLE : MC_TTY_FRM_DRIGHTMIDDLE]); - break; - case ACS_TTEE: - DRAW (c, mc_tty_frm[single ? MC_TTY_FRM_TOPMIDDLE : MC_TTY_FRM_DTOPMIDDLE]); - break; - case ACS_BTEE: - DRAW (c, mc_tty_frm[single ? MC_TTY_FRM_BOTTOMMIDDLE : MC_TTY_FRM_DBOTTOMMIDDLE]); - break; - case ACS_ULCORNER: - DRAW (c, mc_tty_frm[single ? MC_TTY_FRM_LEFTTOP : MC_TTY_FRM_DLEFTTOP]); - break; - case ACS_LLCORNER: - DRAW (c, mc_tty_frm[single ? MC_TTY_FRM_LEFTBOTTOM : MC_TTY_FRM_DLEFTBOTTOM]); - break; - case ACS_URCORNER: - DRAW (c, mc_tty_frm[single ? MC_TTY_FRM_RIGHTTOP : MC_TTY_FRM_DRIGHTTOP]); - break; - case ACS_LRCORNER: - DRAW (c, mc_tty_frm[single ? MC_TTY_FRM_RIGHTBOTTOM : MC_TTY_FRM_DRIGHTBOTTOM]); - break; - case ACS_PLUS: - DRAW (c, mc_tty_frm[MC_TTY_FRM_CROSS]); - break; - default: - SLsmg_write_char ((unsigned int) c); - } -#undef DRAW -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_print_anychar (int c) -{ - if (c > 255) - { - char str[UTF8_CHAR_LEN + 1]; - int res; - - res = g_unichar_to_utf8 (c, str); - if (res == 0) - { - str[0] = '.'; - str[1] = '\0'; - } - else - { - str[res] = '\0'; - } - SLsmg_write_string ((char *) str_term_form (str)); - } - else - { - if (!is_printable (c)) - c = '.'; - SLsmg_write_char ((SLwchar_Type) ((unsigned int) c)); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_print_string (const char *s) -{ - SLsmg_write_string ((char *) str_term_form (s)); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_printf (const char *fmt, ...) -{ - va_list args; - - va_start (args, fmt); - SLsmg_vprintf ((char *) fmt, args); - va_end (args); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -tty_tgetstr (const char *cap) -{ - return SLtt_tgetstr ((SLFUTURE_CONST char *) cap); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_refresh (void) -{ - SLsmg_refresh (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_beep (void) -{ - SLtt_beep (); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/tty-slang.h b/recipes/wip/files/mc/source/lib/tty/tty-slang.h deleted file mode 100644 index eeaade388a..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/tty-slang.h +++ /dev/null @@ -1,48 +0,0 @@ - -#ifndef MC__TTY_SLANG_H -#define MC__TTY_SLANG_H - -#include - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define KEY_F(x) (1000 + x) - -#define ACS_VLINE SLSMG_VLINE_CHAR -#define ACS_HLINE SLSMG_HLINE_CHAR -#define ACS_LTEE SLSMG_LTEE_CHAR -#define ACS_RTEE SLSMG_RTEE_CHAR -#define ACS_TTEE SLSMG_UTEE_CHAR -#define ACS_BTEE SLSMG_DTEE_CHAR -#define ACS_ULCORNER SLSMG_ULCORN_CHAR -#define ACS_LLCORNER SLSMG_LLCORN_CHAR -#define ACS_URCORNER SLSMG_URCORN_CHAR -#define ACS_LRCORNER SLSMG_LRCORN_CHAR -#define ACS_PLUS SLSMG_PLUS_CHAR - -#define COLS SLtt_Screen_Cols -#define LINES SLtt_Screen_Rows - -#define ENABLE_SHADOWS 1 - -/*** enums ***************************************************************************************/ - -enum -{ - KEY_BACKSPACE = 400, - KEY_END, KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT, - KEY_HOME, KEY_A1, KEY_C1, KEY_NPAGE, KEY_PPAGE, KEY_IC, - KEY_ENTER, KEY_DC, KEY_SCANCEL, KEY_BTAB -}; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -extern int reset_hp_softkeys; - -/*** declarations of public functions ************************************************************/ - -/*** inline functions ****************************************************************************/ - -#endif /* MC_TTY_SLANG_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/tty.c b/recipes/wip/files/mc/source/lib/tty/tty.c deleted file mode 100644 index 4dd6c629eb..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/tty.c +++ /dev/null @@ -1,417 +0,0 @@ -/* - Interface to the terminal controlling library. - - Copyright (C) 2005-2025 - Free Software Foundation, Inc. - - Written by: - Roland Illig , 2005. - Andrew Borodin , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file tty.c - * \brief Source: %interface to the terminal controlling library - */ - -#include - -#include -#include -#include -#include -#include /* memset() */ - -#ifdef HAVE_SYS_SELECT_H -#include -#else -#include -#include -#endif -#include /* exit() */ - -#ifdef HAVE_SYS_IOCTL_H -#include -#endif - -/* In some systems (like Solaris 11.4 SPARC), TIOCSWINSZ is defined in termios.h */ -#include - -#include "lib/global.h" -#include "lib/strutil.h" -#include "lib/util.h" - -#include "tty.h" -#include "tty-internal.h" -#include "color.h" /* tty_set_normal_attrs() */ -#include "mouse.h" /* use_mouse_p */ -#include "win.h" - -/*** global variables ****************************************************************************/ - -int mc_tty_frm[MC_TTY_FRM_MAX]; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static SIG_ATOMIC_VOLATILE_T got_interrupt = 0; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -sigintr_handler (int signo) -{ - (void) &signo; - got_interrupt = 1; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** - * Check terminal type. If $TERM is not set or value is empty, mc finishes with EXIT_FAILURE. - * - * @param force_xterm Set forced the XTerm type - * - * @return true if @param force_xterm is true or value of $TERM is one of following: - * term* - * konsole* - * rxvt* - * Eterm - * dtterm - * alacritty* - * foot* - * screen* - * tmux* - * contour* - */ -gboolean -tty_check_term (gboolean force_xterm) -{ - const char *termvalue; - - termvalue = getenv ("TERM"); - if (termvalue == NULL || *termvalue == '\0') - { - fputs (_("The TERM environment variable is unset!\n"), stderr); - exit (EXIT_FAILURE); - } - - /* *INDENT-OFF* */ - return force_xterm - || strncmp (termvalue, "xterm", 5) == 0 - || strncmp (termvalue, "konsole", 7) == 0 - || strncmp (termvalue, "rxvt", 4) == 0 - || strcmp (termvalue, "Eterm") == 0 - || strcmp (termvalue, "dtterm") == 0 - || strncmp (termvalue, "alacritty", 9) == 0 - || strncmp (termvalue, "foot", 4) == 0 - || strncmp (termvalue, "screen", 6) == 0 - || strncmp (termvalue, "tmux", 4) == 0 - || strncmp (termvalue, "contour", 7) == 0; - /* *INDENT-ON* */ -} - -/* --------------------------------------------------------------------------------------------- */ - -extern void -tty_start_interrupt_key (void) -{ - struct sigaction act; - - memset (&act, 0, sizeof (act)); - act.sa_handler = sigintr_handler; - sigemptyset (&act.sa_mask); -#ifdef SA_RESTART - act.sa_flags = SA_RESTART; -#endif /* SA_RESTART */ - my_sigaction (SIGINT, &act, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -extern void -tty_enable_interrupt_key (void) -{ - struct sigaction act; - - memset (&act, 0, sizeof (act)); - act.sa_handler = sigintr_handler; - sigemptyset (&act.sa_mask); - my_sigaction (SIGINT, &act, NULL); - got_interrupt = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -extern void -tty_disable_interrupt_key (void) -{ - struct sigaction act; - - memset (&act, 0, sizeof (act)); - act.sa_handler = SIG_IGN; - sigemptyset (&act.sa_mask); - my_sigaction (SIGINT, &act, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -extern gboolean -tty_got_interrupt (void) -{ - gboolean rv; - - rv = (got_interrupt != 0); - got_interrupt = 0; - return rv; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -tty_got_winch (void) -{ - fd_set fdset; - /* *INDENT-OFF* */ - /* instant timeout */ - struct timeval timeout = { .tv_sec = 0, .tv_usec = 0 }; - /* *INDENT-ON* */ - int ok; - - FD_ZERO (&fdset); - FD_SET (sigwinch_pipe[0], &fdset); - - while ((ok = select (sigwinch_pipe[0] + 1, &fdset, NULL, NULL, &timeout)) < 0) - if (errno != EINTR) - { - perror (_("Cannot check SIGWINCH pipe")); - exit (EXIT_FAILURE); - } - - return (ok != 0 && FD_ISSET (sigwinch_pipe[0], &fdset)); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_flush_winch (void) -{ - ssize_t n; - - /* merge all SIGWINCH events raised to this moment */ - do - { - char x[16]; - - /* read multiple events at a time */ - n = read (sigwinch_pipe[0], &x, sizeof (x)); - } - while (n > 0 || (n == -1 && errno == EINTR)); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_print_one_hline (gboolean single) -{ - tty_print_alt_char (ACS_HLINE, single); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_print_one_vline (gboolean single) -{ - tty_print_alt_char (ACS_VLINE, single); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_draw_box (int y, int x, int ys, int xs, gboolean single) -{ - int y2, x2; - - if (ys <= 0 || xs <= 0) - return; - - ys--; - xs--; - - y2 = y + ys; - x2 = x + xs; - - tty_draw_vline (y, x, mc_tty_frm[single ? MC_TTY_FRM_VERT : MC_TTY_FRM_DVERT], ys); - tty_draw_vline (y, x2, mc_tty_frm[single ? MC_TTY_FRM_VERT : MC_TTY_FRM_DVERT], ys); - tty_draw_hline (y, x, mc_tty_frm[single ? MC_TTY_FRM_HORIZ : MC_TTY_FRM_DHORIZ], xs); - tty_draw_hline (y2, x, mc_tty_frm[single ? MC_TTY_FRM_HORIZ : MC_TTY_FRM_DHORIZ], xs); - tty_gotoyx (y, x); - tty_print_alt_char (ACS_ULCORNER, single); - tty_gotoyx (y2, x); - tty_print_alt_char (ACS_LLCORNER, single); - tty_gotoyx (y, x2); - tty_print_alt_char (ACS_URCORNER, single); - tty_gotoyx (y2, x2); - tty_print_alt_char (ACS_LRCORNER, single); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_draw_box_shadow (int y, int x, int rows, int cols, int shadow_color) -{ - /* draw right shadow */ - tty_colorize_area (y + 1, x + cols, rows - 1, 2, shadow_color); - /* draw bottom shadow */ - tty_colorize_area (y + rows, x + 2, 1, cols, shadow_color); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -mc_tty_normalize_from_utf8 (const char *str) -{ - GIConv conv; - GString *buffer; - const char *_system_codepage = str_detect_termencoding (); - - if (str_isutf8 (_system_codepage)) - return g_strdup (str); - - conv = g_iconv_open (_system_codepage, "UTF-8"); - if (conv == INVALID_CONV) - return g_strdup (str); - - buffer = g_string_new (""); - - if (str_convert (conv, str, buffer) == ESTR_FAILURE) - { - g_string_free (buffer, TRUE); - str_close_conv (conv); - return g_strdup (str); - } - str_close_conv (conv); - - return g_string_free (buffer, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** Resize given terminal using TIOCSWINSZ, return ioctl() result */ -int -tty_resize (int fd) -{ -#if defined TIOCSWINSZ - struct winsize tty_size; - - tty_size.ws_row = LINES; - tty_size.ws_col = COLS; - tty_size.ws_xpixel = tty_size.ws_ypixel = 0; - - return ioctl (fd, TIOCSWINSZ, &tty_size); -#else - return 0; -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -/** Clear screen */ -void -tty_clear_screen (void) -{ - tty_set_normal_attrs (); - tty_fill_region (0, 0, LINES, COLS, ' '); - tty_refresh (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -tty_init_xterm_support (gboolean is_xterm) -{ - const char *termvalue; - - termvalue = getenv ("TERM"); - - /* Check mouse and ca capabilities */ - /* terminfo/termcap structures have been already initialized, - in slang_init() or/and init_curses() */ - /* Check terminfo at first, then check termcap */ - xmouse_seq = tty_tgetstr ("kmous"); - if (xmouse_seq == NULL) - xmouse_seq = tty_tgetstr ("Km"); - smcup = tty_tgetstr ("smcup"); - if (smcup == NULL) - smcup = tty_tgetstr ("ti"); - rmcup = tty_tgetstr ("rmcup"); - if (rmcup == NULL) - rmcup = tty_tgetstr ("te"); - - if (strcmp (termvalue, "cygwin") == 0) - { - is_xterm = TRUE; - use_mouse_p = MOUSE_DISABLED; - } - - if (is_xterm) - { - /* Default to the standard xterm sequence */ - if (xmouse_seq == NULL) - xmouse_seq = ESC_STR "[M"; - - /* Enable mouse unless explicitly disabled by --nomouse */ - if (use_mouse_p != MOUSE_DISABLED) - { - if (mc_global.tty.old_mouse) - use_mouse_p = MOUSE_XTERM_NORMAL_TRACKING; - else - { - /* FIXME: this dirty hack to set supported type of tracking the mouse */ - const char *color_term = getenv ("COLORTERM"); - if (strncmp (termvalue, "rxvt", 4) == 0 || - (color_term != NULL && strncmp (color_term, "rxvt", 4) == 0) || - strcmp (termvalue, "Eterm") == 0) - use_mouse_p = MOUSE_XTERM_NORMAL_TRACKING; - else - use_mouse_p = MOUSE_XTERM_BUTTON_EVENT_TRACKING; - } - } - } - - /* There's only one termcap entry "kmous", typically containing "\E[M" or "\E[<". - * We need the former in xmouse_seq, the latter in xmouse_extended_seq. - * See tickets 2956, 3954, and 4063 for details. */ - if (xmouse_seq != NULL) - { - if (strcmp (xmouse_seq, ESC_STR "[<") == 0) - xmouse_seq = ESC_STR "[M"; - - xmouse_extended_seq = ESC_STR "[<"; - } -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/tty.h b/recipes/wip/files/mc/source/lib/tty/tty.h deleted file mode 100644 index 90cbbc6c9d..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/tty.h +++ /dev/null @@ -1,146 +0,0 @@ - -/** \file tty.h - * \brief Header: %interface to the terminal controlling library - * - * This file is the %interface to the terminal controlling library: - * slang or ncurses. It provides an additional layer of abstraction - * above the "real" libraries to keep the number of ifdefs in the other - * files small. - */ - -#ifndef MC__TTY_H -#define MC__TTY_H - -#include "lib/global.h" /* include */ - -#ifdef HAVE_SLANG -#include "tty-slang.h" -#else -#include "tty-ncurses.h" -#endif - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define KEY_KP_ADD 4001 -#define KEY_KP_SUBTRACT 4002 -#define KEY_KP_MULTIPLY 4003 - -/*** enums ***************************************************************************************/ - -typedef enum -{ - /* single lines */ - MC_TTY_FRM_VERT, - MC_TTY_FRM_HORIZ, - MC_TTY_FRM_LEFTTOP, - MC_TTY_FRM_RIGHTTOP, - MC_TTY_FRM_LEFTBOTTOM, - MC_TTY_FRM_RIGHTBOTTOM, - MC_TTY_FRM_TOPMIDDLE, - MC_TTY_FRM_BOTTOMMIDDLE, - MC_TTY_FRM_LEFTMIDDLE, - MC_TTY_FRM_RIGHTMIDDLE, - MC_TTY_FRM_CROSS, - - /* double lines */ - MC_TTY_FRM_DVERT, - MC_TTY_FRM_DHORIZ, - MC_TTY_FRM_DLEFTTOP, - MC_TTY_FRM_DRIGHTTOP, - MC_TTY_FRM_DLEFTBOTTOM, - MC_TTY_FRM_DRIGHTBOTTOM, - MC_TTY_FRM_DTOPMIDDLE, - MC_TTY_FRM_DBOTTOMMIDDLE, - MC_TTY_FRM_DLEFTMIDDLE, - MC_TTY_FRM_DRIGHTMIDDLE, - - MC_TTY_FRM_MAX -} mc_tty_frm_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -extern int mc_tty_frm[]; - -extern char *tty_tgetstr (const char *name); - -/*** declarations of public functions ************************************************************/ - -extern void tty_beep (void); - -/* {{{ Input }}} */ - -extern gboolean tty_check_term (gboolean force_xterm); -extern void tty_init (gboolean mouse_enable, gboolean is_xterm); -extern void tty_shutdown (void); - -extern void tty_start_interrupt_key (void); -extern void tty_enable_interrupt_key (void); -extern void tty_disable_interrupt_key (void); -extern gboolean tty_got_interrupt (void); - -extern gboolean tty_got_winch (void); -extern void tty_flush_winch (void); - -extern void tty_reset_prog_mode (void); -extern void tty_reset_shell_mode (void); - -extern void tty_raw_mode (void); -extern void tty_noraw_mode (void); - -extern void tty_noecho (void); -extern int tty_flush_input (void); - -extern void tty_keypad (gboolean set); -extern void tty_nodelay (gboolean set); -extern int tty_baudrate (void); - -/* {{{ Output }}} */ - -/* - The output functions do not check themselves for screen overflows, - so make sure that you never write more than what fits on the screen. - While SLang provides such a feature, ncurses does not. - */ - -extern int tty_reset_screen (void); -extern void tty_touch_screen (void); - -extern void tty_gotoyx (int y, int x); -extern void tty_getyx (int *py, int *px); - -extern void tty_set_alt_charset (gboolean alt_charset); - -extern void tty_display_8bit (gboolean what); -extern void tty_print_char (int c); -extern void tty_print_alt_char (int c, gboolean single); -extern void tty_print_anychar (int c); -extern void tty_print_string (const char *s); -/* *INDENT-OFF* */ -extern void tty_printf (const char *s, ...) G_GNUC_PRINTF (1, 2); -/* *INDENT-ON* */ - -extern void tty_print_one_vline (gboolean single); -extern void tty_print_one_hline (gboolean single); -extern void tty_draw_hline (int y, int x, int ch, int len); -extern void tty_draw_vline (int y, int x, int ch, int len); -extern void tty_draw_box (int y, int x, int rows, int cols, gboolean single); -extern void tty_draw_box_shadow (int y, int x, int rows, int cols, int shadow_color); -extern void tty_fill_region (int y, int x, int rows, int cols, unsigned char ch); - -extern int tty_resize (int fd); -extern void tty_refresh (void); -extern void tty_change_screen_size (void); - -/* Clear screen */ -extern void tty_clear_screen (void); - -extern int mc_tty_normalize_lines_char (const char *str); - -extern void tty_enter_ca_mode (void); -extern void tty_exit_ca_mode (void); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__TTY_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/win.c b/recipes/wip/files/mc/source/lib/tty/win.c deleted file mode 100644 index ddfcb9a5e8..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/win.c +++ /dev/null @@ -1,168 +0,0 @@ -/* - Terminal management xterm and rxvt support - - Copyright (C) 1995-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2009. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file win.c - * \brief Source: Terminal management xterm and rxvt support - */ - -#include - -#include -#include -#include -#ifdef HAVE_SYS_SELECT_H -#include -#else -#include -#include -#include -#endif - -#include "lib/global.h" -#include "lib/util.h" /* is_printable() */ -#include "tty-internal.h" -#include "tty.h" /* tty_gotoyx, tty_print_char */ -#include "win.h" - -/*** global variables ****************************************************************************/ - -char *smcup = NULL; -char *rmcup = NULL; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static gboolean rxvt_extensions = FALSE; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* my own weird protocol base 16 - paul */ -static int -rxvt_getc (void) -{ - int r; - unsigned char c; - - while (read (0, &c, 1) != 1); - if (c == '\n') - return -1; - r = (c - 'A') * 16; - while (read (0, &c, 1) != 1); - r += (c - 'A'); - return r; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -anything_ready (void) -{ - fd_set fds; - struct timeval tv; - - FD_ZERO (&fds); - FD_SET (0, &fds); - tv.tv_sec = 0; - tv.tv_usec = 0; - return select (1, &fds, 0, 0, &tv); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -show_rxvt_contents (int starty, unsigned char y1, unsigned char y2) -{ - unsigned char *k; - int bytes, i, j, cols = 0; - - y1 += mc_global.keybar_visible != 0 ? 1 : 0; /* i don't know why we need this - paul */ - y2 += mc_global.keybar_visible != 0 ? 1 : 0; - while (anything_ready ()) - tty_lowlevel_getch (); - - /* my own weird protocol base 26 - paul */ - printf (ESC_STR "CL%c%c%c%c\n", (y1 / 26) + 'A', (y1 % 26) + 'A', (y2 / 26) + 'A', - (y2 % 26) + 'A'); - - bytes = (y2 - y1) * (COLS + 1) + 1; /* *should* be the number of bytes read */ - j = 0; - k = g_malloc (bytes); - while (TRUE) - { - int c; - - c = rxvt_getc (); - if (c < 0) - break; - if (j < bytes) - k[j++] = c; - for (cols = 1;; cols++) - { - c = rxvt_getc (); - if (c < 0) - break; - if (j < bytes) - k[j++] = c; - } - } - for (i = 0; i < j; i++) - { - if ((i % cols) == 0) - tty_gotoyx (starty + (i / cols), 0); - tty_print_char (is_printable (k[i]) ? k[i] : ' '); - } - g_free (k); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -look_for_rxvt_extensions (void) -{ - static gboolean been_called = FALSE; - - if (!been_called) - { - const char *e = getenv ("RXVT_EXT"); - rxvt_extensions = ((e != NULL) && (strcmp (e, "1.0") == 0)); - been_called = TRUE; - } - - if (rxvt_extensions) - mc_global.tty.console_flag = '\004'; - - return rxvt_extensions; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/win.h b/recipes/wip/files/mc/source/lib/tty/win.h deleted file mode 100644 index 4c3160783b..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/win.h +++ /dev/null @@ -1,24 +0,0 @@ -/** \file win.h - * \brief Header: X terminal management: xterm and rxvt - */ - -#ifndef MC__WIN_H -#define MC__WIN_H - -#include "lib/global.h" /* */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -void show_rxvt_contents (int starty, unsigned char y1, unsigned char y2); -gboolean look_for_rxvt_extensions (void); - -/*** inline functions ****************************************************************************/ -#endif /* MC_WIN_H */ diff --git a/recipes/wip/files/mc/source/lib/tty/x11conn.c b/recipes/wip/files/mc/source/lib/tty/x11conn.c deleted file mode 100644 index 83b4e8a5de..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/x11conn.c +++ /dev/null @@ -1,261 +0,0 @@ -/* - X11 support for the Midnight Commander. - - Copyright (C) 2005-2025 - Free Software Foundation, Inc. - - Written by: - Roland Illig , 2005. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file x11conn.c - * \brief Source: X11 support - * \warning This code uses setjmp() and longjmp(). Before you modify _anything_ here, - * please read the relevant sections of the C standard. - */ - -#include - -#include -#include -#ifdef HAVE_GMODULE -#include -#endif - -#include "lib/global.h" -#include "x11conn.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#ifndef HAVE_GMODULE -#define func_XOpenDisplay XOpenDisplay -#define func_XCloseDisplay XCloseDisplay -#define func_XSetErrorHandler XSetErrorHandler -#define func_XSetIOErrorHandler XSetIOErrorHandler -#define func_XQueryPointer XQueryPointer -#endif - -/*** file scope type declarations ****************************************************************/ - -typedef int (*mc_XErrorHandler_callback) (Display *, XErrorEvent *); -typedef int (*mc_XIOErrorHandler_callback) (Display *); - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -#ifdef HAVE_GMODULE -static Display *(*func_XOpenDisplay) (_Xconst char *); -static int (*func_XCloseDisplay) (Display *); -static mc_XErrorHandler_callback (*func_XSetErrorHandler) (mc_XErrorHandler_callback); -static mc_XIOErrorHandler_callback (*func_XSetIOErrorHandler) (mc_XIOErrorHandler_callback); -static Bool (*func_XQueryPointer) (Display *, Window, Window *, Window *, - int *, int *, int *, int *, unsigned int *); - -static GModule *x11_module; -#endif - -static gboolean handlers_installed = FALSE; - -/* This flag is set as soon as an X11 error is reported. Usually that - * means that the DISPLAY is not available anymore. We do not try to - * reconnect, as that would violate the X11 protocol. */ -static gboolean lost_connection = FALSE; - -static jmp_buf x11_exception; /* FIXME: get a better name */ -static gboolean longjmp_allowed = FALSE; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static int -x_io_error_handler (Display *dpy) -{ - (void) dpy; - - lost_connection = TRUE; - if (longjmp_allowed) - { - longjmp_allowed = FALSE; - longjmp (x11_exception, 1); - } - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -x_error_handler (Display *dpy, XErrorEvent *ee) -{ - (void) ee; - (void) func_XCloseDisplay (dpy); - return x_io_error_handler (dpy); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -install_error_handlers (void) -{ - if (handlers_installed) - return; - - (void) func_XSetErrorHandler (x_error_handler); - (void) func_XSetIOErrorHandler (x_io_error_handler); - handlers_installed = TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -x11_available (void) -{ -#ifdef HAVE_GMODULE - if (lost_connection) - return FALSE; - - if (x11_module != NULL) - return TRUE; - - x11_module = g_module_open ("X11", G_MODULE_BIND_LAZY); - if (x11_module == NULL) - x11_module = g_module_open ("libX11.so.6", G_MODULE_BIND_LAZY); - - if (x11_module == NULL) - return FALSE; - - if (!g_module_symbol (x11_module, "XOpenDisplay", (void *) &func_XOpenDisplay)) - goto cleanup; - if (!g_module_symbol (x11_module, "XCloseDisplay", (void *) &func_XCloseDisplay)) - goto cleanup; - if (!g_module_symbol (x11_module, "XQueryPointer", (void *) &func_XQueryPointer)) - goto cleanup; - if (!g_module_symbol (x11_module, "XSetErrorHandler", (void *) &func_XSetErrorHandler)) - goto cleanup; - if (!g_module_symbol (x11_module, "XSetIOErrorHandler", (void *) &func_XSetIOErrorHandler)) - goto cleanup; - - install_error_handlers (); - return TRUE; - - cleanup: - func_XOpenDisplay = 0; - func_XCloseDisplay = 0; - func_XQueryPointer = 0; - func_XSetErrorHandler = 0; - func_XSetIOErrorHandler = 0; - g_module_close (x11_module); - x11_module = NULL; - return FALSE; -#else - install_error_handlers (); - return !(lost_connection); -#endif -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -Display * -mc_XOpenDisplay (const char *displayname) -{ - if (x11_available ()) - { - if (setjmp (x11_exception) == 0) - { - Display *retval; - - /* cppcheck-suppress redundantAssignment */ - longjmp_allowed = TRUE; - - retval = func_XOpenDisplay (displayname); - - /* cppcheck-suppress redundantAssignment */ - longjmp_allowed = FALSE; - return retval; - } - } - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_XCloseDisplay (Display *display) -{ - if (x11_available ()) - { - if (setjmp (x11_exception) == 0) - { - int retval; - - /* cppcheck-suppress redundantAssignment */ - longjmp_allowed = TRUE; - - retval = func_XCloseDisplay (display); - - /* cppcheck-suppress redundantAssignment */ - longjmp_allowed = FALSE; - - return retval; - } - } - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -Bool -mc_XQueryPointer (Display *display, Window win, Window *root_return, - Window *child_return, int *root_x_return, int *root_y_return, - int *win_x_return, int *win_y_return, unsigned int *mask_return) -{ - Bool retval; - - if (x11_available ()) - { - if (setjmp (x11_exception) == 0) - { - /* cppcheck-suppress redundantAssignment */ - longjmp_allowed = TRUE; - - retval = func_XQueryPointer (display, win, root_return, - child_return, root_x_return, root_y_return, - win_x_return, win_y_return, mask_return); - - /* cppcheck-suppress redundantAssignment */ - longjmp_allowed = FALSE; - - return retval; - } - } - *root_return = None; - *child_return = None; - *root_x_return = 0; - *root_y_return = 0; - *win_x_return = 0; - *win_y_return = 0; - *mask_return = 0; - return False; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/tty/x11conn.h b/recipes/wip/files/mc/source/lib/tty/x11conn.h deleted file mode 100644 index fbfe15ae23..0000000000 --- a/recipes/wip/files/mc/source/lib/tty/x11conn.h +++ /dev/null @@ -1,40 +0,0 @@ -/** \file x11conn.h - * \brief Header: X11 support - * \warning This code uses setjmp() and longjmp(). Before you modify _anything_ here, - * please read the relevant sections of the C standard. - */ - -#ifndef MC__X11CONN_H -#define MC__X11CONN_H - -/* - This module provides support for some X11 functions. The functions - are loaded dynamically if GModule is available, and statically if - not. X11 session handling is somewhat robust. If there is an X11 - error or a connection error, all further traffic to the X server - will be suppressed, and the functions will return reasonable default - values. - */ - -#include - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -extern Display *mc_XOpenDisplay (const char *displayname); -extern int mc_XCloseDisplay (Display * display); - -extern Bool mc_XQueryPointer (Display * display, Window win, Window * root_return, - Window * child_return, int *root_x_return, int *root_y_return, - int *win_x_return, int *win_y_return, unsigned int *mask_return); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__X11CONN_H */ diff --git a/recipes/wip/files/mc/source/lib/unixcompat.h b/recipes/wip/files/mc/source/lib/unixcompat.h deleted file mode 100644 index c5d3aac88b..0000000000 --- a/recipes/wip/files/mc/source/lib/unixcompat.h +++ /dev/null @@ -1,126 +0,0 @@ -/** \file unixcompat.h - * \brief Header: collects differences between the various Unix - * - * This header file collects differences between the various Unix - * variants that are supported by the Midnight Commander and provides - * replacement routines if they are not natively available. - * The major/minor macros are not specified in SUSv3, so we can only hope - * they are provided by the operating system or emulate it. - */ - -#ifndef MC_UNIXCOMPAT_H -#define MC_UNIXCOMPAT_H - -#include /* O_* macros */ -#include /* sig_atomic_t */ -#include - -#include /* BSD */ - -#ifdef MAJOR_IN_MKDEV -#include -#elif defined MAJOR_IN_SYSMACROS -#include -#endif - -#if defined(HAVE_STRING_H) -#include - /* An ANSI string.h and pre-ANSI memory.h might conflict */ -#elif defined(HAVE_MEMORY_H) -#include -#else -#include - /* memory and strings.h conflict on other systems */ -#endif /* !STDC_HEADERS & !HAVE_STRING_H */ - -#if defined(__QNX__) && !defined(__QNXNTO__) -/* exec*() from */ -#include -#endif - -/*** typedefs(not structures) and defined constants **********************************************/ - -#ifndef major -#warning major() is undefined. Device numbers will not be shown correctly. -#define major(devnum) (((devnum) >> 8) & 0xff) -#endif - -#ifndef minor -#warning minor() is undefined. Device numbers will not be shown correctly. -#define minor(devnum) (((devnum) & 0xff)) -#endif - -#ifndef makedev -#warning makedev() is undefined. Device numbers will not be shown correctly. -#define makedev(major,minor) ((((major) & 0xff) << 8) | ((minor) & 0xff)) -#endif - -#ifndef STDIN_FILENO -#define STDIN_FILENO 0 -#endif - -#ifndef STDOUT_FILENO -#define STDOUT_FILENO 1 -#endif - -#ifndef STDERR_FILENO -#define STDERR_FILENO 2 -#endif - -/* The O_BINARY definition was taken from gettext */ -#if !defined O_BINARY && defined _O_BINARY - /* For MSC-compatible compilers. */ -#define O_BINARY _O_BINARY -#endif -#ifdef __BEOS__ - /* BeOS 5 has O_BINARY, but it has no effect. */ -#undef O_BINARY -#endif -/* On reasonable systems, binary I/O is the default. */ -#ifndef O_BINARY -#define O_BINARY 0 -#endif - -/* Replacement for O_NONBLOCK */ -#ifndef O_NONBLOCK -#ifdef O_NDELAY /* SYSV */ -#define O_NONBLOCK O_NDELAY -#else /* BSD */ -#define O_NONBLOCK FNDELAY -#endif /* !O_NDELAY */ -#endif /* !O_NONBLOCK */ - -/* Solaris9 doesn't have PRIXMAX */ -#ifndef PRIXMAX -#define PRIXMAX PRIxMAX -#endif - -/* ESC_CHAR is defined in /usr/include/langinfo.h in some systems */ -#ifdef ESC_CHAR -#undef ESC_CHAR -#endif -/* AIX compiler doesn't understand '\e' */ -#define ESC_CHAR '\033' -#define ESC_STR "\033" - -/* OS specific defines */ -#define PATH_SEP '/' -#define PATH_SEP_STR "/" -#define IS_PATH_SEP(c) ((c) == PATH_SEP) -#define PATH_ENV_SEP ':' -#define TMPDIR_DEFAULT "/tmp" -#define SCRIPT_SUFFIX "" -#define get_default_editor() "vi" -#define OS_SORT_CASE_SENSITIVE_DEFAULT TRUE - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/*** inline functions ****************************************************************************/ - -#endif diff --git a/recipes/wip/files/mc/source/lib/util.c b/recipes/wip/files/mc/source/lib/util.c deleted file mode 100644 index e6513af37b..0000000000 --- a/recipes/wip/files/mc/source/lib/util.c +++ /dev/null @@ -1,1567 +0,0 @@ -/* - Various utilities - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Miguel de Icaza, 1994, 1995, 1996 - Janne Kukonlehto, 1994, 1995, 1996 - Dugan Porter, 1994, 1995, 1996 - Jakub Jelinek, 1994, 1995, 1996 - Mauricio Plaza, 1994, 1995, 1996 - Slava Zanko , 2013 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file lib/util.c - * \brief Source: various utilities - */ - -#include - -#include -#include /* ptrdiff_t */ -#include -#include -#include -#include -#include -#include -#include -#include - -#include "lib/global.h" -#include "lib/mcconfig.h" -#include "lib/fileloc.h" -#include "lib/vfs/vfs.h" -#include "lib/strutil.h" -#include "lib/util.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#define ismode(n,m) ((n & m) == m) - -/* Number of attempts to create a temporary file */ -#ifndef TMP_MAX -#define TMP_MAX 16384 -#endif /* !TMP_MAX */ - -#define TMP_SUFFIX ".tmp" - -#define ASCII_A (0x40 + 1) -#define ASCII_Z (0x40 + 26) -#define ASCII_a (0x60 + 1) -#define ASCII_z (0x60 + 26) - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -#ifndef HAVE_CHARSET -static inline int -is_7bit_printable (unsigned char c) -{ - return (c > 31 && c < 127); -} -#endif - -/* --------------------------------------------------------------------------------------------- */ - -static inline int -is_iso_printable (unsigned char c) -{ - return ((c > 31 && c < 127) || c >= 160); -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline int -is_8bit_printable (unsigned char c) -{ - /* "Full 8 bits output" doesn't work on xterm */ - if (mc_global.tty.xterm_flag) - return is_iso_printable (c); - - return (c > 31 && c != 127 && c != 155); -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -resolve_symlinks (const vfs_path_t *vpath) -{ - char *p, *p2; - char *buf, *buf2, *q, *r, c; - struct stat mybuf; - - if (vpath->relative) - return NULL; - - p = p2 = g_strdup (vfs_path_as_str (vpath)); - r = buf = g_malloc (MC_MAXPATHLEN); - buf2 = g_malloc (MC_MAXPATHLEN); - *r++ = PATH_SEP; - *r = '\0'; - - do - { - q = strchr (p + 1, PATH_SEP); - if (q == NULL) - { - q = strchr (p + 1, '\0'); - if (q == p + 1) - break; - } - c = *q; - *q = '\0'; - if (mc_lstat (vpath, &mybuf) < 0) - { - MC_PTR_FREE (buf); - goto ret; - } - if (!S_ISLNK (mybuf.st_mode)) - strcpy (r, p + 1); - else - { - int len; - - len = mc_readlink (vpath, buf2, MC_MAXPATHLEN - 1); - if (len < 0) - { - MC_PTR_FREE (buf); - goto ret; - } - buf2[len] = '\0'; - if (IS_PATH_SEP (*buf2)) - strcpy (buf, buf2); - else - strcpy (r, buf2); - } - canonicalize_pathname (buf); - r = strchr (buf, '\0'); - if (*r == '\0' || !IS_PATH_SEP (r[-1])) - /* FIXME: this condition is always true because r points to the EOL */ - { - *r++ = PATH_SEP; - *r = '\0'; - } - *q = c; - p = q; - } - while (c != '\0'); - - if (*buf == '\0') - strcpy (buf, PATH_SEP_STR); - else if (IS_PATH_SEP (r[-1]) && r != buf + 1) - r[-1] = '\0'; - - ret: - g_free (buf2); - g_free (p2); - return buf; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -mc_util_write_backup_content (const char *from_file_name, const char *to_file_name) -{ - FILE *backup_fd; - char *contents; - gsize length; - gboolean ret1 = TRUE; - - if (!g_file_get_contents (from_file_name, &contents, &length, NULL)) - return FALSE; - - backup_fd = fopen (to_file_name, "w"); - if (backup_fd == NULL) - { - g_free (contents); - return FALSE; - } - - if (fwrite ((const void *) contents, 1, length, backup_fd) != length) - ret1 = FALSE; - - { - int ret2; - - /* cppcheck-suppress redundantAssignment */ - ret2 = fflush (backup_fd); - /* cppcheck-suppress redundantAssignment */ - ret2 = fclose (backup_fd); - (void) ret2; - } - - g_free (contents); - return ret1; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -int -is_printable (int c) -{ - c &= 0xff; - -#ifdef HAVE_CHARSET - /* "Display bits" is ignored, since the user controls the output - by setting the output codepage */ - return is_8bit_printable (c); -#else - if (!mc_global.eight_bit_clean) - return is_7bit_printable (c); - - if (mc_global.full_eight_bits) - return is_8bit_printable (c); - - return is_iso_printable (c); -#endif /* !HAVE_CHARSET */ -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Quote the filename for the purpose of inserting it into the command - * line. If quote_percent is TRUE, replace "%" with "%%" - the percent is - * processed by the mc command line. - */ -char * -name_quote (const char *s, gboolean quote_percent) -{ - GString *ret; - - if (s == NULL || *s == '\0') - return NULL; - - ret = g_string_sized_new (64); - - if (*s == '-') - g_string_append (ret, "." PATH_SEP_STR); - - for (; *s != '\0'; s++) - { - switch (*s) - { - case '%': - if (quote_percent) - g_string_append_c (ret, '%'); - break; - case '\'': - case '\\': - case '\r': - case '\n': - case '\t': - case '"': - case ';': - case ' ': - case '?': - case '|': - case '[': - case ']': - case '{': - case '}': - case '<': - case '>': - case '`': - case '!': - case '$': - case '&': - case '*': - case '(': - case ')': - g_string_append_c (ret, '\\'); - break; - case '~': - case '#': - if (ret->len == 0) - g_string_append_c (ret, '\\'); - break; - default: - break; - } - g_string_append_c (ret, *s); - } - - return g_string_free (ret, ret->len == 0); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -fake_name_quote (const char *s, gboolean quote_percent) -{ - (void) quote_percent; - - return (s == NULL || *s == '\0' ? NULL : g_strdup (s)); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * path_trunc() is the same as str_trunc() but - * it deletes possible password from path for security - * reasons. - */ - -const char * -path_trunc (const char *path, size_t trunc_len) -{ - vfs_path_t *vpath; - const char *ret; - - vpath = vfs_path_from_str_flags (path, VPF_STRIP_PASSWORD); - ret = str_trunc (vfs_path_as_str (vpath), trunc_len); - vfs_path_free (vpath, TRUE); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -size_trunc (uintmax_t size, gboolean use_si) -{ - static char x[BUF_TINY]; - uintmax_t divisor = 1; - const char *xtra = _("B"); - - if (size > 999999999UL) - { - divisor = use_si ? 1000 : 1024; - xtra = use_si ? _("kB") : _("KiB"); - - if (size / divisor > 999999999UL) - { - divisor = use_si ? (1000 * 1000) : (1024 * 1024); - xtra = use_si ? _("MB") : _("MiB"); - - if (size / divisor > 999999999UL) - { - divisor = use_si ? (1000 * 1000 * 1000) : (1024 * 1024 * 1024); - xtra = use_si ? _("GB") : _("GiB"); - } - } - } - g_snprintf (x, sizeof (x), "%.0f %s", 1.0 * size / divisor, xtra); - return x; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -size_trunc_sep (uintmax_t size, gboolean use_si) -{ - static char x[60]; - int count; - const char *p, *y; - char *d; - - p = y = size_trunc (size, use_si); - p += strlen (p) - 1; - d = x + sizeof (x) - 1; - *d-- = '\0'; - /* @size format is "size unit", i.e. "[digits][space][letters]". - Copy all characters after digits. */ - while (p >= y && !g_ascii_isdigit (*p)) - *d-- = *p--; - for (count = 0; p >= y; count++) - { - if (count == 3) - { - *d-- = ','; - count = 0; - } - *d-- = *p--; - } - d++; - if (*d == ',') - d++; - return d; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Print file SIZE to BUFFER, but don't exceed LEN characters, - * not including trailing 0. BUFFER should be at least LEN+1 long. - * This function is called for every file on panels, so avoid - * floating point by any means. - * - * Units: size units (filesystem sizes are 1K blocks) - * 0=bytes, 1=Kbytes, 2=Mbytes, etc. - */ - -void -size_trunc_len (char *buffer, unsigned int len, uintmax_t size, int units, gboolean use_si) -{ - /* Avoid taking power for every file. */ - /* *INDENT-OFF* */ - static const uintmax_t power10[] = { - /* we hope that size of uintmax_t is 4 bytes at least */ - 1ULL, - 10ULL, - 100ULL, - 1000ULL, - 10000ULL, - 100000ULL, - 1000000ULL, - 10000000ULL, - 100000000ULL, - 1000000000ULL - /* maximum value of uintmax_t (in case of 4 bytes) is - 4294967295 - */ -#if SIZEOF_UINTMAX_T == 8 - , - 10000000000ULL, - 100000000000ULL, - 1000000000000ULL, - 10000000000000ULL, - 100000000000000ULL, - 1000000000000000ULL, - 10000000000000000ULL, - 100000000000000000ULL, - 1000000000000000000ULL, - 10000000000000000000ULL - /* maximum value of uintmax_t (in case of 8 bytes) is - 18447644073710439615 - */ -#endif - }; - - static const char *const suffix[] = - { "", "K", "M", "G", "T", "P", "E", "Z", "Y", "R", "Q", NULL }; - static const char *const suffix_lc[] = - { "", "k", "m", "g", "t", "p", "e", "z", "y", "r", "q", NULL }; - /* *INDENT-ON* */ - - static int sfx_last = -1; - - const char *const *sfx = use_si ? suffix_lc : suffix; - int j = 0; - - if (sfx_last < 0) - { - for (sfx_last = 0; sfx[sfx_last] != NULL; sfx_last++) - ; - - sfx_last--; - } - - if (len == 0) - len = 9; -#if SIZEOF_UINTMAX_T == 8 - /* 20 decimal digits are required to represent 8 bytes */ - else if (len > 19) - len = 19; -#else - /* 10 decimal digits are required to represent 4 bytes */ - else if (len > 9) - len = 9; -#endif - - const int units_safe = MIN (units, sfx_last); - - /* - * recalculate from 1024 base to 1000 base if units>0 - * We can't just multiply by 1024 - that might cause overflow - * if uintmax_t type is too small - */ - if (use_si) - for (j = 0; j < units_safe; j++) - { - uintmax_t size_remain; - - size_remain = ((size % 125) * 1024) / 1000; /* size mod 125, recalculated */ - size /= 125; /* 128/125 = 1024/1000 */ - size *= 128; /* This will convert size from multiple of 1024 to multiple of 1000 */ - size += size_remain; /* Re-add remainder lost by division/multiplication */ - } - - for (j = units_safe; sfx[j] != NULL; j++) - { - if (size == 0) - { - if (j == units) - { - /* Empty files will print "0" even with minimal width. */ - g_snprintf (buffer, len + 1, "%s", "0"); - } - else - { - /* Use "~K" or just "K" if len is 1. Use "B" for bytes. */ - g_snprintf (buffer, len + 1, (len > 1) ? "~%s" : "%s", (j > 1) ? sfx[j - 1] : "B"); - } - break; - } - - if (size < power10[len - (j > 0 ? 1 : 0)]) - { - g_snprintf (buffer, len + 1, "%" PRIuMAX "%s", size, sfx[j]); - break; - } - - /* Powers of 1000 or 1024, with rounding. */ - if (use_si) - size = (size + 500) / 1000; - else - size = (size + 512) >> 10; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -string_perm (mode_t mode_bits) -{ - static char mode[11]; - - strcpy (mode, "----------"); - if (S_ISDIR (mode_bits)) - mode[0] = 'd'; - if (S_ISCHR (mode_bits)) - mode[0] = 'c'; - if (S_ISBLK (mode_bits)) - mode[0] = 'b'; - if (S_ISLNK (mode_bits)) - mode[0] = 'l'; - if (S_ISFIFO (mode_bits)) - mode[0] = 'p'; - if (S_ISNAM (mode_bits)) - mode[0] = 'n'; - if (S_ISSOCK (mode_bits)) - mode[0] = 's'; - if (S_ISDOOR (mode_bits)) - mode[0] = 'D'; - if (ismode (mode_bits, S_IXOTH)) - mode[9] = 'x'; - if (ismode (mode_bits, S_IWOTH)) - mode[8] = 'w'; - if (ismode (mode_bits, S_IROTH)) - mode[7] = 'r'; - if (ismode (mode_bits, S_IXGRP)) - mode[6] = 'x'; - if (ismode (mode_bits, S_IWGRP)) - mode[5] = 'w'; - if (ismode (mode_bits, S_IRGRP)) - mode[4] = 'r'; - if (ismode (mode_bits, S_IXUSR)) - mode[3] = 'x'; - if (ismode (mode_bits, S_IWUSR)) - mode[2] = 'w'; - if (ismode (mode_bits, S_IRUSR)) - mode[1] = 'r'; -#ifdef S_ISUID - if (ismode (mode_bits, S_ISUID)) - mode[3] = (mode[3] == 'x') ? 's' : 'S'; -#endif /* S_ISUID */ -#ifdef S_ISGID - if (ismode (mode_bits, S_ISGID)) - mode[6] = (mode[6] == 'x') ? 's' : 'S'; -#endif /* S_ISGID */ -#ifdef S_ISVTX - if (ismode (mode_bits, S_ISVTX)) - mode[9] = (mode[9] == 'x') ? 't' : 'T'; -#endif /* S_ISVTX */ - return mode; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -extension (const char *filename) -{ - const char *d; - - d = strrchr (filename, '.'); - - return d != NULL ? d + 1 : ""; -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -load_mc_home_file (const char *from, const char *filename, char **allocated_filename, - size_t *length) -{ - char *hintfile_base, *hintfile; - char *lang; - char *data; - - hintfile_base = g_build_filename (from, filename, (char *) NULL); - lang = guess_message_value (); - - hintfile = g_strconcat (hintfile_base, ".", lang, (char *) NULL); - if (!g_file_get_contents (hintfile, &data, length, NULL)) - { - /* Fall back to the two-letter language code */ - if (lang[0] != '\0' && lang[1] != '\0') - lang[2] = '\0'; - g_free (hintfile); - hintfile = g_strconcat (hintfile_base, ".", lang, (char *) NULL); - if (!g_file_get_contents (hintfile, &data, length, NULL)) - { - g_free (hintfile); - hintfile = hintfile_base; - g_file_get_contents (hintfile_base, &data, length, NULL); - } - } - - g_free (lang); - - if (hintfile != hintfile_base) - g_free (hintfile_base); - - if (allocated_filename != NULL) - *allocated_filename = hintfile; - else - g_free (hintfile); - - return data; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -extract_line (const char *s, const char *top, size_t *len) -{ - static char tmp_line[BUF_MEDIUM]; - char *t = tmp_line; - - while (*s != '\0' && *s != '\n' && (size_t) (t - tmp_line) < sizeof (tmp_line) - 1 && s < top) - *t++ = *s++; - *t = '\0'; - - if (len != NULL) - *len = (size_t) (t - tmp_line); - - return tmp_line; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * The basename routine - */ - -const char * -x_basename (const char *s) -{ - const char *url_delim, *path_sep; - - url_delim = g_strrstr (s, VFS_PATH_URL_DELIMITER); - path_sep = strrchr (s, PATH_SEP); - - if (path_sep == NULL) - return s; - - if (url_delim == NULL - || url_delim < path_sep - strlen (VFS_PATH_URL_DELIMITER) - || url_delim - s + strlen (VFS_PATH_URL_DELIMITER) < strlen (s)) - { - /* avoid trailing PATH_SEP, if present */ - if (!IS_PATH_SEP (s[strlen (s) - 1])) - return path_sep + 1; - - while (--path_sep > s && !IS_PATH_SEP (*path_sep)) - ; - return (path_sep != s) ? path_sep + 1 : s; - } - - while (--url_delim > s && !IS_PATH_SEP (*url_delim)) - ; - while (--url_delim > s && !IS_PATH_SEP (*url_delim)) - ; - - return url_delim == s ? s : url_delim + 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -unix_error_string (int error_num) -{ - static char buffer[BUF_LARGE]; - gchar *strerror_currentlocale; - - strerror_currentlocale = g_locale_from_utf8 (g_strerror (error_num), -1, NULL, NULL, NULL); - g_snprintf (buffer, sizeof (buffer), "%s (%d)", strerror_currentlocale, error_num); - g_free (strerror_currentlocale); - - return buffer; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -skip_separators (const char *s) -{ - const char *su = s; - - for (; *su != '\0'; str_cnext_char (&su)) - if (!whitespace (*su) && *su != ',') - break; - - return su; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -skip_numbers (const char *s) -{ - const char *su = s; - - for (; *su != '\0'; str_cnext_char (&su)) - if (!str_isdigit (su)) - break; - - return su; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Remove all control sequences from the argument string. We define - * "control sequence", in a sort of pidgin BNF, as follows: - * - * control-seq = Esc non-'[' - * | Esc '[' (parameter-byte)* (intermediate-byte)* final-byte - * parameter-byte = [\x30-\x3F] # one of "0-9;:<=>?" - * intermediate-byte = [\x20–\x2F] # one of " !\"#$%&'()*+,-./" - * final-byte = [\x40-\x7e] # one of "@A–Z[\]^_`a–z{|}~" - * - * The 256-color and true-color escape sequences should allow either ';' or ':' inside as separator, - * actually, ':' is the more correct according to ECMA-48. - * Some terminal emulators (e.g. xterm, gnome-terminal) support this. - * - * Non-printable characters are also removed. - */ - -char * -strip_ctrl_codes (char *s) -{ - char *w; /* Current position where the stripped data is written */ - char *r; /* Current position where the original data is read */ - - if (s == NULL) - return NULL; - - for (w = s, r = s; *r != '\0';) - { - if (*r == ESC_CHAR) - { - /* Skip the control sequence's arguments */ ; - /* '(' need to avoid strange 'B' letter in *Suse (if mc runs under root user) */ - if (*(++r) == '[' || *r == '(') - { - /* strchr() matches trailing binary 0 */ - while (*(++r) != '\0' && strchr ("0123456789;:<=>?", *r) != NULL) - ; - while (*r != '\0' && (*r < 0x40 || *r > 0x7E)) - ++r; - } - else if (*r == ']') - { - /* - * Skip xterm's OSC (Operating System Command) - * http://www.xfree86.org/current/ctlseqs.html - * OSC P s ; P t ST - * OSC P s ; P t BEL - */ - char *new_r; - - for (new_r = r; *new_r != '\0'; new_r++) - { - switch (*new_r) - { - /* BEL */ - case '\a': - r = new_r; - goto osc_out; - case ESC_CHAR: - /* ST */ - if (new_r[1] == '\\') - { - r = new_r + 1; - goto osc_out; - } - break; - default: - break; - } - } - osc_out: - ; - } - - /* - * Now we are at the last character of the sequence. - * Skip it unless it's binary 0. - */ - if (*r != '\0') - r++; - } - else - { - char *n; - - n = str_get_next_char (r); - if (str_isprint (r)) - { - memmove (w, r, n - r); - w += n - r; - } - r = n; - } - } - - *w = '\0'; - return s; -} - -/* --------------------------------------------------------------------------------------------- */ - -enum compression_type -get_compression_type (int fd, const char *name) -{ - unsigned char magic[16]; - size_t str_len; - - /* Read the magic signature */ - if (mc_read (fd, (char *) magic, 4) != 4) - return COMPRESSION_NONE; - - /* GZIP_MAGIC and OLD_GZIP_MAGIC */ - if (magic[0] == 0x1F && (magic[1] == 0x8B || magic[1] == 0x9E)) - return COMPRESSION_GZIP; - - /* PKZIP_MAGIC */ - if (magic[0] == 'P' && magic[1] == 'K' && magic[2] == 0x03 && magic[3] == 0x04) - { - /* Read compression type */ - mc_lseek (fd, 8, SEEK_SET); - if (mc_read (fd, (char *) magic, 2) != 2) - return COMPRESSION_NONE; - - if ((magic[0] != 8 && magic[0] != 0) || magic[1] != 0) - return COMPRESSION_NONE; - - return COMPRESSION_ZIP; - } - - /* PACK_MAGIC and LZH_MAGIC and compress magic */ - if (magic[0] == 0x1F && (magic[1] == 0x1E || magic[1] == 0xA0 || magic[1] == 0x9D)) - /* Compatible with gzip */ - return COMPRESSION_GZIP; - - /* BZIP and BZIP2 files */ - if ((magic[0] == 'B') && (magic[1] == 'Z') && (magic[3] >= '1') && (magic[3] <= '9')) - switch (magic[2]) - { - case '0': - return COMPRESSION_BZIP; - case 'h': - return COMPRESSION_BZIP2; - default: - break; - } - - /* LZ4 format - v1.5.0 - 0x184D2204 (little endian) */ - if (magic[0] == 0x04 && magic[1] == 0x22 && magic[2] == 0x4d && magic[3] == 0x18) - return COMPRESSION_LZ4; - - if (mc_read (fd, (char *) magic + 4, 2) != 2) - return COMPRESSION_NONE; - - /* LZIP files */ - if (magic[0] == 'L' - && magic[1] == 'Z' - && magic[2] == 'I' && magic[3] == 'P' && (magic[4] == 0x00 || magic[4] == 0x01)) - return COMPRESSION_LZIP; - - /* Support for LZMA (only utils format with magic in header). - * This is the default format of LZMA utils 4.32.1 and later. */ - if (magic[0] == 0xFF - && magic[1] == 'L' - && magic[2] == 'Z' && magic[3] == 'M' && magic[4] == 'A' && magic[5] == 0x00) - return COMPRESSION_LZMA; - - /* LZO format - \x89\x4c\x5a\x4f\x00\x0d\x0a\x1a\x0a lzop compressed data */ - if (magic[0] == 0x89 && magic[1] == 0x4c && - magic[2] == 0x5a && magic[3] == 0x4f && magic[4] == 0x00 && magic[5] == 0x0d) - return COMPRESSION_LZO; - - /* XZ compression magic */ - if (magic[0] == 0xFD - && magic[1] == 0x37 - && magic[2] == 0x7A && magic[3] == 0x58 && magic[4] == 0x5A && magic[5] == 0x00) - return COMPRESSION_XZ; - - if (magic[0] == 0x28 && magic[1] == 0xB5 && magic[2] == 0x2F && magic[3] == 0xFD) - return COMPRESSION_ZSTD; - - str_len = strlen (name); - /* HACK: we must believe to extension of LZMA file :) ... */ - if ((str_len > 5 && strcmp (&name[str_len - 5], ".lzma") == 0) || - (str_len > 4 && strcmp (&name[str_len - 4], ".tlz") == 0)) - return COMPRESSION_LZMA; - - return COMPRESSION_NONE; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -decompress_extension (int type) -{ - switch (type) - { - case COMPRESSION_ZIP: - return "/uz" VFS_PATH_URL_DELIMITER; - case COMPRESSION_GZIP: - return "/ugz" VFS_PATH_URL_DELIMITER; - case COMPRESSION_BZIP: - return "/ubz" VFS_PATH_URL_DELIMITER; - case COMPRESSION_BZIP2: - return "/ubz2" VFS_PATH_URL_DELIMITER; - case COMPRESSION_LZIP: - return "/ulz" VFS_PATH_URL_DELIMITER; - case COMPRESSION_LZ4: - return "/ulz4" VFS_PATH_URL_DELIMITER; - case COMPRESSION_LZMA: - return "/ulzma" VFS_PATH_URL_DELIMITER; - case COMPRESSION_LZO: - return "/ulzo" VFS_PATH_URL_DELIMITER; - case COMPRESSION_XZ: - return "/uxz" VFS_PATH_URL_DELIMITER; - case COMPRESSION_ZSTD: - return "/uzst" VFS_PATH_URL_DELIMITER; - default: - break; - } - /* Should never reach this place */ - fprintf (stderr, "Fatal: decompress_extension called with an unknown argument\n"); - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -wipe_password (char *passwd) -{ - if (passwd != NULL) - { - char *p; - - for (p = passwd; *p != '\0'; p++) - *p = '\0'; - g_free (passwd); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Convert "\E" -> esc character and ^x to control-x key and ^^ to ^ key - * - * @param p pointer to string - * - * @return newly allocated string - */ - -char * -convert_controls (const char *p) -{ - char *valcopy; - char *q; - - valcopy = g_strdup (p); - - /* Parse the escape special character */ - for (q = valcopy; *p != '\0';) - switch (*p) - { - case '\\': - p++; - - if (*p == 'e' || *p == 'E') - { - p++; - *q++ = ESC_CHAR; - } - break; - - case '^': - p++; - if (*p == '^') - *q++ = *p++; - else - { - char c; - - c = *p | 0x20; - if (c >= 'a' && c <= 'z') - { - *q++ = c - 'a' + 1; - p++; - } - else if (*p != '\0') - p++; - } - break; - - default: - *q++ = *p++; - } - - *q = '\0'; - return valcopy; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Finds out a relative path from first to second, i.e. goes as many .. - * as needed up in first and then goes down using second - */ - -char * -diff_two_paths (const vfs_path_t *vpath1, const vfs_path_t *vpath2) -{ - int j, prevlen = -1, currlen; - char *my_first = NULL, *my_second = NULL; - char *buf = NULL; - - my_first = resolve_symlinks (vpath1); - if (my_first == NULL) - goto ret; - - my_second = resolve_symlinks (vpath2); - if (my_second == NULL) - goto ret; - - for (j = 0; j < 2; j++) - { - char *p, *q; - int i; - - p = my_first; - q = my_second; - - while (TRUE) - { - char *r, *s; - ptrdiff_t len; - - r = strchr (p, PATH_SEP); - if (r == NULL) - break; - s = strchr (q, PATH_SEP); - if (s == NULL) - break; - - len = r - p; - if (len != (s - q) || strncmp (p, q, (size_t) len) != 0) - break; - - p = r + 1; - q = s + 1; - } - p--; - for (i = 0; (p = strchr (p + 1, PATH_SEP)) != NULL; i++) - ; - currlen = (i + 1) * 3 + strlen (q) + 1; - if (j != 0) - { - if (currlen < prevlen) - g_free (buf); - else - goto ret; - } - p = buf = g_malloc (currlen); - prevlen = currlen; - for (; i >= 0; i--, p += 3) - strcpy (p, "../"); - strcpy (p, q); - } - - ret: - g_free (my_first); - g_free (my_second); - return buf; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Append text to GList, remove all entries with the same text - */ - -GList * -list_append_unique (GList *list, char *text) -{ - GList *lc_link; - - /* - * Go to the last position and traverse the list backwards - * starting from the second last entry to make sure that we - * are not removing the current link. - */ - list = g_list_append (list, text); - list = g_list_last (list); - lc_link = g_list_previous (list); - - while (lc_link != NULL) - { - GList *newlink; - - newlink = g_list_previous (lc_link); - if (strcmp ((char *) lc_link->data, text) == 0) - { - GList *tmp; - - g_free (lc_link->data); - tmp = g_list_remove_link (list, lc_link); - (void) tmp; - g_list_free_1 (lc_link); - } - lc_link = newlink; - } - - return list; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Read and restore position for the given filename. - * If there is no stored data, return line 1 and col 0. - */ - -void -load_file_position (const vfs_path_t *filename_vpath, long *line, long *column, off_t *offset, - GArray **bookmarks) -{ - char *fn; - FILE *f; - char buf[MC_MAXPATHLEN + 100]; - const size_t len = vfs_path_len (filename_vpath); - - /* defaults */ - *line = 1; - *column = 0; - *offset = 0; - - /* open file with positions */ - fn = mc_config_get_full_path (MC_FILEPOS_FILE); - f = fopen (fn, "r"); - g_free (fn); - if (f == NULL) - return; - - /* prepare array for serialized bookmarks */ - if (bookmarks != NULL) - *bookmarks = g_array_sized_new (FALSE, FALSE, sizeof (size_t), MAX_SAVED_BOOKMARKS); - - while (fgets (buf, sizeof (buf), f) != NULL) - { - const char *p; - gchar **pos_tokens; - - /* check if the filename matches the beginning of string */ - if (strncmp (buf, vfs_path_as_str (filename_vpath), len) != 0) - continue; - - /* followed by single space */ - if (buf[len] != ' ') - continue; - - /* and string without spaces */ - p = &buf[len + 1]; - if (strchr (p, ' ') != NULL) - continue; - - pos_tokens = g_strsplit (p, ";", 3 + MAX_SAVED_BOOKMARKS); - if (pos_tokens[0] == NULL) - { - *line = 1; - *column = 0; - *offset = 0; - } - else - { - *line = strtol (pos_tokens[0], NULL, 10); - if (pos_tokens[1] == NULL) - { - *column = 0; - *offset = 0; - } - else - { - *column = strtol (pos_tokens[1], NULL, 10); - if (pos_tokens[2] == NULL) - *offset = 0; - else if (bookmarks != NULL) - { - size_t i; - - *offset = (off_t) g_ascii_strtoll (pos_tokens[2], NULL, 10); - - for (i = 0; i < MAX_SAVED_BOOKMARKS && pos_tokens[3 + i] != NULL; i++) - { - size_t val; - - val = strtoul (pos_tokens[3 + i], NULL, 10); - g_array_append_val (*bookmarks, val); - } - } - } - } - - g_strfreev (pos_tokens); - } - - fclose (f); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Save position for the given file - */ - -void -save_file_position (const vfs_path_t *filename_vpath, long line, long column, off_t offset, - GArray *bookmarks) -{ - static size_t filepos_max_saved_entries = 0; - char *fn, *tmp_fn; - FILE *f, *tmp_f; - char buf[MC_MAXPATHLEN + 100]; - size_t i; - const size_t len = vfs_path_len (filename_vpath); - gboolean src_error = FALSE; - - if (filepos_max_saved_entries == 0) - filepos_max_saved_entries = mc_config_get_int (mc_global.main_config, CONFIG_APP_SECTION, - "filepos_max_saved_entries", 1024); - - fn = mc_config_get_full_path (MC_FILEPOS_FILE); - if (fn == NULL) - goto early_error; - - mc_util_make_backup_if_possible (fn, TMP_SUFFIX); - - /* open file */ - f = fopen (fn, "w"); - if (f == NULL) - goto open_target_error; - - tmp_fn = g_strdup_printf ("%s" TMP_SUFFIX, fn); - tmp_f = fopen (tmp_fn, "r"); - if (tmp_f == NULL) - { - src_error = TRUE; - goto open_source_error; - } - - /* put the new record */ - if (line != 1 || column != 0 || bookmarks != NULL) - { - if (fprintf - (f, "%s %ld;%ld;%" PRIuMAX, vfs_path_as_str (filename_vpath), line, column, - (uintmax_t) offset) < 0) - goto write_position_error; - if (bookmarks != NULL) - for (i = 0; i < bookmarks->len && i < MAX_SAVED_BOOKMARKS; i++) - if (fprintf (f, ";%zu", g_array_index (bookmarks, size_t, i)) < 0) - goto write_position_error; - - if (fprintf (f, "\n") < 0) - goto write_position_error; - } - - i = 1; - while (fgets (buf, sizeof (buf), tmp_f) != NULL) - { - if (buf[len] == ' ' && strncmp (buf, vfs_path_as_str (filename_vpath), len) == 0 - && strchr (&buf[len + 1], ' ') == NULL) - continue; - - fprintf (f, "%s", buf); - if (++i > filepos_max_saved_entries) - break; - } - - write_position_error: - fclose (tmp_f); - open_source_error: - g_free (tmp_fn); - fclose (f); - if (src_error) - mc_util_restore_from_backup_if_possible (fn, TMP_SUFFIX); - else - mc_util_unlink_backup_if_possible (fn, TMP_SUFFIX); - open_target_error: - g_free (fn); - early_error: - if (bookmarks != NULL) - g_array_free (bookmarks, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -extern int -ascii_alpha_to_cntrl (int ch) -{ - if ((ch >= ASCII_A && ch <= ASCII_Z) || (ch >= ASCII_a && ch <= ASCII_z)) - ch &= 0x1f; - - return ch; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -Q_ (const char *s) -{ - const char *result, *sep; - - result = _(s); - sep = strchr (result, '|'); - - return sep != NULL ? sep + 1 : result; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_util_make_backup_if_possible (const char *file_name, const char *backup_suffix) -{ - struct stat stat_buf; - char *backup_path; - gboolean ret; - - if (!exist_file (file_name)) - return FALSE; - - backup_path = g_strdup_printf ("%s%s", file_name, backup_suffix); - if (backup_path == NULL) - return FALSE; - - ret = mc_util_write_backup_content (file_name, backup_path); - if (ret) - { - /* Backup file will have same ownership with main file. */ - if (stat (file_name, &stat_buf) == 0) - chmod (backup_path, stat_buf.st_mode); - else - chmod (backup_path, S_IRUSR | S_IWUSR); - } - - g_free (backup_path); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_util_restore_from_backup_if_possible (const char *file_name, const char *backup_suffix) -{ - gboolean ret; - char *backup_path; - - backup_path = g_strdup_printf ("%s%s", file_name, backup_suffix); - if (backup_path == NULL) - return FALSE; - - ret = mc_util_write_backup_content (backup_path, file_name); - g_free (backup_path); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mc_util_unlink_backup_if_possible (const char *file_name, const char *backup_suffix) -{ - char *backup_path; - - backup_path = g_strdup_printf ("%s%s", file_name, backup_suffix); - if (backup_path == NULL) - return FALSE; - - if (exist_file (backup_path)) - { - vfs_path_t *vpath; - - vpath = vfs_path_from_str (backup_path); - mc_unlink (vpath); - vfs_path_free (vpath, TRUE); - } - - g_free (backup_path); - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * partly taken from dcigettext.c, returns "" for default locale - * value should be freed by calling function g_free() - */ - -char * -guess_message_value (void) -{ - static const char *const var[] = { - /* Setting of LC_ALL overwrites all other. */ - /* Do not use LANGUAGE for check user locale and drowing hints */ - "LC_ALL", - /* Next comes the name of the desired category. */ - "LC_MESSAGES", - /* Last possibility is the LANG environment variable. */ - "LANG", - /* NULL exit loops */ - NULL - }; - - size_t i; - const char *locale = NULL; - - for (i = 0; var[i] != NULL; i++) - { - locale = getenv (var[i]); - if (locale != NULL && locale[0] != '\0') - break; - } - - if (locale == NULL) - locale = ""; - - return g_strdup (locale); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * The "profile root" is the tree under which all of MC's user data & - * settings are stored. - * - * It defaults to the user's home dir. The user may override this default - * with the environment variable $MC_PROFILE_ROOT. - */ -const char * -mc_get_profile_root (void) -{ - static const char *profile_root = NULL; - - if (profile_root == NULL) - { - profile_root = g_getenv ("MC_PROFILE_ROOT"); - if (profile_root == NULL || *profile_root == '\0') - profile_root = mc_config_get_home_dir (); - } - - return profile_root; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Propagate error in simple way. - * - * @param dest error return location - * @param code error code - * @param format printf()-style format for error message - * @param ... parameters for message format - */ - -void -mc_propagate_error (GError **dest, int code, const char *format, ...) -{ - if (dest != NULL && *dest == NULL) - { - GError *tmp_error; - va_list args; - - va_start (args, format); - tmp_error = g_error_new_valist (MC_ERROR, code, format, args); - va_end (args); - - g_propagate_error (dest, tmp_error); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Replace existing error in simple way. - * - * @param dest error return location - * @param code error code - * @param format printf()-style format for error message - * @param ... parameters for message format - */ - -void -mc_replace_error (GError **dest, int code, const char *format, ...) -{ - if (dest != NULL) - { - GError *tmp_error; - va_list args; - - va_start (args, format); - tmp_error = g_error_new_valist (MC_ERROR, code, format, args); - va_end (args); - - g_error_free (*dest); - *dest = NULL; - g_propagate_error (dest, tmp_error); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Returns if the given duration has elapsed since the given timestamp, - * and if it has then updates the timestamp. - * - * @param timestamp the last timestamp in microseconds, updated if the given time elapsed - * @param delay amount of time in microseconds - - * @return TRUE if clock skew detected, FALSE otherwise - */ -gboolean -mc_time_elapsed (gint64 *timestamp, gint64 delay) -{ - gint64 now; - - now = g_get_monotonic_time (); - - if (now >= *timestamp && now < *timestamp + delay) - return FALSE; - - *timestamp = now; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/util.h b/recipes/wip/files/mc/source/lib/util.h deleted file mode 100644 index 4486983164..0000000000 --- a/recipes/wip/files/mc/source/lib/util.h +++ /dev/null @@ -1,315 +0,0 @@ -/** \file lib/util.h - * \brief Header: various utilities - */ - -#ifndef MC_UTIL_H -#define MC_UTIL_H - -#include -#include -#include /* uintmax_t */ -#include - -#include "lib/global.h" /* include */ - -#include "lib/vfs/vfs.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -#ifndef MAXSYMLINKS -#define MAXSYMLINKS 32 -#endif - -#define MAX_SAVED_BOOKMARKS 10 - -#define MC_PTR_FREE(ptr) do { g_free (ptr); (ptr) = NULL; } while (0) - -#define mc_return_if_error(mcerror) do { if (mcerror != NULL && *mcerror != NULL) return; } while (0) -#define mc_return_val_if_error(mcerror, mcvalue) do { if (mcerror != NULL && *mcerror != NULL) return mcvalue; } while (0) - -#define whitespace(c) ((c) == ' ' || (c) == '\t') -#define whiteness(c) (whitespace (c) || (c) == '\n') - -#define MC_PIPE_BUFSIZE BUF_8K -#define MC_PIPE_STREAM_EOF 0 -#define MC_PIPE_STREAM_UNREAD -1 -#define MC_PIPE_ERROR_CREATE_PIPE -2 -#define MC_PIPE_ERROR_PARSE_COMMAND -3 -#define MC_PIPE_ERROR_CREATE_PIPE_STREAM -4 -#define MC_PIPE_ERROR_READ -5 - -/* gnulib efa15594e17fc20827dba66414fb391e99905394 - - *_GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2. - * It returns - * 1 if n1 > n2 - * 0 if n1 == n2 - * -1 if n1 < n2 - * The native code (n1 > n2 ? 1 : n1 < n2 ? -1 : 0) produces a conditional - * jump with nearly all GCC versions up to GCC 10. - * This variant (n1 < n2 ? -1 : n1 > n2) produces a conditional with many - * GCC versions up to GCC 9. - * The better code (n1 > n2) - (n1 < n2) from Hacker's Delight para 2-9 - * avoids conditional jumps in all GCC versions >= 3.4. - */ -#define _GL_CMP(n1, n2) (((n1) > (n2)) - ((n1) < (n2))) - -/* Difference or zero */ -#define DOZ(a, b) ((a) > (b) ? (a) - (b) : 0) - -/* flags for shell_execute */ -#define EXECUTE_INTERNAL (1 << 0) -#define EXECUTE_AS_SHELL (1 << 2) -#define EXECUTE_HIDE (1 << 3) - -/*** enums ***************************************************************************************/ - -/* Pathname canonicalization */ -/* *INDENT-OFF* */ -typedef enum -{ - CANON_PATH_NOCHANGE = 0, - CANON_PATH_JOINSLASHES = 1L << 0, /**< Multiple '/'s are collapsed to a single '/' */ - CANON_PATH_REMSLASHDOTS = 1L << 1, /**< Leading './'s, '/'s and trailing '/.'s are removed */ - CANON_PATH_REMDOUBLEDOTS = 1L << 3, /**< Non-leading '../'s and trailing '..'s are handled by removing - portions of the path */ - CANON_PATH_GUARDUNC = 1L << 4, /**< Detect and preserve UNC paths: //server/... */ - CANON_PATH_ALL = CANON_PATH_JOINSLASHES | CANON_PATH_REMSLASHDOTS - | CANON_PATH_REMDOUBLEDOTS | CANON_PATH_GUARDUNC /**< All flags */ -} canon_path_flags_t; -/* *INDENT-ON* */ - -enum compression_type -{ - COMPRESSION_NONE, - COMPRESSION_ZIP, - COMPRESSION_GZIP, - COMPRESSION_BZIP, - COMPRESSION_BZIP2, - COMPRESSION_LZIP, - COMPRESSION_LZ4, - COMPRESSION_LZMA, - COMPRESSION_LZO, - COMPRESSION_XZ, - COMPRESSION_ZSTD, -}; - -/* stdout or stderr stream of child process */ -typedef struct -{ - /* file descriptor */ - int fd; - /* data read from fd */ - char buf[MC_PIPE_BUFSIZE]; - /* current position in @buf (used by mc_pstream_get_string()) */ - size_t pos; - /* positive: length of data in buf; - * MC_PIPE_STREAM_EOF: EOF of fd; - * MC_PIPE_STREAM_UNREAD: there was not read from fd; - * MC_PIPE_ERROR_READ: reading error from fd. - */ - ssize_t len; - /* whether buf is null-terminated or not */ - gboolean null_term; - /* error code in case of len == MC_PIPE_ERROR_READ */ - int error; -} mc_pipe_stream_t; - -/* Pipe descriptor for child process */ -typedef struct -{ - /* PID of child process */ - GPid child_pid; - /* stdout of child process */ - mc_pipe_stream_t out; - /* stderr of child process */ - mc_pipe_stream_t err; -} mc_pipe_t; - -/* sighandler_t is GNU extension */ -#ifndef HAVE_SIGHANDLER_T -typedef void (*sighandler_t) (int); -#endif - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -extern struct sigaction startup_handler; - -/*** declarations of public functions ************************************************************/ - -int is_printable (int c); - -/* Quote the filename for the purpose of inserting it into the command - * line. If quote_percent is 1, replace "%" with "%%" - the percent is - * processed by the mc command line. */ -char *name_quote (const char *c, gboolean quote_percent); - -/* returns a duplicate of c. */ -char *fake_name_quote (const char *c, gboolean quote_percent); - -/* path_trunc() is the same as str_trunc() but - * it deletes possible password from path for security - * reasons. */ -const char *path_trunc (const char *path, size_t trunc_len); - -/* return a static string representing size, appending "K" or "M" for - * big sizes. - * NOTE: uses the same static buffer as size_trunc_sep. */ -const char *size_trunc (uintmax_t size, gboolean use_si); - -/* return a static string representing size, appending "K" or "M" for - * big sizes. Separates every three digits by ",". - * NOTE: uses the same static buffer as size_trunc. */ -const char *size_trunc_sep (uintmax_t size, gboolean use_si); - -/* Print file SIZE to BUFFER, but don't exceed LEN characters, - * not including trailing 0. BUFFER should be at least LEN+1 long. - * - * Units: size units (0=bytes, 1=Kbytes, 2=Mbytes, etc.) */ -void size_trunc_len (char *buffer, unsigned int len, uintmax_t size, int units, gboolean use_si); -const char *string_perm (mode_t mode_bits); - -const char *extension (const char *); -const char *unix_error_string (int error_num); -const char *skip_separators (const char *s); -const char *skip_numbers (const char *s); -char *strip_ctrl_codes (char *s); - -/* Replaces "\\E" and "\\e" with "\033". Replaces "^" + [a-z] with - * ((char) 1 + (c - 'a')). The same goes for "^" + [A-Z]. - * Returns a newly allocated string. */ -char *convert_controls (const char *s); - -/* overwrites passwd with '\0's and frees it. */ -void wipe_password (char *passwd); - -char *diff_two_paths (const vfs_path_t * vpath1, const vfs_path_t * vpath2); - -/* Returns the basename of fname. The result is a pointer into fname. */ -const char *x_basename (const char *fname); - -char *load_mc_home_file (const char *from, const char *filename, char **allocated_filename, - size_t *length); - -/* uid/gid managing */ -void init_groups (void); -void destroy_groups (void); -int get_user_permissions (struct stat *buf); - -void init_uid_gid_cache (void); -const char *get_group (gid_t gid); -const char *get_owner (uid_t uid); - -/* Returns a copy of *s until a \n is found and is below top */ -const char *extract_line (const char *s, const char *top, size_t *len); - -/* System call wrappers */ -MC_MOCKABLE sighandler_t my_signal (int signum, sighandler_t handler); -MC_MOCKABLE int my_sigaction (int signum, const struct sigaction *act, struct sigaction *oldact); -MC_MOCKABLE pid_t my_fork (void); -MC_MOCKABLE int my_execvp (const char *file, char *const argv[]); -MC_MOCKABLE char *my_get_current_dir (void); - -/* Process spawning */ -int my_system (int flags, const char *shell, const char *command); -int my_systeml (int flags, const char *shell, ...); -int my_systemv (const char *command, char *const argv[]); -int my_systemv_flags (int flags, const char *command, char *const argv[]); - -mc_pipe_t *mc_popen (const char *command, gboolean read_out, gboolean read_err, GError ** error); -void mc_pread (mc_pipe_t * p, GError ** error); -void mc_pclose (mc_pipe_t * p, GError ** error); - -GString *mc_pstream_get_string (mc_pipe_stream_t * ps); - -MC_MOCKABLE void my_exit (int status); -void save_stop_handler (void); - -/* Tilde expansion */ -char *tilde_expand (const char *directory); - -void canonicalize_pathname_custom (char *path, canon_path_flags_t flags); - -char *mc_realpath (const char *path, char *resolved_path); - -/* Looks for "magic" bytes at the start of the VFS file to guess the - * compression type. Side effect: modifies the file position. */ -enum compression_type get_compression_type (int fd, const char *name); -const char *decompress_extension (int type); - -GList *list_append_unique (GList * list, char *text); - -/* Position saving and restoring */ -/* Load position for the given filename */ -void load_file_position (const vfs_path_t * filename_vpath, long *line, long *column, - off_t * offset, GArray ** bookmarks); -/* Save position for the given filename */ -void save_file_position (const vfs_path_t * filename_vpath, long line, long column, off_t offset, - GArray * bookmarks); - - -/* if ch is in [A-Za-z], returns the corresponding control character, - * else returns the argument. */ -extern int ascii_alpha_to_cntrl (int ch); - -#undef Q_ -const char *Q_ (const char *s); - -gboolean mc_util_make_backup_if_possible (const char *file_name, const char *backup_suffix); -gboolean mc_util_restore_from_backup_if_possible (const char *file_name, const char *backup_suffix); -gboolean mc_util_unlink_backup_if_possible (const char *file_name, const char *backup_suffix); - -MC_MOCKABLE char *guess_message_value (void); - -char *mc_build_filename (const char *first_element, ...); -char *mc_build_filenamev (const char *first_element, va_list args); - -const char *mc_get_profile_root (void); - -/* *INDENT-OFF* */ -void mc_propagate_error (GError ** dest, int code, const char *format, ...) G_GNUC_PRINTF (3, 4); -void mc_replace_error (GError ** dest, int code, const char *format, ...) G_GNUC_PRINTF (3, 4); -/* *INDENT-ON* */ - -gboolean mc_time_elapsed (gint64 * timestamp, gint64 delay); - -/* --------------------------------------------------------------------------------------------- */ -/*** inline functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static inline gboolean -exist_file (const char *name) -{ - return (access (name, R_OK) == 0); -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline gboolean -is_exe (mode_t mode) -{ - return ((mode & (S_IXUSR | S_IXGRP | S_IXOTH)) != 0); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Canonicalize path with CANON_PATH_ALL. - * - * @param path path to file - * @param flags canonicalization flags - * - * All modifications of @path are made in place. - * Well formed UNC paths are modified only in the local part. - */ - -static inline void -canonicalize_pathname (char *path) -{ - canonicalize_pathname_custom (path, CANON_PATH_ALL); -} - -/* --------------------------------------------------------------------------------------------- */ - -#endif /* MC_UTIL_H */ diff --git a/recipes/wip/files/mc/source/lib/utilunix.c b/recipes/wip/files/mc/source/lib/utilunix.c deleted file mode 100644 index 0be834d1a8..0000000000 --- a/recipes/wip/files/mc/source/lib/utilunix.c +++ /dev/null @@ -1,1358 +0,0 @@ -/* - Various utilities - Unix variants - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Miguel de Icaza, 1994, 1995, 1996 - Janne Kukonlehto, 1994, 1995, 1996 - Dugan Porter, 1994, 1995, 1996 - Jakub Jelinek, 1994, 1995, 1996 - Mauricio Plaza, 1994, 1995, 1996 - Andrew Borodin 2010-2024 - - The mc_realpath routine is mostly from uClibc package, written - by Rick Sladkey - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file utilunix.c - * \brief Source: various utilities - Unix variant - */ - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -#ifdef HAVE_SYS_PARAM_H -#include -#endif -#include -#include -#ifdef HAVE_SYS_SELECT_H -#include -#endif -#include -#include -#include - -#include "lib/global.h" - -#include "lib/unixcompat.h" -#include "lib/vfs/vfs.h" /* VFS_ENCODING_PREFIX */ -#include "lib/strutil.h" /* str_move(), str_tokenize() */ -#include "lib/util.h" -#include "lib/widget.h" /* message() */ -#include "lib/vfs/xdirentry.h" - -#ifdef HAVE_CHARSET -#include "lib/charsets.h" -#endif - -/*** global variables ****************************************************************************/ - -struct sigaction startup_handler; - -/*** file scope macro definitions ****************************************************************/ - -#define UID_CACHE_SIZE 200 -#define GID_CACHE_SIZE 30 - -/*** file scope type declarations ****************************************************************/ - -typedef struct -{ - int index; - char *string; -} int_cache; - -typedef enum -{ - FORK_ERROR = -1, - FORK_CHILD, - FORK_PARENT, -} my_fork_state_t; - -typedef struct -{ - struct sigaction intr; - struct sigaction quit; - struct sigaction stop; -} my_system_sigactions_t; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static int_cache uid_cache[UID_CACHE_SIZE]; -static int_cache gid_cache[GID_CACHE_SIZE]; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static char * -i_cache_match (int id, int_cache *cache, int size) -{ - int i; - - for (i = 0; i < size; i++) - if (cache[i].index == id) - return cache[i].string; - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -i_cache_add (int id, int_cache *cache, int size, char *text, int *last) -{ - g_free (cache[*last].string); - cache[*last].string = g_strdup (text); - cache[*last].index = id; - *last = ((*last) + 1) % size; -} - -/* --------------------------------------------------------------------------------------------- */ - -static my_fork_state_t -my_fork_state (void) -{ - pid_t pid; - - pid = my_fork (); - - if (pid < 0) - { - fprintf (stderr, "\n\nfork () = -1\n"); - return FORK_ERROR; - } - - if (pid == 0) - return FORK_CHILD; - - while (TRUE) - { - int status = 0; - - if (waitpid (pid, &status, 0) > 0) - return WEXITSTATUS (status) == 0 ? FORK_PARENT : FORK_ERROR; - - if (errno != EINTR) - return FORK_ERROR; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -my_system__save_sigaction_handlers (my_system_sigactions_t *sigactions) -{ - struct sigaction ignore; - - memset (&ignore, 0, sizeof (ignore)); - ignore.sa_handler = SIG_IGN; - sigemptyset (&ignore.sa_mask); - - my_sigaction (SIGINT, &ignore, &sigactions->intr); - my_sigaction (SIGQUIT, &ignore, &sigactions->quit); - - /* Restore the original SIGTSTP handler, we don't want ncurses' */ - /* handler messing the screen after the SIGCONT */ - my_sigaction (SIGTSTP, &startup_handler, &sigactions->stop); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -my_system__restore_sigaction_handlers (my_system_sigactions_t *sigactions) -{ - my_sigaction (SIGINT, &sigactions->intr, NULL); - my_sigaction (SIGQUIT, &sigactions->quit, NULL); - my_sigaction (SIGTSTP, &sigactions->stop, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -static GPtrArray * -my_system_make_arg_array (int flags, const char *shell) -{ - GPtrArray *args_array; - - if ((flags & EXECUTE_AS_SHELL) != 0) - { - args_array = g_ptr_array_new (); - g_ptr_array_add (args_array, (gpointer) shell); - g_ptr_array_add (args_array, (gpointer) "-c"); - } - else if (shell == NULL || *shell == '\0') - { - args_array = g_ptr_array_new (); - g_ptr_array_add (args_array, NULL); - } - else - args_array = str_tokenize (shell); - - return args_array; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -mc_pread_stream (mc_pipe_stream_t *ps, const fd_set *fds) -{ - size_t buf_len; - ssize_t read_len; - - if (!FD_ISSET (ps->fd, fds)) - { - ps->len = MC_PIPE_STREAM_UNREAD; - return; - } - - buf_len = (size_t) ps->len; - - if (buf_len >= MC_PIPE_BUFSIZE) - buf_len = ps->null_term ? MC_PIPE_BUFSIZE - 1 : MC_PIPE_BUFSIZE; - - do - { - read_len = read (ps->fd, ps->buf, buf_len); - } - while (read_len < 0 && errno == EINTR); - - if (read_len < 0) - { - /* reading error */ - ps->len = MC_PIPE_ERROR_READ; - ps->error = errno; - } - else if (read_len == 0) - /* EOF */ - ps->len = MC_PIPE_STREAM_EOF; - else - { - /* success */ - ps->len = read_len; - - if (ps->null_term) - ps->buf[(size_t) ps->len] = '\0'; - } - - ps->pos = 0; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -const char * -get_owner (uid_t uid) -{ - struct passwd *pwd; - char *name; - static uid_t uid_last; - - name = i_cache_match ((int) uid, uid_cache, UID_CACHE_SIZE); - if (name != NULL) - return name; - - pwd = getpwuid (uid); - if (pwd != NULL) - { - i_cache_add ((int) uid, uid_cache, UID_CACHE_SIZE, pwd->pw_name, (int *) &uid_last); - return pwd->pw_name; - } - else - { - static char ibuf[10]; - - g_snprintf (ibuf, sizeof (ibuf), "%d", (int) uid); - return ibuf; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -get_group (gid_t gid) -{ - struct group *grp; - char *name; - static gid_t gid_last; - - name = i_cache_match ((int) gid, gid_cache, GID_CACHE_SIZE); - if (name != NULL) - return name; - - grp = getgrgid (gid); - if (grp != NULL) - { - i_cache_add ((int) gid, gid_cache, GID_CACHE_SIZE, grp->gr_name, (int *) &gid_last); - return grp->gr_name; - } - else - { - static char gbuf[10]; - - g_snprintf (gbuf, sizeof (gbuf), "%d", (int) gid); - return gbuf; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/* Since ncurses uses a handler that automatically refreshes the */ -/* screen after a SIGCONT, and we don't want this behavior when */ -/* spawning a child, we save the original handler here */ - -void -save_stop_handler (void) -{ - my_sigaction (SIGTSTP, NULL, &startup_handler); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Wrapper for _exit() system call. - * The _exit() function has gcc's attribute 'noreturn', and this is reason why we can't - * mock the call. - * - * @param status exit code - */ - -void -/* __attribute__ ((noreturn)) */ -my_exit (int status) -{ - _exit (status); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Wrapper for signal() system call. - */ - -sighandler_t -my_signal (int signum, sighandler_t handler) -{ - return signal (signum, handler); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Wrapper for sigaction() system call. - */ - -int -my_sigaction (int signum, const struct sigaction *act, struct sigaction *oldact) -{ - return sigaction (signum, act, oldact); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Wrapper for fork() system call. - */ - -pid_t -my_fork (void) -{ - return fork (); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Wrapper for execvp() system call. - */ - -int -my_execvp (const char *file, char *const argv[]) -{ - return execvp (file, argv); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Wrapper for g_get_current_dir() library function. - */ - -char * -my_get_current_dir (void) -{ - return g_get_current_dir (); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Call external programs. - * - * @parameter flags addition conditions for running external programs. - * @parameter shell shell (if flags contain EXECUTE_AS_SHELL), command to run otherwise. - * Shell (or command) will be found in paths described in PATH variable - * (if shell parameter doesn't begin from path delimiter) - * @parameter command Command for shell (or first parameter for command, if flags contain EXECUTE_AS_SHELL) - * @return 0 if successful, -1 otherwise - */ - -int -my_system (int flags, const char *shell, const char *command) -{ - return my_systeml (flags, shell, command, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Call external programs with various parameters number. - * - * @parameter flags addition conditions for running external programs. - * @parameter shell shell (if flags contain EXECUTE_AS_SHELL), command to run otherwise. - * Shell (or command) will be found in paths described in PATH variable - * (if shell parameter doesn't begin from path delimiter) - * @parameter ... Command for shell with addition parameters for shell - * (or parameters for command, if flags contain EXECUTE_AS_SHELL). - * Should be NULL terminated. - * @return 0 if successful, -1 otherwise - */ - -int -my_systeml (int flags, const char *shell, ...) -{ - GPtrArray *args_array; - int status = 0; - va_list vargs; - char *one_arg; - - args_array = g_ptr_array_new (); - - va_start (vargs, shell); - while ((one_arg = va_arg (vargs, char *)) != NULL) - g_ptr_array_add (args_array, one_arg); - va_end (vargs); - - g_ptr_array_add (args_array, NULL); - status = my_systemv_flags (flags, shell, (char *const *) args_array->pdata); - - g_ptr_array_free (args_array, TRUE); - - return status; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Call external programs with array of strings as parameters. - * - * @parameter command command to run. Command will be found in paths described in PATH variable - * (if command parameter doesn't begin from path delimiter) - * @parameter argv Array of strings (NULL-terminated) with parameters for command - * @return 0 if successful, -1 otherwise - */ - -int -my_systemv (const char *command, char *const argv[]) -{ - my_fork_state_t fork_state; - int status = 0; - my_system_sigactions_t sigactions; - - my_system__save_sigaction_handlers (&sigactions); - - fork_state = my_fork_state (); - switch (fork_state) - { - case FORK_ERROR: - status = -1; - break; - case FORK_CHILD: - { - my_signal (SIGINT, SIG_DFL); - my_signal (SIGQUIT, SIG_DFL); - my_signal (SIGTSTP, SIG_DFL); - my_signal (SIGCHLD, SIG_DFL); - - my_execvp (command, argv); - my_exit (127); /* Exec error */ - } - MC_FALLTHROUGH; - /* no break here, or unreachable-code warning by no returning my_exit() */ - default: - status = 0; - break; - } - my_system__restore_sigaction_handlers (&sigactions); - - return status; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Call external programs with flags and with array of strings as parameters. - * - * @parameter flags addition conditions for running external programs. - * @parameter command shell (if flags contain EXECUTE_AS_SHELL), command to run otherwise. - * Shell (or command) will be found in paths described in PATH variable - * (if shell parameter doesn't begin from path delimiter) - * @parameter argv Array of strings (NULL-terminated) with parameters for command - * @return 0 if successful, -1 otherwise - */ - -int -my_systemv_flags (int flags, const char *command, char *const argv[]) -{ - const char *execute_name; - GPtrArray *args_array; - int status = 0; - - args_array = my_system_make_arg_array (flags, command); - - execute_name = g_ptr_array_index (args_array, 0); - - for (; argv != NULL && *argv != NULL; argv++) - g_ptr_array_add (args_array, *argv); - - g_ptr_array_add (args_array, NULL); - status = my_systemv (execute_name, (char *const *) args_array->pdata); - - g_ptr_array_free (args_array, TRUE); - - return status; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Create pipe and run child process. - * - * @parameter command command line of child process - * @parameter read_out do or don't read the stdout of child process - * @parameter read_err do or don't read the stderr of child process - * @parameter error contains pointer to object to handle error code and message - * - * @return newly created object of mc_pipe_t class in success, NULL otherwise - */ - -mc_pipe_t * -mc_popen (const char *command, gboolean read_out, gboolean read_err, GError **error) -{ - mc_pipe_t *p; - const char *const argv[] = { "/bin/sh", "sh", "-c", command, NULL }; - - p = g_try_new (mc_pipe_t, 1); - if (p == NULL) - { - mc_replace_error (error, MC_PIPE_ERROR_CREATE_PIPE, "%s", - _("Cannot create pipe descriptor")); - goto ret_err; - } - - p->out.fd = -1; - p->err.fd = -1; - - if (!g_spawn_async_with_pipes - (NULL, (gchar **) argv, NULL, G_SPAWN_DO_NOT_REAP_CHILD | G_SPAWN_FILE_AND_ARGV_ZERO, NULL, - NULL, &p->child_pid, NULL, read_out ? &p->out.fd : NULL, read_err ? &p->err.fd : NULL, - error)) - { - mc_replace_error (error, MC_PIPE_ERROR_CREATE_PIPE_STREAM, "%s", - _("Cannot create pipe streams")); - goto ret_err; - } - - p->out.buf[0] = '\0'; - p->out.len = MC_PIPE_BUFSIZE; - p->out.null_term = FALSE; - - p->err.buf[0] = '\0'; - p->err.len = MC_PIPE_BUFSIZE; - p->err.null_term = FALSE; - - return p; - - ret_err: - g_free (p); - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Read stdout and stderr of pipe asynchronously. - * - * @parameter p pipe descriptor - * - * The lengths of read data contain in p->out.len and p->err.len. - * - * Before read, p->xxx.len is an input. It defines the number of data to read. - * Should not be greater than MC_PIPE_BUFSIZE. - * - * After read, p->xxx.len is an output and contains the following: - * p->xxx.len > 0: an actual length of read data stored in p->xxx.buf; - * p->xxx.len == MC_PIPE_STREAM_EOF: EOF of stream p->xxx; - * p->xxx.len == MC_PIPE_STREAM_UNREAD: stream p->xxx was not read; - * p->xxx.len == MC_PIPE_ERROR_READ: reading error, and p->xxx.errno is set appropriately. - * - * @parameter error contains pointer to object to handle error code and message - */ - -void -mc_pread (mc_pipe_t *p, GError **error) -{ - gboolean read_out, read_err; - fd_set fds; - int maxfd = 0; - int res; - - if (error != NULL) - *error = NULL; - - read_out = p->out.fd >= 0; - read_err = p->err.fd >= 0; - - if (!read_out && !read_err) - { - p->out.len = MC_PIPE_STREAM_UNREAD; - p->err.len = MC_PIPE_STREAM_UNREAD; - return; - } - - FD_ZERO (&fds); - if (read_out) - { - FD_SET (p->out.fd, &fds); - maxfd = p->out.fd; - } - - if (read_err) - { - FD_SET (p->err.fd, &fds); - maxfd = MAX (maxfd, p->err.fd); - } - - /* no timeout */ - res = select (maxfd + 1, &fds, NULL, NULL, NULL); - if (res < 0 && errno != EINTR) - { - mc_propagate_error (error, MC_PIPE_ERROR_READ, - _ - ("Unexpected error in select() reading data from a child process:\n%s"), - unix_error_string (errno)); - return; - } - - if (read_out) - mc_pread_stream (&p->out, &fds); - else - p->out.len = MC_PIPE_STREAM_UNREAD; - - if (read_err) - mc_pread_stream (&p->err, &fds); - else - p->err.len = MC_PIPE_STREAM_UNREAD; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Reads a line from @stream. Reading stops after an EOL or a newline. If a newline is read, - * it is appended to the line. - * - * @stream mc_pipe_stream_t object - * - * @return newly created GString or NULL in case of EOL; - */ - -GString * -mc_pstream_get_string (mc_pipe_stream_t *ps) -{ - char *s; - size_t size, i; - gboolean escape = FALSE; - - g_return_val_if_fail (ps != NULL, NULL); - - if (ps->len < 0) - return NULL; - - size = ps->len - ps->pos; - - if (size == 0) - return NULL; - - s = ps->buf + ps->pos; - - if (s[0] == '\0') - return NULL; - - /* find '\0' or unescaped '\n' */ - for (i = 0; i < size && !(s[i] == '\0' || (s[i] == '\n' && !escape)); i++) - escape = s[i] == '\\' ? !escape : FALSE; - - if (i != size && s[i] == '\n') - i++; - - ps->pos += i; - - return g_string_new_len (s, i); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Close pipe and destroy pipe descriptor. - * - * @parameter p pipe descriptor - * @parameter error contains pointer to object to handle error code and message - */ - -void -mc_pclose (mc_pipe_t *p, GError **error) -{ - int res; - - if (p == NULL) - { - mc_replace_error (error, MC_PIPE_ERROR_READ, "%s", - _("Cannot close pipe descriptor (p == NULL)")); - return; - } - - if (p->out.fd >= 0) - res = close (p->out.fd); - if (p->err.fd >= 0) - res = close (p->err.fd); - - do - { - int status; - - res = waitpid (p->child_pid, &status, 0); - } - while (res < 0 && errno == EINTR); - - if (res < 0) - mc_replace_error (error, MC_PIPE_ERROR_READ, _("Unexpected error in waitpid():\n%s"), - unix_error_string (errno)); - - g_free (p); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Perform tilde expansion if possible. - * - * @param directory pointer to the path - * - * @return newly allocated string, even if it's unchanged. - */ - -char * -tilde_expand (const char *directory) -{ - struct passwd *passwd; - const char *p, *q; - - if (*directory != '~') - return g_strdup (directory); - - p = directory + 1; - - /* d = "~" or d = "~/" */ - if (*p == '\0' || IS_PATH_SEP (*p)) - { - passwd = getpwuid (geteuid ()); - q = IS_PATH_SEP (*p) ? p + 1 : ""; - } - else - { - q = strchr (p, PATH_SEP); - if (q == NULL) - passwd = getpwnam (p); - else - { - char *name; - - name = g_strndup (p, q - p); - passwd = getpwnam (name); - q++; - g_free (name); - } - } - - /* If we can't figure the user name, leave tilde unexpanded */ - if (passwd == NULL) - return g_strdup (directory); - - return g_strconcat (passwd->pw_dir, PATH_SEP_STR, q, (char *) NULL); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Canonicalize path. - * - * @param path path to file - * @param flags canonicalization flags - * - * All modifications of @path are made in place. - * Well formed UNC paths are modified only in the local part. - */ - -void -canonicalize_pathname_custom (char *path, canon_path_flags_t flags) -{ - char *p, *s; - char *lpath = path; /* path without leading UNC part */ - const size_t url_delim_len = strlen (VFS_PATH_URL_DELIMITER); - - /* Detect and preserve UNC paths: //server/... */ - if ((flags & CANON_PATH_GUARDUNC) != 0 && IS_PATH_SEP (path[0]) && IS_PATH_SEP (path[1])) - { - for (p = path + 2; p[0] != '\0' && !IS_PATH_SEP (p[0]); p++) - ; - if (IS_PATH_SEP (p[0]) && p > path + 2) - lpath = p; - } - - if (lpath[0] == '\0' || lpath[1] == '\0') - return; - - if ((flags & CANON_PATH_JOINSLASHES) != 0) - { - /* Collapse multiple slashes */ - for (p = lpath; *p != '\0'; p++) - if (IS_PATH_SEP (p[0]) && IS_PATH_SEP (p[1]) && (p == lpath || *(p - 1) != ':')) - { - s = p + 1; - while (IS_PATH_SEP (*(++s))) - ; - str_move (p + 1, s); - } - - /* Collapse "/./" -> "/" */ - for (p = lpath; *p != '\0';) - if (IS_PATH_SEP (p[0]) && p[1] == '.' && IS_PATH_SEP (p[2])) - str_move (p, p + 2); - else - p++; - } - - if ((flags & CANON_PATH_REMSLASHDOTS) != 0) - { - size_t len; - - /* Remove trailing slashes */ - for (p = lpath + strlen (lpath) - 1; p > lpath && IS_PATH_SEP (*p); p--) - { - if (p >= lpath + url_delim_len - 1 - && strncmp (p - url_delim_len + 1, VFS_PATH_URL_DELIMITER, url_delim_len) == 0) - break; - *p = '\0'; - } - - /* Remove leading "./" */ - if (lpath[0] == '.' && IS_PATH_SEP (lpath[1])) - { - if (lpath[2] == '\0') - { - lpath[1] = '\0'; - return; - } - - str_move (lpath, lpath + 2); - } - - /* Remove trailing "/" or "/." */ - len = strlen (lpath); - if (len < 2) - return; - - if (IS_PATH_SEP (lpath[len - 1]) - && (len < url_delim_len - || strncmp (lpath + len - url_delim_len, VFS_PATH_URL_DELIMITER, - url_delim_len) != 0)) - lpath[len - 1] = '\0'; - else if (lpath[len - 1] == '.' && IS_PATH_SEP (lpath[len - 2])) - { - if (len == 2) - { - lpath[1] = '\0'; - return; - } - - lpath[len - 2] = '\0'; - } - } - - /* Collapse "/.." with the previous part of path */ - if ((flags & CANON_PATH_REMDOUBLEDOTS) != 0) - { -#ifdef HAVE_CHARSET - const size_t enc_prefix_len = strlen (VFS_ENCODING_PREFIX); -#endif /* HAVE_CHARSET */ - - for (p = lpath; p[0] != '\0' && p[1] != '\0' && p[2] != '\0';) - { - if (!IS_PATH_SEP (p[0]) || p[1] != '.' || p[2] != '.' - || (!IS_PATH_SEP (p[3]) && p[3] != '\0')) - { - p++; - continue; - } - - /* search for the previous token */ - s = p - 1; - if (s >= lpath + url_delim_len - 2 - && strncmp (s - url_delim_len + 2, VFS_PATH_URL_DELIMITER, url_delim_len) == 0) - { - s -= (url_delim_len - 2); - while (s >= lpath && !IS_PATH_SEP (*s--)) - ; - } - - while (s >= lpath) - { - if (s - url_delim_len > lpath - && strncmp (s - url_delim_len, VFS_PATH_URL_DELIMITER, url_delim_len) == 0) - { - char *vfs_prefix = s - url_delim_len; - vfs_class *vclass; - - while (vfs_prefix > lpath && !IS_PATH_SEP (*--vfs_prefix)) - ; - if (IS_PATH_SEP (*vfs_prefix)) - vfs_prefix++; - *(s - url_delim_len) = '\0'; - - vclass = vfs_prefix_to_class (vfs_prefix); - *(s - url_delim_len) = *VFS_PATH_URL_DELIMITER; - - if (vclass != NULL && (vclass->flags & VFSF_REMOTE) != 0) - { - s = vfs_prefix; - continue; - } - } - - if (IS_PATH_SEP (*s)) - break; - - s--; - } - - s++; - - /* If the previous token is "..", we cannot collapse it */ - if (s[0] == '.' && s[1] == '.' && s + 2 == p) - { - p += 3; - continue; - } - - if (p[3] != '\0') - { - if (s == lpath && IS_PATH_SEP (*s)) - { - /* "/../foo" -> "/foo" */ - str_move (s + 1, p + 4); - } - else - { - /* "token/../foo" -> "foo" */ -#ifdef HAVE_CHARSET - if (strncmp (s, VFS_ENCODING_PREFIX, enc_prefix_len) == 0) - { - char *enc; - - enc = vfs_get_encoding (s, -1); - - if (is_supported_encoding (enc)) - /* special case: remove encoding */ - str_move (s, p + 1); - else - str_move (s, p + 4); - - g_free (enc); - } - else -#endif /* HAVE_CHARSET */ - str_move (s, p + 4); - } - - p = s > lpath ? s - 1 : s; - continue; - } - - /* trailing ".." */ - if (s == lpath) - { - /* "token/.." -> "." */ - if (!IS_PATH_SEP (lpath[0])) - lpath[0] = '.'; - lpath[1] = '\0'; - } - else - { - /* "foo/token/.." -> "foo" */ - if (s == lpath + 1) - s[0] = '\0'; -#ifdef HAVE_CHARSET - else if (strncmp (s, VFS_ENCODING_PREFIX, enc_prefix_len) == 0) - { - char *enc; - gboolean ok; - - enc = vfs_get_encoding (s, -1); - ok = is_supported_encoding (enc); - g_free (enc); - - if (!ok) - goto last; - - /* special case: remove encoding */ - s[0] = '.'; - s[1] = '.'; - s[2] = '\0'; - - /* search for the previous token */ - /* IS_PATH_SEP (s[-1]) */ - for (p = s - 1; p >= lpath && !IS_PATH_SEP (*p); p--) - ; - - if (p >= lpath) - continue; - } -#endif /* HAVE_CHARSET */ - else - { -#ifdef HAVE_CHARSET - last: -#endif /* HAVE_CHARSET */ - if (s >= lpath + url_delim_len - && strncmp (s - url_delim_len, VFS_PATH_URL_DELIMITER, url_delim_len) == 0) - *s = '\0'; - else - s[-1] = '\0'; - } - } - - break; - } - } -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -mc_realpath (const char *path, char *resolved_path) -{ -#ifdef HAVE_CHARSET - const char *p = path; - gboolean absolute_path = FALSE; - - if (IS_PATH_SEP (*p)) - { - absolute_path = TRUE; - p++; - } - - /* ignore encoding: skip "#enc:" */ - if (g_str_has_prefix (p, VFS_ENCODING_PREFIX)) - { - p += strlen (VFS_ENCODING_PREFIX); - p = strchr (p, PATH_SEP); - if (p != NULL) - { - if (!absolute_path && p[1] != '\0') - p++; - - path = p; - } - } -#endif /* HAVE_CHARSET */ - -#ifdef HAVE_REALPATH - return realpath (path, resolved_path); -#else - { - char copy_path[PATH_MAX]; - char got_path[PATH_MAX]; - char *new_path = got_path; - char *max_path; -#ifdef S_IFLNK - char link_path[PATH_MAX]; - int readlinks = 0; - int n; -#endif /* S_IFLNK */ - - /* Make a copy of the source path since we may need to modify it. */ - if (strlen (path) >= PATH_MAX - 2) - { - errno = ENAMETOOLONG; - return NULL; - } - - strcpy (copy_path, path); - path = copy_path; - max_path = copy_path + PATH_MAX - 2; - /* If it's a relative pathname use getwd for starters. */ - if (!IS_PATH_SEP (*path)) - { - new_path = my_get_current_dir (); - if (new_path == NULL) - strcpy (got_path, ""); - else - { - g_snprintf (got_path, sizeof (got_path), "%s", new_path); - g_free (new_path); - new_path = got_path; - } - - new_path += strlen (got_path); - if (!IS_PATH_SEP (new_path[-1])) - *new_path++ = PATH_SEP; - } - else - { - *new_path++ = PATH_SEP; - path++; - } - /* Expand each slash-separated pathname component. */ - while (*path != '\0') - { - /* Ignore stray "/". */ - if (IS_PATH_SEP (*path)) - { - path++; - continue; - } - if (*path == '.') - { - /* Ignore ".". */ - if (path[1] == '\0' || IS_PATH_SEP (path[1])) - { - path++; - continue; - } - if (path[1] == '.') - { - if (path[2] == '\0' || IS_PATH_SEP (path[2])) - { - path += 2; - /* Ignore ".." at root. */ - if (new_path == got_path + 1) - continue; - /* Handle ".." by backing up. */ - while (!IS_PATH_SEP ((--new_path)[-1])) - ; - continue; - } - } - } - /* Safely copy the next pathname component. */ - while (*path != '\0' && !IS_PATH_SEP (*path)) - { - if (path > max_path) - { - errno = ENAMETOOLONG; - return NULL; - } - *new_path++ = *path++; - } -#ifdef S_IFLNK - /* Protect against infinite loops. */ - if (readlinks++ > MAXSYMLINKS) - { - errno = ELOOP; - return NULL; - } - /* See if latest pathname component is a symlink. */ - *new_path = '\0'; - n = readlink (got_path, link_path, PATH_MAX - 1); - if (n < 0) - { - /* EINVAL means the file exists but isn't a symlink. */ - if (errno != EINVAL) - { - /* Make sure it's null terminated. */ - *new_path = '\0'; - strcpy (resolved_path, got_path); - return NULL; - } - } - else - { - /* Note: readlink doesn't add the null byte. */ - link_path[n] = '\0'; - if (IS_PATH_SEP (*link_path)) - /* Start over for an absolute symlink. */ - new_path = got_path; - else - /* Otherwise back up over this component. */ - while (!IS_PATH_SEP (*(--new_path))) - ; - /* Safe sex check. */ - if (strlen (path) + n >= PATH_MAX - 2) - { - errno = ENAMETOOLONG; - return NULL; - } - /* Insert symlink contents into path. */ - strcat (link_path, path); - strcpy (copy_path, link_path); - path = copy_path; - } -#endif /* S_IFLNK */ - *new_path++ = PATH_SEP; - } - /* Delete trailing slash but don't whomp a lone slash. */ - if (new_path != got_path + 1 && IS_PATH_SEP (new_path[-1])) - new_path--; - /* Make sure it's null terminated. */ - *new_path = '\0'; - strcpy (resolved_path, got_path); - return resolved_path; - } -#endif /* HAVE_REALPATH */ -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Return the index of the permissions triplet - * - */ - -int -get_user_permissions (struct stat *st) -{ - static gboolean initialized = FALSE; - static gid_t *groups; - static int ngroups; - static uid_t uid; - int i; - - if (!initialized) - { - uid = geteuid (); - - ngroups = getgroups (0, NULL); - if (ngroups == -1) - ngroups = 0; /* ignore errors */ - - /* allocate space for one element in addition to what - * will be filled by getgroups(). */ - groups = g_new (gid_t, ngroups + 1); - - if (ngroups != 0) - { - ngroups = getgroups (ngroups, groups); - if (ngroups == -1) - ngroups = 0; /* ignore errors */ - } - - /* getgroups() may or may not return the effective group ID, - * so we always include it at the end of the list. */ - groups[ngroups++] = getegid (); - - initialized = TRUE; - } - - if (st->st_uid == uid || uid == 0) - return 0; - - for (i = 0; i < ngroups; i++) - if (st->st_gid == groups[i]) - return 1; - - return 2; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Build filename from arguments. - * Like to g_build_filename(), but respect VFS_PATH_URL_DELIMITER - */ - -char * -mc_build_filenamev (const char *first_element, va_list args) -{ - gboolean absolute; - const char *element = first_element; - GString *path; - char *ret; - - if (first_element == NULL) - return NULL; - - absolute = IS_PATH_SEP (*first_element); - - path = g_string_new (absolute ? PATH_SEP_STR : ""); - - do - { - if (*element == '\0') - element = va_arg (args, char *); - else - { - char *tmp_element; - const char *start; - - tmp_element = g_strdup (element); - - element = va_arg (args, char *); - - canonicalize_pathname (tmp_element); - start = IS_PATH_SEP (tmp_element[0]) ? tmp_element + 1 : tmp_element; - - g_string_append (path, start); - if (!IS_PATH_SEP (path->str[path->len - 1]) && element != NULL) - g_string_append_c (path, PATH_SEP); - - g_free (tmp_element); - } - } - while (element != NULL); - - ret = g_string_free (path, FALSE); - canonicalize_pathname (ret); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Build filename from arguments. - * Like to g_build_filename(), but respect VFS_PATH_URL_DELIMITER - */ - -char * -mc_build_filename (const char *first_element, ...) -{ - va_list args; - char *ret; - - if (first_element == NULL) - return NULL; - - va_start (args, first_element); - ret = mc_build_filenamev (first_element, args); - va_end (args); - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/vfs/HACKING b/recipes/wip/files/mc/source/lib/vfs/HACKING deleted file mode 100644 index c02e23d8de..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/HACKING +++ /dev/null @@ -1,104 +0,0 @@ -Intended audience -================= - -This document is intended for everybody who wants to understand VFS -code. Knowledge of programming is a must. - - -Preface -======= - -While VFS should be considered an excellent idea, which came ahead of -its time, the implementation used in GNU Midnight Commander is now -showing its age. - -The VFS code was left us without any decent documentation. Most -functions don't have comments explaining what they do. Most comments -describe quirks and implementation details, rather than the intended -functionality of the code. This document is an attempt to reconstruct -understanding of the VFS code and help its future developers. - -Being the part of GNU Midnight Commander most exposed to potential -security threats, the VFS code needs to be kept is a good shape. -Understanding the code is the key to making and keeping it secure. - - -Basics of code organization -=========================== - -VFS code it to a certain extent object oriented. The code dealing with -a certain type of data (e.g. tar archives) can be thought -of as a class in the terms of object oriented programming. They may -reuse some code from their parent classes. For instance, tar and cpio -archives have a common parent class direntry, which contains some common -code for archives. - -Individual archives or connections can be considered as instances of -those classes. They provide POSIX like interface to their structure, -but don't expose that structure directly to the common VFS layer. - -Each VFS object has a directory tree associated with it. The tree -consists of entries for files and directories. In some VFS classes, the -entries have names and a are associated with nameless inodes, which -contain information such as size, timestamps and other data normally -contained in POSIX "struct stat". - -File vfs.c serves as a multiplexor. It exports functions similar to -POSIX but with "mc_" prepended to them. For example, mc_open() will act -like open(), but will treat VFS names in a special way. - -Common utility functions not intended to be used outside the VFS code -should go to utilvfs.c and possibly to other files. Presently, there is -a lot of such code in vfs.c. - - -Hierarchy of classes -==================== - -vfs ---- direntry ---- cpio } archives - | | ---- tar } - | | - | | ---- fish } remote systems - | | ---- ftpfs } - | - |---- extfs ---- extfs archives - |---- localfs ---- sfs ---- sfs archives - |---- undelfs - - -Properties of classes -===================== - - read only inode->entry local cache full tree - mapping loaded - -cpio yes* yes* no yes -tar yes* yes* no yes -fish no yes yes no -ftpfs no yes yes no -extfs no no yes yes -localfs no no N/A N/A -sfs no yes yes N/A -undelfs no yes no yes - - -"*" means that this property should change during further development. -Mapping from inode to entry prevents implementing hard links. It is -permissible for directories, which cannot be hardlinked. Not loading -the full tree speeds up access to large archives and conserves memory. - - -Stamping -======== - -Stamping is the VFS equivalent of garbage collection. It's purpose is -to destroy unreferenced VFS objects, in other words close archives or -connections once they are unused for some time. There is a tree of -items representing VFS objects. The common layer doesn't know the -structure of the pointers, but it knows the class that should handle the -pointer. Every item has a timestamp. Once the timestamp becomes too -old, the object is freed. - -There are ways to keep objects alive if they are used. Also, objects -can have parent objects, which are freed together with there original -object if they are otherwise unreferenced. diff --git a/recipes/wip/files/mc/source/lib/vfs/Makefile.am b/recipes/wip/files/mc/source/lib/vfs/Makefile.am deleted file mode 100644 index 87a51c641e..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/Makefile.am +++ /dev/null @@ -1,19 +0,0 @@ -noinst_LTLIBRARIES = libmcvfs.la - -AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) - -libmcvfs_la_SOURCES = \ - direntry.c \ - gc.c gc.h \ - interface.c \ - parse_ls_vga.c \ - path.c path.h \ - vfs.c vfs.h \ - utilvfs.c utilvfs.h \ - xdirentry.h - -if ENABLE_VFS_NET -libmcvfs_la_SOURCES += netutil.c netutil.h -endif - -EXTRA_DIST = HACKING README diff --git a/recipes/wip/files/mc/source/lib/vfs/Makefile.in b/recipes/wip/files/mc/source/lib/vfs/Makefile.in deleted file mode 100644 index ddeaec6f10..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/Makefile.in +++ /dev/null @@ -1,771 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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@ -@ENABLE_VFS_NET_TRUE@am__append_1 = netutil.c netutil.h -subdir = lib/vfs -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libmcvfs_la_LIBADD = -am__libmcvfs_la_SOURCES_DIST = direntry.c gc.c gc.h interface.c \ - parse_ls_vga.c path.c path.h vfs.c vfs.h utilvfs.c utilvfs.h \ - xdirentry.h netutil.c netutil.h -@ENABLE_VFS_NET_TRUE@am__objects_1 = netutil.lo -am_libmcvfs_la_OBJECTS = direntry.lo gc.lo interface.lo \ - parse_ls_vga.lo path.lo vfs.lo utilvfs.lo $(am__objects_1) -libmcvfs_la_OBJECTS = $(am_libmcvfs_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_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__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/direntry.Plo ./$(DEPDIR)/gc.Plo \ - ./$(DEPDIR)/interface.Plo ./$(DEPDIR)/netutil.Plo \ - ./$(DEPDIR)/parse_ls_vga.Plo ./$(DEPDIR)/path.Plo \ - ./$(DEPDIR)/utilvfs.Plo ./$(DEPDIR)/vfs.Plo -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libmcvfs_la_SOURCES) -DIST_SOURCES = $(am__libmcvfs_la_SOURCES_DIST) -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)` -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp \ - README -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -noinst_LTLIBRARIES = libmcvfs.la -AM_CPPFLAGS = $(GLIB_CFLAGS) -I$(top_srcdir) -libmcvfs_la_SOURCES = direntry.c gc.c gc.h interface.c parse_ls_vga.c \ - path.c path.h vfs.c vfs.h utilvfs.c utilvfs.h xdirentry.h \ - $(am__append_1) -EXTRA_DIST = HACKING README -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/vfs/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/vfs/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libmcvfs.la: $(libmcvfs_la_OBJECTS) $(libmcvfs_la_DEPENDENCIES) $(EXTRA_libmcvfs_la_DEPENDENCIES) - $(AM_V_CCLD)$(LINK) $(libmcvfs_la_OBJECTS) $(libmcvfs_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/direntry.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gc.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interface.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/netutil.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parse_ls_vga.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/path.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/utilvfs.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/vfs.Plo@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.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 -o $@ $< - -.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 -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -f ./$(DEPDIR)/direntry.Plo - -rm -f ./$(DEPDIR)/gc.Plo - -rm -f ./$(DEPDIR)/interface.Plo - -rm -f ./$(DEPDIR)/netutil.Plo - -rm -f ./$(DEPDIR)/parse_ls_vga.Plo - -rm -f ./$(DEPDIR)/path.Plo - -rm -f ./$(DEPDIR)/utilvfs.Plo - -rm -f ./$(DEPDIR)/vfs.Plo - -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-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f ./$(DEPDIR)/direntry.Plo - -rm -f ./$(DEPDIR)/gc.Plo - -rm -f ./$(DEPDIR)/interface.Plo - -rm -f ./$(DEPDIR)/netutil.Plo - -rm -f ./$(DEPDIR)/parse_ls_vga.Plo - -rm -f ./$(DEPDIR)/path.Plo - -rm -f ./$(DEPDIR)/utilvfs.Plo - -rm -f ./$(DEPDIR)/vfs.Plo - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ - clean-generic clean-libtool clean-noinstLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/lib/vfs/README b/recipes/wip/files/mc/source/lib/vfs/README deleted file mode 100644 index 14d43972e8..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/README +++ /dev/null @@ -1,70 +0,0 @@ -NOTE: Although vfs has been meant to be implemented as a separate -entity redistributable under the LGPL in its current implementation it -uses GPLed code from src/. So there are two possibilities if you want -to use vfs: - -1. Distribute your copy of vfs under the GPL. Then you can freely -include the GPLed functions from the rest of the mc source code. - -2. Distribute your copy of vfs under the LGPL. Then you cannot include -the functions outside the vfs subdirectory. You must then either -rewrite them or work around them in other ways. - -======================================================================== - -Hi! - -I'm midnight commander's vfs layer. Before you start hacking me, -please read this file. I'm integral part of midnight commander, but I -try to go out and live my life myself as a shared library, too. That -means that I should try to use as little functions from midnight as -possible (so I'm tiny, nice and people like me), that I should not -pollute name space by unnecessary symbols (so I do not crash fellow -programs) and that I should have a clean interface between myself and -midnight. - -Because I'm rather close to midnight, try to: - -* Keep the indentation as the rest of the code. Following could help -you with your friend emacs: - -(defun mc-c-mode () - "C mode with adjusted defaults for use with the Midnight commander." - (interactive) - (c-mode) - (c-set-style "K&R") - (setq c-indent-level 4 - c-continued-statement-offset 4 - c-brace-offset 0 - c-argdecl-indent 4 - c-label-offset -4 - c-brace-imaginary-offset 0 - c-continued-brace-offset 0 - c-tab-always-indent nil - c-basic-offset 4 - tab-width 8 - comment-column 60)) - -(setq auto-mode-alist (cons '(".*/mc/.*\\.[ch]$" . mc-c-mode) - auto-mode-alist)) - -And because I'm trying to live life on my own as libvfs.so, try to: - -* Make sure all exported symbols are defined in vfs.h and begin with -'vfs_'. - -* Do not make any references from midnight into modules like tar. It -would probably pollute name space and midnight would depend on concrete -configuration of libvfs. mc_setctl() and mc_ctl() are your -friends. (And mine too :-). - - Pavel Machek - pavel@ucw.cz - -PS: If you'd like to use my features in whole operating system, you -might want to link me to rpc.nfsd. On -http://atrey.karlin.mff.cuni.cz/~pavel/podfuk/podfuk.html you'll find -how to do it. - -PPS: I have a friend, shared library called avfs, which is LD_PRELOAD -capable. You can reach her at http://www.inf.bme.hu/~mszeredi/avfs. diff --git a/recipes/wip/files/mc/source/lib/vfs/direntry.c b/recipes/wip/files/mc/source/lib/vfs/direntry.c deleted file mode 100644 index ac026f59fe..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/direntry.c +++ /dev/null @@ -1,1735 +0,0 @@ -/* - Directory cache support - - Copyright (C) 1998-2025 - Free Software Foundation, Inc. - - Written by: - Pavel Machek , 1998 - Slava Zanko , 2010-2013 - Andrew Borodin 2010-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - - \warning Paths here do _not_ begin with '/', so root directory of - archive/site is simply "". - */ - -/** \file - * \brief Source: directory cache support - * - * So that you do not have copy of this in each and every filesystem. - * - * Very loosely based on tar.c from midnight and archives.[ch] from - * avfs by Miklos Szeredi (mszeredi@inf.bme.hu) - * - * Unfortunately, I was unable to keep all filesystems - * uniform. tar-like filesystems use tree structure where each - * directory has pointers to its subdirectories. We can do this - * because we have full information about our archive. - * - * At ftp-like filesystems, situation is a little bit different. When - * you cd /usr/src/linux/drivers/char, you do _not_ want /usr, - * /usr/src, /usr/src/linux and /usr/src/linux/drivers to be - * listed. That means that we do not have complete information, and if - * /usr is symlink to /4, we will not know. Also we have to time out - * entries and things would get messy with tree-like approach. So we - * do different trick: root directory is completely special and - * completely fake, it contains entries such as 'usr', 'usr/src', ..., - * and we'll try to use custom find_entry function. - * - * \author Pavel Machek - * \date 1998 - * - */ - -#include - -#include -#include /* uintmax_t */ -#include -#ifdef HAVE_SYS_SELECT_H -#include -#endif -#include -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" /* enable/disable interrupt key */ -#include "lib/util.h" /* canonicalize_pathname_custom() */ -#if 0 -#include "lib/widget.h" /* message() */ -#endif - -#include "vfs.h" -#include "utilvfs.h" -#include "xdirentry.h" -#include "gc.h" /* vfs_rmstamp */ - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#define CALL(x) \ - if (VFS_SUBCLASS (me)->x != NULL) \ - VFS_SUBCLASS (me)->x - -/*** file scope type declarations ****************************************************************/ - -struct dirhandle -{ - GList *cur; - struct vfs_s_inode *dir; -}; - -/*** file scope variables ************************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* We were asked to create entries automagically */ - -static struct vfs_s_entry * -vfs_s_automake (struct vfs_class *me, struct vfs_s_inode *dir, char *path, int flags) -{ - struct vfs_s_entry *res; - char *sep; - - sep = strchr (path, PATH_SEP); - if (sep != NULL) - *sep = '\0'; - - res = vfs_s_generate_entry (me, path, dir, (flags & FL_MKDIR) != 0 ? (0777 | S_IFDIR) : 0777); - vfs_s_insert_entry (me, dir, res); - - if (sep != NULL) - *sep = PATH_SEP; - - return res; -} - -/* --------------------------------------------------------------------------------------------- */ -/* If the entry is a symlink, find the entry for its target */ - -static struct vfs_s_entry * -vfs_s_resolve_symlink (struct vfs_class *me, struct vfs_s_entry *entry, int follow) -{ - char *linkname; - char *fullname = NULL; - struct vfs_s_entry *target; - - if (follow == LINK_NO_FOLLOW) - return entry; - if (follow == 0) - ERRNOR (ELOOP, NULL); - if (entry == NULL) - ERRNOR (ENOENT, NULL); - if (!S_ISLNK (entry->ino->st.st_mode)) - return entry; - - linkname = entry->ino->linkname; - if (linkname == NULL) - ERRNOR (EFAULT, NULL); - - /* make full path from relative */ - if (!IS_PATH_SEP (*linkname)) - { - char *fullpath; - - fullpath = vfs_s_fullpath (me, entry->dir); - if (fullpath != NULL) - { - fullname = g_strconcat (fullpath, PATH_SEP_STR, linkname, (char *) NULL); - linkname = fullname; - g_free (fullpath); - } - } - - target = - VFS_SUBCLASS (me)->find_entry (me, entry->dir->super->root, linkname, follow - 1, FL_NONE); - g_free (fullname); - return target; -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * Follow > 0: follow links, serves as loop protect, - * == -1: do not follow links - */ - -static struct vfs_s_entry * -vfs_s_find_entry_tree (struct vfs_class *me, struct vfs_s_inode *root, - const char *a_path, int follow, int flags) -{ - size_t pseg; - struct vfs_s_entry *ent = NULL; - char *const pathref = g_strdup (a_path); - char *path = pathref; - - /* canonicalize as well, but don't remove '../' from path */ - canonicalize_pathname_custom (path, CANON_PATH_ALL & (~CANON_PATH_REMDOUBLEDOTS)); - - while (root != NULL) - { - GList *iter; - - while (IS_PATH_SEP (*path)) /* Strip leading '/' */ - path++; - - if (path[0] == '\0') - { - g_free (pathref); - return ent; - } - - for (pseg = 0; path[pseg] != '\0' && !IS_PATH_SEP (path[pseg]); pseg++) - ; - - for (iter = g_queue_peek_head_link (root->subdir); iter != NULL; iter = g_list_next (iter)) - { - ent = VFS_ENTRY (iter->data); - if (strlen (ent->name) == pseg && strncmp (ent->name, path, pseg) == 0) - /* FOUND! */ - break; - } - - ent = iter != NULL ? VFS_ENTRY (iter->data) : NULL; - - if (ent == NULL && (flags & (FL_MKFILE | FL_MKDIR)) != 0) - ent = vfs_s_automake (me, root, path, flags); - if (ent == NULL) - { - me->verrno = ENOENT; - goto cleanup; - } - - path += pseg; - /* here we must follow leading directories always; - only the actual file is optional */ - ent = vfs_s_resolve_symlink (me, ent, - strchr (path, PATH_SEP) != NULL ? LINK_FOLLOW : follow); - if (ent == NULL) - goto cleanup; - root = ent->ino; - } - cleanup: - g_free (pathref); - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -static struct vfs_s_entry * -vfs_s_find_entry_linear (struct vfs_class *me, struct vfs_s_inode *root, - const char *a_path, int follow, int flags) -{ - struct vfs_s_entry *ent = NULL; - char *const path = g_strdup (a_path); - GList *iter; - - if (root->super->root != root) - vfs_die ("We have to use _real_ root. Always. Sorry."); - - /* canonicalize as well, but don't remove '../' from path */ - canonicalize_pathname_custom (path, CANON_PATH_ALL & (~CANON_PATH_REMDOUBLEDOTS)); - - if ((flags & FL_DIR) == 0) - { - char *dirname, *name; - struct vfs_s_inode *ino; - - dirname = g_path_get_dirname (path); - name = g_path_get_basename (path); - ino = vfs_s_find_inode (me, root->super, dirname, follow, flags | FL_DIR); - ent = vfs_s_find_entry_tree (me, ino, name, follow, flags); - g_free (dirname); - g_free (name); - g_free (path); - return ent; - } - - iter = g_queue_find_custom (root->subdir, path, (GCompareFunc) vfs_s_entry_compare); - ent = iter != NULL ? VFS_ENTRY (iter->data) : NULL; - - if (ent != NULL && !VFS_SUBCLASS (me)->dir_uptodate (me, ent->ino)) - { -#if 1 - vfs_print_message (_("Directory cache expired for %s"), path); -#endif - vfs_s_free_entry (me, ent); - ent = NULL; - } - - if (ent == NULL) - { - struct vfs_s_inode *ino; - - ino = vfs_s_new_inode (me, root->super, vfs_s_default_stat (me, S_IFDIR | 0755)); - ent = vfs_s_new_entry (me, path, ino); - if (VFS_SUBCLASS (me)->dir_load (me, ino, path) == -1) - { - vfs_s_free_entry (me, ent); - g_free (path); - return NULL; - } - - vfs_s_insert_entry (me, root, ent); - - iter = g_queue_find_custom (root->subdir, path, (GCompareFunc) vfs_s_entry_compare); - ent = iter != NULL ? VFS_ENTRY (iter->data) : NULL; - } - if (ent == NULL) - vfs_die ("find_linear: success but directory is not there\n"); - -#if 0 - if (vfs_s_resolve_symlink (me, ent, follow) == NULL) - { - g_free (path); - return NULL; - } -#endif - g_free (path); - return ent; -} - -/* --------------------------------------------------------------------------------------------- */ -/* Ook, these were functions around directory entries / inodes */ -/* -------------------------------- superblock games -------------------------- */ - -static struct vfs_s_super * -vfs_s_new_super (struct vfs_class *me) -{ - struct vfs_s_super *super; - - super = g_new0 (struct vfs_s_super, 1); - super->me = me; - return super; -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline void -vfs_s_insert_super (struct vfs_class *me, struct vfs_s_super *super) -{ - VFS_SUBCLASS (me)->supers = g_list_prepend (VFS_SUBCLASS (me)->supers, super); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -vfs_s_free_super (struct vfs_class *me, struct vfs_s_super *super) -{ - if (super->root != NULL) - { - vfs_s_free_inode (me, super->root); - super->root = NULL; - } - -#if 0 - /* FIXME: We currently leak small amount of memory, sometimes. Fix it if you can. */ - if (super->ino_usage != 0) - message (D_ERROR, "Direntry warning", - "Super ino_usage is %d, memory leak", super->ino_usage); - - if (super->want_stale) - message (D_ERROR, "Direntry warning", "%s", "Super has want_stale set"); -#endif - - VFS_SUBCLASS (me)->supers = g_list_remove (VFS_SUBCLASS (me)->supers, super); - - CALL (free_archive) (me, super); -#ifdef ENABLE_VFS_NET - vfs_path_element_free (super->path_element); -#endif - g_free (super->name); - g_free (super); -} - -/* --------------------------------------------------------------------------------------------- */ - -static vfs_file_handler_t * -vfs_s_new_fh (struct vfs_s_inode *ino, gboolean changed) -{ - vfs_file_handler_t *fh; - - fh = g_new0 (vfs_file_handler_t, 1); - vfs_s_init_fh (fh, ino, changed); - - return fh; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -vfs_s_free_fh (struct vfs_s_subclass *s, vfs_file_handler_t *fh) -{ - if (s->fh_free != NULL) - s->fh_free (fh); - - g_free (fh); -} - -/* --------------------------------------------------------------------------------------------- */ -/* Support of archives */ -/* ------------------------ readdir & friends ----------------------------- */ - -static struct vfs_s_inode * -vfs_s_inode_from_path (const vfs_path_t *vpath, int flags) -{ - struct vfs_s_super *super; - struct vfs_s_inode *ino; - const char *q; - struct vfs_class *me; - - q = vfs_s_get_path (vpath, &super, 0); - if (q == NULL) - return NULL; - - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); - - ino = - vfs_s_find_inode (me, super, q, - (flags & FL_FOLLOW) != 0 ? LINK_FOLLOW : LINK_NO_FOLLOW, - flags & ~FL_FOLLOW); - if (ino == NULL && *q == '\0') - /* We are asking about / directory of ftp server: assume it exists */ - ino = - vfs_s_find_inode (me, super, q, - (flags & FL_FOLLOW) != 0 ? LINK_FOLLOW : LINK_NO_FOLLOW, - FL_DIR | (flags & ~FL_FOLLOW)); - return ino; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void * -vfs_s_opendir (const vfs_path_t *vpath) -{ - struct vfs_s_inode *dir; - struct dirhandle *info; - struct vfs_class *me; - - dir = vfs_s_inode_from_path (vpath, FL_DIR | FL_FOLLOW); - if (dir == NULL) - return NULL; - - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); - - if (!S_ISDIR (dir->st.st_mode)) - { - me->verrno = ENOTDIR; - return NULL; - } - - dir->st.st_nlink++; -#if 0 - if (dir->subdir == NULL) /* This can actually happen if we allow empty directories */ - { - me->verrno = EAGAIN; - return NULL; - } -#endif - info = g_new (struct dirhandle, 1); - info->cur = g_queue_peek_head_link (dir->subdir); - info->dir = dir; - - return info; -} - -/* --------------------------------------------------------------------------------------------- */ - -static struct vfs_dirent * -vfs_s_readdir (void *data) -{ - struct vfs_dirent *dir = NULL; - struct dirhandle *info = (struct dirhandle *) data; - const char *name; - - if (info->cur == NULL || info->cur->data == NULL) - return NULL; - - name = VFS_ENTRY (info->cur->data)->name; - if (name != NULL) - dir = vfs_dirent_init (NULL, name, 0); - else - vfs_die ("Null in structure-cannot happen"); - - info->cur = g_list_next (info->cur); - - return dir; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -vfs_s_closedir (void *data) -{ - struct dirhandle *info = (struct dirhandle *) data; - struct vfs_s_inode *dir = info->dir; - - vfs_s_free_inode (dir->super->me, dir); - g_free (data); - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -vfs_s_chdir (const vfs_path_t *vpath) -{ - void *data; - - data = vfs_s_opendir (vpath); - if (data == NULL) - return (-1); - vfs_s_closedir (data); - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ -/* --------------------------- stat and friends ---------------------------- */ - -static int -vfs_s_internal_stat (const vfs_path_t *vpath, struct stat *buf, int flag) -{ - struct vfs_s_inode *ino; - - ino = vfs_s_inode_from_path (vpath, flag); - if (ino == NULL) - return (-1); - *buf = ino->st; - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -vfs_s_readlink (const vfs_path_t *vpath, char *buf, size_t size) -{ - struct vfs_s_inode *ino; - size_t len; - struct vfs_class *me; - - ino = vfs_s_inode_from_path (vpath, 0); - if (ino == NULL) - return (-1); - - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); - - if (!S_ISLNK (ino->st.st_mode)) - { - me->verrno = EINVAL; - return (-1); - } - - if (ino->linkname == NULL) - { - me->verrno = EFAULT; - return (-1); - } - - len = strlen (ino->linkname); - if (size < len) - len = size; - /* readlink() does not append a NUL character to buf */ - memcpy (buf, ino->linkname, len); - return len; -} - -/* --------------------------------------------------------------------------------------------- */ - -static ssize_t -vfs_s_read (void *fh, char *buffer, size_t count) -{ - vfs_file_handler_t *file = VFS_FILE_HANDLER (fh); - struct vfs_class *me = VFS_FILE_HANDLER_SUPER (fh)->me; - - if (file->linear == LS_LINEAR_PREOPEN) - if (VFS_SUBCLASS (me)->linear_start (me, file, file->pos) == 0) - return (-1); - - if (file->linear == LS_LINEAR_CLOSED) - vfs_die ("linear_start() did not set linear_state!"); - - if (file->linear == LS_LINEAR_OPEN) - return VFS_SUBCLASS (me)->linear_read (me, file, buffer, count); - - if (file->handle != -1) - { - ssize_t n; - - n = read (file->handle, buffer, count); - if (n < 0) - me->verrno = errno; - return n; - } - vfs_die ("vfs_s_read: This should not happen\n"); - return (-1); -} - -/* --------------------------------------------------------------------------------------------- */ - -static ssize_t -vfs_s_write (void *fh, const char *buffer, size_t count) -{ - vfs_file_handler_t *file = VFS_FILE_HANDLER (fh); - struct vfs_class *me = VFS_FILE_HANDLER_SUPER (fh)->me; - - if (file->linear != LS_NOT_LINEAR) - vfs_die ("no writing to linear files, please"); - - file->changed = TRUE; - if (file->handle != -1) - { - ssize_t n; - - n = write (file->handle, buffer, count); - if (n < 0) - me->verrno = errno; - return n; - } - vfs_die ("vfs_s_write: This should not happen\n"); - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static off_t -vfs_s_lseek (void *fh, off_t offset, int whence) -{ - vfs_file_handler_t *file = VFS_FILE_HANDLER (fh); - off_t size = file->ino->st.st_size; - - if (file->linear == LS_LINEAR_OPEN) - vfs_die ("cannot lseek() after linear_read!"); - - if (file->handle != -1) - { /* If we have local file opened, we want to work with it */ - off_t retval; - - retval = lseek (file->handle, offset, whence); - if (retval == -1) - VFS_FILE_HANDLER_SUPER (fh)->me->verrno = errno; - return retval; - } - - switch (whence) - { - case SEEK_CUR: - offset += file->pos; - break; - case SEEK_END: - offset += size; - break; - default: - break; - } - if (offset < 0) - file->pos = 0; - else if (offset < size) - file->pos = offset; - else - file->pos = size; - return file->pos; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -vfs_s_close (void *fh) -{ - vfs_file_handler_t *file = VFS_FILE_HANDLER (fh); - struct vfs_s_super *super = VFS_FILE_HANDLER_SUPER (fh); - struct vfs_class *me = super->me; - struct vfs_s_subclass *sub = VFS_SUBCLASS (me); - int res = 0; - - if (me == NULL) - return (-1); - - super->fd_usage--; - if (super->fd_usage == 0) - vfs_stamp_create (me, VFS_FILE_HANDLER_SUPER (fh)); - - if (file->linear == LS_LINEAR_OPEN) - sub->linear_close (me, fh); - if (sub->fh_close != NULL) - res = sub->fh_close (me, fh); - if ((me->flags & VFSF_USETMP) != 0 && file->changed && sub->file_store != NULL) - { - char *s; - - s = vfs_s_fullpath (me, file->ino); - - if (s == NULL) - res = -1; - else - { - res = sub->file_store (me, fh, s, file->ino->localname); - g_free (s); - } - vfs_s_invalidate (me, super); - } - - if (file->handle != -1) - { - close (file->handle); - file->handle = -1; - } - - vfs_s_free_inode (me, file->ino); - vfs_s_free_fh (sub, fh); - - return res; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -vfs_s_print_stats (const char *fs_name, const char *action, - const char *file_name, off_t have, off_t need) -{ - if (need != 0) - vfs_print_message (_("%s: %s: %s %3d%% (%lld) bytes transferred"), fs_name, action, - file_name, (int) ((double) have * 100 / need), (long long) have); - else - vfs_print_message (_("%s: %s: %s %lld bytes transferred"), fs_name, action, file_name, - (long long) have); -} - -/* --------------------------------------------------------------------------------------------- */ -/* ------------------------------- mc support ---------------------------- */ - -static void -vfs_s_fill_names (struct vfs_class *me, fill_names_f func) -{ - GList *iter; - - for (iter = VFS_SUBCLASS (me)->supers; iter != NULL; iter = g_list_next (iter)) - { - const struct vfs_s_super *super = (const struct vfs_s_super *) iter->data; - char *name; - - name = g_strconcat (super->name, PATH_SEP_STR, me->prefix, VFS_PATH_URL_DELIMITER, - /* super->current_dir->name, */ (char *) NULL); - func (name); - g_free (name); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -vfs_s_ferrno (struct vfs_class *me) -{ - return me->verrno; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Get local copy of the given file. We reuse the existing file cache - * for remote filesystems. Archives use standard VFS facilities. - */ - -static vfs_path_t * -vfs_s_getlocalcopy (const vfs_path_t *vpath) -{ - vfs_file_handler_t *fh; - vfs_path_t *local = NULL; - - if (vpath == NULL) - return NULL; - - fh = vfs_s_open (vpath, O_RDONLY, 0); - - if (fh != NULL) - { - const struct vfs_class *me; - - me = vfs_path_get_last_path_vfs (vpath); - if ((me->flags & VFSF_USETMP) != 0 && fh->ino != NULL) - local = vfs_path_from_str_flags (fh->ino->localname, VPF_NO_CANON); - - vfs_s_close (fh); - } - - return local; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Return the local copy. Since we are using our cache, we do nothing - - * the cache will be removed when the archive is closed. - */ - -static int -vfs_s_ungetlocalcopy (const vfs_path_t *vpath, const vfs_path_t *local, gboolean has_changed) -{ - (void) vpath; - (void) local; - (void) has_changed; - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -vfs_s_setctl (const vfs_path_t *vpath, int ctlop, void *arg) -{ - struct vfs_class *me; - - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); - - switch (ctlop) - { - case VFS_SETCTL_STALE_DATA: - { - struct vfs_s_inode *ino; - - ino = vfs_s_inode_from_path (vpath, 0); - if (ino == NULL) - return 0; - if (arg != NULL) - ino->super->want_stale = TRUE; - else - { - ino->super->want_stale = FALSE; - vfs_s_invalidate (me, ino->super); - } - return 1; - } - case VFS_SETCTL_LOGFILE: - me->logfile = fopen ((char *) arg, "w"); - return 1; - case VFS_SETCTL_FLUSH: - me->flush = TRUE; - return 1; - default: - return 0; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/* ----------------------------- Stamping support -------------------------- */ - -static vfsid -vfs_s_getid (const vfs_path_t *vpath) -{ - struct vfs_s_super *archive = NULL; - const char *p; - - p = vfs_s_get_path (vpath, &archive, FL_NO_OPEN); - return (p == NULL ? NULL : (vfsid) archive); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -vfs_s_nothingisopen (vfsid id) -{ - return (VFS_SUPER (id)->fd_usage <= 0); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -vfs_s_free (vfsid id) -{ - vfs_s_free_super (VFS_SUPER (id)->me, VFS_SUPER (id)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -vfs_s_dir_uptodate (struct vfs_class *me, struct vfs_s_inode *ino) -{ - gint64 tim; - - if (me->flush) - { - me->flush = FALSE; - return 0; - } - - tim = g_get_monotonic_time (); - - return (tim < ino->timestamp); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -struct vfs_s_inode * -vfs_s_new_inode (struct vfs_class *me, struct vfs_s_super *super, struct stat *initstat) -{ - struct vfs_s_inode *ino; - - ino = g_try_new0 (struct vfs_s_inode, 1); - if (ino == NULL) - return NULL; - - if (initstat != NULL) - ino->st = *initstat; - ino->super = super; - ino->subdir = g_queue_new (); - ino->st.st_nlink = 0; - ino->st.st_ino = VFS_SUBCLASS (me)->inode_counter++; - ino->st.st_dev = VFS_SUBCLASS (me)->rdev; - - super->ino_usage++; - - CALL (init_inode) (me, ino); - - return ino; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_s_free_inode (struct vfs_class *me, struct vfs_s_inode *ino) -{ - if (ino == NULL) - vfs_die ("Don't pass NULL to me"); - - /* ==0 can happen if freshly created entry is deleted */ - if (ino->st.st_nlink > 1) - { - ino->st.st_nlink--; - return; - } - - while (g_queue_get_length (ino->subdir) != 0) - { - struct vfs_s_entry *entry; - - entry = VFS_ENTRY (g_queue_peek_head (ino->subdir)); - vfs_s_free_entry (me, entry); - } - - g_queue_free (ino->subdir); - ino->subdir = NULL; - - CALL (free_inode) (me, ino); - g_free (ino->linkname); - if ((me->flags & VFSF_USETMP) != 0 && ino->localname != NULL) - { - unlink (ino->localname); - g_free (ino->localname); - } - ino->super->ino_usage--; - g_free (ino); -} - -/* --------------------------------------------------------------------------------------------- */ - -struct vfs_s_entry * -vfs_s_new_entry (struct vfs_class *me, const char *name, struct vfs_s_inode *inode) -{ - struct vfs_s_entry *entry; - - entry = g_new0 (struct vfs_s_entry, 1); - - entry->name = g_strdup (name); - entry->ino = inode; - entry->ino->ent = entry; - CALL (init_entry) (me, entry); - - return entry; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_s_free_entry (struct vfs_class *me, struct vfs_s_entry *ent) -{ - if (ent->dir != NULL) - g_queue_remove (ent->dir->subdir, ent); - - MC_PTR_FREE (ent->name); - - if (ent->ino != NULL) - { - ent->ino->ent = NULL; - vfs_s_free_inode (me, ent->ino); - } - - g_free (ent); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_s_insert_entry (struct vfs_class *me, struct vfs_s_inode *dir, struct vfs_s_entry *ent) -{ - (void) me; - - ent->dir = dir; - - ent->ino->st.st_nlink++; - g_queue_push_tail (dir->subdir, ent); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_s_entry_compare (const void *a, const void *b) -{ - const struct vfs_s_entry *e = (const struct vfs_s_entry *) a; - const char *name = (const char *) b; - - return strcmp (e->name, name); -} - -/* --------------------------------------------------------------------------------------------- */ - -struct stat * -vfs_s_default_stat (struct vfs_class *me, mode_t mode) -{ - static struct stat st; - mode_t myumask; - - (void) me; - - myumask = umask (022); - umask (myumask); - mode &= ~myumask; - - st.st_mode = mode; - st.st_ino = 0; - st.st_dev = 0; -#ifdef HAVE_STRUCT_STAT_ST_RDEV - st.st_rdev = 0; -#endif - st.st_uid = getuid (); - st.st_gid = getgid (); -#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE - st.st_blksize = 512; -#endif - st.st_size = 0; - - vfs_zero_stat_times (&st); - - vfs_adjust_stat (&st); - - return &st; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Calculate number of st_blocks using st_size and st_blksize. - * In according to stat(2), st_blocks is the size in 512-byte units. - * - * @param s stat info - */ - -void -vfs_adjust_stat (struct stat *s) -{ -#ifdef HAVE_STRUCT_STAT_ST_BLOCKS - if (s->st_size == 0) - s->st_blocks = 0; - else - { -#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE - blkcnt_t ioblocks; - blksize_t ioblock_size; - - /* 1. Calculate how many IO blocks are occupied */ - ioblocks = 1 + (s->st_size - 1) / s->st_blksize; - /* 2. Calculate size of st_blksize in 512-byte units */ - ioblock_size = 1 + (s->st_blksize - 1) / 512; - /* 3. Calculate number of blocks */ - s->st_blocks = ioblocks * ioblock_size; -#else - /* Let IO block size is 512 bytes */ - s->st_blocks = 1 + (s->st_size - 1) / 512; -#endif /* HAVE_STRUCT_STAT_ST_BLKSIZE */ - } -#endif /* HAVE_STRUCT_STAT_ST_BLOCKS */ -} - -/* --------------------------------------------------------------------------------------------- */ - -struct vfs_s_entry * -vfs_s_generate_entry (struct vfs_class *me, const char *name, struct vfs_s_inode *parent, - mode_t mode) -{ - struct vfs_s_inode *inode; - struct stat *st; - - st = vfs_s_default_stat (me, mode); - inode = vfs_s_new_inode (me, parent->super, st); - - return vfs_s_new_entry (me, name, inode); -} - -/* --------------------------------------------------------------------------------------------- */ - -struct vfs_s_inode * -vfs_s_find_inode (struct vfs_class *me, const struct vfs_s_super *super, - const char *path, int follow, int flags) -{ - struct vfs_s_entry *ent; - - if (((me->flags & VFSF_REMOTE) == 0) && (*path == '\0')) - return super->root; - - ent = VFS_SUBCLASS (me)->find_entry (me, super->root, path, follow, flags); - return (ent != NULL ? ent->ino : NULL); -} - -/* --------------------------------------------------------------------------------------------- */ -/* Ook, these were functions around directory entries / inodes */ -/* -------------------------------- superblock games -------------------------- */ -/** - * get superlock object by vpath - * - * @param vpath path - * @return superlock object or NULL if not found - */ - -struct vfs_s_super * -vfs_get_super_by_vpath (const vfs_path_t *vpath) -{ - GList *iter; - void *cookie = NULL; - const vfs_path_element_t *path_element; - struct vfs_s_subclass *subclass; - struct vfs_s_super *super = NULL; - vfs_path_t *vpath_archive; - - path_element = vfs_path_get_by_index (vpath, -1); - subclass = VFS_SUBCLASS (path_element->class); - - vpath_archive = vfs_path_clone (vpath); - vfs_path_remove_element_by_index (vpath_archive, -1); - - if (subclass->archive_check != NULL) - { - cookie = subclass->archive_check (vpath_archive); - if (cookie == NULL) - goto ret; - } - - if (subclass->archive_same == NULL) - goto ret; - - for (iter = subclass->supers; iter != NULL; iter = g_list_next (iter)) - { - int i; - - super = VFS_SUPER (iter->data); - - /* 0 == other, 1 == same, return it, 2 == other but stop scanning */ - i = subclass->archive_same (path_element, super, vpath_archive, cookie); - if (i == 1) - goto ret; - if (i != 0) - break; - - super = NULL; - } - - ret: - vfs_path_free (vpath_archive, TRUE); - return super; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * get path from last VFS-element and create corresponding superblock - * - * @param vpath source path object - * @param archive pointer to object for store newly created superblock - * @param flags flags - * - * @return path from last VFS-element - */ -const char * -vfs_s_get_path (const vfs_path_t *vpath, struct vfs_s_super **archive, int flags) -{ - const char *retval = ""; - int result = -1; - struct vfs_s_super *super; - const vfs_path_element_t *path_element; - struct vfs_s_subclass *subclass; - - path_element = vfs_path_get_by_index (vpath, -1); - - if (path_element->path != NULL) - retval = path_element->path; - - super = vfs_get_super_by_vpath (vpath); - if (super != NULL) - goto return_success; - - if ((flags & FL_NO_OPEN) != 0) - { - path_element->class->verrno = EIO; - return NULL; - } - - subclass = VFS_SUBCLASS (path_element->class); - - super = subclass->new_archive != NULL ? - subclass->new_archive (path_element->class) : vfs_s_new_super (path_element->class); - - if (subclass->open_archive != NULL) - { - vfs_path_t *vpath_archive; - - vpath_archive = vfs_path_clone (vpath); - vfs_path_remove_element_by_index (vpath_archive, -1); - - result = subclass->open_archive (super, vpath_archive, path_element); - vfs_path_free (vpath_archive, TRUE); - } - if (result == -1) - { - vfs_s_free_super (path_element->class, super); - path_element->class->verrno = EIO; - return NULL; - } - if (super->name == NULL) - vfs_die ("You have to fill name\n"); - if (super->root == NULL) - vfs_die ("You have to fill root inode\n"); - - vfs_s_insert_super (path_element->class, super); - vfs_stamp_create (path_element->class, super); - - return_success: - *archive = super; - return retval; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_s_invalidate (struct vfs_class *me, struct vfs_s_super *super) -{ - if (!super->want_stale) - { - vfs_s_free_inode (me, super->root); - super->root = vfs_s_new_inode (me, super, vfs_s_default_stat (me, S_IFDIR | 0755)); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -vfs_s_fullpath (struct vfs_class *me, struct vfs_s_inode *ino) -{ - if (ino->ent == NULL) - ERRNOR (EAGAIN, NULL); - - if ((me->flags & VFSF_USETMP) == 0) - { - /* archives */ - char *path; - - path = g_strdup (ino->ent->name); - - while (TRUE) - { - char *newpath; - - ino = ino->ent->dir; - if (ino == ino->super->root) - break; - - newpath = g_strconcat (ino->ent->name, PATH_SEP_STR, path, (char *) NULL); - g_free (path); - path = newpath; - } - return path; - } - - /* remote systems */ - if (ino->ent->dir == NULL || ino->ent->dir->ent == NULL) - return g_strdup (ino->ent->name); - - return g_strconcat (ino->ent->dir->ent->name, PATH_SEP_STR, ino->ent->name, (char *) NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_s_init_fh (vfs_file_handler_t *fh, struct vfs_s_inode *ino, gboolean changed) -{ - fh->ino = ino; - fh->handle = -1; - fh->changed = changed; - fh->linear = LS_NOT_LINEAR; -} - -/* --------------------------------------------------------------------------------------------- */ -/* --------------------------- stat and friends ---------------------------- */ - -void * -vfs_s_open (const vfs_path_t *vpath, int flags, mode_t mode) -{ - gboolean was_changed = FALSE; - vfs_file_handler_t *fh; - struct vfs_s_super *super; - const char *q; - struct vfs_s_inode *ino; - struct vfs_class *me; - struct vfs_s_subclass *s; - - q = vfs_s_get_path (vpath, &super, 0); - if (q == NULL) - return NULL; - - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); - - ino = vfs_s_find_inode (me, super, q, LINK_FOLLOW, FL_NONE); - if (ino != NULL && (flags & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL)) - { - me->verrno = EEXIST; - return NULL; - } - - s = VFS_SUBCLASS (me); - - if (ino == NULL) - { - char *name; - struct vfs_s_entry *ent; - struct vfs_s_inode *dir; - - /* If the filesystem is read-only, disable file creation */ - if ((flags & O_CREAT) == 0 || me->write == NULL) - return NULL; - - name = g_path_get_dirname (q); - dir = vfs_s_find_inode (me, super, name, LINK_FOLLOW, FL_DIR); - g_free (name); - if (dir == NULL) - return NULL; - - name = g_path_get_basename (q); - ent = vfs_s_generate_entry (me, name, dir, 0755); - ino = ent->ino; - vfs_s_insert_entry (me, dir, ent); - if ((VFS_CLASS (s)->flags & VFSF_USETMP) != 0) - { - int tmp_handle; - vfs_path_t *tmp_vpath; - - tmp_handle = vfs_mkstemps (&tmp_vpath, me->name, name); - ino->localname = vfs_path_free (tmp_vpath, FALSE); - if (tmp_handle == -1) - { - g_free (name); - return NULL; - } - - close (tmp_handle); - } - - g_free (name); - was_changed = TRUE; - } - - if (S_ISDIR (ino->st.st_mode)) - { - me->verrno = EISDIR; - return NULL; - } - - fh = s->fh_new != NULL ? s->fh_new (ino, was_changed) : vfs_s_new_fh (ino, was_changed); - - if (IS_LINEAR (flags)) - { - if (s->linear_start != NULL) - { - vfs_print_message ("%s", _("Starting linear transfer...")); - fh->linear = LS_LINEAR_PREOPEN; - } - } - else - { - if (s->fh_open != NULL && s->fh_open (me, fh, flags, mode) != 0) - { - vfs_s_free_fh (s, fh); - return NULL; - } - } - - if ((VFS_CLASS (s)->flags & VFSF_USETMP) != 0 && fh->ino->localname != NULL) - { - fh->handle = open (fh->ino->localname, NO_LINEAR (flags), mode); - if (fh->handle == -1) - { - vfs_s_free_fh (s, fh); - me->verrno = errno; - return NULL; - } - } - - /* i.e. we had no open files and now we have one */ - vfs_rmstamp (me, (vfsid) super); - super->fd_usage++; - fh->ino->st.st_nlink++; - return fh; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_s_stat (const vfs_path_t *vpath, struct stat *buf) -{ - return vfs_s_internal_stat (vpath, buf, FL_FOLLOW); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_s_lstat (const vfs_path_t *vpath, struct stat *buf) -{ - return vfs_s_internal_stat (vpath, buf, FL_NONE); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_s_fstat (void *fh, struct stat *buf) -{ - *buf = VFS_FILE_HANDLER (fh)->ino->st; - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_s_retrieve_file (struct vfs_class *me, struct vfs_s_inode *ino) -{ - /* If you want reget, you'll have to open file with O_LINEAR */ - off_t total = 0; - char buffer[BUF_8K]; - int handle; - ssize_t n; - off_t stat_size = ino->st.st_size; - vfs_file_handler_t *fh = NULL; - vfs_path_t *tmp_vpath; - struct vfs_s_subclass *s = VFS_SUBCLASS (me); - - if ((me->flags & VFSF_USETMP) == 0) - return (-1); - - handle = vfs_mkstemps (&tmp_vpath, me->name, ino->ent->name); - ino->localname = vfs_path_free (tmp_vpath, FALSE); - if (handle == -1) - { - me->verrno = errno; - goto error_4; - } - - fh = s->fh_new != NULL ? s->fh_new (ino, FALSE) : vfs_s_new_fh (ino, FALSE); - - if (s->linear_start (me, fh, 0) == 0) - goto error_3; - - /* Clear the interrupt status */ - tty_got_interrupt (); - tty_enable_interrupt_key (); - - while ((n = s->linear_read (me, fh, buffer, sizeof (buffer))) != 0) - { - int t; - - if (n < 0) - goto error_1; - - total += n; - vfs_s_print_stats (me->name, _("Getting file"), ino->ent->name, total, stat_size); - - if (tty_got_interrupt ()) - goto error_1; - - t = write (handle, buffer, n); - if (t != n) - { - if (t == -1) - me->verrno = errno; - goto error_1; - } - } - s->linear_close (me, fh); - close (handle); - - tty_disable_interrupt_key (); - vfs_s_free_fh (s, fh); - return 0; - - error_1: - s->linear_close (me, fh); - error_3: - tty_disable_interrupt_key (); - close (handle); - unlink (ino->localname); - error_4: - MC_PTR_FREE (ino->localname); - if (fh != NULL) - vfs_s_free_fh (s, fh); - return (-1); -} - -/* --------------------------------------------------------------------------------------------- */ -/* ----------------------------- Stamping support -------------------------- */ - -/* Initialize one of our subclasses - fill common functions */ -void -vfs_init_class (struct vfs_class *vclass, const char *name, vfs_flags_t flags, const char *prefix) -{ - memset (vclass, 0, sizeof (struct vfs_class)); - - vclass->name = name; - vclass->flags = flags; - vclass->prefix = prefix; - - vclass->fill_names = vfs_s_fill_names; - vclass->open = vfs_s_open; - vclass->close = vfs_s_close; - vclass->read = vfs_s_read; - if ((vclass->flags & VFSF_READONLY) == 0) - vclass->write = vfs_s_write; - vclass->opendir = vfs_s_opendir; - vclass->readdir = vfs_s_readdir; - vclass->closedir = vfs_s_closedir; - vclass->stat = vfs_s_stat; - vclass->lstat = vfs_s_lstat; - vclass->fstat = vfs_s_fstat; - vclass->readlink = vfs_s_readlink; - vclass->chdir = vfs_s_chdir; - vclass->ferrno = vfs_s_ferrno; - vclass->lseek = vfs_s_lseek; - vclass->getid = vfs_s_getid; - vclass->nothingisopen = vfs_s_nothingisopen; - vclass->free = vfs_s_free; - vclass->setctl = vfs_s_setctl; - if ((vclass->flags & VFSF_USETMP) != 0) - { - vclass->getlocalcopy = vfs_s_getlocalcopy; - vclass->ungetlocalcopy = vfs_s_ungetlocalcopy; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_init_subclass (struct vfs_s_subclass *sub, const char *name, vfs_flags_t flags, - const char *prefix) -{ - struct vfs_class *vclass = VFS_CLASS (sub); - size_t len; - char *start; - - vfs_init_class (vclass, name, flags, prefix); - - len = sizeof (struct vfs_s_subclass) - sizeof (struct vfs_class); - start = (char *) sub + sizeof (struct vfs_class); - memset (start, 0, len); - - if ((vclass->flags & VFSF_USETMP) != 0) - sub->find_entry = vfs_s_find_entry_linear; - else if ((vclass->flags & VFSF_REMOTE) != 0) - sub->find_entry = vfs_s_find_entry_linear; - else - sub->find_entry = vfs_s_find_entry_tree; - sub->dir_uptodate = vfs_s_dir_uptodate; -} - -/* --------------------------------------------------------------------------------------------- */ -/** Find VFS id for given directory name */ - -vfsid -vfs_getid (const vfs_path_t *vpath) -{ - const struct vfs_class *me; - - me = vfs_path_get_last_path_vfs (vpath); - if (me == NULL || me->getid == NULL) - return NULL; - - return me->getid (vpath); -} - -/* --------------------------------------------------------------------------------------------- */ -/* ----------- Utility functions for networked filesystems -------------- */ - -#ifdef ENABLE_VFS_NET -int -vfs_s_select_on_two (int fd1, int fd2) -{ - struct timeval time_out = { - .tv_sec = 1, - .tv_usec = 0 - }; - fd_set set; - int maxfd; - int v; - - maxfd = MAX (fd1, fd2) + 1; - - FD_ZERO (&set); - FD_SET (fd1, &set); - FD_SET (fd2, &set); - - v = select (maxfd, &set, 0, 0, &time_out); - if (v <= 0) - return v; - if (FD_ISSET (fd1, &set)) - return 1; - if (FD_ISSET (fd2, &set)) - return 2; - return (-1); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_s_get_line (struct vfs_class *me, int sock, char *buf, int buf_len, char term) -{ - FILE *logfile = me->logfile; - int i; - char c; - - for (i = 0; i < buf_len - 1; i++, buf++) - { - if (read (sock, buf, sizeof (char)) <= 0) - return 0; - - if (logfile != NULL) - { - size_t ret1; - int ret2; - - ret1 = fwrite (buf, 1, 1, logfile); - ret2 = fflush (logfile); - (void) ret1; - (void) ret2; - } - - if (*buf == term) - { - *buf = '\0'; - return 1; - } - } - - /* Line is too long - terminate buffer and discard the rest of line */ - *buf = '\0'; - while (read (sock, &c, sizeof (c)) > 0) - { - if (logfile != NULL) - { - size_t ret1; - int ret2; - - ret1 = fwrite (&c, 1, 1, logfile); - ret2 = fflush (logfile); - (void) ret1; - (void) ret2; - } - if (c == '\n') - return 1; - } - return 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_s_get_line_interruptible (struct vfs_class *me, char *buffer, int size, int fd) -{ - int i; - int res = 0; - - (void) me; - - tty_enable_interrupt_key (); - - for (i = 0; i < size - 1; i++) - { - ssize_t n; - - n = read (fd, &buffer[i], 1); - if (n == -1 && errno == EINTR) - { - buffer[i] = '\0'; - res = EINTR; - goto ret; - } - if (n == 0) - { - buffer[i] = '\0'; - goto ret; - } - if (buffer[i] == '\n') - { - buffer[i] = '\0'; - res = 1; - goto ret; - } - } - - buffer[size - 1] = '\0'; - - ret: - tty_disable_interrupt_key (); - - return res; -} -#endif /* ENABLE_VFS_NET */ - -/* --------------------------------------------------------------------------------------------- */ -/** - * Normalize filenames start position - */ - -void -vfs_s_normalize_filename_leading_spaces (struct vfs_s_inode *root_inode, size_t final_num_spaces) -{ - GList *iter; - - for (iter = g_queue_peek_head_link (root_inode->subdir); iter != NULL; - iter = g_list_next (iter)) - { - struct vfs_s_entry *entry = VFS_ENTRY (iter->data); - - if ((size_t) entry->leading_spaces > final_num_spaces) - { - char *source_name, *spacer; - - source_name = entry->name; - spacer = g_strnfill ((size_t) entry->leading_spaces - final_num_spaces, ' '); - entry->name = g_strconcat (spacer, source_name, (char *) NULL); - g_free (spacer); - g_free (source_name); - } - - entry->leading_spaces = -1; - } -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/vfs/gc.c b/recipes/wip/files/mc/source/lib/vfs/gc.c deleted file mode 100644 index f945c3331c..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/gc.c +++ /dev/null @@ -1,335 +0,0 @@ -/* - Virtual File System garbage collection code - - Copyright (C) 2003-2025 - Free Software Foundation, Inc. - - Written by: - Miguel de Icaza, 1995 - Jakub Jelinek, 1995 - Pavel Machek, 1998 - Pavel Roskin, 2003 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** - * \file - * \brief Source: Virtual File System: garbage collection code - * \author Miguel de Icaza - * \author Jakub Jelinek - * \author Pavel Machek - * \author Pavel Roskin - * \date 1995, 1998, 2003 - */ - - -#include - -#include - -#include "lib/global.h" -#include "lib/event.h" -#include "lib/util.h" /* MC_PTR_FREE */ - -#include "vfs.h" -#include "utilvfs.h" - -#include "gc.h" - -/* - * The garbage collection mechanism is based on "stamps". - * - * A stamp is a record that says "I'm a filesystem which is no longer in - * use. Free me when you get a chance." - * - * This file contains a set of functions used for managing this stamp. You - * should use them when you write your own filesystem. Here are some rules - * of thumb: - * - * (1) When the last open file in your filesystem gets closed, conditionally - * create a stamp. You do this with vfs_stamp_create(). (The meaning - * of "conditionally" is explained below.) - * - * (2) When a file in your filesystem is opened, delete the stamp. You do - * this with vfs_rmstamp(). - * - * (3) When a path inside your filesystem is invoked, call vfs_stamp() to - * postpone the free'ing of your filesystem a bit. (This simply updates - * a timestamp variable inside the stamp.) - * - * Additionally, when a user navigates to a new directory in a panel (or a - * programmer uses mc_chdir()), a stamp is conditionally created for the - * previous directory's filesystem. This ensures that that filesystem is - * free'ed. (see: _do_panel_cd() -> vfs_release_path(); mc_chdir()). - * - * We've spoken here of "conditionally creating" a stamp. What we mean is - * that vfs_stamp_create() is to be used: this function creates a stamp - * only if no directories are open (aka "active") in your filesystem. (If - * there _are_ directories open, it means that the filesystem is in use, in - * which case we don't want to free it.) - */ - -/*** global variables ****************************************************************************/ - -int vfs_timeout = 60; /* VFS timeout in seconds */ - -/*** file scope macro definitions ****************************************************************/ - -#define VFS_STAMPING(a) ((struct vfs_stamping *)(a)) - -/*** file scope type declarations ****************************************************************/ - -struct vfs_stamping -{ - struct vfs_class *v; - vfsid id; - gint64 time; -}; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static GSList *stamps = NULL; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static gint -vfs_stamp_compare (gconstpointer a, gconstpointer b) -{ - const struct vfs_stamping *vsa = (const struct vfs_stamping *) a; - const struct vfs_stamping *vsb = (const struct vfs_stamping *) b; - - return (vsa == NULL || vsb == NULL || (vsa->v == vsb->v && vsa->id == vsb->id)) ? 0 : 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -vfs_addstamp (struct vfs_class *v, vfsid id) -{ - if ((v->flags & VFSF_LOCAL) == 0 && id != NULL && !vfs_stamp (v, id)) - { - struct vfs_stamping *stamp; - - stamp = g_new (struct vfs_stamping, 1); - stamp->v = v; - stamp->id = id; - stamp->time = g_get_monotonic_time (); - - stamps = g_slist_append (stamps, stamp); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -gboolean -vfs_stamp (struct vfs_class *v, vfsid id) -{ - struct vfs_stamping what = { - .v = v, - .id = id - }; - GSList *stamp; - gboolean ret = FALSE; - - stamp = g_slist_find_custom (stamps, &what, vfs_stamp_compare); - if (stamp != NULL && stamp->data != NULL) - { - VFS_STAMPING (stamp->data)->time = g_get_monotonic_time (); - ret = TRUE; - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_rmstamp (struct vfs_class *v, vfsid id) -{ - struct vfs_stamping what = { - .v = v, - .id = id - }; - GSList *stamp; - - stamp = g_slist_find_custom (stamps, &what, vfs_stamp_compare); - if (stamp != NULL) - { - g_free (stamp->data); - stamps = g_slist_delete_link (stamps, stamp); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_stamp_path (const vfs_path_t *vpath) -{ - vfsid id; - struct vfs_class *me; - - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); - id = vfs_getid (vpath); - vfs_addstamp (me, id); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Create a new timestamp item by VFS class and VFS id. - */ - -void -vfs_stamp_create (struct vfs_class *vclass, vfsid id) -{ - vfsid nvfsid; - - ev_vfs_stamp_create_t event_data = { vclass, id, FALSE }; - const vfs_path_t *vpath; - struct vfs_class *me; - - /* There are three directories we have to take care of: current_dir, - current_panel->cwd and other_panel->cwd. Although most of the time either - current_dir and current_panel->cwd or current_dir and other_panel->cwd are the - same, it's possible that all three are different -- Norbert */ - - if (!mc_event_present (MCEVENT_GROUP_CORE, "vfs_timestamp")) - return; - - vpath = vfs_get_raw_current_dir (); - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); - - nvfsid = vfs_getid (vpath); - vfs_rmstamp (me, nvfsid); - - if (!(id == NULL || (me == vclass && nvfsid == id))) - { - mc_event_raise (MCEVENT_GROUP_CORE, "vfs_timestamp", (gpointer) & event_data); - - if (!event_data.ret && vclass != NULL && vclass->nothingisopen != NULL - && vclass->nothingisopen (id)) - vfs_addstamp (vclass, id); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** This is called from timeout handler with now = FALSE, - or can be called with now = TRUE to force freeing all filesystems */ - -void -vfs_expire (gboolean now) -{ - static gboolean locked = FALSE; - gint64 curr_time, exp_time; - GSList *stamp; - - /* Avoid recursive invocation, e.g. when one of the free functions - calls message */ - if (locked) - return; - locked = TRUE; - - curr_time = g_get_monotonic_time (); - exp_time = curr_time - vfs_timeout * G_USEC_PER_SEC; - - if (now) - { - /* reverse list to free nested VFSes at first */ - stamps = g_slist_reverse (stamps); - } - - /* NULLize stamps that point to expired VFS */ - for (stamp = stamps; stamp != NULL; stamp = g_slist_next (stamp)) - { - struct vfs_stamping *stamping = VFS_STAMPING (stamp->data); - - if (now) - { - /* free VFS forced */ - if (stamping->v->free != NULL) - stamping->v->free (stamping->id); - MC_PTR_FREE (stamp->data); - } - else if (stamping->time <= exp_time) - { - /* update timestamp of VFS that is in use, or free unused VFS */ - if (stamping->v->nothingisopen != NULL && !stamping->v->nothingisopen (stamping->id)) - stamping->time = curr_time; - else - { - if (stamping->v->free != NULL) - stamping->v->free (stamping->id); - MC_PTR_FREE (stamp->data); - } - } - } - - /* then remove NULLized stamps */ - stamps = g_slist_remove_all (stamps, NULL); - - locked = FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * Return the number of seconds remaining to the vfs timeout. - * FIXME: The code should be improved to actually return the number of - * seconds until the next item times out. - */ - -int -vfs_timeouts (void) -{ - return stamps != NULL ? 10 : 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_timeout_handler (void) -{ - vfs_expire (FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_release_path (const vfs_path_t *vpath) -{ - vfsid id; - struct vfs_class *me; - - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); - id = vfs_getid (vpath); - vfs_stamp_create (me, id); -} - -/* --------------------------------------------------------------------------------------------- */ -/* Free all data */ - -void -vfs_gc_done (void) -{ - vfs_expire (TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/vfs/gc.h b/recipes/wip/files/mc/source/lib/vfs/gc.h deleted file mode 100644 index 59fa5ecb15..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/gc.h +++ /dev/null @@ -1,27 +0,0 @@ -/** - * \file - * \brief Header: Virtual File System: garbage collection code - */ - -#ifndef MC__VFS_GC_H -#define MC__VFS_GC_H - -#include "vfs.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -gboolean vfs_stamp (struct vfs_class *vclass, vfsid id); -void vfs_rmstamp (struct vfs_class *vclass, vfsid id); -void vfs_stamp_create (struct vfs_class *vclass, vfsid id); -void vfs_gc_done (void); - -/*** inline functions ****************************************************************************/ -#endif /* MC_VFS_GC_H */ diff --git a/recipes/wip/files/mc/source/lib/vfs/interface.c b/recipes/wip/files/mc/source/lib/vfs/interface.c deleted file mode 100644 index 0197762677..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/interface.c +++ /dev/null @@ -1,819 +0,0 @@ -/* - Virtual File System: interface functions - - Copyright (C) 2011-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2011, 2013 - Andrew Borodin , 2011-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** - * \file - * \brief Source: Virtual File System: path handlers - * \author Slava Zanko - * \date 2011 - */ - - -#include - -#include -#include /* For atol() */ -#include -#include -#include -#include -#include -#include /* is_digit() */ -#include -#include -#include -#include -#include - -#include "lib/global.h" - -#include "lib/widget.h" /* message() */ -#include "lib/strutil.h" /* str_crt_conv_from() */ -#include "lib/util.h" - -#include "vfs.h" -#include "utilvfs.h" -#include "path.h" -#include "gc.h" -#include "xdirentry.h" - -/* TODO: move it to separate private .h */ -extern GString *vfs_str_buffer; -extern vfs_class *current_vfs; -extern struct vfs_dirent *mc_readdir_result; - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static vfs_path_t * -mc_def_getlocalcopy (const vfs_path_t *filename_vpath) -{ - vfs_path_t *tmp_vpath = NULL; - int fdin, fdout = -1; - ssize_t i; - char buffer[BUF_1K * 8]; - struct stat mystat; - - fdin = mc_open (filename_vpath, O_RDONLY | O_LINEAR); - if (fdin == -1) - goto fail; - - fdout = vfs_mkstemps (&tmp_vpath, "vfs", vfs_path_get_last_path_str (filename_vpath)); - if (fdout == -1) - goto fail; - - while ((i = mc_read (fdin, buffer, sizeof (buffer))) > 0) - { - if (write (fdout, buffer, i) != i) - goto fail; - } - if (i == -1) - goto fail; - i = mc_close (fdin); - fdin = -1; - if (i == -1) - goto fail; - - i = close (fdout); - fdout = -1; - if (i == -1) - goto fail; - - if (mc_stat (filename_vpath, &mystat) != -1) - mc_chmod (tmp_vpath, mystat.st_mode); - - return tmp_vpath; - - fail: - vfs_path_free (tmp_vpath, TRUE); - if (fdout != -1) - close (fdout); - if (fdin != -1) - mc_close (fdin); - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -mc_def_ungetlocalcopy (const vfs_path_t *filename_vpath, - const vfs_path_t *local_vpath, gboolean has_changed) -{ - int fdin = -1, fdout = -1; - const char *local; - - local = vfs_path_get_last_path_str (local_vpath); - - if (has_changed) - { - char buffer[BUF_1K * 8]; - ssize_t i; - - if (vfs_path_get_last_path_vfs (filename_vpath)->write == NULL) - goto failed; - - fdin = open (local, O_RDONLY); - if (fdin == -1) - goto failed; - fdout = mc_open (filename_vpath, O_WRONLY | O_TRUNC); - if (fdout == -1) - goto failed; - while ((i = read (fdin, buffer, sizeof (buffer))) > 0) - if (mc_write (fdout, buffer, (size_t) i) != i) - goto failed; - if (i == -1) - goto failed; - - if (close (fdin) == -1) - { - fdin = -1; - goto failed; - } - fdin = -1; - if (mc_close (fdout) == -1) - { - fdout = -1; - goto failed; - } - } - unlink (local); - return 0; - - failed: - message (D_ERROR, _("Changes to file lost"), "%s", vfs_path_get_last_path_str (filename_vpath)); - if (fdout != -1) - mc_close (fdout); - if (fdin != -1) - close (fdin); - unlink (local); - return (-1); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -int -mc_open (const vfs_path_t *vpath, int flags, ...) -{ - int result = -1; - mode_t mode = 0; - struct vfs_class *me; - - if (vpath == NULL) - return (-1); - - /* Get the mode flag */ - if ((flags & O_CREAT) != 0) - { - va_list ap; - - va_start (ap, flags); - /* We have to use PROMOTED_MODE_T instead of mode_t. Doing 'va_arg (ap, mode_t)' - * fails on systems where 'mode_t' is smaller than 'int' because of C's "default - * argument promotions". */ - mode = va_arg (ap, PROMOTED_MODE_T); - va_end (ap); - } - - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); - if (me != NULL && me->open != NULL) - { - void *info; - - /* open must be supported */ - info = me->open (vpath, flags, mode); - if (info == NULL) - errno = vfs_ferrno (me); - else - result = vfs_new_handle (me, info); - } - else - errno = ENOTSUP; - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* *INDENT-OFF* */ - -#define MC_NAMEOP(name, inarg, callarg) \ -int mc_##name inarg \ -{ \ - int result; \ - struct vfs_class *me; \ -\ - if (vpath == NULL) \ - return (-1); \ -\ - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); \ - if (me == NULL) \ - return (-1); \ -\ - result = me->name != NULL ? me->name callarg : -1; \ - if (result == -1) \ - errno = me->name != NULL ? vfs_ferrno (me) : ENOTSUP; \ - return result; \ -} - -MC_NAMEOP (chmod, (const vfs_path_t *vpath, mode_t mode), (vpath, mode)) -MC_NAMEOP (chown, (const vfs_path_t *vpath, uid_t owner, gid_t group), (vpath, owner, group)) -MC_NAMEOP (fgetflags, (const vfs_path_t *vpath, unsigned long *flags), (vpath, flags)) -MC_NAMEOP (fsetflags, (const vfs_path_t *vpath, unsigned long flags), (vpath, flags)) -MC_NAMEOP (utime, (const vfs_path_t *vpath, mc_timesbuf_t * times), (vpath, times)) -MC_NAMEOP (readlink, (const vfs_path_t *vpath, char *buf, size_t bufsiz), (vpath, buf, bufsiz)) -MC_NAMEOP (unlink, (const vfs_path_t *vpath), (vpath)) -MC_NAMEOP (mkdir, (const vfs_path_t *vpath, mode_t mode), (vpath, mode)) -MC_NAMEOP (rmdir, (const vfs_path_t *vpath), (vpath)) -MC_NAMEOP (mknod, (const vfs_path_t *vpath, mode_t mode, dev_t dev), (vpath, mode, dev)) - -/* *INDENT-ON* */ - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_symlink (const vfs_path_t *vpath1, const vfs_path_t *vpath2) -{ - int result = -1; - - if (vpath1 != NULL && vpath2 != NULL) - { - struct vfs_class *me; - - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath2)); - if (me != NULL) - { - result = me->symlink != NULL ? me->symlink (vpath1, vpath2) : -1; - if (result == -1) - errno = me->symlink != NULL ? vfs_ferrno (me) : ENOTSUP; - } - } - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* *INDENT-OFF* */ - -#define MC_HANDLEOP(rettype, name, inarg, callarg) \ -rettype mc_##name inarg \ -{ \ - struct vfs_class *vfs; \ - void *fsinfo = NULL; \ - rettype result; \ -\ - if (handle == -1) \ - return (-1); \ -\ - vfs = vfs_class_find_by_handle (handle, &fsinfo); \ - if (vfs == NULL) \ - return (-1); \ -\ - result = vfs->name != NULL ? vfs->name callarg : -1; \ - if (result == -1) \ - errno = vfs->name != NULL ? vfs_ferrno (vfs) : ENOTSUP; \ - return result; \ -} - -MC_HANDLEOP (ssize_t, read, (int handle, void *buf, size_t count), (fsinfo, buf, count)) -MC_HANDLEOP (ssize_t, write, (int handle, const void *buf, size_t count), (fsinfo, buf, count)) -MC_HANDLEOP (int, fstat, (int handle, struct stat *buf), (fsinfo, buf)) - -/* --------------------------------------------------------------------------------------------- */ - -#define MC_RENAMEOP(name) \ -int mc_##name (const vfs_path_t *vpath1, const vfs_path_t *vpath2) \ -{ \ - int result; \ - struct vfs_class *me1, *me2; \ -\ - if (vpath1 == NULL || vpath2 == NULL) \ - return (-1); \ -\ - me1 = VFS_CLASS (vfs_path_get_last_path_vfs (vpath1)); \ - me2 = VFS_CLASS (vfs_path_get_last_path_vfs (vpath2)); \ -\ - if (me1 == NULL || me2 == NULL || me1 != me2) \ - { \ - errno = EXDEV; \ - return (-1); \ - } \ -\ - result = me1->name != NULL ? me1->name (vpath1, vpath2) : -1; \ - if (result == -1) \ - errno = me1->name != NULL ? vfs_ferrno (me1) : ENOTSUP; \ - return result; \ -} - -MC_RENAMEOP (link) -MC_RENAMEOP (rename) - -/* *INDENT-ON* */ - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_ctl (int handle, int ctlop, void *arg) -{ - struct vfs_class *vfs; - void *fsinfo = NULL; - - vfs = vfs_class_find_by_handle (handle, &fsinfo); - - return (vfs == NULL || vfs->ctl == NULL) ? 0 : vfs->ctl (fsinfo, ctlop, arg); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_setctl (const vfs_path_t *vpath, int ctlop, void *arg) -{ - int result = -1; - struct vfs_class *me; - - if (vpath == NULL) - vfs_die ("You don't want to pass NULL to mc_setctl."); - - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); - if (me != NULL) - result = me->setctl != NULL ? me->setctl (vpath, ctlop, arg) : 0; - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_close (int handle) -{ - struct vfs_class *vfs; - void *fsinfo = NULL; - int result; - - if (handle == -1) - return (-1); - - vfs = vfs_class_find_by_handle (handle, &fsinfo); - if (vfs == NULL || fsinfo == NULL) - return (-1); - - if (handle < 3) - return close (handle); - - if (vfs->close == NULL) - vfs_die ("VFS must support close.\n"); - result = vfs->close (fsinfo); - vfs_free_handle (handle); - if (result == -1) - errno = vfs_ferrno (vfs); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -DIR * -mc_opendir (const vfs_path_t *vpath) -{ - int handle, *handlep; - void *info; - vfs_path_element_t *path_element; - - if (vpath == NULL) - return NULL; - - path_element = (vfs_path_element_t *) vfs_path_get_by_index (vpath, -1); - if (!vfs_path_element_valid (path_element)) - { - errno = ENOTSUP; - return NULL; - } - - info = path_element->class->opendir ? path_element->class->opendir (vpath) : NULL; - if (info == NULL) - { - errno = path_element->class->opendir ? vfs_ferrno (path_element->class) : ENOTSUP; - return NULL; - } - - path_element->dir.info = info; - -#ifdef HAVE_CHARSET - path_element->dir.converter = (path_element->encoding != NULL) ? - str_crt_conv_from (path_element->encoding) : str_cnv_from_term; - if (path_element->dir.converter == INVALID_CONV) - path_element->dir.converter = str_cnv_from_term; -#endif - - handle = vfs_new_handle (path_element->class, vfs_path_element_clone (path_element)); - - handlep = g_new (int, 1); - *handlep = handle; - return (DIR *) handlep; -} - -/* --------------------------------------------------------------------------------------------- */ - -struct vfs_dirent * -mc_readdir (DIR *dirp) -{ - int handle; - struct vfs_class *vfs; - void *fsinfo = NULL; - struct vfs_dirent *entry = NULL; - vfs_path_element_t *vfs_path_element; - - if (dirp == NULL) - { - errno = EFAULT; - return NULL; - } - - handle = *(int *) dirp; - - vfs = vfs_class_find_by_handle (handle, &fsinfo); - if (vfs == NULL || fsinfo == NULL) - return NULL; - - vfs_path_element = (vfs_path_element_t *) fsinfo; - if (vfs->readdir != NULL) - { - entry = vfs->readdir (vfs_path_element->dir.info); - if (entry == NULL) - return NULL; - - g_string_set_size (vfs_str_buffer, 0); -#ifdef HAVE_CHARSET - str_vfs_convert_from (vfs_path_element->dir.converter, entry->d_name, vfs_str_buffer); -#else - g_string_append_len (vfs_str_buffer, entry->d_name, entry->d_len); -#endif - vfs_dirent_assign (mc_readdir_result, vfs_str_buffer->str, entry->d_ino); - vfs_dirent_free (entry); - } - if (entry == NULL) - errno = vfs->readdir ? vfs_ferrno (vfs) : ENOTSUP; - return (entry != NULL) ? mc_readdir_result : NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_closedir (DIR *dirp) -{ - int handle; - struct vfs_class *vfs; - void *fsinfo = NULL; - int result = -1; - - if (dirp == NULL) - return result; - - handle = *(int *) dirp; - - vfs = vfs_class_find_by_handle (handle, &fsinfo); - if (vfs != NULL && fsinfo != NULL) - { - vfs_path_element_t *vfs_path_element = (vfs_path_element_t *) fsinfo; - -#ifdef HAVE_CHARSET - if (vfs_path_element->dir.converter != str_cnv_from_term) - { - str_close_conv (vfs_path_element->dir.converter); - vfs_path_element->dir.converter = INVALID_CONV; - } -#endif - - result = vfs->closedir ? (*vfs->closedir) (vfs_path_element->dir.info) : -1; - vfs_free_handle (handle); - vfs_path_element_free (vfs_path_element); - } - g_free (dirp); - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* *INDENT-OFF* */ - -#define MC_STATOP(name) \ -int mc_##name (const vfs_path_t *vpath, struct stat *buf) \ -{ \ - int result = -1; \ - struct vfs_class *me; \ -\ - if (vpath == NULL) \ - return (-1); \ -\ - me = VFS_CLASS (vfs_path_get_last_path_vfs (vpath)); \ - if (me != NULL) \ - { \ - result = me->name ? me->name (vpath, buf) : -1; \ - if (result == -1) \ - errno = me->name ? vfs_ferrno (me) : ENOTSUP; \ - } \ -\ - return result; \ -} - -MC_STATOP (stat) -MC_STATOP (lstat) - -/* *INDENT-ON* */ - -/* --------------------------------------------------------------------------------------------- */ - -vfs_path_t * -mc_getlocalcopy (const vfs_path_t *pathname_vpath) -{ - vfs_path_t *result = NULL; - struct vfs_class *me; - - if (pathname_vpath == NULL) - return NULL; - - me = VFS_CLASS (vfs_path_get_last_path_vfs (pathname_vpath)); - if (me != NULL) - { - result = me->getlocalcopy != NULL ? - me->getlocalcopy (pathname_vpath) : mc_def_getlocalcopy (pathname_vpath); - if (result == NULL) - errno = vfs_ferrno (me); - } - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -mc_ungetlocalcopy (const vfs_path_t *pathname_vpath, const vfs_path_t *local_vpath, - gboolean has_changed) -{ - int result = -1; - const struct vfs_class *me; - - if (pathname_vpath == NULL) - return (-1); - - me = vfs_path_get_last_path_vfs (pathname_vpath); - if (me != NULL) - result = me->ungetlocalcopy != NULL ? - me->ungetlocalcopy (pathname_vpath, local_vpath, has_changed) : - mc_def_ungetlocalcopy (pathname_vpath, local_vpath, has_changed); - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * VFS chdir. - * - * @param vpath VFS path. - * May be NULL. In this case NULL is returned and errno set to 0. - * - * @return 0 on success, -1 on failure. - */ - -int -mc_chdir (const vfs_path_t *vpath) -{ - struct vfs_class *old_vfs; - vfsid old_vfsid; - int result; - struct vfs_class *me; - const vfs_path_element_t *path_element; - vfs_path_t *cd_vpath; - - if (vpath == NULL) - { - errno = 0; - return (-1); - } - - if (vpath->relative) - cd_vpath = vfs_path_to_absolute (vpath); - else - cd_vpath = vfs_path_clone (vpath); - - me = VFS_CLASS (vfs_path_get_last_path_vfs (cd_vpath)); - if (me == NULL) - { - errno = EINVAL; - goto error_end; - } - - if (me->chdir == NULL) - { - errno = ENOTSUP; - goto error_end; - } - - result = me->chdir (cd_vpath); - if (result == -1) - { - errno = vfs_ferrno (me); - goto error_end; - } - - old_vfsid = vfs_getid (vfs_get_raw_current_dir ()); - old_vfs = current_vfs; - - /* Actually change directory */ - vfs_set_raw_current_dir (cd_vpath); - current_vfs = me; - - /* This function uses the new current_dir implicitly */ - vfs_stamp_create (old_vfs, old_vfsid); - - /* Sometimes we assume no trailing slash on cwd */ - path_element = vfs_path_get_by_index (vfs_get_raw_current_dir (), -1); - if (vfs_path_element_valid (path_element)) - { - if (*path_element->path != '\0') - { - char *p; - - p = strchr (path_element->path, 0) - 1; - if (IS_PATH_SEP (*p) && p > path_element->path) - *p = '\0'; - } - -#ifdef ENABLE_VFS_NET - { - struct vfs_s_super *super; - - super = vfs_get_super_by_vpath (vpath); - if (super != NULL && super->path_element != NULL) - { - g_free (super->path_element->path); - super->path_element->path = g_strdup (path_element->path); - } - } -#endif /* ENABLE_VFS_NET */ - } - - return 0; - - error_end: - vfs_path_free (cd_vpath, TRUE); - return (-1); -} - -/* --------------------------------------------------------------------------------------------- */ - -off_t -mc_lseek (int fd, off_t offset, int whence) -{ - struct vfs_class *vfs; - void *fsinfo = NULL; - off_t result; - - if (fd == -1) - return (-1); - - vfs = vfs_class_find_by_handle (fd, &fsinfo); - if (vfs == NULL) - return (-1); - - result = vfs->lseek ? vfs->lseek (fsinfo, offset, whence) : -1; - if (result == -1) - errno = vfs->lseek ? vfs_ferrno (vfs) : ENOTSUP; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ -/* Following code heavily borrows from libiberty, mkstemps.c */ -/* - * Arguments: - * pname (output) - pointer to the name of the temp file (needs g_free). - * NULL if the function fails. - * prefix - part of the filename before the random part. - * Prepend $TMPDIR or /tmp if there are no path separators. - * suffix - if not NULL, part of the filename after the random part. - * - * Result: - * handle of the open file or -1 if couldn't open any. - */ - -int -mc_mkstemps (vfs_path_t **pname_vpath, const char *prefix, const char *suffix) -{ - char *p1, *p2; - int fd; - - if (strchr (prefix, PATH_SEP) != NULL) - p1 = g_strdup (prefix); - else - { - /* Add prefix first to find the position of XXXXXX */ - p1 = g_build_filename (mc_tmpdir (), prefix, (char *) NULL); - } - - p2 = g_strconcat (p1, "XXXXXX", suffix, (char *) NULL); - g_free (p1); - - fd = g_mkstemp (p2); - if (fd >= 0) - *pname_vpath = vfs_path_from_str (p2); - else - { - *pname_vpath = NULL; - fd = -1; - } - - g_free (p2); - - return fd; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Return the directory where mc should keep its temporary files. - * This directory is (in Bourne shell terms) "${TMPDIR=/tmp}/mc-XXXXXX" - * When called the first time, the directory is created if needed. - * The first call should be done early, since we are using fprintf() - * and not message() to report possible problems. - */ - -const char * -mc_tmpdir (void) -{ - static char buffer[PATH_MAX]; - static const char *tmpdir = NULL; - const char *sys_tmp; - gchar *template; - - /* Check if already correctly initialized */ - if (tmpdir != NULL) - { - struct stat st; - - if (lstat (tmpdir, &st) == 0 && S_ISDIR (st.st_mode) && st.st_uid == getuid () - && (st.st_mode & 0777) == 0700) - return tmpdir; - } - - sys_tmp = getenv ("MC_TMPDIR"); - if (sys_tmp == NULL || !IS_PATH_SEP (sys_tmp[0])) - { - sys_tmp = getenv ("TMPDIR"); - if (sys_tmp == NULL || !IS_PATH_SEP (sys_tmp[0])) - sys_tmp = TMPDIR_DEFAULT; - } - - template = g_build_filename (sys_tmp, "mc-XXXXXX", (char *) NULL); - g_strlcpy (buffer, template, sizeof (buffer)); - g_free (template); - - tmpdir = g_mkdtemp (buffer); - if (tmpdir != NULL) - g_setenv ("MC_TMPDIR", tmpdir, TRUE); - else - { - fprintf (stderr, _("Cannot create temporary directory %s: %s.\n" - "Temporary files will not be created\n"), buffer, - unix_error_string (errno)); - g_snprintf (buffer, sizeof (buffer), "%s", "/dev/null/"); - fprintf (stderr, "%s\n", _("Press any key to continue...")); - getc (stdin); - } - - return tmpdir; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/vfs/netutil.c b/recipes/wip/files/mc/source/lib/vfs/netutil.c deleted file mode 100644 index 1ecdff7560..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/netutil.c +++ /dev/null @@ -1,84 +0,0 @@ -/* - Network utilities for the Midnight Commander Virtual File System. - - Copyright (C) 1995-2025 - Free Software Foundation, Inc. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** - * \file - * \brief Source: Virtual File System: Network utilities - */ - -#include - -#include -#include -#include /* memset() */ - -#include "lib/global.h" -#include "lib/util.h" - -#include "netutil.h" - -/*** global variables ****************************************************************************/ - -SIG_ATOMIC_VOLATILE_T got_sigpipe = 0; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -sig_pipe (int unused) -{ - (void) unused; - got_sigpipe = 1; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -tcp_init (void) -{ - static gboolean initialized = FALSE; - struct sigaction sa; - - if (initialized) - return; - - got_sigpipe = 0; - memset (&sa, 0, sizeof (sa)); - sa.sa_handler = sig_pipe; - sigemptyset (&sa.sa_mask); - my_sigaction (SIGPIPE, &sa, NULL); - - initialized = TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/vfs/netutil.h b/recipes/wip/files/mc/source/lib/vfs/netutil.h deleted file mode 100644 index 9a12745848..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/netutil.h +++ /dev/null @@ -1,26 +0,0 @@ - -/** - * \file - * \brief Header: Virtual File System: Network utilities - */ - -#ifndef MC__VFS_NETUTIL_H -#define MC__VFS_NETUTIL_H - -#include -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -extern SIG_ATOMIC_VOLATILE_T got_sigpipe; - -/*** declarations of public functions ************************************************************/ - -void tcp_init (void); - -/*** inline functions ****************************************************************************/ -#endif /* MC_VFS_NETUTIL_H */ diff --git a/recipes/wip/files/mc/source/lib/vfs/parse_ls_vga.c b/recipes/wip/files/mc/source/lib/vfs/parse_ls_vga.c deleted file mode 100644 index dd91b881b2..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/parse_ls_vga.c +++ /dev/null @@ -1,885 +0,0 @@ -/* - Routines for parsing output from the 'ls' command. - - Copyright (C) 1988-2025 - Free Software Foundation, Inc. - - Copyright (C) 1995, 1996 Miguel de Icaza - - Written by: - Miguel de Icaza, 1995, 1996 - Slava Zanko , 2011 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** - * \file - * \brief Source: Utilities for VFS modules - * \author Miguel de Icaza - * \date 1995, 1996 - */ - -#include - -#include -#include -#include - -#include "lib/global.h" -#include "lib/unixcompat.h" /* makedev */ -#include "lib/widget.h" /* message() */ - -#include "utilvfs.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/* Parsing code is used by ftpfs, shell and extfs */ -#define MAXCOLS 30 - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static char *columns[MAXCOLS]; /* Points to the string in column n */ -static int column_ptr[MAXCOLS]; /* Index from 0 to the starting positions of the columns */ -static size_t vfs_parse_ls_final_num_spaces = 0; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -is_num (int idx) -{ - char *column = columns[idx]; - - return (column != NULL && isdigit (column[0])); -} - -/* --------------------------------------------------------------------------------------------- */ -/* Return TRUE for MM-DD-YY and MM-DD-YYYY */ - -static gboolean -is_dos_date (const char *str) -{ - size_t len; - - if (str == NULL) - return FALSE; - - len = strlen (str); - if (len != 8 && len != 10) - return FALSE; - - if (str[2] != str[5]) - return FALSE; - - return (strchr ("\\-/", (int) str[2]) != NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -is_week (const char *str, struct tm *tim) -{ - static const char *week = "SunMonTueWedThuFriSat"; - const char *pos; - - if (str == NULL) - return FALSE; - - pos = strstr (week, str); - if (pos == NULL) - return FALSE; - - if (tim != NULL) - tim->tm_wday = (pos - week) / 3; - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Check for possible locale's abbreviated month name (Jan..Dec). - * Any 3 bytes long string without digit, control and punctuation characters. - * isalpha() is locale specific, so it cannot be used if current - * locale is "C" and ftp server use Cyrillic. - * NB: It is assumed there are no whitespaces in month. - */ -static gboolean -is_localized_month (const char *month) -{ - int i; - - if (month == NULL) - return FALSE; - - for (i = 0; - i < 3 && *month != '\0' && !isdigit ((unsigned char) *month) - && !iscntrl ((unsigned char) *month) && !ispunct ((unsigned char) *month); i++, month++) - ; - - return (i == 3 && *month == '\0'); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -is_time (const char *str, struct tm *tim) -{ - const char *p, *p2; - - if (str == NULL) - return FALSE; - - p = strchr (str, ':'); - if (p == NULL) - return FALSE; - - p2 = strrchr (str, ':'); - if (p2 == NULL) - return FALSE; - - if (p != p2) - { - if (sscanf (str, "%2d:%2d:%2d", &tim->tm_hour, &tim->tm_min, &tim->tm_sec) != 3) - return FALSE; - } - else - { - if (sscanf (str, "%2d:%2d", &tim->tm_hour, &tim->tm_min) != 2) - return FALSE; - } - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -is_year (char *str, struct tm *tim) -{ - long year; - - if (str == NULL) - return FALSE; - - if (strchr (str, ':') != NULL) - return FALSE; - - if (strlen (str) != 4) - return FALSE; - - /* cppcheck-suppress invalidscanf */ - if (sscanf (str, "%ld", &year) != 1) - return FALSE; - - if (year < 1900 || year > 3000) - return FALSE; - - tim->tm_year = (int) (year - 1900); - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -gboolean -vfs_parse_filetype (const char *s, size_t *ret_skipped, mode_t *ret_type) -{ - mode_t type; - - switch (*s) - { - case 'd': - type = S_IFDIR; - break; - case 'b': - type = S_IFBLK; - break; - case 'c': - type = S_IFCHR; - break; - case 'l': - type = S_IFLNK; - break; -#ifdef S_IFSOCK - case 's': - type = S_IFSOCK; - break; -#else - case 's': - type = S_IFIFO; - break; -#endif -#ifdef S_IFDOOR /* Solaris door */ - case 'D': - type = S_IFDOOR; - break; -#else - case 'D': - type = S_IFIFO; - break; -#endif - case 'p': - type = S_IFIFO; - break; -#ifdef S_IFNAM /* Special named files */ - case 'n': - type = S_IFNAM; - break; -#else - case 'n': - type = S_IFREG; - break; -#endif - case 'm': /* Don't know what these are :-) */ - case '-': - case '?': - type = S_IFREG; - break; - default: - return FALSE; - } - - *ret_type = type; - - if (ret_skipped != NULL) - *ret_skipped = 1; - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -vfs_parse_fileperms (const char *s, size_t *ret_skipped, mode_t *ret_perms) -{ - const char *p = s; - mode_t perms = 0; - - switch (*p++) - { - case '-': - break; - case 'r': - perms |= S_IRUSR; - break; - default: - return FALSE; - } - - switch (*p++) - { - case '-': - break; - case 'w': - perms |= S_IWUSR; - break; - default: - return FALSE; - } - - switch (*p++) - { - case '-': - break; - case 'S': - perms |= S_ISUID; - break; - case 's': - perms |= S_IXUSR | S_ISUID; - break; - case 'x': - perms |= S_IXUSR; - break; - default: - return FALSE; - } - - switch (*p++) - { - case '-': - break; - case 'r': - perms |= S_IRGRP; - break; - default: - return FALSE; - } - - switch (*p++) - { - case '-': - break; - case 'w': - perms |= S_IWGRP; - break; - default: - return FALSE; - } - - switch (*p++) - { - case '-': - break; - case 'S': - perms |= S_ISGID; - break; - case 'l': - perms |= S_ISGID; - break; /* found on Solaris */ - case 's': - perms |= S_IXGRP | S_ISGID; - break; - case 'x': - perms |= S_IXGRP; - break; - default: - return FALSE; - } - - switch (*p++) - { - case '-': - break; - case 'r': - perms |= S_IROTH; - break; - default: - return FALSE; - } - - switch (*p++) - { - case '-': - break; - case 'w': - perms |= S_IWOTH; - break; - default: - return FALSE; - } - - switch (*p++) - { - case '-': - break; - case 'T': - perms |= S_ISVTX; - break; - case 't': - perms |= S_IXOTH | S_ISVTX; - break; - case 'x': - perms |= S_IXOTH; - break; - default: - return FALSE; - } - - if (*p == '+') - /* ACLs on Solaris, HP-UX and others */ - p++; - - if (ret_skipped != NULL) - *ret_skipped = p - s; - *ret_perms = perms; - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -vfs_parse_filemode (const char *s, size_t *ret_skipped, mode_t *ret_mode) -{ - const char *p = s; - mode_t type, perms; - size_t skipped; - - if (!vfs_parse_filetype (p, &skipped, &type)) - return FALSE; - - p += skipped; - if (!vfs_parse_fileperms (p, &skipped, &perms)) - return FALSE; - - p += skipped; - *ret_skipped = p - s; - *ret_mode = type | perms; - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -vfs_parse_raw_filemode (const char *s, size_t *ret_skipped, mode_t *ret_mode) -{ - const char *p = s; - mode_t remote_type = 0, local_type, perms = 0; - - /* isoctal */ - for (; *p >= '0' && *p <= '7'; p++) - { - perms *= 010; - perms += (*p - '0'); - } - - if (*p++ != ' ') - return FALSE; - - for (; *p >= '0' && *p <= '7'; p++) - { - remote_type *= 010; - remote_type += (*p - '0'); - } - - if (*p++ != ' ') - return FALSE; - - /* generated with: - $ perl -e 'use Fcntl ":mode"; - my @modes = (S_IFDIR, S_IFBLK, S_IFCHR, S_IFLNK, S_IFREG); - foreach $t (@modes) { printf ("%o\n", $t); };' - TODO: S_IFDOOR, S_IFIFO, S_IFSOCK (if supported by os) - (see vfs_parse_filetype) - */ - - switch (remote_type) - { - case 020000: - local_type = S_IFCHR; - break; - case 040000: - local_type = S_IFDIR; - break; - case 060000: - local_type = S_IFBLK; - break; - case 0120000: - local_type = S_IFLNK; - break; - case 0100000: - default: /* don't know what is it */ - local_type = S_IFREG; - break; - } - - *ret_skipped = p - s; - *ret_mode = local_type | perms; - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -vfs_parse_month (const char *str, struct tm *tim) -{ - static const char *month = "JanFebMarAprMayJunJulAugSepOctNovDec"; - const char *pos; - - if (str == NULL) - return FALSE; - - pos = strstr (month, str); - if (pos == NULL) - return FALSE; - - if (tim != NULL) - tim->tm_mon = (pos - month) / 3; - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/** This function parses from idx in the columns[] array */ - -int -vfs_parse_filedate (int idx, time_t *t) -{ - char *p; - struct tm tim; - int d[3]; - gboolean got_year = FALSE; - gboolean l10n = FALSE; /* Locale's abbreviated month name */ - time_t current_time; - struct tm *local_time; - - /* Let's setup default time values */ - current_time = time (NULL); - local_time = localtime (¤t_time); - tim.tm_mday = local_time->tm_mday; - tim.tm_mon = local_time->tm_mon; - tim.tm_year = local_time->tm_year; - - tim.tm_hour = 0; - tim.tm_min = 0; - tim.tm_sec = 0; - tim.tm_isdst = -1; /* Let mktime() try to guess correct dst offset */ - - p = columns[idx++]; - - /* We eat weekday name in case of extfs */ - if (is_week (p, &tim)) - p = columns[idx++]; - - /* - ALLOWED DATE FORMATS - - We expect 3 fields max or we'll see oddities with certain file names. - - Formats that contain either year or time (the default 'ls' formats): - - * Mon DD hh:mm[:ss] - * Mon DD YYYY - - Formats that contain both year and time, to make it easier to write - extfs scripts: - - * MM-DD-YYYY hh:mm[:ss] - * MM-DD-YY hh:mm[:ss] - - ('/' and '\' can be used instead of '-'.) - - where Mon is Jan-Dec, DD, MM, YY two digit day, month, year, - YYYY four digit year, hh, mm, ss two digit hour, minute or second. - - (As for the "3 fields max" restriction: this prevents, for example, a - file name "13:48" from being considered part of a "Sep 19 2016" date - string preceding it.) - */ - - /* Month name */ - if (vfs_parse_month (p, &tim)) - { - /* And we expect, it followed by day number */ - if (!is_num (idx)) - return 0; /* No day */ - - tim.tm_mday = (int) atol (columns[idx++]); - - } - else if (is_dos_date (p)) - { - /* Case with MM-DD-YY or MM-DD-YYYY */ - p[2] = p[5] = '-'; - - /* cppcheck-suppress invalidscanf */ - if (sscanf (p, "%2d-%2d-%d", &d[0], &d[1], &d[2]) != 3) - return 0; /* sscanf failed */ - - /* Months are zero based */ - if (d[0] > 0) - d[0]--; - - if (d[2] > 1900) - d[2] -= 1900; - else if (d[2] < 70) - /* Y2K madness */ - d[2] += 100; - - tim.tm_mon = d[0]; - tim.tm_mday = d[1]; - tim.tm_year = d[2]; - got_year = TRUE; - } - else if (is_localized_month (p) && is_num (idx++)) - /* Locale's abbreviated month name followed by day number */ - l10n = TRUE; - else - return 0; /* unsupported format */ - - /* Here we expect to find time or year */ - if (!is_num (idx) - || !(is_time (columns[idx], &tim) || (got_year = is_year (columns[idx], &tim)))) - return 0; /* Neither time nor date */ - - idx++; - - /* - * If the date is less than 6 months in the past, it is shown without year - * other dates in the past or future are shown with year but without time - * This does not check for years before 1900 ... I don't know, how - * to represent them at all - */ - if (!got_year && local_time->tm_mon < 6 && local_time->tm_mon < tim.tm_mon - && tim.tm_mon - local_time->tm_mon >= 6) - tim.tm_year--; - - *t = mktime (&tim); - if (l10n || (*t < 0)) - *t = 0; - - return idx; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_split_text (char *p) -{ - char *original = p; - int numcols; - - memset (columns, 0, sizeof (columns)); - - for (numcols = 0; *p != '\0' && numcols < MAXCOLS; numcols++) - { - for (; *p == ' ' || *p == '\r' || *p == '\n'; p++) - *p = '\0'; - - columns[numcols] = p; - column_ptr[numcols] = p - original; - - for (; *p != '\0' && *p != ' ' && *p != '\r' && *p != '\n'; p++) - ; - } - - return numcols; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_parse_ls_lga_init (void) -{ - vfs_parse_ls_final_num_spaces = 1; -} - -/* --------------------------------------------------------------------------------------------- */ - -size_t -vfs_parse_ls_lga_get_final_spaces (void) -{ - return vfs_parse_ls_final_num_spaces; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -vfs_parse_ls_lga (const char *p, struct stat *s, char **filename, char **linkname, - size_t *num_spaces) -{ - int idx, idx2, num_cols; - int i; - char *p_copy = NULL; - char *t = NULL; - const char *line = p; - size_t skipped; - - if (strncmp (p, "total", 5) == 0) - return FALSE; - - if (!vfs_parse_filetype (p, &skipped, &s->st_mode)) - goto error; - - p += skipped; - if (*p == ' ') /* Notwell 4 */ - p++; - if (*p == '[') - { - if (strlen (p) <= 8 || p[8] != ']') - goto error; - - /* Should parse here the Novell permissions :) */ - if (S_ISDIR (s->st_mode)) - s->st_mode |= (S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR | S_IXUSR | S_IXGRP | S_IXOTH); - else - s->st_mode |= (S_IRUSR | S_IRGRP | S_IROTH | S_IWUSR); - p += 9; - } - else - { - size_t lc_skipped; - mode_t perms; - - if (!vfs_parse_fileperms (p, &lc_skipped, &perms)) - goto error; - - p += lc_skipped; - s->st_mode |= perms; - } - - p_copy = g_strdup (p); - num_cols = vfs_split_text (p_copy); - - s->st_nlink = atol (columns[0]); - if (s->st_nlink <= 0) - goto error; - - if (!is_num (1)) - s->st_uid = vfs_finduid (columns[1]); - else - s->st_uid = (uid_t) atol (columns[1]); - - /* Mhm, the ls -lg did not produce a group field */ - for (idx = 3; idx <= 5; idx++) - if (vfs_parse_month (columns[idx], NULL) || is_week (columns[idx], NULL) - || is_dos_date (columns[idx]) || is_localized_month (columns[idx])) - break; - - if (idx == 6 || (idx == 5 && !S_ISCHR (s->st_mode) && !S_ISBLK (s->st_mode))) - goto error; - - /* We don't have gid */ - if (idx == 3 || (idx == 4 && (S_ISCHR (s->st_mode) || S_ISBLK (s->st_mode)))) - idx2 = 2; - else - { - /* We have gid field */ - if (is_num (2)) - s->st_gid = (gid_t) atol (columns[2]); - else - s->st_gid = vfs_findgid (columns[2]); - idx2 = 3; - } - - /* This is device */ - if (S_ISCHR (s->st_mode) || S_ISBLK (s->st_mode)) - { - int maj, min; - - /* Corner case: there is no whitespace(s) between maj & min */ - if (!is_num (idx2) && idx2 == 2) - { - /* cppcheck-suppress invalidscanf */ - if (!is_num (++idx2) || sscanf (columns[idx2], " %d,%d", &maj, &min) != 2) - goto error; - } - else - { - /* cppcheck-suppress invalidscanf */ - if (!is_num (idx2) || sscanf (columns[idx2], " %d,", &maj) != 1) - goto error; - - /* cppcheck-suppress invalidscanf */ - if (!is_num (++idx2) || sscanf (columns[idx2], " %d", &min) != 1) - goto error; - } -#ifdef HAVE_STRUCT_STAT_ST_RDEV - s->st_rdev = makedev (maj, min); -#endif - s->st_size = 0; - - } - else - { - /* Common file size */ - if (!is_num (idx2)) - goto error; - - s->st_size = (off_t) g_ascii_strtoll (columns[idx2], NULL, 10); -#ifdef HAVE_STRUCT_STAT_ST_RDEV - s->st_rdev = 0; -#endif - } - - vfs_zero_stat_times (s); - - idx = vfs_parse_filedate (idx, &s->st_mtime); - if (idx == 0) - goto error; - - /* Use resulting time value */ - s->st_atime = s->st_ctime = s->st_mtime; - - /* s->st_dev and s->st_ino must be initialized by vfs_s_new_inode () */ -#ifdef HAVE_STRUCT_STAT_ST_BLKSIZE - s->st_blksize = 512; -#endif - vfs_adjust_stat (s); - - if (num_spaces != NULL) - { - *num_spaces = column_ptr[idx] - column_ptr[idx - 1] - strlen (columns[idx - 1]); - if (DIR_IS_DOTDOT (columns[idx])) - vfs_parse_ls_final_num_spaces = *num_spaces; - } - - for (i = idx + 1, idx2 = 0; i < num_cols; i++) - if (strcmp (columns[i], "->") == 0) - { - idx2 = i; - break; - } - - if (((S_ISLNK (s->st_mode) || (num_cols == idx + 3 && s->st_nlink > 1))) /* Maybe a hardlink? (in extfs) */ - && idx2 != 0) - { - if (filename != NULL) - *filename = g_strndup (p + column_ptr[idx], column_ptr[idx2] - column_ptr[idx] - 1); - - if (linkname != NULL) - { - t = g_strdup (p + column_ptr[idx2 + 1]); - *linkname = t; - } - } - else - { - /* Extract the filename from the string copy, not from the columns - * this way we have a chance of entering hidden directories like ". ." - */ - if (filename != NULL) - { - /* filename = g_strdup (columns [idx++]); */ - t = g_strdup (p + column_ptr[idx]); - *filename = t; - } - - if (linkname != NULL) - *linkname = NULL; - } - - if (t != NULL) - { - size_t p2; - - p2 = strlen (t); - if (--p2 > 0 && (t[p2] == '\r' || t[p2] == '\n')) - t[p2] = '\0'; - if (--p2 > 0 && (t[p2] == '\r' || t[p2] == '\n')) - t[p2] = '\0'; - } - - g_free (p_copy); - return TRUE; - - error: - { - static int errorcount = 0; - - if (++errorcount < 5) - message (D_ERROR, _("Cannot parse:"), "%s", - (p_copy != NULL && *p_copy != '\0') ? p_copy : line); - else if (errorcount == 5) - message (D_ERROR, MSG_ERROR, _("More parsing errors will be ignored.")); - } - - g_free (p_copy); - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/vfs/path.c b/recipes/wip/files/mc/source/lib/vfs/path.c deleted file mode 100644 index 554a241d34..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/path.c +++ /dev/null @@ -1,1690 +0,0 @@ -/* - Virtual File System path handlers - - Copyright (C) 2011-2025 - Free Software Foundation, Inc. - - Written by: - Slava Zanko , 2011, 2013 - Andrew Borodin , 2013-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** - * \file - * \brief Source: Virtual File System: path handlers - * \author Slava Zanko - * \date 2011 - */ - - -#include - -#include - -#include "lib/global.h" -#include "lib/strutil.h" -#include "lib/util.h" /* mc_build_filename() */ -#include "lib/serialize.h" - -#include "vfs.h" -#include "utilvfs.h" -#include "xdirentry.h" -#include "path.h" - -extern GPtrArray *vfs__classes_list; - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -path_magic (const char *path) -{ - struct stat buf; - - return (stat (path, &buf) != 0); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Splits path extracting vfs part. - * - * Splits path - * \verbatim /p1#op/inpath \endverbatim - * into - * \verbatim inpath,op; \endverbatim - * returns which vfs it is. - * What is left in path is p1. You still want to g_free(path), you DON'T - * want to free neither *inpath nor *op - */ - -static struct vfs_class * -_vfs_split_with_semi_skip_count (char *path, const char **inpath, const char **op, - size_t skip_count) -{ - char *semi; - char *slash; - struct vfs_class *ret; - - if (path == NULL) - vfs_die ("Cannot split NULL"); - - semi = strrstr_skip_count (path, "#", skip_count); - - if ((semi == NULL) || (!path_magic (path))) - return NULL; - - slash = strchr (semi, PATH_SEP); - *semi = '\0'; - - if (op != NULL) - *op = NULL; - - if (inpath != NULL) - *inpath = NULL; - - if (slash != NULL) - *slash = '\0'; - - ret = vfs_prefix_to_class (semi + 1); - if (ret != NULL) - { - if (op != NULL) - *op = semi + 1; - if (inpath != NULL) - *inpath = slash != NULL ? slash + 1 : NULL; - return ret; - } - - if (slash != NULL) - *slash = PATH_SEP; - - *semi = '#'; - ret = _vfs_split_with_semi_skip_count (path, inpath, op, skip_count + 1); - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * remove //, /./ and /../ - * - * @return newly allocated string - */ - -static char * -vfs_canon (const char *path) -{ - char *result; - - if (path == NULL) - vfs_die ("Cannot canonicalize NULL"); - - if (!IS_PATH_SEP (*path)) - { - /* Relative to current directory */ - - char *local; - -#ifdef HAVE_CHARSET - if (g_str_has_prefix (path, VFS_ENCODING_PREFIX)) - { - /* - encoding prefix placed at start of string without the leading slash - should be autofixed by adding the leading slash - */ - local = mc_build_filename (PATH_SEP_STR, path, (char *) NULL); - } - else -#endif - { - const char *curr_dir; - - curr_dir = vfs_get_current_dir (); - local = mc_build_filename (curr_dir, path, (char *) NULL); - } - result = vfs_canon (local); - g_free (local); - } - else - { - /* Absolute path */ - - result = g_strdup (path); - canonicalize_pathname (result); - } - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ -/** Extract the hostname and username from the path - * - * Format of the path is [user@]hostname:port/remote-dir, e.g.: - * - * ftp://sunsite.unc.edu/pub/linux - * ftp://miguel@sphinx.nuclecu.unam.mx/c/nc - * ftp://tsx-11.mit.edu:8192/ - * ftp://joe@foo.edu:11321/private - * ftp://joe:password@foo.se - * - * @param path_element is an input string to be parsed - * @param path is an input string to be parsed - * - * @return g_malloc()ed url info. - * If the user is empty, e.g. ftp://@roxanne/private, and URL_USE_ANONYMOUS - * is not set, then the current login name is supplied. - * Return value is a g_malloc()ed structure with the pathname relative to the - * host. - */ - -static void -vfs_path_url_split (vfs_path_element_t *path_element, const char *path) -{ - char *pcopy; - char *colon, *at, *rest; - - path_element->port = 0; - - pcopy = g_strdup (path); - - /* search for any possible user */ - at = strrchr (pcopy, '@'); - - /* We have a username */ - if (at == NULL) - rest = pcopy; - else - { - const char *pend; - char *inner_colon; - - pend = strchr (at, '\0'); - *at = '\0'; - - inner_colon = strchr (pcopy, ':'); - if (inner_colon != NULL) - { - *inner_colon = '\0'; - inner_colon++; - path_element->password = g_strdup (inner_colon); - } - - if (*pcopy != '\0') - path_element->user = g_strdup (pcopy); - - if (pend == at + 1) - rest = at; - else - rest = at + 1; - } - - /* Check if the host comes with a port spec, if so, chop it */ - if (*rest != '[') - colon = strchr (rest, ':'); - else - { - colon = strchr (++rest, ']'); - if (colon != NULL) - { - *colon = '\0'; - colon++; - *colon = '\0'; - path_element->ipv6 = TRUE; - } - } - - if (colon != NULL) - { - *colon = '\0'; - /* cppcheck-suppress invalidscanf */ - if (sscanf (colon + 1, "%d", &path_element->port) == 1) - { - if (path_element->port <= 0 || path_element->port >= 65536) - path_element->port = 0; - } - else - while (*(++colon) != '\0') - { - switch (*colon) - { - case 'C': - path_element->port = 1; - break; - case 'r': - path_element->port = 2; - break; - default: - break; - } - } - } - path_element->host = g_strdup (rest); - g_free (pcopy); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * get VFS class for the given name - * - * @param class_name name of class - * - * @return pointer to class structure or NULL if class not found - */ - -static struct vfs_class * -vfs_get_class_by_name (const char *class_name) -{ - guint i; - - if (class_name == NULL) - return NULL; - - for (i = 0; i < vfs__classes_list->len; i++) - { - struct vfs_class *vfs = VFS_CLASS (g_ptr_array_index (vfs__classes_list, i)); - if ((vfs->name != NULL) && (strcmp (vfs->name, class_name) == 0)) - return vfs; - } - - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Check if path string contain URL-like elements - * - * @param path_str path - * - * @return TRUE if path is deprecated or FALSE otherwise - */ - -static gboolean -vfs_path_is_str_path_deprecated (const char *path_str) -{ - return strstr (path_str, VFS_PATH_URL_DELIMITER) == NULL; -} - -/* --------------------------------------------------------------------------------------------- */ -/** Split path string to path elements by deprecated algorithm. - * - * @param path_str VFS-path - * - * @return pointer to newly created vfs_path_t object with filled path elements array. -*/ - -static vfs_path_t * -vfs_path_from_str_deprecated_parser (char *path) -{ - vfs_path_t *vpath; - vfs_path_element_t *element; - struct vfs_class *class; - const char *local, *op; - - vpath = vfs_path_new (FALSE); - - while ((class = _vfs_split_with_semi_skip_count (path, &local, &op, 0)) != NULL) - { - char *url_params; - element = g_new0 (vfs_path_element_t, 1); - element->class = class; - if (local == NULL) - local = ""; - element->path = vfs_translate_path_n (local); - -#ifdef HAVE_CHARSET - element->encoding = vfs_get_encoding (local, -1); - element->dir.converter = - (element->encoding != NULL) ? str_crt_conv_from (element->encoding) : INVALID_CONV; -#endif - - url_params = strchr (op, ':'); /* skip VFS prefix */ - if (url_params != NULL) - { - *url_params = '\0'; - url_params++; - vfs_path_url_split (element, url_params); - } - - if (*op != '\0') - element->vfs_prefix = g_strdup (op); - - g_array_prepend_val (vpath->path, element); - } - if (path[0] != '\0') - { - element = g_new0 (vfs_path_element_t, 1); - element->class = g_ptr_array_index (vfs__classes_list, 0); - element->path = vfs_translate_path_n (path); - -#ifdef HAVE_CHARSET - element->encoding = vfs_get_encoding (path, -1); - element->dir.converter = - (element->encoding != NULL) ? str_crt_conv_from (element->encoding) : INVALID_CONV; -#endif - g_array_prepend_val (vpath->path, element); - } - - return vpath; -} - -/* --------------------------------------------------------------------------------------------- */ -/** Split path string to path elements by URL algorithm. - * - * @param path_str VFS-path - * @param flags flags for converter - * - * @return pointer to newly created vfs_path_t object with filled path elements array. -*/ - -static vfs_path_t * -vfs_path_from_str_uri_parser (char *path) -{ - gboolean path_is_absolute; - vfs_path_t *vpath; - vfs_path_element_t *element; - char *url_delimiter; - - if (path == NULL) - return vfs_path_new (FALSE); - - path_is_absolute = IS_PATH_SEP (*path); -#ifdef HAVE_CHARSET - path_is_absolute = path_is_absolute || g_str_has_prefix (path, VFS_ENCODING_PREFIX); -#endif - - vpath = vfs_path_new (!path_is_absolute); - - while ((url_delimiter = g_strrstr (path, VFS_PATH_URL_DELIMITER)) != NULL) - { - char *vfs_prefix_start; - char *real_vfs_prefix_start = url_delimiter; - - while (real_vfs_prefix_start > path && !IS_PATH_SEP (*real_vfs_prefix_start)) - real_vfs_prefix_start--; - vfs_prefix_start = real_vfs_prefix_start; - - if (IS_PATH_SEP (*vfs_prefix_start)) - vfs_prefix_start++; - - *url_delimiter = '\0'; - - element = g_new0 (vfs_path_element_t, 1); - element->class = vfs_prefix_to_class (vfs_prefix_start); - element->vfs_prefix = g_strdup (vfs_prefix_start); - - url_delimiter += strlen (VFS_PATH_URL_DELIMITER); - - if (element->class != NULL && (element->class->flags & VFSF_REMOTE) != 0) - { - char *slash_pointer; - - slash_pointer = strchr (url_delimiter, PATH_SEP); - if (slash_pointer == NULL) - element->path = g_strdup (""); - else - { - element->path = vfs_translate_path_n (slash_pointer + 1); -#ifdef HAVE_CHARSET - element->encoding = vfs_get_encoding (slash_pointer, -1); -#endif - *slash_pointer = '\0'; - } - vfs_path_url_split (element, url_delimiter); - } - else - { - element->path = vfs_translate_path_n (url_delimiter); -#ifdef HAVE_CHARSET - element->encoding = vfs_get_encoding (url_delimiter, -1); -#endif - } -#ifdef HAVE_CHARSET - element->dir.converter = - (element->encoding != NULL) ? str_crt_conv_from (element->encoding) : INVALID_CONV; -#endif - g_array_prepend_val (vpath->path, element); - - if ((real_vfs_prefix_start > path && IS_PATH_SEP (*real_vfs_prefix_start)) || - (real_vfs_prefix_start == path && !IS_PATH_SEP (*real_vfs_prefix_start))) - *real_vfs_prefix_start = '\0'; - else - *(real_vfs_prefix_start + 1) = '\0'; - } - - if (path[0] != '\0') - { - element = g_new0 (vfs_path_element_t, 1); - element->class = g_ptr_array_index (vfs__classes_list, 0); - element->path = vfs_translate_path_n (path); -#ifdef HAVE_CHARSET - element->encoding = vfs_get_encoding (path, -1); - element->dir.converter = - (element->encoding != NULL) ? str_crt_conv_from (element->encoding) : INVALID_CONV; -#endif - g_array_prepend_val (vpath->path, element); - } - - return vpath; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Add element's class info to result string (such as VFS name, host, encoding etc) - * This function used as helper only in vfs_path_tokens_get() function - * - * @param element current path element - * @param ret_tokens total tikens for return - * @param element_tokens accumulated element-only tokens - */ - -static void -vfs_path_tokens_add_class_info (const vfs_path_element_t *element, GString *ret_tokens, - GString *element_tokens) -{ - if (((element->class->flags & VFSF_LOCAL) == 0 || ret_tokens->len > 0) - && element_tokens->len > 0) - { - GString *url_str; - - if (ret_tokens->len > 0 && !IS_PATH_SEP (ret_tokens->str[ret_tokens->len - 1])) - g_string_append_c (ret_tokens, PATH_SEP); - - g_string_append (ret_tokens, element->vfs_prefix); - g_string_append (ret_tokens, VFS_PATH_URL_DELIMITER); - - url_str = vfs_path_build_url_params_str (element, TRUE); - if (url_str != NULL) - { - g_string_append_len (ret_tokens, url_str->str, url_str->len); - g_string_append_c (ret_tokens, PATH_SEP); - g_string_free (url_str, TRUE); - } - } - -#ifdef HAVE_CHARSET - if (element->encoding != NULL) - { - if (ret_tokens->len > 0 && !IS_PATH_SEP (ret_tokens->str[ret_tokens->len - 1])) - g_string_append (ret_tokens, PATH_SEP_STR); - g_string_append (ret_tokens, VFS_ENCODING_PREFIX); - g_string_append (ret_tokens, element->encoding); - g_string_append (ret_tokens, PATH_SEP_STR); - } -#endif - - g_string_append (ret_tokens, element_tokens->str); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Strip path to home dir. - * @param dir pointer to string contains full path - */ - -static char * -vfs_path_strip_home (const char *dir) -{ - const char *home_dir = mc_config_get_home_dir (); - - if (home_dir != NULL) - { - size_t len; - - len = strlen (home_dir); - - if (strncmp (dir, home_dir, len) == 0 && (IS_PATH_SEP (dir[len]) || dir[len] == '\0')) - return g_strdup_printf ("~%s", dir + len); - } - - return g_strdup (dir); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -#define vfs_append_from_path(appendfrom, is_relative) \ -{ \ - if ((flags & VPF_STRIP_HOME) && element_index == 0 && \ - (element->class->flags & VFSF_LOCAL) != 0) \ - { \ - char *stripped_home_str; \ - stripped_home_str = vfs_path_strip_home (appendfrom); \ - g_string_append (buffer, stripped_home_str); \ - g_free (stripped_home_str); \ - } \ - else \ - { \ - if (!is_relative && !IS_PATH_SEP (*appendfrom) && *appendfrom != '\0' \ - && (buffer->len == 0 || !IS_PATH_SEP (buffer->str[buffer->len - 1]))) \ - g_string_append_c (buffer, PATH_SEP); \ - g_string_append (buffer, appendfrom); \ - } \ -} - -/** - * Convert first elements_count elements from vfs_path_t to string representation with flags. - * - * @param vpath pointer to vfs_path_t object - * @param elements_count count of first elements for convert - * @param flags for converter - * - * @return pointer to newly created string. - */ - -char * -vfs_path_to_str_flags (const vfs_path_t *vpath, int elements_count, vfs_path_flag_t flags) -{ - int element_index; - GString *buffer; -#ifdef HAVE_CHARSET - GString *recode_buffer = NULL; -#endif - - if (vpath == NULL) - return NULL; - - if (elements_count == 0 || elements_count > vfs_path_elements_count (vpath)) - elements_count = vfs_path_elements_count (vpath); - - if (elements_count < 0) - elements_count = vfs_path_elements_count (vpath) + elements_count; - - buffer = g_string_new (""); - - for (element_index = 0; element_index < elements_count; element_index++) - { - const vfs_path_element_t *element; - gboolean is_relative = vpath->relative && (element_index == 0); - - element = vfs_path_get_by_index (vpath, element_index); - if (element->vfs_prefix != NULL) - { - GString *url_str; - - if (!is_relative && (buffer->len == 0 || !IS_PATH_SEP (buffer->str[buffer->len - 1]))) - g_string_append_c (buffer, PATH_SEP); - - g_string_append (buffer, element->vfs_prefix); - g_string_append (buffer, VFS_PATH_URL_DELIMITER); - - url_str = vfs_path_build_url_params_str (element, (flags & VPF_STRIP_PASSWORD) == 0); - if (url_str != NULL) - { - g_string_append_len (buffer, url_str->str, url_str->len); - g_string_append_c (buffer, PATH_SEP); - g_string_free (url_str, TRUE); - } - } - -#ifdef HAVE_CHARSET - if ((flags & VPF_RECODE) == 0 && vfs_path_element_need_cleanup_converter (element)) - { - if ((flags & VPF_HIDE_CHARSET) == 0) - { - if ((!is_relative) - && (buffer->len == 0 || !IS_PATH_SEP (buffer->str[buffer->len - 1]))) - g_string_append (buffer, PATH_SEP_STR); - g_string_append (buffer, VFS_ENCODING_PREFIX); - g_string_append (buffer, element->encoding); - } - - if (recode_buffer == NULL) - recode_buffer = g_string_sized_new (32); - else - g_string_set_size (recode_buffer, 0); - - str_vfs_convert_from (element->dir.converter, element->path, recode_buffer); - vfs_append_from_path (recode_buffer->str, is_relative); - } - else -#endif - { - vfs_append_from_path (element->path, is_relative); - } - } - -#ifdef HAVE_CHARSET - if (recode_buffer != NULL) - g_string_free (recode_buffer, TRUE); -#endif - - return g_string_free (buffer, FALSE); -} - -#undef vfs_append_from_path - -/* --------------------------------------------------------------------------------------------- */ -/** - * Convert first elements_count elements from vfs_path_t to string representation. - * - * @param vpath pointer to vfs_path_t object - * @param elements_count count of first elements for convert - * - * @return pointer to newly created string. - */ - -char * -vfs_path_to_str_elements_count (const vfs_path_t *vpath, int elements_count) -{ - return vfs_path_to_str_flags (vpath, elements_count, VPF_NONE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Split path string to path elements with flags for change parce process. - * - * @param path_str VFS-path - * @param flags flags for parser - * - * @return pointer to newly created vfs_path_t object with filled path elements array. - */ - -vfs_path_t * -vfs_path_from_str_flags (const char *path_str, vfs_path_flag_t flags) -{ - vfs_path_t *vpath; - char *path; - - if (path_str == NULL) - return NULL; - - if ((flags & VPF_NO_CANON) == 0) - path = vfs_canon (path_str); - else - path = g_strdup (path_str); - - if (path == NULL) - return NULL; - - if ((flags & VPF_USE_DEPRECATED_PARSER) != 0 && vfs_path_is_str_path_deprecated (path)) - vpath = vfs_path_from_str_deprecated_parser (path); - else - vpath = vfs_path_from_str_uri_parser (path); - - vpath->str = vfs_path_to_str_flags (vpath, 0, flags); - g_free (path); - - return vpath; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Split path string to path elements. - * - * @param path_str VFS-path - * - * @return pointer to newly created vfs_path_t object with filled path elements array. - */ - -vfs_path_t * -vfs_path_from_str (const char *path_str) -{ - return vfs_path_from_str_flags (path_str, VPF_NONE); -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * Create new vfs_path_t object. - * - * @return pointer to newly created vfs_path_t object. - */ - -vfs_path_t * -vfs_path_new (gboolean relative) -{ - vfs_path_t *vpath; - - vpath = g_new0 (vfs_path_t, 1); - vpath->path = g_array_new (FALSE, TRUE, sizeof (vfs_path_element_t *)); - vpath->relative = relative; - - return vpath; -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * Get count of path elements. - * - * @param vpath pointer to vfs_path_t object - * - * @return count of path elements. - */ - -int -vfs_path_elements_count (const vfs_path_t *vpath) -{ - return (vpath != NULL && vpath->path != NULL) ? vpath->path->len : 0; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Add vfs_path_element_t object to end of list in vfs_path_t object - * @param vpath pointer to vfs_path_t object - * @param path_element pointer to vfs_path_element_t object - */ - -void -vfs_path_add_element (vfs_path_t *vpath, const vfs_path_element_t *path_element) -{ - g_array_append_val (vpath->path, path_element); - g_free (vpath->str); - vpath->str = vfs_path_to_str_flags (vpath, 0, VPF_NONE); -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * Get one path element by index. - * - * @param vpath pointer to vfs_path_t object. - * May be NULL. In this case NULL is returned and errno set to 0. - * @param element_index element index. May have negative value (in this case count was started at - * the end of list). If @element_index is out of range, NULL is returned and - * errno set to EINVAL. - * - * @return path element - */ - -const vfs_path_element_t * -vfs_path_get_by_index (const vfs_path_t *vpath, int element_index) -{ - int n; - - if (vpath == NULL) - { - errno = 0; - return NULL; - } - - n = vfs_path_elements_count (vpath); - - if (element_index < 0) - element_index += n; - - if (element_index < 0 || element_index > n) - { - errno = EINVAL; - return NULL; - } - - return g_array_index (vpath->path, vfs_path_element_t *, element_index); -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * Clone one path element - * - * @param element pointer to vfs_path_element_t object - * - * @return Newly allocated path element - */ - -vfs_path_element_t * -vfs_path_element_clone (const vfs_path_element_t *element) -{ - vfs_path_element_t *new_element = g_new (vfs_path_element_t, 1); - - new_element->user = g_strdup (element->user); - new_element->password = g_strdup (element->password); - new_element->host = g_strdup (element->host); - new_element->ipv6 = element->ipv6; - new_element->port = element->port; - new_element->path = g_strdup (element->path); - new_element->class = element->class; - new_element->vfs_prefix = g_strdup (element->vfs_prefix); -#ifdef HAVE_CHARSET - new_element->encoding = g_strdup (element->encoding); - if (vfs_path_element_need_cleanup_converter (element) && element->encoding != NULL) - new_element->dir.converter = str_crt_conv_from (element->encoding); - else - new_element->dir.converter = element->dir.converter; -#endif - new_element->dir.info = element->dir.info; - - return new_element; -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * Free one path element. - * - * @param element pointer to vfs_path_element_t object - * - */ - -void -vfs_path_element_free (vfs_path_element_t *element) -{ - if (element == NULL) - return; - - g_free (element->user); - g_free (element->password); - g_free (element->host); - g_free (element->path); - g_free (element->vfs_prefix); - -#ifdef HAVE_CHARSET - g_free (element->encoding); - - if (vfs_path_element_need_cleanup_converter (element)) - str_close_conv (element->dir.converter); -#endif - - g_free (element); -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * Clone path - * - * @param vpath pointer to vfs_path_t object - * - * @return Newly allocated path object - */ - -vfs_path_t * -vfs_path_clone (const vfs_path_t *vpath) -{ - vfs_path_t *new_vpath; - int vpath_element_index; - - if (vpath == NULL) - return NULL; - - new_vpath = vfs_path_new (vpath->relative); - - for (vpath_element_index = 0; vpath_element_index < vfs_path_elements_count (vpath); - vpath_element_index++) - { - vfs_path_element_t *path_element; - - path_element = vfs_path_element_clone (vfs_path_get_by_index (vpath, vpath_element_index)); - g_array_append_val (new_vpath->path, path_element); - } - new_vpath->str = g_strdup (vpath->str); - - return new_vpath; -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * Free vfs_path_t object. - * - * @param vpath pointer to vfs_path_t object - * @param free_str if TRUE the string representation of vpath is freed as well - * - * @return the string representation of vpath (i.e. NULL if free_str is TRUE) - */ - -char * -vfs_path_free (vfs_path_t *vpath, gboolean free_str) -{ - int vpath_element_index; - char *ret; - - if (vpath == NULL) - return NULL; - - for (vpath_element_index = 0; vpath_element_index < vfs_path_elements_count (vpath); - vpath_element_index++) - { - vfs_path_element_t *path_element; - - path_element = (vfs_path_element_t *) vfs_path_get_by_index (vpath, vpath_element_index); - vfs_path_element_free (path_element); - } - - g_array_free (vpath->path, TRUE); - - if (!free_str) - ret = vpath->str; - else - { - g_free (vpath->str); - ret = NULL; - } - - g_free (vpath); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/* - * Remove one path element by index - * - * @param vpath pointer to vfs_path_t object - * @param element_index element index. May have negative value (in this case count was started at the end of list). - * - */ - -void -vfs_path_remove_element_by_index (vfs_path_t *vpath, int element_index) -{ - vfs_path_element_t *element; - - if ((vpath == NULL) || (vfs_path_elements_count (vpath) == 1)) - return; - - if (element_index < 0) - element_index = vfs_path_elements_count (vpath) + element_index; - - element = (vfs_path_element_t *) vfs_path_get_by_index (vpath, element_index); - vpath->path = g_array_remove_index (vpath->path, element_index); - vfs_path_element_free (element); - g_free (vpath->str); - vpath->str = vfs_path_to_str_flags (vpath, 0, VPF_NONE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** Return VFS class for the given prefix */ - -struct vfs_class * -vfs_prefix_to_class (const char *prefix) -{ - guint i; - - /* Avoid first class (localfs) that would accept any prefix */ - for (i = 1; i < vfs__classes_list->len; i++) - { - struct vfs_class *vfs; - - vfs = VFS_CLASS (g_ptr_array_index (vfs__classes_list, i)); - if (vfs->which != NULL) - { - if (vfs->which (vfs, prefix) == -1) - continue; - return vfs; - } - - if (vfs->prefix != NULL && strncmp (prefix, vfs->prefix, strlen (vfs->prefix)) == 0) - return vfs; - } - - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -#ifdef HAVE_CHARSET - -/** get encoding after last #enc: or NULL, if part does not contain #enc: - * - * @param path null-terminated string - * @param len the maximum length of path, where #enc: should be searched - * - * @return newly allocated string. - */ - -char * -vfs_get_encoding (const char *path, ssize_t len) -{ - char *semi; - - /* try found #enc: */ - semi = g_strrstr_len (path, len, VFS_ENCODING_PREFIX); - if (semi == NULL) - return NULL; - - if (semi == path || IS_PATH_SEP (semi[-1])) - { - char *slash; - - semi += strlen (VFS_ENCODING_PREFIX); /* skip "#enc:" */ - slash = strchr (semi, PATH_SEP); - if (slash != NULL) - return g_strndup (semi, slash - semi); - return g_strdup (semi); - } - - return vfs_get_encoding (path, semi - path); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Check if need cleanup charset converter for vfs_path_element_t - * - * @param element part of path - * - * @return TRUE if need cleanup converter or FALSE otherwise - */ - -gboolean -vfs_path_element_need_cleanup_converter (const vfs_path_element_t *element) -{ - return (element->dir.converter != str_cnv_from_term && element->dir.converter != INVALID_CONV); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Change encoding for last part (vfs_path_element_t) of vpath - * - * @param vpath pointer to path structure - * encoding name of charset - * - * @return pointer to path structure (for use function in another functions) - */ -vfs_path_t * -vfs_path_change_encoding (vfs_path_t *vpath, const char *encoding) -{ - vfs_path_element_t *path_element; - - path_element = (vfs_path_element_t *) vfs_path_get_by_index (vpath, -1); - /* don't add current encoding */ - if ((path_element->encoding != NULL) && (strcmp (encoding, path_element->encoding) == 0)) - return vpath; - - g_free (path_element->encoding); - path_element->encoding = g_strdup (encoding); - - if (vfs_path_element_need_cleanup_converter (path_element)) - str_close_conv (path_element->dir.converter); - - path_element->dir.converter = str_crt_conv_from (path_element->encoding); - - g_free (vpath->str); - vpath->str = vfs_path_to_str_flags (vpath, 0, VPF_NONE); - return vpath; -} - -#endif - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Serialize vfs_path_t object to string - * - * @param vpath data for serialization - * @param error contain pointer to object for handle error code and message - * - * @return serialized vpath as newly allocated string - */ - -char * -vfs_path_serialize (const vfs_path_t *vpath, GError **mcerror) -{ - mc_config_t *cpath; - ssize_t element_index; - char *ret_value; - - mc_return_val_if_error (mcerror, FALSE); - - if ((vpath == NULL) || (vfs_path_elements_count (vpath) == 0)) - { - mc_propagate_error (mcerror, 0, "%s", "vpath object is empty"); - return NULL; - } - - cpath = mc_config_init (NULL, FALSE); - - for (element_index = 0; element_index < vfs_path_elements_count (vpath); element_index++) - { - char groupname[BUF_TINY]; - const vfs_path_element_t *element; - - g_snprintf (groupname, sizeof (groupname), "path-element-%zd", element_index); - element = vfs_path_get_by_index (vpath, element_index); - /* convert one element to config group */ - - mc_config_set_string_raw (cpath, groupname, "path", element->path); - mc_config_set_string_raw (cpath, groupname, "class-name", element->class->name); -#ifdef HAVE_CHARSET - mc_config_set_string_raw (cpath, groupname, "encoding", element->encoding); -#endif - mc_config_set_string_raw (cpath, groupname, "vfs_prefix", element->vfs_prefix); - - mc_config_set_string_raw (cpath, groupname, "user", element->user); - mc_config_set_string_raw (cpath, groupname, "password", element->password); - mc_config_set_string_raw (cpath, groupname, "host", element->host); - if (element->port != 0) - mc_config_set_int (cpath, groupname, "port", element->port); - } - - ret_value = mc_serialize_config (cpath, mcerror); - mc_config_deinit (cpath); - return ret_value; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Deserialize string to vfs_path_t object - * - * @param data data for serialization - * @param error contain pointer to object for handle error code and message - * - * @return newly allocated vfs_path_t object - */ - -vfs_path_t * -vfs_path_deserialize (const char *data, GError **mcerror) -{ - mc_config_t *cpath; - size_t element_index; - vfs_path_t *vpath; - - mc_return_val_if_error (mcerror, FALSE); - - cpath = mc_deserialize_config (data, mcerror); - if (cpath == NULL) - return NULL; - - vpath = vfs_path_new (FALSE); - - for (element_index = 0;; element_index++) - { - struct vfs_class *eclass; - vfs_path_element_t *element; - char *cfg_value; - char groupname[BUF_TINY]; - - g_snprintf (groupname, sizeof (groupname), "path-element-%zu", element_index); - if (!mc_config_has_group (cpath, groupname)) - break; - - cfg_value = mc_config_get_string_raw (cpath, groupname, "class-name", NULL); - eclass = vfs_get_class_by_name (cfg_value); - if (eclass == NULL) - { - vfs_path_free (vpath, TRUE); - g_set_error (mcerror, MC_ERROR, 0, "Unable to find VFS class by name '%s'", cfg_value); - g_free (cfg_value); - mc_config_deinit (cpath); - return NULL; - } - g_free (cfg_value); - - element = g_new0 (vfs_path_element_t, 1); - element->class = eclass; - element->path = mc_config_get_string_raw (cpath, groupname, "path", NULL); - -#ifdef HAVE_CHARSET - element->encoding = mc_config_get_string_raw (cpath, groupname, "encoding", NULL); - element->dir.converter = - (element->encoding != NULL) ? str_crt_conv_from (element->encoding) : INVALID_CONV; -#endif - - element->vfs_prefix = mc_config_get_string_raw (cpath, groupname, "vfs_prefix", NULL); - - element->user = mc_config_get_string_raw (cpath, groupname, "user", NULL); - element->password = mc_config_get_string_raw (cpath, groupname, "password", NULL); - element->host = mc_config_get_string_raw (cpath, groupname, "host", NULL); - element->port = mc_config_get_int (cpath, groupname, "port", 0); - - vpath->path = g_array_append_val (vpath->path, element); - } - - mc_config_deinit (cpath); - if (vfs_path_elements_count (vpath) == 0) - { - vfs_path_free (vpath, TRUE); - g_set_error (mcerror, MC_ERROR, 0, "No any path elements found"); - return NULL; - } - vpath->str = vfs_path_to_str_flags (vpath, 0, VPF_NONE); - - return vpath; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Build vfs_path_t object from arguments. - * - * @param first_element of path - * @param ... path tokens, terminated by NULL - * - * @return newly allocated vfs_path_t object - */ - -vfs_path_t * -vfs_path_build_filename (const char *first_element, ...) -{ - va_list args; - char *str_path; - vfs_path_t *vpath; - - if (first_element == NULL) - return NULL; - - va_start (args, first_element); - str_path = mc_build_filenamev (first_element, args); - va_end (args); - vpath = vfs_path_from_str (str_path); - g_free (str_path); - return vpath; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Append tokens to path object - * - * @param vpath path object - * @param first_element of path - * @param ... NULL-terminated strings - * - * @return newly allocated path object - */ - -vfs_path_t * -vfs_path_append_new (const vfs_path_t *vpath, const char *first_element, ...) -{ - va_list args; - char *str_path; - const char *result_str; - vfs_path_t *ret_vpath; - - if (vpath == NULL || first_element == NULL) - return NULL; - - va_start (args, first_element); - str_path = mc_build_filenamev (first_element, args); - va_end (args); - - result_str = vfs_path_as_str (vpath); - ret_vpath = vfs_path_build_filename (result_str, str_path, (char *) NULL); - g_free (str_path); - - return ret_vpath; - -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Append vpath_t tokens to path object - * - * @param first_vpath vpath objects - * @param ... NULL-terminated vpath objects - * - * @return newly allocated path object - */ - -vfs_path_t * -vfs_path_append_vpath_new (const vfs_path_t *first_vpath, ...) -{ - va_list args; - vfs_path_t *ret_vpath; - const vfs_path_t *current_vpath = first_vpath; - - if (first_vpath == NULL) - return NULL; - - ret_vpath = vfs_path_new (FALSE); - - va_start (args, first_vpath); - do - { - int vindex; - - for (vindex = 0; vindex < vfs_path_elements_count (current_vpath); vindex++) - { - vfs_path_element_t *path_element; - - path_element = vfs_path_element_clone (vfs_path_get_by_index (current_vpath, vindex)); - g_array_append_val (ret_vpath->path, path_element); - } - current_vpath = va_arg (args, const vfs_path_t *); - } - while (current_vpath != NULL); - va_end (args); - - ret_vpath->str = vfs_path_to_str_flags (ret_vpath, 0, VPF_NONE); - - return ret_vpath; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * get tokens count in path. - * - * @param vpath path object - * - * @return count of tokens - */ - -size_t -vfs_path_tokens_count (const vfs_path_t *vpath) -{ - size_t count_tokens = 0; - int element_index; - - if (vpath == NULL) - return 0; - - for (element_index = 0; element_index < vfs_path_elements_count (vpath); element_index++) - { - const vfs_path_element_t *element; - const char *token, *prev_token; - - element = vfs_path_get_by_index (vpath, element_index); - - for (prev_token = element->path; (token = strchr (prev_token, PATH_SEP)) != NULL; - prev_token = token + 1) - { - /* skip empty substring */ - if (token != prev_token) - count_tokens++; - } - - if (*prev_token != '\0') - count_tokens++; - } - - return count_tokens; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Get subpath by tokens - * - * @param vpath path object - * @param start_position first token for got/ Started from 0. - * If negative, then position will be relative to end of path - * @param length count of tokens - * - * @return newly allocated string with path tokens separated by slash - */ - -char * -vfs_path_tokens_get (const vfs_path_t *vpath, ssize_t start_position, ssize_t length) -{ - GString *ret_tokens, *element_tokens; - int element_index; - size_t tokens_count = vfs_path_tokens_count (vpath); - - if (vpath == NULL) - return NULL; - - if (length == 0) - length = tokens_count; - - if (length < 0) - length = tokens_count + length; - - if (start_position < 0) - start_position = (ssize_t) tokens_count + start_position; - - if (start_position < 0) - return NULL; - - if (start_position >= (ssize_t) tokens_count) - return NULL; - - if (start_position + (ssize_t) length > (ssize_t) tokens_count) - length = tokens_count - start_position; - - ret_tokens = g_string_sized_new (32); - element_tokens = g_string_sized_new (32); - - for (element_index = 0; element_index < vfs_path_elements_count (vpath); element_index++) - { - const vfs_path_element_t *element; - char **path_tokens, **iterator; - - g_string_assign (element_tokens, ""); - element = vfs_path_get_by_index (vpath, element_index); - path_tokens = g_strsplit (element->path, PATH_SEP_STR, -1); - - for (iterator = path_tokens; *iterator != NULL; iterator++) - { - if (**iterator != '\0') - { - if (start_position == 0) - { - if (length == 0) - { - vfs_path_tokens_add_class_info (element, ret_tokens, element_tokens); - g_string_free (element_tokens, TRUE); - g_strfreev (path_tokens); - return g_string_free (ret_tokens, FALSE); - } - length--; - if (element_tokens->len != 0) - g_string_append_c (element_tokens, PATH_SEP); - g_string_append (element_tokens, *iterator); - } - else - start_position--; - } - } - g_strfreev (path_tokens); - vfs_path_tokens_add_class_info (element, ret_tokens, element_tokens); - } - - g_string_free (element_tokens, TRUE); - return g_string_free (ret_tokens, !(start_position == 0 && length == 0)); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Get subpath by tokens - * - * @param vpath path object - * @param start_position first token for got/ Started from 0. - * If negative, then position will be relative to end of path - * @param length count of tokens - * - * @return newly allocated path object with path tokens separated by slash - */ - -vfs_path_t * -vfs_path_vtokens_get (const vfs_path_t *vpath, ssize_t start_position, ssize_t length) -{ - char *str_tokens; - vfs_path_t *ret_vpath = NULL; - - str_tokens = vfs_path_tokens_get (vpath, start_position, length); - if (str_tokens != NULL) - { - ret_vpath = vfs_path_from_str_flags (str_tokens, VPF_NO_CANON); - g_free (str_tokens); - } - return ret_vpath; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Build URL parameters (such as user:pass @ host:port) from one path element object - * - * @param element path element - * @param keep_password TRUE or FALSE - * - * @return newly allocated non-empty string or NULL - */ - -GString * -vfs_path_build_url_params_str (const vfs_path_element_t *element, gboolean keep_password) -{ - GString *buffer; - - if (element == NULL) - return NULL; - - buffer = g_string_sized_new (64); - - if (element->user != NULL) - g_string_append (buffer, element->user); - - if (element->password != NULL && keep_password) - { - g_string_append_c (buffer, ':'); - g_string_append (buffer, element->password); - } - - if (element->host != NULL) - { - if ((element->user != NULL) || (element->password != NULL)) - g_string_append_c (buffer, '@'); - if (element->ipv6) - g_string_append_c (buffer, '['); - g_string_append (buffer, element->host); - if (element->ipv6) - g_string_append_c (buffer, ']'); - - if (element->port != 0) - g_string_append_printf (buffer, ":%d", element->port); - } - - if (buffer->len != 0) - return buffer; - - g_string_free (buffer, TRUE); - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Build pretty string representation of one path_element_t object - * - * @param element path element - * - * @return newly allocated string - */ - -GString * -vfs_path_element_build_pretty_path_str (const vfs_path_element_t *element) -{ - GString *url_params, *pretty_path; - - pretty_path = g_string_new (element->class->prefix); - g_string_append (pretty_path, VFS_PATH_URL_DELIMITER); - - url_params = vfs_path_build_url_params_str (element, FALSE); - if (url_params != NULL) - { - g_string_append_len (pretty_path, url_params->str, url_params->len); - g_string_free (url_params, TRUE); - } - - if (!IS_PATH_SEP (*element->path)) - g_string_append_c (pretty_path, PATH_SEP); - - return g_string_append (pretty_path, element->path); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Compare two path objects as strings - * - * @param vpath1 first path object - * @param vpath2 second vpath object - * - * @return integer value like to strcmp. - */ - -gboolean -vfs_path_equal (const vfs_path_t *vpath1, const vfs_path_t *vpath2) -{ - const char *path1, *path2; - gboolean ret_val; - - if (vpath1 == NULL || vpath2 == NULL) - return FALSE; - - path1 = vfs_path_as_str (vpath1); - path2 = vfs_path_as_str (vpath2); - - ret_val = strcmp (path1, path2) == 0; - - return ret_val; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Compare two path objects as strings - * - * @param vpath1 first path object - * @param vpath2 second vpath object - * @param len number of first 'len' characters - * - * @return integer value like to strcmp. - */ - -gboolean -vfs_path_equal_len (const vfs_path_t *vpath1, const vfs_path_t *vpath2, size_t len) -{ - const char *path1, *path2; - gboolean ret_val; - - if (vpath1 == NULL || vpath2 == NULL) - return FALSE; - - path1 = vfs_path_as_str (vpath1); - path2 = vfs_path_as_str (vpath2); - - ret_val = strncmp (path1, path2, len) == 0; - - return ret_val; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Calculate path length in string representation - * - * @param vpath path object - * - * @return length of path - */ - -size_t -vfs_path_len (const vfs_path_t *vpath) -{ - if (vpath == NULL) - return 0; - - return strlen (vpath->str); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Convert relative vpath object to absolute - * - * @param vpath path object - * - * @return absolute path object - */ - -vfs_path_t * -vfs_path_to_absolute (const vfs_path_t *vpath) -{ - vfs_path_t *absolute_vpath; - const char *path_str; - - if (!vpath->relative) - return vfs_path_clone (vpath); - - path_str = vfs_path_as_str (vpath); - absolute_vpath = vfs_path_from_str (path_str); - return absolute_vpath; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/vfs/path.h b/recipes/wip/files/mc/source/lib/vfs/path.h deleted file mode 100644 index c3f044d17d..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/path.h +++ /dev/null @@ -1,152 +0,0 @@ -#ifndef MC__VFS_PATH_H -#define MC__VFS_PATH_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define VFS_PATH_URL_DELIMITER "://" - -/*** enums ***************************************************************************************/ - -typedef enum -{ - VPF_NONE = 0, - VPF_NO_CANON = 1 << 0, - VPF_USE_DEPRECATED_PARSER = 1 << 1, - VPF_RECODE = 1 << 2, - VPF_STRIP_HOME = 1 << 3, - VPF_STRIP_PASSWORD = 1 << 4, - VPF_HIDE_CHARSET = 1 << 5 -} vfs_path_flag_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -struct vfs_class; -struct vfs_url_struct; - -typedef struct -{ - gboolean relative; - GArray *path; - char *str; -} vfs_path_t; - -typedef struct -{ - char *user; - char *password; - char *host; - gboolean ipv6; - int port; - char *path; - struct vfs_class *class; -#ifdef HAVE_CHARSET - char *encoding; -#endif - char *vfs_prefix; - - struct - { -#ifdef HAVE_CHARSET - GIConv converter; -#endif - DIR *info; - } dir; -} vfs_path_element_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -vfs_path_t *vfs_path_new (gboolean relative); -vfs_path_t *vfs_path_clone (const vfs_path_t * vpath); -void vfs_path_remove_element_by_index (vfs_path_t * vpath, int element_index); -char *vfs_path_free (vfs_path_t * path, gboolean free_str); -int vfs_path_elements_count (const vfs_path_t * path); - -char *vfs_path_to_str_elements_count (const vfs_path_t * path, int elements_count); -char *vfs_path_to_str_flags (const vfs_path_t * vpath, int elements_count, vfs_path_flag_t flags); -vfs_path_t *vfs_path_from_str (const char *path_str); -vfs_path_t *vfs_path_from_str_flags (const char *path_str, vfs_path_flag_t flags); -vfs_path_t *vfs_path_build_filename (const char *first_element, ...); -vfs_path_t *vfs_path_append_new (const vfs_path_t * vpath, const char *first_element, ...); -vfs_path_t *vfs_path_append_vpath_new (const vfs_path_t * first_vpath, ...); -size_t vfs_path_tokens_count (const vfs_path_t * vpath); -char *vfs_path_tokens_get (const vfs_path_t * vpath, ssize_t start_position, ssize_t length); -vfs_path_t *vfs_path_vtokens_get (const vfs_path_t * vpath, ssize_t start_position, ssize_t length); - -void vfs_path_add_element (vfs_path_t * vpath, const vfs_path_element_t * path_element); -const vfs_path_element_t *vfs_path_get_by_index (const vfs_path_t * path, int element_index); -vfs_path_element_t *vfs_path_element_clone (const vfs_path_element_t * element); -void vfs_path_element_free (vfs_path_element_t * element); - -struct vfs_class *vfs_prefix_to_class (const char *prefix); - -#ifdef HAVE_CHARSET -char *vfs_get_encoding(const char *path, ssize_t len); -gboolean vfs_path_element_need_cleanup_converter (const vfs_path_element_t * element); -vfs_path_t *vfs_path_change_encoding (vfs_path_t * vpath, const char *encoding); -#endif - -char *vfs_path_serialize (const vfs_path_t * vpath, GError ** error); -vfs_path_t *vfs_path_deserialize (const char *data, GError ** error); - -GString *vfs_path_build_url_params_str (const vfs_path_element_t * element, gboolean keep_password); -GString *vfs_path_element_build_pretty_path_str (const vfs_path_element_t * element); - -size_t vfs_path_len (const vfs_path_t * vpath); -gboolean vfs_path_equal (const vfs_path_t * vpath1, const vfs_path_t * vpath2); -gboolean vfs_path_equal_len (const vfs_path_t * vpath1, const vfs_path_t * vpath2, size_t len); -vfs_path_t *vfs_path_to_absolute (const vfs_path_t * vpath); - -/*** inline functions ****************************************************************************/ - -static inline gboolean -vfs_path_element_valid (const vfs_path_element_t *element) -{ - return (element != NULL && element->class != NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline const char * -vfs_path_get_last_path_str (const vfs_path_t *vpath) -{ - const vfs_path_element_t *element; - - if (vpath == NULL) - return NULL; - element = vfs_path_get_by_index (vpath, -1); - return (element != NULL) ? element->path : NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline const struct vfs_class * -vfs_path_get_last_path_vfs (const vfs_path_t *vpath) -{ - const vfs_path_element_t *element; - - if (vpath == NULL) - return NULL; - element = vfs_path_get_by_index (vpath, -1); - return (element != NULL) ? element->class : NULL; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Convert vfs_path_t to string representation. - * - * @param vpath pointer to vfs_path_t object - * - * @return pointer to constant string - */ - -static inline const char * -vfs_path_as_str (const vfs_path_t *vpath) -{ - return (vpath == NULL ? NULL : vpath->str); -} - -/* --------------------------------------------------------------------------------------------- */ - -#endif diff --git a/recipes/wip/files/mc/source/lib/vfs/utilvfs.c b/recipes/wip/files/mc/source/lib/vfs/utilvfs.c deleted file mode 100644 index 205b1cc1b2..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/utilvfs.c +++ /dev/null @@ -1,477 +0,0 @@ -/* - Utilities for VFS modules. - - Copyright (C) 1988-2025 - Free Software Foundation, Inc. - - Copyright (C) 1995, 1996 Miguel de Icaza - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** - * \file - * \brief Source: Utilities for VFS modules - * \author Miguel de Icaza - * \date 1995, 1996 - */ - -#include - -#include -#include -#include -#include -#include -#include - -#if !defined (HAVE_UTIMENSAT) && defined (HAVE_UTIME_H) -#include -#endif - -#include "lib/global.h" -#include "lib/unixcompat.h" -#include "lib/widget.h" /* message() */ -#include "lib/strutil.h" /* INVALID_CONV */ - -#include "vfs.h" -#include "utilvfs.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#ifndef TUNMLEN -#define TUNMLEN 256 -#endif -#ifndef TGNMLEN -#define TGNMLEN 256 -#endif - -#define MC_HISTORY_VFS_PASSWORD "mc.vfs.password" - -/* - * FIXME2, the "-993" is to reduce the chance of a hit on the first lookup. - */ -#define GUID_DEFAULT_CONST -993 - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/** Get current username - * - * @return g_malloc()ed string with the name of the currently logged in - * user ("anonymous" if uid is not registered in the system) - */ - -char * -vfs_get_local_username (void) -{ - struct passwd *p_i; - - p_i = getpwuid (geteuid ()); - - /* Unknown UID, strange */ - return (p_i != NULL && p_i->pw_name != NULL) ? g_strdup (p_i->pw_name) : g_strdup ("anonymous"); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Look up a user or group name from a uid/gid, maintaining a cache. - * FIXME, for now it's a one-entry cache. - * This file should be modified for non-unix systems to do something - * reasonable. - */ - -int -vfs_finduid (const char *uname) -{ - static int saveuid = GUID_DEFAULT_CONST; - static char saveuname[TUNMLEN] = "\0"; - - size_t uname_len; - - uname_len = strlen (uname); - - if (uname[0] != saveuname[0] /* Quick test w/o proc call */ - || strncmp (uname, saveuname, MIN (uname_len, TUNMLEN - 1)) != 0) - { - struct passwd *pw; - - g_strlcpy (saveuname, uname, TUNMLEN); - pw = getpwnam (uname); - if (pw != NULL) - saveuid = pw->pw_uid; - else - { - static int my_uid = GUID_DEFAULT_CONST; - - if (my_uid < 0) - my_uid = getuid (); - - saveuid = my_uid; - } - } - - return saveuid; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_findgid (const char *gname) -{ - static int savegid = GUID_DEFAULT_CONST; - static char savegname[TGNMLEN] = "\0"; - - size_t gname_len; - - gname_len = strlen (gname); - - if (gname[0] != savegname[0] /* Quick test w/o proc call */ - || strncmp (gname, savegname, MIN (gname_len, TGNMLEN - 1)) != 0) - { - struct group *gr; - - g_strlcpy (savegname, gname, TGNMLEN); - gr = getgrnam (gname); - if (gr != NULL) - savegid = gr->gr_gid; - else - { - static int my_gid = GUID_DEFAULT_CONST; - - if (my_gid < 0) - my_gid = getgid (); - - savegid = my_gid; - } - } - - return savegid; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Create a temporary file with a name resembling the original. - * This is needed e.g. for local copies requested by extfs. - * Some extfs scripts may look at the extension. - * We also protect stupid scripts against dangerous names. - */ - -int -vfs_mkstemps (vfs_path_t **pname_vpath, const char *prefix, const char *param_basename) -{ - const char *p; - GString *suffix; - int shift; - int fd; - - /* Strip directories */ - p = strrchr (param_basename, PATH_SEP); - if (p == NULL) - p = param_basename; - else - p++; - - /* Protection against very long names */ - shift = strlen (p) - (MC_MAXPATHLEN - 16); - if (shift > 0) - p += shift; - - suffix = g_string_sized_new (32); - - /* Protection against unusual characters */ - for (; *p != '\0' && *p != '#'; p++) - if (strchr (".-_@", *p) != NULL || g_ascii_isalnum (*p)) - g_string_append_c (suffix, *p); - - fd = mc_mkstemps (pname_vpath, prefix, suffix->str); - g_string_free (suffix, TRUE); - - return fd; -} - -/* --------------------------------------------------------------------------------------------- */ -/** Extract the hostname and username from the path - * - * Format of the path is [user@]hostname:port/remote-dir, e.g.: - * - * ftp://sunsite.unc.edu/pub/linux - * ftp://miguel@sphinx.nuclecu.unam.mx/c/nc - * ftp://tsx-11.mit.edu:8192/ - * ftp://joe@foo.edu:11321/private - * ftp://joe:password@foo.se - * - * @param path is an input string to be parsed - * @param default_port is an input default port - * @param flags are parsing modifier flags (@see vfs_url_flags_t) - * - * @return g_malloc()ed url info. - * If the user is empty, e.g. ftp://@roxanne/private, and URL_USE_ANONYMOUS - * is not set, then the current login name is supplied. - * Return value is a g_malloc()ed structure with the pathname relative to the - * host. - */ - -vfs_path_element_t * -vfs_url_split (const char *path, int default_port, vfs_url_flags_t flags) -{ - vfs_path_element_t *path_element; - - char *pcopy; - size_t pcopy_len; - const char *pend; - char *colon, *at, *rest; - - path_element = g_new0 (vfs_path_element_t, 1); - path_element->port = default_port; - - pcopy_len = strlen (path); - pcopy = g_strndup (path, pcopy_len); - pend = pcopy + pcopy_len; - - if ((flags & URL_NOSLASH) == 0) - { - char *dir; - - /* locate path component */ - dir = strchr (pcopy, PATH_SEP); - - if (dir == NULL) - path_element->path = g_strdup (PATH_SEP_STR); - else - { - path_element->path = g_strndup (dir, pcopy_len - (size_t) (dir - pcopy)); - *dir = '\0'; - } - } - - /* search for any possible user */ - at = strrchr (pcopy, '@'); - - /* We have a username */ - if (at == NULL) - rest = pcopy; - else - { - char *inner_colon; - - *at = '\0'; - inner_colon = strchr (pcopy, ':'); - if (inner_colon != NULL) - { - *inner_colon = '\0'; - inner_colon++; - path_element->password = g_strdup (inner_colon); - } - - if (*pcopy != '\0') - path_element->user = g_strdup (pcopy); - - if (pend == at + 1) - rest = at; - else - rest = at + 1; - } - - if ((flags & URL_USE_ANONYMOUS) == 0) - { - g_free (path_element->user); - path_element->user = vfs_get_local_username (); - } - /* Check if the host comes with a port spec, if so, chop it */ - if (*rest != '[') - colon = strchr (rest, ':'); - else - { - colon = strchr (++rest, ']'); - if (colon != NULL) - { - colon[0] = '\0'; - colon[1] = '\0'; - colon++; - } - else - { - vfs_path_element_free (path_element); - g_free (pcopy); - return NULL; - } - } - - if (colon != NULL) - { - *colon = '\0'; - /* cppcheck-suppress invalidscanf */ - if (sscanf (colon + 1, "%d", &path_element->port) == 1) - { - if (path_element->port <= 0 || path_element->port >= 65536) - path_element->port = default_port; - } - else - while (*(++colon) != '\0') - { - switch (*colon) - { - case 'C': - path_element->port = 1; - break; - case 'r': - path_element->port = 2; - break; - default: - break; - } - } - } - - path_element->host = g_strdup (rest); - g_free (pcopy); -#ifdef HAVE_CHARSET - path_element->dir.converter = INVALID_CONV; -#endif - - return path_element; -} - -/* --------------------------------------------------------------------------------------------- */ - -void __attribute__((noreturn)) vfs_die (const char *m) -{ - message (D_ERROR, _("Internal error:"), "%s", m); - exit (EXIT_FAILURE); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -vfs_get_password (const char *msg) -{ - return input_dialog (msg, _("Password:"), MC_HISTORY_VFS_PASSWORD, INPUT_PASSWORD, - INPUT_COMPLETE_NONE); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_utime (const char *path, mc_timesbuf_t *times) -{ -#ifdef HAVE_UTIMENSAT - return utimensat (AT_FDCWD, path, *times, AT_SYMLINK_NOFOLLOW); -#else - return utime (path, times); -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_get_timespecs_from_timesbuf (mc_timesbuf_t *times, mc_timespec_t *atime, mc_timespec_t *mtime) -{ -#ifdef HAVE_UTIMENSAT - atime->tv_sec = (*times)[0].tv_sec; - atime->tv_nsec = (*times)[0].tv_nsec; - mtime->tv_sec = (*times)[1].tv_sec; - mtime->tv_nsec = (*times)[1].tv_nsec; -#else - atime->tv_sec = times->actime; - atime->tv_nsec = 0; - mtime->tv_sec = times->modtime; - mtime->tv_nsec = 0; -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_get_timesbuf_from_stat (const struct stat *s, mc_timesbuf_t *times) -{ -#ifdef HAVE_UTIMENSAT -#ifdef HAVE_STRUCT_STAT_ST_MTIM - /* POSIX IEEE Std 1003.1-2008 should be the preferred way - * - * AIX has internal type st_timespec_t conflicting with timespec, so assign per field, for details see: - * https://github.com/libuv/libuv/pull/4404 - */ - (*times)[0].tv_sec = s->st_atim.tv_sec; - (*times)[0].tv_nsec = s->st_atim.tv_nsec; - (*times)[1].tv_sec = s->st_mtim.tv_sec; - (*times)[1].tv_nsec = s->st_mtim.tv_nsec; -#elif HAVE_STRUCT_STAT_ST_MTIMESPEC - /* Modern BSD solution */ - (*times)[0] = s->st_atimespec; - (*times)[1] = s->st_mtimespec; -#elif HAVE_STRUCT_STAT_ST_MTIMENSEC - /* Legacy BSD solution */ - (*times)[0].tv_sec = s->st_atime; - (*times)[0].tv_nsec = s->st_atimensec; - (*times)[1].tv_sec = s->st_mtime; - (*times)[1].tv_nsec = s->st_mtimensec; -#else -#error "Found utimensat for nanosecond timestamps, but unsupported struct stat format!" -#endif -#else - times->actime = s->st_atime; - times->modtime = s->st_mtime; -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_copy_stat_times (const struct stat *src, struct stat *dst) -{ - dst->st_atime = src->st_atime; - dst->st_mtime = src->st_mtime; - dst->st_ctime = src->st_ctime; - -#ifdef HAVE_STRUCT_STAT_ST_MTIM - dst->st_atim.tv_nsec = src->st_atim.tv_nsec; - dst->st_mtim.tv_nsec = src->st_mtim.tv_nsec; - dst->st_ctim.tv_nsec = src->st_ctim.tv_nsec; -#elif HAVE_STRUCT_STAT_ST_MTIMESPEC - dst->st_atimespec.tv_nsec = src->st_atimespec.tv_nsec; - dst->st_mtimespec.tv_nsec = src->st_mtimespec.tv_nsec; - dst->st_ctimespec.tv_nsec = src->st_ctimespec.tv_nsec; -#elif HAVE_STRUCT_STAT_ST_MTIMENSEC - dst->st_atimensec = src->st_atimensec; - dst->st_mtimensec = src->st_mtimensec; - dst->st_ctimensec = src->st_ctimensec; -#endif -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_zero_stat_times (struct stat *s) -{ - const struct stat empty = { 0 }; - - vfs_copy_stat_times (&empty, s); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/vfs/utilvfs.h b/recipes/wip/files/mc/source/lib/vfs/utilvfs.h deleted file mode 100644 index aad3c892d0..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/utilvfs.h +++ /dev/null @@ -1,72 +0,0 @@ - -/** - * \file - * \brief Header: Utilities for VFS modules - * \author Miguel de Icaza - * \date 1995, 1996 - */ - -#ifndef MC_VFS_UTILVFS_H -#define MC_VFS_UTILVFS_H - -#include - -#include "lib/global.h" -#include "path.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/** Bit flags for vfs_url_split() - * - * Modify parsing parameters according to flag meaning. - * @see vfs_url_split() - */ -typedef enum -{ - URL_FLAGS_NONE = 0, - URL_USE_ANONYMOUS = 1, /**< if set, empty *user will contain NULL instead of current */ - URL_NOSLASH = 2 /**< if set, 'proto://' part in url is not searched */ -} vfs_url_flags_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -int vfs_finduid (const char *name); -int vfs_findgid (const char *name); - -vfs_path_element_t *vfs_url_split (const char *path, int default_port, vfs_url_flags_t flags); -int vfs_split_text (char *p); - -int vfs_mkstemps (vfs_path_t ** pname_vpath, const char *prefix, const char *basename); -MC_MOCKABLE void vfs_die (const char *msg); -char *vfs_get_password (const char *msg); - -char *vfs_get_local_username (void); - -gboolean vfs_parse_filetype (const char *s, size_t *ret_skipped, mode_t * ret_type); -gboolean vfs_parse_fileperms (const char *s, size_t *ret_skipped, mode_t * ret_perms); -gboolean vfs_parse_filemode (const char *s, size_t *ret_skipped, mode_t * ret_mode); -gboolean vfs_parse_raw_filemode (const char *s, size_t *ret_skipped, mode_t * ret_mode); - -void vfs_parse_ls_lga_init (void); -gboolean vfs_parse_ls_lga (const char *p, struct stat *s, char **filename, char **linkname, - size_t *filename_pos); -size_t vfs_parse_ls_lga_get_final_spaces (void); -gboolean vfs_parse_month (const char *str, struct tm *tim); -int vfs_parse_filedate (int idx, time_t * t); - -int vfs_utime (const char *path, mc_timesbuf_t *times); -void vfs_get_timespecs_from_timesbuf (mc_timesbuf_t *times, mc_timespec_t *atime, - mc_timespec_t *mtime); -void vfs_get_timesbuf_from_stat (const struct stat *s, mc_timesbuf_t *times); -void vfs_copy_stat_times (const struct stat *src, struct stat *dst); -void vfs_zero_stat_times (struct stat *s); - -/*** inline functions ****************************************************************************/ - -#endif diff --git a/recipes/wip/files/mc/source/lib/vfs/vfs.c b/recipes/wip/files/mc/source/lib/vfs/vfs.c deleted file mode 100644 index d5159c1e90..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/vfs.c +++ /dev/null @@ -1,772 +0,0 @@ -/* - Virtual File System switch code - - Copyright (C) 1995-2025 - Free Software Foundation, Inc. - - Written by: 1995 Miguel de Icaza - Jakub Jelinek, 1995 - Pavel Machek, 1998 - Slava Zanko , 2011-2013 - Andrew Borodin , 2011-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** - * \file - * \brief Source: Virtual File System switch code - * \author Miguel de Icaza - * \author Jakub Jelinek - * \author Pavel Machek - * \date 1995, 1998 - * \warning functions like extfs_lstat() have right to destroy any - * strings you pass to them. This is actually ok as you g_strdup what - * you are passing to them, anyway; still, beware. - * - * Namespace: exports *many* functions with vfs_ prefix; exports - * parse_ls_lga and friends which do not have that prefix. - */ - -#include - -#include -#include - -#ifdef __linux__ -#ifdef HAVE_LINUX_FS_H -#include -#endif /* HAVE_LINUX_FS_H */ -#ifdef HAVE_SYS_IOCTL_H -#include -#endif /* HAVE_SYS_IOCTL_H */ -#endif /* __linux__ */ - -#include "lib/global.h" -#include "lib/strutil.h" -#include "lib/util.h" -#include "lib/widget.h" /* message() */ -#include "lib/event.h" - -#ifdef HAVE_CHARSET -#include "lib/charsets.h" -#endif - -#include "vfs.h" -#include "utilvfs.h" -#include "gc.h" - -/* TODO: move it to the separate .h */ -extern struct vfs_dirent *mc_readdir_result; -extern GPtrArray *vfs__classes_list; -extern GString *vfs_str_buffer; -extern vfs_class *current_vfs; - -/*** global variables ****************************************************************************/ - -MC_MOCKABLE struct vfs_dirent *mc_readdir_result = NULL; -MC_MOCKABLE GPtrArray *vfs__classes_list = NULL; -MC_MOCKABLE GString *vfs_str_buffer = NULL; -MC_MOCKABLE vfs_class *current_vfs = NULL; - -/*** file scope macro definitions ****************************************************************/ - -#define VFS_FIRST_HANDLE 100 - -/*** file scope type declarations ****************************************************************/ - -struct vfs_openfile -{ - int handle; - vfs_class *vclass; - void *fsinfo; -}; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/** They keep track of the current directory */ -static vfs_path_t *current_path = NULL; - -static GPtrArray *vfs_openfiles = NULL; -static long vfs_free_handle_list = -1; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/* now used only by vfs_translate_path, but could be used in other vfs - * plugin to automatic detect encoding - * path - path to translate - * size - how many bytes from path translate - * defcnv - converter, that is used as default, when path does not contain any - * #enc: substring - * buffer - used to store result of translation - */ - -static estr_t -_vfs_translate_path (const char *path, int size, GIConv defcnv, GString *buffer) -{ - estr_t state = ESTR_SUCCESS; -#ifdef HAVE_CHARSET - const char *semi; - - if (size == 0) - return ESTR_SUCCESS; - - size = (size > 0) ? size : (signed int) strlen (path); - - /* try found /#enc: */ - semi = g_strrstr_len (path, size, VFS_ENCODING_PREFIX); - if (semi != NULL && (semi == path || IS_PATH_SEP (semi[-1]))) - { - char encoding[16]; - const char *slash; - GIConv coder = INVALID_CONV; - int ms; - - /* first must be translated part before #enc: */ - ms = semi - path; - - state = _vfs_translate_path (path, ms, defcnv, buffer); - - if (state != ESTR_SUCCESS) - return state; - - /* now can be translated part after #enc: */ - semi += strlen (VFS_ENCODING_PREFIX); /* skip "#enc:" */ - slash = strchr (semi, PATH_SEP); - /* ignore slashes after size; */ - if (slash - path >= size) - slash = NULL; - - ms = (slash != NULL) ? slash - semi : (int) strlen (semi); - ms = MIN ((unsigned int) ms, sizeof (encoding) - 1); - /* limit encoding size (ms) to path size (size) */ - if (semi + ms > path + size) - ms = path + size - semi; - memcpy (encoding, semi, ms); - encoding[ms] = '\0'; - - if (is_supported_encoding (encoding)) - coder = str_crt_conv_to (encoding); - - if (coder != INVALID_CONV) - { - if (slash != NULL) - state = str_vfs_convert_to (coder, slash + 1, path + size - slash - 1, buffer); - str_close_conv (coder); - return state; - } - - errno = EINVAL; - state = ESTR_FAILURE; - } - else - { - /* path can be translated whole at once */ - state = str_vfs_convert_to (defcnv, path, size, buffer); - } -#else - (void) size; - (void) defcnv; - - g_string_assign (buffer, path); -#endif /* HAVE_CHARSET */ - - return state; -} - -/* --------------------------------------------------------------------------------------------- */ - -static struct vfs_openfile * -vfs_get_openfile (int handle) -{ - struct vfs_openfile *h; - - if (handle < VFS_FIRST_HANDLE || (guint) (handle - VFS_FIRST_HANDLE) >= vfs_openfiles->len) - return NULL; - - h = (struct vfs_openfile *) g_ptr_array_index (vfs_openfiles, handle - VFS_FIRST_HANDLE); - if (h != NULL) - g_assert (h->handle == handle); - - return h; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -vfs_test_current_dir (const vfs_path_t *vpath) -{ - struct stat my_stat, my_stat2; - - return (mc_global.vfs.cd_symlinks && mc_stat (vpath, &my_stat) == 0 - && mc_stat (vfs_get_raw_current_dir (), &my_stat2) == 0 - && my_stat.st_ino == my_stat2.st_ino && my_stat.st_dev == my_stat2.st_dev); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/** Free open file data for given file handle */ - -void -vfs_free_handle (int handle) -{ - const int idx = handle - VFS_FIRST_HANDLE; - - if (handle >= VFS_FIRST_HANDLE && (guint) idx < vfs_openfiles->len) - { - struct vfs_openfile *h; - - h = (struct vfs_openfile *) g_ptr_array_index (vfs_openfiles, idx); - g_free (h); - g_ptr_array_index (vfs_openfiles, idx) = (void *) vfs_free_handle_list; - vfs_free_handle_list = idx; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** Find VFS class by file handle */ - -struct vfs_class * -vfs_class_find_by_handle (int handle, void **fsinfo) -{ - struct vfs_openfile *h; - - h = vfs_get_openfile (handle); - - if (h == NULL) - return NULL; - - if (fsinfo != NULL) - *fsinfo = h->fsinfo; - - return h->vclass; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Create new VFS handle and put it to the list - */ - -int -vfs_new_handle (struct vfs_class *vclass, void *fsinfo) -{ - struct vfs_openfile *h; - - h = g_new (struct vfs_openfile, 1); - h->fsinfo = fsinfo; - h->vclass = vclass; - - /* Allocate the first free handle */ - h->handle = vfs_free_handle_list; - if (h->handle == -1) - { - /* No free allocated handles, allocate one */ - h->handle = vfs_openfiles->len; - g_ptr_array_add (vfs_openfiles, h); - } - else - { - vfs_free_handle_list = (long) g_ptr_array_index (vfs_openfiles, vfs_free_handle_list); - g_ptr_array_index (vfs_openfiles, h->handle) = h; - } - - h->handle += VFS_FIRST_HANDLE; - return h->handle; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -vfs_ferrno (struct vfs_class *vfs) -{ - return vfs->ferrno != NULL ? vfs->ferrno (vfs) : E_UNKNOWN; - /* Hope that error message is obscure enough ;-) */ -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -vfs_register_class (struct vfs_class *vfs) -{ - if (vfs->init != NULL) /* vfs has own initialization function */ - if (vfs->init (vfs) == 0) /* but it failed */ - return FALSE; - - g_ptr_array_add (vfs__classes_list, vfs); - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_unregister_class (struct vfs_class *vfs) -{ - if (vfs->done != NULL) - vfs->done (vfs); - - g_ptr_array_remove (vfs__classes_list, vfs); -} - -/* --------------------------------------------------------------------------------------------- */ -/** Strip known vfs suffixes from a filename (possible improvement: strip - * suffix from last path component). - * \return a malloced string which has to be freed. - */ - -char * -vfs_strip_suffix_from_filename (const char *filename) -{ - char *semi, *p; - - if (filename == NULL) - vfs_die ("vfs_strip_suffix_from_path got NULL: impossible"); - - p = g_strdup (filename); - semi = g_strrstr (p, VFS_PATH_URL_DELIMITER); - if (semi != NULL) - { - char *vfs_prefix; - - *semi = '\0'; - vfs_prefix = strrchr (p, PATH_SEP); - if (vfs_prefix == NULL) - *semi = *VFS_PATH_URL_DELIMITER; - else - *vfs_prefix = '\0'; - } - - return p; -} - -/* --------------------------------------------------------------------------------------------- */ - -const char * -vfs_translate_path (const char *path) -{ - estr_t state; - - g_string_set_size (vfs_str_buffer, 0); - state = _vfs_translate_path (path, -1, str_cnv_from_term, vfs_str_buffer); - return (state != ESTR_FAILURE) ? vfs_str_buffer->str : NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -vfs_translate_path_n (const char *path) -{ - const char *result; - - result = vfs_translate_path (path); - return g_strdup (result); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Get current directory without any OS calls. - * - * @return string contains current path - */ - -const char * -vfs_get_current_dir (void) -{ - return current_path->str; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Get current directory without any OS calls. - * - * @return newly allocated string contains current path - */ - -char * -vfs_get_current_dir_n (void) -{ - return g_strdup (current_path->str); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Get raw current directory object without any OS calls. - * - * @return object contain current path - */ - -const vfs_path_t * -vfs_get_raw_current_dir (void) -{ - return current_path; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Set current directory object. - * - * @param vpath new path - */ -void -vfs_set_raw_current_dir (const vfs_path_t *vpath) -{ - vfs_path_free (current_path, TRUE); - current_path = (vfs_path_t *) vpath; -} - -/* --------------------------------------------------------------------------------------------- */ -/* Return TRUE is the current VFS class is local */ - -gboolean -vfs_current_is_local (void) -{ - return (current_vfs->flags & VFSF_LOCAL) != 0; -} - -/* --------------------------------------------------------------------------------------------- */ -/* Return flags of the VFS class of the given filename */ - -vfs_flags_t -vfs_file_class_flags (const vfs_path_t *vpath) -{ - const vfs_path_element_t *path_element; - - path_element = vfs_path_get_by_index (vpath, -1); - if (!vfs_path_element_valid (path_element)) - return VFSF_UNKNOWN; - - return path_element->class->flags; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_init (void) -{ - /* create the VFS handle arrays */ - vfs__classes_list = g_ptr_array_new (); - - /* create the VFS handle array */ - vfs_openfiles = g_ptr_array_new (); - - vfs_str_buffer = g_string_new (""); - - mc_readdir_result = vfs_dirent_init (NULL, "", -1); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_setup_work_dir (void) -{ - vfs_setup_cwd (); - - /* FIXME: is we really need for this check? */ - /* - if (strlen (current_dir) > MC_MAXPATHLEN - 2) - vfs_die ("Current dir too long.\n"); - */ - - current_vfs = VFS_CLASS (vfs_path_get_last_path_vfs (current_path)); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_shut (void) -{ - guint i; - - vfs_gc_done (); - - vfs_set_raw_current_dir (NULL); - - for (i = 0; i < vfs__classes_list->len; i++) - { - struct vfs_class *vfs = VFS_CLASS (g_ptr_array_index (vfs__classes_list, i)); - - if (vfs->done != NULL) - vfs->done (vfs); - } - - /* NULL-ize pointers to make unit tests happy */ - g_ptr_array_free (vfs_openfiles, TRUE); - vfs_openfiles = NULL; - g_ptr_array_free (vfs__classes_list, TRUE); - vfs__classes_list = NULL; - g_string_free (vfs_str_buffer, TRUE); - vfs_str_buffer = NULL; - current_vfs = NULL; - vfs_free_handle_list = -1; - vfs_dirent_free (mc_readdir_result); - mc_readdir_result = NULL; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Init or create vfs_dirent structure - * - * @d vfs_dirent structure to init. If NULL, new structure is created. - * @fname file name - * @ino file inode number - * - * @return pointer to d if d isn't NULL, or pointer to newly created structure. - */ - -struct vfs_dirent * -vfs_dirent_init (struct vfs_dirent *d, const char *fname, ino_t ino) -{ - struct vfs_dirent *ret = d; - - if (ret == NULL) - ret = g_new0 (struct vfs_dirent, 1); - - if (ret->d_name_str == NULL) - ret->d_name_str = g_string_sized_new (MC_MAXFILENAMELEN); - - vfs_dirent_assign (ret, fname, ino); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Assign members of vfs_dirent structure - * - * @d vfs_dirent structure for assignment - * @fname file name - * @ino file inode number - */ - -void -vfs_dirent_assign (struct vfs_dirent *d, const char *fname, ino_t ino) -{ - g_string_assign (d->d_name_str, fname); - d->d_name = d->d_name_str->str; - d->d_len = d->d_name_str->len; - d->d_ino = ino; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Destroy vfs_dirent structure - * - * @d vfs_dirent structure to destroy. - */ - -void -vfs_dirent_free (struct vfs_dirent *d) -{ - g_string_free (d->d_name_str, TRUE); - g_free (d); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * These ones grab information from the VFS - * and handles them to an upper layer - */ - -void -vfs_fill_names (fill_names_f func) -{ - guint i; - - for (i = 0; i < vfs__classes_list->len; i++) - { - struct vfs_class *vfs = VFS_CLASS (g_ptr_array_index (vfs__classes_list, i)); - - if (vfs->fill_names != NULL) - vfs->fill_names (vfs, func); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -vfs_file_is_local (const vfs_path_t *vpath) -{ - return (vfs_file_class_flags (vpath) & VFSF_LOCAL) != 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -vfs_print_message (const char *msg, ...) -{ - ev_vfs_print_message_t event_data; - va_list ap; - - va_start (ap, msg); - event_data.msg = g_strdup_vprintf (msg, ap); - va_end (ap); - - mc_event_raise (MCEVENT_GROUP_CORE, "vfs_print_message", (gpointer) & event_data); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * If it's local, reread the current directory - * from the OS. - */ - -void -vfs_setup_cwd (void) -{ - char *current_dir; - vfs_path_t *tmp_vpath; - const struct vfs_class *me; - - if (vfs_get_raw_current_dir () == NULL) - { - current_dir = my_get_current_dir (); - vfs_set_raw_current_dir (vfs_path_from_str (current_dir)); - g_free (current_dir); - - current_dir = getenv ("PWD"); - tmp_vpath = vfs_path_from_str (current_dir); - - if (tmp_vpath != NULL) - { - if (vfs_test_current_dir (tmp_vpath)) - vfs_set_raw_current_dir (tmp_vpath); - else - vfs_path_free (tmp_vpath, TRUE); - } - } - - me = vfs_path_get_last_path_vfs (vfs_get_raw_current_dir ()); - if ((me->flags & VFSF_LOCAL) != 0) - { - current_dir = my_get_current_dir (); - tmp_vpath = vfs_path_from_str (current_dir); - g_free (current_dir); - - if (tmp_vpath != NULL) - { - /* One of directories in the path is not readable */ - - /* Check if it is O.K. to use the current_dir */ - if (!vfs_test_current_dir (tmp_vpath)) - vfs_set_raw_current_dir (tmp_vpath); - else - vfs_path_free (tmp_vpath, TRUE); - } - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Return current directory. If it's local, reread the current directory - * from the OS. - */ - -char * -vfs_get_cwd (void) -{ - vfs_setup_cwd (); - return vfs_get_current_dir_n (); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Preallocate space for file in new place for ensure that file - * will be fully copied with less fragmentation. - * - * @param dest_vfs_fd mc VFS file handler - * @param src_fsize source file size - * @param dest_fsize destination file size (if destination exists, otherwise should be 0) - * - * @return 0 if success and non-zero otherwise. - * Note: function doesn't touch errno global variable. - */ - -int -vfs_preallocate (int dest_vfs_fd, off_t src_fsize, off_t dest_fsize) -{ -#ifndef HAVE_POSIX_FALLOCATE - (void) dest_vfs_fd; - (void) src_fsize; - (void) dest_fsize; - return 0; - -#else /* HAVE_POSIX_FALLOCATE */ - void *dest_fd = NULL; - struct vfs_class *dest_class; - - if (src_fsize == 0) - return 0; - - dest_class = vfs_class_find_by_handle (dest_vfs_fd, &dest_fd); - if ((dest_class->flags & VFSF_LOCAL) == 0 || dest_fd == NULL) - return 0; - - return posix_fallocate (*(int *) dest_fd, dest_fsize, src_fsize - dest_fsize); - -#endif /* HAVE_POSIX_FALLOCATE */ -} - - /* --------------------------------------------------------------------------------------------- */ - -int -vfs_clone_file (int dest_vfs_fd, int src_vfs_fd) -{ -#ifdef FICLONE - void *dest_fd = NULL; - void *src_fd = NULL; - struct vfs_class *dest_class; - struct vfs_class *src_class; - - dest_class = vfs_class_find_by_handle (dest_vfs_fd, &dest_fd); - if ((dest_class->flags & VFSF_LOCAL) == 0) - { - errno = ENOTSUP; - return (-1); - } - if (dest_fd == NULL) - { - errno = EBADF; - return (-1); - } - - src_class = vfs_class_find_by_handle (src_vfs_fd, &src_fd); - if ((src_class->flags & VFSF_LOCAL) == 0) - { - errno = ENOTSUP; - return (-1); - } - if (src_fd == NULL) - { - errno = EBADF; - return (-1); - } - - return ioctl (*(int *) dest_fd, FICLONE, *(int *) src_fd); -#else - (void) dest_vfs_fd; - (void) src_vfs_fd; - errno = ENOTSUP; - return (-1); -#endif -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/vfs/vfs.h b/recipes/wip/files/mc/source/lib/vfs/vfs.h deleted file mode 100644 index 279b1eaf93..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/vfs.h +++ /dev/null @@ -1,350 +0,0 @@ - -/** - * \file - * \brief Header: Virtual File System switch code - */ - -#ifndef MC__VFS_VFS_H -#define MC__VFS_VFS_H - -#include -#include -#include /* DIR */ -#ifdef HAVE_UTIMENSAT -#include -#elif defined (HAVE_UTIME_H) -#include -#endif -#include -#include -#include - -#include "lib/global.h" - -#include "path.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define VFS_CLASS(a) ((struct vfs_class *) (a)) - -#define VFS_ENCODING_PREFIX "#enc:" - -#define O_ALL (O_CREAT | O_EXCL | O_NOCTTY | O_NDELAY | O_SYNC | O_WRONLY | O_RDWR | O_RDONLY) -/* Midnight commander code should _not_ use other flags than those - listed above and O_APPEND */ - -#if (O_ALL & O_APPEND) -#warning "Unexpected problem with flags, O_LINEAR disabled, contact pavel@ucw.cz" -#define O_LINEAR 0 -#define IS_LINEAR(a) 0 -#define NO_LINEAR(a) a -#else -#define O_LINEAR O_APPEND -#define IS_LINEAR(a) ((a) == (O_RDONLY | O_LINEAR)) /* Return only 0 and 1 ! */ -#define NO_LINEAR(a) (((a) == (O_RDONLY | O_LINEAR)) ? O_RDONLY : (a)) -#endif - -/* O_LINEAR is strange beast, be careful. If you open file asserting - * O_RDONLY | O_LINEAR, you promise: - * - * a) to read file linearly from beginning to the end - * b) not to open another file before you close this one - * (this will likely go away in future) - * as a special gift, you may - * c) lseek() immediately after open(), giving ftpfs chance to - * reget. Be warned that this lseek() can fail, and you _have_ - * to handle that gratefully. - * - * O_LINEAR allows filesystems not to create temporary file in some - * cases (ftp transfer). -- pavel@ucw.cz - */ - -/* And now some defines for our errors. */ - -#ifdef ENOMSG -#define E_UNKNOWN ENOMSG /* if we do not know what error happened */ -#else -#define E_UNKNOWN EIO /* if we do not know what error happened */ -#endif - -#ifdef EREMOTEIO -#define E_REMOTE EREMOTEIO /* if other side of ftp/shell reports error */ -#else -#define E_REMOTE ENETUNREACH /* :-( there's no EREMOTEIO on some systems */ -#endif - -#ifdef EPROTO -#define E_PROTO EPROTO /* if other side fails to follow protocol */ -#else -#define E_PROTO EIO -#endif - -/** - * This is the type of callback function passed to vfs_fill_names. - * It gets the name of the virtual file system as its first argument. - * See also: - * vfs_fill_names(). - */ -typedef void (*fill_names_f) (const char *); - -typedef void *vfsid; - -#ifdef HAVE_UTIMENSAT -typedef struct timespec mc_timesbuf_t[2]; -#else -typedef struct utimbuf mc_timesbuf_t; -#endif - -typedef struct mc_timespec -{ - time_t tv_sec; - long tv_nsec; -} mc_timespec_t; - -/*** enums ***************************************************************************************/ - -typedef enum -{ - VFSF_UNKNOWN = 0, - VFSF_LOCAL = 1 << 0, /* Class is local (not virtual) filesystem */ - VFSF_NOLINKS = 1 << 1, /* Hard links not supported */ - - VFSF_REMOTE = 1 << 2, - VFSF_READONLY = 1 << 3, - VFSF_USETMP = 1 << 4 -} vfs_flags_t; - -/* Operations for mc_ctl - on open file */ -enum -{ - VFS_CTL_IS_NOTREADY -}; - -/* Operations for mc_setctl - on path */ -enum -{ - VFS_SETCTL_FORGET, - VFS_SETCTL_RUN, - VFS_SETCTL_LOGFILE, - VFS_SETCTL_FLUSH, /* invalidate directory cache */ - - /* Setting this makes vfs layer give out potentially incorrect data, - but it also makes some operations much faster. Use with caution. */ - VFS_SETCTL_STALE_DATA -}; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct vfs_class -{ - const char *name; /* "FIles over SHell" */ - vfs_flags_t flags; - const char *prefix; /* "shell:" */ - int verrno; /* can't use errno because glibc2 might define errno as function */ - gboolean flush; /* if set to TRUE, invalidate directory cache */ - FILE *logfile; - - /* *INDENT-OFF* */ - int (*init) (struct vfs_class * me); - void (*done) (struct vfs_class * me); - - /** - * The fill_names method shall call the callback function for every - * filesystem name that this vfs module supports. - */ - void (*fill_names) (struct vfs_class * me, fill_names_f); - - /** - * The which() method shall return the index of the vfs subsystem - * or -1 if this vfs cannot handle the given pathname. - */ - int (*which) (struct vfs_class * me, const char *path); - - void *(*open) (const vfs_path_t * vpath, int flags, mode_t mode); - int (*close) (void *vfs_info); - ssize_t (*read) (void *vfs_info, char *buffer, size_t count); - ssize_t (*write) (void *vfs_info, const char *buf, size_t count); - - void *(*opendir) (const vfs_path_t * vpath); - struct vfs_dirent *(*readdir) (void *vfs_info); - int (*closedir) (void *vfs_info); - - int (*stat) (const vfs_path_t * vpath, struct stat * buf); - int (*lstat) (const vfs_path_t * vpath, struct stat * buf); - int (*fstat) (void *vfs_info, struct stat * buf); - - int (*chmod) (const vfs_path_t * vpath, mode_t mode); - int (*chown) (const vfs_path_t * vpath, uid_t owner, gid_t group); - - int (*fgetflags) (const vfs_path_t * vpath, unsigned long *flags); - int (*fsetflags) (const vfs_path_t * vpath, unsigned long flags); - - int (*utime) (const vfs_path_t * vpath, mc_timesbuf_t * times); - - int (*readlink) (const vfs_path_t * vpath, char *buf, size_t size); - int (*symlink) (const vfs_path_t * vpath1, const vfs_path_t * vpath2); - int (*link) (const vfs_path_t * vpath1, const vfs_path_t * vpath2); - int (*unlink) (const vfs_path_t * vpath); - int (*rename) (const vfs_path_t * vpath1, const vfs_path_t * vpath2); - int (*chdir) (const vfs_path_t * vpath); - int (*ferrno) (struct vfs_class * me); - off_t (*lseek) (void *vfs_info, off_t offset, int whence); - int (*mknod) (const vfs_path_t * vpath, mode_t mode, dev_t dev); - - vfsid (*getid) (const vfs_path_t * vpath); - - gboolean (*nothingisopen) (vfsid id); - void (*free) (vfsid id); - - vfs_path_t *(*getlocalcopy) (const vfs_path_t * vpath); - int (*ungetlocalcopy) (const vfs_path_t * vpath, const vfs_path_t * local_vpath, - gboolean has_changed); - - int (*mkdir) (const vfs_path_t * vpath, mode_t mode); - int (*rmdir) (const vfs_path_t * vpath); - - int (*ctl) (void *vfs_info, int ctlop, void *arg); - int (*setctl) (const vfs_path_t * vpath, int ctlop, void *arg); - /* *INDENT-ON* */ -} vfs_class; - -/* - * This struct is used instead of standard dirent to hold file name of any length - * (not limited to NAME_MAX). - */ -struct vfs_dirent -{ - /* private */ - GString *d_name_str; - - /* public */ - ino_t d_ino; - char *d_name; /* Alias of d_name_str->str */ - size_t d_len; /* Alias of d_name_str->len */ -}; - -/*** global variables defined in .c file *********************************************************/ - -extern int vfs_timeout; - -#ifdef ENABLE_VFS_NET -extern int use_netrc; -#endif - -/*** declarations of public functions ************************************************************/ - -/* lib/vfs/direntry.c: */ -void vfs_init_class (struct vfs_class *vclass, const char *name, vfs_flags_t flags, - const char *prefix); - -void *vfs_s_open (const vfs_path_t * vpath, int flags, mode_t mode); -int vfs_s_stat (const vfs_path_t * vpath, struct stat *buf); -int vfs_s_lstat (const vfs_path_t * vpath, struct stat *buf); -int vfs_s_fstat (void *fh, struct stat *buf); - -void vfs_adjust_stat (struct stat *s); - -vfsid vfs_getid (const vfs_path_t * vpath); - -void vfs_init (void); -void vfs_shut (void); -/* Register a file system class */ -gboolean vfs_register_class (struct vfs_class *vfs); -void vfs_unregister_class (struct vfs_class *vfs); - -void vfs_setup_work_dir (void); - -void vfs_timeout_handler (void); -int vfs_timeouts (void); -void vfs_expire (gboolean now); - -const char *vfs_get_current_dir (void); -char *vfs_get_current_dir_n (void); -const vfs_path_t *vfs_get_raw_current_dir (void); -void vfs_set_raw_current_dir (const vfs_path_t * vpath); - -gboolean vfs_current_is_local (void); -MC_MOCKABLE gboolean vfs_file_is_local (const vfs_path_t * vpath); - -char *vfs_strip_suffix_from_filename (const char *filename); - -vfs_flags_t vfs_file_class_flags (const vfs_path_t * vpath); - -/* translate path back to terminal encoding, remove all #enc: - * every invalid character is replaced with question mark - * return static buffer */ -const char *vfs_translate_path (const char *path); -/* return new string */ -char *vfs_translate_path_n (const char *path); - -void vfs_stamp_path (const vfs_path_t * path); - -void vfs_release_path (const vfs_path_t * vpath); - -struct vfs_dirent *vfs_dirent_init (struct vfs_dirent *d, const char *fname, ino_t ino); -void vfs_dirent_assign (struct vfs_dirent *d, const char *fname, ino_t ino); -void vfs_dirent_free (struct vfs_dirent *d); - -void vfs_fill_names (fill_names_f); - -/* *INDENT-OFF* */ -void vfs_print_message (const char *msg, ...) G_GNUC_PRINTF (1, 2); -/* *INDENT-ON* */ - -int vfs_ferrno (struct vfs_class *vfs); - -int vfs_new_handle (struct vfs_class *vclass, void *fsinfo); - -struct vfs_class *vfs_class_find_by_handle (int handle, void **fsinfo); - -void vfs_free_handle (int handle); - -void vfs_setup_cwd (void); -char *vfs_get_cwd (void); - -int vfs_preallocate (int dest_desc, off_t src_fsize, off_t dest_fsize); - -int vfs_clone_file (int dest_vfs_fd, int src_vfs_fd); - -/** - * Interface functions described in interface.c - */ -ssize_t mc_read (int handle, void *buffer, size_t count); -ssize_t mc_write (int handle, const void *buffer, size_t count); -int mc_utime (const vfs_path_t * vpath, mc_timesbuf_t * times); -int mc_readlink (const vfs_path_t * vpath, char *buf, size_t bufsiz); -int mc_close (int handle); -off_t mc_lseek (int fd, off_t offset, int whence); -DIR *mc_opendir (const vfs_path_t * vpath); -struct vfs_dirent *mc_readdir (DIR * dirp); -int mc_closedir (DIR * dir); -MC_MOCKABLE int mc_stat (const vfs_path_t * vpath, struct stat *buf); -int mc_mknod (const vfs_path_t * vpath, mode_t mode, dev_t dev); -int mc_link (const vfs_path_t * vpath1, const vfs_path_t * vpath2); -int mc_mkdir (const vfs_path_t * vpath, mode_t mode); -int mc_rmdir (const vfs_path_t * vpath); -int mc_fstat (int fd, struct stat *buf); -MC_MOCKABLE int mc_lstat (const vfs_path_t * vpath, struct stat *buf); -int mc_symlink (const vfs_path_t * vpath1, const vfs_path_t * vpath2); -int mc_rename (const vfs_path_t * vpath1, const vfs_path_t * vpath2); -int mc_chmod (const vfs_path_t * vpath, mode_t mode); -int mc_chown (const vfs_path_t * vpath, uid_t owner, gid_t group); -int mc_fgetflags (const vfs_path_t * vpath, unsigned long *flags); -int mc_fsetflags (const vfs_path_t * vpath, unsigned long flags); -int mc_chdir (const vfs_path_t * vpath); -int mc_unlink (const vfs_path_t * vpath); -int mc_ctl (int fd, int ctlop, void *arg); -int mc_setctl (const vfs_path_t * vpath, int ctlop, void *arg); -int mc_open (const vfs_path_t * vpath, int flags, ...); -MC_MOCKABLE vfs_path_t *mc_getlocalcopy (const vfs_path_t * pathname_vpath); -MC_MOCKABLE int mc_ungetlocalcopy (const vfs_path_t * pathname_vpath, - const vfs_path_t * local_vpath, gboolean has_changed); -int mc_mkstemps (vfs_path_t ** pname_vpath, const char *prefix, const char *suffix); - -/* Creating temporary files safely */ -const char *mc_tmpdir (void); - - -/*** inline functions ****************************************************************************/ - -#endif /* MC_VFS_VFS_H */ diff --git a/recipes/wip/files/mc/source/lib/vfs/xdirentry.h b/recipes/wip/files/mc/source/lib/vfs/xdirentry.h deleted file mode 100644 index 94246581e0..0000000000 --- a/recipes/wip/files/mc/source/lib/vfs/xdirentry.h +++ /dev/null @@ -1,205 +0,0 @@ - -/** - * \file - * \brief Header: Virtual File System directory structure - */ - - -#ifndef MC__VFS_XDIRENTRY_H -#define MC__VFS_XDIRENTRY_H - -#include -#include - -#include "lib/global.h" /* GList */ -#include "lib/vfs/path.h" /* vfs_path_t */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define LINK_FOLLOW 15 -#define LINK_NO_FOLLOW -1 - -/* For vfs_s_find_entry and vfs_s_find_inode */ -#define FL_NONE 0 -#define FL_MKDIR 1 -#define FL_MKFILE 2 -#define FL_DIR 4 - -/* For open_super */ -#define FL_NO_OPEN 1 - -/* For vfs_s_entry_from_path */ -#define FL_FOLLOW 1 -#define FL_DIR 4 - -#define ERRNOR(a, b) do { me->verrno = a; return b; } while (0) - -#define VFS_SUBCLASS(a) ((struct vfs_s_subclass *) (a)) - -#define VFS_SUPER(a) ((struct vfs_s_super *) (a)) -#define CONST_VFS_SUPER(a) ((const struct vfs_s_super *) (a)) -#define VFS_ENTRY(a) ((struct vfs_s_entry *) (a)) -#define VFS_INODE(a) ((struct vfs_s_inode *) (a)) - -#define VFS_FILE_HANDLER(a) ((vfs_file_handler_t *) a) -#define VFS_FILE_HANDLER_SUPER(a) VFS_FILE_HANDLER (a)->ino->super - -/*** enums ***************************************************************************************/ - -typedef enum -{ - LS_NOT_LINEAR = 0, - LS_LINEAR_CLOSED = 1, - LS_LINEAR_OPEN = 2, - LS_LINEAR_PREOPEN = 3 -} vfs_linear_state_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/* Single connection or archive */ -struct vfs_s_super -{ - struct vfs_class *me; - struct vfs_s_inode *root; - char *name; /* My name, whatever it means */ - int fd_usage; /* Number of open files */ - int ino_usage; /* Usage count of this superblock */ - gboolean want_stale; /* If set, we do not flush cache properly */ -#ifdef ENABLE_VFS_NET - vfs_path_element_t *path_element; -#endif /* ENABLE_VFS_NET */ -}; - -/* - * Single virtual file - directory entry. The same inode can have many - * entries (i.e. hard links), but usually has only one. - */ -struct vfs_s_entry -{ - struct vfs_s_inode *dir; /* Directory we are in, i.e. our parent */ - char *name; /* Name of this entry */ - struct vfs_s_inode *ino; /* ... and its inode */ - ssize_t leading_spaces; /* number of leading spases in the file name */ -}; - -/* Single virtual file - inode */ -struct vfs_s_inode -{ - struct vfs_s_super *super; /* Archive the file is on */ - struct vfs_s_entry *ent; /* Our entry in the parent directory - - use only for directories because they - cannot be hardlinked */ - GQueue *subdir; /* If this is a directory, its entry. List of vfs_s_entry */ - struct stat st; /* Parameters of this inode */ - char *linkname; /* Symlink's contents */ - char *localname; /* Filename of local file, if we have one */ - gint64 timestamp; /* Subclass specific */ - off_t data_offset; /* Subclass specific */ - void *user_data; /* Subclass specific */ -}; - -/* Data associated with an open file */ -typedef struct -{ - struct vfs_s_inode *ino; - off_t pos; /* This is for module's use */ - int handle; /* This is for module's use, but if != -1, will be mc_close()d */ - gboolean changed; /* Did this file change? */ - vfs_linear_state_t linear; /* Is that file open with O_LINEAR? */ -} vfs_file_handler_t; - -/* - * One of our subclasses (tar, cpio, shell, ftpfs) with data and methods. - * Extends vfs_class. - */ -struct vfs_s_subclass -{ - struct vfs_class base; /* base class */ - - GList *supers; - int inode_counter; - dev_t rdev; - - /* *INDENT-OFF* */ - int (*init_inode) (struct vfs_class * me, struct vfs_s_inode * ino); /* optional */ - void (*free_inode) (struct vfs_class * me, struct vfs_s_inode * ino); /* optional */ - int (*init_entry) (struct vfs_class * me, struct vfs_s_entry * entry); /* optional */ - - void *(*archive_check) (const vfs_path_t * vpath); /* optional */ - int (*archive_same) (const vfs_path_element_t * vpath_element, struct vfs_s_super * psup, - const vfs_path_t * vpath, void *cookie); - struct vfs_s_super *(*new_archive) (struct vfs_class * me); - int (*open_archive) (struct vfs_s_super * psup, - const vfs_path_t * vpath, const vfs_path_element_t * vpath_element); - void (*free_archive) (struct vfs_class * me, struct vfs_s_super * psup); - - vfs_file_handler_t *(*fh_new) (struct vfs_s_inode * ino, gboolean changed); - int (*fh_open) (struct vfs_class * me, vfs_file_handler_t * fh, int flags, mode_t mode); - int (*fh_close) (struct vfs_class * me, vfs_file_handler_t * fh); - void (*fh_free) (vfs_file_handler_t * fh); - - struct vfs_s_entry *(*find_entry) (struct vfs_class * me, - struct vfs_s_inode * root, - const char *path, int follow, int flags); - int (*dir_load) (struct vfs_class * me, struct vfs_s_inode * ino, const char *path); - gboolean (*dir_uptodate) (struct vfs_class * me, struct vfs_s_inode * ino); - int (*file_store) (struct vfs_class * me, vfs_file_handler_t * fh, char *path, char *localname); - - int (*linear_start) (struct vfs_class * me, vfs_file_handler_t * fh, off_t from); - ssize_t (*linear_read) (struct vfs_class * me, vfs_file_handler_t * fh, void *buf, size_t len); - void (*linear_close) (struct vfs_class * me, vfs_file_handler_t * fh); - /* *INDENT-ON* */ -}; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/* entries and inodes */ -struct vfs_s_inode *vfs_s_new_inode (struct vfs_class *me, - struct vfs_s_super *super, struct stat *initstat); -void vfs_s_free_inode (struct vfs_class *me, struct vfs_s_inode *ino); - -struct vfs_s_entry *vfs_s_new_entry (struct vfs_class *me, const char *name, - struct vfs_s_inode *inode); -void vfs_s_free_entry (struct vfs_class *me, struct vfs_s_entry *ent); -void vfs_s_insert_entry (struct vfs_class *me, struct vfs_s_inode *dir, struct vfs_s_entry *ent); -int vfs_s_entry_compare (const void *a, const void *b); -struct stat *vfs_s_default_stat (struct vfs_class *me, mode_t mode); - -struct vfs_s_entry *vfs_s_generate_entry (struct vfs_class *me, const char *name, - struct vfs_s_inode *parent, mode_t mode); -struct vfs_s_inode *vfs_s_find_inode (struct vfs_class *me, - const struct vfs_s_super *super, - const char *path, int follow, int flags); -struct vfs_s_inode *vfs_s_find_root (struct vfs_class *me, struct vfs_s_entry *entry); - -/* outside interface */ -void vfs_init_subclass (struct vfs_s_subclass *sub, const char *name, vfs_flags_t flags, - const char *prefix); -const char *vfs_s_get_path (const vfs_path_t * vpath, struct vfs_s_super **archive, int flags); -struct vfs_s_super *vfs_get_super_by_vpath (const vfs_path_t * vpath); - -void vfs_s_invalidate (struct vfs_class *me, struct vfs_s_super *super); -char *vfs_s_fullpath (struct vfs_class *me, struct vfs_s_inode *ino); - -void vfs_s_init_fh (vfs_file_handler_t * fh, struct vfs_s_inode *ino, gboolean changed); - -/* network filesystems support */ -int vfs_s_select_on_two (int fd1, int fd2); -int vfs_s_get_line (struct vfs_class *me, int sock, char *buf, int buf_len, char term); -int vfs_s_get_line_interruptible (struct vfs_class *me, char *buffer, int size, int fd); -/* misc */ -int vfs_s_retrieve_file (struct vfs_class *me, struct vfs_s_inode *ino); - -void vfs_s_normalize_filename_leading_spaces (struct vfs_s_inode *root_inode, size_t final_filepos); - -/*** inline functions ****************************************************************************/ - -static inline void -vfs_s_store_filename_leading_spaces (struct vfs_s_entry *entry, size_t position) -{ - entry->leading_spaces = (ssize_t) position; -} - -#endif diff --git a/recipes/wip/files/mc/source/lib/widget.h b/recipes/wip/files/mc/source/lib/widget.h deleted file mode 100644 index e3bb5cac22..0000000000 --- a/recipes/wip/files/mc/source/lib/widget.h +++ /dev/null @@ -1,53 +0,0 @@ -/** \file widget.h - * \brief Header: MC widget and dialog manager: main include file. - */ -#ifndef MC__WIDGET_H -#define MC__WIDGET_H - -#include "lib/global.h" /* GLib */ - -/* main forward declarations */ -struct Widget; -typedef struct Widget Widget; -struct WGroup; -typedef struct WGroup WGroup; - -/* Please note that the first element in all the widgets is a */ -/* widget variable of type Widget. We abuse this fact everywhere */ - -#include "lib/widget/rect.h" -#include "lib/widget/widget-common.h" -#include "lib/widget/group.h" -#include "lib/widget/background.h" -#include "lib/widget/frame.h" -#include "lib/widget/dialog.h" -#include "lib/widget/history.h" -#include "lib/widget/button.h" -#include "lib/widget/buttonbar.h" -#include "lib/widget/check.h" -#include "lib/widget/hline.h" -#include "lib/widget/gauge.h" -#include "lib/widget/groupbox.h" -#include "lib/widget/label.h" -#include "lib/widget/listbox.h" -#include "lib/widget/menu.h" -#include "lib/widget/radio.h" -#include "lib/widget/input.h" -#include "lib/widget/listbox-window.h" -#include "lib/widget/quick.h" -#include "lib/widget/wtools.h" -#include "lib/widget/dialog-switch.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/Makefile.am b/recipes/wip/files/mc/source/lib/widget/Makefile.am deleted file mode 100644 index 90f023bbc8..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/Makefile.am +++ /dev/null @@ -1,30 +0,0 @@ - -noinst_LTLIBRARIES = libmcwidget.la - -libmcwidget_la_SOURCES = \ - background.c background.h \ - button.c button.h \ - buttonbar.c buttonbar.h \ - check.c check.h \ - dialog.c dialog.h \ - dialog-switch.c dialog-switch.h \ - frame.c frame.h \ - gauge.c gauge.h \ - group.c group.h \ - groupbox.c groupbox.h \ - hline.c hline.h \ - history.c history.h \ - input.c input.h \ - input_complete.c \ - listbox-window.c listbox-window.h \ - listbox.c listbox.h \ - label.c label.h \ - menu.c menu.h \ - mouse.c mouse.h \ - quick.c quick.h \ - radio.c radio.h \ - rect.c rect.h \ - widget-common.c widget-common.h \ - wtools.c wtools.h - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) diff --git a/recipes/wip/files/mc/source/lib/widget/Makefile.in b/recipes/wip/files/mc/source/lib/widget/Makefile.in deleted file mode 100644 index 7b03295076..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/Makefile.in +++ /dev/null @@ -1,847 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = lib/widget -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -CONFIG_CLEAN_VPATH_FILES = -LTLIBRARIES = $(noinst_LTLIBRARIES) -libmcwidget_la_LIBADD = -am_libmcwidget_la_OBJECTS = background.lo button.lo buttonbar.lo \ - check.lo dialog.lo dialog-switch.lo frame.lo gauge.lo group.lo \ - groupbox.lo hline.lo history.lo input.lo input_complete.lo \ - listbox-window.lo listbox.lo label.lo menu.lo mouse.lo \ - quick.lo radio.lo rect.lo widget-common.lo wtools.lo -libmcwidget_la_OBJECTS = $(am_libmcwidget_la_OBJECTS) -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_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__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/background.Plo \ - ./$(DEPDIR)/button.Plo ./$(DEPDIR)/buttonbar.Plo \ - ./$(DEPDIR)/check.Plo ./$(DEPDIR)/dialog-switch.Plo \ - ./$(DEPDIR)/dialog.Plo ./$(DEPDIR)/frame.Plo \ - ./$(DEPDIR)/gauge.Plo ./$(DEPDIR)/group.Plo \ - ./$(DEPDIR)/groupbox.Plo ./$(DEPDIR)/history.Plo \ - ./$(DEPDIR)/hline.Plo ./$(DEPDIR)/input.Plo \ - ./$(DEPDIR)/input_complete.Plo ./$(DEPDIR)/label.Plo \ - ./$(DEPDIR)/listbox-window.Plo ./$(DEPDIR)/listbox.Plo \ - ./$(DEPDIR)/menu.Plo ./$(DEPDIR)/mouse.Plo \ - ./$(DEPDIR)/quick.Plo ./$(DEPDIR)/radio.Plo \ - ./$(DEPDIR)/rect.Plo ./$(DEPDIR)/widget-common.Plo \ - ./$(DEPDIR)/wtools.Plo -am__mv = mv -f -COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ - $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) -AM_V_CC = $(am__v_CC_@AM_V@) -am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) -am__v_CC_0 = @echo " CC " $@; -am__v_CC_1 = -CCLD = $(CC) -LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ - $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ -AM_V_CCLD = $(am__v_CCLD_@AM_V@) -am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) -am__v_CCLD_0 = @echo " CCLD " $@; -am__v_CCLD_1 = -SOURCES = $(libmcwidget_la_SOURCES) -DIST_SOURCES = $(libmcwidget_la_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)` -am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -noinst_LTLIBRARIES = libmcwidget.la -libmcwidget_la_SOURCES = \ - background.c background.h \ - button.c button.h \ - buttonbar.c buttonbar.h \ - check.c check.h \ - dialog.c dialog.h \ - dialog-switch.c dialog-switch.h \ - frame.c frame.h \ - gauge.c gauge.h \ - group.c group.h \ - groupbox.c groupbox.h \ - hline.c hline.h \ - history.c history.h \ - input.c input.h \ - input_complete.c \ - listbox-window.c listbox-window.h \ - listbox.c listbox.h \ - label.c label.h \ - menu.c menu.h \ - mouse.c mouse.h \ - quick.c quick.h \ - radio.c radio.h \ - rect.c rect.h \ - widget-common.c widget-common.h \ - wtools.c wtools.h - -AM_CPPFLAGS = -I$(top_srcdir) $(GLIB_CFLAGS) -all: all-am - -.SUFFIXES: -.SUFFIXES: .c .lo .o .obj -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu lib/widget/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu lib/widget/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -clean-noinstLTLIBRARIES: - -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) - @list='$(noinst_LTLIBRARIES)'; \ - locs=`for p in $$list; do echo $$p; done | \ - sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \ - sort -u`; \ - test -z "$$locs" || { \ - echo rm -f $${locs}; \ - rm -f $${locs}; \ - } - -libmcwidget.la: $(libmcwidget_la_OBJECTS) $(libmcwidget_la_DEPENDENCIES) $(EXTRA_libmcwidget_la_DEPENDENCIES) - $(AM_V_CCLD)$(LINK) $(libmcwidget_la_OBJECTS) $(libmcwidget_la_LIBADD) $(LIBS) - -mostlyclean-compile: - -rm -f *.$(OBJEXT) - -distclean-compile: - -rm -f *.tab.c - -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/background.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/button.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buttonbar.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/check.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dialog-switch.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dialog.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/frame.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gauge.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/group.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/groupbox.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/history.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hline.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/input.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/input_complete.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/label.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listbox-window.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/listbox.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/menu.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mouse.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/quick.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/radio.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rect.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/widget-common.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wtools.Plo@am__quote@ # am--include-marker - -$(am__depfiles_remade): - @$(MKDIR_P) $(@D) - @echo '# dummy' >$@-t && $(am__mv) $@-t $@ - -am--depfiles: $(am__depfiles_remade) - -.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 -o $@ $< - -.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 -o $@ `$(CYGPATH_W) '$<'` - -.c.lo: -@am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< -@am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo -@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ -@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ -@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $< - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs - -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: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(DISTFILES) - @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ - list='$(DISTFILES)'; \ - dist_files=`for file in $$list; do echo $$file; done | \ - sed -e "s|^$$srcdirstrip/||;t" \ - -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ - case $$dist_files in \ - */*) $(MKDIR_P) `echo "$$dist_files" | \ - sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ - sort -u` ;; \ - esac; \ - for file in $$dist_files; do \ - if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - if test -d $$d/$$file; then \ - dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test -d "$(distdir)/$$file"; then \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ - cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ - find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ - fi; \ - cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ - else \ - test -f "$(distdir)/$$file" \ - || cp -p $$d/$$file "$(distdir)/$$file" \ - || exit 1; \ - fi; \ - done -check-am: all-am -check: check-am -all-am: Makefile $(LTLIBRARIES) -installdirs: -install: install-am -install-exec: install-exec-am -install-data: install-data-am -uninstall: uninstall-am - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-am -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -maintainer-clean-generic: - @echo "This command is intended for maintainers to use" - @echo "it deletes files that may require special tools to rebuild." -clean: clean-am - -clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ - mostlyclean-am - -distclean: distclean-am - -rm -f ./$(DEPDIR)/background.Plo - -rm -f ./$(DEPDIR)/button.Plo - -rm -f ./$(DEPDIR)/buttonbar.Plo - -rm -f ./$(DEPDIR)/check.Plo - -rm -f ./$(DEPDIR)/dialog-switch.Plo - -rm -f ./$(DEPDIR)/dialog.Plo - -rm -f ./$(DEPDIR)/frame.Plo - -rm -f ./$(DEPDIR)/gauge.Plo - -rm -f ./$(DEPDIR)/group.Plo - -rm -f ./$(DEPDIR)/groupbox.Plo - -rm -f ./$(DEPDIR)/history.Plo - -rm -f ./$(DEPDIR)/hline.Plo - -rm -f ./$(DEPDIR)/input.Plo - -rm -f ./$(DEPDIR)/input_complete.Plo - -rm -f ./$(DEPDIR)/label.Plo - -rm -f ./$(DEPDIR)/listbox-window.Plo - -rm -f ./$(DEPDIR)/listbox.Plo - -rm -f ./$(DEPDIR)/menu.Plo - -rm -f ./$(DEPDIR)/mouse.Plo - -rm -f ./$(DEPDIR)/quick.Plo - -rm -f ./$(DEPDIR)/radio.Plo - -rm -f ./$(DEPDIR)/rect.Plo - -rm -f ./$(DEPDIR)/widget-common.Plo - -rm -f ./$(DEPDIR)/wtools.Plo - -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-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f ./$(DEPDIR)/background.Plo - -rm -f ./$(DEPDIR)/button.Plo - -rm -f ./$(DEPDIR)/buttonbar.Plo - -rm -f ./$(DEPDIR)/check.Plo - -rm -f ./$(DEPDIR)/dialog-switch.Plo - -rm -f ./$(DEPDIR)/dialog.Plo - -rm -f ./$(DEPDIR)/frame.Plo - -rm -f ./$(DEPDIR)/gauge.Plo - -rm -f ./$(DEPDIR)/group.Plo - -rm -f ./$(DEPDIR)/groupbox.Plo - -rm -f ./$(DEPDIR)/history.Plo - -rm -f ./$(DEPDIR)/hline.Plo - -rm -f ./$(DEPDIR)/input.Plo - -rm -f ./$(DEPDIR)/input_complete.Plo - -rm -f ./$(DEPDIR)/label.Plo - -rm -f ./$(DEPDIR)/listbox-window.Plo - -rm -f ./$(DEPDIR)/listbox.Plo - -rm -f ./$(DEPDIR)/menu.Plo - -rm -f ./$(DEPDIR)/mouse.Plo - -rm -f ./$(DEPDIR)/quick.Plo - -rm -f ./$(DEPDIR)/radio.Plo - -rm -f ./$(DEPDIR)/rect.Plo - -rm -f ./$(DEPDIR)/widget-common.Plo - -rm -f ./$(DEPDIR)/wtools.Plo - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-compile mostlyclean-generic \ - mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: - -.MAKE: install-am install-strip - -.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ - clean-generic clean-libtool clean-noinstLTLIBRARIES \ - cscopelist-am ctags ctags-am distclean distclean-compile \ - distclean-generic distclean-libtool distclean-tags distdir dvi \ - dvi-am html html-am info info-am install install-am \ - install-data install-data-am install-dvi install-dvi-am \ - install-exec install-exec-am install-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 mostlyclean-libtool pdf pdf-am ps ps-am \ - tags tags-am uninstall uninstall-am - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/lib/widget/background.c b/recipes/wip/files/mc/source/lib/widget/background.c deleted file mode 100644 index 8d8a9b2c22..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/background.c +++ /dev/null @@ -1,126 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 2020-2025 - The Free Software Foundation, Inc. - - Authors: - Andrew Borodin , 2020-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file background.c - * \brief Source: WBackground widget (background area of dialog) - */ - -#include - -#include - -#include "lib/global.h" -#include "lib/tty/tty.h" -#include "lib/tty/color.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static const int * -background_get_colors (const Widget *w) -{ - return &(CONST_BACKGROUND (w)->color); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -background_adjust (WBackground *b) -{ - Widget *w = WIDGET (b); - - w->rect = WIDGET (w->owner)->rect; - w->pos_flags |= WPOS_KEEP_ALL; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -background_draw (const WBackground *b) -{ - const Widget *w = CONST_WIDGET (b); - - tty_setcolor (b->color); - tty_fill_region (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, b->pattern); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -cb_ret_t -background_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WBackground *b = BACKGROUND (w); - - switch (msg) - { - case MSG_INIT: - background_adjust (b); - return MSG_HANDLED; - - case MSG_DRAW: - background_draw (b); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -WBackground * -background_new (int y, int x, int lines, int cols, int color, unsigned char pattern, - widget_cb_fn callback) -{ - WRect r = { y, x, lines, cols }; - WBackground *b; - Widget *w; - - b = g_new (WBackground, 1); - w = WIDGET (b); - widget_init (w, &r, callback != NULL ? callback : background_callback, NULL); - w->get_colors = background_get_colors; - - b->color = color; - b->pattern = pattern; - - return b; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/background.h b/recipes/wip/files/mc/source/lib/widget/background.h deleted file mode 100644 index b9a0b2cf10..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/background.h +++ /dev/null @@ -1,36 +0,0 @@ - -/** \file background.h - * \brief Header: WBackground widget - */ - -#ifndef MC__WIDGET_BACKGROUND_H -#define MC__WIDGET_BACKGROUND_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define BACKGROUND(x) ((WBackground *)(x)) -#define CONST_BACKGROUND(x) ((const WBackground *)(x)) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct -{ - Widget widget; - - int color; /* Color to fill area */ - unsigned char pattern; /* Symbol to fill area */ -} WBackground; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -WBackground *background_new (int y, int x, int lines, int cols, int color, unsigned char pattern, - widget_cb_fn callback); -cb_ret_t background_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_BACKGROUND_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/button.c b/recipes/wip/files/mc/source/lib/widget/button.c deleted file mode 100644 index 003129b837..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/button.c +++ /dev/null @@ -1,284 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file button.c - * \brief Source: WButton widget - */ - -#include - -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/strutil.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -cb_ret_t -button_default_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WButton *b = BUTTON (w); - WGroup *g = w->owner; - WDialog *h = DIALOG (g); - int off = 0; - - switch (msg) - { - case MSG_HOTKEY: - /* - * Don't let the default button steal Enter from the current - * button. This is a workaround for the flawed event model - * when hotkeys are sent to all widgets before the key is - * handled by the current widget. - */ - if (parm == '\n' && WIDGET (g->current->data) == w) - { - send_message (w, sender, MSG_KEY, ' ', data); - return MSG_HANDLED; - } - - if (parm == '\n' && b->flags == DEFPUSH_BUTTON) - { - send_message (w, sender, MSG_KEY, ' ', data); - return MSG_HANDLED; - } - - if (b->text.hotkey != NULL && g_ascii_tolower ((gchar) b->text.hotkey[0]) == parm) - { - send_message (w, sender, MSG_KEY, ' ', data); - return MSG_HANDLED; - } - return MSG_NOT_HANDLED; - - case MSG_KEY: - if (parm != ' ' && parm != '\n') - return MSG_NOT_HANDLED; - - h->ret_value = b->action; - if (b->callback == NULL || b->callback (b, b->action) != 0) - dlg_close (h); - - return MSG_HANDLED; - - case MSG_CURSOR: - switch (b->flags) - { - case DEFPUSH_BUTTON: - off = 3; - break; - case NORMAL_BUTTON: - off = 2; - break; - case NARROW_BUTTON: - off = 1; - break; - case HIDDEN_BUTTON: - default: - off = 0; - break; - } - widget_gotoyx (w, 0, b->hotpos + off); - return MSG_HANDLED; - - case MSG_DRAW: - { - gboolean focused; - - focused = widget_get_state (w, WST_FOCUSED); - - widget_selectcolor (w, focused, FALSE); - widget_gotoyx (w, 0, 0); - - switch (b->flags) - { - case DEFPUSH_BUTTON: - tty_print_string ("[< "); - break; - case NORMAL_BUTTON: - tty_print_string ("[ "); - break; - case NARROW_BUTTON: - tty_print_string ("["); - break; - case HIDDEN_BUTTON: - default: - return MSG_HANDLED; - } - - hotkey_draw (w, b->text, focused); - - switch (b->flags) - { - case DEFPUSH_BUTTON: - tty_print_string (" >]"); - break; - case NORMAL_BUTTON: - tty_print_string (" ]"); - break; - case NARROW_BUTTON: - tty_print_string ("]"); - break; - default: - break; - } - - return MSG_HANDLED; - } - - case MSG_DESTROY: - hotkey_free (b->text); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -button_mouse_default_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) -{ - (void) event; - - switch (msg) - { - case MSG_MOUSE_DOWN: - widget_select (w); - break; - - case MSG_MOUSE_CLICK: - send_message (w, NULL, MSG_KEY, ' ', NULL); - send_message (w->owner, w, MSG_POST_KEY, ' ', NULL); - break; - - default: - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -WButton * -button_new (int y, int x, int action, button_flags_t flags, const char *text, bcback_fn callback) -{ - WRect r = { y, x, 1, 1 }; - WButton *b; - Widget *w; - - b = g_new (WButton, 1); - w = WIDGET (b); - - b->action = action; - b->flags = flags; - b->text = hotkey_new (text); - r.cols = button_get_len (b); - widget_init (w, &r, button_default_callback, button_mouse_default_callback); - w->options |= WOP_SELECTABLE | WOP_WANT_CURSOR | WOP_WANT_HOTKEY; - b->callback = callback; - b->hotpos = (b->text.hotkey != NULL) ? str_term_width1 (b->text.start) : -1; - - return b; -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -button_get_text (const WButton *b) -{ - return hotkey_get_text (b->text); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -button_set_text (WButton *b, const char *text) -{ - Widget *w = WIDGET (b); - hotkey_t hk; - - hk = hotkey_new (text); - if (hotkey_equal (b->text, hk)) - { - hotkey_free (hk); - return; - } - - hotkey_free (b->text); - b->text = hk; - b->hotpos = (b->text.hotkey != NULL) ? str_term_width1 (b->text.start) : -1; - w->rect.cols = button_get_len (b); - widget_draw (w); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -button_get_len (const WButton *b) -{ - int ret = hotkey_width (b->text); - - switch (b->flags) - { - case DEFPUSH_BUTTON: - ret += 6; - break; - case NORMAL_BUTTON: - ret += 4; - break; - case NARROW_BUTTON: - ret += 2; - break; - case HIDDEN_BUTTON: - default: - return 0; - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/button.h b/recipes/wip/files/mc/source/lib/widget/button.h deleted file mode 100644 index 5f21e1ef9e..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/button.h +++ /dev/null @@ -1,58 +0,0 @@ - -/** \file button.h - * \brief Header: WButton widget - */ - -#ifndef MC__WIDGET_BUTTON_H -#define MC__WIDGET_BUTTON_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define BUTTON(x) ((WButton *)(x)) - -struct WButton; - -/* button callback */ -/* return 0 to continue work with dialog, non-zero to close */ -typedef int (*bcback_fn) (struct WButton * button, int action); - -/*** enums ***************************************************************************************/ - -typedef enum -{ - HIDDEN_BUTTON = 0, - NARROW_BUTTON = 1, - NORMAL_BUTTON = 2, - DEFPUSH_BUTTON = 3 -} button_flags_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct WButton -{ - Widget widget; - int action; /* what to do when pressed */ - - button_flags_t flags; /* button flags */ - hotkey_t text; /* text of button, contain hotkey too */ - int hotpos; /* offset hot KEY char in text */ - bcback_fn callback; /* callback function */ -} WButton; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -WButton *button_new (int y, int x, int action, button_flags_t flags, const char *text, - bcback_fn callback); -char *button_get_text (const WButton * b); -void button_set_text (WButton * b, const char *text); -int button_get_len (const WButton * b); - -cb_ret_t button_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, - void *data); -void button_mouse_default_callback (Widget * w, mouse_msg_t msg, mouse_event_t * event); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_BUTTON_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/buttonbar.c b/recipes/wip/files/mc/source/lib/widget/buttonbar.c deleted file mode 100644 index 22c2c82fae..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/buttonbar.c +++ /dev/null @@ -1,290 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file buttonbar.c - * \brief Source: WButtonBar widget - */ - -#include - -#include -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/tty/key.h" /* XCTRL and ALT macros */ -#include "lib/skin.h" -#include "lib/strutil.h" -#include "lib/util.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/* calculate positions of buttons; width is never less than 7 */ -static void -buttonbar_init_button_positions (WButtonBar *bb) -{ - int i; - int pos = 0; - - if (COLS < BUTTONBAR_LABELS_NUM * 7) - { - for (i = 0; i < BUTTONBAR_LABELS_NUM; i++) - { - if (pos + 7 <= COLS) - pos += 7; - - bb->labels[i].end_coord = pos; - } - } - else - { - /* Distribute the extra width in a way that the middle vertical line - (between F5 and F6) aligns with the two panels. The extra width - is distributed in this order: F10, F5, F9, F4, ..., F6, F1. */ - int dv, md; - - dv = COLS / BUTTONBAR_LABELS_NUM; - md = COLS % BUTTONBAR_LABELS_NUM; - - for (i = 0; i < BUTTONBAR_LABELS_NUM / 2; i++) - { - pos += dv; - if (BUTTONBAR_LABELS_NUM / 2 - 1 - i < md / 2) - pos++; - - bb->labels[i].end_coord = pos; - } - - for (; i < BUTTONBAR_LABELS_NUM; i++) - { - pos += dv; - if (BUTTONBAR_LABELS_NUM - 1 - i < (md + 1) / 2) - pos++; - - bb->labels[i].end_coord = pos; - } - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/* return width of one button */ -static int -buttonbar_get_button_width (const WButtonBar *bb, int i) -{ - if (i == 0) - return bb->labels[0].end_coord; - return bb->labels[i].end_coord - bb->labels[i - 1].end_coord; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -buttonbar_get_button_by_x_coord (const WButtonBar *bb, int x) -{ - int i; - - for (i = 0; i < BUTTONBAR_LABELS_NUM; i++) - if (bb->labels[i].end_coord > x) - return i; - - return (-1); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -set_label_text (WButtonBar *bb, int idx, const char *text) -{ - g_free (bb->labels[idx - 1].text); - bb->labels[idx - 1].text = g_strdup (text); -} - -/* --------------------------------------------------------------------------------------------- */ - -/* returns TRUE if a function has been called, FALSE otherwise. */ -static gboolean -buttonbar_call (WButtonBar *bb, int i) -{ - cb_ret_t ret = MSG_NOT_HANDLED; - Widget *w = WIDGET (bb); - Widget *target; - - if ((bb != NULL) && (bb->labels[i].command != CK_IgnoreKey)) - { - target = (bb->labels[i].receiver != NULL) ? bb->labels[i].receiver : WIDGET (w->owner); - ret = send_message (target, w, MSG_ACTION, bb->labels[i].command, NULL); - } - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -buttonbar_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WButtonBar *bb = BUTTONBAR (w); - int i; - - switch (msg) - { - case MSG_HOTKEY: - for (i = 0; i < BUTTONBAR_LABELS_NUM; i++) - if (parm == KEY_F (i + 1) && buttonbar_call (bb, i)) - return MSG_HANDLED; - return MSG_NOT_HANDLED; - - case MSG_DRAW: - if (widget_get_state (w, WST_VISIBLE)) - { - buttonbar_init_button_positions (bb); - widget_gotoyx (w, 0, 0); - tty_setcolor (DEFAULT_COLOR); - tty_printf ("%-*s", w->rect.cols, ""); - widget_gotoyx (w, 0, 0); - - for (i = 0; i < BUTTONBAR_LABELS_NUM; i++) - { - int width; - const char *text; - - width = buttonbar_get_button_width (bb, i); - if (width <= 0) - break; - - tty_setcolor (BUTTONBAR_HOTKEY_COLOR); - tty_printf ("%2d", i + 1); - - tty_setcolor (BUTTONBAR_BUTTON_COLOR); - text = (bb->labels[i].text != NULL) ? bb->labels[i].text : ""; - tty_print_string (str_fit_to_term (text, width - 2, J_LEFT_FIT)); - } - } - return MSG_HANDLED; - - case MSG_DESTROY: - for (i = 0; i < BUTTONBAR_LABELS_NUM; i++) - g_free (bb->labels[i].text); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -buttonbar_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) -{ - switch (msg) - { - case MSG_MOUSE_CLICK: - { - WButtonBar *bb = BUTTONBAR (w); - int button; - - button = buttonbar_get_button_by_x_coord (bb, event->x); - if (button >= 0) - buttonbar_call (bb, button); - break; - } - - default: - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -WButtonBar * -buttonbar_new (void) -{ - WRect r = { LINES - 1, 0, 1, COLS }; - WButtonBar *bb; - Widget *w; - - bb = g_new0 (WButtonBar, 1); - w = WIDGET (bb); - widget_init (w, &r, buttonbar_callback, buttonbar_mouse_callback); - - w->pos_flags = WPOS_KEEP_HORZ | WPOS_KEEP_BOTTOM; - w->options |= WOP_WANT_HOTKEY; - - return bb; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -buttonbar_set_label (WButtonBar *bb, int idx, const char *text, const global_keymap_t *keymap, - Widget *receiver) -{ - if ((bb != NULL) && (idx >= 1) && (idx <= BUTTONBAR_LABELS_NUM)) - { - long command = CK_IgnoreKey; - - if (keymap != NULL) - command = keybind_lookup_keymap_command (keymap, KEY_F (idx)); - - if ((text == NULL) || (text[0] == '\0')) - set_label_text (bb, idx, ""); - else - set_label_text (bb, idx, text); - - bb->labels[idx - 1].command = command; - bb->labels[idx - 1].receiver = WIDGET (receiver); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Find ButtonBar widget in the dialog */ -WButtonBar * -buttonbar_find (const WDialog *h) -{ - return BUTTONBAR (widget_find_by_type (CONST_WIDGET (h), buttonbar_callback)); -} diff --git a/recipes/wip/files/mc/source/lib/widget/buttonbar.h b/recipes/wip/files/mc/source/lib/widget/buttonbar.h deleted file mode 100644 index af9249c933..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/buttonbar.h +++ /dev/null @@ -1,46 +0,0 @@ - -/** \file buttonbar.h - * \brief Header: WButtonBar widget - */ - -#ifndef MC__WIDGET_BUTTONBAR_H -#define MC__WIDGET_BUTTONBAR_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define BUTTONBAR(x) ((WButtonBar *)(x)) - -/* number of bttons in buttonbar */ -#define BUTTONBAR_LABELS_NUM 10 - -#define buttonbar_clear_label(bb, idx, recv) buttonbar_set_label (bb, idx, "", NULL, recv) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct WButtonBar -{ - Widget widget; - - struct - { - char *text; - long command; - Widget *receiver; - int end_coord; /* cumulative width of buttons so far */ - } labels[BUTTONBAR_LABELS_NUM]; -} WButtonBar; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -WButtonBar *buttonbar_new (void); -void buttonbar_set_label (WButtonBar * bb, int idx, const char *text, - const global_keymap_t * keymap, Widget * receiver); -WButtonBar *buttonbar_find (const WDialog * h); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_BUTTONBAR_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/check.c b/recipes/wip/files/mc/source/lib/widget/check.c deleted file mode 100644 index 48470dce50..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/check.c +++ /dev/null @@ -1,182 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file check.c - * \brief Source: WCheck widget (checkbutton) - */ - -#include - -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -check_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WCheck *c = CHECK (w); - - switch (msg) - { - case MSG_HOTKEY: - if (c->text.hotkey != NULL) - { - if (g_ascii_tolower ((gchar) c->text.hotkey[0]) == parm) - { - /* make action */ - send_message (w, sender, MSG_KEY, ' ', data); - return MSG_HANDLED; - } - } - return MSG_NOT_HANDLED; - - case MSG_KEY: - if (parm != ' ') - return MSG_NOT_HANDLED; - c->state = !c->state; - widget_draw (w); - send_message (w->owner, w, MSG_NOTIFY, 0, NULL); - return MSG_HANDLED; - - case MSG_CURSOR: - widget_gotoyx (w, 0, 1); - return MSG_HANDLED; - - case MSG_DRAW: - { - gboolean focused; - - focused = widget_get_state (w, WST_FOCUSED); - widget_selectcolor (w, focused, FALSE); - widget_gotoyx (w, 0, 0); - tty_print_string (c->state ? "[x] " : "[ ] "); - hotkey_draw (w, c->text, focused); - return MSG_HANDLED; - } - - case MSG_DESTROY: - hotkey_free (c->text); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -check_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) -{ - (void) event; - - switch (msg) - { - case MSG_MOUSE_DOWN: - widget_select (w); - break; - - case MSG_MOUSE_CLICK: - send_message (w, NULL, MSG_KEY, ' ', NULL); - send_message (w->owner, w, MSG_POST_KEY, ' ', NULL); - break; - - default: - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -WCheck * -check_new (int y, int x, gboolean state, const char *text) -{ - WRect r = { y, x, 1, 1 }; - WCheck *c; - Widget *w; - - c = g_new (WCheck, 1); - w = WIDGET (c); - c->text = hotkey_new (text); - /* 4 is width of "[X] " */ - r.cols = 4 + hotkey_width (c->text); - widget_init (w, &r, check_callback, check_mouse_callback); - w->options |= WOP_SELECTABLE | WOP_WANT_CURSOR | WOP_WANT_HOTKEY; - c->state = state; - - return c; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -check_set_text (WCheck *check, const char *text) -{ - Widget *w = WIDGET (check); - hotkey_t hk; - - hk = hotkey_new (text); - if (hotkey_equal (check->text, hk)) - { - hotkey_free (hk); - return; - } - - hotkey_free (check->text); - check->text = hk; - - if (check->text.start[0] == '\0' && check->text.hotkey == NULL && check->text.end == NULL) - w->rect.cols = 3; /* "[ ]" */ - else - w->rect.cols = 4 + hotkey_width (check->text); /* "[ ] text" */ - - widget_draw (w); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/check.h b/recipes/wip/files/mc/source/lib/widget/check.h deleted file mode 100644 index 9840a2401e..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/check.h +++ /dev/null @@ -1,33 +0,0 @@ - -/** \file check.h - * \brief Header: WCheck widget - */ - -#ifndef MC__WIDGET_CHECK_H -#define MC__WIDGET_CHECK_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define CHECK(x) ((WCheck *)(x)) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct WCheck -{ - Widget widget; - gboolean state; /* check button state */ - hotkey_t text; /* text of check button */ -} WCheck; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -WCheck *check_new (int y, int x, gboolean state, const char *text); -void check_set_text (WCheck * check, const char *text); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_CHECK_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/dialog-switch.c b/recipes/wip/files/mc/source/lib/widget/dialog-switch.c deleted file mode 100644 index 6c5afe069e..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/dialog-switch.c +++ /dev/null @@ -1,408 +0,0 @@ -/* - Support of multiply editors and viewers. - - Original idea and code: Oleg "Olegarch" Konovalov - - Copyright (C) 2009-2025 - Free Software Foundation, Inc. - - Written by: - Daniel Borca , 2007 - Andrew Borodin , 2010-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file dialog-switch.c - * \brief Source: support of multiply editors and viewers. - */ - -#include - -#include "lib/global.h" -#include "lib/tty/tty.h" /* LINES, COLS */ -#include "lib/tty/color.h" /* tty_set_normal_attrs() */ -#include "lib/widget.h" -#include "lib/event.h" - -/*** global variables ****************************************************************************/ - -/* Primitive way to check if the the current dialog is our dialog */ -/* This is needed by async routines like load_prompt */ -GList *top_dlg = NULL; - -/* If set then dialogs just clean the screen when refreshing, else */ -/* they do a complete refresh, refreshing all the parts of the program */ -gboolean fast_refresh = FALSE; - -WDialog *filemanager = NULL; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* List of dialogs: filemanagers, editors, viewers */ -static GList *mc_dialogs = NULL; -/* Currently active dialog */ -static GList *mc_current = NULL; -/* Is there any dialogs that we have to run after returning to the manager from another dialog */ -static gboolean dialog_switch_pending = FALSE; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static unsigned char -get_hotkey (int n) -{ - return (n <= 9) ? '0' + n : 'a' + n - 10; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -dialog_switch_suspend (void *data, void *user_data) -{ - (void) user_data; - - if (data != mc_current->data) - widget_set_state (WIDGET (data), WST_SUSPENDED, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -dialog_switch_goto (GList *dlg) -{ - if (mc_current != dlg) - { - WDialog *old = DIALOG (mc_current->data); - - mc_current = dlg; - - if (old == filemanager) - { - /* switch from panels to another dialog (editor, viewer, etc) */ - dialog_switch_pending = TRUE; - dialog_switch_process_pending (); - } - else - { - /* switch from editor, viewer, etc to another dialog */ - widget_set_state (WIDGET (old), WST_SUSPENDED, TRUE); - - if (DIALOG (dlg->data) != filemanager) - /* switch to another editor, viewer, etc */ - /* return to panels before run the required dialog */ - dialog_switch_pending = TRUE; - else - { - /* switch to panels */ - widget_set_state (WIDGET (filemanager), WST_ACTIVE, TRUE); - do_refresh (); - } - } - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -dialog_switch_resize (WDialog *d) -{ - if (widget_get_state (WIDGET (d), WST_ACTIVE)) - send_message (d, NULL, MSG_RESIZE, 0, NULL); - else - GROUP (d)->winch_pending = TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -dialog_switch_add (WDialog *h) -{ - GList *dlg; - - dlg = g_list_find (mc_dialogs, h); - - if (dlg != NULL) - mc_current = dlg; - else - { - mc_dialogs = g_list_prepend (mc_dialogs, h); - mc_current = mc_dialogs; - } - - /* suspend forced all other screens */ - g_list_foreach (mc_dialogs, dialog_switch_suspend, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dialog_switch_remove (WDialog *h) -{ - GList *this; - - if (DIALOG (mc_current->data) == h) - this = mc_current; - else - this = g_list_find (mc_dialogs, h); - - mc_dialogs = g_list_delete_link (mc_dialogs, this); - - /* adjust current dialog */ - if (top_dlg != NULL) - mc_current = g_list_find (mc_dialogs, DIALOG (top_dlg->data)); - else - mc_current = mc_dialogs; - - /* resume forced the current screen */ - if (mc_current != NULL) - widget_set_state (WIDGET (mc_current->data), WST_ACTIVE, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -size_t -dialog_switch_num (void) -{ - return g_list_length (mc_dialogs); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dialog_switch_next (void) -{ - GList *next; - - if (mc_global.midnight_shutdown || mc_current == NULL) - return; - - next = g_list_next (mc_current); - if (next == NULL) - next = mc_dialogs; - - dialog_switch_goto (next); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dialog_switch_prev (void) -{ - GList *prev; - - if (mc_global.midnight_shutdown || mc_current == NULL) - return; - - prev = g_list_previous (mc_current); - if (prev == NULL) - prev = g_list_last (mc_dialogs); - - dialog_switch_goto (prev); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dialog_switch_list (void) -{ - const size_t dlg_num = g_list_length (mc_dialogs); - int lines, cols; - Listbox *listbox; - GList *h, *selected; - int i = 0; - - if (mc_global.midnight_shutdown || mc_current == NULL) - return; - - lines = MIN ((size_t) (LINES * 2 / 3), dlg_num); - cols = COLS * 2 / 3; - - listbox = listbox_window_new (lines, cols, _("Screens"), "[Screen selector]"); - - for (h = mc_dialogs; h != NULL; h = g_list_next (h)) - { - WDialog *dlg = DIALOG (h->data); - char *title; - - if (dlg->get_title != NULL) - title = dlg->get_title (dlg, WIDGET (listbox->list)->rect.cols - 2); - else - title = g_strdup (""); - - listbox_add_item_take (listbox->list, LISTBOX_APPEND_BEFORE, get_hotkey (i++), title, h, - FALSE); - } - - selected = listbox_run_with_data (listbox, mc_current); - if (selected != NULL) - dialog_switch_goto (selected); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -dialog_switch_process_pending (void) -{ - int ret = 0; - - while (dialog_switch_pending) - { - WDialog *h = DIALOG (mc_current->data); - Widget *wh = WIDGET (h); - - dialog_switch_pending = FALSE; - widget_set_state (wh, WST_SUSPENDED, TRUE); - ret = dlg_run (h); - if (widget_get_state (wh, WST_CLOSED)) - { - widget_destroy (wh); - - /* return to panels */ - if (mc_global.mc_run_mode == MC_RUN_FULL) - { - mc_current = g_list_find (mc_dialogs, filemanager); - mc_event_raise (MCEVENT_GROUP_FILEMANAGER, "update_panels", NULL); - } - } - } - - repaint_screen (); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dialog_switch_got_winch (void) -{ - GList *dlg; - - for (dlg = mc_dialogs; dlg != NULL; dlg = g_list_next (dlg)) - if (dlg != mc_current) - GROUP (dlg->data)->winch_pending = TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dialog_switch_shutdown (void) -{ - while (mc_dialogs != NULL) - { - WDialog *dlg = DIALOG (mc_dialogs->data); - - dlg_run (dlg); - widget_destroy (WIDGET (dlg)); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -do_refresh (void) -{ - GList *d = top_dlg; - - if (fast_refresh) - { - if (d != NULL) - widget_draw (WIDGET (d->data)); - } - else - { - /* Search first fullscreen dialog */ - for (; d != NULL; d = g_list_next (d)) - if ((WIDGET (d->data)->pos_flags & WPOS_FULLSCREEN) != 0) - break; - - /* when small dialog (i.e. error message) is created first, - there is no fullscreen dialog in the stack */ - if (d == NULL) - d = g_list_last (top_dlg); - - /* back to top dialog */ - for (; d != NULL; d = g_list_previous (d)) - widget_draw (WIDGET (d->data)); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -repaint_screen (void) -{ - do_refresh (); - tty_refresh (); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -mc_refresh (void) -{ -#ifdef ENABLE_BACKGROUND - if (mc_global.we_are_background) - return; -#endif /* ENABLE_BACKGROUND */ - - if (!tty_got_winch ()) - tty_refresh (); - else - { - /* if winch was caugth, we should do not only redraw screen, but - reposition/resize all */ - dialog_change_screen_size (); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dialog_change_screen_size (void) -{ - GList *d; - - tty_flush_winch (); - tty_change_screen_size (); - -#ifdef HAVE_SLANG - tty_keypad (TRUE); - tty_nodelay (FALSE); -#endif - - /* Inform all suspending dialogs */ - dialog_switch_got_winch (); - - /* Inform all running dialogs from first to last */ - for (d = g_list_last (top_dlg); d != NULL; d = g_list_previous (d)) - dialog_switch_resize (DIALOG (d->data)); - - /* Now, force the redraw */ - repaint_screen (); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/dialog-switch.h b/recipes/wip/files/mc/source/lib/widget/dialog-switch.h deleted file mode 100644 index 2215dd4795..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/dialog-switch.h +++ /dev/null @@ -1,44 +0,0 @@ - -#ifndef MC__DIALOG_SWITCH_H -#define MC__DIALOG_SWITCH_H - -#include - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/*** global variables defined in .c file *********************************************************/ - -extern GList *top_dlg; - -extern gboolean fast_refresh; - -extern WDialog *filemanager; - -/*** declarations of public functions ************************************************************/ - -void dialog_switch_add (WDialog * h); -void dialog_switch_remove (WDialog * h); -size_t dialog_switch_num (void); - -void dialog_switch_next (void); -void dialog_switch_prev (void); -void dialog_switch_list (void); - -int dialog_switch_process_pending (void); -void dialog_switch_got_winch (void); -void dialog_switch_shutdown (void); - -/* Redraw all dialogs */ -void do_refresh (void); - -void repaint_screen (void); -MC_MOCKABLE void mc_refresh (void); -void dialog_change_screen_size (void); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__DIALOG_SWITCH_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/dialog.c b/recipes/wip/files/mc/source/lib/widget/dialog.c deleted file mode 100644 index 5880f7b5c5..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/dialog.c +++ /dev/null @@ -1,633 +0,0 @@ -/* - Dialog box features module for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file dialog.c - * \brief Source: dialog box features module - */ - -#include - -#include -#include -#include -#include -#include -#include -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/skin.h" -#include "lib/tty/key.h" -#include "lib/strutil.h" -#include "lib/fileloc.h" /* MC_HISTORY_FILE */ -#include "lib/event.h" /* mc_event_raise() */ -#include "lib/util.h" /* MC_PTR_FREE */ -#include "lib/mcconfig.h" /* num_history_items_recorded */ - -#include "lib/widget.h" -#include "lib/widget/mouse.h" - -/*** global variables ****************************************************************************/ - -/* Color styles for normal and error dialogs */ -dlg_colors_t dialog_colors; -dlg_colors_t alarm_colors; -dlg_colors_t listbox_colors; - -/* A hook list for idle events */ -hook_t *idle_hook = NULL; - -/* left click outside of dialog closes it */ -gboolean mouse_close_dialog = FALSE; - -const global_keymap_t *dialog_map = NULL; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static const int * -dlg_default_get_colors (const Widget *w) -{ - return CONST_DIALOG (w)->colors; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Read histories from the ${XDG_DATA_HOME}/mc/history file - */ -static void -dlg_read_history (WDialog *h) -{ - char *profile; - ev_history_load_save_t event_data; - - if (num_history_items_recorded == 0) /* this is how to disable */ - return; - - profile = mc_config_get_full_path (MC_HISTORY_FILE); - event_data.cfg = mc_config_init (profile, TRUE); - event_data.receiver = NULL; - - /* create all histories in dialog */ - mc_event_raise (h->event_group, MCEVENT_HISTORY_LOAD, &event_data); - - mc_config_deinit (event_data.cfg); - g_free (profile); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -refresh_cmd (void) -{ -#ifdef HAVE_SLANG - tty_touch_screen (); - mc_refresh (); -#else - /* Use this if the refreshes fail */ - tty_clear_screen (); - repaint_screen (); -#endif /* HAVE_SLANG */ -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -dlg_help (const WDialog *h) -{ - ev_help_t event_data = { NULL, h->help_ctx }; - - mc_event_raise (MCEVENT_GROUP_CORE, "help", &event_data); -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -dlg_execute_cmd (WDialog *h, long command) -{ - WGroup *g = GROUP (h); - cb_ret_t ret = MSG_HANDLED; - - if (send_message (h, NULL, MSG_ACTION, command, NULL) == MSG_HANDLED) - return MSG_HANDLED; - - switch (command) - { - case CK_Ok: - h->ret_value = B_ENTER; - dlg_close (h); - break; - case CK_Cancel: - h->ret_value = B_CANCEL; - dlg_close (h); - break; - - case CK_Up: - case CK_Left: - group_select_prev_widget (g); - break; - case CK_Down: - case CK_Right: - group_select_next_widget (g); - break; - - case CK_Help: - dlg_help (h); - break; - - case CK_Suspend: - mc_event_raise (MCEVENT_GROUP_CORE, "suspend", NULL); - refresh_cmd (); - break; - case CK_Refresh: - refresh_cmd (); - break; - - case CK_ScreenList: - if (!widget_get_state (WIDGET (h), WST_MODAL)) - dialog_switch_list (); - else - ret = MSG_NOT_HANDLED; - break; - case CK_ScreenNext: - if (!widget_get_state (WIDGET (h), WST_MODAL)) - dialog_switch_next (); - else - ret = MSG_NOT_HANDLED; - break; - case CK_ScreenPrev: - if (!widget_get_state (WIDGET (h), WST_MODAL)) - dialog_switch_prev (); - else - ret = MSG_NOT_HANDLED; - break; - - default: - ret = MSG_NOT_HANDLED; - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -dlg_handle_key (WDialog *h, int d_key) -{ - long command; - - command = widget_lookup_key (WIDGET (h), d_key); - if (command == CK_IgnoreKey) - command = keybind_lookup_keymap_command (dialog_map, d_key); - if (command != CK_IgnoreKey) - return dlg_execute_cmd (h, command); - - return MSG_NOT_HANDLED; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -dlg_key_event (WDialog *h, int d_key) -{ - Widget *w = WIDGET (h); - WGroup *g = GROUP (h); - cb_ret_t handled; - - if (g->widgets == NULL) - return; - - if (g->current == NULL) - g->current = g->widgets; - - /* TAB used to cycle */ - if (!widget_get_options (w, WOP_WANT_TAB)) - { - if (d_key == '\t') - { - group_select_next_widget (g); - return; - } - else if ((d_key & ~(KEY_M_SHIFT | KEY_M_CTRL)) == '\t') - { - group_select_prev_widget (g); - return; - } - } - - /* first can dlalog handle the key itself */ - handled = send_message (h, NULL, MSG_KEY, d_key, NULL); - - if (handled == MSG_NOT_HANDLED) - handled = group_default_callback (w, NULL, MSG_KEY, d_key, NULL); - - if (handled == MSG_NOT_HANDLED) - handled = dlg_handle_key (h, d_key); - - (void) handled; - send_message (h, NULL, MSG_POST_KEY, d_key, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -dlg_handle_mouse_event (Widget *w, Gpm_Event *event) -{ - if (w->mouse_callback != NULL) - { - int mou; - - mou = mouse_handle_event (w, event); - if (mou != MOU_UNHANDLED) - return mou; - } - - return group_handle_mouse_event (w, event); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -frontend_dlg_run (WDialog *h) -{ - Widget *wh = WIDGET (h); - Gpm_Event event; - - event.x = -1; - - /* close opened editors, viewers, etc */ - if (!widget_get_state (wh, WST_MODAL) && mc_global.midnight_shutdown) - { - send_message (h, NULL, MSG_VALIDATE, 0, NULL); - return; - } - - while (widget_get_state (wh, WST_ACTIVE)) - { - int d_key; - - if (tty_got_winch ()) - dialog_change_screen_size (); - - if (is_idle ()) - { - if (idle_hook) - execute_hooks (idle_hook); - - while (widget_get_state (wh, WST_IDLE) && is_idle ()) - send_message (wh, NULL, MSG_IDLE, 0, NULL); - - /* Allow terminating the dialog from the idle handler */ - if (!widget_get_state (wh, WST_ACTIVE)) - break; - } - - widget_update_cursor (wh); - - /* Clear interrupt flag */ - tty_got_interrupt (); - d_key = tty_get_event (&event, GROUP (h)->mouse_status == MOU_REPEAT, TRUE); - - dlg_process_event (h, d_key, &event); - - if (widget_get_state (wh, WST_CLOSED)) - send_message (h, NULL, MSG_VALIDATE, 0, NULL); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -dlg_default_destroy (Widget *w) -{ - WDialog *h = DIALOG (w); - - /* if some widgets have history, save all histories at one moment here */ - dlg_save_history (h); - group_default_callback (w, NULL, MSG_DESTROY, 0, NULL); - send_message (w, NULL, MSG_DESTROY, 0, NULL); - mc_event_group_del (h->event_group); - g_free (h->event_group); - g_free (h); - - do_refresh (); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/** Default dialog callback */ - -cb_ret_t -dlg_default_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - switch (msg) - { - case MSG_INIT: - /* nothing to init in dialog itself */ - return MSG_HANDLED; - - case MSG_IDLE: - /* we don't want endless loop */ - widget_idle (w, FALSE); - return MSG_HANDLED; - - case MSG_DESTROY: - /* nothing to deinit in dialog itself */ - return MSG_HANDLED; - - default: - return group_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dlg_default_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) -{ - switch (msg) - { - case MSG_MOUSE_CLICK: - if (event->y < 0 || event->y >= w->rect.lines || event->x < 0 || event->x >= w->rect.cols) - { - DIALOG (w)->ret_value = B_CANCEL; - dlg_close (DIALOG (w)); - } - break; - - default: - /* return MOU_UNHANDLED */ - event->result.abort = TRUE; - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -WDialog * -dlg_create (gboolean modal, int y1, int x1, int lines, int cols, widget_pos_flags_t pos_flags, - gboolean compact, const int *colors, widget_cb_fn callback, - widget_mouse_cb_fn mouse_callback, const char *help_ctx, const char *title) -{ - WRect r = { y1, x1, lines, cols }; - WDialog *new_d; - Widget *w; - WGroup *g; - - new_d = g_new0 (WDialog, 1); - w = WIDGET (new_d); - g = GROUP (new_d); - widget_adjust_position (pos_flags, &r); - group_init (g, &r, callback != NULL ? callback : dlg_default_callback, - mouse_callback != NULL ? mouse_callback : dlg_default_mouse_callback); - - w->pos_flags = pos_flags; - w->options |= WOP_SELECTABLE | WOP_TOP_SELECT; - w->state |= WST_FOCUSED; - /* Temporary hack: dialog doesn't have an owner, own itself. */ - w->owner = g; - - w->keymap = dialog_map; - - w->mouse_handler = dlg_handle_mouse_event; - w->mouse.forced_capture = mouse_close_dialog && (w->pos_flags & WPOS_FULLSCREEN) == 0; - - w->destroy = dlg_default_destroy; - w->get_colors = dlg_default_get_colors; - - new_d->colors = colors; - new_d->help_ctx = help_ctx; - new_d->compact = compact; - new_d->data.p = NULL; - - if (modal) - { - w->state |= WST_MODAL; - - new_d->bg = - WIDGET (frame_new (0, 0, w->rect.lines, w->rect.cols, title, FALSE, new_d->compact)); - group_add_widget (g, new_d->bg); - frame_set_title (FRAME (new_d->bg), title); - } - - /* unique name of event group for this dialog */ - new_d->event_group = g_strdup_printf ("%s_%p", MCEVENT_GROUP_DIALOG, (void *) new_d); - - return new_d; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dlg_set_default_colors (void) -{ - dialog_colors[DLG_COLOR_NORMAL] = COLOR_NORMAL; - dialog_colors[DLG_COLOR_FOCUS] = COLOR_FOCUS; - dialog_colors[DLG_COLOR_HOT_NORMAL] = COLOR_HOT_NORMAL; - dialog_colors[DLG_COLOR_HOT_FOCUS] = COLOR_HOT_FOCUS; - dialog_colors[DLG_COLOR_TITLE] = COLOR_TITLE; - - alarm_colors[DLG_COLOR_NORMAL] = ERROR_COLOR; - alarm_colors[DLG_COLOR_FOCUS] = ERROR_FOCUS; - alarm_colors[DLG_COLOR_HOT_NORMAL] = ERROR_HOT_NORMAL; - alarm_colors[DLG_COLOR_HOT_FOCUS] = ERROR_HOT_FOCUS; - alarm_colors[DLG_COLOR_TITLE] = ERROR_TITLE; - - listbox_colors[DLG_COLOR_NORMAL] = PMENU_ENTRY_COLOR; - listbox_colors[DLG_COLOR_FOCUS] = PMENU_SELECTED_COLOR; - listbox_colors[DLG_COLOR_HOT_NORMAL] = PMENU_ENTRY_COLOR; - listbox_colors[DLG_COLOR_HOT_FOCUS] = PMENU_SELECTED_COLOR; - listbox_colors[DLG_COLOR_TITLE] = PMENU_TITLE_COLOR; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dlg_close (WDialog *h) -{ - widget_set_state (WIDGET (h), WST_CLOSED, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** Init the process */ - -void -dlg_init (WDialog *h) -{ - WGroup *g = GROUP (h); - Widget *wh = WIDGET (h); - - if (top_dlg != NULL && widget_get_state (WIDGET (top_dlg->data), WST_MODAL)) - widget_set_state (wh, WST_MODAL, TRUE); - - /* add dialog to the stack */ - top_dlg = g_list_prepend (top_dlg, h); - - /* Initialize dialog manager and widgets */ - if (widget_get_state (wh, WST_CONSTRUCT)) - { - if (!widget_get_state (wh, WST_MODAL)) - dialog_switch_add (h); - - send_message (h, NULL, MSG_INIT, 0, NULL); - group_default_callback (wh, NULL, MSG_INIT, 0, NULL); - dlg_read_history (h); - } - - /* Select the first widget that takes focus */ - while (g->current != NULL && !widget_is_focusable (g->current->data)) - group_set_current_widget_next (g); - - widget_set_state (wh, WST_ACTIVE, TRUE); - widget_draw (wh); - - h->ret_value = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -dlg_process_event (WDialog *h, int key, Gpm_Event *event) -{ - switch (key) - { - case EV_NONE: - if (tty_got_interrupt ()) - dlg_execute_cmd (h, CK_Cancel); - break; - - case EV_MOUSE: - { - Widget *w = WIDGET (h); - - GROUP (h)->mouse_status = w->mouse_handler (w, event); - break; - } - - default: - dlg_key_event (h, key); - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** Shutdown the dlg_run */ - -void -dlg_run_done (WDialog *h) -{ - top_dlg = g_list_remove (top_dlg, h); - - if (widget_get_state (WIDGET (h), WST_CLOSED)) - { - send_message (h, GROUP (h)->current == NULL ? NULL : WIDGET (GROUP (h)->current->data), - MSG_END, 0, NULL); - if (!widget_get_state (WIDGET (h), WST_MODAL)) - dialog_switch_remove (h); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Standard run dialog routine - * We have to keep this routine small so that we can duplicate it's - * behavior on complex routines like the file routines, this way, - * they can call the dlg_process_event without rewriting all the code - */ - -int -dlg_run (WDialog *h) -{ - dlg_init (h); - frontend_dlg_run (h); - dlg_run_done (h); - return h->ret_value; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Write history to the ${XDG_DATA_HOME}/mc/history file - */ -void -dlg_save_history (WDialog *h) -{ - char *profile; - int i; - - if (num_history_items_recorded == 0) /* this is how to disable */ - return; - - profile = mc_config_get_full_path (MC_HISTORY_FILE); - i = open (profile, O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); - if (i != -1) - close (i); - - /* Make sure the history is only readable by the user */ - if (chmod (profile, S_IRUSR | S_IWUSR) != -1 || errno == ENOENT) - { - ev_history_load_save_t event_data; - - event_data.cfg = mc_config_init (profile, FALSE); - event_data.receiver = NULL; - - /* get all histories in dialog */ - mc_event_raise (h->event_group, MCEVENT_HISTORY_SAVE, &event_data); - - mc_config_save_file (event_data.cfg, NULL); - mc_config_deinit (event_data.cfg); - } - - g_free (profile); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -dlg_get_title (const WDialog *h, size_t len) -{ - char *t; - - if (h == NULL) - abort (); - - if (h->get_title != NULL) - t = h->get_title (h, len); - else - t = g_strdup (""); - - return t; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/dialog.h b/recipes/wip/files/mc/source/lib/widget/dialog.h deleted file mode 100644 index 93c46383c0..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/dialog.h +++ /dev/null @@ -1,129 +0,0 @@ -/* - Dialog box features module for the Midnight Commander - */ - -/** \file dialog.h - * \brief Header: dialog box features module - */ - -#ifndef MC__DIALOG_H -#define MC__DIALOG_H - -#include /* size_t */ - -#include "lib/global.h" -#include "lib/hook.h" /* hook_t */ -#include "lib/keybind.h" /* global_keymap_t */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define DIALOG(x) ((WDialog *)(x)) -#define CONST_DIALOG(x) ((const WDialog *)(x)) - -/* Common return values */ -/* ATTENTION: avoid overlapping with FileProgressStatus values */ -#define B_EXIT 0 -#define B_CANCEL 1 -#define B_ENTER 2 -#define B_HELP 3 -#define B_USER 100 - -/*** enums ***************************************************************************************/ - -/* Dialog color constants */ -typedef enum -{ - DLG_COLOR_NORMAL, - DLG_COLOR_FOCUS, - DLG_COLOR_HOT_NORMAL, - DLG_COLOR_HOT_FOCUS, - DLG_COLOR_TITLE, - DLG_COLOR_COUNT -} dlg_colors_enum_t; - -/*** typedefs(not structures) ********************************************************************/ - -typedef struct WDialog WDialog; - -/* get string representation of shortcut assigned with command */ -/* as menu is a widget of dialog, ask dialog about shortcut string */ -typedef char *(*dlg_shortcut_str) (long command); - -/* get dialog name to show in dialog list */ -typedef char *(*dlg_title_str) (const WDialog * h, size_t len); - -typedef int dlg_colors_t[DLG_COLOR_COUNT]; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -struct WDialog -{ - WGroup group; /* base class */ - - /* Set by the user */ - gboolean compact; /* Suppress spaces around the frame */ - const char *help_ctx; /* Name of the help entry */ - const int *colors; /* Color set. Unused in viewer and editor */ - - /* Set and received by the user */ - int ret_value; /* Result of dlg_run() */ - - /* Internal variables */ - char *event_group; /* Name of event group for this dialog */ - Widget *bg; /* WFrame or WBackground */ - - /* Data can be passed to dialog */ - union - { - void *p; - int i; - } data; - - dlg_shortcut_str get_shortcut; /* Shortcut string */ - dlg_title_str get_title; /* useless for modal dialogs */ -}; - -/*** global variables defined in .c file *********************************************************/ - -/* Color styles for normal and error dialogs */ -extern dlg_colors_t dialog_colors; -extern dlg_colors_t alarm_colors; -extern dlg_colors_t listbox_colors; - -/* A hook list for idle events */ -extern hook_t *idle_hook; - -extern gboolean mouse_close_dialog; - -extern const global_keymap_t *dialog_map; - -/*** declarations of public functions ************************************************************/ - -/* Creates a dialog head */ -WDialog *dlg_create (gboolean modal, int y1, int x1, int lines, int cols, - widget_pos_flags_t pos_flags, gboolean compact, - const int *colors, widget_cb_fn callback, widget_mouse_cb_fn mouse_callback, - const char *help_ctx, const char *title); - -void dlg_set_default_colors (void); - -void dlg_init (WDialog * h); -int dlg_run (WDialog * d); - -void dlg_run_done (WDialog * h); -void dlg_save_history (WDialog * h); -void dlg_process_event (WDialog * h, int key, Gpm_Event * event); - -char *dlg_get_title (const WDialog * h, size_t len); - -/* Default callbacks for dialogs */ -cb_ret_t dlg_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data); -void dlg_default_mouse_callback (Widget * w, mouse_msg_t msg, mouse_event_t * event); - -void dlg_close (WDialog * h); - -/* --------------------------------------------------------------------------------------------- */ -/*** inline functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -#endif /* MC__DIALOG_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/frame.c b/recipes/wip/files/mc/source/lib/widget/frame.c deleted file mode 100644 index 8ab44ff8ec..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/frame.c +++ /dev/null @@ -1,164 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 2020-2025 - The Free Software Foundation, Inc. - - Authors: - Andrew Borodin , 2020-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file frame.c - * \brief Source: WFrame widget (frame of dialogs) - */ - -#include - -#include - -#include "lib/global.h" -#include "lib/tty/tty.h" -#include "lib/tty/color.h" -#include "lib/skin.h" -#include "lib/strutil.h" -#include "lib/util.h" /* MC_PTR_FREE */ -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -frame_adjust (WFrame *f) -{ - Widget *w = WIDGET (f); - - w->rect = WIDGET (w->owner)->rect; - w->pos_flags |= WPOS_KEEP_ALL; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -frame_draw (const WFrame *f) -{ - const Widget *wf = CONST_WIDGET (f); - const WRect *w = &wf->rect; - int d = f->compact ? 0 : 1; - const int *colors; - - colors = widget_get_colors (wf); - - if (mc_global.tty.shadows) - tty_draw_box_shadow (w->y, w->x, w->lines, w->cols, SHADOW_COLOR); - - tty_setcolor (colors[FRAME_COLOR_NORMAL]); - tty_fill_region (w->y, w->x, w->lines, w->cols, ' '); - tty_draw_box (w->y + d, w->x + d, w->lines - 2 * d, w->cols - 2 * d, f->single); - - if (f->title != NULL) - { - /* TODO: truncate long title */ - tty_setcolor (colors[FRAME_COLOR_TITLE]); - widget_gotoyx (f, d, (w->cols - str_term_width1 (f->title)) / 2); - tty_print_string (f->title); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -WFrame * -frame_new (int y, int x, int lines, int cols, const char *title, gboolean single, gboolean compact) -{ - WRect r = { y, x, lines, cols }; - WFrame *f; - Widget *w; - - f = g_new (WFrame, 1); - w = WIDGET (f); - widget_init (w, &r, frame_callback, NULL); - - f->single = single; - f->compact = compact; - - f->title = NULL; - frame_set_title (f, title); - - return f; -} - -/* --------------------------------------------------------------------------------------------- */ - -cb_ret_t -frame_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WFrame *f = FRAME (w); - - switch (msg) - { - case MSG_INIT: - frame_adjust (f); - return MSG_HANDLED; - - case MSG_DRAW: - frame_draw (f); - return MSG_HANDLED; - - case MSG_DESTROY: - g_free (f->title); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -frame_set_title (WFrame *f, const char *title) -{ - MC_PTR_FREE (f->title); - - /* Strip existing spaces, add one space before and after the title */ - if (title != NULL && *title != '\0') - { - char *t; - - t = g_strstrip (g_strdup (title)); - if (*t != '\0') - f->title = g_strdup_printf (" %s ", t); - g_free (t); - } - - widget_draw (WIDGET (f)); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/frame.h b/recipes/wip/files/mc/source/lib/widget/frame.h deleted file mode 100644 index 83e314e666..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/frame.h +++ /dev/null @@ -1,43 +0,0 @@ - -/** \file frame.h - * \brief Header: WFrame widget - */ - -#ifndef MC__WIDGET_FRAME_H -#define MC__WIDGET_FRAME_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define FRAME(x) ((WFrame *)(x)) -#define CONST_FRAME(x) ((const WFrame *)(x)) - -#define FRAME_COLOR_NORMAL DLG_COLOR_NORMAL -#define FRAME_COLOR_TITLE DLG_COLOR_TITLE - -/*** enums ***************************************************************************************/ - -/*** typedefs(not structures) ********************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct -{ - Widget widget; - - char *title; - gboolean single; - gboolean compact; -} WFrame; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -WFrame *frame_new (int y, int x, int lines, int cols, const char *title, gboolean single, - gboolean compact); -cb_ret_t frame_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data); -void frame_set_title (WFrame * f, const char *title); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_FRAME_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/gauge.c b/recipes/wip/files/mc/source/lib/widget/gauge.c deleted file mode 100644 index 2eaacc52cf..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/gauge.c +++ /dev/null @@ -1,178 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file gauge.c - * \brief Source: WGauge widget (progress indicator) - */ - -#include - -#include -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/tty/color.h" -#include "lib/skin.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -gauge_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WGauge *g = GAUGE (w); - const int *colors; - - switch (msg) - { - case MSG_DRAW: - colors = widget_get_colors (w); - widget_gotoyx (w, 0, 0); - if (!g->shown) - { - tty_setcolor (colors[DLG_COLOR_NORMAL]); - tty_printf ("%*s", w->rect.cols, ""); - } - else - { - int gauge_len; - int percentage, columns; - int total = g->max; - int done = g->current; - - if (total <= 0 || done < 0) - { - done = 0; - total = 100; - } - if (done > total) - done = total; - while (total > 65535) - { - total /= 256; - done /= 256; - } - - gauge_len = w->rect.cols - 7; /* 7 positions for percentage */ - - percentage = (200 * done / total + 1) / 2; - columns = (2 * gauge_len * done / total + 1) / 2; - tty_print_char ('['); - if (g->from_left_to_right) - { - tty_setcolor (GAUGE_COLOR); - tty_printf ("%*s", columns, ""); - tty_setcolor (colors[DLG_COLOR_NORMAL]); - tty_printf ("%*s] %3d%%", gauge_len - columns, "", percentage); - } - else - { - tty_setcolor (colors[DLG_COLOR_NORMAL]); - tty_printf ("%*s", gauge_len - columns, ""); - tty_setcolor (GAUGE_COLOR); - tty_printf ("%*s", columns, ""); - tty_setcolor (colors[DLG_COLOR_NORMAL]); - tty_printf ("] %3d%%", percentage); - } - } - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -WGauge * -gauge_new (int y, int x, int cols, gboolean shown, int max, int current) -{ - WRect r = { y, x, 1, cols }; - WGauge *g; - Widget *w; - - g = g_new (WGauge, 1); - w = WIDGET (g); - widget_init (w, &r, gauge_callback, NULL); - - g->shown = shown; - if (max == 0) - max = 1; /* I do not like division by zero :) */ - g->max = max; - g->current = current; - g->from_left_to_right = TRUE; - - return g; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -gauge_set_value (WGauge *g, int max, int current) -{ - if (g->current == current && g->max == max) - return; /* Do not flicker */ - - if (max == 0) - max = 1; /* I do not like division by zero :) */ - g->current = current; - g->max = max; - widget_draw (WIDGET (g)); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -gauge_show (WGauge *g, gboolean shown) -{ - if (g->shown != shown) - { - g->shown = shown; - widget_draw (WIDGET (g)); - } -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/gauge.h b/recipes/wip/files/mc/source/lib/widget/gauge.h deleted file mode 100644 index e1f5d2c549..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/gauge.h +++ /dev/null @@ -1,36 +0,0 @@ - -/** \file gauge.h - * \brief Header: WGauge widget - */ - -#ifndef MC__WIDGET_GAUGE_H -#define MC__WIDGET_GAUGE_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define GAUGE(x) ((WGauge *)(x)) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct WGauge -{ - Widget widget; - gboolean shown; - int max; - int current; - gboolean from_left_to_right; -} WGauge; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -WGauge *gauge_new (int y, int x, int cols, gboolean shown, int max, int current); -void gauge_set_value (WGauge * g, int max, int current); -void gauge_show (WGauge * g, gboolean shown); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_GAUGE_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/group.c b/recipes/wip/files/mc/source/lib/widget/group.c deleted file mode 100644 index 958330de10..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/group.c +++ /dev/null @@ -1,970 +0,0 @@ -/* - Widget group features module for the Midnight Commander - - Copyright (C) 2020-2025 - The Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2020-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file group.c - * \brief Source: widget group features module - */ - -#include - -#include -#include -#include - -#include "lib/global.h" - -#include "lib/tty/key.h" /* ALT() */ - -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/* Control widget positions in a group */ -typedef struct -{ - int shift_x; - int scale_x; - int shift_y; - int scale_y; -} widget_shift_scale_t; - -typedef struct -{ - widget_state_t state; - gboolean enable; -} widget_state_info_t; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -group_widget_init (void *data, void *user_data) -{ - (void) user_data; - - send_message (WIDGET (data), NULL, MSG_INIT, 0, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -static GList * -group_get_next_or_prev_of (GList *list, gboolean next) -{ - GList *l = NULL; - - if (list != NULL) - { - WGroup *owner = WIDGET (list->data)->owner; - - if (owner != NULL) - { - if (next) - { - l = g_list_next (list); - if (l == NULL) - l = owner->widgets; - } - else - { - l = g_list_previous (list); - if (l == NULL) - l = g_list_last (owner->widgets); - } - } - } - - return l; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -group_select_next_or_prev (WGroup *g, gboolean next) -{ - if (g->widgets != NULL && g->current != NULL) - { - GList *l = g->current; - - do - { - l = group_get_next_or_prev_of (l, next); - } - while (!widget_is_focusable (l->data) && l != g->current); - - widget_select (l->data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -group_widget_set_state (gpointer data, gpointer user_data) -{ - widget_state_info_t *state = (widget_state_info_t *) user_data; - - widget_set_state (WIDGET (data), state->state, state->enable); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Send broadcast message to all widgets in the group that have specified options. - * - * @param g WGroup object - * @param msg message sent to widgets - * @param reverse if TRUE, send message in reverse order, FALSE -- in direct one. - * @param options if WOP_DEFAULT, the message is sent to all widgets. Else message is sent to widgets - * that have specified options. - */ - -static void -group_send_broadcast_msg_custom (WGroup *g, widget_msg_t msg, gboolean reverse, - widget_options_t options) -{ - GList *p, *first; - - if (g->widgets == NULL) - return; - - if (g->current == NULL) - g->current = g->widgets; - - p = group_get_next_or_prev_of (g->current, !reverse); - first = p; - - do - { - Widget *w = WIDGET (p->data); - - p = group_get_next_or_prev_of (p, !reverse); - - if (options == WOP_DEFAULT || (options & w->options) != 0) - /* special case: don't draw invisible widgets */ - if (msg != MSG_DRAW || widget_get_state (w, WST_VISIBLE)) - send_message (w, NULL, msg, 0, NULL); - } - while (first != p); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Default group callback to convert group coordinates from local (relative to owner) to global - * (relative to screen). - * - * @param w widget - */ - -static void -group_default_make_global (Widget *w, const WRect *delta) -{ - GList *iter; - - if (delta != NULL) - { - /* change own coordinates */ - widget_default_make_global (w, delta); - /* change child widget coordinates */ - for (iter = GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) - WIDGET (iter->data)->make_global (WIDGET (iter->data), delta); - } - else if (w->owner != NULL) - { - WRect r = WIDGET (w->owner)->rect; - - r.lines = 0; - r.cols = 0; - /* change own coordinates */ - widget_default_make_global (w, &r); - /* change child widget coordinates */ - for (iter = GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) - WIDGET (iter->data)->make_global (WIDGET (iter->data), &r); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Default group callback to convert group coordinates from global (relative to screen) to local - * (relative to owner). - * - * @param w widget - */ - -static void -group_default_make_local (Widget *w, const WRect *delta) -{ - GList *iter; - - if (delta != NULL) - { - /* change own coordinates */ - widget_default_make_local (w, delta); - /* change child widget coordinates */ - for (iter = GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) - WIDGET (iter->data)->make_local (WIDGET (iter->data), delta); - } - else if (w->owner != NULL) - { - WRect r = WIDGET (w->owner)->rect; - - r.lines = 0; - r.cols = 0; - /* change own coordinates */ - widget_default_make_local (w, &r); - /* change child widget coordinates */ - for (iter = GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) - WIDGET (iter->data)->make_local (WIDGET (iter->data), &r); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Default group callback function to find widget in the group. - * - * @param w WGroup object - * @param what widget to find - * - * @return holder of @what if found, NULL otherwise - */ - -static GList * -group_default_find (const Widget *w, const Widget *what) -{ - GList *w0; - - w0 = widget_default_find (w, what); - if (w0 == NULL) - { - GList *iter; - - for (iter = CONST_GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) - { - w0 = widget_find (WIDGET (iter->data), what); - if (w0 != NULL) - break; - } - } - - return w0; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Default group callback function to find widget in the group using widget callback. - * - * @param w WGroup object - * @param cb widget callback - * - * @return widget object if found, NULL otherwise - */ - -static Widget * -group_default_find_by_type (const Widget *w, widget_cb_fn cb) -{ - Widget *w0; - - w0 = widget_default_find_by_type (w, cb); - if (w0 == NULL) - { - GList *iter; - - for (iter = CONST_GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) - { - w0 = widget_find_by_type (WIDGET (iter->data), cb); - if (w0 != NULL) - break; - } - } - - return w0; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Default group callback function to find widget by widget ID in the group. - * - * @param w WGroup object - * @param id widget ID - * - * @return widget object if widget with specified id is found in group, NULL otherwise - */ - -static Widget * -group_default_find_by_id (const Widget *w, unsigned long id) -{ - Widget *w0; - - w0 = widget_default_find_by_id (w, id); - if (w0 == NULL) - { - GList *iter; - - for (iter = CONST_GROUP (w)->widgets; iter != NULL; iter = g_list_next (iter)) - { - w0 = widget_find_by_id (WIDGET (iter->data), id); - if (w0 != NULL) - break; - } - } - - return w0; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Update cursor position in the active widget of the group. - * - * @param g WGroup object - * - * @return MSG_HANDLED if cursor was updated in the specified group, MSG_NOT_HANDLED otherwise - */ - -static cb_ret_t -group_update_cursor (WGroup *g) -{ - GList *p = g->current; - - if (p != NULL && widget_get_state (WIDGET (g), WST_ACTIVE)) - do - { - Widget *w = WIDGET (p->data); - - /* Don't use widget_is_selectable() here. - If WOP_SELECTABLE option is not set, widget can handle mouse events. - For example, commandl line in file manager */ - if (widget_get_options (w, WOP_WANT_CURSOR) && widget_get_state (w, WST_VISIBLE) - && !widget_get_state (w, WST_DISABLED) && widget_update_cursor (WIDGET (p->data))) - return MSG_HANDLED; - - p = group_get_widget_next_of (p); - } - while (p != g->current); - - return MSG_NOT_HANDLED; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -group_widget_set_position (gpointer data, gpointer user_data) -{ - /* there are, mainly, 2 generally possible situations: - * 1. control sticks to one side - it should be moved - * 2. control sticks to two sides of one direction - it should be sized - */ - - Widget *c = WIDGET (data); - const WRect *g = &CONST_WIDGET (c->owner)->rect; - const widget_shift_scale_t *wss = (const widget_shift_scale_t *) user_data; - WRect r = c->rect; - - if ((c->pos_flags & WPOS_CENTER_HORZ) != 0) - r.x = g->x + (g->cols - c->rect.cols) / 2; - else if ((c->pos_flags & WPOS_KEEP_LEFT) != 0 && (c->pos_flags & WPOS_KEEP_RIGHT) != 0) - { - r.x += wss->shift_x; - r.cols += wss->scale_x; - } - else if ((c->pos_flags & WPOS_KEEP_LEFT) != 0) - r.x += wss->shift_x; - else if ((c->pos_flags & WPOS_KEEP_RIGHT) != 0) - r.x += wss->shift_x + wss->scale_x; - - if ((c->pos_flags & WPOS_CENTER_VERT) != 0) - r.y = g->y + (g->lines - c->rect.lines) / 2; - else if ((c->pos_flags & WPOS_KEEP_TOP) != 0 && (c->pos_flags & WPOS_KEEP_BOTTOM) != 0) - { - r.y += wss->shift_y; - r.lines += wss->scale_y; - } - else if ((c->pos_flags & WPOS_KEEP_TOP) != 0) - r.y += wss->shift_y; - else if ((c->pos_flags & WPOS_KEEP_BOTTOM) != 0) - r.y += wss->shift_y + wss->scale_y; - - send_message (c, NULL, MSG_RESIZE, 0, &r); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -group_set_position (WGroup *g, const WRect *r) -{ - WRect *w = &WIDGET (g)->rect; - widget_shift_scale_t wss; - /* save old positions, will be used to reposition childs */ - WRect or = *w; - - *w = *r; - - /* dialog is empty */ - if (g->widgets == NULL) - return; - - if (g->current == NULL) - g->current = g->widgets; - - /* values by which controls should be moved */ - wss.shift_x = w->x - or.x; - wss.scale_x = w->cols - or.cols; - wss.shift_y = w->y - or.y; - wss.scale_y = w->lines - or.lines; - - if (wss.shift_x != 0 || wss.shift_y != 0 || wss.scale_x != 0 || wss.scale_y != 0) - g_list_foreach (g->widgets, group_widget_set_position, &wss); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -group_default_resize (WGroup *g, WRect *r) -{ - /* This is default resizing mechanism. - * The main idea of this code is to resize dialog according to flags - * (if any of flags require automatic resizing, like WPOS_CENTER, - * end after that reposition controls in dialog according to flags of widget) - */ - - Widget *w = WIDGET (g); - WRect r0; - - r0 = r != NULL ? *r : w->rect; - widget_adjust_position (w->pos_flags, &r0); - group_set_position (g, &r0); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -group_draw (WGroup *g) -{ - Widget *wg = WIDGET (g); - - /* draw all widgets in Z-order, from first to last */ - if (widget_get_state (wg, WST_ACTIVE)) - { - GList *p; - - if (g->winch_pending) - { - g->winch_pending = FALSE; - send_message (wg, NULL, MSG_RESIZE, 0, NULL); - } - - for (p = g->widgets; p != NULL; p = g_list_next (p)) - widget_draw (WIDGET (p->data)); - - widget_update_cursor (wg); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -group_handle_key (WGroup *g, int key) -{ - cb_ret_t handled; - - /* first try the hotkey */ - handled = send_message (g, NULL, MSG_HOTKEY, key, NULL); - - /* not used - then try widget_callback */ - if (handled == MSG_NOT_HANDLED) - handled = send_message (g->current->data, NULL, MSG_KEY, key, NULL); - - /* not used - try to use the unhandled case */ - if (handled == MSG_NOT_HANDLED) - handled = send_message (g, g->current->data, MSG_UNHANDLED_KEY, key, NULL); - - return handled; -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -group_handle_hotkey (WGroup *g, int key) -{ - GList *current; - Widget *w; - cb_ret_t handled = MSG_NOT_HANDLED; - int c; - - if (g->widgets == NULL) - return MSG_NOT_HANDLED; - - if (g->current == NULL) - g->current = g->widgets; - - w = WIDGET (g->current->data); - - if (!widget_get_state (w, WST_VISIBLE) || widget_get_state (w, WST_DISABLED)) - return MSG_NOT_HANDLED; - - /* Explanation: we don't send letter hotkeys to other widgets - * if the currently selected widget is an input line */ - if (widget_get_options (w, WOP_IS_INPUT)) - { - /* skip ascii control characters, anything else can valid character in some encoding */ - if (key >= 32 && key < 256) - return MSG_NOT_HANDLED; - } - - /* If it's an alt key, send the message */ - c = key & ~ALT (0); - if (key & ALT (0) && g_ascii_isalpha (c)) - key = g_ascii_tolower (c); - - if (widget_get_options (w, WOP_WANT_HOTKEY)) - handled = send_message (w, NULL, MSG_HOTKEY, key, NULL); - - /* If not used, send hotkey to other widgets */ - if (handled == MSG_HANDLED) - return MSG_HANDLED; - - current = group_get_widget_next_of (g->current); - - /* send it to all widgets */ - while (g->current != current && handled == MSG_NOT_HANDLED) - { - w = WIDGET (current->data); - - if (widget_get_options (w, WOP_WANT_HOTKEY) && !widget_get_state (w, WST_DISABLED)) - handled = send_message (w, NULL, MSG_HOTKEY, key, NULL); - - if (handled == MSG_NOT_HANDLED) - current = group_get_widget_next_of (current); - } - - if (handled == MSG_HANDLED) - { - w = WIDGET (current->data); - widget_select (w); - send_message (g, w, MSG_HOTKEY_HANDLED, 0, NULL); - } - - return handled; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** - * Initialize group. - * - * @param g WGroup widget - * @param y1 y-coordinate of top-left corner - * @param x1 x-coordinate of top-left corner - * @param lines group height - * @param cols group width - * @param callback group callback - * @param mouse_callback group mouse handler - */ - -void -group_init (WGroup *g, const WRect *r, widget_cb_fn callback, widget_mouse_cb_fn mouse_callback) -{ - Widget *w = WIDGET (g); - - widget_init (w, r, callback != NULL ? callback : group_default_callback, mouse_callback); - - w->mouse_handler = group_handle_mouse_event; - - w->make_global = group_default_make_global; - w->make_local = group_default_make_local; - - w->find = group_default_find; - w->find_by_type = group_default_find_by_type; - w->find_by_id = group_default_find_by_id; - - w->set_state = group_default_set_state; - - g->mouse_status = MOU_UNHANDLED; -} - -/* --------------------------------------------------------------------------------------------- */ - -cb_ret_t -group_default_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WGroup *g = GROUP (w); - - switch (msg) - { - case MSG_INIT: - g_list_foreach (g->widgets, group_widget_init, NULL); - return MSG_HANDLED; - - case MSG_DRAW: - group_draw (g); - return MSG_HANDLED; - - case MSG_KEY: - return group_handle_key (g, parm); - - case MSG_HOTKEY: - return group_handle_hotkey (g, parm); - - case MSG_CURSOR: - return group_update_cursor (g); - - case MSG_RESIZE: - group_default_resize (g, RECT (data)); - return MSG_HANDLED; - - case MSG_DESTROY: - g_list_foreach (g->widgets, (GFunc) widget_destroy, NULL); - g_list_free (g->widgets); - g->widgets = NULL; - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Change state of group. - * - * @param w group - * @param state widget state flag to modify - * @param enable specifies whether to turn the flag on (TRUE) or off (FALSE). - * Only one flag per call can be modified. - * @return MSG_HANDLED if set was handled successfully, MSG_NOT_HANDLED otherwise. - */ -cb_ret_t -group_default_set_state (Widget *w, widget_state_t state, gboolean enable) -{ - gboolean ret = MSG_HANDLED; - WGroup *g = GROUP (w); - widget_state_info_t st = { - .state = state, - .enable = enable - }; - - ret = widget_default_set_state (w, state, enable); - - if (state == WST_ACTIVE || state == WST_SUSPENDED || state == WST_CLOSED) - /* inform all child widgets */ - g_list_foreach (g->widgets, group_widget_set_state, &st); - - if ((w->state & WST_ACTIVE) != 0) - { - if ((w->state & WST_FOCUSED) != 0) - { - /* update current widget */ - if (g->current != NULL) - widget_set_state (WIDGET (g->current->data), WST_FOCUSED, enable); - } - else - /* inform all child widgets */ - g_list_foreach (g->widgets, group_widget_set_state, &st); - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Handling mouse events. - * - * @param g WGroup object - * @param event GPM mouse event - * - * @return result of mouse event handling - */ -int -group_handle_mouse_event (Widget *w, Gpm_Event *event) -{ - WGroup *g = GROUP (w); - - if (g->widgets != NULL) - { - GList *p; - - /* send the event to widgets in reverse Z-order */ - p = g_list_last (g->widgets); - do - { - Widget *wp = WIDGET (p->data); - - /* Don't use widget_is_selectable() here. - If WOP_SELECTABLE option is not set, widget can handle mouse events. - For example, commandl line in file manager */ - if (widget_get_state (w, WST_VISIBLE) && !widget_get_state (wp, WST_DISABLED)) - { - /* put global cursor position to the widget */ - int ret; - - ret = wp->mouse_handler (wp, event); - if (ret != MOU_UNHANDLED) - return ret; - } - - p = g_list_previous (p); - } - while (p != NULL); - } - - return MOU_UNHANDLED; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Insert widget to group before specified widget with specified positioning. - * Make the inserted widget current. - * - * @param g WGroup object - * @param w widget to be added - * @pos positioning flags - * @param before add @w before this widget - * - * @return widget ID - */ - -unsigned long -group_add_widget_autopos (WGroup *g, void *w, widget_pos_flags_t pos_flags, const void *before) -{ - Widget *wg = WIDGET (g); - Widget *ww = WIDGET (w); - GList *new_current; - - /* Don't accept NULL widget. This shouldn't happen */ - assert (ww != NULL); - - if ((pos_flags & WPOS_CENTER_HORZ) != 0) - ww->rect.x = (wg->rect.cols - ww->rect.cols) / 2; - - if ((pos_flags & WPOS_CENTER_VERT) != 0) - ww->rect.y = (wg->rect.lines - ww->rect.lines) / 2; - - ww->owner = g; - ww->pos_flags = pos_flags; - widget_make_global (ww); - - if (g->widgets == NULL || before == NULL) - { - g->widgets = g_list_append (g->widgets, ww); - new_current = g_list_last (g->widgets); - } - else - { - GList *b; - - b = g_list_find (g->widgets, before); - - /* don't accept widget not from group. This shouldn't happen */ - assert (b != NULL); - - b = g_list_next (b); - g->widgets = g_list_insert_before (g->widgets, b, ww); - if (b != NULL) - new_current = g_list_previous (b); - else - new_current = g_list_last (g->widgets); - } - - /* widget has been added at runtime */ - if (widget_get_state (wg, WST_ACTIVE)) - { - group_widget_init (ww, NULL); - widget_select (ww); - } - else - g->current = new_current; - - return ww->id; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Remove widget from group. - * - * @param w Widget object - */ -void -group_remove_widget (void *w) -{ - Widget *ww = WIDGET (w); - WGroup *g; - GList *d; - - /* Don't accept NULL widget. This shouldn't happen */ - assert (w != NULL); - - g = ww->owner; - - d = g_list_find (g->widgets, ww); - if (d == g->current) - group_set_current_widget_next (g); - - g->widgets = g_list_delete_link (g->widgets, d); - if (g->widgets == NULL) - g->current = NULL; - - /* widget has been deleted at runtime */ - if (widget_get_state (WIDGET (g), WST_ACTIVE)) - { - group_draw (g); - group_select_current_widget (g); - } - - widget_make_local (ww); - ww->owner = NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Switch current widget to widget after current in group. - * - * @param g WGroup object - */ - -void -group_set_current_widget_next (WGroup *g) -{ - g->current = group_get_next_or_prev_of (g->current, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Switch current widget to widget before current in group. - * - * @param g WGroup object - */ - -void -group_set_current_widget_prev (WGroup *g) -{ - g->current = group_get_next_or_prev_of (g->current, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Get widget that is after specified widget in group. - * - * @param w widget holder - * - * @return widget that is after "w" or NULL if "w" is NULL or widget doesn't have owner - */ - -GList * -group_get_widget_next_of (GList *w) -{ - return group_get_next_or_prev_of (w, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Get widget that is before specified widget in group. - * - * @param w widget holder - * - * @return widget that is before "w" or NULL if "w" is NULL or widget doesn't have owner - */ - -GList * -group_get_widget_prev_of (GList *w) -{ - return group_get_next_or_prev_of (w, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Try to select next widget in the Z order. - * - * @param g WGroup object - */ - -void -group_select_next_widget (WGroup *g) -{ - group_select_next_or_prev (g, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Try to select previous widget in the Z order. - * - * @param g WGroup object - */ - -void -group_select_prev_widget (WGroup *g) -{ - group_select_next_or_prev (g, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Find the widget with the specified ID in the group and select it - * - * @param g WGroup object - * @param id widget ID - */ - -void -group_select_widget_by_id (const WGroup *g, unsigned long id) -{ - Widget *w; - - w = widget_find_by_id (CONST_WIDGET (g), id); - if (w != NULL) - widget_select (w); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Send broadcast message to all widgets in the group. - * - * @param g WGroup object - * @param msg message sent to widgets - */ - -void -group_send_broadcast_msg (WGroup *g, widget_msg_t msg) -{ - group_send_broadcast_msg_custom (g, msg, FALSE, WOP_DEFAULT); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/group.h b/recipes/wip/files/mc/source/lib/widget/group.h deleted file mode 100644 index 054fbd1ef7..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/group.h +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Widget group features module for Midnight Commander - */ - -/** \file group.h - * \brief Header: widget group features module - */ - -#ifndef MC__GROUP_H -#define MC__GROUP_H - -#include "lib/global.h" - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define GROUP(x) ((WGroup *)(x)) -#define CONST_GROUP(x) ((const WGroup *)(x)) - -/*** enums ***************************************************************************************/ - -/*** typedefs(not structures) ********************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -struct WGroup -{ - Widget widget; - - /* Group members */ - GList *widgets; /* widgets list */ - GList *current; /* Currently active widget */ - - gboolean winch_pending; /* SIGWINCH signal has been got. Resize group after rise */ - int mouse_status; /* For the autorepeat status of the mouse */ -}; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -void group_init (WGroup * g, const WRect * r, widget_cb_fn callback, - widget_mouse_cb_fn mouse_callback); -/* Default callback for groups */ -cb_ret_t group_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, - void *data); -cb_ret_t group_default_set_state (Widget * w, widget_state_t state, gboolean enable); -int group_handle_mouse_event (Widget * w, Gpm_Event * event); - -unsigned long group_add_widget_autopos (WGroup * g, void *w, widget_pos_flags_t pos_flags, - const void *before); -void group_remove_widget (void *w); - -void group_set_current_widget_next (WGroup * g); -void group_set_current_widget_prev (WGroup * g); - -GList *group_get_widget_next_of (GList * w); -GList *group_get_widget_prev_of (GList * w); - -void group_select_next_widget (WGroup * g); -void group_select_prev_widget (WGroup * g); - -void group_select_widget_by_id (const WGroup * g, unsigned long id); - -void group_send_broadcast_msg (WGroup * g, widget_msg_t message); - -/* --------------------------------------------------------------------------------------------- */ -/*** inline functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** - * Add widget to group before current widget. - * - * @param g WGroup object - * @param w widget to be added - * - * @return widget ID - */ - -static inline unsigned long -group_add_widget (WGroup *g, void *w) -{ - return group_add_widget_autopos (g, w, WPOS_KEEP_DEFAULT, - g->current != NULL ? g->current->data : NULL); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Add widget to group before specified widget. - * - * @param g WGroup object - * @param w widget to be added - * @param before add @w before this widget - * - * @return widget ID - */ - -static inline unsigned long -group_add_widget_before (WGroup *g, void *w, void *before) -{ - return group_add_widget_autopos (g, w, WPOS_KEEP_DEFAULT, before); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Select current widget in the Dialog. - * - * @param h WDialog object - */ - -static inline void -group_select_current_widget (WGroup *g) -{ - if (g->current != NULL) - widget_select (WIDGET (g->current->data)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline unsigned long -group_get_current_widget_id (const WGroup *g) -{ - return WIDGET (g->current->data)->id; -} - -#endif /* MC__GROUP_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/groupbox.c b/recipes/wip/files/mc/source/lib/widget/groupbox.c deleted file mode 100644 index f2e848ae11..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/groupbox.c +++ /dev/null @@ -1,136 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file groupbox.c - * \brief Source: WGroupbox widget - */ - -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/tty/color.h" -#include "lib/skin.h" -#include "lib/util.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -groupbox_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WGroupbox *g = GROUPBOX (w); - - switch (msg) - { - case MSG_DRAW: - { - gboolean disabled; - const int *colors; - - colors = widget_get_colors (w); - - disabled = widget_get_state (w, WST_DISABLED); - tty_setcolor (disabled ? DISABLED_COLOR : colors[DLG_COLOR_NORMAL]); - tty_draw_box (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, TRUE); - - if (g->title != NULL) - { - tty_setcolor (disabled ? DISABLED_COLOR : colors[DLG_COLOR_TITLE]); - widget_gotoyx (w, 0, 1); - tty_print_string (g->title); - } - return MSG_HANDLED; - } - - case MSG_DESTROY: - g_free (g->title); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -WGroupbox * -groupbox_new (int y, int x, int height, int width, const char *title) -{ - WRect r = { y, x, height, width }; - WGroupbox *g; - Widget *w; - - g = g_new (WGroupbox, 1); - w = WIDGET (g); - widget_init (w, &r, groupbox_callback, NULL); - - g->title = NULL; - groupbox_set_title (g, title); - - return g; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -groupbox_set_title (WGroupbox *g, const char *title) -{ - MC_PTR_FREE (g->title); - - /* Strip existing spaces, add one space before and after the title */ - if (title != NULL && *title != '\0') - { - char *t; - - t = g_strstrip (g_strdup (title)); - g->title = g_strconcat (" ", t, " ", (char *) NULL); - g_free (t); - } - - widget_draw (WIDGET (g)); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/groupbox.h b/recipes/wip/files/mc/source/lib/widget/groupbox.h deleted file mode 100644 index 06fb0d35c6..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/groupbox.h +++ /dev/null @@ -1,32 +0,0 @@ - -/** \file groupbox.h - * \brief Header: WGroupbox widget - */ - -#ifndef MC__WIDGET_GROUPBOX_H -#define MC__WIDGET_GROUPBOX_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define GROUPBOX(x) ((WGroupbox *)(x)) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct WGroupbox -{ - Widget widget; - char *title; -} WGroupbox; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -WGroupbox *groupbox_new (int y, int x, int height, int width, const char *title); -void groupbox_set_title (WGroupbox * g, const char *title); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_GROUPBOX_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/history.c b/recipes/wip/files/mc/source/lib/widget/history.c deleted file mode 100644 index 6c6e22dde9..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/history.c +++ /dev/null @@ -1,302 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file history.c - * \brief Source: show history - */ - -#include - -#include -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" /* LINES, COLS */ -#include "lib/strutil.h" -#include "lib/widget.h" -#include "lib/keybind.h" /* CK_* */ - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#define B_VIEW (B_USER + 1) -#define B_EDIT (B_USER + 2) - -/*** file scope type declarations ****************************************************************/ - -typedef struct -{ - int y; - int x; - size_t count; - size_t max_width; -} history_dlg_data; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -history_dlg_reposition (WDialog *dlg_head) -{ - history_dlg_data *data; - int x = 0, y, he, wi; - WRect r; - - /* guard checks */ - if (dlg_head == NULL || dlg_head->data.p == NULL) - return MSG_NOT_HANDLED; - - data = (history_dlg_data *) dlg_head->data.p; - - y = data->y; - he = data->count + 2; - - if (he <= y || y > (LINES - 6)) - { - he = MIN (he, y - 1); - y -= he; - } - else - { - y++; - he = MIN (he, LINES - y); - } - - if (data->x > 2) - x = data->x - 2; - - wi = data->max_width + 4; - - if ((wi + x) > COLS) - { - wi = MIN (wi, COLS); - x = COLS - wi; - } - - rect_init (&r, y, x, he, wi); - - return dlg_default_callback (WIDGET (dlg_head), NULL, MSG_RESIZE, 0, &r); -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -history_dlg_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - switch (msg) - { - case MSG_RESIZE: - return history_dlg_reposition (DIALOG (w)); - - case MSG_NOTIFY: - { - /* message from listbox */ - WDialog *d = DIALOG (w); - - switch (parm) - { - case CK_View: - d->ret_value = B_VIEW; - break; - case CK_Edit: - d->ret_value = B_EDIT; - break; - case CK_Enter: - d->ret_value = B_ENTER; - break; - default: - return MSG_NOT_HANDLED; - } - - dlg_close (d); - return MSG_HANDLED; - } - - default: - return dlg_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -history_create_item (history_descriptor_t *hd, void *data) -{ - char *text = (char *) data; - size_t width; - - width = str_term_width1 (text); - hd->max_width = MAX (width, hd->max_width); - - listbox_add_item (hd->listbox, LISTBOX_APPEND_AT_END, 0, text, NULL, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void * -history_release_item (history_descriptor_t *hd, WLEntry *le) -{ - void *text; - - (void) hd; - - text = le->text; - le->text = NULL; - - return text; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -void -history_descriptor_init (history_descriptor_t *hd, int y, int x, GList *history, int current) -{ - hd->list = history; - hd->y = y; - hd->x = x; - hd->current = current; - hd->action = CK_IgnoreKey; - hd->text = NULL; - hd->max_width = 0; - hd->listbox = listbox_new (1, 1, 2, 2, TRUE, NULL); - /* in most cases history list contains string only and no any other data */ - hd->create = history_create_item; - hd->release = history_release_item; - hd->free = g_free; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -history_show (history_descriptor_t *hd) -{ - GList *z, *hi; - size_t count; - WDialog *query_dlg; - history_dlg_data hist_data; - int dlg_ret; - - if (hd == NULL || hd->list == NULL) - return; - - hd->max_width = str_term_width1 (_("History")) + 2; - - for (z = hd->list; z != NULL; z = g_list_previous (z)) - hd->create (hd, z->data); - /* after this, the order of history items is following: recent at begin, oldest at end */ - - count = listbox_get_length (hd->listbox); - - hist_data.y = hd->y; - hist_data.x = hd->x; - hist_data.count = count; - hist_data.max_width = hd->max_width; - - query_dlg = - dlg_create (TRUE, 0, 0, 4, 4, WPOS_KEEP_DEFAULT, TRUE, dialog_colors, history_dlg_callback, - NULL, "[History-query]", _("History")); - query_dlg->data.p = &hist_data; - - /* this call makes list stick to all sides of dialog, effectively make - it be resized with dialog */ - group_add_widget_autopos (GROUP (query_dlg), hd->listbox, WPOS_KEEP_ALL, NULL); - - /* to avoid diplicating of (calculating sizes in two places) - code, call history_dlg_callback function here, to set dialog and - controls positions. - The main idea - create 4x4 dialog and add 2x2 list in - center of it, and let dialog function resize it to needed size. */ - send_message (query_dlg, NULL, MSG_RESIZE, 0, NULL); - - if (WIDGET (query_dlg)->rect.y < hd->y) - { - /* history is above base widget -- revert order to place recent item at bottom */ - /* revert history direction */ - g_queue_reverse (hd->listbox->list); - if (hd->current < 0 || (size_t) hd->current >= count) - listbox_select_last (hd->listbox); - else - listbox_set_current (hd->listbox, count - 1 - (size_t) hd->current); - } - else - { - /* history is below base widget -- keep order to place recent item on top */ - if (hd->current > 0) - listbox_set_current (hd->listbox, hd->current); - } - - dlg_ret = dlg_run (query_dlg); - if (dlg_ret != B_CANCEL) - { - char *q; - - switch (dlg_ret) - { - case B_EDIT: - hd->action = CK_Edit; - break; - case B_VIEW: - hd->action = CK_View; - break; - default: - hd->action = CK_Enter; - } - - listbox_get_current (hd->listbox, &q, NULL); - hd->text = g_strdup (q); - } - - /* get modified history from dialog */ - z = NULL; - for (hi = listbox_get_first_link (hd->listbox); hi != NULL; hi = g_list_next (hi)) - /* history is being reverted here again */ - z = g_list_prepend (z, hd->release (hd, LENTRY (hi->data))); - - /* restore history direction */ - if (WIDGET (query_dlg)->rect.y < hd->y) - z = g_list_reverse (z); - - widget_destroy (WIDGET (query_dlg)); - - hd->list = g_list_first (hd->list); - g_list_free_full (hd->list, hd->free); - hd->list = g_list_last (z); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/history.h b/recipes/wip/files/mc/source/lib/widget/history.h deleted file mode 100644 index 03f764ffd1..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/history.h +++ /dev/null @@ -1,51 +0,0 @@ - -/** \file lib/widget/history.h - * \brief Header: show history - */ - -#ifndef MC__WIDGET_HISTORY_H -#define MC__WIDGET_HISTORY_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -/* forward declarations */ -struct history_descriptor_t; -struct WLEntry; -struct WListbox; - -typedef void (*history_create_item_func) (struct history_descriptor_t * hd, void *data); -typedef void *(*history_release_item_func) (struct history_descriptor_t * hd, struct WLEntry * le); - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct history_descriptor_t -{ - GList *list; /**< list with history items */ - int y; /**< y-coordinate to place history window */ - int x; /**< x-coordinate to place history window */ - int current; /**< initially selected item in the history */ - int action; /**< return action in the history */ - char *text; /**< return text of selected item */ - - size_t max_width; /**< maximum width of string in history */ - struct WListbox *listbox; /**< listbox widget to draw history */ - - history_create_item_func create; /**< function to create item of @list */ - history_release_item_func release; /**< function to release item of @list */ - GDestroyNotify free; /**< function to destroy element of @list */ -} history_descriptor_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -void history_descriptor_init (history_descriptor_t * hd, int y, int x, GList * history, - int current); - -void history_show (history_descriptor_t * hd); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_HISTORY_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/hline.c b/recipes/wip/files/mc/source/lib/widget/hline.c deleted file mode 100644 index cf4e8c6bb6..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/hline.c +++ /dev/null @@ -1,194 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file hline.c - * \brief Source: WHLine widget (horizontal line) - */ - -#include - -#include -#include - -#include "lib/global.h" -#include "lib/tty/tty.h" -#include "lib/tty/color.h" -#include "lib/skin.h" -#include "lib/strutil.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -hline_adjust_cols (WHLine *l) -{ - if (l->auto_adjust_cols) - { - Widget *wl = WIDGET (l); - const Widget *o = CONST_WIDGET (wl->owner); - WRect *w = &wl->rect; - const WRect *wo = &o->rect; - - if (CONST_DIALOG (o)->compact) - { - w->x = wo->x; - w->cols = wo->cols; - } - else - { - w->x = wo->x + 1; - w->cols = wo->cols - 2; - } - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -hline_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WHLine *l = HLINE (w); - - switch (msg) - { - case MSG_INIT: - hline_adjust_cols (l); - return MSG_HANDLED; - - case MSG_RESIZE: - hline_adjust_cols (l); - w->rect.y = RECT (data)->y; - return MSG_HANDLED; - - case MSG_DRAW: - if (l->transparent) - tty_setcolor (DEFAULT_COLOR); - else - { - const int *colors; - - colors = widget_get_colors (w); - tty_setcolor (colors[DLG_COLOR_NORMAL]); - } - - tty_draw_hline (w->rect.y, w->rect.x + 1, ACS_HLINE, w->rect.cols - 2); - - if (l->auto_adjust_cols) - { - widget_gotoyx (w, 0, 0); - tty_print_alt_char (ACS_LTEE, FALSE); - widget_gotoyx (w, 0, w->rect.cols - 1); - tty_print_alt_char (ACS_RTEE, FALSE); - } - - if (l->text != NULL) - { - int text_width; - - text_width = str_term_width1 (l->text); - widget_gotoyx (w, 0, (w->rect.cols - text_width) / 2); - tty_print_string (l->text); - } - return MSG_HANDLED; - - case MSG_DESTROY: - g_free (l->text); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -WHLine * -hline_new (int y, int x, int width) -{ - WRect r = { y, x, 1, width }; - WHLine *l; - Widget *w; - - l = g_new (WHLine, 1); - w = WIDGET (l); - r.cols = width < 0 ? 1 : width; - widget_init (w, &r, hline_callback, NULL); - l->text = NULL; - l->auto_adjust_cols = (width < 0); - l->transparent = FALSE; - - return l; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -hline_set_text (WHLine *l, const char *text) -{ - g_free (l->text); - - if (text == NULL || *text == '\0') - l->text = NULL; - else - l->text = g_strdup (text); - - widget_draw (WIDGET (l)); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -hline_set_textv (WHLine *l, const char *format, ...) -{ - va_list args; - char buf[BUF_1K]; /* FIXME: is it enough? */ - - va_start (args, format); - g_vsnprintf (buf, sizeof (buf), format, args); - va_end (args); - - hline_set_text (l, buf); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/hline.h b/recipes/wip/files/mc/source/lib/widget/hline.h deleted file mode 100644 index 4a84bf8e8a..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/hline.h +++ /dev/null @@ -1,37 +0,0 @@ - -/** \file hline.h - * \brief Header: WHLine widget - */ - -#ifndef MC__WIDGET_HLINE_H -#define MC__WIDGET_HLINE_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define HLINE(x) ((WHLine *)(x)) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct -{ - Widget widget; - char *text; - gboolean auto_adjust_cols; /* Compute widget.cols from parent width? */ - gboolean transparent; /* Paint in the default color fg/bg */ -} WHLine; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -WHLine *hline_new (int y, int x, int width); -void hline_set_text (WHLine * l, const char *text); -/* *INDENT-OFF* */ -void hline_set_textv (WHLine * l, const char *format, ...) G_GNUC_PRINTF (2, 3); -/* *INDENT-ON* */ - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_HLINE_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/input.c b/recipes/wip/files/mc/source/lib/widget/input.c deleted file mode 100644 index 6ad30d7194..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/input.c +++ /dev/null @@ -1,1323 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file input.c - * \brief Source: WInput widget - */ - -#include - -#include -#include -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/tty/key.h" /* XCTRL and ALT macros */ -#include "lib/fileloc.h" -#include "lib/skin.h" -#include "lib/strutil.h" -#include "lib/util.h" -#include "lib/widget.h" -#include "lib/event.h" /* mc_event_raise() */ -#include "lib/mcconfig.h" /* mc_config_history_*() */ - -/*** global variables ****************************************************************************/ - -gboolean quote = FALSE; - -const global_keymap_t *input_map = NULL; - -/* Color styles for input widgets */ -input_colors_t input_colors; - -/*** file scope macro definitions ****************************************************************/ - -#define LARGE_HISTORY_BUTTON 1 - -#ifdef LARGE_HISTORY_BUTTON -#define HISTORY_BUTTON_WIDTH 3 -#else -#define HISTORY_BUTTON_WIDTH 1 -#endif - -#define should_show_history_button(in) \ - (in->history.list != NULL && WIDGET (in)->rect.cols > HISTORY_BUTTON_WIDTH * 2 + 1 \ - && WIDGET (in)->owner != NULL) - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* Input widgets have a global kill ring */ -/* Pointer to killed data */ -static char *kill_buffer = NULL; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static size_t -get_history_length (GList *history) -{ - size_t len = 0; - - for (; history != NULL; history = g_list_previous (history)) - len++; - - return len; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -draw_history_button (WInput *in) -{ - char c; - gboolean disabled; - - if (g_list_next (in->history.current) == NULL) - c = '^'; - else if (g_list_previous (in->history.current) == NULL) - c = 'v'; - else - c = '|'; - - widget_gotoyx (in, 0, WIDGET (in)->rect.cols - HISTORY_BUTTON_WIDTH); - disabled = widget_get_state (WIDGET (in), WST_DISABLED); - tty_setcolor (disabled ? DISABLED_COLOR : in->color[WINPUTC_HISTORY]); - -#ifdef LARGE_HISTORY_BUTTON - tty_print_string ("[ ]"); - widget_gotoyx (in, 0, WIDGET (in)->rect.cols - HISTORY_BUTTON_WIDTH + 1); -#endif - - tty_print_char (c); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -input_mark_cmd (WInput *in, gboolean mark) -{ - in->mark = mark ? in->point : -1; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -input_eval_marks (WInput *in, long *start_mark, long *end_mark) -{ - if (in->mark >= 0) - { - *start_mark = MIN (in->mark, in->point); - *end_mark = MAX (in->mark, in->point); - return TRUE; - } - - *start_mark = *end_mark = -1; - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -do_show_hist (WInput *in) -{ - size_t len; - history_descriptor_t hd; - - len = get_history_length (in->history.list); - - history_descriptor_init (&hd, WIDGET (in)->rect.y, WIDGET (in)->rect.x, in->history.list, - g_list_position (in->history.list, in->history.list)); - history_show (&hd); - - /* in->history.list was destroyed in history_show(). - * Apply new history and current position to avoid use-after-free. */ - in->history.list = hd.list; - in->history.current = in->history.list; - if (hd.text != NULL) - { - input_assign_text (in, hd.text); - g_free (hd.text); - } - - /* Has history cleaned up or not? */ - if (len != get_history_length (in->history.list)) - in->history.changed = TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Strip password from incomplete url (just user:pass@host without VFS prefix). - * - * @param url partial URL - * @return newly allocated string without password - */ - -static char * -input_history_strip_password (char *url) -{ - char *at, *delim, *colon; - - at = strrchr (url, '@'); - if (at == NULL) - return g_strdup (url); - - /* TODO: handle ':' and '@' in password */ - - delim = strstr (url, VFS_PATH_URL_DELIMITER); - if (delim != NULL) - colon = strchr (delim + strlen (VFS_PATH_URL_DELIMITER), ':'); - else - colon = strchr (url, ':'); - - /* if 'colon' before 'at', 'colon' delimits user and password: user:password@host */ - /* if 'colon' after 'at', 'colon' delimits host and port: user@host:port */ - if (colon != NULL && colon > at) - colon = NULL; - - if (colon == NULL) - return g_strdup (url); - *colon = '\0'; - - return g_strconcat (url, at, (char *) NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -input_push_history (WInput *in) -{ - char *t; - gboolean empty; - - t = g_strstrip (input_get_text (in)); - empty = *t == '\0'; - if (!empty) - { - g_free (t); - t = input_get_text (in); - - if (in->history.name != NULL && in->strip_password) - { - /* - We got string user:pass@host without any VFS prefixes - and vfs_path_to_str_flags (t, VPF_STRIP_PASSWORD) doesn't work. - Therefore we want to strip password in separate algorithm - */ - char *url_with_stripped_password; - - url_with_stripped_password = input_history_strip_password (t); - g_free (t); - t = url_with_stripped_password; - } - } - - if (in->history.list == NULL || in->history.list->data == NULL - || strcmp (in->history.list->data, t) != 0 || in->history.changed) - { - in->history.list = list_append_unique (in->history.list, t); - in->history.current = in->history.list; - in->history.changed = TRUE; - } - else - g_free (t); - - in->need_push = FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -move_buffer_backward (WInput *in, int start, int end) -{ - int str_len; - - str_len = str_length (in->buffer->str); - if (start >= str_len || end > str_len + 1) - return; - - start = str_offset_to_pos (in->buffer->str, start); - end = str_offset_to_pos (in->buffer->str, end); - g_string_erase (in->buffer, start, end - start); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -beginning_of_line (WInput *in) -{ - in->point = 0; - in->charpoint = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -end_of_line (WInput *in) -{ - in->point = str_length (in->buffer->str); - in->charpoint = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -backward_char (WInput *in) -{ - if (in->point > 0) - { - const char *act; - - act = in->buffer->str + str_offset_to_pos (in->buffer->str, in->point); - in->point -= str_cprev_noncomb_char (&act, in->buffer->str); - } - - in->charpoint = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -forward_char (WInput *in) -{ - const char *act; - - act = in->buffer->str + str_offset_to_pos (in->buffer->str, in->point); - if (act[0] != '\0') - in->point += str_cnext_noncomb_char (&act); - in->charpoint = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -forward_word (WInput *in) -{ - const char *p; - - p = in->buffer->str + str_offset_to_pos (in->buffer->str, in->point); - - for (; p[0] != '\0' && (str_isspace (p) || str_ispunct (p)); in->point++) - str_cnext_char (&p); - - for (; p[0] != '\0' && !str_isspace (p) && !str_ispunct (p); in->point++) - str_cnext_char (&p); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -backward_word (WInput *in) -{ - const char *p; - - p = in->buffer->str + str_offset_to_pos (in->buffer->str, in->point); - - for (; p != in->buffer->str; in->point--) - { - const char *p_tmp; - - p_tmp = p; - str_cprev_char (&p); - if (!str_isspace (p) && !str_ispunct (p)) - { - p = p_tmp; - break; - } - } - - for (; p != in->buffer->str; in->point--) - { - str_cprev_char (&p); - if (str_isspace (p) || str_ispunct (p)) - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -backward_delete (WInput *in) -{ - const char *act; - int start; - - if (in->point == 0) - return; - - act = in->buffer->str + str_offset_to_pos (in->buffer->str, in->point); - start = in->point - str_cprev_noncomb_char (&act, in->buffer->str); - move_buffer_backward (in, start, in->point); - in->charpoint = 0; - in->need_push = TRUE; - in->point = start; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -copy_region (WInput *in, int start, int end) -{ - int first = MIN (start, end); - int last = MAX (start, end); - - if (last == first) - { - /* Copy selected files to clipboard */ - mc_event_raise (MCEVENT_GROUP_FILEMANAGER, "panel_save_current_file_to_clip_file", NULL); - /* try use external clipboard utility */ - mc_event_raise (MCEVENT_GROUP_CORE, "clipboard_file_to_ext_clip", NULL); - return; - } - - g_free (kill_buffer); - - first = str_offset_to_pos (in->buffer->str, first); - last = str_offset_to_pos (in->buffer->str, last); - - kill_buffer = g_strndup (in->buffer->str + first, last - first); - - mc_event_raise (MCEVENT_GROUP_CORE, "clipboard_text_to_file", kill_buffer); - /* try use external clipboard utility */ - mc_event_raise (MCEVENT_GROUP_CORE, "clipboard_file_to_ext_clip", NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -delete_region (WInput *in, int start, int end) -{ - int first = MIN (start, end); - int last = MAX (start, end); - - input_mark_cmd (in, FALSE); - in->point = first; - move_buffer_backward (in, first, last); - in->charpoint = 0; - in->need_push = TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -insert_char (WInput *in, int c_code) -{ - int res; - long m1, m2; - size_t ins_point; - - if (input_eval_marks (in, &m1, &m2)) - delete_region (in, m1, m2); - - if (c_code == -1) - return MSG_NOT_HANDLED; - - if (in->charpoint >= MB_LEN_MAX) - return MSG_HANDLED; - - in->charbuf[in->charpoint] = c_code; - in->charpoint++; - - res = str_is_valid_char (in->charbuf, in->charpoint); - if (res < 0) - { - if (res != -2) - in->charpoint = 0; /* broken multibyte char, skip */ - return MSG_HANDLED; - } - - in->need_push = TRUE; - ins_point = str_offset_to_pos (in->buffer->str, in->point); - g_string_insert_len (in->buffer, ins_point, in->charbuf, in->charpoint); - in->point++; - in->charpoint = 0; - - return MSG_HANDLED; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -delete_char (WInput *in) -{ - const char *act; - int end; - - act = in->buffer->str + str_offset_to_pos (in->buffer->str, in->point); - end = in->point + str_cnext_noncomb_char (&act); - move_buffer_backward (in, in->point, end); - in->charpoint = 0; - in->need_push = TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -kill_word (WInput *in) -{ - int old_point = in->point; - int new_point; - - forward_word (in); - new_point = in->point; - in->point = old_point; - - delete_region (in, old_point, new_point); - in->need_push = TRUE; - in->charpoint = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -back_kill_word (WInput *in) -{ - int old_point = in->point; - int new_point; - - backward_word (in); - new_point = in->point; - in->point = old_point; - - delete_region (in, old_point, new_point); - in->need_push = TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -yank (WInput *in) -{ - if (kill_buffer != NULL) - { - char *p; - - in->charpoint = 0; - for (p = kill_buffer; *p != '\0'; p++) - insert_char (in, *p); - in->charpoint = 0; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -kill_line (WInput *in) -{ - int chp; - - chp = str_offset_to_pos (in->buffer->str, in->point); - g_free (kill_buffer); - kill_buffer = g_strndup (in->buffer->str + chp, in->buffer->len - chp); - g_string_set_size (in->buffer, chp); - in->charpoint = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -clear_line (WInput *in) -{ - in->need_push = TRUE; - g_string_set_size (in->buffer, 0); - in->point = 0; - in->mark = -1; - in->charpoint = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -ins_from_clip (WInput *in) -{ - char *p = NULL; - ev_clipboard_text_from_file_t event_data = { NULL, FALSE }; - - /* try use external clipboard utility */ - mc_event_raise (MCEVENT_GROUP_CORE, "clipboard_file_from_ext_clip", NULL); - - event_data.text = &p; - mc_event_raise (MCEVENT_GROUP_CORE, "clipboard_text_from_file", &event_data); - if (event_data.ret) - { - char *pp; - - for (pp = p; *pp != '\0'; pp++) - insert_char (in, *pp); - - g_free (p); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -hist_prev (WInput *in) -{ - GList *prev; - - if (in->history.list == NULL) - return; - - if (in->need_push) - input_push_history (in); - - prev = g_list_previous (in->history.current); - if (prev != NULL) - { - input_assign_text (in, (char *) prev->data); - in->history.current = prev; - in->history.changed = TRUE; - in->need_push = FALSE; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -hist_next (WInput *in) -{ - GList *next; - - if (in->need_push) - { - input_push_history (in); - input_assign_text (in, ""); - return; - } - - if (in->history.list == NULL) - return; - - next = g_list_next (in->history.current); - if (next == NULL) - { - input_assign_text (in, ""); - in->history.current = in->history.list; - } - else - { - input_assign_text (in, (char *) next->data); - in->history.current = next; - in->history.changed = TRUE; - in->need_push = FALSE; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -port_region_marked_for_delete (WInput *in) -{ - g_string_set_size (in->buffer, 0); - in->point = 0; - in->first = FALSE; - in->charpoint = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -input_execute_cmd (WInput *in, long command) -{ - cb_ret_t res = MSG_HANDLED; - - switch (command) - { - case CK_MarkLeft: - case CK_MarkRight: - case CK_MarkToWordBegin: - case CK_MarkToWordEnd: - case CK_MarkToHome: - case CK_MarkToEnd: - /* a highlight command like shift-arrow */ - if (in->mark < 0) - { - input_mark_cmd (in, FALSE); /* clear */ - input_mark_cmd (in, TRUE); /* marking on */ - } - break; - case CK_WordRight: - case CK_WordLeft: - case CK_Right: - case CK_Left: - if (in->mark >= 0) - input_mark_cmd (in, FALSE); - break; - default: - break; - } - - switch (command) - { - case CK_Home: - case CK_MarkToHome: - beginning_of_line (in); - break; - case CK_End: - case CK_MarkToEnd: - end_of_line (in); - break; - case CK_Left: - case CK_MarkLeft: - backward_char (in); - break; - case CK_WordLeft: - case CK_MarkToWordBegin: - backward_word (in); - break; - case CK_Right: - case CK_MarkRight: - forward_char (in); - break; - case CK_WordRight: - case CK_MarkToWordEnd: - forward_word (in); - break; - case CK_BackSpace: - { - long m1, m2; - - if (input_eval_marks (in, &m1, &m2)) - delete_region (in, m1, m2); - else - backward_delete (in); - } - break; - case CK_Delete: - if (in->first) - port_region_marked_for_delete (in); - else - { - long m1, m2; - - if (input_eval_marks (in, &m1, &m2)) - delete_region (in, m1, m2); - else - delete_char (in); - } - break; - case CK_DeleteToWordEnd: - kill_word (in); - break; - case CK_DeleteToWordBegin: - back_kill_word (in); - break; - case CK_Mark: - input_mark_cmd (in, TRUE); - break; - case CK_Remove: - delete_region (in, in->point, MAX (in->mark, 0)); - break; - case CK_DeleteToEnd: - kill_line (in); - break; - case CK_Clear: - clear_line (in); - break; - case CK_Store: - copy_region (in, MAX (in->mark, 0), in->point); - break; - case CK_Cut: - { - long m; - - m = MAX (in->mark, 0); - copy_region (in, m, in->point); - delete_region (in, in->point, m); - } - break; - case CK_Yank: - yank (in); - break; - case CK_Paste: - ins_from_clip (in); - break; - case CK_HistoryPrev: - hist_prev (in); - break; - case CK_HistoryNext: - hist_next (in); - break; - case CK_History: - do_show_hist (in); - break; - case CK_Complete: - input_complete (in); - break; - default: - res = MSG_NOT_HANDLED; - } - - switch (command) - { - case CK_MarkLeft: - case CK_MarkRight: - case CK_MarkToWordBegin: - case CK_MarkToWordEnd: - case CK_MarkToHome: - case CK_MarkToEnd: - /* do nothing */ - break; - default: - in->mark = -1; - break; - } - - return res; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* "history_load" event handler */ -static gboolean -input_load_history (const gchar *event_group_name, const gchar *event_name, - gpointer init_data, gpointer data) -{ - WInput *in = INPUT (init_data); - ev_history_load_save_t *ev = (ev_history_load_save_t *) data; - - (void) event_group_name; - (void) event_name; - - in->history.list = mc_config_history_load (ev->cfg, in->history.name); - in->history.current = in->history.list; - - if (in->init_from_history) - { - const char *def_text = ""; - - if (in->history.list != NULL && in->history.list->data != NULL) - def_text = (const char *) in->history.list->data; - - input_assign_text (in, def_text); - } - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* "history_save" event handler */ -static gboolean -input_save_history (const gchar *event_group_name, const gchar *event_name, - gpointer init_data, gpointer data) -{ - WInput *in = INPUT (init_data); - - (void) event_group_name; - (void) event_name; - - if (!in->is_password && (DIALOG (WIDGET (in)->owner)->ret_value != B_CANCEL)) - { - ev_history_load_save_t *ev = (ev_history_load_save_t *) data; - - input_push_history (in); - if (in->history.changed) - mc_config_history_save (ev->cfg, in->history.name, in->history.list); - in->history.changed = FALSE; - } - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -input_destroy (WInput *in) -{ - input_complete_free (in); - - /* clean history */ - if (in->history.list != NULL) - { - /* history is already saved before this moment */ - in->history.list = g_list_first (in->history.list); - g_list_free_full (in->history.list, g_free); - } - g_free (in->history.name); - g_string_free (in->buffer, TRUE); - MC_PTR_FREE (kill_buffer); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Calculates the buffer index (aka "point") corresponding to some screen coordinate. - */ -static int -input_screen_to_point (const WInput *in, int x) -{ - x += in->term_first_shown; - - if (x < 0) - return 0; - - if (x < str_term_width1 (in->buffer->str)) - return str_column_to_pos (in->buffer->str, x); - - return str_length (in->buffer->str); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -input_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) -{ - /* save point between MSG_MOUSE_DOWN and MSG_MOUSE_DRAG */ - static int prev_point = 0; - WInput *in = INPUT (w); - - switch (msg) - { - case MSG_MOUSE_DOWN: - widget_select (w); - - if (event->x >= w->rect.cols - HISTORY_BUTTON_WIDTH && should_show_history_button (in)) - do_show_hist (in); - else - { - in->first = FALSE; - input_mark_cmd (in, FALSE); - input_set_point (in, input_screen_to_point (in, event->x)); - /* save point for the possible following MSG_MOUSE_DRAG action */ - prev_point = in->point; - } - break; - - case MSG_MOUSE_DRAG: - /* start point: set marker using point before first MSG_MOUSE_DRAG action */ - if (in->mark < 0) - in->mark = prev_point; - - input_set_point (in, input_screen_to_point (in, event->x)); - break; - - default: - /* don't create highlight region of 0 length */ - if (in->mark == in->point) - input_mark_cmd (in, FALSE); - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** Create new instance of WInput object. - * @param y Y coordinate - * @param x X coordinate - * @param input_colors Array of used colors - * @param width Widget width - * @param def_text Default text filled in widget - * @param histname Name of history - * @param completion_flags Flags for specify type of completions - * @return WInput object - */ -WInput * -input_new (int y, int x, const int *colors, int width, const char *def_text, - const char *histname, input_complete_t completion_flags) -{ - WRect r = { y, x, 1, width }; - WInput *in; - Widget *w; - - in = g_new (WInput, 1); - w = WIDGET (in); - widget_init (w, &r, input_callback, input_mouse_callback); - w->options |= WOP_SELECTABLE | WOP_IS_INPUT | WOP_WANT_CURSOR; - w->keymap = input_map; - - in->color = colors; - in->first = TRUE; - in->mark = -1; - in->term_first_shown = 0; - in->disable_update = 0; - in->is_password = FALSE; - in->strip_password = FALSE; - - /* in->buffer will be corrected in "history_load" event handler */ - in->buffer = g_string_sized_new (width); - - /* init completions before input_assign_text() call */ - in->completions = NULL; - in->completion_flags = completion_flags; - - in->init_from_history = (def_text == INPUT_LAST_TEXT); - - if (in->init_from_history || def_text == NULL) - def_text = ""; - - input_assign_text (in, def_text); - - /* prepare to history setup */ - in->history.list = NULL; - in->history.current = NULL; - in->history.changed = FALSE; - in->history.name = NULL; - if ((histname != NULL) && (*histname != '\0')) - in->history.name = g_strdup (histname); - /* history will be loaded later */ - - in->label = NULL; - - return in; -} - -/* --------------------------------------------------------------------------------------------- */ - -cb_ret_t -input_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WInput *in = INPUT (w); - WDialog *h = DIALOG (w->owner); - cb_ret_t v; - - switch (msg) - { - case MSG_INIT: - /* subscribe to "history_load" event */ - mc_event_add (h->event_group, MCEVENT_HISTORY_LOAD, input_load_history, w, NULL); - /* subscribe to "history_save" event */ - mc_event_add (h->event_group, MCEVENT_HISTORY_SAVE, input_save_history, w, NULL); - if (in->label != NULL) - widget_set_state (WIDGET (in->label), WST_DISABLED, widget_get_state (w, WST_DISABLED)); - return MSG_HANDLED; - - case MSG_KEY: - if (parm == XCTRL ('q')) - { - quote = TRUE; - v = input_handle_char (in, ascii_alpha_to_cntrl (tty_getch ())); - quote = FALSE; - return v; - } - - /* Keys we want others to handle */ - if (parm == KEY_UP || parm == KEY_DOWN || parm == ESC_CHAR - || parm == KEY_F (10) || parm == '\n') - return MSG_NOT_HANDLED; - - /* When pasting multiline text, insert literal Enter */ - if ((parm & ~KEY_M_MASK) == '\n') - { - quote = TRUE; - v = input_handle_char (in, '\n'); - quote = FALSE; - return v; - } - - return input_handle_char (in, parm); - - case MSG_ACTION: - return input_execute_cmd (in, parm); - - case MSG_DRAW: - input_update (in, FALSE); - return MSG_HANDLED; - - case MSG_ENABLE: - case MSG_DISABLE: - if (in->label != NULL) - widget_set_state (WIDGET (in->label), WST_DISABLED, msg == MSG_DISABLE); - return MSG_HANDLED; - - case MSG_CURSOR: - widget_gotoyx (in, 0, str_term_width2 (in->buffer->str, in->point) - in->term_first_shown); - return MSG_HANDLED; - - case MSG_DESTROY: - /* unsubscribe from "history_load" event */ - mc_event_del (h->event_group, MCEVENT_HISTORY_LOAD, input_load_history, w); - /* unsubscribe from "history_save" event */ - mc_event_del (h->event_group, MCEVENT_HISTORY_SAVE, input_save_history, w); - input_destroy (in); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -input_set_default_colors (void) -{ - input_colors[WINPUTC_MAIN] = INPUT_COLOR; - input_colors[WINPUTC_MARK] = INPUT_MARK_COLOR; - input_colors[WINPUTC_UNCHANGED] = INPUT_UNCHANGED_COLOR; - input_colors[WINPUTC_HISTORY] = INPUT_HISTORY_COLOR; -} - -/* --------------------------------------------------------------------------------------------- */ - -cb_ret_t -input_handle_char (WInput *in, int key) -{ - cb_ret_t v; - long command; - - if (quote) - { - input_complete_free (in); - v = insert_char (in, key); - input_update (in, TRUE); - quote = FALSE; - return v; - } - - command = widget_lookup_key (WIDGET (in), key); - if (command == CK_IgnoreKey) - { - if (key > 255) - return MSG_NOT_HANDLED; - if (in->first) - port_region_marked_for_delete (in); - input_complete_free (in); - v = insert_char (in, key); - input_update (in, TRUE); - } - else - { - gboolean keep_first; - - if (command != CK_Complete) - input_complete_free (in); - input_execute_cmd (in, command); - v = MSG_HANDLED; - /* if in->first == TRUE and history or completion window was cancelled, - keep "first" state */ - keep_first = in->first && (command == CK_History || command == CK_Complete); - input_update (in, !keep_first); - } - - return v; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -input_assign_text (WInput *in, const char *text) -{ - if (text == NULL) - text = ""; - - input_complete_free (in); - in->mark = -1; - in->need_push = TRUE; - in->charpoint = 0; - g_string_assign (in->buffer, text); - in->point = str_length (in->buffer->str); - input_update (in, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Inserts text in input line */ -void -input_insert (WInput *in, const char *text, gboolean insert_extra_space) -{ - input_disable_update (in); - while (*text != '\0') - input_handle_char (in, (unsigned char) *text++); /* unsigned extension char->int */ - if (insert_extra_space) - input_handle_char (in, ' '); - input_enable_update (in); - input_update (in, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -input_set_point (WInput *in, int pos) -{ - int max_pos; - - max_pos = str_length (in->buffer->str); - pos = MIN (pos, max_pos); - if (pos != in->point) - input_complete_free (in); - in->point = pos; - in->charpoint = 0; - input_update (in, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -input_update (WInput *in, gboolean clear_first) -{ - Widget *wi = WIDGET (in); - const WRect *w = &wi->rect; - int has_history = 0; - int buf_len; - const char *cp; - int pw; - - if (in->disable_update != 0) - return; - - /* don't draw widget not put into dialog */ - if (wi->owner == NULL || !widget_get_state (WIDGET (wi->owner), WST_ACTIVE)) - return; - - if (clear_first) - in->first = FALSE; - - if (should_show_history_button (in)) - has_history = HISTORY_BUTTON_WIDTH; - - buf_len = str_length (in->buffer->str); - - /* Adjust the mark */ - in->mark = MIN (in->mark, buf_len); - - pw = str_term_width2 (in->buffer->str, in->point); - - /* Make the point visible */ - if ((pw < in->term_first_shown) || (pw >= in->term_first_shown + w->cols - has_history)) - { - in->term_first_shown = pw - (w->cols / 3); - if (in->term_first_shown < 0) - in->term_first_shown = 0; - } - - if (has_history != 0) - draw_history_button (in); - - if (widget_get_state (wi, WST_DISABLED)) - tty_setcolor (DISABLED_COLOR); - else if (in->first) - tty_setcolor (in->color[WINPUTC_UNCHANGED]); - else - tty_setcolor (in->color[WINPUTC_MAIN]); - - widget_gotoyx (in, 0, 0); - - if (!in->is_password) - { - if (in->mark < 0) - tty_print_string (str_term_substring (in->buffer->str, in->term_first_shown, - w->cols - has_history)); - else - { - long m1, m2; - - if (input_eval_marks (in, &m1, &m2)) - { - tty_setcolor (in->color[WINPUTC_MAIN]); - cp = str_term_substring (in->buffer->str, in->term_first_shown, - w->cols - has_history); - tty_print_string (cp); - tty_setcolor (in->color[WINPUTC_MARK]); - if (m1 < in->term_first_shown) - { - widget_gotoyx (in, 0, 0); - m1 = in->term_first_shown; - m2 -= m1; - } - else - { - int buf_width; - - widget_gotoyx (in, 0, m1 - in->term_first_shown); - buf_width = str_term_width2 (in->buffer->str, m1); - m2 = MIN (m2 - m1, - (w->cols - has_history) - (buf_width - in->term_first_shown)); - } - - tty_print_string (str_term_substring (in->buffer->str, m1, m2)); - } - } - } - else - { - int i; - - cp = str_term_substring (in->buffer->str, in->term_first_shown, w->cols - has_history); - tty_setcolor (in->color[WINPUTC_MAIN]); - for (i = 0; i < w->cols - has_history; i++) - { - if (i < (buf_len - in->term_first_shown) && cp[0] != '\0') - tty_print_char ('*'); - else - tty_print_char (' '); - if (cp[0] != '\0') - str_cnext_char (&cp); - } - } -} - -/* --------------------------------------------------------------------------------------------- */ - -void -input_enable_update (WInput *in) -{ - in->disable_update--; - input_update (in, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -input_disable_update (WInput *in) -{ - in->disable_update++; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Cleans the input line and adds the current text to the history - * - * @param in the input line - */ -void -input_clean (WInput *in) -{ - input_push_history (in); - in->need_push = TRUE; - g_string_set_size (in->buffer, 0); - in->point = 0; - in->charpoint = 0; - in->mark = -1; - input_complete_free (in); - input_update (in, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/input.h b/recipes/wip/files/mc/source/lib/widget/input.h deleted file mode 100644 index 0822a5be7d..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/input.h +++ /dev/null @@ -1,155 +0,0 @@ - -/** \file input.h - * \brief Header: WInput widget - */ - -#ifndef MC__WIDGET_INPUT_H -#define MC__WIDGET_INPUT_H - -#include /* MB_LEN_MAX */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define INPUT(x) ((WInput *)(x)) - -/* For history load-save functions */ -#define INPUT_LAST_TEXT ((char *) 2) - -/*** enums ***************************************************************************************/ - -typedef enum -{ - WINPUTC_MAIN, /* color used */ - WINPUTC_MARK, /* color for marked text */ - WINPUTC_UNCHANGED, /* color for inactive text (Is first keystroke) */ - WINPUTC_HISTORY, /* color for history list */ - WINPUTC_COUNT_COLORS /* count of used colors */ -} input_colors_enum_t; - -/* completion flags */ -typedef enum -{ - INPUT_COMPLETE_NONE = 0, - INPUT_COMPLETE_FILENAMES = 1 << 0, - INPUT_COMPLETE_HOSTNAMES = 1 << 1, - INPUT_COMPLETE_COMMANDS = 1 << 2, - INPUT_COMPLETE_VARIABLES = 1 << 3, - INPUT_COMPLETE_USERNAMES = 1 << 4, - INPUT_COMPLETE_CD = 1 << 5, - INPUT_COMPLETE_SHELL_ESC = 1 << 6, -} input_complete_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef int input_colors_t[WINPUTC_COUNT_COLORS]; - -typedef struct -{ - Widget widget; - - GString *buffer; - const int *color; - int point; /* cursor position in the input line in characters */ - int mark; /* the mark position in characters; negative value means no marked text */ - int term_first_shown; /* column of the first shown character */ - gboolean first; /* is first keystroke? */ - int disable_update; /* do we want to skip updates? */ - gboolean is_password; /* is this a password input line? */ - gboolean init_from_history; /* init text will be get from history */ - gboolean need_push; /* need to push the current Input on hist? */ - gboolean strip_password; /* need to strip password before placing string to history */ - GPtrArray *completions; /* possible completions array */ - input_complete_t completion_flags; - char charbuf[MB_LEN_MAX]; /* buffer for multibytes characters */ - size_t charpoint; /* point to end of mulibyte sequence in charbuf */ - WLabel *label; /* label associated with this input line */ - struct input_history_t - { - char *name; /* name of history for loading and saving */ - GList *list; /* the history */ - GList *current; /* current history item */ - gboolean changed; /* the history has changed */ - } history; -} WInput; - -/*** global variables defined in .c file *********************************************************/ - -extern int quote; - -extern const global_keymap_t *input_map; - -/* Color styles for normal and command line input widgets */ -extern input_colors_t input_colors; - -/*** declarations of public functions ************************************************************/ - -WInput *input_new (int y, int x, const int *colors, - int len, const char *text, const char *histname, - input_complete_t completion_flags); -/* callback is public; needed for command line */ -cb_ret_t input_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, void *data); -void input_set_default_colors (void); -cb_ret_t input_handle_char (WInput * in, int key); -void input_assign_text (WInput * in, const char *text); -void input_insert (WInput * in, const char *text, gboolean insert_extra_space); -void input_set_point (WInput * in, int pos); -void input_update (WInput * in, gboolean clear_first); -void input_enable_update (WInput * in); -void input_disable_update (WInput * in); -void input_clean (WInput * in); - -/* input_complete.c */ -void input_complete (WInput * in); -void input_complete_free (WInput * in); - -/* --------------------------------------------------------------------------------------------- */ -/*** inline functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** - * Get text of input line. - * - * @param in input line - * - * @return newly allocated string that contains a copy of @in's text. - */ -static inline char * -input_get_text (const WInput *in) -{ - return g_strndup (in->buffer->str, in->buffer->len); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Get pointer to input line buffer. - * - * @param in input line - * - * @return pointer to @in->buffer->str. - */ -static inline const char * -input_get_ctext (const WInput *in) -{ - return in->buffer->str; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Is input line empty or not. - * - * @param in input line - * - * @return TRUE if buffer of @in is empty, FALSE otherwise. - */ -static inline gboolean -input_is_empty (const WInput *in) -{ - return (in->buffer->len == 0); -} - -/* --------------------------------------------------------------------------------------------- */ - - -#endif /* MC__WIDGET_INPUT_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/input_complete.c b/recipes/wip/files/mc/source/lib/widget/input_complete.c deleted file mode 100644 index 969ce7e3b6..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/input_complete.c +++ /dev/null @@ -1,1452 +0,0 @@ -/* - Input line filename/username/hostname/variable/command completion. - (Let mc type for you...) - - Copyright (C) 1995-2025 - Free Software Foundation, Inc. - - Written by: - Jakub Jelinek, 1995 - Slava Zanko , 2013 - Andrew Borodin , 2013-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file lib/widget/input_complete.c - * \brief Source: Input line filename/username/hostname/variable/command completion - */ - -#include - -#include -#include /* MB_LEN_MAX */ -#include -#include -#include -#include -#include -#include -#include -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/tty/key.h" /* XCTRL and ALT macros */ -#include "lib/vfs/vfs.h" -#include "lib/strutil.h" -#include "lib/util.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -#if !HAVE_DECL_ENVIRON -extern char **environ; -#endif - -/*** file scope macro definitions ****************************************************************/ - -/* #define DO_COMPLETION_DEBUG */ -#ifdef DO_COMPLETION_DEBUG -#define SHOW_C_CTX(func) fprintf(stderr, "%s: text='%s' flags=%s\n", func, text, show_c_flags(flags)) -#else -#define SHOW_C_CTX(func) -#endif /* DO_CMPLETION_DEBUG */ - -#define DO_INSERTION 1 -#define DO_QUERY 2 - -/*** file scope type declarations ****************************************************************/ - -typedef char *CompletionFunction (const char *text, int state, input_complete_t flags); - -typedef struct -{ - size_t in_command_position; - char *word; - char *p; - char *q; - char *r; - gboolean is_cd; - input_complete_t flags; -} try_complete_automation_state_t; - -/*** forward declarations (file scope functions) *************************************************/ - -MC_MOCKABLE GPtrArray *try_complete (char *text, int *lc_start, int *lc_end, - input_complete_t flags); -void complete_engine_fill_completions (WInput * in); - -/*** file scope variables ************************************************************************/ - -static WInput *input; -static int min_end; -static int start = 0; -static int end = 0; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -#ifdef DO_COMPLETION_DEBUG -/** - * Useful to print/debug completion flags - */ -static const char * -show_c_flags (input_complete_t flags) -{ - static char s_cf[] = "FHCVUDS"; - - s_cf[0] = (flags & INPUT_COMPLETE_FILENAMES) != 0 ? 'F' : ' '; - s_cf[1] = (flags & INPUT_COMPLETE_HOSTNAMES) != 0 ? 'H' : ' '; - s_cf[2] = (flags & INPUT_COMPLETE_COMMANDS) != 0 ? 'C' : ' '; - s_cf[3] = (flags & INPUT_COMPLETE_VARIABLES) != 0 ? 'V' : ' '; - s_cf[4] = (flags & INPUT_COMPLETE_USERNAMES) != 0 ? 'U' : ' '; - s_cf[5] = (flags & INPUT_COMPLETE_CD) != 0 ? 'D' : ' '; - s_cf[6] = (flags & INPUT_COMPLETE_SHELL_ESC) != 0 ? 'S' : ' '; - - return s_cf; -} -#endif /* DO_CMPLETION_DEBUG */ - -/* --------------------------------------------------------------------------------------------- */ - -static char * -filename_completion_function (const char *text, int state, input_complete_t flags) -{ - static DIR *directory = NULL; - static char *filename = NULL; - static char *dirname = NULL; - static char *users_dirname = NULL; - static size_t filename_len = 0; - static vfs_path_t *dirname_vpath = NULL; - - gboolean isdir = TRUE, isexec = FALSE; - struct vfs_dirent *entry = NULL; - - SHOW_C_CTX ("filename_completion_function"); - - if (text != NULL && (flags & INPUT_COMPLETE_SHELL_ESC) != 0) - { - char *u_text; - char *result; - char *e_result; - - u_text = str_shell_unescape (text); - - result = filename_completion_function (u_text, state, flags & (~INPUT_COMPLETE_SHELL_ESC)); - g_free (u_text); - - e_result = str_shell_escape (result); - g_free (result); - - return e_result; - } - - /* If we're starting the match process, initialize us a bit. */ - if (state == 0) - { - const char *temp; - - g_free (dirname); - g_free (filename); - g_free (users_dirname); - vfs_path_free (dirname_vpath, TRUE); - - if ((*text != '\0') && (temp = strrchr (text, PATH_SEP)) != NULL) - { - filename = g_strdup (++temp); - dirname = g_strndup (text, temp - text); - } - else - { - dirname = g_strdup ("."); - filename = g_strdup (text); - } - - /* We aren't done yet. We also support the "~user" syntax. */ - - /* Save the version of the directory that the user typed. */ - users_dirname = dirname; - dirname = tilde_expand (dirname); - canonicalize_pathname (dirname); - dirname_vpath = vfs_path_from_str (dirname); - - /* Here we should do something with variable expansion - and `command`. - Maybe a dream - UNIMPLEMENTED yet. */ - - directory = mc_opendir (dirname_vpath); - filename_len = strlen (filename); - } - - /* Now that we have some state, we can read the directory. */ - - while (directory != NULL && (entry = mc_readdir (directory)) != NULL) - { - if (!str_is_valid_string (entry->d_name)) - continue; - - /* Special case for no filename. - All entries except "." and ".." match. */ - if (filename_len == 0) - { - if (DIR_IS_DOT (entry->d_name) || DIR_IS_DOTDOT (entry->d_name)) - continue; - } - else - { - /* Otherwise, if these match up to the length of filename, then - it may be a match. */ - if (entry->d_name[0] != filename[0] || entry->d_len < filename_len - || strncmp (filename, entry->d_name, filename_len) != 0) - continue; - } - - isdir = TRUE; - isexec = FALSE; - - { - struct stat tempstat; - vfs_path_t *tmp_vpath; - - tmp_vpath = vfs_path_build_filename (dirname, entry->d_name, (char *) NULL); - - /* Unix version */ - if (mc_stat (tmp_vpath, &tempstat) == 0) - { - uid_t my_uid; - gid_t my_gid; - - my_uid = getuid (); - my_gid = getgid (); - - if (!S_ISDIR (tempstat.st_mode)) - { - isdir = FALSE; - - if ((my_uid == 0 && (tempstat.st_mode & 0111) != 0) || - (my_uid == tempstat.st_uid && (tempstat.st_mode & 0100) != 0) || - (my_gid == tempstat.st_gid && (tempstat.st_mode & 0010) != 0) || - (tempstat.st_mode & 0001) != 0) - isexec = TRUE; - } - } - else - { - /* stat failed, strange. not a dir in any case */ - isdir = FALSE; - } - vfs_path_free (tmp_vpath, TRUE); - } - - if ((flags & INPUT_COMPLETE_COMMANDS) != 0 && (isexec || isdir)) - break; - if ((flags & INPUT_COMPLETE_CD) != 0 && isdir) - break; - if ((flags & INPUT_COMPLETE_FILENAMES) != 0) - break; - } - - if (entry == NULL) - { - if (directory != NULL) - { - mc_closedir (directory); - directory = NULL; - } - MC_PTR_FREE (dirname); - vfs_path_free (dirname_vpath, TRUE); - dirname_vpath = NULL; - MC_PTR_FREE (filename); - MC_PTR_FREE (users_dirname); - return NULL; - } - - { - GString *temp; - - temp = g_string_sized_new (16); - - if (users_dirname != NULL && !DIR_IS_DOT (users_dirname)) - { - g_string_append (temp, users_dirname); - - /* We need a '/' at the end. */ - if (!IS_PATH_SEP (temp->str[temp->len - 1])) - g_string_append_c (temp, PATH_SEP); - } - g_string_append_len (temp, entry->d_name, entry->d_len); - if (isdir) - g_string_append_c (temp, PATH_SEP); - - return g_string_free (temp, FALSE); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** We assume here that text[0] == '~' , if you want to call it in another way, - you have to change the code */ - -static char * -username_completion_function (const char *text, int state, input_complete_t flags) -{ - static struct passwd *entry = NULL; - static size_t userlen = 0; - - (void) flags; - SHOW_C_CTX ("username_completion_function"); - - if (text[0] == '\\' && text[1] == '~') - text++; - if (state == 0) - { /* Initialization stuff */ - setpwent (); - userlen = strlen (text + 1); - } - - while ((entry = getpwent ()) != NULL) - { - /* Null usernames should result in all users as possible completions. */ - if (userlen == 0) - break; - if (text[1] == entry->pw_name[0] && strncmp (text + 1, entry->pw_name, userlen) == 0) - break; - } - - if (entry != NULL) - return g_strconcat ("~", entry->pw_name, PATH_SEP_STR, (char *) NULL); - - endpwent (); - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ -/** We assume text [0] == '$' and want to have a look at text [1], if it is - equal to '{', so that we should append '}' at the end */ - -static char * -variable_completion_function (const char *text, int state, input_complete_t flags) -{ - static char **env_p = NULL; - static gboolean isbrace = FALSE; - static size_t varlen = 0; - const char *p = NULL; - - (void) flags; - SHOW_C_CTX ("variable_completion_function"); - - if (state == 0) - { /* Initialization stuff */ - isbrace = (text[1] == '{'); - varlen = strlen (text + 1 + isbrace); - env_p = environ; - } - - while (*env_p != NULL) - { - p = strchr (*env_p, '='); - if (p != NULL && ((size_t) (p - *env_p) >= varlen) - && strncmp (text + 1 + isbrace, *env_p, varlen) == 0) - break; - env_p++; - } - - if (*env_p == NULL) - return NULL; - - { - GString *temp; - - temp = g_string_new_len (*env_p, p - *env_p); - - if (isbrace) - { - g_string_prepend_c (temp, '{'); - g_string_append_c (temp, '}'); - } - g_string_prepend_c (temp, '$'); - - env_p++; - - return g_string_free (temp, FALSE); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -host_equal_func (gconstpointer a, gconstpointer b) -{ - return (strcmp ((const char *) a, (const char *) b) == 0); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -fetch_hosts (const char *filename, GPtrArray *hosts) -{ - FILE *file; - char buffer[BUF_MEDIUM]; - char *bi; - - file = fopen (filename, "r"); - if (file == NULL) - return; - - while (fgets (buffer, sizeof (buffer) - 1, file) != NULL) - { - /* Skip to first character. */ - for (bi = buffer; bi[0] != '\0' && str_isspace (bi); str_next_char (&bi)) - ; - - /* Ignore comments... */ - if (bi[0] == '#') - continue; - - /* Handle $include. */ - if (strncmp (bi, "$include ", 9) == 0) - { - char *includefile, *t; - - /* Find start of filename. */ - for (includefile = bi + 9; includefile[0] != '\0' && whitespace (includefile[0]); - includefile++) - ; - t = includefile; - - /* Find end of filename. */ - for (; t[0] != '\0' && !str_isspace (t); str_next_char (&t)) - ; - *t = '\0'; - - fetch_hosts (includefile, hosts); - continue; - } - - /* Skip IP #s. */ - for (; bi[0] != '\0' && !str_isspace (bi); str_next_char (&bi)) - ; - - /* Get the host names separated by white space. */ - while (bi[0] != '\0' && bi[0] != '#') - { - char *lc_start, *name; - - for (; bi[0] != '\0' && str_isspace (bi); str_next_char (&bi)) - ; - if (bi[0] == '#') - continue; - - for (lc_start = bi; bi[0] != '\0' && !str_isspace (bi); str_next_char (&bi)) - ; - - if (bi == lc_start) - continue; - - name = g_strndup (lc_start, bi - lc_start); - if (!g_ptr_array_find_with_equal_func (hosts, name, host_equal_func, NULL)) - g_ptr_array_add (hosts, name); - else - g_free (name); - } - } - - fclose (file); -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -hostname_completion_function (const char *text, int state, input_complete_t flags) -{ - static GPtrArray *hosts = NULL; - static unsigned int host_p = 0; - static size_t textstart = 0; - static size_t textlen = 0; - - (void) flags; - SHOW_C_CTX ("hostname_completion_function"); - - if (state == 0) - { /* Initialization stuff */ - const char *p; - - if (hosts != NULL) - g_ptr_array_free (hosts, TRUE); - hosts = g_ptr_array_new_with_free_func (g_free); - p = getenv ("HOSTFILE"); - fetch_hosts (p != NULL ? p : "/etc/hosts", hosts); - host_p = 0; - textstart = (*text == '@') ? 1 : 0; - textlen = strlen (text + textstart); - } - - for (; host_p < hosts->len; host_p++) - { - if (textlen == 0) - break; /* Match all of them */ - if (strncmp (text + textstart, g_ptr_array_index (hosts, host_p), textlen) == 0) - break; - } - - if (host_p == hosts->len) - { - g_ptr_array_free (hosts, TRUE); - hosts = NULL; - return NULL; - } - - { - GString *temp; - - temp = g_string_sized_new (8); - - if (textstart != 0) - g_string_append_c (temp, '@'); - g_string_append (temp, g_ptr_array_index (hosts, host_p)); - host_p++; - - return g_string_free (temp, FALSE); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * This is the function to call when the word to complete is in a position - * where a command word can be found. It looks around $PATH, looking for - * commands that match. It also scans aliases, function names, and the - * table of shell built-ins. - */ - -static char * -command_completion_function (const char *text, int state, input_complete_t flags) -{ - static const char *path_end = NULL; - static gboolean isabsolute = FALSE; - static int phase = 0; - static size_t text_len = 0; - static const char *const *words = NULL; - static char *path = NULL; - static char *cur_path = NULL; - static char *cur_word = NULL; - static int init_state = 0; - static const char *const bash_reserved[] = { - "if", "then", "else", "elif", "fi", "case", "esac", "for", - "select", "while", "until", "do", "done", "in", "function", 0 - }; - static const char *const bash_builtins[] = { - "alias", "bg", "bind", "break", "builtin", "cd", "command", - "continue", "declare", "dirs", "echo", "enable", "eval", - "exec", "exit", "export", "fc", "fg", "getopts", "hash", - "help", "history", "jobs", "kill", "let", "local", "logout", - "popd", "pushd", "pwd", "read", "readonly", "return", "set", - "shift", "source", "suspend", "test", "times", "trap", "type", - "typeset", "ulimit", "umask", "unalias", "unset", "wait", 0 - }; - - char *u_text; - char *p, *found; - - SHOW_C_CTX ("command_completion_function"); - - if ((flags & INPUT_COMPLETE_COMMANDS) == 0) - return NULL; - - u_text = str_shell_unescape (text); - flags &= ~INPUT_COMPLETE_SHELL_ESC; - - if (state == 0) - { /* Initialize us a little bit */ - isabsolute = strchr (u_text, PATH_SEP) != NULL; - if (!isabsolute) - { - words = bash_reserved; - phase = 0; - text_len = strlen (u_text); - - if (path == NULL) - { - path = g_strdup (getenv ("PATH")); - if (path != NULL) - { - p = path; - path_end = strchr (p, '\0'); - while ((p = strchr (p, PATH_ENV_SEP)) != NULL) - *p++ = '\0'; - } - } - } - } - - if (isabsolute) - { - p = filename_completion_function (u_text, state, flags); - - if (p != NULL) - { - char *temp_p = p; - - p = str_shell_escape (p); - g_free (temp_p); - } - - g_free (u_text); - return p; - } - - found = NULL; - switch (phase) - { - case 0: /* Reserved words */ - for (; *words != NULL; words++) - if (strncmp (*words, u_text, text_len) == 0) - { - g_free (u_text); - return g_strdup (*(words++)); - } - phase++; - words = bash_builtins; - MC_FALLTHROUGH; - case 1: /* Builtin commands */ - for (; *words != NULL; words++) - if (strncmp (*words, u_text, text_len) == 0) - { - g_free (u_text); - return g_strdup (*(words++)); - } - phase++; - if (path == NULL) - break; - cur_path = path; - cur_word = NULL; - MC_FALLTHROUGH; - case 2: /* And looking through the $PATH */ - while (found == NULL) - { - if (cur_word == NULL) - { - char *expanded; - - if (cur_path >= path_end) - break; - expanded = tilde_expand (*cur_path != '\0' ? cur_path : "."); - cur_word = mc_build_filename (expanded, u_text, (char *) NULL); - g_free (expanded); - cur_path = strchr (cur_path, '\0') + 1; - init_state = state; - } - found = filename_completion_function (cur_word, state - init_state, flags); - if (found == NULL) - MC_PTR_FREE (cur_word); - } - MC_FALLTHROUGH; - default: - break; - } - - if (found == NULL) - MC_PTR_FREE (path); - else - { - p = strrchr (found, PATH_SEP); - if (p != NULL) - { - char *tmp = found; - - found = str_shell_escape (p + 1); - g_free (tmp); - } - } - - g_free (u_text); - return found; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -match_compare (gconstpointer a, gconstpointer b) -{ - return strcmp (*(char *const *) a, *(char *const *) b); -} - -/* --------------------------------------------------------------------------------------------- */ -/** Returns an array of char * matches with the longest common denominator - in the 1st entry. Then a NULL terminated list of different possible - completions follows. - You have to supply your own CompletionFunction with the word you - want to complete as the first argument and an count of previous matches - as the second. - In case no matches were found we return NULL. */ - -static GPtrArray * -completion_matches (const char *text, CompletionFunction entry_function, input_complete_t flags) -{ - GPtrArray *match_list; - char *string; - - match_list = g_ptr_array_new_with_free_func (g_free); - - while ((string = entry_function (text, match_list->len, flags)) != NULL) - g_ptr_array_add (match_list, string); - - /* If there were any matches, then look through them finding out the - lowest common denominator. That then becomes match_list[0]. */ - if (match_list->len == 0) - { - /* There were no matches. */ - g_ptr_array_free (match_list, TRUE); - return NULL; - } - - /* If only one match, just use that. */ - - if (match_list->len > 1) - { - size_t i, j; - size_t low = 4096; /* Count of max-matched characters. */ - - g_ptr_array_sort (match_list, match_compare); - - /* And compare each member of the list with - the next, finding out where they stop matching. - If we find two equal strings, we have to put one away... */ - for (i = 0, j = 1; j < match_list->len;) - { - char *si, *sj, *mi; - - si = g_ptr_array_index (match_list, i); - sj = g_ptr_array_index (match_list, j); - mi = si; - - while (si[0] != '\0' && sj[0] != '\0') - { - char *ni, *nj; - - ni = str_get_next_char (si); - nj = str_get_next_char (sj); - - if (ni - si != nj - sj || strncmp (si, sj, ni - si) != 0) - break; - - si = ni; - sj = nj; - } - - if (si[0] == '\0' && sj[0] == '\0') - { - /* Two equal strings */ - g_ptr_array_remove_index (match_list, j); - } - else - { - low = MIN (low, (size_t) (si - mi)); - - i++; - j++; - } - } - - string = g_ptr_array_index (match_list, 0); - g_ptr_array_insert (match_list, 0, g_strndup (string, low)); - } - - return match_list; -} - -/* --------------------------------------------------------------------------------------------- */ -/** Check if directory completion is needed */ -static gboolean -check_is_cd (const char *text, int lc_start, input_complete_t flags) -{ - const char *p, *q; - - SHOW_C_CTX ("check_is_cd"); - - if ((flags & INPUT_COMPLETE_CD) == 0) - return FALSE; - - /* Skip initial spaces */ - p = text; - q = text + lc_start; - while (p < q && p[0] != '\0' && str_isspace (p)) - str_cnext_char (&p); - - /* Check if the command is "cd" and the cursor is after it */ - return (p[0] == 'c' && p[1] == 'd' && str_isspace (p + 2) && p + 2 < q); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -try_complete_commands_prepare (try_complete_automation_state_t *state, char *text, int *lc_start) -{ - const char *command_separator_chars = ";|&{(`"; - char *ti; - - if (*lc_start == 0) - ti = text; - else - { - ti = str_get_prev_char (&text[*lc_start]); - while (ti > text && whitespace (ti[0])) - str_prev_char (&ti); - } - - if (ti == text) - state->in_command_position++; - else if (strchr (command_separator_chars, ti[0]) != NULL) - { - state->in_command_position++; - if (ti != text) - { - int this_char, prev_char; - - /* Handle the two character tokens '>&', '<&', and '>|'. - We are not in a command position after one of these. */ - this_char = ti[0]; - prev_char = str_get_prev_char (ti)[0]; - - /* Quoted */ - if ((this_char == '&' && (prev_char == '<' || prev_char == '>')) - || (this_char == '|' && prev_char == '>') || (ti != text - && str_get_prev_char (ti)[0] == '\\')) - state->in_command_position = 0; - } - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -try_complete_find_start_sign (try_complete_automation_state_t *state) -{ - if ((state->flags & INPUT_COMPLETE_COMMANDS) != 0) - state->p = strrchr (state->word, '`'); - if ((state->flags & (INPUT_COMPLETE_COMMANDS | INPUT_COMPLETE_VARIABLES)) != 0) - { - state->q = strrchr (state->word, '$'); - - /* don't substitute variable in \$ case */ - if (str_is_char_escaped (state->word, state->q)) - { - /* drop '\\' */ - str_move (state->q - 1, state->q); - /* adjust flags */ - state->flags &= ~INPUT_COMPLETE_VARIABLES; - state->q = NULL; - } - } - if ((state->flags & INPUT_COMPLETE_HOSTNAMES) != 0) - state->r = strrchr (state->word, '@'); - if (state->q != NULL && state->q[1] == '(' && (state->flags & INPUT_COMPLETE_COMMANDS) != 0) - { - if (state->q > state->p) - state->p = str_get_next_char (state->q); - state->q = NULL; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static GPtrArray * -try_complete_all_possible (try_complete_automation_state_t *state, char *text, int *lc_start) -{ - GPtrArray *matches = NULL; - - if (state->in_command_position != 0) - { - SHOW_C_CTX ("try_complete:cmd_subst"); - matches = - completion_matches (state->word, command_completion_function, - state->flags & (~INPUT_COMPLETE_FILENAMES)); - } - else if ((state->flags & INPUT_COMPLETE_FILENAMES) != 0) - { - if (state->is_cd) - state->flags &= ~(INPUT_COMPLETE_FILENAMES | INPUT_COMPLETE_COMMANDS); - SHOW_C_CTX ("try_complete:filename_subst_1"); - matches = completion_matches (state->word, filename_completion_function, state->flags); - - if (matches == NULL && state->is_cd && !IS_PATH_SEP (*state->word) && *state->word != '~') - { - state->q = text + *lc_start; - for (state->p = text; - *state->p != '\0' && state->p < state->q && whitespace (*state->p); - str_next_char (&state->p)) - ; - if (strncmp (state->p, "cd", 2) == 0) - for (state->p += 2; - *state->p != '\0' && state->p < state->q && whitespace (*state->p); - str_next_char (&state->p)) - ; - if (state->p == state->q) - { - char *cdpath_ref, *cdpath; - char c; - - cdpath_ref = g_strdup (getenv ("CDPATH")); - cdpath = cdpath_ref; - c = (cdpath == NULL) ? '\0' : ':'; - - while (matches == NULL && c == ':') - { - char *s; - - s = strchr (cdpath, ':'); - /* cppcheck-suppress nullPointer */ - if (s == NULL) - s = strchr (cdpath, '\0'); - c = *s; - *s = '\0'; - if (*cdpath != '\0') - { - state->r = mc_build_filename (cdpath, state->word, (char *) NULL); - SHOW_C_CTX ("try_complete:filename_subst_2"); - matches = - completion_matches (state->r, filename_completion_function, - state->flags); - g_free (state->r); - } - *s = c; - cdpath = str_get_next_char (s); - } - g_free (cdpath_ref); - } - } - } - return matches; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -insert_text (WInput *in, const char *text, ssize_t size) -{ - size_t text_len; - int buff_len; - ssize_t new_size; - - text_len = strlen (text); - buff_len = str_length (in->buffer->str); - if (size < 0) - size = (ssize_t) text_len; - else - size = MIN (size, (ssize_t) text_len); - - new_size = size + start - end; - if (new_size != 0) - { - /* make a hole within buffer */ - - size_t tail_len; - - tail_len = in->buffer->len - end; - if (tail_len != 0) - { - char *tail; - size_t hole_end; - - tail = g_strndup (in->buffer->str + end, tail_len); - - hole_end = end + new_size; - if (in->buffer->len < hole_end) - g_string_set_size (in->buffer, hole_end + tail_len); - - g_string_overwrite_len (in->buffer, hole_end, tail, tail_len); - - g_free (tail); - } - } - - g_string_overwrite_len (in->buffer, start, text, size); - - in->point += str_length (in->buffer->str) - buff_len; - input_update (in, TRUE); - end += new_size; - - return new_size != 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -complete_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - static int bl = 0; - - WGroup *g = GROUP (w); - WDialog *h = DIALOG (w); - - switch (msg) - { - case MSG_KEY: - switch (parm) - { - case KEY_LEFT: - case KEY_RIGHT: - bl = 0; - h->ret_value = 0; - dlg_close (h); - return MSG_HANDLED; - - case KEY_BACKSPACE: - bl = 0; - /* exit from completion list if input line is empty */ - if (end == 0) - { - h->ret_value = 0; - dlg_close (h); - } - /* Refill the list box and start again */ - else if (end == min_end) - { - end = str_get_prev_char (input->buffer->str + end) - input->buffer->str; - input_handle_char (input, parm); - h->ret_value = B_USER; - dlg_close (h); - } - else - { - int new_end; - int i; - GList *e; - - new_end = str_get_prev_char (input->buffer->str + end) - input->buffer->str; - - for (i = 0, e = listbox_get_first_link (LISTBOX (g->current->data)); - e != NULL; i++, e = g_list_next (e)) - { - WLEntry *le = LENTRY (e->data); - - if (strncmp (input->buffer->str + start, le->text, new_end - start) == 0) - { - listbox_set_current (LISTBOX (g->current->data), i); - end = new_end; - input_handle_char (input, parm); - widget_draw (WIDGET (g->current->data)); - break; - } - } - } - return MSG_HANDLED; - - default: - if (parm < 32 || parm > 255) - { - bl = 0; - if (widget_lookup_key (WIDGET (input), parm) != CK_Complete) - return MSG_NOT_HANDLED; - - if (end == min_end) - return MSG_HANDLED; - - /* This means we want to refill the list box and start again */ - h->ret_value = B_USER; - dlg_close (h); - } - else - { - static char buff[MB_LEN_MAX] = ""; - GList *e; - int i; - int need_redraw = 0; - int low = 4096; - char *last_text = NULL; - - buff[bl++] = (char) parm; - buff[bl] = '\0'; - - switch (str_is_valid_char (buff, bl)) - { - case -1: - bl = 0; - MC_FALLTHROUGH; - case -2: - return MSG_HANDLED; - default: - break; - } - - for (i = 0, e = listbox_get_first_link (LISTBOX (g->current->data)); - e != NULL; i++, e = g_list_next (e)) - { - WLEntry *le = LENTRY (e->data); - - if (strncmp (input->buffer->str + start, le->text, end - start) == 0 - && strncmp (le->text + end - start, buff, bl) == 0) - { - if (need_redraw == 0) - { - need_redraw = 1; - listbox_set_current (LISTBOX (g->current->data), i); - last_text = le->text; - } - else - { - char *si, *sl; - int si_num = 0; - int sl_num = 0; - - /* count symbols between start and end */ - for (si = le->text + start; si < le->text + end; - str_next_char (&si), si_num++) - ; - for (sl = last_text + start; sl < last_text + end; - str_next_char (&sl), sl_num++) - ; - - /* pointers to next symbols */ - si = &le->text[str_offset_to_pos (le->text, ++si_num)]; - sl = &last_text[str_offset_to_pos (last_text, ++sl_num)]; - - while (si[0] != '\0' && sl[0] != '\0') - { - char *nexti, *nextl; - - nexti = str_get_next_char (si); - nextl = str_get_next_char (sl); - - if (nexti - si != nextl - sl || strncmp (si, sl, nexti - si) != 0) - break; - - si = nexti; - sl = nextl; - - si_num++; - } - - last_text = le->text; - - si = &last_text[str_offset_to_pos (last_text, si_num)]; - if (low > si - last_text) - low = si - last_text; - - need_redraw = 2; - } - } - } - - if (need_redraw == 2) - { - insert_text (input, last_text, low); - widget_draw (WIDGET (g->current->data)); - } - else if (need_redraw == 1) - { - h->ret_value = B_ENTER; - dlg_close (h); - } - bl = 0; - } - } - return MSG_HANDLED; - - default: - return dlg_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/** Returns TRUE if the user would like to see us again */ -static gboolean -complete_engine (WInput *in, int what_to_do) -{ - if (in->completions != NULL && str_offset_to_pos (in->buffer->str, in->point) != end) - input_complete_free (in); - - if (in->completions == NULL) - complete_engine_fill_completions (in); - - if (in->completions == NULL) - tty_beep (); - else - { - if ((what_to_do & DO_INSERTION) != 0 - || ((what_to_do & DO_QUERY) != 0 && in->completions->len == 1)) - { - const char *lc_complete; - - lc_complete = g_ptr_array_index (in->completions, 0); - if (!insert_text (in, lc_complete, -1) || in->completions->len > 1) - tty_beep (); - else - input_complete_free (in); - } - - if ((what_to_do & DO_QUERY) != 0 && in->completions != NULL && in->completions->len > 1) - { - int maxlen = 0; - int i; - size_t k; - int count; - int x, y, w, h; - int start_x, start_y; - char *q; - WDialog *complete_dlg; - WListbox *complete_list; - - for (k = 1; k < in->completions->len; k++) - { - q = g_ptr_array_index (in->completions, k); - i = str_term_width1 (q); - maxlen = MAX (maxlen, i); - } - - count = in->completions->len - 1; - start_x = WIDGET (in)->rect.x; - start_y = WIDGET (in)->rect.y; - if (start_y - 2 >= count) - { - y = start_y - 2 - count; - h = 2 + count; - } - else if (start_y >= LINES - start_y - 1) - { - y = 0; - h = start_y; - } - else - { - y = start_y + 1; - h = LINES - start_y - 1; - } - x = start - in->term_first_shown - 2 + start_x; - w = maxlen + 4; - if (x + w > COLS) - x = COLS - w; - if (x < 0) - x = 0; - if (x + w > COLS) - w = COLS; - - input = in; - min_end = end; - - complete_dlg = - dlg_create (TRUE, y, x, h, w, WPOS_KEEP_DEFAULT, TRUE, - dialog_colors, complete_callback, NULL, "[Completion]", NULL); - complete_list = listbox_new (1, 1, h - 2, w - 2, FALSE, NULL); - group_add_widget (GROUP (complete_dlg), complete_list); - - for (k = 1; k < in->completions->len; k++) - { - q = g_ptr_array_index (in->completions, k); - listbox_add_item (complete_list, LISTBOX_APPEND_AT_END, 0, q, NULL, FALSE); - } - - i = dlg_run (complete_dlg); - q = NULL; - if (i == B_ENTER) - { - listbox_get_current (complete_list, &q, NULL); - if (q != NULL) - insert_text (in, q, -1); - } - if (q != NULL || end != min_end) - input_complete_free (in); - widget_destroy (WIDGET (complete_dlg)); - - /* B_USER if user wants to start over again */ - return (i == B_USER); - } - } - - return FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** Returns an array of matches, or NULL if none. */ -GPtrArray * -try_complete (char *text, int *lc_start, int *lc_end, input_complete_t flags) -{ - try_complete_automation_state_t state; - GPtrArray *matches = NULL; - - memset (&state, 0, sizeof (state)); - state.flags = flags; - - SHOW_C_CTX ("try_complete"); - state.word = g_strndup (text + *lc_start, *lc_end - *lc_start); - - state.is_cd = check_is_cd (text, *lc_start, state.flags); - - /* Determine if this could be a command word. It is if it appears at - the start of the line (ignoring preceding whitespace), or if it - appears after a character that separates commands. And we have to - be in a INPUT_COMPLETE_COMMANDS flagged Input line. */ - if (!state.is_cd && (flags & INPUT_COMPLETE_COMMANDS) != 0) - try_complete_commands_prepare (&state, text, lc_start); - - try_complete_find_start_sign (&state); - - /* Command substitution? */ - if (state.p > state.q && state.p > state.r) - { - SHOW_C_CTX ("try_complete:cmd_backq_subst"); - matches = completion_matches (str_cget_next_char (state.p), - command_completion_function, - state.flags & (~INPUT_COMPLETE_FILENAMES)); - if (matches != NULL) - *lc_start += str_get_next_char (state.p) - state.word; - } - - /* Variable name? */ - else if (state.q > state.p && state.q > state.r) - { - SHOW_C_CTX ("try_complete:var_subst"); - matches = completion_matches (state.q, variable_completion_function, state.flags); - if (matches != NULL) - *lc_start += state.q - state.word; - } - - /* Starts with '@', then look through the known hostnames for - completion first. */ - else if (state.r > state.p && state.r > state.q) - { - SHOW_C_CTX ("try_complete:host_subst"); - matches = completion_matches (state.r, hostname_completion_function, state.flags); - if (matches != NULL) - *lc_start += state.r - state.word; - } - - /* Starts with '~' and there is no slash in the word, then - try completing this word as a username. */ - if (matches == NULL && *state.word == '~' && (state.flags & INPUT_COMPLETE_USERNAMES) != 0 - && strchr (state.word, PATH_SEP) == NULL) - { - SHOW_C_CTX ("try_complete:user_subst"); - matches = completion_matches (state.word, username_completion_function, state.flags); - } - - /* If this word is in a command position, then - complete over possible command names, including aliases, functions, - and command names. */ - if (matches == NULL) - matches = try_complete_all_possible (&state, text, lc_start); - - /* And finally if nothing found, try complete directory name */ - if (matches == NULL) - { - state.in_command_position = 0; - matches = try_complete_all_possible (&state, text, lc_start); - } - - g_free (state.word); - - if (matches != NULL && (flags & INPUT_COMPLETE_FILENAMES) != 0 && - (flags & INPUT_COMPLETE_SHELL_ESC) == 0) - { - /* FIXME: HACK? INPUT_COMPLETE_SHELL_ESC is used only in command line. */ - size_t i; - - for (i = 0; i < matches->len; i++) - { - char *p; - - p = g_ptr_array_index (matches, i); - /* Escape only '?', '*', and '&' symbols as described in the - manual page (see a11995e12b88285e044f644904c306ed6c342ad0). */ - g_ptr_array_index (matches, i) = str_escape (p, -1, "?*&", TRUE); - g_free (p); - } - } - - return matches; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -complete_engine_fill_completions (WInput *in) -{ - char *s; - const char *word_separators; - - word_separators = (in->completion_flags & INPUT_COMPLETE_SHELL_ESC) ? " \t;|<>" : "\t;|<>"; - - end = str_offset_to_pos (in->buffer->str, in->point); - - s = in->buffer->str; - if (in->point != 0) - { - /* get symbol before in->point */ - size_t i; - - for (i = in->point - 1; i > 0; i--) - str_next_char (&s); - } - - for (; s >= in->buffer->str; str_prev_char (&s)) - { - start = s - in->buffer->str; - if (strchr (word_separators, *s) != NULL && !str_is_char_escaped (in->buffer->str, s)) - break; - } - - if (start < end) - { - str_next_char (&s); - start = s - in->buffer->str; - } - - in->completions = try_complete (in->buffer->str, &start, &end, in->completion_flags); -} - -/* --------------------------------------------------------------------------------------------- */ - -/* declared in lib/widget/input.h */ -void -input_complete (WInput *in) -{ - int engine_flags; - - if (!str_is_valid_string (in->buffer->str)) - return; - - if (in->completions != NULL) - engine_flags = DO_QUERY; - else - { - engine_flags = DO_INSERTION; - - if (mc_global.widget.show_all_if_ambiguous) - engine_flags |= DO_QUERY; - } - - while (complete_engine (in, engine_flags)) - ; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -input_complete_free (WInput *in) -{ - if (in->completions != NULL) - { - g_ptr_array_free (in->completions, TRUE); - in->completions = NULL; - } -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/label.c b/recipes/wip/files/mc/source/lib/widget/label.c deleted file mode 100644 index c3dd74b932..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/label.c +++ /dev/null @@ -1,201 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file label.c - * \brief Source: WLabel widget - */ - -#include - -#include -#include -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/tty/color.h" -#include "lib/skin.h" -#include "lib/strutil.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -label_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WLabel *l = LABEL (w); - - switch (msg) - { - case MSG_DRAW: - { - char *p = l->text; - int y = 0; - gboolean disabled; - align_crt_t align; - - if (l->text == NULL) - return MSG_HANDLED; - - disabled = widget_get_state (w, WST_DISABLED); - - if (l->transparent) - tty_setcolor (disabled ? DISABLED_COLOR : DEFAULT_COLOR); - else - { - const int *colors; - - colors = widget_get_colors (w); - tty_setcolor (disabled ? DISABLED_COLOR : colors[DLG_COLOR_NORMAL]); - } - - align = (w->pos_flags & WPOS_CENTER_HORZ) != 0 ? J_CENTER_LEFT : J_LEFT; - - while (TRUE) - { - char *q; - char c = '\0'; - - - q = strchr (p, '\n'); - if (q != NULL) - { - c = q[0]; - q[0] = '\0'; - } - - widget_gotoyx (w, y, 0); - tty_print_string (str_fit_to_term (p, w->rect.cols, align)); - - if (q == NULL) - break; - - q[0] = c; - p = q + 1; - y++; - } - return MSG_HANDLED; - } - - case MSG_DESTROY: - g_free (l->text); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -WLabel * -label_new (int y, int x, const char *text) -{ - WRect r = { y, x, 1, 1 }; - WLabel *l; - Widget *w; - - if (text != NULL) - str_msg_term_size (text, &r.lines, &r.cols); - - l = g_new (WLabel, 1); - w = WIDGET (l); - widget_init (w, &r, label_callback, NULL); - - l->text = g_strdup (text); - l->auto_adjust_cols = TRUE; - l->transparent = FALSE; - - return l; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -label_set_text (WLabel *label, const char *text) -{ - Widget *w = WIDGET (label); - int newcols = w->rect.cols; - int newlines; - - if (label->text != NULL && text != NULL && strcmp (label->text, text) == 0) - return; /* Flickering is not nice */ - - g_free (label->text); - - if (text == NULL) - label->text = NULL; - else - { - label->text = g_strdup (text); - if (label->auto_adjust_cols) - { - str_msg_term_size (text, &newlines, &newcols); - w->rect.cols = MAX (newcols, w->rect.cols); - w->rect.lines = MAX (newlines, w->rect.lines); - } - } - - widget_draw (w); - - w->rect.cols = MIN (newcols, w->rect.cols); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -label_set_textv (WLabel *label, const char *format, ...) -{ - va_list args; - char buf[BUF_1K]; /* FIXME: is it enough? */ - - va_start (args, format); - g_vsnprintf (buf, sizeof (buf), format, args); - va_end (args); - - label_set_text (label, buf); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/label.h b/recipes/wip/files/mc/source/lib/widget/label.h deleted file mode 100644 index 6d1607fc64..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/label.h +++ /dev/null @@ -1,37 +0,0 @@ - -/** \file label.h - * \brief Header: WLabel widget - */ - -#ifndef MC__WIDGET_LABEL_H -#define MC__WIDGET_LABEL_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define LABEL(x) ((WLabel *)(x)) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct -{ - Widget widget; - gboolean auto_adjust_cols; /* compute widget.cols from strlen(text)? */ - char *text; - gboolean transparent; /* Paint in the default color fg/bg */ -} WLabel; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -WLabel *label_new (int y, int x, const char *text); -void label_set_text (WLabel * label, const char *text); -/* *INDENT-OFF* */ -void label_set_textv (WLabel * label, const char *format, ...) G_GNUC_PRINTF (2, 3); -/* *INDENT-ON* */ - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_LABEL_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/listbox-window.c b/recipes/wip/files/mc/source/lib/widget/listbox-window.c deleted file mode 100644 index 04a796ba11..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/listbox-window.c +++ /dev/null @@ -1,176 +0,0 @@ -/* - Widget based utility functions. - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Miguel de Icaza, 1994, 1995, 1996 - Radek Doulik, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1995 - Andrew Borodin , 2009, 2010, 2013 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file listbox-window.c - * \brief Source: Listbox widget, a listbox within dialog window - */ - -#include - -#include - -#include "lib/global.h" -#include "lib/tty/tty.h" /* COLS */ -#include "lib/skin.h" -#include "lib/strutil.h" /* str_term_width1() */ -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/*** file scope functions ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -Listbox * -listbox_window_centered_new (int center_y, int center_x, int lines, int cols, - const char *title, const char *help) -{ - const int space = 4; - - int xpos = 0, ypos = 0; - Listbox *listbox; - widget_pos_flags_t pos_flags = WPOS_TRYUP; - - /* Adjust sizes */ - lines = MIN (lines, LINES - 6); - - if (title != NULL) - { - int len; - - len = str_term_width1 (title) + 4; - cols = MAX (cols, len); - } - - cols = MIN (cols, COLS - 6); - - /* adjust position */ - if ((center_y < 0) || (center_x < 0)) - pos_flags |= WPOS_CENTER; - else - { - /* Actually, this this is not used in MC. */ - - ypos = center_y; - xpos = center_x; - - ypos -= lines / 2; - xpos -= cols / 2; - - if (ypos + lines >= LINES) - ypos = LINES - lines - space; - if (ypos < 0) - ypos = 0; - - if (xpos + cols >= COLS) - xpos = COLS - cols - space; - if (xpos < 0) - xpos = 0; - } - - listbox = g_new (Listbox, 1); - - listbox->dlg = - dlg_create (TRUE, ypos, xpos, lines + space, cols + space, pos_flags, FALSE, listbox_colors, - NULL, NULL, help, title); - - listbox->list = listbox_new (2, 2, lines, cols, FALSE, NULL); - group_add_widget (GROUP (listbox->dlg), listbox->list); - - return listbox; -} - -/* --------------------------------------------------------------------------------------------- */ - -Listbox * -listbox_window_new (int lines, int cols, const char *title, const char *help) -{ - return listbox_window_centered_new (-1, -1, lines, cols, title, help); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** Returns the number of the item selected */ -int -listbox_run (Listbox *l) -{ - int val = -1; - - if (dlg_run (l->dlg) != B_CANCEL) - val = l->list->current; - widget_destroy (WIDGET (l->dlg)); - g_free (l); - return val; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * A variant of listbox_run() which is more convenient to use when we - * need to select arbitrary 'data'. - * - * @param select the item to select initially, by its 'data'. Optional. - * @return the 'data' of the item selected, or NULL if none selected. - */ -void * -listbox_run_with_data (Listbox *l, const void *select) -{ - void *val = NULL; - - if (select != NULL) - listbox_set_current (l->list, listbox_search_data (l->list, select)); - - if (dlg_run (l->dlg) != B_CANCEL) - { - WLEntry *e; - - e = listbox_get_nth_entry (l->list, l->list->current); - if (e != NULL) - { - /* The assert guards against returning a soon-to-be deallocated - * pointer (as in listbox_add_item(..., TRUE)). */ - g_assert (!e->free_data); - val = e->data; - } - } - - widget_destroy (WIDGET (l->dlg)); - g_free (l); - return val; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/listbox-window.h b/recipes/wip/files/mc/source/lib/widget/listbox-window.h deleted file mode 100644 index b9bb1e865b..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/listbox-window.h +++ /dev/null @@ -1,36 +0,0 @@ -/** \file listbox-window.h - * \brief Header: Listbox widget, a listbox within dialog window - */ - -#ifndef MC__LISTBOX_DIALOG_H -#define MC__LISTBOX_DIALOG_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define LISTBOX_APPEND_TEXT(l,h,t,d,f) \ - listbox_add_item (l->list, LISTBOX_APPEND_AT_END, h, t, d, f) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct -{ - WDialog *dlg; - WListbox *list; -} Listbox; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/* Listbox utility functions */ -Listbox *listbox_window_centered_new (int center_y, int center_x, int lines, int cols, - const char *title, const char *help); -Listbox *listbox_window_new (int lines, int cols, const char *title, const char *help); -int listbox_run (Listbox * l); -void *listbox_run_with_data (Listbox * l, const void *select); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__LISTBOX_DIALOG_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/listbox.c b/recipes/wip/files/mc/source/lib/widget/listbox.c deleted file mode 100644 index d2099cf8d0..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/listbox.c +++ /dev/null @@ -1,867 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file listbox.c - * \brief Source: WListbox widget - */ - -#include - -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/skin.h" -#include "lib/strutil.h" -#include "lib/util.h" /* Q_() */ -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -const global_keymap_t *listbox_map = NULL; - -/*** file scope macro definitions ****************************************************************/ - -/* Gives the position of the last item. */ -#define LISTBOX_LAST(l) (listbox_is_empty (l) ? 0 : (int) g_queue_get_length ((l)->list) - 1) - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static int -listbox_entry_cmp (const void *a, const void *b, void *user_data) -{ - const WLEntry *ea = (const WLEntry *) a; - const WLEntry *eb = (const WLEntry *) b; - - (void) user_data; - - return strcmp (ea->text, eb->text); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -listbox_entry_free (void *data) -{ - WLEntry *e = data; - - g_free (e->text); - if (e->free_data) - g_free (e->data); - g_free (e); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -listbox_drawscroll (const WListbox *l) -{ - const WRect *w = &CONST_WIDGET (l)->rect; - int max_line = w->lines - 1; - int line = 0; - int i; - int length; - - /* Are we at the top? */ - widget_gotoyx (l, 0, w->cols); - if (l->top == 0) - tty_print_one_vline (TRUE); - else - tty_print_char ('^'); - - length = g_queue_get_length (l->list); - - /* Are we at the bottom? */ - widget_gotoyx (w, max_line, w->cols); - if (l->top + w->lines == length || w->lines >= length) - tty_print_one_vline (TRUE); - else - tty_print_char ('v'); - - /* Now draw the nice relative pointer */ - if (length != 0) - line = 1 + ((l->current * (w->lines - 2)) / length); - - for (i = 1; i < max_line; i++) - { - widget_gotoyx (l, i, w->cols); - if (i != line) - tty_print_one_vline (TRUE); - else - tty_print_char ('*'); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -listbox_draw (WListbox *l, gboolean focused) -{ - Widget *wl = WIDGET (l); - const WRect *w = &CONST_WIDGET (l)->rect; - const int *colors; - gboolean disabled; - int normalc, selc; - int length = 0; - GList *le = NULL; - int pos; - int i; - int sel_line = -1; - - colors = widget_get_colors (wl); - - disabled = widget_get_state (wl, WST_DISABLED); - normalc = disabled ? DISABLED_COLOR : colors[DLG_COLOR_NORMAL]; - selc = disabled ? DISABLED_COLOR : colors[focused ? DLG_COLOR_HOT_FOCUS : DLG_COLOR_FOCUS]; - - if (l->list != NULL) - { - length = g_queue_get_length (l->list); - le = g_queue_peek_nth_link (l->list, (guint) l->top); - } - - /* pos = (le == NULL) ? 0 : g_list_position (l->list, le); */ - pos = (le == NULL) ? 0 : l->top; - - for (i = 0; i < w->lines; i++) - { - const char *text = ""; - - /* Display the entry */ - if (pos == l->current && sel_line == -1) - { - sel_line = i; - tty_setcolor (selc); - } - else - tty_setcolor (normalc); - - widget_gotoyx (l, i, 1); - - if (l->list != NULL && le != NULL && (i == 0 || pos < length)) - { - WLEntry *e = LENTRY (le->data); - - text = e->text; - le = g_list_next (le); - pos++; - } - - tty_print_string (str_fit_to_term (text, w->cols - 2, J_LEFT_FIT)); - } - - l->cursor_y = sel_line; - - if (l->scrollbar && length > w->lines) - { - tty_setcolor (normalc); - listbox_drawscroll (l); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -listbox_check_hotkey (WListbox *l, int key) -{ - if (!listbox_is_empty (l)) - { - int i; - GList *le; - - for (i = 0, le = g_queue_peek_head_link (l->list); le != NULL; i++, le = g_list_next (le)) - { - WLEntry *e = LENTRY (le->data); - - if (e->hotkey == key) - return i; - } - } - - return (-1); -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Calculates the item displayed at screen row 'y' (y==0 being the widget's 1st row). */ -static int -listbox_y_pos (WListbox *l, int y) -{ - return MIN (l->top + y, LISTBOX_LAST (l)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -listbox_fwd (WListbox *l, gboolean wrap) -{ - if (!listbox_is_empty (l)) - { - if ((guint) l->current + 1 < g_queue_get_length (l->list)) - listbox_set_current (l, l->current + 1); - else if (wrap) - listbox_select_first (l); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -listbox_fwd_n (WListbox *l, int n) -{ - listbox_set_current (l, MIN (l->current + n, LISTBOX_LAST (l))); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -listbox_back (WListbox *l, gboolean wrap) -{ - if (!listbox_is_empty (l)) - { - if (l->current > 0) - listbox_set_current (l, l->current - 1); - else if (wrap) - listbox_select_last (l); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -listbox_back_n (WListbox *l, int n) -{ - listbox_set_current (l, MAX (l->current - n, 0)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -listbox_execute_cmd (WListbox *l, long command) -{ - cb_ret_t ret = MSG_HANDLED; - const WRect *w = &CONST_WIDGET (l)->rect; - - if (l->list == NULL || g_queue_is_empty (l->list)) - return MSG_NOT_HANDLED; - - switch (command) - { - case CK_Up: - listbox_back (l, TRUE); - break; - case CK_Down: - listbox_fwd (l, TRUE); - break; - case CK_Top: - listbox_select_first (l); - break; - case CK_Bottom: - listbox_select_last (l); - break; - case CK_PageUp: - listbox_back_n (l, w->lines - 1); - break; - case CK_PageDown: - listbox_fwd_n (l, w->lines - 1); - break; - case CK_Delete: - if (l->deletable) - { - gboolean is_last, is_more; - int length; - - length = g_queue_get_length (l->list); - - is_last = (l->current + 1 >= length); - is_more = (l->top + w->lines >= length); - - listbox_remove_current (l); - if ((l->top > 0) && (is_last || is_more)) - l->top--; - } - break; - case CK_Clear: - if (l->deletable && mc_global.widget.confirm_history_cleanup - /* TRANSLATORS: no need to translate 'DialogTitle', it's just a context prefix */ - && (query_dialog (Q_ ("DialogTitle|History cleanup"), - _("Do you want clean this history?"), - D_ERROR, 2, _("&Yes"), _("&No")) == 0)) - listbox_remove_list (l); - break; - case CK_View: - case CK_Edit: - case CK_Enter: - ret = send_message (WIDGET (l)->owner, l, MSG_NOTIFY, command, NULL); - break; - default: - ret = MSG_NOT_HANDLED; - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Return MSG_HANDLED if we want a redraw */ -static cb_ret_t -listbox_key (WListbox *l, int key) -{ - long command; - - if (l->list == NULL) - return MSG_NOT_HANDLED; - - /* focus on listbox item N by '0'..'9' keys */ - if (key >= '0' && key <= '9') - { - listbox_set_current (l, key - '0'); - return MSG_HANDLED; - } - - command = widget_lookup_key (WIDGET (l), key); - if (command == CK_IgnoreKey) - return MSG_NOT_HANDLED; - return listbox_execute_cmd (l, command); -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Listbox item adding function */ -static inline void -listbox_add_entry (WListbox *l, WLEntry *e, listbox_append_t pos) -{ - if (l->list == NULL) - { - l->list = g_queue_new (); - pos = LISTBOX_APPEND_AT_END; - } - - switch (pos) - { - case LISTBOX_APPEND_AT_END: - g_queue_push_tail (l->list, e); - break; - - case LISTBOX_APPEND_BEFORE: - g_queue_insert_before (l->list, g_queue_peek_nth_link (l->list, (guint) l->current), e); - break; - - case LISTBOX_APPEND_AFTER: - g_queue_insert_after (l->list, g_queue_peek_nth_link (l->list, (guint) l->current), e); - break; - - case LISTBOX_APPEND_SORTED: - g_queue_insert_sorted (l->list, e, (GCompareDataFunc) listbox_entry_cmp, NULL); - break; - - default: - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Call this whenever the user changes the selected item. */ -static void -listbox_on_change (WListbox *l) -{ - listbox_draw (l, TRUE); - send_message (WIDGET (l)->owner, l, MSG_NOTIFY, 0, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -listbox_do_action (WListbox *l) -{ - int action; - - if (listbox_is_empty (l)) - return; - - if (l->callback != NULL) - action = l->callback (l); - else - action = LISTBOX_DONE; - - if (action == LISTBOX_DONE) - { - WDialog *h = DIALOG (WIDGET (l)->owner); - - h->ret_value = B_ENTER; - dlg_close (h); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -listbox_run_hotkey (WListbox *l, int pos) -{ - listbox_set_current (l, pos); - listbox_on_change (l); - listbox_do_action (l); -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline void -listbox_destroy (WListbox *l) -{ - listbox_remove_list (l); -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -listbox_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WListbox *l = LISTBOX (w); - - switch (msg) - { - case MSG_HOTKEY: - { - int pos; - - pos = listbox_check_hotkey (l, parm); - if (pos < 0) - return MSG_NOT_HANDLED; - - listbox_run_hotkey (l, pos); - - return MSG_HANDLED; - } - - case MSG_KEY: - { - cb_ret_t ret_code; - - ret_code = listbox_key (l, parm); - if (ret_code != MSG_NOT_HANDLED) - listbox_on_change (l); - return ret_code; - } - - case MSG_ACTION: - return listbox_execute_cmd (l, parm); - - case MSG_CURSOR: - widget_gotoyx (l, l->cursor_y, 0); - return MSG_HANDLED; - - case MSG_DRAW: - listbox_draw (l, widget_get_state (w, WST_FOCUSED)); - return MSG_HANDLED; - - case MSG_DESTROY: - listbox_destroy (l); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -listbox_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) -{ - WListbox *l = LISTBOX (w); - int old_current; - - old_current = l->current; - - switch (msg) - { - case MSG_MOUSE_DOWN: - widget_select (w); - listbox_set_current (l, listbox_y_pos (l, event->y)); - break; - - case MSG_MOUSE_SCROLL_UP: - listbox_back (l, FALSE); - break; - - case MSG_MOUSE_SCROLL_DOWN: - listbox_fwd (l, FALSE); - break; - - case MSG_MOUSE_DRAG: - event->result.repeat = TRUE; /* It'd be functional even without this. */ - listbox_set_current (l, listbox_y_pos (l, event->y)); - break; - - case MSG_MOUSE_CLICK: - /* We don't call listbox_set_current() here: MSG_MOUSE_DOWN/DRAG did this already. */ - if (event->count == GPM_DOUBLE) /* Double click */ - listbox_do_action (l); - break; - - default: - break; - } - - /* If the selection has changed, we redraw the widget and notify the dialog. */ - if (l->current != old_current) - listbox_on_change (l); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -WListbox * -listbox_new (int y, int x, int height, int width, gboolean deletable, lcback_fn callback) -{ - WRect r = { y, x, 1, width }; - WListbox *l; - Widget *w; - - l = g_new (WListbox, 1); - w = WIDGET (l); - r.lines = height > 0 ? height : 1; - widget_init (w, &r, listbox_callback, listbox_mouse_callback); - w->options |= WOP_SELECTABLE | WOP_WANT_HOTKEY; - w->keymap = listbox_map; - - l->list = NULL; - l->top = l->current = 0; - l->deletable = deletable; - l->callback = callback; - l->allow_duplicates = TRUE; - l->scrollbar = !mc_global.tty.slow_terminal; - - return l; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Finds item by its label. - */ -int -listbox_search_text (WListbox *l, const char *text) -{ - if (!listbox_is_empty (l)) - { - int i; - GList *le; - - for (i = 0, le = g_queue_peek_head_link (l->list); le != NULL; i++, le = g_list_next (le)) - { - WLEntry *e = LENTRY (le->data); - - if (strcmp (e->text, text) == 0) - return i; - } - } - - return (-1); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Finds item by its 'data' slot. - */ -int -listbox_search_data (WListbox *l, const void *data) -{ - if (!listbox_is_empty (l)) - { - int i; - GList *le; - - for (i = 0, le = g_queue_peek_head_link (l->list); le != NULL; i++, le = g_list_next (le)) - { - WLEntry *e = LENTRY (le->data); - - if (e->data == data) - return i; - } - } - - return (-1); -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Select the first entry and scrolls the list to the top */ -void -listbox_select_first (WListbox *l) -{ - l->current = l->top = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Selects the last entry and scrolls the list to the bottom */ -void -listbox_select_last (WListbox *l) -{ - int lines = WIDGET (l)->rect.lines; - int length; - - length = listbox_get_length (l); - - l->current = DOZ (length, 1); - l->top = DOZ (length, lines); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -listbox_set_current (WListbox *l, int dest) -{ - GList *le; - int pos; - gboolean top_seen = FALSE; - - if (listbox_is_empty (l) || dest < 0) - return; - - /* Special case */ - for (pos = 0, le = g_queue_peek_head_link (l->list); le != NULL; pos++, le = g_list_next (le)) - { - if (pos == l->top) - top_seen = TRUE; - - if (pos == dest) - { - l->current = dest; - if (!top_seen) - l->top = l->current; - else - { - int lines = WIDGET (l)->rect.lines; - - if (l->current - l->top >= lines) - l->top = l->current - lines + 1; - } - return; - } - } - - /* If we are unable to find it, set decent values */ - l->current = l->top = 0; -} - -/* --------------------------------------------------------------------------------------------- */ - -int -listbox_get_length (const WListbox *l) -{ - return listbox_is_empty (l) ? 0 : (int) g_queue_get_length (l->list); -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Returns the current string text as well as the associated extra data */ -void -listbox_get_current (WListbox *l, char **string, void **extra) -{ - WLEntry *e = NULL; - gboolean ok; - - if (l != NULL) - e = listbox_get_nth_entry (l, l->current); - - ok = (e != NULL); - - if (string != NULL) - *string = ok ? e->text : NULL; - - if (extra != NULL) - *extra = ok ? e->data : NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -WLEntry * -listbox_get_nth_entry (const WListbox *l, int pos) -{ - if (!listbox_is_empty (l) && pos >= 0) - { - GList *item; - - item = g_queue_peek_nth_link (l->list, (guint) pos); - if (item != NULL) - return LENTRY (item->data); - } - - return NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -GList * -listbox_get_first_link (const WListbox *l) -{ - return (l == NULL || l->list == NULL) ? NULL : g_queue_peek_head_link (l->list); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -listbox_remove_current (WListbox *l) -{ - if (!listbox_is_empty (l)) - { - GList *current; - int length; - - current = g_queue_peek_nth_link (l->list, (guint) l->current); - listbox_entry_free (current->data); - g_queue_delete_link (l->list, current); - - length = g_queue_get_length (l->list); - - if (length == 0) - l->top = l->current = 0; - else if (l->current >= length) - l->current = length - 1; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -listbox_is_empty (const WListbox *l) -{ - return (l == NULL || l->list == NULL || g_queue_is_empty (l->list)); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Set new listbox items list. - * - * @param l WListbox object - * @param list list of WLEntry objects - */ -void -listbox_set_list (WListbox *l, GQueue *list) -{ - listbox_remove_list (l); - - if (l != NULL) - l->list = list; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -listbox_remove_list (WListbox *l) -{ - if (l != NULL) - { - if (l->list != NULL) - { - g_queue_free_full (l->list, (GDestroyNotify) listbox_entry_free); - l->list = NULL; - } - - l->current = l->top = 0; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Add new intem to the listbox. - * - * @param l WListbox object - * @param pos position of the item - * @param hotkey position of the item - * @param text item text. @l takes the copy of @text. - * @param data item data - * @param free_data if TRUE free the @data when @l is destroyed, - * - * @returns pointer to copy of @text. - */ -char * -listbox_add_item (WListbox *l, listbox_append_t pos, int hotkey, const char *text, void *data, - gboolean free_data) -{ - return listbox_add_item_take (l, pos, hotkey, g_strdup (text), data, free_data); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Add new intem to the listbox. - * - * @param l WListbox object - * @param pos position of the item - * @param hotkey position of the item - * @param text item text. Ownership of the text is transferred to the @l. - * @param data item data - * @param free_data if TRUE free the @data when @l is destroyed, - * - * After this call, @text belongs to the @l and may no longer be modified by the caller. - * - * @returns pointer to @text. - */ -char * -listbox_add_item_take (WListbox *l, listbox_append_t pos, int hotkey, char *text, void *data, - gboolean free_data) -{ - WLEntry *entry; - - if (l == NULL) - return NULL; - - if (!l->allow_duplicates && (listbox_search_text (l, text) >= 0)) - return NULL; - - entry = g_new (WLEntry, 1); - entry->text = text; - entry->data = data; - entry->free_data = free_data; - entry->hotkey = hotkey; - - listbox_add_entry (l, entry, pos); - - return entry->text; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/listbox.h b/recipes/wip/files/mc/source/lib/widget/listbox.h deleted file mode 100644 index 37ef748ef6..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/listbox.h +++ /dev/null @@ -1,84 +0,0 @@ - -/** \file listbox.h - * \brief Header: WListbox widget - */ - -#ifndef MC__WIDGET_LISTBOX_H -#define MC__WIDGET_LISTBOX_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define LISTBOX(x) ((WListbox *)(x)) -#define LENTRY(x) ((WLEntry *)(x)) - -/*** enums ***************************************************************************************/ - -/* callback should return one of the following values */ -typedef enum -{ - LISTBOX_CONT, /* continue */ - LISTBOX_DONE /* finish dialog */ -} lcback_ret_t; - -typedef enum -{ - LISTBOX_APPEND_AT_END = 0, /* append at the end */ - LISTBOX_APPEND_BEFORE, /* insert before current */ - LISTBOX_APPEND_AFTER, /* insert after current */ - LISTBOX_APPEND_SORTED /* insert alphabetically */ -} listbox_append_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -struct WListbox; -typedef lcback_ret_t (*lcback_fn) (struct WListbox * l); - -typedef struct WLEntry -{ - char *text; /* Text to display */ - int hotkey; - void *data; /* Client information */ - gboolean free_data; /* Whether to free the data on entry's removal */ -} WLEntry; - -typedef struct WListbox -{ - Widget widget; - GQueue *list; /* Pointer to the list of WLEntry */ - int top; /* The first element displayed */ - int current; /* The current element displayed */ - gboolean allow_duplicates; /* Do we allow duplicates on the list? */ - gboolean scrollbar; /* Draw a scrollbar? */ - gboolean deletable; /* Can list entries be deleted? */ - lcback_fn callback; /* The callback function */ - int cursor_x, cursor_y; /* Cache the values */ -} WListbox; - -/*** global variables defined in .c file *********************************************************/ - -extern const global_keymap_t *listbox_map; - -/*** declarations of public functions ************************************************************/ - -WListbox *listbox_new (int y, int x, int height, int width, gboolean deletable, lcback_fn callback); -int listbox_search_text (WListbox * l, const char *text); -int listbox_search_data (WListbox * l, const void *data); -void listbox_select_first (WListbox * l); -void listbox_select_last (WListbox * l); -void listbox_set_current (WListbox * l, int dest); -int listbox_get_length (const WListbox * l); -void listbox_get_current (WListbox * l, char **string, void **extra); -WLEntry *listbox_get_nth_entry (const WListbox * l, int pos); -GList *listbox_get_first_link (const WListbox * l); -void listbox_remove_current (WListbox * l); -gboolean listbox_is_empty (const WListbox * l); -void listbox_set_list (WListbox * l, GQueue * list); -void listbox_remove_list (WListbox * l); -char *listbox_add_item (WListbox * l, listbox_append_t pos, int hotkey, const char *text, - void *data, gboolean free_data); -char *listbox_add_item_take (WListbox * l, listbox_append_t pos, int hotkey, char *text, - void *data, gboolean free_data); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_LISTBOX_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/menu.c b/recipes/wip/files/mc/source/lib/widget/menu.c deleted file mode 100644 index 02c8321b34..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/menu.c +++ /dev/null @@ -1,1099 +0,0 @@ -/* - Pulldown menu code - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2012-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file menu.c - * \brief Source: pulldown menu code - */ - -#include - -#include -#include -#include -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/skin.h" -#include "lib/tty/key.h" /* key macros */ -#include "lib/strutil.h" -#include "lib/widget.h" -#include "lib/event.h" /* mc_event_raise() */ - -/*** global variables ****************************************************************************/ - -const global_keymap_t *menu_map = NULL; - -/*** file scope macro definitions ****************************************************************/ - -#define MENUENTRY(x) ((menu_entry_t *)(x)) -#define MENU(x) ((menu_t *)(x)) - -/*** file scope type declarations ****************************************************************/ - -struct menu_entry_t -{ - unsigned char first_letter; - hotkey_t text; - long command; - char *shortcut; -}; - -struct menu_t -{ - int start_x; /* position relative to menubar start */ - hotkey_t text; - GList *entries; - size_t max_entry_len; /* cached max length of entry texts (text + shortcut) */ - size_t max_hotkey_len; /* cached max length of shortcuts */ - unsigned int current; /* pointer to current menu entry */ - char *help_node; -}; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static void -menu_arrange (menu_t *menu, dlg_shortcut_str get_shortcut) -{ - if (menu != NULL) - { - GList *i; - size_t max_shortcut_len = 0; - - menu->max_entry_len = 1; - menu->max_hotkey_len = 1; - - for (i = menu->entries; i != NULL; i = g_list_next (i)) - { - menu_entry_t *entry = MENUENTRY (i->data); - - if (entry != NULL) - { - size_t len; - - len = (size_t) hotkey_width (entry->text); - menu->max_hotkey_len = MAX (menu->max_hotkey_len, len); - - if (get_shortcut != NULL) - entry->shortcut = get_shortcut (entry->command); - - if (entry->shortcut != NULL) - { - len = (size_t) str_term_width1 (entry->shortcut); - max_shortcut_len = MAX (max_shortcut_len, len); - } - } - } - - menu->max_entry_len = menu->max_hotkey_len + max_shortcut_len; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_paint_idx (const WMenuBar *menubar, unsigned int idx, int color) -{ - const WRect *w = &CONST_WIDGET (menubar)->rect; - const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current)); - const menu_entry_t *entry = MENUENTRY (g_list_nth_data (menu->entries, idx)); - const int y = 2 + idx; - int x = menu->start_x; - - if (x + menu->max_entry_len + 4 > (gsize) w->cols) - x = w->cols - menu->max_entry_len - 4; - - if (entry == NULL) - { - /* menu separator */ - tty_setcolor (MENU_ENTRY_COLOR); - - widget_gotoyx (menubar, y, x - 1); - tty_print_alt_char (ACS_LTEE, FALSE); - tty_draw_hline (w->y + y, w->x + x, ACS_HLINE, menu->max_entry_len + 3); - widget_gotoyx (menubar, y, x + menu->max_entry_len + 3); - tty_print_alt_char (ACS_RTEE, FALSE); - } - else - { - int yt, xt; - - /* menu text */ - tty_setcolor (color); - widget_gotoyx (menubar, y, x); - tty_print_char ((unsigned char) entry->first_letter); - tty_getyx (&yt, &xt); - tty_draw_hline (yt, xt, ' ', menu->max_entry_len + 2); /* clear line */ - tty_print_string (entry->text.start); - - if (entry->text.hotkey != NULL) - { - tty_setcolor (color == MENU_SELECTED_COLOR ? MENU_HOTSEL_COLOR : MENU_HOT_COLOR); - tty_print_string (entry->text.hotkey); - tty_setcolor (color); - } - - if (entry->text.end != NULL) - tty_print_string (entry->text.end); - - if (entry->shortcut != NULL) - { - widget_gotoyx (menubar, y, x + menu->max_hotkey_len + 3); - tty_print_string (entry->shortcut); - } - - /* move cursor to the start of entry text */ - widget_gotoyx (menubar, y, x + 1); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_draw_drop (const WMenuBar *menubar) -{ - const WRect *w = &CONST_WIDGET (menubar)->rect; - const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current)); - const unsigned int count = g_list_length (menu->entries); - int column = menu->start_x - 1; - unsigned int i; - - if (column + menu->max_entry_len + 5 > (gsize) w->cols) - column = w->cols - menu->max_entry_len - 5; - - if (mc_global.tty.shadows) - tty_draw_box_shadow (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, - SHADOW_COLOR); - - tty_setcolor (MENU_ENTRY_COLOR); - tty_draw_box (w->y + 1, w->x + column, count + 2, menu->max_entry_len + 5, FALSE); - - for (i = 0; i < count; i++) - menubar_paint_idx (menubar, i, i == menu->current ? MENU_SELECTED_COLOR : MENU_ENTRY_COLOR); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_set_color (const WMenuBar *menubar, gboolean current, gboolean hotkey) -{ - if (!widget_get_state (CONST_WIDGET (menubar), WST_FOCUSED)) - tty_setcolor (MENU_INACTIVE_COLOR); - else if (current) - tty_setcolor (hotkey ? MENU_HOTSEL_COLOR : MENU_SELECTED_COLOR); - else - tty_setcolor (hotkey ? MENU_HOT_COLOR : MENU_ENTRY_COLOR); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_draw (const WMenuBar *menubar) -{ - const WRect *w = &CONST_WIDGET (menubar)->rect; - GList *i; - - /* First draw the complete menubar */ - tty_setcolor (widget_get_state (WIDGET (menubar), WST_FOCUSED) ? MENU_ENTRY_COLOR : - MENU_INACTIVE_COLOR); - tty_draw_hline (w->y, w->x, ' ', w->cols); - - /* Now each one of the entries */ - for (i = menubar->menu; i != NULL; i = g_list_next (i)) - { - menu_t *menu = MENU (i->data); - gboolean is_selected = (menubar->current == (gsize) g_list_position (menubar->menu, i)); - - menubar_set_color (menubar, is_selected, FALSE); - widget_gotoyx (menubar, 0, menu->start_x); - - tty_print_char (' '); - tty_print_string (menu->text.start); - - if (menu->text.hotkey != NULL) - { - menubar_set_color (menubar, is_selected, TRUE); - tty_print_string (menu->text.hotkey); - menubar_set_color (menubar, is_selected, FALSE); - } - - if (menu->text.end != NULL) - tty_print_string (menu->text.end); - - tty_print_char (' '); - } - - if (menubar->is_dropped) - menubar_draw_drop (menubar); - else - widget_gotoyx (menubar, 0, - MENU (g_list_nth_data (menubar->menu, menubar->current))->start_x); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_remove (WMenuBar *menubar) -{ - Widget *g; - - if (!menubar->is_dropped) - return; - - /* HACK: before refresh the dialog, change the current widget to keep the order - of overlapped widgets. This is useful in multi-window editor. - In general, menubar should be a special object, not an ordinary widget - in the current dialog. */ - g = WIDGET (WIDGET (menubar)->owner); - GROUP (g)->current = widget_find (g, widget_find_by_id (g, menubar->previous_widget)); - - menubar->is_dropped = FALSE; - do_refresh (); - menubar->is_dropped = TRUE; - - /* restore current widget */ - GROUP (g)->current = widget_find (g, WIDGET (menubar)); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_left (WMenuBar *menubar) -{ - menubar_remove (menubar); - if (menubar->current == 0) - menubar->current = g_list_length (menubar->menu) - 1; - else - menubar->current--; - menubar_draw (menubar); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_right (WMenuBar *menubar) -{ - menubar_remove (menubar); - menubar->current = (menubar->current + 1) % g_list_length (menubar->menu); - menubar_draw (menubar); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_finish (WMenuBar *menubar) -{ - Widget *w = WIDGET (menubar); - - menubar->is_dropped = FALSE; - w->rect.lines = 1; - widget_want_hotkey (w, FALSE); - widget_set_options (w, WOP_SELECTABLE, FALSE); - - if (!mc_global.keybar_visible) - widget_hide (w); - else - { - /* Move the menubar to the bottom so that widgets displayed on top of - * an "invisible" menubar get the first chance to respond to mouse events. */ - widget_set_bottom (w); - } - - /* background must be bottom */ - if (DIALOG (w->owner)->bg != NULL) - widget_set_bottom (WIDGET (DIALOG (w->owner)->bg)); - - group_select_widget_by_id (w->owner, menubar->previous_widget); - do_refresh (); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_drop (WMenuBar *menubar, unsigned int selected) -{ - menubar->is_dropped = TRUE; - menubar->current = selected; - menubar_draw (menubar); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_execute (WMenuBar *menubar) -{ - const menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current)); - const menu_entry_t *entry = MENUENTRY (g_list_nth_data (menu->entries, menu->current)); - - if ((entry != NULL) && (entry->command != CK_IgnoreKey)) - { - Widget *w = WIDGET (menubar); - - mc_global.widget.is_right = (menubar->current != 0); - menubar_finish (menubar); - send_message (w->owner, w, MSG_ACTION, entry->command, NULL); - do_refresh (); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_down (WMenuBar *menubar) -{ - menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current)); - const unsigned int len = g_list_length (menu->entries); - menu_entry_t *entry; - - menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR); - - do - { - menu->current = (menu->current + 1) % len; - entry = MENUENTRY (g_list_nth_data (menu->entries, menu->current)); - } - while ((entry == NULL) || (entry->command == CK_IgnoreKey)); - - menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_up (WMenuBar *menubar) -{ - menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current)); - const unsigned int len = g_list_length (menu->entries); - menu_entry_t *entry; - - menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR); - - do - { - if (menu->current == 0) - menu->current = len - 1; - else - menu->current--; - entry = MENUENTRY (g_list_nth_data (menu->entries, menu->current)); - } - while ((entry == NULL) || (entry->command == CK_IgnoreKey)); - - menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_first (WMenuBar *menubar) -{ - if (menubar->is_dropped) - { - menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current)); - - if (menu->current == 0) - return; - - menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR); - - menu->current = 0; - - while (TRUE) - { - menu_entry_t *entry; - - entry = MENUENTRY (g_list_nth_data (menu->entries, menu->current)); - - if ((entry == NULL) || (entry->command == CK_IgnoreKey)) - menu->current++; - else - break; - } - - menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR); - } - else - { - menubar->current = 0; - menubar_draw (menubar); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_last (WMenuBar *menubar) -{ - if (menubar->is_dropped) - { - menu_t *menu = MENU (g_list_nth_data (menubar->menu, menubar->current)); - const unsigned int len = g_list_length (menu->entries); - menu_entry_t *entry; - - if (menu->current == len - 1) - return; - - menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR); - - menu->current = len; - - do - { - menu->current--; - entry = MENUENTRY (g_list_nth_data (menu->entries, menu->current)); - } - while ((entry == NULL) || (entry->command == CK_IgnoreKey)); - - menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR); - } - else - { - menubar->current = g_list_length (menubar->menu) - 1; - menubar_draw (menubar); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -menubar_try_drop_menu (WMenuBar *menubar, int hotkey) -{ - GList *i; - - for (i = menubar->menu; i != NULL; i = g_list_next (i)) - { - menu_t *menu = MENU (i->data); - - if (menu->text.hotkey != NULL && hotkey == g_ascii_tolower (menu->text.hotkey[0])) - { - menubar_drop (menubar, g_list_position (menubar->menu, i)); - return MSG_HANDLED; - } - } - - return MSG_NOT_HANDLED; -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -menubar_try_exec_menu (WMenuBar *menubar, int hotkey) -{ - menu_t *menu; - GList *i; - - menu = g_list_nth_data (menubar->menu, menubar->current); - - for (i = menu->entries; i != NULL; i = g_list_next (i)) - { - const menu_entry_t *entry = MENUENTRY (i->data); - - if (entry != NULL && entry->text.hotkey != NULL - && hotkey == g_ascii_tolower (entry->text.hotkey[0])) - { - menu->current = g_list_position (menu->entries, i); - menubar_execute (menubar); - return MSG_HANDLED; - } - } - - return MSG_NOT_HANDLED; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_help (const WMenuBar *menubar) -{ - ev_help_t event_data; - - event_data.filename = NULL; - - if (menubar->is_dropped) - event_data.node = MENU (g_list_nth_data (menubar->menu, menubar->current))->help_node; - else - event_data.node = "[Menu Bar]"; - - mc_event_raise (MCEVENT_GROUP_CORE, "help", &event_data); - menubar_draw (menubar); -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -menubar_execute_cmd (WMenuBar *menubar, long command) -{ - cb_ret_t ret = MSG_HANDLED; - - switch (command) - { - case CK_Help: - menubar_help (menubar); - break; - - case CK_Left: - menubar_left (menubar); - break; - case CK_Right: - menubar_right (menubar); - break; - case CK_Up: - if (menubar->is_dropped) - menubar_up (menubar); - break; - case CK_Down: - if (menubar->is_dropped) - menubar_down (menubar); - else - menubar_drop (menubar, menubar->current); - break; - case CK_Home: - menubar_first (menubar); - break; - case CK_End: - menubar_last (menubar); - break; - - case CK_Enter: - if (menubar->is_dropped) - menubar_execute (menubar); - else - menubar_drop (menubar, menubar->current); - break; - case CK_Quit: - menubar_finish (menubar); - break; - - default: - ret = MSG_NOT_HANDLED; - break; - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -static int -menubar_handle_key (WMenuBar *menubar, int key) -{ - long cmd; - cb_ret_t ret = MSG_NOT_HANDLED; - - cmd = widget_lookup_key (WIDGET (menubar), key); - - if (cmd != CK_IgnoreKey) - ret = menubar_execute_cmd (menubar, cmd); - - if (ret != MSG_HANDLED) - { - if (menubar->is_dropped) - ret = menubar_try_exec_menu (menubar, key); - else - ret = menubar_try_drop_menu (menubar, key); - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -menubar_refresh (WMenuBar *menubar) -{ - Widget *w = WIDGET (menubar); - - if (!widget_get_state (w, WST_FOCUSED)) - return FALSE; - - /* Trick to get all the mouse events */ - w->rect.lines = LINES; - - /* Trick to get all of the hotkeys */ - widget_want_hotkey (w, TRUE); - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline void -menubar_free_menu (WMenuBar *menubar) -{ - g_clear_list (&menubar->menu, (GDestroyNotify) menu_free); -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -menubar_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WMenuBar *menubar = MENUBAR (w); - - switch (msg) - { - /* We do not want the focus unless we have been activated */ - case MSG_FOCUS: - if (menubar_refresh (menubar)) - { - menubar_draw (menubar); - return MSG_HANDLED; - } - return MSG_NOT_HANDLED; - - case MSG_UNFOCUS: - return widget_get_state (w, WST_FOCUSED) ? MSG_NOT_HANDLED : MSG_HANDLED; - - /* We don't want the buttonbar to activate while using the menubar */ - case MSG_HOTKEY: - case MSG_KEY: - if (widget_get_state (w, WST_FOCUSED)) - { - menubar_handle_key (menubar, parm); - return MSG_HANDLED; - } - return MSG_NOT_HANDLED; - - case MSG_CURSOR: - /* Put the cursor in a suitable place */ - return MSG_NOT_HANDLED; - - case MSG_DRAW: - if (widget_get_state (w, WST_VISIBLE) || menubar_refresh (menubar)) - menubar_draw (menubar); - return MSG_HANDLED; - - case MSG_RESIZE: - /* try show menu after screen resize */ - widget_default_callback (w, NULL, MSG_RESIZE, 0, data); - menubar_refresh (menubar); - return MSG_HANDLED; - - case MSG_DESTROY: - menubar_free_menu (menubar); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static unsigned int -menubar_get_menu_by_x_coord (const WMenuBar *menubar, int x) -{ - unsigned int i; - GList *menu; - - for (i = 0, menu = menubar->menu; - menu != NULL && x >= MENU (menu->data)->start_x; i++, menu = g_list_next (menu)) - ; - - /* Don't set the invalid value -1 */ - if (i != 0) - i--; - - return i; -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -menubar_mouse_on_menu (const WMenuBar *menubar, int y, int x) -{ - const WRect *w = &CONST_WIDGET (menubar)->rect; - menu_t *menu; - int left_x, right_x, bottom_y; - - if (!menubar->is_dropped) - return FALSE; - - menu = MENU (g_list_nth_data (menubar->menu, menubar->current)); - left_x = menu->start_x; - right_x = left_x + menu->max_entry_len + 3; - if (right_x > w->cols) - { - left_x = w->cols - (menu->max_entry_len + 3); - right_x = w->cols; - } - - bottom_y = g_list_length (menu->entries) + 2; /* skip bar and top frame */ - - return (x >= left_x && x < right_x && y > 1 && y < bottom_y); -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_change_selected_item (WMenuBar *menubar, int y) -{ - menu_t *menu; - menu_entry_t *entry; - - y -= 2; /* skip bar and top frame */ - menu = MENU (g_list_nth_data (menubar->menu, menubar->current)); - entry = MENUENTRY (g_list_nth_data (menu->entries, y)); - - if (entry != NULL && entry->command != CK_IgnoreKey) - { - menubar_paint_idx (menubar, menu->current, MENU_ENTRY_COLOR); - menu->current = y; - menubar_paint_idx (menubar, menu->current, MENU_SELECTED_COLOR); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -menubar_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) -{ - static gboolean was_drag = FALSE; - - WMenuBar *menubar = MENUBAR (w); - gboolean mouse_on_drop; - - mouse_on_drop = menubar_mouse_on_menu (menubar, event->y, event->x); - - switch (msg) - { - case MSG_MOUSE_DOWN: - was_drag = FALSE; - - if (event->y == 0) - { - /* events on menubar */ - unsigned int selected; - - selected = menubar_get_menu_by_x_coord (menubar, event->x); - menubar_activate (menubar, TRUE, selected); - menubar_remove (menubar); /* if already shown */ - menubar_drop (menubar, selected); - } - else if (mouse_on_drop) - menubar_change_selected_item (menubar, event->y); - else - { - /* mouse click outside menubar or dropdown -- close menu */ - menubar_finish (menubar); - - /* - * @FIXME. - * - * Unless we clear the 'capture' flag, we'll receive MSG_MOUSE_DRAG - * events belonging to this click (in case the user drags the mouse, - * of course). - * - * For the time being, we mark this with FIXME as this flag should - * preferably be regarded as "implementation detail" and not be - * touched by us. We should think of some other way of communicating - * this to the system. - */ - w->mouse.capture = FALSE; - } - break; - - case MSG_MOUSE_UP: - if (was_drag && mouse_on_drop) - menubar_execute (menubar); - was_drag = FALSE; - break; - - case MSG_MOUSE_CLICK: - was_drag = FALSE; - - if ((event->buttons & GPM_B_MIDDLE) != 0 && event->y > 0 && menubar->is_dropped) - { - /* middle click -- everywhere */ - menubar_execute (menubar); - } - else if (mouse_on_drop) - menubar_execute (menubar); - else if (event->y > 0) - /* releasing the mouse button outside the menu -- close menu */ - menubar_finish (menubar); - break; - - case MSG_MOUSE_DRAG: - if (event->y == 0) - { - menubar_remove (menubar); - menubar_drop (menubar, menubar_get_menu_by_x_coord (menubar, event->x)); - } - else if (mouse_on_drop) - menubar_change_selected_item (menubar, event->y); - - was_drag = TRUE; - break; - - case MSG_MOUSE_SCROLL_UP: - case MSG_MOUSE_SCROLL_DOWN: - was_drag = FALSE; - - if (widget_get_state (w, WST_FOCUSED)) - { - if (event->y == 0) - { - /* menubar: left/right */ - if (msg == MSG_MOUSE_SCROLL_UP) - menubar_left (menubar); - else - menubar_right (menubar); - } - else if (mouse_on_drop) - { - /* drop-down menu: up/down */ - if (msg == MSG_MOUSE_SCROLL_UP) - menubar_up (menubar); - else - menubar_down (menubar); - } - } - break; - - default: - was_drag = FALSE; - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -menu_entry_t * -menu_entry_new (const char *name, long command) -{ - menu_entry_t *entry; - - entry = g_new (menu_entry_t, 1); - entry->first_letter = ' '; - entry->text = hotkey_new (name); - entry->command = command; - entry->shortcut = NULL; - - return entry; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -menu_entry_free (menu_entry_t *entry) -{ - if (entry != NULL) - { - hotkey_free (entry->text); - g_free (entry->shortcut); - g_free (entry); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -menu_t * -menu_new (const char *name, GList *entries, const char *help_node) -{ - menu_t *menu; - - menu = g_new (menu_t, 1); - menu->start_x = 0; - menu->text = hotkey_new (name); - menu->entries = entries; - menu->max_entry_len = 1; - menu->max_hotkey_len = 0; - menu->current = 0; - menu->help_node = g_strdup (help_node); - - return menu; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -menu_set_name (menu_t *menu, const char *name) -{ - hotkey_free (menu->text); - menu->text = hotkey_new (name); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -menu_free (menu_t *menu) -{ - hotkey_free (menu->text); - g_list_free_full (menu->entries, (GDestroyNotify) menu_entry_free); - g_free (menu->help_node); - g_free (menu); -} - -/* --------------------------------------------------------------------------------------------- */ - -WMenuBar * -menubar_new (GList *menu) -{ - WRect r = { 0, 0, 1, COLS }; - WMenuBar *menubar; - Widget *w; - - menubar = g_new0 (WMenuBar, 1); - w = WIDGET (menubar); - widget_init (w, &r, menubar_callback, menubar_mouse_callback); - w->pos_flags = WPOS_KEEP_HORZ | WPOS_KEEP_TOP; - w->options |= WOP_TOP_SELECT; - w->keymap = menu_map; - menubar_set_menu (menubar, menu); - - return menubar; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -menubar_set_menu (WMenuBar *menubar, GList *menu) -{ - /* delete previous menu */ - menubar_free_menu (menubar); - /* add new menu */ - menubar->is_dropped = FALSE; - menubar->menu = menu; - menubar->current = 0; - menubar_arrange (menubar); - widget_set_state (WIDGET (menubar), WST_FOCUSED, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -menubar_add_menu (WMenuBar *menubar, menu_t *menu) -{ - if (menu != NULL) - { - menu_arrange (menu, DIALOG (WIDGET (menubar)->owner)->get_shortcut); - menubar->menu = g_list_append (menubar->menu, menu); - } - - menubar_arrange (menubar); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Properly space menubar items. Should be called when menubar is created - * and also when widget width is changed (i.e. upon xterm resize). - */ - -void -menubar_arrange (WMenuBar *menubar) -{ - int start_x = 1; - GList *i; - int gap; - - if (menubar->menu == NULL) - return; - - gap = WIDGET (menubar)->rect.cols - 2; - - /* First, calculate gap between items... */ - for (i = menubar->menu; i != NULL; i = g_list_next (i)) - { - menu_t *menu = MENU (i->data); - - /* preserve length here, to be used below */ - menu->start_x = hotkey_width (menu->text) + 2; - gap -= menu->start_x; - } - - if (g_list_next (menubar->menu) == NULL) - gap = 1; - else - gap /= (g_list_length (menubar->menu) - 1); - - if (gap <= 0) - { - /* We are out of luck - window is too narrow... */ - gap = 1; - } - else if (gap >= 3) - gap = 3; - - /* ...and now fix start positions of menubar items */ - for (i = menubar->menu; i != NULL; i = g_list_next (i)) - { - menu_t *menu = MENU (i->data); - int len = menu->start_x; - - menu->start_x = start_x; - start_x += len + gap; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** Find MenuBar widget in the dialog */ - -WMenuBar * -menubar_find (const WDialog *h) -{ - return MENUBAR (widget_find_by_type (CONST_WIDGET (h), menubar_callback)); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Activate menu bar. - * - * @param menubar menu bar object - * @param dropped whether dropdown menus should be drooped or not - * @which number of active dropdown menu - */ -void -menubar_activate (WMenuBar *menubar, gboolean dropped, int which) -{ - Widget *w = WIDGET (menubar); - - widget_show (w); - - if (!widget_get_state (w, WST_FOCUSED)) - { - widget_set_options (w, WOP_SELECTABLE, TRUE); - - menubar->is_dropped = dropped; - if (which >= 0) - menubar->current = (guint) which; - - menubar->previous_widget = group_get_current_widget_id (w->owner); - - /* Bring it to the top so it receives all mouse events before any other widget. - * See also comment in menubar_finish(). */ - widget_select (w); - } -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/menu.h b/recipes/wip/files/mc/source/lib/widget/menu.h deleted file mode 100644 index ce2cebe360..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/menu.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - Header file for pulldown menu engine for Midnignt Commander - */ - -/** \file menu.h - * \brief Header: pulldown menu code - */ - -#ifndef MC__WIDGET_MENU_H -#define MC__WIDGET_MENU_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define MENUBAR(x) ((WMenuBar *)(x)) - -#define menu_separator_new() NULL - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -struct menu_entry_t; -typedef struct menu_entry_t menu_entry_t; - -struct menu_t; -typedef struct menu_t menu_t; - -/* The button bar menu */ -typedef struct WMenuBar -{ - Widget widget; - - gboolean is_dropped; /* If the menubar has dropped */ - GList *menu; /* The actual menus */ - guint current; /* Current menu on the top bar */ - unsigned long previous_widget; /* Selected widget ID before activating menu */ -} WMenuBar; - -/*** global variables defined in .c file *********************************************************/ - -extern const global_keymap_t *menu_map; - -/*** declarations of public functions ************************************************************/ - -menu_entry_t *menu_entry_new (const char *name, long command); -void menu_entry_free (menu_entry_t * me); - -menu_t *menu_new (const char *name, GList * entries, const char *help_node); -void menu_set_name (menu_t * menu, const char *name); -void menu_free (menu_t * menu); - -WMenuBar *menubar_new (GList * menu); -void menubar_set_menu (WMenuBar * menubar, GList * menu); -void menubar_add_menu (WMenuBar * menubar, menu_t * menu); -void menubar_arrange (WMenuBar * menubar); - -WMenuBar *menubar_find (const WDialog * h); - -void menubar_activate (WMenuBar * menubar, gboolean dropped, int which); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_MENU_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/mouse.c b/recipes/wip/files/mc/source/lib/widget/mouse.c deleted file mode 100644 index a06b482d74..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/mouse.c +++ /dev/null @@ -1,227 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 2016-2025 - Free Software Foundation, Inc. - - Authors: - Human beings. - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file mouse.c - * \brief Header: High-level mouse API - */ - -#include - -#include "lib/global.h" -#include "lib/widget.h" - -#include "lib/widget/mouse.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** - * Constructs a mouse event structure. - * - * It receives a Gpm_Event event and translates it into a higher level protocol. - * - * Tip: for details on the C mouse API, see MC's lib/tty/mouse.h, - * or GPM's excellent 'info' manual: - * - * http://www.fifi.org/cgi-bin/info2www?(gpm)Event+Types - */ -static void -init_mouse_event (mouse_event_t *event, mouse_msg_t msg, const Gpm_Event *global_gpm, - const Widget *w) -{ - event->msg = msg; - event->x = global_gpm->x - w->rect.x - 1; /* '-1' because Gpm_Event is 1-based. */ - event->y = global_gpm->y - w->rect.y - 1; - event->count = global_gpm->type & (GPM_SINGLE | GPM_DOUBLE | GPM_TRIPLE); - event->buttons = global_gpm->buttons; - event->result.abort = FALSE; - event->result.repeat = FALSE; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Translate GPM event to high-level event, - * - * @param w Widget object - * @param event GPM event - * - * @return high level mouse event - */ -static mouse_event_t -mouse_translate_event (Widget *w, Gpm_Event *event) -{ - gboolean in_widget; - mouse_msg_t msg = MSG_MOUSE_NONE; - mouse_event_t local; - - /* - * Very special widgets may want to control area outside their bounds. - * For such widgets you will have to turn on the 'forced_capture' flag. - * You'll also need, in your mouse handler, to inform the system of - * events you want to pass on by setting 'event->result.abort' to TRUE. - */ - in_widget = w->mouse.forced_capture || mouse_global_in_widget (event, w); - - if ((event->type & GPM_DOWN) != 0) - { - if (in_widget) - { - if ((event->buttons & GPM_B_UP) != 0) - msg = MSG_MOUSE_SCROLL_UP; - else if ((event->buttons & GPM_B_DOWN) != 0) - msg = MSG_MOUSE_SCROLL_DOWN; - else - { - /* Handle normal buttons: anything but the mouse wheel's. - * - * (Note that turning on capturing for the mouse wheel - * buttons doesn't make sense as they don't generate a - * mouse_up event, which means we'd never get uncaptured.) - */ - w->mouse.capture = TRUE; - msg = MSG_MOUSE_DOWN; - - w->mouse.last_buttons_down = event->buttons; - } - } - } - else if ((event->type & GPM_UP) != 0) - { - /* We trigger the mouse_up event even when !in_widget. That's - * because, for example, a paint application should stop drawing - * lines when the button is released even outside the canvas. */ - if (w->mouse.capture) - { - w->mouse.capture = FALSE; - msg = MSG_MOUSE_UP; - - /* - * When using xterm, event->buttons reports the buttons' state - * after the event occurred (meaning that event->buttons is zero, - * because the mouse button is now released). When using GPM, - * however, that field reports the button(s) that was released. - * - * The following makes xterm behave effectively like GPM: - */ - if (event->buttons == 0) - event->buttons = w->mouse.last_buttons_down; - } - } - else if ((event->type & GPM_DRAG) != 0) - { - if (w->mouse.capture) - msg = MSG_MOUSE_DRAG; - } - else if ((event->type & GPM_MOVE) != 0) - { - if (in_widget) - msg = MSG_MOUSE_MOVE; - } - - init_mouse_event (&local, msg, event, w); - - return local; -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Call widget mouse handler to process high-level mouse event. - * - * Besides sending to the widget the event itself, this function may also - * send one or more pseudo events. Currently, MSG_MOUSE_CLICK is the only - * pseudo event in existence but in the future (e.g., with the introduction - * of a drag-drop API) there may be more. - * - * @param w Widget object - * @param event high level mouse event - * - * @return result of mouse event handling - */ -static int -mouse_process_event (Widget *w, mouse_event_t *event) -{ - int ret = MOU_UNHANDLED; - - if (event->msg != MSG_MOUSE_NONE) - { - w->mouse_callback (w, event->msg, event); - - /* If a widget aborts a MSG_MOUSE_DOWN, we uncapture it so it - * doesn't steal events from other widgets. */ - if (event->msg == MSG_MOUSE_DOWN && event->result.abort) - w->mouse.capture = FALSE; - - /* Upon releasing the mouse button: if the mouse hasn't been dragged - * since the MSG_MOUSE_DOWN, we also trigger a click. */ - if (event->msg == MSG_MOUSE_UP && w->mouse.last_msg == MSG_MOUSE_DOWN) - w->mouse_callback (w, MSG_MOUSE_CLICK, event); - - /* Record the current event type for the benefit of the next event. */ - w->mouse.last_msg = event->msg; - - if (!event->result.abort) - ret = event->result.repeat ? MOU_REPEAT : MOU_NORMAL; - } - - return ret; -} - - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** - * Translate GPM event to high-level event and process it - * - * @param w Widget object - * @param event GPM event - * - * @return result of mouse event handling - */ -int -mouse_handle_event (Widget *w, Gpm_Event *event) -{ - mouse_event_t me; - - me = mouse_translate_event (w, event); - - return mouse_process_event (w, &me); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/mouse.h b/recipes/wip/files/mc/source/lib/widget/mouse.h deleted file mode 100644 index 44e7b238b4..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/mouse.h +++ /dev/null @@ -1,65 +0,0 @@ -/** \file mouse.h - * \brief Header: Hight-level mouse API. - * - * This is a thin layer over the low-level mouse protocol in lib/tty/mouse.h. - * The latter is oblivious to the regions on the screen and is therefore a - * bit hard to use in widgets. This layer translates the low level Gpm_Event - * into something that's easy to work with in widgets. - */ - -#ifndef MC__WIDGET_MOUSE_H -#define MC__WIDGET_MOUSE_H - -#include "lib/tty/mouse.h" /* Gpm_Event */ - -/*** enums ***************************************************************************************/ - -/* Mouse messages */ -typedef enum -{ - /* - * Notes: - * (1) "anywhere" means "inside or outside the widget". - * (2) the mouse wheel is not considered "mouse button". - */ - MSG_MOUSE_NONE = 0, - MSG_MOUSE_DOWN = 1, /* When mouse button is pressed down inside the widget. */ - MSG_MOUSE_UP, /* When mouse button, previously pressed inside the widget, is released anywhere. */ - MSG_MOUSE_CLICK, /* When mouse button, previously pressed inside the widget, is released inside the widget. */ - MSG_MOUSE_DRAG, /* When a drag, initiated by button press inside the widget, occurs anywhere. */ - MSG_MOUSE_MOVE, /* (Not currently implemented in MC.) */ - MSG_MOUSE_SCROLL_UP, /* When mouse wheel is rotated away from the user. */ - MSG_MOUSE_SCROLL_DOWN /* When mouse wheel is rotated towards the user. */ -} mouse_msg_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/* Mouse event structure. */ -typedef struct -{ - mouse_msg_t msg; - - int x, y; /* Local to the widget. */ - int buttons; /* Bitwise-or of: GPM_B_LEFT, GPM_B_MIDDLE, GPM_B_RIGHT */ - int count; /* One of: GPM_SINGLE, GPM_DOUBLE, GPM_TRIPLE */ - - /* A mechanism for the callback to report back: */ - struct - { - gboolean abort; - gboolean repeat; - } result; -} mouse_event_t; - -/*** typedefs(not structures) and defined constants **********************************************/ - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/* Translate GPM event to high-level event and process it */ -int mouse_handle_event (Widget * w, Gpm_Event * event); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_MOUSE_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/quick.c b/recipes/wip/files/mc/source/lib/widget/quick.c deleted file mode 100644 index 5a4bf79857..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/quick.c +++ /dev/null @@ -1,633 +0,0 @@ -/* - Widget based utility functions. - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Miguel de Icaza, 1994, 1995, 1996 - Radek Doulik, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1995 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file quick.c - * \brief Source: quick dialog engine - */ - -#include - -#include -#include /* fprintf() */ - -#include "lib/global.h" -#include "lib/strutil.h" /* str_term_width1() */ -#include "lib/util.h" /* tilde_expand() */ -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -#ifdef ENABLE_NLS -#define I18N(x) (x = x != NULL && *x != '\0' ? _(x) : x) -#else -#define I18N(x) (x = x) -#endif - -/*** file scope type declarations ****************************************************************/ - -typedef struct -{ - Widget *widget; - quick_widget_t *quick_widget; -} quick_widget_item_t; - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static WInput * -quick_create_input (int y, int x, const quick_widget_t *qw) -{ - WInput *in; - - in = input_new (y, x, input_colors, 8, qw->u.input.text, qw->u.input.histname, - qw->u.input.completion_flags); - - in->is_password = qw->u.input.is_passwd; - in->strip_password = qw->u.input.strip_passwd; - - return in; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -quick_create_labeled_input (GArray *widgets, int *y, int x, quick_widget_t *quick_widget, - int *width) -{ - quick_widget_item_t in, label; - - label.quick_widget = g_new0 (quick_widget_t, 1); - label.quick_widget->widget_type = quick_label; - label.quick_widget->options = quick_widget->options; - label.quick_widget->state = quick_widget->state; - /* FIXME: this should be turned in depend of label_location */ - label.quick_widget->pos_flags = quick_widget->pos_flags; - - switch (quick_widget->u.input.label_location) - { - case input_label_above: - label.widget = WIDGET (label_new (*y, x, I18N (quick_widget->u.input.label_text))); - *y += label.widget->rect.lines - 1; - g_array_append_val (widgets, label); - - in.widget = WIDGET (quick_create_input (++(*y), x, quick_widget)); - in.quick_widget = quick_widget; - g_array_append_val (widgets, in); - - *width = MAX (label.widget->rect.cols, in.widget->rect.cols); - break; - - case input_label_left: - label.widget = WIDGET (label_new (*y, x, I18N (quick_widget->u.input.label_text))); - g_array_append_val (widgets, label); - - in.widget = WIDGET (quick_create_input (*y, x + label.widget->rect.cols + 1, quick_widget)); - in.quick_widget = quick_widget; - g_array_append_val (widgets, in); - - *width = label.widget->rect.cols + in.widget->rect.cols + 1; - break; - - case input_label_right: - in.widget = WIDGET (quick_create_input (*y, x, quick_widget)); - in.quick_widget = quick_widget; - g_array_append_val (widgets, in); - - label.widget = - WIDGET (label_new - (*y, x + in.widget->rect.cols + 1, I18N (quick_widget->u.input.label_text))); - g_array_append_val (widgets, label); - - *width = label.widget->rect.cols + in.widget->rect.cols + 1; - break; - - case input_label_below: - in.widget = WIDGET (quick_create_input (*y, x, quick_widget)); - in.quick_widget = quick_widget; - g_array_append_val (widgets, in); - - label.widget = WIDGET (label_new (++(*y), x, I18N (quick_widget->u.input.label_text))); - *y += label.widget->rect.lines - 1; - g_array_append_val (widgets, label); - - *width = MAX (label.widget->rect.cols, in.widget->rect.cols); - break; - - default: - g_free (label.quick_widget); - return; - } - - INPUT (in.widget)->label = LABEL (label.widget); - /* cross references */ - label.quick_widget->u.label.input = in.quick_widget; - in.quick_widget->u.input.label = label.quick_widget; -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -int -quick_dialog_skip (quick_dialog_t *quick_dlg, int nskip) -{ - int len; - int blen = 0; - int x, y; /* current positions */ - int y1 = 0; /* bottom of 1st column in case of two columns */ - int y2 = -1; /* start of two columns */ - int width1 = 0; /* width of single column */ - int width2 = 0; /* width of each of two columns */ - gboolean have_groupbox = FALSE; - gboolean two_columns = FALSE; - gboolean put_buttons = FALSE; - - /* x position of 1st column is 3 */ - const int x1 = 3; - /* x position of 2nd column is 4 and it will be fixed later, after creation of all widgets */ - int x2 = 4; - - GArray *widgets; - size_t i; - quick_widget_t *quick_widget; - WGroupbox *g = NULL; - WDialog *dd; - GList *input_labels = NULL; /* Widgets not directly requested by the user. */ - int return_val; - - len = str_term_width1 (I18N (quick_dlg->title)) + 6; - quick_dlg->rect.cols = MAX (quick_dlg->rect.cols, len); - - y = 1; - x = x1; - - /* create widgets */ - widgets = g_array_sized_new (FALSE, FALSE, sizeof (quick_widget_item_t), 8); - - for (quick_widget = quick_dlg->widgets; quick_widget->widget_type != quick_end; quick_widget++) - { - quick_widget_item_t item = { NULL, quick_widget }; - int width = 0; - - switch (quick_widget->widget_type) - { - case quick_checkbox: - item.widget = - WIDGET (check_new - (++y, x, *quick_widget->u.checkbox.state, - I18N (quick_widget->u.checkbox.text))); - g_array_append_val (widgets, item); - width = item.widget->rect.cols; - if (g != NULL) - width += 2; - if (two_columns) - width2 = MAX (width2, width); - else - width1 = MAX (width1, width); - break; - - case quick_button: - /* single button */ - item.widget = WIDGET (button_new (++y, x, quick_widget->u.button.action, - quick_widget->u.button.action == B_ENTER ? - DEFPUSH_BUTTON : NORMAL_BUTTON, - I18N (quick_widget->u.button.text), - quick_widget->u.button.callback)); - g_array_append_val (widgets, item); - width = item.widget->rect.cols; - if (g != NULL) - width += 2; - if (two_columns) - width2 = MAX (width2, width); - else - width1 = MAX (width1, width); - break; - - case quick_input: - *quick_widget->u.input.result = NULL; - y++; - if (quick_widget->u.input.label_location != input_label_none) - { - quick_create_labeled_input (widgets, &y, x, quick_widget, &width); - input_labels = g_list_prepend (input_labels, quick_widget->u.input.label); - } - else - { - item.widget = WIDGET (quick_create_input (y, x, quick_widget)); - g_array_append_val (widgets, item); - width = item.widget->rect.cols; - } - if (g != NULL) - width += 2; - if (two_columns) - width2 = MAX (width2, width); - else - width1 = MAX (width1, width); - break; - - case quick_label: - item.widget = WIDGET (label_new (++y, x, I18N (quick_widget->u.label.text))); - g_array_append_val (widgets, item); - y += item.widget->rect.lines - 1; - width = item.widget->rect.cols; - if (g != NULL) - width += 2; - if (two_columns) - width2 = MAX (width2, width); - else - width1 = MAX (width1, width); - break; - - case quick_radio: - { - WRadio *r; - char **items = NULL; - - /* create the copy of radio_items to avoid mwmory leak */ - items = g_new (char *, quick_widget->u.radio.count + 1); - for (i = 0; i < (size_t) quick_widget->u.radio.count; i++) - items[i] = g_strdup (_(quick_widget->u.radio.items[i])); - items[i] = NULL; - - r = radio_new (++y, x, quick_widget->u.radio.count, (const char **) items); - r->pos = r->sel = *quick_widget->u.radio.value; - g_strfreev (items); - item.widget = WIDGET (r); - g_array_append_val (widgets, item); - y += item.widget->rect.lines - 1; - width = item.widget->rect.cols; - if (g != NULL) - width += 2; - if (two_columns) - width2 = MAX (width2, width); - else - width1 = MAX (width1, width); - } - break; - - case quick_start_groupbox: - I18N (quick_widget->u.groupbox.title); - len = str_term_width1 (quick_widget->u.groupbox.title); - g = groupbox_new (++y, x, 1, len + 4, quick_widget->u.groupbox.title); - item.widget = WIDGET (g); - g_array_append_val (widgets, item); - have_groupbox = TRUE; - break; - - case quick_stop_groupbox: - if (g != NULL) - { - Widget *w = WIDGET (g); - - y++; - w->rect.lines = y + 1 - w->rect.y; - g = NULL; - - g_array_append_val (widgets, item); - } - break; - - case quick_separator: - y++; - if (quick_widget->u.separator.line) - { - item.widget = WIDGET (hline_new (y, x, 1)); - g_array_append_val (widgets, item); - } - break; - - case quick_start_columns: - y2 = y; - g_array_append_val (widgets, item); - two_columns = TRUE; - break; - - case quick_next_column: - x = x2; - y1 = y; - y = y2; - break; - - case quick_stop_columns: - x = x1; - y = MAX (y1, y); - g_array_append_val (widgets, item); - two_columns = FALSE; - break; - - case quick_buttons: - /* start put several buttons in bottom line */ - if (quick_widget->u.separator.space) - { - y++; - - if (quick_widget->u.separator.line) - item.widget = WIDGET (hline_new (y, 1, -1)); - } - - g_array_append_val (widgets, item); - - /* several buttons in bottom line */ - y++; - quick_widget++; - for (; quick_widget->widget_type == quick_button; quick_widget++) - { - item.widget = WIDGET (button_new (y, x++, quick_widget->u.button.action, - quick_widget->u.button.action == B_ENTER ? - DEFPUSH_BUTTON : NORMAL_BUTTON, - I18N (quick_widget->u.button.text), - quick_widget->u.button.callback)); - item.quick_widget = quick_widget; - g_array_append_val (widgets, item); - blen += item.widget->rect.cols + 1; - } - - /* stop dialog build here */ - blen--; - quick_widget->widget_type = quick_end; - quick_widget--; - break; - - default: - break; - } - } - - /* adjust dialog width */ - quick_dlg->rect.cols = MAX (quick_dlg->rect.cols, blen + 6); - if (have_groupbox) - { - if (width1 != 0) - width1 += 2; - if (width2 != 0) - width2 += 2; - } - if (width2 == 0) - len = width1 + 6; - else - { - len = width2 * 2 + 7; - if (width1 != 0) - len = MAX (len, width1 + 6); - } - - quick_dlg->rect.cols = MAX (quick_dlg->rect.cols, len); - width1 = quick_dlg->rect.cols - 6; - width2 = (quick_dlg->rect.cols - 7) / 2; - - if (quick_dlg->rect.x == -1 || quick_dlg->rect.y == -1) - dd = dlg_create (TRUE, 0, 0, y + 3, quick_dlg->rect.cols, WPOS_CENTER | WPOS_TRYUP, FALSE, - dialog_colors, quick_dlg->callback, quick_dlg->mouse_callback, - quick_dlg->help, quick_dlg->title); - else - dd = dlg_create (TRUE, quick_dlg->rect.y, quick_dlg->rect.x, y + 3, quick_dlg->rect.cols, - WPOS_KEEP_DEFAULT, FALSE, dialog_colors, quick_dlg->callback, - quick_dlg->mouse_callback, quick_dlg->help, quick_dlg->title); - - /* add widgets into the dialog */ - x2 = x1 + width2 + 1; - g = NULL; - two_columns = FALSE; - x = (WIDGET (dd)->rect.cols - blen) / 2; - - for (i = 0; i < widgets->len; i++) - { - quick_widget_item_t *item; - int column_width; - WRect *r; - - item = &g_array_index (widgets, quick_widget_item_t, i); - column_width = two_columns ? width2 : width1; - - /* adjust widget width and x position */ - switch (item->quick_widget->widget_type) - { - case quick_label: - { - quick_widget_t *input = item->quick_widget->u.label.input; - - if (input != NULL && input->u.input.label_location == input_label_right) - { - /* location of this label will be adjusted later */ - break; - } - } - MC_FALLTHROUGH; - case quick_checkbox: - case quick_radio: - r = &item->widget->rect; - if (r->x != x1) - r->x = x2; - if (g != NULL) - r->x += 2; - break; - - case quick_button: - r = &item->widget->rect; - if (!put_buttons) - { - if (r->x != x1) - r->x = x2; - if (g != NULL) - r->x += 2; - } - else - { - r->x = x; - x += r->cols + 1; - } - break; - - case quick_input: - { - Widget *label = WIDGET (INPUT (item->widget)->label); - int width = column_width; - - if (g != NULL) - width -= 4; - - r = &item->widget->rect; - - switch (item->quick_widget->u.input.label_location) - { - case input_label_left: - /* label was adjusted before; adjust input line */ - r->x = label->rect.x + label->rect.cols + 1 - WIDGET (label->owner)->rect.x; - r->cols = width - label->rect.cols - 1; - break; - - case input_label_right: - if (r->x != x1) - r->x = x2; - if (g != NULL) - r->x += 2; - r->cols = width - label->rect.cols - 1; - label->rect.x = r->x + r->cols + 1; - break; - - default: - if (r->x != x1) - r->x = x2; - if (g != NULL) - r->x += 2; - r->cols = width; - break; - } - - /* forced update internal variables of input line */ - r->lines = 1; - widget_set_size_rect (item->widget, r); - } - break; - - case quick_start_groupbox: - g = GROUPBOX (item->widget); - r = &item->widget->rect; - if (r->x != x1) - r->x = x2; - r->cols = column_width; - break; - - case quick_stop_groupbox: - g = NULL; - break; - - case quick_separator: - if (item->widget != NULL) - { - r = &item->widget->rect; - - if (g != NULL) - { - Widget *wg = WIDGET (g); - - HLINE (item->widget)->auto_adjust_cols = FALSE; - r->x = wg->rect.x + 1 - WIDGET (wg->owner)->rect.x; - r->cols = wg->rect.cols; - } - else if (two_columns) - { - HLINE (item->widget)->auto_adjust_cols = FALSE; - if (r->x != x1) - r->x = x2; - r->x--; - r->cols = column_width + 2; - } - else - HLINE (item->widget)->auto_adjust_cols = TRUE; - } - break; - - case quick_start_columns: - two_columns = TRUE; - break; - - case quick_stop_columns: - two_columns = FALSE; - break; - - case quick_buttons: - /* several buttons in bottom line */ - put_buttons = TRUE; - break; - - default: - break; - } - - if (item->widget != NULL) - { - unsigned long id; - - /* add widget into dialog */ - item->widget->options |= item->quick_widget->options; /* FIXME: cannot reset flags, setup only */ - item->widget->state |= item->quick_widget->state; /* FIXME: cannot reset flags, setup only */ - id = group_add_widget_autopos (GROUP (dd), item->widget, item->quick_widget->pos_flags, - NULL); - if (item->quick_widget->id != NULL) - *item->quick_widget->id = id; - } - } - - /* skip frame widget */ - if (dd->bg != NULL) - nskip++; - - while (nskip-- != 0) - group_set_current_widget_next (GROUP (dd)); - - return_val = dlg_run (dd); - - /* Get the data if we found something interesting */ - if (return_val != B_CANCEL) - for (i = 0; i < widgets->len; i++) - { - quick_widget_item_t *item; - - item = &g_array_index (widgets, quick_widget_item_t, i); - - switch (item->quick_widget->widget_type) - { - case quick_checkbox: - *item->quick_widget->u.checkbox.state = CHECK (item->widget)->state; - break; - - case quick_input: - if ((item->quick_widget->u.input.completion_flags & INPUT_COMPLETE_CD) != 0) - *item->quick_widget->u.input.result = - tilde_expand (input_get_ctext (INPUT (item->widget))); - else - *item->quick_widget->u.input.result = input_get_text (INPUT (item->widget)); - break; - - case quick_radio: - *item->quick_widget->u.radio.value = RADIO (item->widget)->sel; - break; - - default: - break; - } - } - - widget_destroy (WIDGET (dd)); - - g_list_free_full (input_labels, g_free); /* destroy input labels created before */ - g_array_free (widgets, TRUE); - - return return_val; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/quick.h b/recipes/wip/files/mc/source/lib/widget/quick.h deleted file mode 100644 index 4f8abccb5c..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/quick.h +++ /dev/null @@ -1,354 +0,0 @@ -/** \file quick.h - * \brief Header: quick dialog engine - */ - -#ifndef MC__QUICK_H -#define MC__QUICK_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define QUICK_CHECKBOX(txt, st, id_) \ -{ \ - .widget_type = quick_checkbox, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = id_, \ - .u = { \ - .checkbox = { \ - .text = txt, \ - .state = st \ - } \ - } \ -} - -#define QUICK_BUTTON(txt, act, cb, id_) \ -{ \ - .widget_type = quick_button, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = id_, \ - .u = { \ - .button = { \ - .text = txt, \ - .action = act, \ - .callback = cb \ - } \ - } \ -} - -#define QUICK_INPUT(txt, hname, res, id_, is_passwd_, strip_passwd_, completion_flags_) \ -{ \ - .widget_type = quick_input, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = id_, \ - .u = { \ - .input = { \ - .label_text = NULL, \ - .label_location = input_label_none, \ - .label = NULL, \ - .text = txt, \ - .completion_flags = completion_flags_, \ - .is_passwd = is_passwd_, \ - .strip_passwd = strip_passwd_, \ - .histname = hname, \ - .result = res \ - } \ - } \ -} - -#define QUICK_LABELED_INPUT(label_, label_loc, txt, hname, res, id_, is_passwd_, strip_passwd_, completion_flags_) \ -{ \ - .widget_type = quick_input, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = id_, \ - .u = { \ - .input = { \ - .label_text = label_, \ - .label_location = label_loc, \ - .label = NULL, \ - .text = txt, \ - .completion_flags = completion_flags_, \ - .is_passwd = is_passwd_, \ - .strip_passwd = strip_passwd_, \ - .histname = hname, \ - .result = res \ - } \ - } \ -} - -#define QUICK_LABEL(txt, id_) \ -{ \ - .widget_type = quick_label, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = id_, \ - .u = { \ - .label = { \ - .text = txt, \ - .input = NULL \ - } \ - } \ -} - -#define QUICK_RADIO(cnt, items_, val, id_) \ -{ \ - .widget_type = quick_radio, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = id_, \ - .u = { \ - .radio = { \ - .count = cnt, \ - .items = items_, \ - .value = val \ - } \ - } \ -} - -#define QUICK_START_GROUPBOX(t) \ -{ \ - .widget_type = quick_start_groupbox, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = NULL, \ - .u = { \ - .groupbox = { \ - .title = t \ - } \ - } \ -} - -#define QUICK_STOP_GROUPBOX \ -{ \ - .widget_type = quick_stop_groupbox, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = NULL, \ - .u = { \ - .input = { \ - .text = NULL, \ - .histname = NULL, \ - .result = NULL \ - } \ - } \ -} - -#define QUICK_SEPARATOR(line_) \ -{ \ - .widget_type = quick_separator, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = NULL, \ - .u = { \ - .separator = { \ - .space = TRUE, \ - .line = line_ \ - } \ - } \ -} - -#define QUICK_START_COLUMNS \ -{ \ - .widget_type = quick_start_columns, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = NULL, \ - .u = { \ - .input = { \ - .text = NULL, \ - .histname = NULL, \ - .result = NULL \ - } \ - } \ -} - -#define QUICK_NEXT_COLUMN \ -{ \ - .widget_type = quick_next_column, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = NULL, \ - .u = { \ - .input = { \ - .text = NULL, \ - .histname = NULL, \ - .result = NULL \ - } \ - } \ -} - -#define QUICK_STOP_COLUMNS \ -{ \ - .widget_type = quick_stop_columns, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = NULL, \ - .u = { \ - .input = { \ - .text = NULL, \ - .histname = NULL, \ - .result = NULL \ - } \ - } \ -} - -#define QUICK_START_BUTTONS(space_, line_) \ -{ \ - .widget_type = quick_buttons, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = NULL, \ - .u = { \ - .separator = { \ - .space = space_, \ - .line = line_ \ - } \ - } \ -} - -#define QUICK_BUTTONS_OK_CANCEL \ - QUICK_START_BUTTONS (TRUE, TRUE), \ - QUICK_BUTTON (N_("&OK"), B_ENTER, NULL, NULL), \ - QUICK_BUTTON (N_("&Cancel"), B_CANCEL, NULL, NULL) - -#define QUICK_END \ -{ \ - .widget_type = quick_end, \ - .options = WOP_DEFAULT, \ - .pos_flags = WPOS_KEEP_DEFAULT, \ - .id = NULL, \ - .u = { \ - .input = { \ - .text = NULL, \ - .histname = NULL, \ - .result = NULL \ - } \ - } \ -} - -/*** enums ***************************************************************************************/ - -/* Quick Widgets */ -typedef enum -{ - quick_end = 0, - quick_checkbox = 1, - quick_button = 2, - quick_input = 3, - quick_label = 4, - quick_radio = 5, - quick_start_groupbox = 6, - quick_stop_groupbox = 7, - quick_separator = 8, - quick_start_columns = 9, - quick_next_column = 10, - quick_stop_columns = 11, - quick_buttons = 12 -} quick_t; - -typedef enum -{ - input_label_none = 0, - input_label_above = 1, - input_label_left = 2, - input_label_right = 3, - input_label_below = 4 -} quick_input_label_location_t; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/* The widget is placed on relative_?/divisions_? of the parent widget */ -typedef struct quick_widget_t quick_widget_t; - -struct quick_widget_t -{ - quick_t widget_type; - - widget_options_t options; - widget_state_t state; - widget_pos_flags_t pos_flags; - unsigned long *id; - - /* widget parameters */ - union - { - struct - { - const char *text; - gboolean *state; /* in/out */ - } checkbox; - - struct - { - const char *text; - int action; - bcback_fn callback; - } button; - - struct - { - const char *label_text; - quick_input_label_location_t label_location; - quick_widget_t *label; - const char *text; - input_complete_t completion_flags; - gboolean is_passwd; /* TRUE -- is password */ - gboolean strip_passwd; - const char *histname; - char **result; - } input; - - struct - { - const char *text; - quick_widget_t *input; - } label; - - struct - { - int count; - const char **items; - int *value; /* in/out */ - } radio; - - struct - { - const char *title; - } groupbox; - - struct - { - gboolean space; - gboolean line; - } separator; - } u; -}; - -typedef struct -{ - WRect rect; /* if rect.x == -1 or rect.y == -1, then dialog is ceneterd; - * rect.lines is unused and ignored */ - const char *title; - const char *help; - quick_widget_t *widgets; - widget_cb_fn callback; - widget_mouse_cb_fn mouse_callback; -} quick_dialog_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -int quick_dialog_skip (quick_dialog_t * quick_dlg, int nskip); - -/*** inline functions ****************************************************************************/ - -static inline int -quick_dialog (quick_dialog_t *quick_dlg) -{ - return quick_dialog_skip (quick_dlg, 1); -} - -#endif /* MC__QUICK_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/radio.c b/recipes/wip/files/mc/source/lib/widget/radio.c deleted file mode 100644 index 19f6ab4a2d..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/radio.c +++ /dev/null @@ -1,251 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file radio.c - * \brief Source: WRadui widget (radiobuttons) - */ - -#include - -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -const global_keymap_t *radio_map = NULL; - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -radio_execute_cmd (WRadio *r, long command) -{ - cb_ret_t ret = MSG_HANDLED; - Widget *w = WIDGET (r); - - switch (command) - { - case CK_Up: - case CK_Top: - if (r->pos == 0) - return MSG_NOT_HANDLED; - - if (command == CK_Top) - r->pos = 0; - else - r->pos--; - widget_draw (w); - return MSG_HANDLED; - - case CK_Down: - case CK_Bottom: - if (r->pos == r->count - 1) - return MSG_NOT_HANDLED; - - if (command == CK_Bottom) - r->pos = r->count - 1; - else - r->pos++; - widget_draw (w); - return MSG_HANDLED; - - case CK_Select: - r->sel = r->pos; - widget_set_state (w, WST_FOCUSED, TRUE); /* Also draws the widget */ - send_message (w->owner, w, MSG_NOTIFY, 0, NULL); - return MSG_HANDLED; - - default: - ret = MSG_NOT_HANDLED; - break; - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Return MSG_HANDLED if we want a redraw */ -static cb_ret_t -radio_key (WRadio *r, int key) -{ - long command; - - command = widget_lookup_key (WIDGET (r), key); - if (command == CK_IgnoreKey) - return MSG_NOT_HANDLED; - return radio_execute_cmd (r, command); -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -radio_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WRadio *r = RADIO (w); - int i; - - switch (msg) - { - case MSG_HOTKEY: - for (i = 0; i < r->count; i++) - { - if (r->texts[i].hotkey != NULL) - { - int c; - - c = g_ascii_tolower ((gchar) r->texts[i].hotkey[0]); - if (c != parm) - continue; - r->pos = i; - - /* Take action */ - send_message (w, sender, MSG_ACTION, CK_Select, data); - return MSG_HANDLED; - } - } - return MSG_NOT_HANDLED; - - case MSG_KEY: - return radio_key (r, parm); - - case MSG_ACTION: - return radio_execute_cmd (r, parm); - - case MSG_CURSOR: - widget_gotoyx (r, r->pos, 1); - return MSG_HANDLED; - - case MSG_DRAW: - { - gboolean focused; - - focused = widget_get_state (w, WST_FOCUSED); - - for (i = 0; i < r->count; i++) - { - widget_selectcolor (w, i == r->pos && focused, FALSE); - widget_gotoyx (w, i, 0); - tty_draw_hline (w->rect.y + i, w->rect.x, ' ', w->rect.cols); - tty_print_string ((r->sel == i) ? "(*) " : "( ) "); - hotkey_draw (w, r->texts[i], i == r->pos && focused); - } - - return MSG_HANDLED; - } - - case MSG_DESTROY: - for (i = 0; i < r->count; i++) - hotkey_free (r->texts[i]); - g_free (r->texts); - return MSG_HANDLED; - - default: - return widget_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -radio_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) -{ - switch (msg) - { - case MSG_MOUSE_DOWN: - RADIO (w)->pos = event->y; - widget_select (w); - break; - - case MSG_MOUSE_CLICK: - RADIO (w)->pos = event->y; - send_message (w, NULL, MSG_ACTION, CK_Select, NULL); - send_message (w->owner, w, MSG_POST_KEY, ' ', NULL); - break; - - default: - break; - } -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -WRadio * -radio_new (int y, int x, int count, const char **texts) -{ - WRect r0 = { y, x, count, 1 }; - WRadio *r; - Widget *w; - int i, wmax = 0; - - r = g_new (WRadio, 1); - w = WIDGET (r); - - /* Compute the longest string */ - r->texts = g_new (hotkey_t, count); - - for (i = 0; i < count; i++) - { - int width; - - r->texts[i] = hotkey_new (texts[i]); - width = hotkey_width (r->texts[i]); - wmax = MAX (width, wmax); - } - - /* 4 is width of "(*) " */ - r0.cols = 4 + wmax; - widget_init (w, &r0, radio_callback, radio_mouse_callback); - w->options |= WOP_SELECTABLE | WOP_WANT_CURSOR | WOP_WANT_HOTKEY; - w->keymap = radio_map; - - r->pos = 0; - r->sel = 0; - r->count = count; - - return r; -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/radio.h b/recipes/wip/files/mc/source/lib/widget/radio.h deleted file mode 100644 index 5b52382cbf..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/radio.h +++ /dev/null @@ -1,38 +0,0 @@ - -/** \file radio.h - * \brief Header: WRadio widget - */ - -#ifndef MC__WIDGET_RADIO_H -#define MC__WIDGET_RADIO_H - -#include "lib/keybind.h" /* global_keymap_t */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define RADIO(x) ((WRadio *)(x)) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -typedef struct WRadio -{ - Widget widget; - int pos; - int sel; - int count; /* number of members */ - hotkey_t *texts; /* texts of labels */ -} WRadio; - -/*** global variables defined in .c file *********************************************************/ - -extern const global_keymap_t *radio_map; - -/*** declarations of public functions ************************************************************/ - -WRadio *radio_new (int y, int x, int count, const char **text); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_RADIO_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/rect.c b/recipes/wip/files/mc/source/lib/widget/rect.c deleted file mode 100644 index e9b10990c4..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/rect.c +++ /dev/null @@ -1,253 +0,0 @@ -/* Rectangular class for Midnight Commander widgets - - Copyright (C) 2020-2025 - The Free Software Foundation, Inc. - - Written by: - Andrew Borodin , 2020-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file widget-common.c - * \brief Source: shared stuff of widgets - */ - -#include - -#include - -#include "lib/global.h" - -#include "rect.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** file scope variables ************************************************************************/ - -/*** file scope functions ************************************************************************/ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ -/** - * Create new WRect object. - * - * @param y y-coordinate of left-up corner - * @param x x-coordinate of left-up corner - * @param lines height - * @param cols width - * - * @return newly allocated WRect object. - */ - -WRect * -rect_new (int y, int x, int lines, int cols) -{ - WRect *r; - - r = g_try_new (WRect, 1); - - if (r != NULL) - rect_init (r, y, x, lines, cols); - - return r; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Initialize WRect object. - * - * @param r WRect object - * @param y y-coordinate of left-up corner - * @param x x-coordinate of left-up corner - * @param lines height - * @param cols width - */ - -void -rect_init (WRect *r, int y, int x, int lines, int cols) -{ - r->y = y; - r->x = x; - r->lines = lines; - r->cols = cols; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Change position of rectangle area. - * - * @param r WRect object - * @param dy y-shift of left-up corner - * @param dx x-shift of left-up corner - */ - -void -rect_move (WRect *r, int dy, int dx) -{ - r->y += dy; - r->x += dx; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Change size of rectangle area keeping it's position. - * - * @param r WRect object - * @param dl change size value of height - * @param dc change size value of width - */ - -void -rect_resize (WRect *r, int dl, int dc) -{ - r->lines += dl; - r->cols += dc; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Change size of rectangle area keeping it's center. - * - * @param r WRect object - * @param dl change size value of y-coordinate and height - * Positive value means move up and increase height. - * Negative value means move down and decrease height. - * @param dc change size value of x-coordinate and width - * Positive value means move left and increase width. - * Negative value means move right and decrease width. - */ - -void -rect_grow (WRect *r, int dl, int dc) -{ - r->y -= dl; - r->x -= dc; - r->lines += dl * 2; - r->cols += dc * 2; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Calculates the intersection of two rectangle areas. - * The resulting rectangle is the largest rectangle which contains intersection of rectangle areas. - * - * @param r first WRect object - * @param r1 second WRect object - * - * The resulting rectangle is stored in r. - */ - -void -rect_intersect (WRect *r, const WRect *r1) -{ - int y, x; - int y1, x1; - - /* right-down corners */ - y = r->y + r->lines; - x = r->x + r->cols; - y1 = r1->y + r1->lines; - x1 = r1->x + r1->cols; - - /* right-down corner of intersection */ - y = MIN (y, y1); - x = MIN (x, x1); - - /* left-up corner of intersection */ - r->y = MAX (r->y, r1->y); - r->x = MAX (r->x, r1->x); - - /* intersection sizes */ - r->lines = y - r->y; - r->cols = x - r->x; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Calculates the union of two rectangle areas. - * The resulting rectangle is the largest rectangle which contains both rectangle areas. - * - * @param r first WRect object - * @param r1 second WRect object - * - * The resulting rectangle is stored in r. - */ - -void -rect_union (WRect *r, const WRect *r1) -{ - int x, y; - int x1, y1; - - /* right-down corners */ - y = r->y + r->lines; - x = r->x + r->cols; - y1 = r1->y + r1->lines; - x1 = r1->x + r1->cols; - - /* right-down corner of union */ - y = MAX (y, y1); - x = MAX (x, x1); - - /* left-up corner of union */ - r->y = MIN (r->y, r1->y); - r->x = MIN (r->x, r1->x); - - /* union sizes */ - r->lines = y - r->y; - r->cols = x - r->x; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Check whether two rectangle areas are overlapped or not. - * - * @param r1 WRect object - * @param r2 WRect object - * - * @return TRUE if rectangle areas are overlapped, FALSE otherwise. - */ - -gboolean -rects_are_overlapped (const WRect *r1, const WRect *r2) -{ - return !((r2->x >= r1->x + r1->cols) || (r1->x >= r2->x + r2->cols) - || (r2->y >= r1->y + r1->lines) || (r1->y >= r2->y + r2->lines)); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Check whether two rectangle areas are equal or not. - * - * @param r1 WRect object - * @param r2 WRect object - * - * @return TRUE if rectangle areas are equal, FALSE otherwise. - */ - -gboolean -rects_are_equal (const WRect *r1, const WRect *r2) -{ - return (r1->y == r2->y && r1->x == r2->x && r1->lines == r2->lines && r1->cols == r2->cols); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/rect.h b/recipes/wip/files/mc/source/lib/widget/rect.h deleted file mode 100644 index ca85968b3f..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/rect.h +++ /dev/null @@ -1,45 +0,0 @@ - -/** \file rect.h - * \brief Header: rectangular class - */ - -#ifndef MC__WIDGET_RECT_H -#define MC__WIDGET_RECT_H - -/*** typedefs (not structures) and defined constants *********************************************/ - -#define RECT(x) ((WRect *)(x)) -#define CONST_RECT(x) ((const WRect *)(x)) - -/*** enums ***************************************************************************************/ - -/*** structures declarations (and typedefs of structures) ****************************************/ - -struct WRect; -typedef struct WRect WRect; - -struct WRect -{ - int y; - int x; - int lines; - int cols; -}; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -WRect *rect_new (int y, int x, int lines, int cols); -void rect_init (WRect * r, int y, int x, int lines, int cols); -void rect_move (WRect * r, int dy, int dx); -void rect_resize (WRect * r, int dl, int dc); -void rect_grow (WRect * r, int dl, int dc); -void rect_intersect (WRect * r, const WRect * r1); -void rect_union (WRect * r, const WRect * r1); -gboolean rects_are_overlapped (const WRect * r1, const WRect * r2); -gboolean rects_are_equal (const WRect * r1, const WRect * r2); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WIDGET_RECT_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/widget-common.c b/recipes/wip/files/mc/source/lib/widget/widget-common.c deleted file mode 100644 index 6bf975817f..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/widget-common.c +++ /dev/null @@ -1,905 +0,0 @@ -/* - Widgets for the Midnight Commander - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Radek Doulik, 1994, 1995 - Miguel de Icaza, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1996 - Norbert Warmuth, 1997 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file widget-common.c - * \brief Source: shared stuff of widgets - */ - -#include - -#include -#include - -#include "lib/global.h" - -#include "lib/tty/tty.h" -#include "lib/tty/color.h" -#include "lib/skin.h" -#include "lib/strutil.h" -#include "lib/widget.h" - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -/* maximum value of used widget ID */ -static unsigned long widget_id = 0; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** - * Calc widget ID, - * Widget ID is uniq for each widget created during MC session (like PID in OS). - * - * @return widget ID. - */ -static unsigned long -widget_set_id (void) -{ - unsigned long id; - - id = widget_id++; - /* TODO IF NEEDED: if id is already used, find next free id. */ - - return id; -} - -/* --------------------------------------------------------------------------------------------- */ - -static cb_ret_t -widget_default_resize (Widget *w, const WRect *r) -{ - if (r == NULL) - return MSG_NOT_HANDLED; - - w->rect = *r; - - return MSG_HANDLED; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -widget_do_focus (Widget *w, gboolean enable) -{ - if (w != NULL && widget_get_state (WIDGET (w->owner), WST_VISIBLE | WST_FOCUSED)) - widget_set_state (w, WST_FOCUSED, enable); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Focus specified widget in it's owner. - * - * @param w widget to be focused. - */ - -static void -widget_focus (Widget *w) -{ - WGroup *g = w->owner; - - if (g == NULL || g->current == NULL) - return; - - if (WIDGET (g->current->data) != w) - { - widget_do_focus (WIDGET (g->current->data), FALSE); - /* Test if focus lost was allowed and focus has really been loose */ - if (g->current == NULL || !widget_get_state (WIDGET (g->current->data), WST_FOCUSED)) - { - widget_do_focus (w, TRUE); - g->current = widget_find (WIDGET (g), w); - } - } - else if (!widget_get_state (w, WST_FOCUSED)) - widget_do_focus (w, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Put widget on top or bottom of Z-order. - */ -static void -widget_reorder (GList *l, gboolean set_top) -{ - WGroup *g = WIDGET (l->data)->owner; - - g->widgets = g_list_remove_link (g->widgets, l); - if (set_top) - g->widgets = g_list_concat (g->widgets, l); - else - g->widgets = g_list_concat (l, g->widgets); -} - -/* --------------------------------------------------------------------------------------------- */ - -static gboolean -hotkey_cmp (const char *s1, const char *s2) -{ - gboolean n1, n2; - - n1 = s1 != NULL; - n2 = s2 != NULL; - - if (n1 != n2) - return FALSE; - - if (n1 && n2 && strcmp (s1, s2) != 0) - return FALSE; - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ - -static void -widget_default_mouse_callback (Widget *w, mouse_msg_t msg, mouse_event_t *event) -{ - /* do nothing */ - (void) w; - (void) msg; - (void) event; -} - -/* --------------------------------------------------------------------------------------------- */ - -static const int * -widget_default_get_colors (const Widget *w) -{ - const Widget *owner = CONST_WIDGET (w->owner); - - return (owner == NULL ? NULL : widget_get_colors (owner)); -} - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -struct hotkey_t -hotkey_new (const char *text) -{ - hotkey_t result; - const char *cp, *p; - - if (text == NULL) - text = ""; - - /* search for '&', that is not on the of text */ - cp = strchr (text, '&'); - if (cp != NULL && cp[1] != '\0') - { - result.start = g_strndup (text, cp - text); - - /* skip '&' */ - cp++; - p = str_cget_next_char (cp); - result.hotkey = g_strndup (cp, p - cp); - - cp = p; - result.end = g_strdup (cp); - } - else - { - result.start = g_strdup (text); - result.hotkey = NULL; - result.end = NULL; - } - - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -hotkey_free (const hotkey_t hotkey) -{ - g_free (hotkey.start); - g_free (hotkey.hotkey); - g_free (hotkey.end); -} - -/* --------------------------------------------------------------------------------------------- */ - -int -hotkey_width (const hotkey_t hotkey) -{ - int result; - - result = str_term_width1 (hotkey.start); - result += (hotkey.hotkey != NULL) ? str_term_width1 (hotkey.hotkey) : 0; - result += (hotkey.end != NULL) ? str_term_width1 (hotkey.end) : 0; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -hotkey_equal (const hotkey_t hotkey1, const hotkey_t hotkey2) -{ - /* *INDENT-OFF* */ - return (strcmp (hotkey1.start, hotkey2.start) == 0) && - hotkey_cmp (hotkey1.hotkey, hotkey2.hotkey) && - hotkey_cmp (hotkey1.end, hotkey2.end); - /* *INDENT-ON* */ -} - -/* --------------------------------------------------------------------------------------------- */ - -void -hotkey_draw (const Widget *w, const hotkey_t hotkey, gboolean focused) -{ - if (hotkey.start[0] != '\0') - { - widget_selectcolor (w, focused, FALSE); - tty_print_string (hotkey.start); - } - - if (hotkey.hotkey != NULL) - { - widget_selectcolor (w, focused, TRUE); - tty_print_string (hotkey.hotkey); - } - - if (hotkey.end != NULL) - { - widget_selectcolor (w, focused, FALSE); - tty_print_string (hotkey.end); - } -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -hotkey_get_text (const hotkey_t hotkey) -{ - GString *text; - - text = g_string_new (hotkey.start); - - if (hotkey.hotkey != NULL) - { - g_string_append_c (text, '&'); - g_string_append (text, hotkey.hotkey); - } - - if (hotkey.end != NULL) - g_string_append (text, hotkey.end); - - return g_string_free (text, FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -widget_init (Widget *w, const WRect *r, widget_cb_fn callback, widget_mouse_cb_fn mouse_callback) -{ - w->id = widget_set_id (); - w->rect = *r; - w->pos_flags = WPOS_KEEP_DEFAULT; - w->callback = callback; - - w->keymap = NULL; - w->ext_keymap = NULL; - w->ext_mode = FALSE; - - w->mouse_callback = mouse_callback != NULL ? mouse_callback : widget_default_mouse_callback; - w->owner = NULL; - w->mouse_handler = mouse_handle_event; - w->mouse.forced_capture = FALSE; - w->mouse.capture = FALSE; - w->mouse.last_msg = MSG_MOUSE_NONE; - w->mouse.last_buttons_down = 0; - - w->options = WOP_DEFAULT; - w->state = WST_CONSTRUCT | WST_VISIBLE; - - w->make_global = widget_default_make_global; - w->make_local = widget_default_make_local; - - w->find = widget_default_find; - w->find_by_type = widget_default_find_by_type; - w->find_by_id = widget_default_find_by_id; - - w->set_state = widget_default_set_state; - w->destroy = widget_default_destroy; - w->get_colors = widget_default_get_colors; -} - -/* --------------------------------------------------------------------------------------------- */ - -/* Default callback for widgets */ -cb_ret_t -widget_default_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - (void) sender; - (void) parm; - - switch (msg) - { - case MSG_INIT: - case MSG_FOCUS: - case MSG_UNFOCUS: - case MSG_ENABLE: - case MSG_DISABLE: - case MSG_DRAW: - case MSG_DESTROY: - case MSG_CURSOR: - case MSG_IDLE: - return MSG_HANDLED; - - case MSG_RESIZE: - return widget_default_resize (w, CONST_RECT (data)); - - default: - return MSG_NOT_HANDLED; - } -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Apply new options to widget. - * - * @param w widget - * @param options widget option flags to modify. Several flags per call can be modified. - * @param enable TRUE if specified options should be added, FALSE if options should be removed - */ -void -widget_set_options (Widget *w, widget_options_t options, gboolean enable) -{ - if (enable) - w->options |= options; - else - w->options &= ~options; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -widget_adjust_position (widget_pos_flags_t pos_flags, WRect *r) -{ - if ((pos_flags & WPOS_FULLSCREEN) != 0) - { - r->y = 0; - r->x = 0; - r->lines = LINES; - r->cols = COLS; - } - else - { - if ((pos_flags & WPOS_CENTER_HORZ) != 0) - r->x = (COLS - r->cols) / 2; - - if ((pos_flags & WPOS_CENTER_VERT) != 0) - r->y = (LINES - r->lines) / 2; - - if ((pos_flags & WPOS_TRYUP) != 0) - { - if (r->y > 3) - r->y -= 2; - else if (r->y == 3) - r->y = 2; - } - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Change widget position and size. - * - * @param w widget - * @param y y coordinate of top-left corner - * @param x x coordinate of top-left corner - * @param lines width - * @param cols height - */ - -void -widget_set_size (Widget *w, int y, int x, int lines, int cols) -{ - WRect r = { y, x, lines, cols }; - - send_message (w, NULL, MSG_RESIZE, 0, &r); - widget_draw (w); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Change widget position and size. - * - * @param w widget - * @param r WRect object that holds position and size - */ - -void -widget_set_size_rect (Widget *w, WRect *r) -{ - send_message (w, NULL, MSG_RESIZE, 0, r); - widget_draw (w); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -widget_selectcolor (const Widget *w, gboolean focused, gboolean hotkey) -{ - int color; - const int *colors; - - colors = widget_get_colors (w); - - if (widget_get_state (w, WST_DISABLED)) - color = DISABLED_COLOR; - else if (hotkey) - color = colors[focused ? DLG_COLOR_HOT_FOCUS : DLG_COLOR_HOT_NORMAL]; - else - color = colors[focused ? DLG_COLOR_FOCUS : DLG_COLOR_NORMAL]; - - tty_setcolor (color); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -widget_erase (Widget *w) -{ - if (w != NULL) - tty_fill_region (w->rect.y, w->rect.x, w->rect.lines, w->rect.cols, ' '); -} - -/* --------------------------------------------------------------------------------------------- */ - -void -widget_set_visibility (Widget *w, gboolean make_visible) -{ - if (widget_get_state (w, WST_VISIBLE) != make_visible) - widget_set_state (w, WST_VISIBLE, make_visible); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Check whether widget is active or not. - * Widget is active if it's current in the its owner and each owner in the chain is current too. - * - * @param w the widget - * - * @return TRUE if the widget is active, FALSE otherwise - */ - -gboolean -widget_is_active (const void *w) -{ - const WGroup *owner; - - /* Is group top? */ - if (w == top_dlg->data) - return TRUE; - - owner = CONST_WIDGET (w)->owner; - - /* Is widget in any group? */ - if (owner == NULL) - return FALSE; - - if (w != owner->current->data) - return FALSE; - - return widget_is_active (owner); -} - -/* --------------------------------------------------------------------------------------------- */ - -cb_ret_t -widget_draw (Widget *w) -{ - cb_ret_t ret = MSG_NOT_HANDLED; - - if (w != NULL && widget_get_state (w, WST_VISIBLE)) - { - WGroup *g = w->owner; - - if (g != NULL && widget_get_state (WIDGET (g), WST_ACTIVE)) - ret = w->callback (w, NULL, MSG_DRAW, 0, NULL); - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Replace widget in the dialog. - * - * @param old_w old widget that need to be replaced - * @param new_w new widget that will replace @old_w - */ - -void -widget_replace (Widget *old_w, Widget *new_w) -{ - WGroup *g = old_w->owner; - gboolean should_focus = FALSE; - GList *holder; - - if (g->widgets == NULL) - return; - - if (g->current == NULL) - g->current = g->widgets; - - /* locate widget position in the list */ - if (old_w == g->current->data) - holder = g->current; - else - holder = g_list_find (g->widgets, old_w); - - /* if old widget is focused, we should focus the new one... */ - if (widget_get_state (old_w, WST_FOCUSED)) - should_focus = TRUE; - /* ...but if new widget isn't selectable, we cannot focus it */ - if (!widget_get_options (new_w, WOP_SELECTABLE)) - should_focus = FALSE; - - /* if new widget isn't selectable, select other widget before replace */ - if (!should_focus) - { - GList *l; - - for (l = group_get_widget_next_of (holder); - !widget_is_focusable (WIDGET (l->data)) && l != holder; - l = group_get_widget_next_of (l)) - ; - - widget_select (WIDGET (l->data)); - } - - /* replace widget */ - new_w->owner = g; - new_w->id = old_w->id; - holder->data = new_w; - - send_message (old_w, NULL, MSG_DESTROY, 0, NULL); - send_message (new_w, NULL, MSG_INIT, 0, NULL); - - if (should_focus) - widget_select (new_w); - else - widget_draw (new_w); -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -widget_is_focusable (const Widget *w) -{ - return (widget_get_options (w, WOP_SELECTABLE) && widget_get_state (w, WST_VISIBLE) && - !widget_get_state (w, WST_DISABLED)); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Select specified widget in it's owner. - * - * Note: this function (and widget_focus(), which it calls) is a no-op - * if the widget is already selected. - * - * @param w widget to be selected - */ - -void -widget_select (Widget *w) -{ - WGroup *g; - - if (!widget_get_options (w, WOP_SELECTABLE)) - return; - - g = GROUP (w->owner); - if (g != NULL) - { - if (widget_get_options (w, WOP_TOP_SELECT)) - { - GList *l; - - l = widget_find (WIDGET (g), w); - widget_reorder (l, TRUE); - } - - widget_focus (w); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Set widget at bottom of widget list. - */ - -void -widget_set_bottom (Widget *w) -{ - widget_reorder (widget_find (WIDGET (w->owner), w), FALSE); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Look up key event of widget and translate it to command ID. - * @param w widget - * @param key key event - * - * @return command ID binded with @key. - */ - -long -widget_lookup_key (Widget *w, int key) -{ - if (w->ext_mode) - { - w->ext_mode = FALSE; - return keybind_lookup_keymap_command (w->ext_keymap, key); - } - - return keybind_lookup_keymap_command (w->keymap, key); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Default widget callback to convert widget coordinates from local (relative to owner) to global - * (relative to screen). - * - * @param w widget - * @delta offset for top-left corner coordinates. Used for child widgets of WGroup - */ - -void -widget_default_make_global (Widget *w, const WRect *delta) -{ - if (delta != NULL) - rect_move (&w->rect, delta->y, delta->x); - else if (w->owner != NULL) - rect_move (&w->rect, WIDGET (w->owner)->rect.y, WIDGET (w->owner)->rect.x); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Default widget callback to convert widget coordinates from global (relative to screen) to local - * (relative to owner). - * - * @param w widget - * @delta offset for top-left corner coordinates. Used for child widgets of WGroup - */ - -void -widget_default_make_local (Widget *w, const WRect *delta) -{ - if (delta != NULL) - rect_move (&w->rect, -delta->y, -delta->x); - else if (w->owner != NULL) - rect_move (&w->rect, -WIDGET (w->owner)->rect.y, -WIDGET (w->owner)->rect.x); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Default callback function to find widget. - * - * @param w widget - * @param what widget to find - * - * @return holder of @what if widget is @what, NULL otherwise - */ - -GList * -widget_default_find (const Widget *w, const Widget *what) -{ - return (w != what - || w->owner == NULL) ? NULL : g_list_find (CONST_GROUP (w->owner)->widgets, what); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Default callback function to find widget by widget type using widget callback. - * - * @param w widget - * @param cb widget callback - * - * @return @w if widget callback is @cb, NULL otherwise - */ - -Widget * -widget_default_find_by_type (const Widget *w, widget_cb_fn cb) -{ - return (w->callback == cb ? WIDGET (w) : NULL); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Default callback function to find widget by widget ID. - * - * @param w widget - * @param id widget ID - * - * @return @w if widget id is equal to @id, NULL otherwise - */ - -Widget * -widget_default_find_by_id (const Widget *w, unsigned long id) -{ - return (w->id == id ? WIDGET (w) : NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Default callback function to modify state of widget. - * - * @param w widget - * @param state widget state flag to modify - * @param enable specifies whether to turn the flag on (TRUE) or off (FALSE). - * Only one flag per call can be modified. - * @return MSG_HANDLED if set was handled successfully, MSG_NOT_HANDLED otherwise. - */ - -cb_ret_t -widget_default_set_state (Widget *w, widget_state_t state, gboolean enable) -{ - gboolean ret = MSG_HANDLED; - Widget *owner = WIDGET (GROUP (w->owner)); - - if (enable) - w->state |= state; - else - w->state &= ~state; - - if (enable) - { - /* exclusive bits */ - switch (state) - { - case WST_CONSTRUCT: - w->state &= ~(WST_ACTIVE | WST_SUSPENDED | WST_CLOSED); - break; - case WST_ACTIVE: - w->state &= ~(WST_CONSTRUCT | WST_SUSPENDED | WST_CLOSED); - break; - case WST_SUSPENDED: - w->state &= ~(WST_CONSTRUCT | WST_ACTIVE | WST_CLOSED); - break; - case WST_CLOSED: - w->state &= ~(WST_CONSTRUCT | WST_ACTIVE | WST_SUSPENDED); - break; - default: - break; - } - } - - if (owner == NULL) - return MSG_NOT_HANDLED; - - switch (state) - { - case WST_VISIBLE: - if (widget_get_state (owner, WST_ACTIVE)) - { - /* redraw owner to show/hide widget */ - widget_draw (owner); - - if (!enable) - { - /* try select another widget if current one got hidden */ - if (w == GROUP (owner)->current->data) - group_select_next_widget (GROUP (owner)); - - widget_update_cursor (owner); /* FIXME: unneeded? */ - } - } - break; - - case WST_DISABLED: - ret = send_message (w, NULL, enable ? MSG_DISABLE : MSG_ENABLE, 0, NULL); - if (ret == MSG_HANDLED && widget_get_state (owner, WST_ACTIVE)) - ret = widget_draw (w); - break; - - case WST_FOCUSED: - { - widget_msg_t msg; - - msg = enable ? MSG_FOCUS : MSG_UNFOCUS; - ret = send_message (w, NULL, msg, 0, NULL); - if (ret == MSG_HANDLED && widget_get_state (owner, WST_ACTIVE)) - { - widget_draw (w); - /* Notify owner that focus was moved from one widget to another */ - send_message (owner, w, MSG_CHANGED_FOCUS, 0, NULL); - } - } - break; - - default: - break; - } - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Default callback function to destroy widget. - * - * @param w widget - */ - -void -widget_default_destroy (Widget *w) -{ - send_message (w, NULL, MSG_DESTROY, 0, NULL); - g_free (w); -} - -/* --------------------------------------------------------------------------------------------- */ -/* get mouse pointer location within widget */ - -Gpm_Event -mouse_get_local (const Gpm_Event *global, const Widget *w) -{ - Gpm_Event local; - - memset (&local, 0, sizeof (local)); - - local.buttons = global->buttons; - local.x = global->x - w->rect.x; - local.y = global->y - w->rect.y; - local.type = global->type; - - return local; -} - -/* --------------------------------------------------------------------------------------------- */ - -gboolean -mouse_global_in_widget (const Gpm_Event *event, const Widget *w) -{ - const WRect *r = &w->rect; - - return (event->x > r->x) && (event->y > r->y) && (event->x <= r->x + r->cols) - && (event->y <= r->y + r->lines); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/widget-common.h b/recipes/wip/files/mc/source/lib/widget/widget-common.h deleted file mode 100644 index a1d4e0ccd9..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/widget-common.h +++ /dev/null @@ -1,462 +0,0 @@ - -/** \file widget-common.h - * \brief Header: shared stuff of widgets - */ - -#ifndef MC__WIDGET_COMMON_H -#define MC__WIDGET_COMMON_H - -#include "lib/keybind.h" /* global_keymap_t */ -#include "lib/tty/mouse.h" -#include "lib/widget/mouse.h" /* mouse_msg_t, mouse_event_t */ - -/*** typedefs(not structures) and defined constants **********************************************/ - -#define WIDGET(x) ((Widget *)(x)) -#define CONST_WIDGET(x) ((const Widget *)(x)) - -#define widget_gotoyx(w, _y, _x) tty_gotoyx (CONST_WIDGET(w)->rect.y + (_y), CONST_WIDGET(w)->rect.x + (_x)) -/* Sets/clear the specified flag in the options field */ -#define widget_want_cursor(w,i) widget_set_options(w, WOP_WANT_CURSOR, i) -#define widget_want_hotkey(w,i) widget_set_options(w, WOP_WANT_HOTKEY, i) -#define widget_want_tab(w,i) widget_set_options(w, WOP_WANT_TAB, i) -#define widget_idle(w,i) widget_set_state(w, WST_IDLE, i) -#define widget_disable(w,i) widget_set_state(w, WST_DISABLED, i) - -/*** enums ***************************************************************************************/ - -/* Widget messages */ -typedef enum -{ - MSG_INIT = 0, /* Initialize widget */ - MSG_FOCUS, /* Draw widget in focused state or widget has got focus */ - MSG_UNFOCUS, /* Draw widget in unfocused state or widget has been unfocused */ - MSG_CHANGED_FOCUS, /* Notification to owner about focus state change */ - MSG_ENABLE, /* Change state to enabled */ - MSG_DISABLE, /* Change state to disabled */ - MSG_DRAW, /* Draw widget on screen */ - MSG_KEY, /* Sent to widgets on key press */ - MSG_HOTKEY, /* Sent to widget to catch preprocess key */ - MSG_HOTKEY_HANDLED, /* A widget has got the hotkey */ - MSG_UNHANDLED_KEY, /* Key that no widget handled */ - MSG_POST_KEY, /* The key has been handled */ - MSG_ACTION, /* Send to widget to handle command */ - MSG_NOTIFY, /* Typically sent to dialog to inform it of state-change - * of listboxes, check- and radiobuttons. */ - MSG_CURSOR, /* Sent to widget to position the cursor */ - MSG_IDLE, /* The idle state is active */ - MSG_RESIZE, /* Screen size has changed */ - MSG_VALIDATE, /* Dialog is to be closed */ - MSG_END, /* Shut down dialog */ - MSG_DESTROY /* Sent to widget at destruction time */ -} widget_msg_t; - -/* Widgets are expected to answer to the following messages: - MSG_FOCUS: MSG_HANDLED if the accept the focus, MSG_NOT_HANDLED if they do not. - MSG_UNFOCUS: MSG_HANDLED if they accept to release the focus, MSG_NOT_HANDLED if they don't. - MSG_KEY: MSG_HANDLED if they actually used the key, MSG_NOT_HANDLED if not. - MSG_HOTKEY: MSG_HANDLED if they actually used the key, MSG_NOT_HANDLED if not. - */ - -typedef enum -{ - MSG_NOT_HANDLED = 0, - MSG_HANDLED = 1 -} cb_ret_t; - -/* Widget options */ -typedef enum -{ - WOP_DEFAULT = (0 << 0), - WOP_WANT_HOTKEY = (1 << 0), - WOP_WANT_CURSOR = (1 << 1), - WOP_WANT_TAB = (1 << 2), /* Should the tab key be sent to the dialog? */ - WOP_IS_INPUT = (1 << 3), - WOP_SELECTABLE = (1 << 4), - WOP_TOP_SELECT = (1 << 5) -} widget_options_t; - -/* Widget state */ -typedef enum -{ - WST_DEFAULT = (0 << 0), - WST_VISIBLE = (1 << 0), /* Widget is visible */ - WST_DISABLED = (1 << 1), /* Widget cannot be selected */ - WST_IDLE = (1 << 2), - WST_MODAL = (1 << 3), /* Widget (dialog) is modal */ - WST_FOCUSED = (1 << 4), - - WST_CONSTRUCT = (1 << 15), /* Widget has been constructed but not run yet */ - WST_ACTIVE = (1 << 16), /* Dialog is visible and active */ - WST_SUSPENDED = (1 << 17), /* Dialog is suspended */ - WST_CLOSED = (1 << 18) /* Dialog is closed */ -} widget_state_t; - -/* Flags for widget repositioning on dialog resize */ -typedef enum -{ - WPOS_FULLSCREEN = (1 << 0), /* widget occupies the whole screen */ - WPOS_CENTER_HORZ = (1 << 1), /* center widget in horizontal */ - WPOS_CENTER_VERT = (1 << 2), /* center widget in vertical */ - WPOS_CENTER = WPOS_CENTER_HORZ | WPOS_CENTER_VERT, /* center widget */ - WPOS_TRYUP = (1 << 3), /* try to move two lines up the widget */ - WPOS_KEEP_LEFT = (1 << 4), /* keep widget distance to left border of dialog */ - WPOS_KEEP_RIGHT = (1 << 5), /* keep widget distance to right border of dialog */ - WPOS_KEEP_TOP = (1 << 6), /* keep widget distance to top border of dialog */ - WPOS_KEEP_BOTTOM = (1 << 7), /* keep widget distance to bottom border of dialog */ - WPOS_KEEP_HORZ = WPOS_KEEP_LEFT | WPOS_KEEP_RIGHT, - WPOS_KEEP_VERT = WPOS_KEEP_TOP | WPOS_KEEP_BOTTOM, - WPOS_KEEP_ALL = WPOS_KEEP_HORZ | WPOS_KEEP_VERT, - WPOS_KEEP_DEFAULT = WPOS_KEEP_LEFT | WPOS_KEEP_TOP -} widget_pos_flags_t; -/* NOTES: - * If WPOS_FULLSCREEN is set then all other position flags are ignored. - * If WPOS_CENTER_HORZ flag is used, other horizontal flags (WPOS_KEEP_LEFT, WPOS_KEEP_RIGHT, - * and WPOS_KEEP_HORZ) are ignored. - * If WPOS_CENTER_VERT flag is used, other horizontal flags (WPOS_KEEP_TOP, WPOS_KEEP_BOTTOM, - * and WPOS_KEEP_VERT) are ignored. - */ - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/* Widget callback */ -typedef cb_ret_t (*widget_cb_fn) (Widget * widget, Widget * sender, widget_msg_t msg, int parm, - void *data); -/* Widget mouse callback */ -typedef void (*widget_mouse_cb_fn) (Widget * w, mouse_msg_t msg, mouse_event_t * event); -/* translate mouse event and process it */ -typedef int (*widget_mouse_handle_fn) (Widget * w, Gpm_Event * event); - -/* Every Widget must have this as its first element */ -struct Widget -{ - WRect rect; /* position and size */ - /* ATTENTION! For groups, don't change @rect members directly to avoid - incorrect reposion and resize of group members. */ - widget_pos_flags_t pos_flags; /* repositioning flags */ - widget_options_t options; - widget_state_t state; - unsigned long id; /* uniq widget ID */ - widget_cb_fn callback; - widget_mouse_cb_fn mouse_callback; - WGroup *owner; - - /* Key-related fields */ - const global_keymap_t *keymap; /* main keymap */ - const global_keymap_t *ext_keymap; /* extended keymap */ - gboolean ext_mode; /* use keymap or ext_keymap */ - - /* Mouse-related fields. */ - widget_mouse_handle_fn mouse_handler; - struct - { - /* Public members: */ - gboolean forced_capture; /* Overrides the 'capture' member. Set explicitly by the programmer. */ - - /* Implementation details: */ - gboolean capture; /* Whether the widget "owns" the mouse. */ - mouse_msg_t last_msg; /* The previous event type processed. */ - int last_buttons_down; - } mouse; - - void (*make_global) (Widget * w, const WRect * delta); - void (*make_local) (Widget * w, const WRect * delta); - - GList *(*find) (const Widget * w, const Widget * what); - Widget *(*find_by_type) (const Widget * w, widget_cb_fn cb); - Widget *(*find_by_id) (const Widget * w, unsigned long id); - - /* *INDENT-OFF* */ - cb_ret_t (*set_state) (Widget * w, widget_state_t state, gboolean enable); - /* *INDENT-ON* */ - void (*destroy) (Widget * w); - - const int *(*get_colors) (const Widget * w); -}; - -/* structure for label (caption) with hotkey, if original text does not contain - * hotkey, only start is valid and is equal to original text - * hotkey is defined as char*, but mc support only singlebyte hotkey - */ -typedef struct hotkey_t -{ - char *start; /* never NULL */ - char *hotkey; /* can be NULL */ - char *end; /* can be NULL */ -} hotkey_t; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/* create hotkey from text */ -hotkey_t hotkey_new (const char *text); -/* release hotkey, free all mebers of hotkey_t */ -void hotkey_free (const hotkey_t hotkey); -/* return width on terminal of hotkey */ -int hotkey_width (const hotkey_t hotkey); -/* compare two hotkeys */ -gboolean hotkey_equal (const hotkey_t hotkey1, const hotkey_t hotkey2); -/* draw hotkey of widget */ -void hotkey_draw (const Widget * w, const hotkey_t hotkey, gboolean focused); -/* get text of hotkey */ -char *hotkey_get_text (const hotkey_t hotkey); - -/* widget initialization */ -void widget_init (Widget * w, const WRect * r, widget_cb_fn callback, - widget_mouse_cb_fn mouse_callback); -/* Default callback for widgets */ -cb_ret_t widget_default_callback (Widget * w, Widget * sender, widget_msg_t msg, int parm, - void *data); -void widget_set_options (Widget * w, widget_options_t options, gboolean enable); -void widget_adjust_position (widget_pos_flags_t pos_flags, WRect * r); -void widget_set_size (Widget * w, int y, int x, int lines, int cols); -void widget_set_size_rect (Widget * w, WRect * r); -/* select color for widget in dependence of state */ -void widget_selectcolor (const Widget * w, gboolean focused, gboolean hotkey); -cb_ret_t widget_draw (Widget * w); -void widget_erase (Widget * w); -void widget_set_visibility (Widget * w, gboolean make_visible); -gboolean widget_is_active (const void *w); -void widget_replace (Widget * old, Widget * new); -gboolean widget_is_focusable (const Widget * w); -void widget_select (Widget * w); -void widget_set_bottom (Widget * w); - -long widget_lookup_key (Widget * w, int key); - -void widget_default_make_global (Widget * w, const WRect * delta); -void widget_default_make_local (Widget * w, const WRect * delta); - -GList *widget_default_find (const Widget * w, const Widget * what); -Widget *widget_default_find_by_type (const Widget * w, widget_cb_fn cb); -Widget *widget_default_find_by_id (const Widget * w, unsigned long id); - -cb_ret_t widget_default_set_state (Widget * w, widget_state_t state, gboolean enable); - -void widget_default_destroy (Widget * w); - -/* get mouse pointer location within widget */ -Gpm_Event mouse_get_local (const Gpm_Event * global, const Widget * w); -gboolean mouse_global_in_widget (const Gpm_Event * event, const Widget * w); - -/* --------------------------------------------------------------------------------------------- */ -/*** inline functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -static inline cb_ret_t -send_message (void *w, void *sender, widget_msg_t msg, int parm, void *data) -{ - cb_ret_t ret = MSG_NOT_HANDLED; - -#if 1 - if (w != NULL) /* This must be always true, but... */ -#endif - ret = WIDGET (w)->callback (WIDGET (w), WIDGET (sender), msg, parm, data); - - return ret; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Check whether one or several option flags are set or not. - * @param w widget - * @param options widget option flags - * - * @return TRUE if all requested option flags are set, FALSE otherwise. - */ - -static inline gboolean -widget_get_options (const Widget *w, widget_options_t options) -{ - return ((w->options & options) == options); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Check whether one or several state flags are set or not. - * @param w widget - * @param state widget state flags - * - * @return TRUE if all requested state flags are set, FALSE otherwise. - */ - -static inline gboolean -widget_get_state (const Widget *w, widget_state_t state) -{ - return ((w->state & state) == state); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Convert widget coordinates from local (relative to owner) to global (relative to screen). - * - * @param w widget - */ - -static inline void -widget_make_global (Widget *w) -{ - w->make_global (w, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Convert widget coordinates from global (relative to screen) to local (relative to owner). - * - * @param w widget - */ - -static inline void -widget_make_local (Widget *w) -{ - w->make_local (w, NULL); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Find widget. - * - * @param w widget - * @param what widget to find - * - * @return result of @w->find() - */ - -static inline GList * -widget_find (const Widget *w, const Widget *what) -{ - return w->find (w, what); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Find widget by widget type using widget callback. - * - * @param w widget - * @param cb widget callback - * - * @return result of @w->find_by_type() - */ - -static inline Widget * -widget_find_by_type (const Widget *w, widget_cb_fn cb) -{ - return w->find_by_type (w, cb); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Find widget by widget ID. - * - * @param w widget - * @param id widget ID - * - * @return result of @w->find_by_id() - */ - -static inline Widget * -widget_find_by_id (const Widget *w, unsigned long id) -{ - return w->find_by_id (w, id); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Modify state of widget. - * - * @param w widget - * @param state widget state flag to modify - * @param enable specifies whether to turn the flag on (TRUE) or off (FALSE). - * Only one flag per call can be modified. - * @return MSG_HANDLED if set was handled successfully, MSG_NOT_HANDLED otherwise. - */ - -static inline cb_ret_t -widget_set_state (Widget *w, widget_state_t state, gboolean enable) -{ - return w->set_state (w, state, enable); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Destroy widget. - * - * @param w widget - */ - -static inline void -widget_destroy (Widget *w) -{ - w->destroy (w); -} - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Get color colors of widget. - * - * @param w widget - * @return color colors - */ -static inline const int * -widget_get_colors (const Widget *w) -{ - return w->get_colors (w); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Update cursor position in the specified widget. - * - * @param w widget - * - * @return TRUE if cursor was updated successfully, FALSE otherwise - */ - -static inline gboolean -widget_update_cursor (Widget *w) -{ - return (send_message (w, NULL, MSG_CURSOR, 0, NULL) == MSG_HANDLED); -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline void -widget_show (Widget *w) -{ - widget_set_visibility (w, TRUE); -} - -/* --------------------------------------------------------------------------------------------- */ - -static inline void -widget_hide (Widget *w) -{ - widget_set_visibility (w, FALSE); -} - - -/* --------------------------------------------------------------------------------------------- */ -/** - * Check whether two widgets are overlapped or not. - * @param a 1st widget - * @param b 2nd widget - * - * @return TRUE if widgets are overlapped, FALSE otherwise. - */ - -static inline gboolean -widget_overlapped (const Widget *a, const Widget *b) -{ - return rects_are_overlapped (&a->rect, &b->rect); -} - -/* --------------------------------------------------------------------------------------------- */ - -#endif /* MC__WIDGET_COMMON_H */ diff --git a/recipes/wip/files/mc/source/lib/widget/wtools.c b/recipes/wip/files/mc/source/lib/widget/wtools.c deleted file mode 100644 index d7b3be3c6b..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/wtools.c +++ /dev/null @@ -1,696 +0,0 @@ -/* - Widget based utility functions. - - Copyright (C) 1994-2025 - Free Software Foundation, Inc. - - Authors: - Miguel de Icaza, 1994, 1995, 1996 - Radek Doulik, 1994, 1995 - Jakub Jelinek, 1995 - Andrej Borsenkow, 1995 - Andrew Borodin , 2009-2022 - - This file is part of the Midnight Commander. - - The Midnight Commander is free software: you can redistribute it - and/or modify it under the terms of the GNU General Public License as - published by the Free Software Foundation, either version 3 of the License, - or (at your option) any later version. - - The Midnight Commander 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 . - */ - -/** \file wtools.c - * \brief Source: widget based utility functions - */ - -#include - -#include -#include - -#include "lib/global.h" -#include "lib/tty/tty.h" -#include "lib/tty/key.h" /* tty_getch() */ -#include "lib/strutil.h" -#include "lib/util.h" /* tilde_expand() */ -#include "lib/widget.h" -#include "lib/event.h" /* mc_event_raise() */ - -/*** global variables ****************************************************************************/ - -/*** file scope macro definitions ****************************************************************/ - -/*** file scope type declarations ****************************************************************/ - -/*** forward declarations (file scope functions) *************************************************/ - -/*** file scope variables ************************************************************************/ - -static WDialog *last_query_dlg; - -static int sel_pos = 0; - -/* --------------------------------------------------------------------------------------------- */ -/*** file scope functions ************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** default query callback, used to reposition query */ - -static cb_ret_t -query_default_callback (Widget *w, Widget *sender, widget_msg_t msg, int parm, void *data) -{ - WDialog *h = DIALOG (w); - - switch (msg) - { - case MSG_RESIZE: - if ((w->pos_flags & WPOS_CENTER) == 0) - { - WDialog *prev_dlg = NULL; - int ypos, xpos; - WRect r; - - /* get dialog under h */ - if (top_dlg != NULL) - { - if (top_dlg->data != (void *) h) - prev_dlg = DIALOG (top_dlg->data); - else - { - GList *p; - - /* Top dialog is current if it is visible. - Get previous dialog in stack */ - p = g_list_next (top_dlg); - if (p != NULL) - prev_dlg = DIALOG (p->data); - } - } - - /* if previous dialog is not fullscreen'd -- overlap it */ - if (prev_dlg == NULL || (WIDGET (prev_dlg)->pos_flags & WPOS_FULLSCREEN) != 0) - ypos = LINES / 3 - (w->rect.lines - 3) / 2; - else - ypos = WIDGET (prev_dlg)->rect.y + 2; - - /* if dialog is too high, place it centered */ - if (ypos + w->rect.lines < LINES / 2) - w->pos_flags |= WPOS_CENTER; - - xpos = COLS / 2 - w->rect.cols / 2; - - /* set position */ - rect_init (&r, ypos, xpos, w->rect.lines, w->rect.cols); - - return dlg_default_callback (w, NULL, MSG_RESIZE, 0, &r); - } - MC_FALLTHROUGH; - - default: - return dlg_default_callback (w, sender, msg, parm, data); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** Show message box from background */ - -#ifdef ENABLE_BACKGROUND -static void -bg_message (int dummy, int *flags, char *title, const char *text) -{ - (void) dummy; - title = g_strconcat (_("Background process:"), " ", title, (char *) NULL); - query_dialog (title, text, *flags, 1, _("&OK")); - g_free (title); -} -#endif /* ENABLE_BACKGROUND */ - -/* --------------------------------------------------------------------------------------------- */ - -/** - * Show dialog, not background safe. - * - * If the arguments "header" and "text" should be translated, - * that MUST be done by the caller of fg_input_dialog_help(). - * - * The argument "history_name" holds the name of a section - * in the history file. Data entered in the input field of - * the dialog box will be stored there. - * - */ -static char * -fg_input_dialog_help (const char *header, const char *text, const char *help, - const char *history_name, const char *def_text, gboolean strip_password, - input_complete_t completion_flags) -{ - char *p_text; - char histname[64] = "inp|"; - gboolean is_passwd = FALSE; - char *my_str = NULL; - int ret; - - /* label text */ - p_text = g_strstrip (g_strdup (text)); - - /* input history */ - if (history_name != NULL && *history_name != '\0') - g_strlcpy (histname + 3, history_name, sizeof (histname) - 3); - - /* The special value of def_text is used to identify password boxes - and hide characters with "*". Don't save passwords in history! */ - if (def_text == INPUT_PASSWORD) - { - is_passwd = TRUE; - histname[3] = '\0'; - def_text = ""; - } - - { - quick_widget_t quick_widgets[] = { - /* *INDENT-OFF* */ - QUICK_LABELED_INPUT (p_text, input_label_above, def_text, histname, &my_str, - NULL, is_passwd, strip_password, completion_flags), - QUICK_BUTTONS_OK_CANCEL, - QUICK_END - /* *INDENT-ON* */ - }; - - WRect r = { -1, -1, 0, COLS / 2 }; - - quick_dialog_t qdlg = { - r, header, help, - quick_widgets, NULL, NULL - }; - - ret = quick_dialog (&qdlg); - } - - g_free (p_text); - - return (ret != B_CANCEL) ? my_str : NULL; -} - -/* --------------------------------------------------------------------------------------------- */ - -#ifdef ENABLE_BACKGROUND -static int -wtools_parent_call (void *routine, gpointer ctx, int argc, ...) -{ - ev_background_parent_call_t event_data; - - event_data.routine = routine; - event_data.ctx = ctx; - event_data.argc = argc; - va_start (event_data.ap, argc); - mc_event_raise (MCEVENT_GROUP_CORE, "background_parent_call", (gpointer) & event_data); - va_end (event_data.ap); - return event_data.ret.i; -} - -/* --------------------------------------------------------------------------------------------- */ - -static char * -wtools_parent_call_string (void *routine, int argc, ...) -{ - ev_background_parent_call_t event_data; - - event_data.routine = routine; - event_data.argc = argc; - va_start (event_data.ap, argc); - mc_event_raise (MCEVENT_GROUP_CORE, "background_parent_call_string", (gpointer) & event_data); - va_end (event_data.ap); - return event_data.ret.s; -} -#endif /* ENABLE_BACKGROUND */ - -/* --------------------------------------------------------------------------------------------- */ -/*** public functions ****************************************************************************/ -/* --------------------------------------------------------------------------------------------- */ - -/** Used to ask questions to the user */ -int -query_dialog (const char *header, const char *text, int flags, int count, ...) -{ - va_list ap; - WDialog *query_dlg; - WGroup *g; - WButton *button; - int win_len = 0; - int i; - int result = -1; - int cols, lines; - const int *query_colors = (flags & D_ERROR) != 0 ? alarm_colors : dialog_colors; - widget_pos_flags_t pos_flags = - (flags & D_CENTER) != 0 ? (WPOS_CENTER | WPOS_TRYUP) : WPOS_KEEP_DEFAULT; - - if (header == MSG_ERROR) - header = _("Error"); - - if (count > 0) - { - va_start (ap, count); - for (i = 0; i < count; i++) - { - char *cp = va_arg (ap, char *); - - win_len += str_term_width1 (cp) + 6; - if (strchr (cp, '&') != NULL) - win_len--; - } - va_end (ap); - } - - /* count coordinates */ - str_msg_term_size (text, &lines, &cols); - cols = 6 + MAX (win_len, MAX (str_term_width1 (header), cols)); - lines += 4 + (count > 0 ? 2 : 0); - - /* prepare dialog */ - query_dlg = - dlg_create (TRUE, 0, 0, lines, cols, pos_flags, FALSE, query_colors, query_default_callback, - NULL, "[QueryBox]", header); - g = GROUP (query_dlg); - - if (count > 0) - { - WButton *defbutton = NULL; - - group_add_widget_autopos (g, label_new (2, 3, text), WPOS_KEEP_TOP | WPOS_CENTER_HORZ, - NULL); - group_add_widget (g, hline_new (lines - 4, -1, -1)); - - cols = (cols - win_len - 2) / 2 + 2; - va_start (ap, count); - for (i = 0; i < count; i++) - { - int xpos; - char *cur_name; - - cur_name = va_arg (ap, char *); - xpos = str_term_width1 (cur_name) + 6; - if (strchr (cur_name, '&') != NULL) - xpos--; - - button = button_new (lines - 3, cols, B_USER + i, NORMAL_BUTTON, cur_name, NULL); - group_add_widget (g, button); - cols += xpos; - if (i == sel_pos) - defbutton = button; - } - va_end (ap); - - /* do resize before running and selecting any widget */ - send_message (query_dlg, NULL, MSG_RESIZE, 0, NULL); - - if (defbutton != NULL) - widget_select (WIDGET (defbutton)); - - /* run dialog and make result */ - switch (dlg_run (query_dlg)) - { - case B_CANCEL: - break; - default: - result = query_dlg->ret_value - B_USER; - } - - /* free used memory */ - widget_destroy (WIDGET (query_dlg)); - } - else - { - group_add_widget_autopos (g, label_new (2, 3, text), WPOS_KEEP_TOP | WPOS_CENTER_HORZ, - NULL); - group_add_widget (g, button_new (0, 0, 0, HIDDEN_BUTTON, "-", NULL)); - last_query_dlg = query_dlg; - } - sel_pos = 0; - return result; -} - -/* --------------------------------------------------------------------------------------------- */ - -void -query_set_sel (int new_sel) -{ - sel_pos = new_sel; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Create message dialog. The caller must call dlg_run_done() and - * widget_destroy() to dismiss it. Not safe to call from background. - */ - -WDialog * -create_message (int flags, const char *title, const char *text, ...) -{ - va_list args; - WDialog *d; - char *p; - - va_start (args, text); - p = g_strdup_vprintf (text, args); - va_end (args); - - query_dialog (title, p, flags, 0); - d = last_query_dlg; - - /* do resize before initing and running */ - send_message (d, NULL, MSG_RESIZE, 0, NULL); - - dlg_init (d); - g_free (p); - - return d; -} - -/* --------------------------------------------------------------------------------------------- */ -/** Show message box, background safe */ - -void -message (int flags, const char *title, const char *text, ...) -{ - char *p; - va_list ap; - - va_start (ap, text); - p = g_strdup_vprintf (text, ap); - va_end (ap); - - if (title == MSG_ERROR) - title = _("Error"); - -#ifdef ENABLE_BACKGROUND - if (mc_global.we_are_background) - { - union - { - void *p; - void (*f) (int, int *, char *, const char *); - } func; - - func.f = bg_message; - - wtools_parent_call (func.p, NULL, 3, sizeof (flags), &flags, strlen (title), title, - strlen (p), p); - } - else -#endif /* ENABLE_BACKGROUND */ - query_dialog (title, p, flags, 1, _("&OK")); - - g_free (p); -} - -/* --------------------------------------------------------------------------------------------- */ -/** Show error message box */ - -gboolean -mc_error_message (GError **mcerror, int *code) -{ - if (mcerror == NULL || *mcerror == NULL) - return FALSE; - - if ((*mcerror)->code == 0) - message (D_ERROR, MSG_ERROR, "%s", (*mcerror)->message); - else - message (D_ERROR, MSG_ERROR, _("%s (%d)"), (*mcerror)->message, (*mcerror)->code); - - if (code != NULL) - *code = (*mcerror)->code; - - g_error_free (*mcerror); - *mcerror = NULL; - - return TRUE; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Show input dialog, background safe. - * - * If the arguments "header" and "text" should be translated, - * that MUST be done by the caller of these wrappers. - */ - -char * -input_dialog_help (const char *header, const char *text, const char *help, - const char *history_name, const char *def_text, gboolean strip_password, - input_complete_t completion_flags) -{ -#ifdef ENABLE_BACKGROUND - if (mc_global.we_are_background) - { - union - { - void *p; - char *(*f) (const char *, const char *, const char *, const char *, const char *, - gboolean, input_complete_t); - } func; - func.f = fg_input_dialog_help; - return wtools_parent_call_string (func.p, 7, - strlen (header), header, strlen (text), - text, strlen (help), help, - strlen (history_name), history_name, - strlen (def_text), def_text, - sizeof (gboolean), strip_password, - sizeof (input_complete_t), completion_flags); - } - else -#endif /* ENABLE_BACKGROUND */ - return fg_input_dialog_help (header, text, help, history_name, def_text, strip_password, - completion_flags); -} - -/* --------------------------------------------------------------------------------------------- */ -/** Show input dialog with default help, background safe */ - -char * -input_dialog (const char *header, const char *text, const char *history_name, const char *def_text, - input_complete_t completion_flags) -{ - return input_dialog_help (header, text, "[Input Line Keys]", history_name, def_text, FALSE, - completion_flags); -} - -/* --------------------------------------------------------------------------------------------- */ - -char * -input_expand_dialog (const char *header, const char *text, - const char *history_name, const char *def_text, - input_complete_t completion_flags) -{ - char *result; - - result = input_dialog (header, text, history_name, def_text, completion_flags); - if (result) - { - char *expanded; - - expanded = tilde_expand (result); - g_free (result); - return expanded; - } - return result; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Create status message window object and initialize it - * - * @param title window title - * @param delay initial delay to raise window in seconds - * @param init_cb callback to initialize user-defined part of status message - * @param update_cb callback to update of status message - * @param deinit_cb callback to deinitialize user-defined part of status message - * - * @return newly allocate status message window - */ - -status_msg_t * -status_msg_create (const char *title, double delay, status_msg_cb init_cb, - status_msg_update_cb update_cb, status_msg_cb deinit_cb) -{ - status_msg_t *sm; - - sm = g_try_new (status_msg_t, 1); - status_msg_init (sm, title, delay, init_cb, update_cb, deinit_cb); - - return sm; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Destroy status message window object - * - * @param sm status message window object - */ - -void -status_msg_destroy (status_msg_t *sm) -{ - status_msg_deinit (sm); - g_free (sm); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Initialize already created status message window object - * - * @param sm status message window object - * @param title window title - * @param delay initial delay to raise window in seconds - * @param init_cb callback to initialize user-defined part of status message - * @param update_cb callback to update of status message - * @param deinit_cb callback to deinitialize user-defined part of status message - */ - -void -status_msg_init (status_msg_t *sm, const char *title, double delay, status_msg_cb init_cb, - status_msg_update_cb update_cb, status_msg_cb deinit_cb) -{ - gint64 start; - - /* repaint screen to remove previous finished dialog */ - mc_refresh (); - - start = g_get_monotonic_time (); - - sm->dlg = dlg_create (TRUE, 0, 0, 7, MIN (MAX (40, COLS / 2), COLS), WPOS_CENTER, FALSE, - dialog_colors, NULL, NULL, NULL, title); - sm->start = start; - sm->delay = (gint64) (delay * G_USEC_PER_SEC); - sm->block = FALSE; - - sm->init = init_cb; - sm->update = update_cb; - sm->deinit = deinit_cb; - - if (sm->init != NULL) - sm->init (sm); - - if (mc_time_elapsed (&start, sm->delay)) - { - /* We will manage the dialog without any help, that's why we have to call dlg_init */ - dlg_init (sm->dlg); - } -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Deinitialize status message window object - * - * @param sm status message window object - */ - -void -status_msg_deinit (status_msg_t *sm) -{ - if (sm == NULL) - return; - - if (sm->deinit != NULL) - sm->deinit (sm); - - /* close and destroy dialog */ - dlg_run_done (sm->dlg); - widget_destroy (WIDGET (sm->dlg)); -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Update status message window - * - * @param sm status message window object - * - * @return value of pressed key - */ - -int -status_msg_common_update (status_msg_t *sm) -{ - int c; - Gpm_Event event; - - if (sm == NULL) - return B_ENTER; - - /* This should not happen, but... */ - if (sm->dlg == NULL) - return B_ENTER; - - if (widget_get_state (WIDGET (sm->dlg), WST_CONSTRUCT)) - { - /* dialog is not shown yet */ - - /* do not change sm->start */ - gint64 start = sm->start; - - if (mc_time_elapsed (&start, sm->delay)) - dlg_init (sm->dlg); - - return B_ENTER; - } - - event.x = -1; /* Don't show the GPM cursor */ - c = tty_get_event (&event, FALSE, sm->block); - if (c == EV_NONE) - return B_ENTER; - - /* Reinitialize by non-B_CANCEL value to avoid old values - after events other than selecting a button */ - sm->dlg->ret_value = B_ENTER; - dlg_process_event (sm->dlg, c, &event); - - return sm->dlg->ret_value; -} - -/* --------------------------------------------------------------------------------------------- */ -/** - * Callback to initialize already created simple status message window object - * - * @param sm status message window object - */ - -void -simple_status_msg_init_cb (status_msg_t *sm) -{ - simple_status_msg_t *ssm = SIMPLE_STATUS_MSG (sm); - Widget *wd = WIDGET (sm->dlg); - WGroup *wg = GROUP (sm->dlg); - WRect r; - - const char *b_name = N_("&Abort"); - int b_width; - int wd_width, y; - Widget *b; - -#ifdef ENABLE_NLS - b_name = _(b_name); -#endif - - b_width = str_term_width1 (b_name) + 4; - wd_width = MAX (wd->rect.cols, b_width + 6); - - y = 2; - ssm->label = label_new (y++, 3, NULL); - group_add_widget_autopos (wg, ssm->label, WPOS_KEEP_TOP | WPOS_CENTER_HORZ, NULL); - group_add_widget (wg, hline_new (y++, -1, -1)); - b = WIDGET (button_new (y++, 3, B_CANCEL, NORMAL_BUTTON, b_name, NULL)); - group_add_widget_autopos (wg, b, WPOS_KEEP_TOP | WPOS_CENTER_HORZ, NULL); - - r = wd->rect; - r.lines = y + 2; - r.cols = wd_width; - widget_set_size_rect (wd, &r); -} - -/* --------------------------------------------------------------------------------------------- */ diff --git a/recipes/wip/files/mc/source/lib/widget/wtools.h b/recipes/wip/files/mc/source/lib/widget/wtools.h deleted file mode 100644 index 16f5fbdc60..0000000000 --- a/recipes/wip/files/mc/source/lib/widget/wtools.h +++ /dev/null @@ -1,100 +0,0 @@ -/** \file wtools.h - * \brief Header: widget based utility functions - */ - -#ifndef MC__WTOOLS_H -#define MC__WTOOLS_H - -/*** typedefs(not structures) and defined constants **********************************************/ - -/* Pass this as def_text to request a password */ -#define INPUT_PASSWORD ((char *) -1) - -/* Use this as header for message() - it expands to "Error" */ -#define MSG_ERROR ((char *) -1) - -typedef struct status_msg_t status_msg_t; -#define STATUS_MSG(x) ((status_msg_t *)(x)) - -typedef struct simple_status_msg_t simple_status_msg_t; -#define SIMPLE_STATUS_MSG(x) ((simple_status_msg_t *)(x)) - -typedef void (*status_msg_cb) (status_msg_t * sm); -typedef int (*status_msg_update_cb) (status_msg_t * sm); - -/*** enums ***************************************************************************************/ - -/* flags for message() and query_dialog() */ -enum -{ - D_NORMAL = 0, - D_ERROR = (1 << 0), - D_CENTER = (1 << 1) -} /* dialog options */ ; - -/*** structures declarations (and typedefs of structures)*****************************************/ - -/* Base class for status message of long-time operations. - Useful to show progress of long-time operations and interrupt it. */ - -struct status_msg_t -{ - WDialog *dlg; /* pointer to status message dialog */ - gint64 start; /* start time in microseconds */ - gint64 delay; /* delay before raise the 'dlg' in microseconds */ - gboolean block; /* how to get event using tty_get_event() */ - - status_msg_cb init; /* callback to init derived classes */ - status_msg_update_cb update; /* callback to update dlg */ - status_msg_cb deinit; /* callback to deinit derived classes */ -}; - -/* Simple status message with label and 'Abort' button */ -struct simple_status_msg_t -{ - status_msg_t status_msg; /* base class */ - - WLabel *label; -}; - -/*** global variables defined in .c file *********************************************************/ - -/*** declarations of public functions ************************************************************/ - -/* The input dialogs */ -char *input_dialog (const char *header, const char *text, - const char *history_name, const char *def_text, - input_complete_t completion_flags); -char *input_dialog_help (const char *header, const char *text, const char *help, - const char *history_name, const char *def_text, gboolean strip_password, - input_complete_t completion_flags); -char *input_expand_dialog (const char *header, const char *text, const char *history_name, - const char *def_text, input_complete_t completion_flags); - -int query_dialog (const char *header, const char *text, int flags, int count, ...); -void query_set_sel (int new_sel); - -/* Create message box but don't dismiss it yet, not background safe */ -/* *INDENT-OFF* */ -WDialog *create_message (int flags, const char *title, const char *text, ...) - G_GNUC_PRINTF (3, 4); - -/* Show message box, background safe */ -MC_MOCKABLE void message (int flags, const char *title, const char *text, ...) G_GNUC_PRINTF (3, 4); -/* *INDENT-ON* */ - -gboolean mc_error_message (GError ** mcerror, int *code); - -status_msg_t *status_msg_create (const char *title, double delay, status_msg_cb init_cb, - status_msg_update_cb update_cb, status_msg_cb deinit_cb); -void status_msg_destroy (status_msg_t * sm); -void status_msg_init (status_msg_t * sm, const char *title, double delay, status_msg_cb init_cb, - status_msg_update_cb update_cb, status_msg_cb deinit_cb); -void status_msg_deinit (status_msg_t * sm); -int status_msg_common_update (status_msg_t * sm); - -void simple_status_msg_init_cb (status_msg_t * sm); - -/*** inline functions ****************************************************************************/ - -#endif /* MC__WTOOLS_H */ diff --git a/recipes/wip/files/mc/source/m4.include/ax_append_compile_flags.m4 b/recipes/wip/files/mc/source/m4.include/ax_append_compile_flags.m4 deleted file mode 100644 index 9c856356c0..0000000000 --- a/recipes/wip/files/mc/source/m4.include/ax_append_compile_flags.m4 +++ /dev/null @@ -1,46 +0,0 @@ -# ============================================================================ -# https://www.gnu.org/software/autoconf-archive/ax_append_compile_flags.html -# ============================================================================ -# -# SYNOPSIS -# -# AX_APPEND_COMPILE_FLAGS([FLAG1 FLAG2 ...], [FLAGS-VARIABLE], [EXTRA-FLAGS], [INPUT]) -# -# DESCRIPTION -# -# For every FLAG1, FLAG2 it is checked whether the compiler works with the -# flag. If it does, the flag is added FLAGS-VARIABLE -# -# If FLAGS-VARIABLE is not specified, the current language's flags (e.g. -# CFLAGS) is used. During the check the flag is always added to the -# current language's flags. -# -# If EXTRA-FLAGS is defined, it is added to the current language's default -# flags (e.g. CFLAGS) when the check is done. The check is thus made with -# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to -# force the compiler to issue an error when a bad flag is given. -# -# INPUT gives an alternative input source to AC_COMPILE_IFELSE. -# -# NOTE: This macro depends on the AX_APPEND_FLAG and -# AX_CHECK_COMPILE_FLAG. Please keep this macro in sync with -# AX_APPEND_LINK_FLAGS. -# -# LICENSE -# -# Copyright (c) 2011 Maarten Bosmans -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 7 - -AC_DEFUN([AX_APPEND_COMPILE_FLAGS], -[AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) -AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) -for flag in $1; do - AX_CHECK_COMPILE_FLAG([$flag], [AX_APPEND_FLAG([$flag], [$2])], [], [$3], [$4]) -done -])dnl AX_APPEND_COMPILE_FLAGS diff --git a/recipes/wip/files/mc/source/m4.include/ax_append_flag.m4 b/recipes/wip/files/mc/source/m4.include/ax_append_flag.m4 deleted file mode 100644 index dd6d8b6140..0000000000 --- a/recipes/wip/files/mc/source/m4.include/ax_append_flag.m4 +++ /dev/null @@ -1,50 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_append_flag.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_APPEND_FLAG(FLAG, [FLAGS-VARIABLE]) -# -# DESCRIPTION -# -# FLAG is appended to the FLAGS-VARIABLE shell variable, with a space -# added in between. -# -# If FLAGS-VARIABLE is not specified, the current language's flags (e.g. -# CFLAGS) is used. FLAGS-VARIABLE is not changed if it already contains -# FLAG. If FLAGS-VARIABLE is unset in the shell, it is set to exactly -# FLAG. -# -# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. -# -# LICENSE -# -# Copyright (c) 2008 Guido U. Draheim -# Copyright (c) 2011 Maarten Bosmans -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 8 - -AC_DEFUN([AX_APPEND_FLAG], -[dnl -AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_SET_IF -AS_VAR_PUSHDEF([FLAGS], [m4_default($2,_AC_LANG_PREFIX[FLAGS])]) -AS_VAR_SET_IF(FLAGS,[ - AS_CASE([" AS_VAR_GET(FLAGS) "], - [*" $1 "*], [AC_RUN_LOG([: FLAGS already contains $1])], - [ - AS_VAR_APPEND(FLAGS,[" $1"]) - AC_RUN_LOG([: FLAGS="$FLAGS"]) - ]) - ], - [ - AS_VAR_SET(FLAGS,[$1]) - AC_RUN_LOG([: FLAGS="$FLAGS"]) - ]) -AS_VAR_POPDEF([FLAGS])dnl -])dnl AX_APPEND_FLAG diff --git a/recipes/wip/files/mc/source/m4.include/ax_check_compile_flag.m4 b/recipes/wip/files/mc/source/m4.include/ax_check_compile_flag.m4 deleted file mode 100644 index 54191c5535..0000000000 --- a/recipes/wip/files/mc/source/m4.include/ax_check_compile_flag.m4 +++ /dev/null @@ -1,63 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_check_compile_flag.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_CHECK_COMPILE_FLAG(FLAG, [ACTION-SUCCESS], [ACTION-FAILURE], [EXTRA-FLAGS], [INPUT]) -# -# DESCRIPTION -# -# Check whether the given FLAG works with the current language's compiler -# or gives an error. (Warnings, however, are ignored) -# -# ACTION-SUCCESS/ACTION-FAILURE are shell commands to execute on -# success/failure. -# -# If EXTRA-FLAGS is defined, it is added to the current language's default -# flags (e.g. CFLAGS) when the check is done. The check is thus made with -# the flags: "CFLAGS EXTRA-FLAGS FLAG". This can for example be used to -# force the compiler to issue an error when a bad flag is given. -# -# INPUT gives an alternative input source to AC_COMPILE_IFELSE. -# -# NOTE: Implementation based on AX_CFLAGS_GCC_OPTION. Please keep this -# macro in sync with AX_CHECK_{PREPROC,LINK}_FLAG. -# -# LICENSE -# -# Copyright (c) 2008 Guido U. Draheim -# Copyright (c) 2011 Maarten Bosmans -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 11 - -AC_DEFUN([AX_CHECK_COMPILE_FLAG], -[AC_PREREQ(2.64)dnl for _AC_LANG_PREFIX and AS_VAR_IF -AS_VAR_PUSHDEF([CACHEVAR],[ax_cv_check_[]_AC_LANG_ABBREV[]flags_$4_$1])dnl -AC_CACHE_CHECK([whether the _AC_LANG compiler accepts $1], CACHEVAR, [ - ax_check_save_flags=$[]_AC_LANG_PREFIX[]FLAGS - if test x"m4_case(_AC_LANG, - [C], [$GCC], - [C++], [$GXX], - [Fortran], [$GFC], - [Fortran 77], [$G77], - [Objective C], [$GOBJC], - [Objective C++], [$GOBJCXX], - [no])" = xyes ; then - add_gnu_werror="-Werror" - fi - _AC_LANG_PREFIX[]FLAGS="$[]_AC_LANG_PREFIX[]FLAGS $4 $1 $add_gnu_werror" - AC_COMPILE_IFELSE([m4_default([$5],[AC_LANG_PROGRAM()])], - [AS_VAR_SET(CACHEVAR,[yes])], - [AS_VAR_SET(CACHEVAR,[no])]) - _AC_LANG_PREFIX[]FLAGS=$ax_check_save_flags]) -AS_VAR_IF(CACHEVAR,yes, - [m4_default([$2], :)], - [m4_default([$3], :)]) -AS_VAR_POPDEF([CACHEVAR])dnl -])dnl AX_CHECK_COMPILE_FLAGS diff --git a/recipes/wip/files/mc/source/m4.include/ax_check_pcre2.m4 b/recipes/wip/files/mc/source/m4.include/ax_check_pcre2.m4 deleted file mode 100644 index 9ae01addf3..0000000000 --- a/recipes/wip/files/mc/source/m4.include/ax_check_pcre2.m4 +++ /dev/null @@ -1,163 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_check_pcre2.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_CHECK_PCRE2([bits], [action-if-found], [action-if-not-found]) -# -# DESCRIPTION -# -# Search for an installed libpcre2-8 library. If nothing was specified -# when calling configure, it searches first in /usr/local and then in -# /usr, /opt/local and /sw. If the --with-pcre2=DIR is specified, it will -# try to find it in DIR/include/pcre2.h and DIR/lib/libpcre2-8. If -# --without-pcre2 is specified, the library is not searched at all. -# -# If 'bits' is empty or '8', PCRE2 8-bit character support is checked -# only. If 'bits' contains '16', PCRE2 8-bit and 16-bit character support -# are checked. If 'bits' contains '32', PCRE2 8-bit and 32-bit character -# support are checked. When 'bits' contains both '16' and '32', PCRE2 -# 8-bit, 16-bit, and 32-bit character support is checked. -# -# If either the header file (pcre2.h), or the library (libpcre2-8) is not -# found, or the specified PCRE2 character bit width is not supported, -# shell commands 'action-if-not-found' is run. If 'action-if-not-found' is -# not specified, the configuration exits on error, asking for a valid -# PCRE2 installation directory or --without-pcre2. -# -# If both header file and library are found, and the specified PCRE2 bit -# widths are supported, shell commands 'action-if-found' is run. If -# 'action-if-found' is not specified, the default action appends -# '-I${PCRE2_HOME}/include' to CPFLAGS, appends '-L$PCRE2_HOME}/lib' to -# LDFLAGS, prepends '-lpcre2-8' to LIBS, and calls AC_DEFINE(HAVE_PCRE2). -# You should use autoheader to include a definition for this symbol in a -# config.h file. Sample usage in a C/C++ source is as follows: -# -# #ifdef HAVE_PCRE2 -# #define PCRE2_CODE_UNIT_WIDTH 8 -# #include -# #endif /* HAVE_PCRE2 */ -# -# LICENSE -# -# Copyright (c) 2020 Robert van Engelen -# -# 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, see . -# -# As a special exception, the respective Autoconf Macro's copyright owner -# gives unlimited permission to copy, distribute and modify the configure -# scripts that are the output of Autoconf when processing the Macro. You -# need not follow the terms of the GNU General Public License when using -# or distributing such scripts, even though portions of the text of the -# Macro appear in them. The GNU General Public License (GPL) does govern -# all other use of the material that constitutes the Autoconf Macro. -# -# This special exception to the GPL applies to versions of the Autoconf -# Macro released by the Autoconf Archive. When you make and distribute a -# modified version of the Autoconf Macro, you may extend this special -# exception to the GPL to apply to your modified version as well. - -#serial 2 - -AC_DEFUN([AX_CHECK_PCRE2], -# -# Handle user hints -# -[AC_MSG_CHECKING(if PCRE2 is wanted) -pcre2_places="/usr/local /usr /opt/local /sw" -AC_ARG_WITH([pcre2], -[ --with-pcre2=DIR root directory path of PCRE2 installation @<:@defaults to - /usr/local or /usr if not found in /usr/local@:>@ - --without-pcre2 to disable PCRE2 usage completely], -[if test "$withval" != "no" ; then - AC_MSG_RESULT(yes) - if test -d "$withval" - then - pcre2_places="$withval $pcre2_places" - else - AC_MSG_WARN([Sorry, $withval does not exist, checking usual places]) - fi -else - pcre2_places="" - AC_MSG_RESULT(no) -fi], -[AC_MSG_RESULT(yes)]) -# -# Locate PCRE2, if wanted -# -if test -n "${pcre2_places}" -then - # check the user supplied or any other more or less 'standard' place: - # Most UNIX systems : /usr/local and /usr - # MacPorts / Fink on OSX : /opt/local respectively /sw - for PCRE2_HOME in ${pcre2_places} ; do - if test -f "${PCRE2_HOME}/include/pcre2.h"; then break; fi - PCRE2_HOME="" - done - - PCRE2_OLD_LDFLAGS=$LDFLAGS - PCRE2_OLD_CPPFLAGS=$CPPFLAGS - if test -n "${PCRE2_HOME}"; then - LDFLAGS="$LDFLAGS -L${PCRE2_HOME}/lib" - CPPFLAGS="$CPPFLAGS -I${PCRE2_HOME}/include" - fi - AC_LANG_PUSH([C]) - AC_CHECK_LIB([pcre2-8], [pcre2_compile_8], [pcre2_cv_libpcre2=yes], [pcre2_cv_libpcre2=no]) - AC_CHECK_HEADER([pcre2.h], [pcre2_cv_pcre2_h=yes], [pcre2_cv_pcre2_h=no], [#define PCRE2_CODE_UNIT_WIDTH 8]) - case "$1" in - *16*) - AC_CHECK_LIB([pcre2-16], [pcre2_compile_16], [pcre2_cv_libpcre2_16=yes], [pcre2_cv_libpcre2_16=no]) - AC_CHECK_HEADER([pcre2.h], [pcre2_cv_pcre2_16_h=yes], [pcre2_cv_pcre2_16_h=no], [#define PCRE2_CODE_UNIT_WIDTH 16]) - if test "$pcre2_cv_libpcre2_16" = "no" || test "$pcre2_cv_pcre2_16_h" = "no"; then - pcre2_cv_libpcre2=no - fi - ;; - esac - case "$1" in - *32*) - AC_CHECK_LIB([pcre2-32], [pcre2_compile_32], [pcre2_cv_libpcre2_32=yes], [pcre2_cv_libpcre2_32=no]) - AC_CHECK_HEADER([pcre2.h], [pcre2_cv_pcre2_32_h=yes], [pcre2_cv_pcre2_32_h=no], [#define PCRE2_CODE_UNIT_WIDTH 32]) - if test "$pcre2_cv_libpcre2_32" = "no" || test "$pcre2_cv_pcre2_32_h" = "no"; then - pcre2_cv_libpcre2=no - fi - esac - AC_LANG_POP([C]) - if test "$pcre2_cv_libpcre2" = "yes" && test "$pcre2_cv_pcre2_h" = "yes" - then - # - # If both library and header were found, action-if-found - # - m4_ifblank([$2],[ - CPPFLAGS="$CPPFLAGS -I${PCRE2_HOME}/include" - LDFLAGS="$LDFLAGS -L${PCRE2_HOME}/lib" - LIBS="-lpcre2-8 $LIBS" - AC_DEFINE([HAVE_PCRE2], [1], - [Define to 1 if you have `PCRE2' library (-lpcre2-$1)]) - ],[ - # Restore variables - LDFLAGS="$PCRE2_OLD_LDFLAGS" - CPPFLAGS="$PCRE2_OLD_CPPFLAGS" - $2 - ]) - else - # - # If either header or library was not found, action-if-not-found - # - m4_default([$3],[ - AC_MSG_ERROR([either specify a valid PCRE2 installation with --with-pcre2=DIR or disable PCRE2 usage with --without-pcre2]) - ]) - fi -fi -]) diff --git a/recipes/wip/files/mc/source/m4.include/ax_gcc_func_attribute.m4 b/recipes/wip/files/mc/source/m4.include/ax_gcc_func_attribute.m4 deleted file mode 100644 index fa4e089d68..0000000000 --- a/recipes/wip/files/mc/source/m4.include/ax_gcc_func_attribute.m4 +++ /dev/null @@ -1,242 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_gcc_func_attribute.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_GCC_FUNC_ATTRIBUTE(ATTRIBUTE) -# -# DESCRIPTION -# -# This macro checks if the compiler supports one of GCC's function -# attributes; many other compilers also provide function attributes with -# the same syntax. Compiler warnings are used to detect supported -# attributes as unsupported ones are ignored by default so quieting -# warnings when using this macro will yield false positives. -# -# The ATTRIBUTE parameter holds the name of the attribute to be checked. -# -# If ATTRIBUTE is supported define HAVE_FUNC_ATTRIBUTE_. -# -# The macro caches its result in the ax_cv_have_func_attribute_ -# variable. -# -# The macro currently supports the following function attributes: -# -# alias -# aligned -# alloc_size -# always_inline -# artificial -# cold -# const -# constructor -# constructor_priority for constructor attribute with priority -# deprecated -# destructor -# dllexport -# dllimport -# error -# externally_visible -# fallthrough -# flatten -# format -# format_arg -# gnu_format -# gnu_inline -# hot -# ifunc -# leaf -# malloc -# noclone -# noinline -# nonnull -# noreturn -# nothrow -# optimize -# pure -# sentinel -# sentinel_position -# unused -# used -# visibility -# warning -# warn_unused_result -# weak -# weakref -# -# Unsupported function attributes will be tested with a prototype -# returning an int and not accepting any arguments and the result of the -# check might be wrong or meaningless so use with care. -# -# LICENSE -# -# Copyright (c) 2013 Gabriele Svelto -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 13 - -AC_DEFUN([AX_GCC_FUNC_ATTRIBUTE], [ - AS_VAR_PUSHDEF([ac_var], [ax_cv_have_func_attribute_$1]) - - AC_CACHE_CHECK([for __attribute__(($1))], [ac_var], [ - AC_LINK_IFELSE([AC_LANG_PROGRAM([ - m4_case([$1], - [alias], [ - int foo( void ) { return 0; } - int bar( void ) __attribute__(($1("foo"))); - ], - [aligned], [ - int foo( void ) __attribute__(($1(32))); - ], - [alloc_size], [ - void *foo(int a) __attribute__(($1(1))); - ], - [always_inline], [ - inline __attribute__(($1)) int foo( void ) { return 0; } - ], - [artificial], [ - inline __attribute__(($1)) int foo( void ) { return 0; } - ], - [cold], [ - int foo( void ) __attribute__(($1)); - ], - [const], [ - int foo( void ) __attribute__(($1)); - ], - [constructor_priority], [ - int foo( void ) __attribute__((__constructor__(65535/2))); - ], - [constructor], [ - int foo( void ) __attribute__(($1)); - ], - [deprecated], [ - int foo( void ) __attribute__(($1(""))); - ], - [destructor], [ - int foo( void ) __attribute__(($1)); - ], - [dllexport], [ - __attribute__(($1)) int foo( void ) { return 0; } - ], - [dllimport], [ - int foo( void ) __attribute__(($1)); - ], - [error], [ - int foo( void ) __attribute__(($1(""))); - ], - [externally_visible], [ - int foo( void ) __attribute__(($1)); - ], - [fallthrough], [ - void foo( int x ) {switch (x) { case 1: __attribute__(($1)); case 2: break ; }}; - ], - [flatten], [ - int foo( void ) __attribute__(($1)); - ], - [format], [ - int foo(const char *p, ...) __attribute__(($1(printf, 1, 2))); - ], - [gnu_format], [ - int foo(const char *p, ...) __attribute__((format(gnu_printf, 1, 2))); - ], - [format_arg], [ - char *foo(const char *p) __attribute__(($1(1))); - ], - [gnu_inline], [ - inline __attribute__(($1)) int foo( void ) { return 0; } - ], - [hot], [ - int foo( void ) __attribute__(($1)); - ], - [ifunc], [ - int my_foo( void ) { return 0; } - static int (*resolve_foo(void))(void) { return my_foo; } - int foo( void ) __attribute__(($1("resolve_foo"))); - ], - [leaf], [ - __attribute__(($1)) int foo( void ) { return 0; } - ], - [malloc], [ - void *foo( void ) __attribute__(($1)); - ], - [noclone], [ - int foo( void ) __attribute__(($1)); - ], - [noinline], [ - __attribute__(($1)) int foo( void ) { return 0; } - ], - [nonnull], [ - int foo(char *p) __attribute__(($1(1))); - ], - [noreturn], [ - void foo( void ) __attribute__(($1)); - ], - [nothrow], [ - int foo( void ) __attribute__(($1)); - ], - [optimize], [ - __attribute__(($1(3))) int foo( void ) { return 0; } - ], - [pure], [ - int foo( void ) __attribute__(($1)); - ], - [sentinel], [ - int foo(void *p, ...) __attribute__(($1)); - ], - [sentinel_position], [ - int foo(void *p, ...) __attribute__(($1(1))); - ], - [returns_nonnull], [ - void *foo( void ) __attribute__(($1)); - ], - [unused], [ - int foo( void ) __attribute__(($1)); - ], - [used], [ - int foo( void ) __attribute__(($1)); - ], - [visibility], [ - int foo_def( void ) __attribute__(($1("default"))); - int foo_hid( void ) __attribute__(($1("hidden"))); - int foo_int( void ) __attribute__(($1("internal"))); - int foo_pro( void ) __attribute__(($1("protected"))); - ], - [warning], [ - int foo( void ) __attribute__(($1(""))); - ], - [warn_unused_result], [ - int foo( void ) __attribute__(($1)); - ], - [weak], [ - int foo( void ) __attribute__(($1)); - ], - [weakref], [ - static int foo( void ) { return 0; } - static int bar( void ) __attribute__(($1("foo"))); - ], - [ - m4_warn([syntax], [Unsupported attribute $1, the test may fail]) - int foo( void ) __attribute__(($1)); - ] - )], []) - ], - dnl GCC doesn't exit with an error if an unknown attribute is - dnl provided but only outputs a warning, so accept the attribute - dnl only if no warning were issued. - [AS_IF([grep -- -Wattributes conftest.err], - [AS_VAR_SET([ac_var], [no])], - [AS_VAR_SET([ac_var], [yes])])], - [AS_VAR_SET([ac_var], [no])]) - ]) - - AS_IF([test yes = AS_VAR_GET([ac_var])], - [AC_DEFINE_UNQUOTED(AS_TR_CPP(HAVE_FUNC_ATTRIBUTE_$1), 1, - [Define to 1 if the system has the `$1' function attribute])], []) - - AS_VAR_POPDEF([ac_var]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/ax_path_lib_pcre.m4 b/recipes/wip/files/mc/source/m4.include/ax_path_lib_pcre.m4 deleted file mode 100644 index 5355dd700d..0000000000 --- a/recipes/wip/files/mc/source/m4.include/ax_path_lib_pcre.m4 +++ /dev/null @@ -1,69 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_path_lib_pcre.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_PATH_LIB_PCRE [(A/NA)] -# -# DESCRIPTION -# -# check for pcre lib and set PCRE_LIBS and PCRE_CFLAGS accordingly. -# -# also provide --with-pcre option that may point to the $prefix of the -# pcre installation - the macro will check $pcre/include and $pcre/lib to -# contain the necessary files. -# -# the usual two ACTION-IF-FOUND / ACTION-IF-NOT-FOUND are supported and -# they can take advantage of the LIBS/CFLAGS additions. -# -# LICENSE -# -# Copyright (c) 2008 Guido U. Draheim -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 9 - -AC_DEFUN([AX_PATH_LIB_PCRE],[dnl -AC_MSG_CHECKING([lib pcre]) -AC_ARG_WITH(pcre, -[ --with-pcre[[=prefix]] compile xmlpcre part (via libpcre check)],, - with_pcre="yes") -if test ".$with_pcre" = ".no" ; then - AC_MSG_RESULT([disabled]) - m4_ifval($2,$2) -else - AC_MSG_RESULT([(testing)]) - AC_CHECK_LIB(pcre, pcre_study) - if test "$ac_cv_lib_pcre_pcre_study" = "yes" ; then - PCRE_LIBS="-lpcre" - AC_MSG_CHECKING([lib pcre]) - AC_MSG_RESULT([$PCRE_LIBS]) - m4_ifval($1,$1) - else - OLDLDFLAGS="$LDFLAGS" ; LDFLAGS="$LDFLAGS -L$with_pcre/lib" - OLDCPPFLAGS="$CPPFLAGS" ; CPPFLAGS="$CPPFLAGS -I$with_pcre/include" - AC_CHECK_LIB(pcre, pcre_compile) - CPPFLAGS="$OLDCPPFLAGS" - LDFLAGS="$OLDLDFLAGS" - if test "$ac_cv_lib_pcre_pcre_compile" = "yes" ; then - AC_MSG_RESULT(.setting PCRE_LIBS -L$with_pcre/lib -lpcre) - PCRE_LIBS="-L$with_pcre/lib -lpcre" - test -d "$with_pcre/include" && PCRE_CFLAGS="-I$with_pcre/include" - AC_MSG_CHECKING([lib pcre]) - AC_MSG_RESULT([$PCRE_LIBS]) - m4_ifval($1,$1) - else - AC_MSG_CHECKING([lib pcre]) - AC_MSG_RESULT([no, (WARNING)]) - m4_ifval($2,$2) - fi - fi -fi -AC_SUBST([PCRE_LIBS]) -AC_SUBST([PCRE_CFLAGS]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/ax_require_defined.m4 b/recipes/wip/files/mc/source/m4.include/ax_require_defined.m4 deleted file mode 100644 index 17c3eab7da..0000000000 --- a/recipes/wip/files/mc/source/m4.include/ax_require_defined.m4 +++ /dev/null @@ -1,37 +0,0 @@ -# =========================================================================== -# https://www.gnu.org/software/autoconf-archive/ax_require_defined.html -# =========================================================================== -# -# SYNOPSIS -# -# AX_REQUIRE_DEFINED(MACRO) -# -# DESCRIPTION -# -# AX_REQUIRE_DEFINED is a simple helper for making sure other macros have -# been defined and thus are available for use. This avoids random issues -# where a macro isn't expanded. Instead the configure script emits a -# non-fatal: -# -# ./configure: line 1673: AX_CFLAGS_WARN_ALL: command not found -# -# It's like AC_REQUIRE except it doesn't expand the required macro. -# -# Here's an example: -# -# AX_REQUIRE_DEFINED([AX_CHECK_LINK_FLAG]) -# -# LICENSE -# -# Copyright (c) 2014 Mike Frysinger -# -# Copying and distribution of this file, with or without modification, are -# permitted in any medium without royalty provided the copyright notice -# and this notice are preserved. This file is offered as-is, without any -# warranty. - -#serial 2 - -AC_DEFUN([AX_REQUIRE_DEFINED], [dnl - m4_ifndef([$1], [m4_fatal([macro ]$1[ is not defined; is a m4 file missing?])]) -])dnl AX_REQUIRE_DEFINED diff --git a/recipes/wip/files/mc/source/m4.include/dx_doxygen.m4 b/recipes/wip/files/mc/source/m4.include/dx_doxygen.m4 deleted file mode 100644 index eda391a408..0000000000 --- a/recipes/wip/files/mc/source/m4.include/dx_doxygen.m4 +++ /dev/null @@ -1,325 +0,0 @@ -# -# Copyright 2007 Oren Ben-Kiki -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or -# implied. See the License for the specific language governing -# permissions and limitations under the License. -# - - -# Generate automatic documentation using Doxygen. Works in concert with the -# aminclude.m4 file and a compatible doxygen configuration file. Defines the -# following public macros: -# -# DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature. -# Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics, -# 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI' -# for generating a separate .chi file by the .chm file, and 'MAN', 'RTF', -# 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment -# variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide' -# paper size. -# -# By default, HTML, PDF and PS documentation is generated as this seems to be -# the most popular and portable combination. MAN pages created by Doxygen are -# usually problematic, though by picking an appropriate subset and doing some -# massaging they might be better than nothing. CHM and RTF are specific for MS -# (note that you can't generate both HTML and CHM at the same time). The XML is -# rather useless unless you apply specialized post-processing to it. -# -# The macro mainly controls the default state of the feature. The use can -# override the default by specifying --enable or --disable. The macros ensure -# that contradictory flags are not given (e.g., --enable-doxygen-html and -# --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.) -# Finally, each feature will be automatically disabled (with a warning) if the -# required programs are missing. -# -# Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with -# the following parameters: a one-word name for the project for use as a -# filename base etc., an optional configuration file name (the default is -# 'Doxyfile', the same as Doxygen's default), and an optional output directory -# name (the default is 'doxygen-doc'). - -## ----------## -## Defaults. ## -## ----------## - -DX_ENV="" -AC_DEFUN([DX_FEATURE_doc], ON) -AC_DEFUN([DX_FEATURE_dot], ON) -AC_DEFUN([DX_FEATURE_man], OFF) -AC_DEFUN([DX_FEATURE_html], ON) -AC_DEFUN([DX_FEATURE_chm], OFF) -AC_DEFUN([DX_FEATURE_chi], OFF) -AC_DEFUN([DX_FEATURE_rtf], OFF) -AC_DEFUN([DX_FEATURE_xml], OFF) -AC_DEFUN([DX_FEATURE_pdf], ON) -AC_DEFUN([DX_FEATURE_ps], ON) - -## --------------- ## -## Private macros. ## -## --------------- ## - -# DX_ENV_APPEND(VARIABLE, VALUE) -# ------------------------------ -# Append VARIABLE="VALUE" to DX_ENV for invoking doxygen. -AC_DEFUN([DX_ENV_APPEND], [AC_SUBST([DX_ENV], ["$DX_ENV $1='$2'"])]) - -# DX_DIRNAME_EXPR -# --------------- -# Expand into a shell expression prints the directory part of a path. -AC_DEFUN([DX_DIRNAME_EXPR], - [[expr ".$1" : '\(\.\)[^/]*$' \| "x$1" : 'x\(.*\)/[^/]*$']]) - -# DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF) -# ------------------------------------- -# Expands according to the M4 (static) status of the feature. -AC_DEFUN([DX_IF_FEATURE], [ifelse(DX_FEATURE_$1, ON, [$2], [$3])]) - -# DX_REQUIRE_PROG(VARIABLE, PROGRAM) -# ---------------------------------- -# Require the specified program to be found for the DX_CURRENT_FEATURE to work. -AC_DEFUN([DX_REQUIRE_PROG], [ -AC_PATH_TOOL([$1], [$2]) -if test x"$DX_FLAG_[]DX_CURRENT_FEATURE$$1" = x1; then - AC_MSG_WARN([$2 not found - will not DX_CURRENT_DESCRIPTION]) - AC_SUBST([DX_FLAG_]DX_CURRENT_FEATURE, 0) -fi -]) - -# DX_TEST_FEATURE(FEATURE) -# ------------------------ -# Expand to a shell expression testing whether the feature is active. -AC_DEFUN([DX_TEST_FEATURE], [test "$DX_FLAG_$1" = 1]) - -# DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE) -# ------------------------------------------------- -# Verify that a required features has the right state before trying to turn on -# the DX_CURRENT_FEATURE. -AC_DEFUN([DX_CHECK_DEPEND], [ -test x"$DX_FLAG_$1" = x"$2" \ -|| AC_MSG_ERROR([doxygen-DX_CURRENT_FEATURE ifelse([$2], 1, - requires, contradicts) doxygen-DX_CURRENT_FEATURE]) -]) - -# DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE) -# ---------------------------------------------------------- -# Turn off the DX_CURRENT_FEATURE if the required feature is off. -AC_DEFUN([DX_CLEAR_DEPEND], [ -test x"$DX_FLAG_$1" = x"$2" || AC_SUBST([DX_FLAG_]DX_CURRENT_FEATURE, 0) -]) - -# DX_FEATURE_ARG(FEATURE, DESCRIPTION, -# CHECK_DEPEND, CLEAR_DEPEND, -# REQUIRE, DO-IF-ON, DO-IF-OFF) -# -------------------------------------------- -# Parse the command-line option controlling a feature. CHECK_DEPEND is called -# if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND), -# otherwise CLEAR_DEPEND is called to turn off the default state if a required -# feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional -# requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and -# DO-IF-ON or DO-IF-OFF are called according to the final state of the feature. -AC_DEFUN([DX_ARG_ABLE], [ - AC_DEFUN([DX_CURRENT_FEATURE], [$1]) - AC_DEFUN([DX_CURRENT_DESCRIPTION], [$2]) - AC_ARG_ENABLE(doxygen-$1, - [AS_HELP_STRING(DX_IF_FEATURE([$1], [--disable-doxygen-$1], - [--enable-doxygen-$1]), - DX_IF_FEATURE([$1], [don't $2], [$2]))], - [ -case "$enableval" in -#( -y|Y|yes|Yes|YES) - AC_SUBST([DX_FLAG_$1], 1) - $3 -;; #( -n|N|no|No|NO) - AC_SUBST([DX_FLAG_$1], 0) -;; #( -*) - AC_MSG_ERROR([invalid value '$enableval' given to doxygen-$1]) -;; -esac -], [ -AC_SUBST([DX_FLAG_$1], [DX_IF_FEATURE([$1], 1, 0)]) -$4 -]) -if DX_TEST_FEATURE([$1]); then - $5 - : -fi -if DX_TEST_FEATURE([$1]); then - AM_CONDITIONAL(DX_COND_$1, :) - $6 - : -else - AM_CONDITIONAL(DX_COND_$1, false) - $7 - : -fi -]) - -## -------------- ## -## Public macros. ## -## -------------- ## - -# DX_XXX_FEATURE(DEFAULT_STATE) -# ----------------------------- -AC_DEFUN([DX_DOXYGEN_FEATURE], [AC_DEFUN([DX_FEATURE_doc], [$1])]) -AC_DEFUN([DX_MAN_FEATURE], [AC_DEFUN([DX_FEATURE_man], [$1])]) -AC_DEFUN([DX_HTML_FEATURE], [AC_DEFUN([DX_FEATURE_html], [$1])]) -AC_DEFUN([DX_CHM_FEATURE], [AC_DEFUN([DX_FEATURE_chm], [$1])]) -AC_DEFUN([DX_CHI_FEATURE], [AC_DEFUN([DX_FEATURE_chi], [$1])]) -AC_DEFUN([DX_RTF_FEATURE], [AC_DEFUN([DX_FEATURE_rtf], [$1])]) -AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])]) -AC_DEFUN([DX_XML_FEATURE], [AC_DEFUN([DX_FEATURE_xml], [$1])]) -AC_DEFUN([DX_PDF_FEATURE], [AC_DEFUN([DX_FEATURE_pdf], [$1])]) -AC_DEFUN([DX_PS_FEATURE], [AC_DEFUN([DX_FEATURE_ps], [$1])]) - -# DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR]) -# --------------------------------------------------------- -# PROJECT also serves as the base name for the documentation files. -# The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc". -AC_DEFUN([DX_INIT_DOXYGEN], [ - -# Files: -AC_SUBST([DX_PROJECT], [$1]) -AC_SUBST([DX_CONFIG], [ifelse([$2], [], Doxyfile, [$2])]) -AC_SUBST([DX_DOCDIR], [ifelse([$3], [], doxygen-doc, [$3])]) - -# Environment variables used inside doxygen.cfg: -SRCDIR=`cd $srcdir; pwd` -DX_ENV_APPEND(SRCDIR, $SRCDIR) -DX_ENV_APPEND(PROJECT, $DX_PROJECT) -DX_ENV_APPEND(DOCDIR, $DX_DOCDIR) -DX_ENV_APPEND(VERSION, $PACKAGE_VERSION) - -# Doxygen itself: -DX_ARG_ABLE(doc, [generate any doxygen documentation], - [], - [], - [DX_REQUIRE_PROG([DX_DOXYGEN], doxygen) - DX_REQUIRE_PROG([DX_PERL], perl)], - [DX_ENV_APPEND(PERL_PATH, $DX_PERL)]) - -# Dot for graphics: -DX_ARG_ABLE(dot, [generate graphics for doxygen documentation], - [DX_CHECK_DEPEND(doc, 1)], - [DX_CLEAR_DEPEND(doc, 1)], - [DX_REQUIRE_PROG([DX_DOT], dot)], - [DX_ENV_APPEND(HAVE_DOT, YES) - DX_ENV_APPEND(DOT_PATH, [`DX_DIRNAME_EXPR($DX_DOT)`])], - [DX_ENV_APPEND(HAVE_DOT, NO)]) - -# Man pages generation: -DX_ARG_ABLE(man, [generate doxygen manual pages], - [DX_CHECK_DEPEND(doc, 1)], - [DX_CLEAR_DEPEND(doc, 1)], - [], - [DX_ENV_APPEND(GENERATE_MAN, YES)], - [DX_ENV_APPEND(GENERATE_MAN, NO)]) - -# RTF file generation: -DX_ARG_ABLE(rtf, [generate doxygen RTF documentation], - [DX_CHECK_DEPEND(doc, 1)], - [DX_CLEAR_DEPEND(doc, 1)], - [], - [DX_ENV_APPEND(GENERATE_RTF, YES)], - [DX_ENV_APPEND(GENERATE_RTF, NO)]) - -# XML file generation: -DX_ARG_ABLE(xml, [generate doxygen XML documentation], - [DX_CHECK_DEPEND(doc, 1)], - [DX_CLEAR_DEPEND(doc, 1)], - [], - [DX_ENV_APPEND(GENERATE_XML, YES)], - [DX_ENV_APPEND(GENERATE_XML, NO)]) - -# (Compressed) HTML help generation: -DX_ARG_ABLE(chm, [generate doxygen compressed HTML help documentation], - [DX_CHECK_DEPEND(doc, 1)], - [DX_CLEAR_DEPEND(doc, 1)], - [DX_REQUIRE_PROG([DX_HHC], hhc)], - [DX_ENV_APPEND(HHC_PATH, $DX_HHC) - DX_ENV_APPEND(GENERATE_HTML, YES) - DX_ENV_APPEND(GENERATE_HTMLHELP, YES)], - [DX_ENV_APPEND(GENERATE_HTMLHELP, NO)]) - -# Separate CHI file generation. -DX_ARG_ABLE(chi, [generate doxygen separate compressed HTML help index file], - [DX_CHECK_DEPEND(chm, 1)], - [DX_CLEAR_DEPEND(chm, 1)], - [], - [DX_ENV_APPEND(GENERATE_CHI, YES)], - [DX_ENV_APPEND(GENERATE_CHI, NO)]) - -# Plain HTML pages generation: -DX_ARG_ABLE(html, [generate doxygen plain HTML documentation], - [DX_CHECK_DEPEND(doc, 1) DX_CHECK_DEPEND(chm, 0)], - [DX_CLEAR_DEPEND(doc, 1) DX_CLEAR_DEPEND(chm, 0)], - [], - [DX_ENV_APPEND(GENERATE_HTML, YES)], - [DX_TEST_FEATURE(chm) || DX_ENV_APPEND(GENERATE_HTML, NO)]) - -# PostScript file generation: -DX_ARG_ABLE(ps, [generate doxygen PostScript documentation], - [DX_CHECK_DEPEND(doc, 1)], - [DX_CLEAR_DEPEND(doc, 1)], - [DX_REQUIRE_PROG([DX_LATEX], latex) - DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex) - DX_REQUIRE_PROG([DX_DVIPS], dvips) - DX_REQUIRE_PROG([DX_EGREP], egrep)]) - -# PDF file generation: -DX_ARG_ABLE(pdf, [generate doxygen PDF documentation], - [DX_CHECK_DEPEND(doc, 1)], - [DX_CLEAR_DEPEND(doc, 1)], - [DX_REQUIRE_PROG([DX_PDFLATEX], pdflatex) - DX_REQUIRE_PROG([DX_MAKEINDEX], makeindex) - DX_REQUIRE_PROG([DX_EGREP], egrep)]) - -# LaTeX generation for PS and/or PDF: -if DX_TEST_FEATURE(ps) || DX_TEST_FEATURE(pdf); then - AM_CONDITIONAL(DX_COND_latex, :) - DX_ENV_APPEND(GENERATE_LATEX, YES) -else - AM_CONDITIONAL(DX_COND_latex, false) - DX_ENV_APPEND(GENERATE_LATEX, NO) -fi - -# Paper size for PS and/or PDF: -AC_ARG_VAR(DOXYGEN_PAPER_SIZE, - [a4wide (default), a4, letter, legal or executive]) -case "$DOXYGEN_PAPER_SIZE" in -#( -"") - AC_SUBST(DOXYGEN_PAPER_SIZE, "") -;; #( -a4wide|a4|letter|legal|executive) - DX_ENV_APPEND(PAPER_SIZE, $DOXYGEN_PAPER_SIZE) -;; #( -*) - AC_MSG_ERROR([unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE']) -;; -esac - -#For debugging: -#echo DX_FLAG_doc=$DX_FLAG_doc -#echo DX_FLAG_dot=$DX_FLAG_dot -#echo DX_FLAG_man=$DX_FLAG_man -#echo DX_FLAG_html=$DX_FLAG_html -#echo DX_FLAG_chm=$DX_FLAG_chm -#echo DX_FLAG_chi=$DX_FLAG_chi -#echo DX_FLAG_rtf=$DX_FLAG_rtf -#echo DX_FLAG_xml=$DX_FLAG_xml -#echo DX_FLAG_pdf=$DX_FLAG_pdf -#echo DX_FLAG_ps=$DX_FLAG_ps -#echo DX_ENV=$DX_ENV -]) diff --git a/recipes/wip/files/mc/source/m4.include/gnulib/fstypename.m4 b/recipes/wip/files/mc/source/m4.include/gnulib/fstypename.m4 deleted file mode 100644 index 20d2f05cfd..0000000000 --- a/recipes/wip/files/mc/source/m4.include/gnulib/fstypename.m4 +++ /dev/null @@ -1,23 +0,0 @@ -#serial 6 - -dnl From Jim Meyering. -dnl -dnl See if struct statfs has the f_fstypename member. -dnl If so, define HAVE_STRUCT_STATFS_F_FSTYPENAME. -dnl - -# Copyright (C) 1998-1999, 2001, 2004, 2006, 2009-2011 Free Software -# Foundation, Inc. -# This file is free software; the Free Software Foundation -# gives unlimited permission to copy and/or distribute it, -# with or without modifications, as long as this notice is preserved. - -AC_DEFUN([gl_FSTYPENAME], -[ - AC_CHECK_MEMBERS([struct statfs.f_fstypename],,, - [ - #include - #include - #include - ]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/gnulib/fsusage.m4 b/recipes/wip/files/mc/source/m4.include/gnulib/fsusage.m4 deleted file mode 100644 index c15cfca4d3..0000000000 --- a/recipes/wip/files/mc/source/m4.include/gnulib/fsusage.m4 +++ /dev/null @@ -1,306 +0,0 @@ -# serial 35 -# Obtaining file system usage information. - -# Copyright (C) 1997-1998, 2000-2001, 2003-2020 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. - -# Written by Jim Meyering. - -AC_DEFUN([gl_FSUSAGE], -[ - AC_CHECK_HEADERS_ONCE([sys/param.h]) - AC_CHECK_HEADERS_ONCE([sys/vfs.h sys/fs_types.h]) - AC_CHECK_HEADERS([sys/mount.h], [], [], - [AC_INCLUDES_DEFAULT - [#if HAVE_SYS_PARAM_H - #include - #endif]]) - gl_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no]) -]) - -# Try to determine how a program can obtain file system usage information. -# If successful, define the appropriate symbol (see fsusage.c) and -# execute ACTION-IF-FOUND. Otherwise, execute ACTION-IF-NOT-FOUND. -# -# gl_FILE_SYSTEM_USAGE([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) - -AC_DEFUN([gl_FILE_SYSTEM_USAGE], -[ - dnl Enable large-file support. This has the effect of changing the size - dnl of field f_blocks in 'struct statvfs' from 32 bit to 64 bit on - dnl glibc/Hurd, HP-UX 11, Solaris (32-bit mode). It also changes the size - dnl of field f_blocks in 'struct statfs' from 32 bit to 64 bit on - dnl Mac OS X >= 10.5 (32-bit mode). - AC_REQUIRE([AC_SYS_LARGEFILE]) - - ac_fsusage_space=no - - # Perform only the link test since it seems there are no variants of the - # statvfs function. This check is more than just AC_CHECK_FUNCS([statvfs]) - # because that got a false positive on SCO OSR5. Adding the declaration - # of a 'struct statvfs' causes this test to fail (as it should) on such - # systems. That system is reported to work fine with STAT_STATFS4 which - # is what it gets when this test fails. - if test $ac_fsusage_space = no; then - # glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0, - # OpenBSD >= 4.4, AIX, HP-UX, IRIX, Solaris, Cygwin, Interix, BeOS. - AC_CACHE_CHECK([for statvfs function (SVR4)], - [fu_cv_sys_stat_statvfs], - [AC_LINK_IFELSE( - [AC_LANG_PROGRAM([[ -#include -#ifdef __osf__ -"Do not use Tru64's statvfs implementation" -#endif - -#include - -struct statvfs fsd; - -#if defined __APPLE__ && defined __MACH__ -#include -/* On Mac OS X >= 10.5, f_blocks in 'struct statvfs' is a 32-bit quantity; - that commonly limits file systems to 4 TiB. Whereas f_blocks in - 'struct statfs' is a 64-bit type, thanks to the large-file support - that was enabled above. In this case, don't use statvfs(); use statfs() - instead. */ -int check_f_blocks_size[sizeof fsd.f_blocks * CHAR_BIT <= 32 ? -1 : 1]; -#endif -]], - [[statvfs (0, &fsd);]])], - [fu_cv_sys_stat_statvfs=yes], - [fu_cv_sys_stat_statvfs=no]) - ]) - if test $fu_cv_sys_stat_statvfs = yes; then - ac_fsusage_space=yes - # AIX >= 5.2 has statvfs64 that has a wider f_blocks field than statvfs. - # glibc, HP-UX, IRIX, Solaris have statvfs64 as well, but on these systems - # statvfs with large-file support is already equivalent to statvfs64. - AC_CACHE_CHECK([whether to use statvfs64], - [fu_cv_sys_stat_statvfs64], - [AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#include - #include - struct statvfs64 fsd; - int check_f_blocks_larger_in_statvfs64 - [sizeof (((struct statvfs64 *) 0)->f_blocks) - > sizeof (((struct statvfs *) 0)->f_blocks) - ? 1 : -1]; - ]], - [[statvfs64 (0, &fsd);]])], - [fu_cv_sys_stat_statvfs64=yes], - [fu_cv_sys_stat_statvfs64=no]) - ]) - if test $fu_cv_sys_stat_statvfs64 = yes; then - AC_DEFINE([STAT_STATVFS64], [1], - [Define if statvfs64 should be preferred over statvfs.]) - else - AC_DEFINE([STAT_STATVFS], [1], - [Define if there is a function named statvfs. (SVR4)]) - fi - fi - fi - - # Check for this unconditionally so we have a - # good fallback on glibc/Linux > 2.6 < 2.6.36 - AC_CACHE_CHECK([for two-argument statfs with statfs.f_frsize member], - [fu_cv_sys_stat_statfs2_frsize], - [AC_RUN_IFELSE( - [AC_LANG_SOURCE([[ -#ifdef HAVE_SYS_PARAM_H -#include -#endif -#ifdef HAVE_SYS_MOUNT_H -#include -#endif -#ifdef HAVE_SYS_VFS_H -#include -#endif - int - main () - { - struct statfs fsd; - fsd.f_frsize = 0; - return statfs (".", &fsd) != 0; - }]])], - [fu_cv_sys_stat_statfs2_frsize=yes], - [fu_cv_sys_stat_statfs2_frsize=no], - [fu_cv_sys_stat_statfs2_frsize=no]) - ]) - if test $fu_cv_sys_stat_statfs2_frsize = yes; then - ac_fsusage_space=yes - AC_DEFINE([STAT_STATFS2_FRSIZE], [1], - [Define if statfs takes 2 args and struct statfs has a field named f_frsize. - (glibc/Linux > 2.6)]) - fi - - if test $ac_fsusage_space = no; then - # DEC Alpha running OSF/1 - AC_CACHE_CHECK([for 3-argument statfs function (DEC OSF/1)], - [fu_cv_sys_stat_statfs3_osf1], - [AC_RUN_IFELSE([AC_LANG_SOURCE([[ -#include -#include -#include - int - main () - { - struct statfs fsd; - fsd.f_fsize = 0; - return statfs (".", &fsd, sizeof (struct statfs)) != 0; - }]])], - [fu_cv_sys_stat_statfs3_osf1=yes], - [fu_cv_sys_stat_statfs3_osf1=no], - [fu_cv_sys_stat_statfs3_osf1=no]) - ]) - if test $fu_cv_sys_stat_statfs3_osf1 = yes; then - ac_fsusage_space=yes - AC_DEFINE([STAT_STATFS3_OSF1], [1], - [Define if statfs takes 3 args. (DEC Alpha running OSF/1)]) - fi - fi - - if test $ac_fsusage_space = no; then - # glibc/Linux, Mac OS X, FreeBSD < 5.0, NetBSD < 3.0, OpenBSD < 4.4. - # (glibc/{Hurd,kFreeBSD}, FreeBSD >= 5.0, NetBSD >= 3.0, - # OpenBSD >= 4.4, AIX, HP-UX, OSF/1, Cygwin already handled above.) - # (On IRIX you need to include , not only and - # .) - # (On Solaris, statfs has 4 arguments.) - AC_CACHE_CHECK([for two-argument statfs with statfs.f_bsize member (AIX, 4.3BSD)], - [fu_cv_sys_stat_statfs2_bsize], - [AC_RUN_IFELSE([AC_LANG_SOURCE([[ -#ifdef HAVE_SYS_PARAM_H -#include -#endif -#ifdef HAVE_SYS_MOUNT_H -#include -#endif -#ifdef HAVE_SYS_VFS_H -#include -#endif - int - main () - { - struct statfs fsd; - fsd.f_bsize = 0; - return statfs (".", &fsd) != 0; - }]])], - [fu_cv_sys_stat_statfs2_bsize=yes], - [fu_cv_sys_stat_statfs2_bsize=no], - [fu_cv_sys_stat_statfs2_bsize=no]) - ]) - if test $fu_cv_sys_stat_statfs2_bsize = yes; then - ac_fsusage_space=yes - AC_DEFINE([STAT_STATFS2_BSIZE], [1], - [Define if statfs takes 2 args and struct statfs has a field named f_bsize. - (4.3BSD, SunOS 4, HP-UX)]) - fi - fi - - if test $ac_fsusage_space = no; then - # SVR3 - # (Solaris already handled above.) - AC_CACHE_CHECK([for four-argument statfs (SVR3)], - [fu_cv_sys_stat_statfs4], - [AC_RUN_IFELSE([AC_LANG_SOURCE([[ -#include -#include - int - main () - { - struct statfs fsd; - return statfs (".", &fsd, sizeof fsd, 0) != 0; - }]])], - [fu_cv_sys_stat_statfs4=yes], - [fu_cv_sys_stat_statfs4=no], - [fu_cv_sys_stat_statfs4=no]) - ]) - if test $fu_cv_sys_stat_statfs4 = yes; then - ac_fsusage_space=yes - AC_DEFINE([STAT_STATFS4], [1], - [Define if statfs takes 4 args. (SVR3, old Irix)]) - fi - fi - - if test $ac_fsusage_space = no; then - # 4.4BSD and older NetBSD - # (OSF/1 already handled above.) - # (On AIX, you need to include , not only .) - # (On Solaris, statfs has 4 arguments and 'struct statfs' is not declared in - # .) - AC_CACHE_CHECK([for two-argument statfs with statfs.f_fsize member (4.4BSD and NetBSD)], - [fu_cv_sys_stat_statfs2_fsize], - [AC_RUN_IFELSE([AC_LANG_SOURCE([[ -#include -#ifdef HAVE_SYS_PARAM_H -#include -#endif -#ifdef HAVE_SYS_MOUNT_H -#include -#endif - int - main () - { - struct statfs fsd; - fsd.f_fsize = 0; - return statfs (".", &fsd) != 0; - }]])], - [fu_cv_sys_stat_statfs2_fsize=yes], - [fu_cv_sys_stat_statfs2_fsize=no], - [fu_cv_sys_stat_statfs2_fsize=no]) - ]) - if test $fu_cv_sys_stat_statfs2_fsize = yes; then - ac_fsusage_space=yes - AC_DEFINE([STAT_STATFS2_FSIZE], [1], - [Define if statfs takes 2 args and struct statfs has a field named f_fsize. - (4.4BSD, NetBSD)]) - fi - fi - - AS_IF([test $ac_fsusage_space = yes], [$1], [$2]) - -]) - - -# Check for SunOS statfs brokenness wrt partitions 2GB and larger. -# If exists and struct statfs has a member named f_spare, -# enable the work-around code in fsusage.c. -AC_DEFUN([gl_STATFS_TRUNCATES], -[ - AC_CACHE_CHECK([for statfs that truncates block counts], - [fu_cv_sys_truncating_statfs], - [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[ -#if !defined(sun) && !defined(__sun) -choke -- this is a workaround for a Sun-specific problem -#endif -#include -#include - ]], - [[struct statfs t; long c = *(t.f_spare); - if (c) return 0; - ]])], - [fu_cv_sys_truncating_statfs=yes], - [fu_cv_sys_truncating_statfs=no]) - ]) - if test $fu_cv_sys_truncating_statfs = yes; then - AC_DEFINE([STATFS_TRUNCATES_BLOCK_COUNTS], [1], - [Define if the block counts reported by statfs may be truncated to 2GB - and the correct values may be stored in the f_spare array. - (SunOS 4.1.2, 4.1.3, and 4.1.3_U1 are reported to have this problem. - SunOS 4.1.1 seems not to be affected.)]) - fi -]) - - -# Prerequisites of lib/fsusage.c not done by gl_FILE_SYSTEM_USAGE. -AC_DEFUN([gl_PREREQ_FSUSAGE_EXTRA], -[ - AC_CHECK_HEADERS([sys/fs/s5param.h sys/statfs.h]) - gl_STATFS_TRUNCATES -]) diff --git a/recipes/wip/files/mc/source/m4.include/gnulib/mc-gnulib-common.m4 b/recipes/wip/files/mc/source/m4.include/gnulib/mc-gnulib-common.m4 deleted file mode 100644 index 124ffecf19..0000000000 --- a/recipes/wip/files/mc/source/m4.include/gnulib/mc-gnulib-common.m4 +++ /dev/null @@ -1,57 +0,0 @@ -# gnulib-common.m4 -# serial 101 -dnl Copyright (C) 2007-2024 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_PREREQ([2.62]) - - -# gl_CONDITIONAL(conditional, condition) -# is like AM_CONDITIONAL(conditional, condition), except that it does not -# produce an error -# configure: error: conditional "..." was never defined. -# Usually this means the macro was only invoked conditionally. -# when only invoked conditionally. Instead, in that case, both the _TRUE -# and the _FALSE case are disabled. -AC_DEFUN([gl_CONDITIONAL], -[ - pushdef([AC_CONFIG_COMMANDS_PRE], [:])dnl - AM_CONDITIONAL([$1], [$2]) - popdef([AC_CONFIG_COMMANDS_PRE])dnl - if test -z "${[$1]_TRUE}" && test -z "${[$1]_FALSE}"; then - [$1]_TRUE='#' - [$1]_FALSE='#' - fi -]) - -dnl gl_CONDITIONAL_HEADER([foo.h]) -dnl takes a shell variable GL_GENERATE_FOO_H (with value true or false) as input -dnl and produces -dnl - an AC_SUBSTed variable FOO_H that is either a file name or empty, based -dnl on whether GL_GENERATE_FOO_H is true or false, -dnl - an Automake conditional GL_GENERATE_FOO_H that evaluates to the value of -dnl the shell variable GL_GENERATE_FOO_H. -AC_DEFUN([gl_CONDITIONAL_HEADER], -[ - m4_pushdef([gl_header_name], AS_TR_SH(m4_toupper($1))) - m4_pushdef([gl_generate_var], [GL_GENERATE_]AS_TR_SH(m4_toupper($1))) - m4_pushdef([gl_generate_cond], [GL_GENERATE_]AS_TR_SH(m4_toupper($1))) - case "$gl_generate_var" in - false) gl_header_name='' ;; - true) - dnl It is OK to use a .h file in lib/ from within tests/, but not vice - dnl versa. - if test -z "$gl_header_name"; then - gl_header_name="${gl_source_base_prefix}$1" - fi - ;; - *) echo "*** gl_generate_var is not set correctly" 1>&2; exit 1 ;; - esac - AC_SUBST(gl_header_name) - gl_CONDITIONAL(gl_generate_cond, [$gl_generate_var]) - m4_popdef([gl_generate_cond]) - m4_popdef([gl_generate_var]) - m4_popdef([gl_header_name]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/gnulib/mode_t.m4 b/recipes/wip/files/mc/source/m4.include/gnulib/mode_t.m4 deleted file mode 100644 index 0cd40dba49..0000000000 --- a/recipes/wip/files/mc/source/m4.include/gnulib/mode_t.m4 +++ /dev/null @@ -1,26 +0,0 @@ -# mode_t.m4 serial 2 -dnl Copyright (C) 2009-2016 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. - -# For using mode_t, it's sufficient to use AC_TYPE_MODE_T and -# include . - -# Define PROMOTED_MODE_T to the type that is the result of "default argument -# promotion" (ISO C 6.5.2.2.(6)) of the type mode_t. -AC_DEFUN([gl_PROMOTED_TYPE_MODE_T], -[ - AC_REQUIRE([AC_TYPE_MODE_T]) - AC_CACHE_CHECK([for promoted mode_t type], [gl_cv_promoted_mode_t], [ - dnl Assume mode_t promotes to 'int' if and only if it is smaller than 'int', - dnl and to itself otherwise. This assumption is not guaranteed by the ISO C - dnl standard, but we don't know of any real-world counterexamples. - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], - [[typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];]])], - [gl_cv_promoted_mode_t='int'], - [gl_cv_promoted_mode_t='mode_t']) - ]) - AC_DEFINE_UNQUOTED([PROMOTED_MODE_T], [$gl_cv_promoted_mode_t], - [Define to the type that is the result of default argument promotions of type mode_t.]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/gnulib/mountlist.m4 b/recipes/wip/files/mc/source/m4.include/gnulib/mountlist.m4 deleted file mode 100644 index 49029ed752..0000000000 --- a/recipes/wip/files/mc/source/m4.include/gnulib/mountlist.m4 +++ /dev/null @@ -1,338 +0,0 @@ -# serial 15 -dnl Copyright (C) 2002-2006, 2009-2021 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 Jim Meyering. - -AC_PREREQ([2.60]) - -AC_DEFUN([gl_MOUNTLIST], -[ - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_CHECK_FUNCS([listmntent]) - AC_CHECK_HEADERS_ONCE([sys/param.h sys/statvfs.h]) - - # We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses - # NGROUPS (as the array dimension for a struct member) without a definition. - AC_CHECK_HEADERS([sys/ucred.h], [], [], [#include ]) - - AC_CHECK_HEADERS([sys/mount.h], [], [], - [AC_INCLUDES_DEFAULT - [#if HAVE_SYS_PARAM_H - #include - #endif - ]]) - - AC_CHECK_HEADERS([mntent.h sys/fs_types.h]) - getfsstat_includes="\ -$ac_includes_default -#if HAVE_SYS_PARAM_H -# include /* needed by powerpc-apple-darwin1.3.7 */ -#endif -#if HAVE_SYS_UCRED_H -# include /* needed for definition of NGROUPS */ -# include /* needed by powerpc-apple-darwin1.3.7 */ -#endif -#if HAVE_SYS_MOUNT_H -# include -#endif -#if HAVE_SYS_FS_TYPES_H -# include /* needed by powerpc-apple-darwin1.3.7 */ -#endif -" - AC_CHECK_MEMBERS([struct fsstat.f_fstypename],,,[$getfsstat_includes]) - - # Determine how to get the list of mounted file systems. - ac_list_mounted_fs= - - # If the getmntent function is available but not in the standard library, - # make sure LIBS contains the appropriate -l option. - AC_FUNC_GETMNTENT - - if test -z "$ac_list_mounted_fs"; then - # AIX. - AC_CACHE_CHECK([for mntctl function and struct vmount], - [fu_cv_sys_mounted_vmount], - [AC_PREPROC_IFELSE([AC_LANG_SOURCE([[#include ]])], - [fu_cv_sys_mounted_vmount=yes], - [fu_cv_sys_mounted_vmount=no])]) - if test $fu_cv_sys_mounted_vmount = yes; then - ac_list_mounted_fs=found - AC_DEFINE([MOUNTED_VMOUNT], [1], - [Define if there is a function named mntctl that can be used to read - the list of mounted file systems, and there is a system header file - that declares 'struct vmount'. (AIX)]) - fi - fi - - if test $ac_cv_func_getmntent = yes; then - - # This system has the getmntent function. - # Determine whether it's the one-argument variant or the two-argument one. - - if test -z "$ac_list_mounted_fs"; then - # glibc, HP-UX, IRIX, Cygwin, Android, also (obsolete) 4.3BSD, SunOS. - AC_CACHE_CHECK([for one-argument getmntent function], - [fu_cv_sys_mounted_getmntent1], - [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[ -/* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */ -#include - -#include -#if defined __ANDROID__ /* Android */ -# undef MOUNTED -# define MOUNTED "/proc/mounts" -#elif !defined MOUNTED -# if defined _PATH_MOUNTED /* GNU libc */ -# define MOUNTED _PATH_MOUNTED -# endif -# if defined MNT_MNTTAB /* HP-UX. */ -# define MOUNTED MNT_MNTTAB -# endif -#endif -]], - [[struct mntent *mnt = 0; char *table = MOUNTED; - if (sizeof mnt && sizeof table) return 0; - ]])], - [fu_cv_sys_mounted_getmntent1=yes], - [fu_cv_sys_mounted_getmntent1=no]) - ]) - if test $fu_cv_sys_mounted_getmntent1 = yes; then - ac_list_mounted_fs=found - AC_DEFINE([MOUNTED_GETMNTENT1], [1], - [Define if there is a function named getmntent for reading the list - of mounted file systems, and that function takes a single argument. - (4.3BSD, SunOS, HP-UX, Irix)]) - AC_CHECK_FUNCS([setmntent endmntent hasmntopt]) - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # Solaris >= 8. - AC_CACHE_CHECK([for getextmntent function], - [fu_cv_sys_mounted_getextmntent], - [AC_EGREP_HEADER([getextmntent], [sys/mnttab.h], - [fu_cv_sys_mounted_getextmntent=yes], - [fu_cv_sys_mounted_getextmntent=no])]) - if test $fu_cv_sys_mounted_getextmntent = yes; then - ac_list_mounted_fs=found - AC_DEFINE([MOUNTED_GETEXTMNTENT], [1], - [Define if there is a function named getextmntent for reading the list - of mounted file systems. (Solaris)]) - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # Solaris < 8, also (obsolete) SVR4. - # Solaris >= 8 has the two-argument getmntent but is already handled above. - AC_CACHE_CHECK([for two-argument getmntent function], - [fu_cv_sys_mounted_getmntent2], - [AC_EGREP_HEADER([getmntent], [sys/mnttab.h], - [fu_cv_sys_mounted_getmntent2=yes], - [fu_cv_sys_mounted_getmntent2=no]) - ]) - if test $fu_cv_sys_mounted_getmntent2 = yes; then - ac_list_mounted_fs=found - AC_DEFINE([MOUNTED_GETMNTENT2], [1], - [Define if there is a function named getmntent for reading the list of - mounted file systems, and that function takes two arguments. (SVR4)]) - AC_CHECK_FUNCS([hasmntopt]) - fi - fi - - fi - - if test -z "$ac_list_mounted_fs"; then - # OSF/1, also (obsolete) Apple Darwin 1.3. - # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h - - AC_CACHE_CHECK([for getfsstat function], - [fu_cv_sys_mounted_getfsstat], - [AC_LINK_IFELSE( - [AC_LANG_PROGRAM([[ -#include -#if HAVE_STRUCT_FSSTAT_F_FSTYPENAME -# define FS_TYPE(Ent) ((Ent).f_fstypename) -#else -# define FS_TYPE(Ent) mnt_names[(Ent).f_type] -#endif -$getfsstat_includes - ]], - [[struct statfs *stats; - int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); - char *t = FS_TYPE (*stats); - ]])], - [fu_cv_sys_mounted_getfsstat=yes], - [fu_cv_sys_mounted_getfsstat=no]) - ]) - if test $fu_cv_sys_mounted_getfsstat = yes; then - ac_list_mounted_fs=found - AC_DEFINE([MOUNTED_GETFSSTAT], [1], - [Define if there is a function named getfsstat for reading the - list of mounted file systems. (DEC Alpha running OSF/1)]) - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # (obsolete) SVR3 - AC_CACHE_CHECK([for FIXME existence of three headers], - [fu_cv_sys_mounted_fread_fstyp], - [AC_PREPROC_IFELSE([AC_LANG_SOURCE([[ -#include -#include -#include -]])], - [fu_cv_sys_mounted_fread_fstyp=yes], - [fu_cv_sys_mounted_fread_fstyp=no]) - ]) - if test $fu_cv_sys_mounted_fread_fstyp = yes; then - ac_list_mounted_fs=found - AC_DEFINE([MOUNTED_FREAD_FSTYP], [1], - [Define if (like SVR2) there is no specific function for reading the - list of mounted file systems, and your system has these header files: - and . (SVR3)]) - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # Mac OS X, FreeBSD, NetBSD, OpenBSD, Minix, also (obsolete) 4.4BSD. - # OSF/1 also has getmntinfo but is already handled above. - # We cannot use AC_CHECK_FUNCS([getmntinfo]) here, because at the linker - # level the function is sometimes called getmntinfo64 or getmntinfo$INODE64 - # on Mac OS X, __getmntinfo13 on NetBSD and Minix, _F64_getmntinfo on OSF/1. - AC_CACHE_CHECK([for getmntinfo function], - [fu_cv_sys_mounted_getmntinfo], - [AC_LINK_IFELSE( - [AC_LANG_PROGRAM([[ -#if HAVE_SYS_PARAM_H -# include -#endif -#include -#if HAVE_SYS_MOUNT_H -# include -#endif -#if HAVE_SYS_STATVFS_H -# include -#endif -#include - ]], - [[int count = getmntinfo (NULL, MNT_WAIT); - ]])], - [fu_cv_sys_mounted_getmntinfo=yes], - [fu_cv_sys_mounted_getmntinfo=no]) - ]) - if test $fu_cv_sys_mounted_getmntinfo = yes; then - AC_CACHE_CHECK([whether getmntinfo returns statvfs structures], - [fu_cv_sys_mounted_getmntinfo2], - [AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM([[ -#if HAVE_SYS_PARAM_H -# include -#endif -#include -#if HAVE_SYS_MOUNT_H -# include -#endif -#if HAVE_SYS_STATVFS_H -# include -#endif -extern -#ifdef __cplusplus -"C" -#endif -int getmntinfo (struct statfs **, int); - ]], [[]])], - [fu_cv_sys_mounted_getmntinfo2=no], - [fu_cv_sys_mounted_getmntinfo2=yes]) - ]) - if test $fu_cv_sys_mounted_getmntinfo2 = no; then - # Mac OS X, FreeBSD, OpenBSD, also (obsolete) 4.4BSD. - ac_list_mounted_fs=found - AC_DEFINE([MOUNTED_GETMNTINFO], [1], - [Define if there is a function named getmntinfo for reading the - list of mounted file systems and it returns an array of - 'struct statfs'. (4.4BSD, Darwin)]) - else - # NetBSD, Minix. - ac_list_mounted_fs=found - AC_DEFINE([MOUNTED_GETMNTINFO2], [1], - [Define if there is a function named getmntinfo for reading the - list of mounted file systems and it returns an array of - 'struct statvfs'. (NetBSD 3.0)]) - fi - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # Haiku, also (obsolete) BeOS. - AC_CHECK_FUNCS([next_dev fs_stat_dev]) - AC_CHECK_HEADERS([fs_info.h]) - AC_CACHE_CHECK([for BEOS mounted file system support functions], - [fu_cv_sys_mounted_fs_stat_dev], - [if test $ac_cv_header_fs_info_h = yes \ - && test $ac_cv_func_next_dev = yes \ - && test $ac_cv_func_fs_stat_dev = yes; then - fu_cv_sys_mounted_fs_stat_dev=yes - else - fu_cv_sys_mounted_fs_stat_dev=no - fi - ]) - if test $fu_cv_sys_mounted_fs_stat_dev = yes; then - ac_list_mounted_fs=found - AC_DEFINE([MOUNTED_FS_STAT_DEV], [1], - [Define if there are functions named next_dev and fs_stat_dev for - reading the list of mounted file systems. (BeOS)]) - fi - fi - - if test -z "$ac_list_mounted_fs"; then - # Interix / BSD alike statvfs - # the code is really interix specific, so make sure, we're on it. - case "$host" in - *-interix*) - AC_CHECK_FUNCS([statvfs]) - if test $ac_cv_func_statvfs = yes; then - ac_list_mounted_fs=found - AC_DEFINE([MOUNTED_INTERIX_STATVFS], [1], - [Define if we are on interix, and ought to use statvfs plus - some special knowledge on where mounted file systems can be - found. (Interix)]) - fi - ;; - esac - fi - - if test -z "$ac_list_mounted_fs"; then - AC_MSG_ERROR([could not determine how to read list of mounted file systems]) - # FIXME -- no need to abort building the whole package - # Can't build mountlist.c or anything that needs its functions - fi - - if test $ac_list_mounted_fs = found; then - gl_cv_list_mounted_fs=yes - else - gl_cv_list_mounted_fs=no - fi -]) - -# Prerequisites of lib/mountlist.c not done by gl_MOUNTLIST. -AC_DEFUN([gl_PREREQ_MOUNTLIST_EXTRA], -[ - dnl Note gl_MOUNTLIST checks for mntent.h, not sys/mntent.h. - AC_CHECK_HEADERS([sys/mntent.h]) - AC_HEADER_MAJOR()dnl for use of makedev () - gl_FSTYPENAME -]) - -# Replace Autoconf's AC_FUNC_GETMNTENT to omit checks that are unnecessary -# nowadays. -AC_DEFUN([AC_FUNC_GETMNTENT], -[ - # getmntent is in the standard C library on most systems, but in -lgen on - # Unixware. - AC_SEARCH_LIBS([getmntent], [gen]) - AC_CHECK_FUNCS([getmntent]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/gnulib/stat-size.m4 b/recipes/wip/files/mc/source/m4.include/gnulib/stat-size.m4 deleted file mode 100644 index 95f482873c..0000000000 --- a/recipes/wip/files/mc/source/m4.include/gnulib/stat-size.m4 +++ /dev/null @@ -1,14 +0,0 @@ -#serial 1 - -# Copyright (C) 2011-2020 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. - -AC_DEFUN([gl_STAT_SIZE], -[ - # Don't call AC_STRUCT_ST_BLOCKS because it causes bugs. Details at - # https://lists.gnu.org/r/bug-gnulib/2011-06/msg00051.html - AC_CHECK_HEADERS_ONCE([sys/param.h]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/gnulib/sys_types_h.m4 b/recipes/wip/files/mc/source/m4.include/gnulib/sys_types_h.m4 deleted file mode 100644 index 53f2c0965e..0000000000 --- a/recipes/wip/files/mc/source/m4.include/gnulib/sys_types_h.m4 +++ /dev/null @@ -1,67 +0,0 @@ -# sys_types_h.m4 serial 12 -dnl Copyright (C) 2011-2021 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -AC_DEFUN_ONCE([gl_SYS_TYPES_H], -[ - AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS]) - - dnl Use sane struct stat types in OpenVMS 8.2 and later. - AC_DEFINE([_USE_STD_STAT], 1, [For standard stat data types on VMS.]) - - gl_NEXT_HEADERS([sys/types.h]) - - dnl Ensure the type pid_t gets defined. - AC_REQUIRE([AC_TYPE_PID_T]) - - dnl Ensure the type mode_t gets defined. - AC_REQUIRE([AC_TYPE_MODE_T]) - - dnl Whether to override the 'off_t' type. - AC_REQUIRE([gl_TYPE_OFF_T]) - - dnl Whether to override the 'dev_t' and 'ino_t' types. - m4_ifdef([gl_WINDOWS_STAT_INODES], [ - AC_REQUIRE([gl_WINDOWS_STAT_INODES]) - ], [ - WINDOWS_STAT_INODES=0 - ]) - AC_SUBST([WINDOWS_STAT_INODES]) -]) - -AC_DEFUN([gl_SYS_TYPES_H_REQUIRE_DEFAULTS], -[ - m4_defun(GL_MODULE_INDICATOR_PREFIX[_SYS_TYPE_H_MODULE_INDICATOR_DEFAULTS], [ - ]) - m4_require(GL_MODULE_INDICATOR_PREFIX[_SYS_TYPE_H_MODULE_INDICATOR_DEFAULTS]) - AC_REQUIRE([gl_SYS_TYPES_H_DEFAULTS]) -]) - -AC_DEFUN([gl_SYS_TYPES_H_DEFAULTS], -[ -]) - -# This works around a buggy version in autoconf <= 2.69. -# See -# The 2.70 version isn't quoted properly, so override it too. - -m4_version_prereq([2.70.1], [], [ - -m4_undefine([AC_HEADER_MAJOR]) -AC_DEFUN([AC_HEADER_MAJOR], -[AC_CHECK_HEADERS_ONCE([sys/types.h]) -AC_CHECK_HEADER([sys/mkdev.h], - [AC_DEFINE([MAJOR_IN_MKDEV], [1], - [Define to 1 if `major', `minor', and `makedev' are - declared in .])]) -if test $ac_cv_header_sys_mkdev_h = no; then - AC_CHECK_HEADER([sys/sysmacros.h], - [AC_DEFINE([MAJOR_IN_SYSMACROS], [1], - [Define to 1 if `major', `minor', and `makedev' - are declared in .])]) -fi -])# AC_HEADER_MAJOR - -]) diff --git a/recipes/wip/files/mc/source/m4.include/gnulib/windows-stat-inodes.m4 b/recipes/wip/files/mc/source/m4.include/gnulib/windows-stat-inodes.m4 deleted file mode 100644 index 936900a27f..0000000000 --- a/recipes/wip/files/mc/source/m4.include/gnulib/windows-stat-inodes.m4 +++ /dev/null @@ -1,19 +0,0 @@ -# windows-stat-inodes.m4 serial 1 -dnl Copyright (C) 2017-2018 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 Enable inode identification in 'struct stat' on native Windows platforms. -dnl Set WINDOWS_STAT_INODES to -dnl - 0 -> keep the default (dev_t = 32-bit, ino_t = 16-bit), -dnl - 1 -> override types normally (dev_t = 32-bit, ino_t = 64-bit), -dnl - 2 -> override types in an extended way (dev_t = 64-bit, ino_t = 128-bit). -AC_DEFUN([gl_WINDOWS_STAT_INODES], -[ - AC_REQUIRE([AC_CANONICAL_HOST]) - case "$host_os" in - mingw*) WINDOWS_STAT_INODES=1 ;; - *) WINDOWS_STAT_INODES=0 ;; - esac -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-assert.m4 b/recipes/wip/files/mc/source/m4.include/mc-assert.m4 deleted file mode 100644 index fd995c328e..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-assert.m4 +++ /dev/null @@ -1,21 +0,0 @@ -dnl -dnl Check whether to enable/disable assertions. -dnl - -AC_DEFUN([mc_ASSERT], -[ - AC_ARG_ENABLE([assert], - AS_HELP_STRING([--enable-assert], [turn on assertions @<:@yes@:>@]), - [ - if test "x$enableval" = xno; then - enable_assert=no - else - enable_assert=yes - fi - ], - [enable_assert=yes]) - - if test "x$enable_assert" = xno; then - AC_DEFINE(G_DISABLE_ASSERT, 1, [Define to disable assertions]) - fi -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-background.m4 b/recipes/wip/files/mc/source/m4.include/mc-background.m4 deleted file mode 100644 index b42833c641..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-background.m4 +++ /dev/null @@ -1,23 +0,0 @@ -dnl -dnl Support for background operations -dnl - -AC_DEFUN([mc_BACKGROUND], -[ - AC_ARG_ENABLE([background], - AS_HELP_STRING([--enable-background], [Support for background file operations @<:@yes@:>@]), - [ - if test "x$enableval" = xno; then - enable_background=no - else - enable_background=yes - fi - ], - [enable_background=yes]) - - if test "x$enable_background" = xyes; then - AC_DEFINE(ENABLE_BACKGROUND, 1, [Define to enable background file operations]) - fi - - AM_CONDITIONAL(ENABLE_BACKGROUND, [test "x$enable_background" = xyes]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-cflags.m4 b/recipes/wip/files/mc/source/m4.include/mc-cflags.m4 deleted file mode 100644 index 66753ddb79..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-cflags.m4 +++ /dev/null @@ -1,71 +0,0 @@ -dnl @synopsis mc_CHECK_CFLAGS -dnl -dnl Check flags supported by C compiler -dnl -dnl @author Slava Zanko -dnl @modified by Andrew Borodin -dnl @modified by Yury V. Zaytsev -dnl @version 2024-11-03 -dnl @license GPL -dnl @copyright Free Software Foundation, Inc. - -AC_DEFUN([mc_CHECK_CFLAGS],[ - AC_LANG_PUSH(C) - - mc_configured_cflags="" - - dnl Sorted -f options: - case "$CC" in - gcc*) - AX_APPEND_COMPILE_FLAGS([-fdiagnostics-show-option], [mc_configured_cflags]) - ;; - *) - ;; - esac - - AX_APPEND_COMPILE_FLAGS([-Wall], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wextra], [mc_configured_cflags], [$EXTRA_OPTION]) - - dnl Enable support for C standard features up to (and including) C99 and pedantic warnings - AX_APPEND_COMPILE_FLAGS([-Wattributes], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wimplicit-function-declaration], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wimplicit-int], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wno-declaration-after-statement], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wno-long-long], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wno-vla], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wincompatible-pointer-types], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wint-conversion], [mc_configured_cflags], [$EXTRA_OPTION]) - - dnl Sorted -W options not included in -Wall and -Wextra - AX_APPEND_COMPILE_FLAGS([-Wbad-function-cast], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wconditional-uninitialized], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wfloat-conversion], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wfloat-equal], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wformat-security], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wformat-signedness], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wimplicit-fallthrough], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wmissing-declarations], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wmissing-format-attribute], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wmissing-prototypes], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wmissing-variable-declarations], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wnested-externs], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wpointer-arith], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wredundant-decls], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wshadow], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wstrict-prototypes], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wswitch-default], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wundef], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wunreachable-code], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wunused-result], [mc_configured_cflags], [$EXTRA_OPTION]) - AX_APPEND_COMPILE_FLAGS([-Wwrite-strings], [mc_configured_cflags], [$EXTRA_OPTION]) - - dnl Explicitly disabled warnings - - dnl This flags casts like (GCompareDataFunc) with missing parameter - AX_APPEND_COMPILE_FLAGS([-Wno-cast-function-type], [mc_configured_cflags], [$EXTRA_OPTION]) - - dnl https://github.com/llvm/llvm-project/issues/20574 - AX_APPEND_COMPILE_FLAGS([-Wno-assign-enum], [mc_configured_cflags], [$EXTRA_OPTION]) - - AC_LANG_POP() -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-check-search-type.m4 b/recipes/wip/files/mc/source/m4.include/mc-check-search-type.m4 deleted file mode 100644 index 21d4cb4039..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-check-search-type.m4 +++ /dev/null @@ -1,64 +0,0 @@ -dnl @synopsis mc_CHECK_SEARCH_TYPE -dnl -dnl Check search type in mc. Currently used glib-regexp or pcre -dnl -dnl @author Slava Zanko -dnl @author Andrew Borodin -dnl @version 2023-03-22 -dnl @license GPL -dnl @copyright Free Software Foundation, Inc. - -AC_DEFUN([mc_CHECK_SEARCH_TYPE_PCRE],[ - AX_PATH_LIB_PCRE - - if test x"${PCRE_LIBS}" = x; then - AC_MSG_ERROR([$1]) - fi - - SEARCH_TYPE="pcre" -]) - -AC_DEFUN([mc_CHECK_SEARCH_TYPE_PCRE2],[ - AX_CHECK_PCRE2([8], [], [:]) - - if test $pcre2_cv_libpcre2 = yes; then - SEARCH_TYPE="pcre2" - else - dnl pcre2 not found -- try pcre - AC_MSG_WARN([Cannot find pcre2 library, trying pcre one...]) - mc_CHECK_SEARCH_TYPE_PCRE([$1]) - fi -]) - - -AC_DEFUN([mc_CHECK_SEARCH_TYPE],[ - - AC_ARG_WITH([search-engine], - AS_HELP_STRING([--with-search-engine=type], - [Select low-level search engine @<:@glib|pcre|pcre2@:>@]) - ) - - case x$with_search_engine in - xglib) - SEARCH_TYPE="glib-regexp" - ;; - xpcre) - mc_CHECK_SEARCH_TYPE_PCRE([Cannot find pcre library]) - ;; - xpcre2) - mc_CHECK_SEARCH_TYPE_PCRE2([Neither pcre2 nor pcre library found!]) - ;; - x) - SEARCH_TYPE="glib-regexp" - ;; - *) - AC_MSG_ERROR([Value of the search-engine is incorrect]) - ;; - esac - - if test x"$SEARCH_TYPE" = x"glib-regexp"; then - AC_DEFINE(SEARCH_TYPE_GLIB, 1, [Define to select 'glib-regexp' search type]) - else - AC_DEFINE(SEARCH_TYPE_PCRE, 1, [Define to select 'pcre2' or 'pcre' search type]) - fi -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-ext2fs-attr.m4 b/recipes/wip/files/mc/source/m4.include/mc-ext2fs-attr.m4 deleted file mode 100644 index 42e4a292ef..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-ext2fs-attr.m4 +++ /dev/null @@ -1,28 +0,0 @@ -dnl -dnl Support for attributes on a Linux second extended file system -dnl -AC_DEFUN([mc_EXT2FS_ATTR], -[ - ext2fs_attr_msg="no" - - PKG_CHECK_MODULES(EXT2FS, [ext2fs >= 1.42.4], [found_ext2fs=yes], [:]) - - if test x"$found_ext2fs" = "xyes"; then - PKG_CHECK_MODULES(E2P, [e2p >= 1.42.4], [found_e2p=yes], [:]) - - if test x"$found_e2p" = "xyes"; then - AC_DEFINE(ENABLE_EXT2FS_ATTR, 1, [Define to enable support for ext2fs attributes]) - MCLIBS="$MCLIBS $E2P_LIBS" - CPPFLAGS="$CPPFLAGS $EXT2FS_CFLAGS $E2P_CFLAGS" - ext2fs_attr_msg="yes" - else - AC_MSG_WARN([e2p library not found or version too old (must be >= 1.42.4)]) - ext2fs_attr_msg="no" - fi - else - AC_MSG_WARN([ext2fs library not found or version too old (must be >= 1.42.4)]) - ext2fs_attr_msg="no" - fi - - AM_CONDITIONAL(ENABLE_EXT2FS_ATTR, [test "x$ext2fs_attr_msg" = "xyes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-get-fs-info.m4 b/recipes/wip/files/mc/source/m4.include/mc-get-fs-info.m4 deleted file mode 100644 index b0ea1a8dc2..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-get-fs-info.m4 +++ /dev/null @@ -1,122 +0,0 @@ - -dnl -dnl posix_allocate() function detection -dnl - -AC_DEFUN([POSIX_FALLOCATE], [ - dnl * Old glibcs have broken posix_fallocate(). Make sure not to use it. - AC_LINK_IFELSE([AC_LANG_PROGRAM([[ - #define _XOPEN_SOURCE 600 - #include - #include - #if defined(__GLIBC__) && (__GLIBC__ < 2 || __GLIBC_MINOR__ < 7) - possibly broken posix_fallocate - #endif - ]], - [[posix_fallocate(0, 0, 0);]])], - [AC_DEFINE( - [HAVE_POSIX_FALLOCATE], - [1], - [Define if you have a working posix_fallocate()]) - ]) -]) - -dnl -dnl Get from the coreutils package (stat-prog.m4 serial 7) -dnl - -AC_DEFUN([mc_cu_PREREQ_STAT_PROG], -[ - AC_REQUIRE([gl_FSUSAGE]) - AC_REQUIRE([gl_FSTYPENAME]) - AC_CHECK_HEADERS_ONCE([OS.h netinet/in.h sys/param.h sys/vfs.h]) - - dnl Check for vfs.h first, since this avoids a warning with nfs_client.h - dnl on Solaris 8. - test $ac_cv_header_sys_param_h = yes && - test $ac_cv_header_sys_mount_h = yes && - AC_CHECK_HEADERS([nfs/vfs.h], - [AC_CHECK_HEADERS([nfs/nfs_client.h])]) - - statvfs_includes="\ -AC_INCLUDES_DEFAULT -#include -" - statfs_includes="\ -AC_INCLUDES_DEFAULT -#ifdef HAVE_SYS_VFS_H -# include -#elif defined HAVE_SYS_MOUNT_H && defined HAVE_SYS_PARAM_H -# include -# include -# if defined HAVE_NETINET_IN_H && defined HAVE_NFS_NFS_CLNT_H && defined HAVE_NFS_VFS_H -# include -# include -# include -# endif -#elif defined HAVE_OS_H -# include -#endif -" - if case "$fu_cv_sys_stat_statvfs$fu_cv_sys_stat_statvfs64" in - *yes*) ;; *) false;; esac && - { AC_CHECK_MEMBERS([struct statvfs.f_basetype],,, [$statvfs_includes]) - test $ac_cv_member_struct_statvfs_f_basetype = yes || - { AC_CHECK_MEMBERS([struct statvfs.f_fstypename],,, [$statvfs_includes]) - test $ac_cv_member_struct_statvfs_f_fstypename = yes || - { test $ac_cv_member_struct_statfs_f_fstypename != yes && - { AC_CHECK_MEMBERS([struct statvfs.f_type],,, [$statvfs_includes]) - test $ac_cv_member_struct_statvfs_f_type = yes; }; }; }; } - then - AC_CHECK_MEMBERS([struct statvfs.f_namemax],,, [$statvfs_includes]) - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [$statvfs_includes], - [static statvfs s; - return (s.s_fsid ^ 0) == 0;])], - [AC_DEFINE([STRUCT_STATVFS_F_FSID_IS_INTEGER], [1], - [Define to 1 if the f_fsid member of struct statvfs is an integer.])]) - else - AC_CHECK_MEMBERS([struct statfs.f_namelen, struct statfs.f_type, - struct statfs.f_frsize],,, [$statfs_includes]) - if test $ac_cv_header_OS_h != yes; then - AC_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [$statfs_includes], - [static statfs s; - return (s.s_fsid ^ 0) == 0;])], - [AC_DEFINE([STRUCT_STATFS_F_FSID_IS_INTEGER], [1], - [Define to 1 if the f_fsid member of struct statfs is an integer.])]) - fi - fi -]) - - -dnl -dnl Filesystem information detection -dnl -dnl To get information about the disk, mount points, etc. -dnl - -AC_DEFUN([mc_GET_FS_INFO], [ - AC_CHECK_HEADERS([fcntl.h utime.h]) - - gl_MOUNTLIST - if test $gl_cv_list_mounted_fs = yes; then - gl_PREREQ_MOUNTLIST_EXTRA - AC_DEFINE(HAVE_INFOMOUNT_LIST, 1, - [Define if the list of mounted filesystems can be determined]) - else - AC_MSG_WARN([could not determine how to read list of mounted fs]); - fi - - gl_FSUSAGE - if test $gl_cv_fs_space = yes; then - gl_PREREQ_FSUSAGE_EXTRA - fi - gl_FSTYPENAME - - POSIX_FALLOCATE - - mc_cu_PREREQ_STAT_PROG -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-glib.m4 b/recipes/wip/files/mc/source/m4.include/mc-glib.m4 deleted file mode 100644 index f93962f0e2..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-glib.m4 +++ /dev/null @@ -1,87 +0,0 @@ -dnl -dnl Check whether the g_module_* family of functions works -dnl on this system. We need to know that at the compile time to -dnl decide whether to link with X11. -dnl -AC_DEFUN([mc_G_MODULE_SUPPORTED], [ - - g_module_supported="" - - found_gmodule=no - PKG_CHECK_MODULES(GMODULE, [gmodule-no-export-2.0 >= 2.32], [found_gmodule=yes], [:]) - if test x"$found_gmodule" = xyes; then - g_module_supported="gmodule-no-export-2.0" - else - dnl try fallback to the generic gmodule - PKG_CHECK_MODULES(GMODULE, [gmodule-2.0 >= 2.32], [found_gmodule=yes], [:]) - if test x"$found_gmodule" = xyes; then - g_module_supported="gmodule-2.0" - fi - fi - - case x"$g_module_supported" in - xgmodule-no-export-2.0|xgmodule-2.0) - if test x`$PKG_CONFIG --variable=gmodule_supported "$g_module_supported"` = xtrue; then - AC_DEFINE([HAVE_GMODULE], [1], [Defined if gmodule functionality is supported]) - else - g_module_supported="" - fi - ;; - *) - g_module_supported="" - ;; - esac - - dnl - dnl Try to find static libraries for glib and gmodule. - dnl - if test x$with_glib_static = xyes; then - new_GLIB_LIBS= - for i in $GLIB_LIBS; do - case x$i in - x-lglib*) - lib=glib ;; - x-lgmodule*) - lib=gmodule ;; - *) - lib= - add="$i" ;; - esac - - if test -n "$lib"; then - lib1=`echo $i | ${SED-sed} 's/^-l//'` - if test -f "$GLIB_LIBDIR/lib${lib1}.a"; then - add="$GLIB_LIBDIR/lib${lib1}.a" - else - if test -f "$GLIB_LIBDIR/lib${lib}.a"; then - add="$GLIB_LIBDIR/lib${lib}.a" - else - AC_MSG_ERROR([Cannot find static $lib]) - fi - fi - fi - new_GLIB_LIBS="$new_GLIB_LIBS $add" - done - GLIB_LIBS="$new_GLIB_LIBS" - fi - -]) - -AC_DEFUN([mc_CHECK_GLIB], [ - dnl - dnl First try glib 2.x. - dnl Keep this check close to the beginning, so that the users - dnl without any glib won't have their time wasted by other checks. - dnl - - AC_ARG_WITH([glib_static], - AS_HELP_STRING([--with-glib-static], [Link glib statically @<:@no@:>@])) - - glib_found=no - PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.32], [glib_found=yes], [:]) - if test x"$glib_found" = xno; then - AC_MSG_ERROR([glib-2.0 not found or version too old (must be >= 2.32)]) - fi - -]) - diff --git a/recipes/wip/files/mc/source/m4.include/mc-i18n.m4 b/recipes/wip/files/mc/source/m4.include/mc-i18n.m4 deleted file mode 100644 index 8e7237cc95..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-i18n.m4 +++ /dev/null @@ -1,44 +0,0 @@ -dnl @synopsis mc_I18N -dnl -dnl Check if environment is ready for get translations of docs from transifex -dnl -dnl @author Slava Zanko -dnl @version 2011-02-10 -dnl @license GPL -dnl @copyright Free Software Foundation, Inc. - -AC_DEFUN([mc_I18N],[ - dnl User visible support for charset conversion. - AC_ARG_ENABLE([charset], - AS_HELP_STRING([--enable-charset], [Support for charset selection and conversion @<:@yes@:>@])) - have_charset= - charset_msg="no" - if test "x$enable_charset" != "xno"; then - AC_DEFINE(HAVE_CHARSET, 1, [Define to enable charset selection and conversion]) - have_charset=yes - charset_msg="yes" - - AC_CHECK_HEADERS([gnu/libc-version.h]) - - dnl Solaris has different name of Windows 1251 encoding - case $host_os in - solaris*) - ENCODING_CP1251="ANSI-1251" - ;; - *) - ENCODING_CP1251="CP1251" - ;; - esac - - if test "x$ac_cv_header_gnu_libc_version_h" != "xno"; then - ENCODING_CP866="IBM866" - ENCODING_ISO8859="ISO-8859" - else - ENCODING_CP866="CP866" - ENCODING_ISO8859="ISO8859" - fi - - AC_SUBST(ENCODING_CP1251) - AC_SUBST(ENCODING_CP866) - fi -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-stdckdint.m4 b/recipes/wip/files/mc/source/m4.include/mc-stdckdint.m4 deleted file mode 100644 index 7ce4cc6c26..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-stdckdint.m4 +++ /dev/null @@ -1,23 +0,0 @@ -dnl -dnl Check that is like C23. -dnl - -AC_DEFUN([mc_CHECK_HEADER_STDCKDINT], -[ - AC_CHECK_HEADERS_ONCE([stdckdint.h]) - if test $ac_cv_header_stdckdint_h = yes; then - GL_GENERATE_STDCKDINT_H=false - else - GL_GENERATE_STDCKDINT_H=true - fi - gl_CONDITIONAL_HEADER([stdckdint.h]) - - dnl We need the following in order to create when the system - dnl doesn't have one that works with the given compiler. - if test "$GL_GENERATE_STDCKDINT_H" = "true"; then - sed -e 1h -e '1s,.*,/* DO NOT EDIT! GENERATED AUTOMATICALLY! */,' -e s,bool,gboolean, -e 1G \ - $ac_abs_confdir/lib/stdckdint.in.h > $ac_abs_confdir/lib/stdckdint.h - else - rm -f "$ac_abs_confdir/lib/stdckdint.h" - fi -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-subshell.m4 b/recipes/wip/files/mc/source/m4.include/mc-subshell.m4 deleted file mode 100644 index 9f6734ca1b..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-subshell.m4 +++ /dev/null @@ -1,50 +0,0 @@ -dnl -dnl Subshell support. -dnl -AC_DEFUN([mc_SUBSHELL], [ - - AC_MSG_CHECKING([for subshell support]) - AC_ARG_WITH(subshell, - [ --with-subshell Compile in concurrent subshell @<:@yes@:>@ - --with-subshell=optional Don't run concurrent shell by default @<:@no@:>@], - [ - case "x$withval" in - xyes) - result="yes" - ;; - xoptional) - result="optional" - ;; - *) - result="no" - ;; - esac - ], - [ - dnl Default: enable the subshell support - result="yes" - ]) - - AC_MSG_RESULT([$result]) - - if test "x$result" != xno; then - AC_DEFINE(ENABLE_SUBSHELL, 1, [Define to enable subshell support]) - - dnl openpty() can simplify opening of master/slave devices for subshell - AC_CHECK_HEADERS([pty.h libutil.h util.h]) - AC_CHECK_FUNCS(openpty,, - AC_CHECK_LIB(util,openpty, - [AC_DEFINE(HAVE_OPENPTY) - LIBS="$LIBS -lutil"] - ) - ) - - if test "x$result" = xoptional; then - AC_DEFINE(SUBSHELL_OPTIONAL, 1, [Define to make subshell support optional]) - fi - fi - - subshell="$result" - - AM_CONDITIONAL(ENABLE_SUBSHELL, [test "x$result" != xno]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-tests.m4 b/recipes/wip/files/mc/source/m4.include/mc-tests.m4 deleted file mode 100644 index 51ca6b71a1..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-tests.m4 +++ /dev/null @@ -1,51 +0,0 @@ -dnl @synopsis mc_UNIT_TESTS -dnl -dnl Check if unit tests enabled -dnl -dnl @author Slava Zanko -dnl @version 2011-02-10 -dnl @license GPL -dnl @copyright Free Software Foundation, Inc. - -AC_DEFUN([mc_UNIT_TESTS],[ - - AC_ARG_ENABLE( - [tests], - AS_HELP_STRING([--enable-tests], [Enable unit tests (see http://libcheck.github.io/check/) @<:@auto@:>@]) - ) - - dnl 'tests_msg' holds the human-readable message to show in configure's summary text. - - if test x"$enable_tests" = "xno"; then - dnl The user explicitly specified '--disable-tests'. - tests_msg="no" - else - PKG_CHECK_MODULES( - CHECK, - [check >= 0.9.10], - [ - have_check=yes - tests_msg="yes" - ], - [ - AC_MSG_WARN(['Check' testing framework not found. Check your environment]) - tests_msg="no ('Check' testing framework not found)" - - dnl The following behavior, of "exit if feature requested but not found", is just a - dnl preference and can be safely removed. - if test x"$enable_tests" = "xyes"; then - AC_MSG_ERROR([You explicitly specified '--enable-tests', but this requirement cannot be met.]) - fi - ]) - AC_SUBST(CHECK_CFLAGS) - AC_SUBST(CHECK_LIBS) - fi - AM_CONDITIONAL(HAVE_TESTS, test x"$have_check" = "xyes") - AS_IF([test x"$have_check" = "xyes"], [AC_DEFINE([HAVE_TESTS], [1], [Build with unit tests.])]) - - dnl sighandler_t is GNU extension - dnl AC_USE_SYSTEM_EXTENSIONS is required - AC_CHECK_TYPES([sighandler_t], [], [], [ - #include - ]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-use-termcap.m4 b/recipes/wip/files/mc/source/m4.include/mc-use-termcap.m4 deleted file mode 100644 index 6781815fdf..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-use-termcap.m4 +++ /dev/null @@ -1,38 +0,0 @@ -dnl -dnl Try using termcap database and link with libtermcap if possible. -dnl -AC_DEFUN([mc_USE_TERMCAP], [ - screen_msg="$screen_msg with termcap database" - AC_MSG_NOTICE([using S-Lang screen library with termcap]) - AC_DEFINE(USE_TERMCAP, 1, [Define to use termcap database]) - - ac_save_LIBS="$LIBS" - AC_SEARCH_LIBS([tgoto], [termcap xcurses curses], - [MCLIBS="$MCLIBS $ac_cv_search_tgoto"], - [AC_MSG_ERROR([Could not find a library providing tgoto])] - ) - LIBS="$ac_save_LIBS" -]) - -dnl -dnl Check if the installed S-Lang library uses termcap -dnl -AC_DEFUN([mc_SLANG_TERMCAP], [ - unset ac_cv_lib_termcap_tgoto - - AC_CACHE_CHECK([if S-Lang uses termcap], [mc_cv_slang_termcap], [ - ac_save_LIBS="$LIBS" - LIBS="$LIBS -lslang" - AC_LINK_IFELSE([AC_LANG_PROGRAM([[ -#include - ]], - [[SLtt_get_terminfo(); SLtt_tgetflag((char*)"");]])], - [mc_cv_slang_termcap=no], [mc_cv_slang_termcap=yes]) - - LIBS="$ac_save_LIBS" - ]) - - if test x"$mc_cv_slang_termcap" = xyes; then - mc_USE_TERMCAP - fi -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-version.m4 b/recipes/wip/files/mc/source/m4.include/mc-version.m4 deleted file mode 100644 index ba89b5f993..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-version.m4 +++ /dev/null @@ -1,21 +0,0 @@ -dnl @synopsis mc_VERSION -dnl -dnl Get current version of Midnight Commander from git tags -dnl -dnl @author Slava Zanko -dnl @version 2021-04-04 -dnl @license GPL -dnl @copyright Free Software Foundation, Inc. -dnl @modified Andrew Borodin - -AC_DEFUN([mc_VERSION],[ - if test -f ${srcdir}/mc-version.h; then - VERSION=$(grep '^#define MC_CURRENT_VERSION' ${srcdir}/mc-version.h | ${SED-sed} 's/.*"\(.*\)"$/\1/') - else - VERSION="unknown" - fi - - dnl Version without dashes for the man page - MAN_VERSION=`echo $VERSION | sed 's/^\([[^\-]]*\).*/\1/'` - AC_SUBST(MAN_VERSION) -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-vfs.m4 b/recipes/wip/files/mc/source/m4.include/mc-vfs.m4 deleted file mode 100644 index 1b23276324..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-vfs.m4 +++ /dev/null @@ -1,85 +0,0 @@ -AC_DEFUN([mc_VFS_ADDNAME], -[ - if test x"$vfs_flags" = "x" ; then - vfs_flags="$1" - else - vfs_flags="$vfs_flags, $1" - fi -]) - -m4_include([m4.include/vfs/socket.m4]) -m4_include([m4.include/vfs/mc-vfs-extfs.m4]) -m4_include([m4.include/vfs/mc-vfs-sfs.m4]) -m4_include([m4.include/vfs/mc-vfs-ftp.m4]) -m4_include([m4.include/vfs/mc-vfs-sftp.m4]) -m4_include([m4.include/vfs/mc-vfs-shell.m4]) -m4_include([m4.include/vfs/mc-vfs-undelfs.m4]) -m4_include([m4.include/vfs/mc-vfs-tarfs.m4]) -m4_include([m4.include/vfs/mc-vfs-cpiofs.m4]) - -dnl mc_VFS_CHECKS -dnl Check for various functions needed by libvfs. -dnl This has various effects: -dnl Sets MC_VFS_LIBS to libraries required -dnl Sets vfs_flags to "pretty" list of vfs implementations we include. -dnl Sets shell variable enable_vfs to yes (default, --with-vfs) or -dnl "no" (--without-vfs). - -dnl Private define -AC_DEFUN([mc_ENABLE_VFS_NET], -[ - dnl FIXME: network checks should probably be in their own macro. - AC_REQUIRE_SOCKET - if test x"$have_socket" = xyes; then - AC_CHECK_TYPE([nlink_t], , - [AC_DEFINE_UNQUOTED([nlink_t], [unsigned int], - [Define to 'unsigned int' if does not define.])]) - AC_CHECK_TYPES([socklen_t],,, - [ -#include -#include - ]) - - enable_vfs_net=yes - AC_DEFINE(ENABLE_VFS_NET, [1], [Define to enable network VFSes support]) - fi -]) - -AC_DEFUN([mc_VFS_CHECKS], -[ - vfs_type="normal" - - AC_ARG_ENABLE([vfs], - AS_HELP_STRING([--disable-vfs], [Disable VFS]), - [ - if test "x$enableval" = "xno"; then - enable_vfs=no - else - enable_vfs=yes - fi - ], - [enable_vfs=yes]) - - if test x"$enable_vfs" = x"yes" ; then - vfs_type="Midnight Commander Virtual Filesystem" - AC_MSG_NOTICE([Enabling VFS code]) - AC_DEFINE(ENABLE_VFS, [1], [Define to enable VFS support]) - fi - - mc_VFS_CPIOFS - mc_VFS_EXTFS - mc_VFS_SHELL - mc_VFS_FTP - mc_VFS_SFS - mc_VFS_SFTP - mc_VFS_TARFS - mc_VFS_UNDELFS - - AM_CONDITIONAL(ENABLE_VFS, [test x"$enable_vfs" = x"yes"]) - - if test x"$enable_vfs_ftp" = x"yes" -o x"$enable_vfs_shell" = x"yes" -o x"$enable_vfs_sftp" = x"yes"; then - mc_ENABLE_VFS_NET - fi - - AM_CONDITIONAL([ENABLE_VFS_NET], [test x"$enable_vfs_net" = x"yes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-with-internal-edit.m4 b/recipes/wip/files/mc/source/m4.include/mc-with-internal-edit.m4 deleted file mode 100644 index 764e3987f9..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-with-internal-edit.m4 +++ /dev/null @@ -1,49 +0,0 @@ -dnl -dnl Internal editor support. -dnl -AC_DEFUN([mc_WITH_INTERNAL_EDIT], [ - - AC_ARG_WITH([internal_edit], - AS_HELP_STRING([--with-internal-edit], [Enable internal editor @<:@yes@:>@])) - - if test x$with_internal_edit != xno; then - AC_DEFINE(USE_INTERNAL_EDIT, 1, [Define to enable internal editor]) - use_internal_edit=yes - AC_MSG_NOTICE([using internal editor]) - edit_msg="yes" - else - use_internal_edit=no - edit_msg="no" - fi - - dnl ASpell support. - AC_ARG_ENABLE([aspell], - AS_HELP_STRING( - [--enable-aspell@<:@=prefix@:>@], - [Enable aspell support for internal editor @<:@no@:>@] and optionally set path to aspell installation prefix @<:@default=/usr@:>@), - [ - if test "x$enableval" = xno; then - enable_aspell=no - else - test -d "$enable_aspell/include" && CPPFLAGS="$CPPFLAGS -I$enable_aspell/include" - enable_aspell=yes - fi - ], - [enable_aspell=no] - ) - - if test x$with_internal_edit != xno -a x$enable_aspell != xno; then - AC_CHECK_HEADERS([aspell.h], [], [ - AC_MSG_ERROR([Could not find aspell development headers]) - ], []) - - if test x"$g_module_supported" != x; then - AC_DEFINE(HAVE_ASPELL, 1, [Define to enable aspell support]) - edit_msg="yes with aspell support" - AC_MSG_NOTICE([using aspell for internal editor]) - else - enable_aspell=no - AC_MSG_ERROR([aspell support is disabled because gmodule support is not available]) - fi - fi -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-with-screen-ncurses.m4 b/recipes/wip/files/mc/source/m4.include/mc-with-screen-ncurses.m4 deleted file mode 100644 index 843d044a51..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-with-screen-ncurses.m4 +++ /dev/null @@ -1,214 +0,0 @@ -dnl check for ncurses in user supplied path -AC_DEFUN([mc_CHECK_NCURSES_BY_PATH], [ - - ac_ncurses_inc_path=[$1] - ac_ncurses_lib_path=[$2] - - if test x"$ac_ncurses_inc_path" != x; then - ac_ncurses_inc_path="-I"$ac_ncurses_inc_path - fi - - if test x"$ac_ncurses_lib_path" != x; then - ac_ncurses_lib_path="-L"$ac_ncurses_lib_path - fi - - saved_CPPFLAGS="$CPPFLAGS" - saved_LDFLAGS="$LDFLAGS" - CPPFLAGS="$CPPFLAGS $ac_ncurses_inc_path" - LDFLAGS="$LDFLAGS $ac_ncurses_lib_path" - - dnl Check for the headers - dnl Both headers should be in the same directory - dnl AIX term.h is unusable for mc - AC_MSG_CHECKING([for ncurses/ncurses.h and ncurses/term.h]) - AC_PREPROC_IFELSE( - [ - AC_LANG_PROGRAM([[#include - #include - ]],[[return 0;]]) - ], - [ - AC_MSG_RESULT(yes) - if test x"$ac_ncurses_inc_path" = x; then - ac_ncurses_inc_path="-I/usr/include" - fi - if test x"$ac_ncurses_lib_path" = x; then - ac_ncurses_lib_path="-L/usr/lib" - fi - found_ncurses=yes - AC_DEFINE(HAVE_NCURSES_NCURSES_H, 1, - [Define to 1 if you have the header file.]) - AC_DEFINE(HAVE_NCURSES_TERM_H, 1, - [Define to 1 if you have the header file.]) - ], - [ - AC_MSG_RESULT(no) - found_ncurses=no - error_msg_ncurses="ncurses header not found" - ], - ) - - if test x"$found_ncurses" = x"yes"; then - screen_type=ncurses - screen_msg="NCurses" - - AC_DEFINE(HAVE_NCURSES, 1, - [Define to use ncurses library for screen management]) - - MCLIBS="$MCLIBS $ac_ncurses_lib_path" - else - CPPFLAGS="$saved_CPPFLAGS" - LDFLAGS="$saved_LDPFLAGS" - AC_MSG_ERROR([$error_msg_ncurses]) - fi -]) - -dnl -dnl Use the ncurses library. It can only be requested explicitly, -dnl so just fail if anything goes wrong. -dnl -dnl If ncurses exports the ESCDELAY variable it should be set to 0 -dnl or you'll have to press Esc three times to dismiss a dialog box. -dnl -AC_DEFUN([mc_WITH_NCURSES], [ - dnl has_colors() is specific to ncurses, it's not in the old curses - save_LIBS="$LIBS" - ncursesw_found= - - dnl get the user supplied include path - AC_ARG_WITH([ncurses-includes], - AS_HELP_STRING([--with-ncurses-includes=@<:@DIR@:>@], - [set path to ncurses includes @<:@default=/usr/include@:>@; make sense only if --with-screen=ncurses; for /usr/local/include/ncurses specify /usr/local/include] - ), - [ac_ncurses_inc_path="$withval"], - [ac_ncurses_inc_path=""] - ) - - dnl get the user supplied lib path - AC_ARG_WITH([ncurses-libs], - AS_HELP_STRING([--with-ncurses-libs=@<:@DIR@:>@], - [set path to ncurses library @<:@default=/usr/lib@:>@; make sense only if --with-screen=ncurses] - ), - [ac_ncurses_lib_path="$withval"], - [ac_ncurses_lib_path=""] - ) - - dnl we need at least the inc path, the lib may be in a std location - if test x"$ac_ncurses_inc_path" != x; then - dnl check the user supplied location - mc_CHECK_NCURSES_BY_PATH([$ac_ncurses_inc_path],[$ac_ncurses_lib_path]) - - LIBS="$MCLIBS" - AC_SEARCH_LIBS([has_colors], [ncurses], [], - [AC_MSG_ERROR([Cannot find ncurses library])]) - AC_SEARCH_LIBS([stdscr], [tinfo], [], - [AC_MSG_ERROR([Cannot find a library providing stdscr])]) - MCLIBS="$LIBS" - - screen_type=ncurses - screen_msg="NCurses" - AC_DEFINE(USE_NCURSES, 1, - [Define to use ncurses for screen management]) - else - LIBS="$MCLIBS" - AC_SEARCH_LIBS([addwstr], [ncursesw ncurses curses], [ncursesw_found=yes], - [AC_MSG_WARN([Cannot find ncurses library, that support wide characters])]) - MCLIBS="$LIBS" - - if test x"$ncursesw_found" = "x"; then - LIBS="$MCLIBS" - AC_SEARCH_LIBS([has_colors], [ncurses curses], [], - [AC_MSG_ERROR([Cannot find ncurses library])]) - MCLIBS="$LIBS" - fi - LIBS="$MCLIBS" - AC_SEARCH_LIBS([stdscr], [tinfow tinfo], [], - [AC_MSG_ERROR([Cannot find a library providing stdscr])]) - MCLIBS="$LIBS" - - dnl Check the header - ncurses_h_found= - AC_CHECK_HEADERS([ncursesw/curses.h ncurses/curses.h ncurses.h curses.h], - [ncurses_h_found=yes; break]) - - if test x"$ncurses_h_found" = "x"; then - AC_MSG_ERROR([Cannot find ncurses header file]) - fi - - AC_CHECK_HEADERS([ncurses/term.h]) - - screen_type=ncurses - screen_msg="NCurses" - AC_DEFINE(USE_NCURSES, 1, - [Define to use ncurses for screen management]) - fi - - dnl check for ESCDELAY - AC_CACHE_CHECK([for ESCDELAY variable], - [mc_cv_ncurses_escdelay], - [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ - extern int ESCDELAY; - ESCDELAY = 0; - ]])], - [mc_cv_ncurses_escdelay=yes], - [mc_cv_ncurses_escdelay=no]) - ]) - if test x"$mc_cv_ncurses_escdelay" = xyes; then - AC_DEFINE(HAVE_ESCDELAY, 1, - [Define if ncurses has ESCDELAY variable]) - fi - - dnl check for resizeterm - AC_CHECK_FUNCS(resizeterm) - LIBS="$save_LIBS" -]) - -dnl -dnl Use the ncursesw library. It can only be requested explicitly, -dnl so just fail if anything goes wrong. -dnl -dnl If ncursesw exports the ESCDELAY variable it should be set to 0 -dnl or you'll have to press Esc three times to dismiss a dialog box. -dnl - -AC_DEFUN([mc_WITH_NCURSESW], [ - dnl has_colors() is specific to ncurses, it's not in the old curses - save_LIBS="$LIBS" - LIBS= - AC_SEARCH_LIBS([has_colors], [ncursesw], [MCLIBS="$MCLIBS $LIBS"], - [AC_MSG_ERROR([Cannot find ncursesw library])]) - AC_SEARCH_LIBS([stdscr], [tinfow ncursesw], [MCLIBS="$MCLIBS $LIBS"], - [AC_MSG_ERROR([Cannot find a library providing stdscr])]) - - - dnl Check the header - ncurses_h_found= - AC_CHECK_HEADERS([ncursesw/curses.h], - [ncursesw_h_found=yes; break]) - - if test x"$ncursesw_h_found" = "x"; then - AC_MSG_ERROR([Cannot find ncursesw header file]) - fi - - screen_type=ncursesw - screen_msg="NCursesw" - AC_DEFINE(USE_NCURSESW, 1, - [Define to use ncursesw for screen management]) - - AC_CACHE_CHECK([for ESCDELAY variable], - [mc_cv_ncursesw_escdelay], - [AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[ - extern int ESCDELAY; - ESCDELAY = 0; - ]])], - [mc_cv_ncursesw_escdelay=yes], - [mc_cv_ncursesw_escdelay=no]) - ]) - if test x"$mc_cv_ncursesw_escdelay" = xyes; then - AC_DEFINE(HAVE_ESCDELAY, 1, - [Define if ncursesw has ESCDELAY variable]) - fi - - AC_CHECK_FUNCS(resizeterm) - LIBS="$save_LIBS" -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-with-screen-slang.m4 b/recipes/wip/files/mc/source/m4.include/mc-with-screen-slang.m4 deleted file mode 100644 index 1a74f3012f..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-with-screen-slang.m4 +++ /dev/null @@ -1,25 +0,0 @@ - -dnl -dnl Use the slang library. -dnl -AC_DEFUN([mc_WITH_SLANG], [ - with_screen=slang - found_slang=no - PKG_CHECK_MODULES(SLANG, [slang >= 2.0], [found_slang=yes], [:]) - if test x"$found_slang" = xno; then - AC_MSG_ERROR([S-Lang >= 2.0.0 library not found]) - fi - - MCLIBS="$SLANG_LIBS $MCLIBS" - CPPFLAGS="$SLANG_CFLAGS $CPPFLAGS" - - dnl Check if termcap is needed. - if test x"$found_slang" = x"yes"; then - mc_SLANG_TERMCAP - fi - - screen_type=slang - screen_msg="S-Lang" - - AC_DEFINE(HAVE_SLANG, 1, [Define to use S-Lang library for screen management]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-with-screen.m4 b/recipes/wip/files/mc/source/m4.include/mc-with-screen.m4 deleted file mode 100644 index dff4bfb9f9..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-with-screen.m4 +++ /dev/null @@ -1,28 +0,0 @@ -m4_include([m4.include/mc-with-screen-ncurses.m4]) -m4_include([m4.include/mc-with-screen-slang.m4]) - -dnl -dnl Select the screen library. -dnl - -AC_DEFUN([mc_WITH_SCREEN], [ - - AC_ARG_WITH([screen], - AS_HELP_STRING([--with-screen=@<:@LIB@:>@], - [Compile with screen library: slang or ncurses @<:@slang if found@:>@])) - - case x$with_screen in - x | xslang) - mc_WITH_SLANG - ;; - xncurses) - mc_WITH_NCURSES - ;; - xncursesw) - mc_WITH_NCURSESW - ;; - *) - AC_MSG_ERROR([Value of the screen library is incorrect]) - ;; - esac -]) diff --git a/recipes/wip/files/mc/source/m4.include/mc-with-x.m4 b/recipes/wip/files/mc/source/m4.include/mc-with-x.m4 deleted file mode 100644 index fa269151dd..0000000000 --- a/recipes/wip/files/mc/source/m4.include/mc-with-x.m4 +++ /dev/null @@ -1,23 +0,0 @@ - -dnl X11 support. -dnl Used to read keyboard modifiers when running under X11. -AC_DEFUN([mc_WITH_X], [ - - AC_PATH_XTRA - - if test x"$no_x" = xyes; then - textmode_x11_support="no" - else - AC_DEFINE([HAVE_TEXTMODE_X11_SUPPORT], [1], - [Define to enable getting events from X Window System]) - textmode_x11_support="yes" - - CPPFLAGS="$CPPFLAGS $X_CFLAGS" - - if test x"$g_module_supported" = x; then - MCLIBS="$MCLIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" - fi - fi - - AM_CONDITIONAL([HAVE_TEXTMODE_X11_SUPPORT], [test x"$textmode_x11_support" = x"yes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-cpiofs.m4 b/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-cpiofs.m4 deleted file mode 100644 index d9c1e47e72..0000000000 --- a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-cpiofs.m4 +++ /dev/null @@ -1,12 +0,0 @@ -dnl CPIO filesystem support -AC_DEFUN([mc_VFS_CPIOFS], -[ - AC_ARG_ENABLE([vfs-cpio], - AS_HELP_STRING([--enable-vfs-cpio], [Support for cpio filesystem @<:@yes@:>@])) - if test "$enable_vfs" = "yes" -a x"$enable_vfs_cpio" != x"no"; then - enable_vfs_cpio="yes" - AC_DEFINE([ENABLE_VFS_CPIO], [1], [Support for cpio filesystem]) - mc_VFS_ADDNAME([cpio]) - fi - AM_CONDITIONAL(ENABLE_VFS_CPIO, [test "$enable_vfs" = "yes" -a x"$enable_vfs_cpio" = x"yes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-extfs.m4 b/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-extfs.m4 deleted file mode 100644 index b57dbba9f3..0000000000 --- a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-extfs.m4 +++ /dev/null @@ -1,34 +0,0 @@ -dnl mc_EXTFS_CHECKS -dnl Check for tools used in extfs scripts. - -dnl FIXME: make this configurable -AC_DEFUN([mc_EXTFS_CHECKS], [ - AC_PATH_PROG([ZIP], [zip], [/usr/bin/zip]) - AC_PATH_PROG([UNZIP], [unzip], [/usr/bin/unzip]) - AC_CACHE_CHECK([for zipinfo code in unzip], [mc_cv_have_zipinfo], - [mc_cv_have_zipinfo=no - if $UNZIP -Z /dev/null 2>&1; then - mc_cv_have_zipinfo=yes - fi]) - if test x"$mc_cv_have_zipinfo" = xyes; then - HAVE_ZIPINFO=1 - else - HAVE_ZIPINFO=0 - fi - AC_SUBST([HAVE_ZIPINFO]) -]) - - -dnl Enable Extfs (classic) -AC_DEFUN([mc_VFS_EXTFS], -[ - AC_ARG_ENABLE([vfs-extfs], - AS_HELP_STRING([--enable-vfs-extfs], [Support for extfs filesystem @<:@yes@:>@])) - if test "$enable_vfs" = "yes" -a x"$enable_vfs_extfs" != x"no"; then - mc_EXTFS_CHECKS - enable_vfs_extfs="yes" - mc_VFS_ADDNAME([extfs]) - AC_DEFINE([ENABLE_VFS_EXTFS], [1], [Support for extfs]) - fi - AM_CONDITIONAL(ENABLE_VFS_EXTFS, [test "$enable_vfs" = "yes" -a x"$enable_vfs_extfs" = x"yes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-ftp.m4 b/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-ftp.m4 deleted file mode 100644 index c87ef009b0..0000000000 --- a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-ftp.m4 +++ /dev/null @@ -1,12 +0,0 @@ -dnl Enable FTP filesystem (classic) -AC_DEFUN([mc_VFS_FTP], -[ - AC_ARG_ENABLE([vfs-ftp], - AS_HELP_STRING([--enable-vfs-ftp], [Support for FTP filesystem @<:@yes@:>@])) - if test "$enable_vfs" != "no" -a x"$enable_vfs_ftp" != x"no"; then - enable_vfs_ftp="yes" - mc_VFS_ADDNAME([ftp]) - AC_DEFINE([ENABLE_VFS_FTP], [1], [Support for FTP (classic)]) - fi - AM_CONDITIONAL([ENABLE_VFS_FTP], [test "$enable_vfs" = "yes" -a x"$enable_vfs_ftp" = x"yes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-sfs.m4 b/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-sfs.m4 deleted file mode 100644 index ec4e6d268d..0000000000 --- a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-sfs.m4 +++ /dev/null @@ -1,12 +0,0 @@ -dnl SFS support -AC_DEFUN([mc_VFS_SFS], -[ - AC_ARG_ENABLE([vfs-sfs], - AS_HELP_STRING([--enable-vfs-sfs], [Support for sfs filesystem @<:@yes@:>@])) - if test "$enable_vfs" = "yes" -a x"$enable_vfs_sfs" != x"no"; then - enable_vfs_sfs="yes" - mc_VFS_ADDNAME([sfs]) - AC_DEFINE([ENABLE_VFS_SFS], [1], [Support for sfs]) - fi - AM_CONDITIONAL(ENABLE_VFS_SFS, [test "$enable_vfs" = "yes" -a x"$enable_vfs_sfs" = x"yes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-sftp.m4 b/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-sftp.m4 deleted file mode 100644 index 581b144b79..0000000000 --- a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-sftp.m4 +++ /dev/null @@ -1,22 +0,0 @@ -dnl Enable SFTP filesystem -AC_DEFUN([mc_VFS_SFTP], -[ - AC_ARG_ENABLE([vfs-sftp], - AS_HELP_STRING([--enable-vfs-sftp], [Support for SFTP filesystem [auto]])) - if test "$enable_vfs" != "no" -a x"$enable_vfs_sftp" != x"no"; then - PKG_CHECK_MODULES(LIBSSH, [libssh2 >= 1.2.8], [found_libssh=yes], [:]) - if test x"$found_libssh" = "xyes"; then - mc_VFS_ADDNAME([sftp]) - AC_DEFINE([ENABLE_VFS_SFTP], [1], [Support for SFTP filesystem]) - MCLIBS="$MCLIBS $LIBSSH_LIBS" - enable_vfs_sftp="yes" - else - if test x"$enable_vfs_sftp" = x"yes"; then - dnl user explicitly requested feature - AC_MSG_ERROR([libssh2 >= 1.2.8 library not found]) - fi - enable_vfs_sftp="no" - fi - fi - AM_CONDITIONAL([ENABLE_VFS_SFTP], [test "$enable_vfs" = "yes" -a x"$enable_vfs_sftp" = x"yes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-shell.m4 b/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-shell.m4 deleted file mode 100644 index b07b22b30f..0000000000 --- a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-shell.m4 +++ /dev/null @@ -1,12 +0,0 @@ -dnl Enable SHELL protocol -AC_DEFUN([mc_VFS_SHELL], -[ - AC_ARG_ENABLE([vfs-shell], - AS_HELP_STRING([--enable-vfs-shell], [Support for SHELL filesystem @<:@yes@:>@])) - if test "$enable_vfs" = "yes" -a "x$enable_vfs_shell" != xno; then - enable_vfs_shell="yes" - mc_VFS_ADDNAME([shell]) - AC_DEFINE([ENABLE_VFS_SHELL], [1], [Support for SHELL vfs]) - fi - AM_CONDITIONAL(ENABLE_VFS_SHELL, [test "$enable_vfs" = "yes" -a x"$enable_vfs_shell" = x"yes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-tarfs.m4 b/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-tarfs.m4 deleted file mode 100644 index 5feb2156f6..0000000000 --- a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-tarfs.m4 +++ /dev/null @@ -1,12 +0,0 @@ -dnl TAR filesystem support -AC_DEFUN([mc_VFS_TARFS], -[ - AC_ARG_ENABLE([vfs-tar], - AS_HELP_STRING([--enable-vfs-tar], [Support for tar filesystem @<:@yes@:>@])) - if test "$enable_vfs" = "yes" -a x"$enable_vfs_tar" != x"no"; then - enable_vfs_tar="yes" - mc_VFS_ADDNAME([tar]) - AC_DEFINE([ENABLE_VFS_TAR], [1], [Support for tar filesystem]) - fi - AM_CONDITIONAL(ENABLE_VFS_TAR, [test "$enable_vfs" = "yes" -a x"$enable_vfs_tar" = x"yes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-undelfs.m4 b/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-undelfs.m4 deleted file mode 100644 index ab6fd3ff8f..0000000000 --- a/recipes/wip/files/mc/source/m4.include/vfs/mc-vfs-undelfs.m4 +++ /dev/null @@ -1,55 +0,0 @@ -dnl mc_UNDELFS_CHECKS -dnl Check for ext2fs undel support. -dnl Set shell variable ext2fs_undel to "yes" if we have it, -dnl "no" otherwise. May define ENABLE_VFS_UNDELFS for cpp. -dnl Will set EXT2FS_UNDEL_LIBS to required libraries. - -AC_DEFUN([mc_UNDELFS_CHECKS], [ - ext2fs_undel=no - EXT2FS_UNDEL_LIBS= - - dnl Use result of mc_EXT2FS_ATTR that was called earlier - if test "x$ext2fs_attr_msg" = "xyes"; then - com_err=no - - PKG_CHECK_MODULES(COM_ERR, [com_err >= 1.42.4], [com_err=yes], [:]) - - if test x"$com_err" = "xyes"; then - EXT2FS_UNDEL_LIBS="$EXT2FS_LIBS $COM_ERR_LIBS" - ext2fs_undel=yes - fi - fi - -]) - -dnl -dnl Ext2fs undelete support -dnl -AC_DEFUN([mc_VFS_UNDELFS], -[ - AC_ARG_ENABLE([vfs-undelfs], - AS_HELP_STRING([--enable-vfs-undelfs], [Support for ext2 undelete filesystem @<:@no@:>@]), - [ - if test "x$enableval" = "xno"; then - enable_vfs_undelfs=no - else - enable_vfs_undelfs=yes - fi - ], - [enable_vfs_undelfs="no"]) - - if test x"$enable_vfs" = x"yes" -a x"$enable_vfs_undelfs" != x"no"; then - mc_UNDELFS_CHECKS - - if test x"$ext2fs_undel" = x"yes"; then - enable_vfs_undelfs="yes" - mc_VFS_ADDNAME([undelfs]) - AC_DEFINE(ENABLE_VFS_UNDELFS, [1], [Support for ext2 undelfs]) - AC_MSG_NOTICE([using ext2fs file recovery code]) - MCLIBS="$MCLIBS $EXT2FS_UNDEL_LIBS" - else - AC_MSG_ERROR([Ext2 libraries not found]) - fi - fi - AM_CONDITIONAL(ENABLE_VFS_UNDELFS, [test "$enable_vfs" = "yes" -a x"$enable_vfs_undelfs" = x"yes"]) -]) diff --git a/recipes/wip/files/mc/source/m4.include/vfs/socket.m4 b/recipes/wip/files/mc/source/m4.include/vfs/socket.m4 deleted file mode 100644 index 7391a53d88..0000000000 --- a/recipes/wip/files/mc/source/m4.include/vfs/socket.m4 +++ /dev/null @@ -1,13 +0,0 @@ -AC_DEFUN([AC_REQUIRE_SOCKET], -[ - AC_SEARCH_LIBS(socket, [xnet bsd socket inet], [have_socket=yes]) - if test x"$have_socket" = x"yes"; then - AC_SEARCH_LIBS(gethostbyname, [bsd socket inet netinet nsl]) - AC_CHECK_MEMBERS([struct linger.l_linger], , , [ -#include -#include - ]) - else - AC_MSG_ERROR([Couldn't find socket functions]) - fi -]) diff --git a/recipes/wip/files/mc/source/m4/gettext.m4 b/recipes/wip/files/mc/source/m4/gettext.m4 deleted file mode 100644 index 8d1f0665c8..0000000000 --- a/recipes/wip/files/mc/source/m4/gettext.m4 +++ /dev/null @@ -1,401 +0,0 @@ -# gettext.m4 serial 66 (gettext-0.18.2) -dnl Copyright (C) 1995-2013 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 Mac OS 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_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#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_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#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_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#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], []) diff --git a/recipes/wip/files/mc/source/m4/iconv.m4 b/recipes/wip/files/mc/source/m4/iconv.m4 deleted file mode 100644 index a503646569..0000000000 --- a/recipes/wip/files/mc/source/m4/iconv.m4 +++ /dev/null @@ -1,268 +0,0 @@ -# iconv.m4 serial 18 (gettext-0.18.2) -dnl Copyright (C) 2000-2002, 2007-2013 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_LINK_IFELSE will then fail, the second AC_LINK_IFELSE 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_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#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_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[ -#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, AIX 6.1..7.1, HP-UX 11.11, - dnl Solaris 10. - am_save_LIBS="$LIBS" - if test $am_cv_lib_iconv = yes; then - LIBS="$LIBS $LIBICONV" - fi - AC_RUN_IFELSE( - [AC_LANG_SOURCE([[ -#include -#include -int main () -{ - int result = 0; - /* 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) - result |= 1; - iconv_close (cd_utf8_to_88591); - } - } - /* 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) - result |= 2; - iconv_close (cd_ascii_to_88591); - } - } - /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ - { - iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); - if (cd_88591_to_utf8 != (iconv_t)(-1)) - { - static const char input[] = "\304"; - static char buf[2] = { (char)0xDE, (char)0xAD }; - const char *inptr = input; - size_t inbytesleft = 1; - char *outptr = buf; - size_t outbytesleft = 1; - size_t res = iconv (cd_88591_to_utf8, - (char **) &inptr, &inbytesleft, - &outptr, &outbytesleft); - if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) - result |= 4; - iconv_close (cd_88591_to_utf8); - } - } -#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) - result |= 8; - iconv_close (cd_88591_to_utf8); - } - } -#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)) - result |= 16; - return result; -}]])], - [am_cv_func_iconv_works=yes], - [am_cv_func_iconv_works=no], - [ -changequote(,)dnl - case "$host_os" in - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; - *) am_cv_func_iconv_works="guessing yes" ;; - esac -changequote([,])dnl - ]) - 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])]], - [m4_ifdef([gl_00GNULIB], - [[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_COMPILE_IFELSE( - [AC_LANG_PROGRAM( - [[ -#include -#include -extern -#ifdef __cplusplus -"C" -#endif -#if defined(__STDC__) || defined(_MSC_VER) || 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.]) - dnl Also substitute ICONV_CONST in the gnulib generated . - m4_ifdef([gl_ICONV_H_DEFAULTS], - [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) - if test -n "$am_cv_proto_iconv_arg1"; then - ICONV_CONST="const" - fi - ]) - fi -]) diff --git a/recipes/wip/files/mc/source/m4/intlmacosx.m4 b/recipes/wip/files/mc/source/m4/intlmacosx.m4 deleted file mode 100644 index ab97d39f94..0000000000 --- a/recipes/wip/files/mc/source/m4/intlmacosx.m4 +++ /dev/null @@ -1,56 +0,0 @@ -# intlmacosx.m4 serial 5 (gettext-0.18.2) -dnl Copyright (C) 2004-2013 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 Mac OS X. -dnl Defines INTL_MACOSX_LIBS. -AC_DEFUN([gt_INTL_MACOSX], -[ - dnl Check for API introduced in Mac OS X 10.2. - AC_CACHE_CHECK([for CFPreferencesCopyAppValue], - [gt_cv_func_CFPreferencesCopyAppValue], - [gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#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 Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) - fi - dnl Check for API introduced in Mac OS X 10.3. - AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], - [gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - AC_LINK_IFELSE( - [AC_LANG_PROGRAM( - [[#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 Mac OS 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]) -]) diff --git a/recipes/wip/files/mc/source/m4/lib-ld.m4 b/recipes/wip/files/mc/source/m4/lib-ld.m4 deleted file mode 100644 index c145e478e9..0000000000 --- a/recipes/wip/files/mc/source/m4/lib-ld.m4 +++ /dev/null @@ -1,119 +0,0 @@ -# lib-ld.m4 serial 6 -dnl Copyright (C) 1996-2003, 2009-2013 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/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid -dnl collision with libtool.m4. - -dnl From libtool-2.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 lds only accept -v. -case `$LD -v 2>&1 /dev/null 2>&1 \ - && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ - || PATH_SEPARATOR=';' - } -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 $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` - while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$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 - acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS="$acl_save_ifs" - 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 variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 = 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],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) - define([acl_frompackage_]NAME, [$2]) - popdef([NAME]) - pushdef([PACK],[$2]) - pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) - define([acl_libsinpackage_]PACKUP, - m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([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],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) - pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) - pushdef([PACKUP],[m4_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],[m4_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]) -]) diff --git a/recipes/wip/files/mc/source/m4/lib-prefix.m4 b/recipes/wip/files/mc/source/m4/lib-prefix.m4 deleted file mode 100644 index 60908e8fb4..0000000000 --- a/recipes/wip/files/mc/source/m4/lib-prefix.m4 +++ /dev/null @@ -1,224 +0,0 @@ -# lib-prefix.m4 serial 7 (gettext-0.18) -dnl Copyright (C) 2001-2005, 2008-2013 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" -]) diff --git a/recipes/wip/files/mc/source/m4/libtool.m4 b/recipes/wip/files/mc/source/m4/libtool.m4 deleted file mode 100644 index e3adedad63..0000000000 --- a/recipes/wip/files/mc/source/m4/libtool.m4 +++ /dev/null @@ -1,8403 +0,0 @@ -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -# -# Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software -# Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -m4_define([_LT_COPYING], [dnl -# Copyright (C) 2014 Free Software Foundation, Inc. -# This is free software; see the source for copying conditions. There is NO -# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - -# GNU Libtool is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of of the License, or -# (at your option) any later version. -# -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program or library that is built -# using GNU Libtool, you may include this file under the same -# distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . -]) - -# serial 59 LT_INIT - - -# LT_PREREQ(VERSION) -# ------------------ -# Complain and exit if this libtool version is less that VERSION. -m4_defun([LT_PREREQ], -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, - [m4_default([$3], - [m4_fatal([Libtool version $1 or higher is required], - 63)])], - [$2])]) - - -# _LT_CHECK_BUILDDIR -# ------------------ -# Complain if the absolute build directory name contains unusual characters -m4_defun([_LT_CHECK_BUILDDIR], -[case `pwd` in - *\ * | *\ *) - AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; -esac -]) - - -# LT_INIT([OPTIONS]) -# ------------------ -AC_DEFUN([LT_INIT], -[AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK -AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl -AC_BEFORE([$0], [LT_LANG])dnl -AC_BEFORE([$0], [LT_OUTPUT])dnl -AC_BEFORE([$0], [LTDL_INIT])dnl -m4_require([_LT_CHECK_BUILDDIR])dnl - -dnl Autoconf doesn't catch unexpanded LT_ macros by default: -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 -dnl unless we require an AC_DEFUNed macro: -AC_REQUIRE([LTOPTIONS_VERSION])dnl -AC_REQUIRE([LTSUGAR_VERSION])dnl -AC_REQUIRE([LTVERSION_VERSION])dnl -AC_REQUIRE([LTOBSOLETE_VERSION])dnl -m4_require([_LT_PROG_LTMAIN])dnl - -_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) - -dnl Parse OPTIONS -_LT_SET_OPTIONS([$0], [$1]) - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS=$ltmain - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -_LT_SETUP - -# Only expand once: -m4_define([LT_INIT]) -])# LT_INIT - -# Old names: -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PROG_LIBTOOL], []) -dnl AC_DEFUN([AM_PROG_LIBTOOL], []) - - -# _LT_PREPARE_CC_BASENAME -# ----------------------- -m4_defun([_LT_PREPARE_CC_BASENAME], [ -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -func_cc_basename () -{ - for cc_temp in @S|@*""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac - done - func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` -} -])# _LT_PREPARE_CC_BASENAME - - -# _LT_CC_BASENAME(CC) -# ------------------- -# It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME, -# but that macro is also expanded into generated libtool script, which -# arranges for $SED and $ECHO to be set by different means. -m4_defun([_LT_CC_BASENAME], -[m4_require([_LT_PREPARE_CC_BASENAME])dnl -AC_REQUIRE([_LT_DECL_SED])dnl -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl -func_cc_basename $1 -cc_basename=$func_cc_basename_result -]) - - -# _LT_FILEUTILS_DEFAULTS -# ---------------------- -# It is okay to use these file commands and assume they have been set -# sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'. -m4_defun([_LT_FILEUTILS_DEFAULTS], -[: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} -])# _LT_FILEUTILS_DEFAULTS - - -# _LT_SETUP -# --------- -m4_defun([_LT_SETUP], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl - -_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl -dnl -_LT_DECL([], [host_alias], [0], [The host system])dnl -_LT_DECL([], [host], [0])dnl -_LT_DECL([], [host_os], [0])dnl -dnl -_LT_DECL([], [build_alias], [0], [The build system])dnl -_LT_DECL([], [build], [0])dnl -_LT_DECL([], [build_os], [0])dnl -dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -dnl -AC_REQUIRE([AC_PROG_LN_S])dnl -test -z "$LN_S" && LN_S="ln -s" -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl -dnl -AC_REQUIRE([LT_CMD_MAX_LEN])dnl -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl -dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_CHECK_SHELL_FEATURES])dnl -m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl -m4_require([_LT_CMD_RELOAD])dnl -m4_require([_LT_DECL_FILECMD])dnl -m4_require([_LT_CHECK_MAGIC_METHOD])dnl -m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl -m4_require([_LT_CMD_OLD_ARCHIVE])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -m4_require([_LT_WITH_SYSROOT])dnl -m4_require([_LT_CMD_TRUNCATE])dnl - -_LT_CONFIG_LIBTOOL_INIT([ -# See if we are running on zsh, and set the options that allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi -]) -if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST -fi - -_LT_CHECK_OBJDIR - -m4_require([_LT_TAG_COMPILER])dnl - -case $host_os in -aix3*) - # AIX sometimes has problems with the GCC collect2 program. For some - # reason, if we set the COLLECT_NAMES environment variable, the problems - # vanish in a puff of smoke. - if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES - fi - ;; -esac - -# Global variables: -ofile=libtool -can_build_shared=yes - -# All known linkers require a '.a' archive for static linking (except MSVC and -# ICC, which need '.lib'). -libext=a - -with_gnu_ld=$lt_cv_prog_gnu_ld - -old_CC=$CC -old_CFLAGS=$CFLAGS - -# Set sane defaults for various variables -test -z "$CC" && CC=cc -test -z "$LTCC" && LTCC=$CC -test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS -test -z "$LD" && LD=ld -test -z "$ac_objext" && ac_objext=o - -_LT_CC_BASENAME([$compiler]) - -# Only perform the check for file, if the check method requires it -test -z "$MAGIC_CMD" && MAGIC_CMD=file -case $deplibs_check_method in -file_magic*) - if test "$file_magic_cmd" = '$MAGIC_CMD'; then - _LT_PATH_MAGIC - fi - ;; -esac - -# Use C for the default configuration in the libtool script -LT_SUPPORTED_TAG([CC]) -_LT_LANG_C_CONFIG -_LT_LANG_DEFAULT_CONFIG -_LT_CONFIG_COMMANDS -])# _LT_SETUP - - -# _LT_PREPARE_SED_QUOTE_VARS -# -------------------------- -# Define a few sed substitution that help us do robust quoting. -m4_defun([_LT_PREPARE_SED_QUOTE_VARS], -[# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' - -# Same as above, but do not quote variable references. -double_quote_subst='s/\([["`\\]]\)/\\\1/g' - -# Sed substitution to delay expansion of an escaped shell variable in a -# double_quote_subst'ed string. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' - -# Sed substitution to delay expansion of an escaped single quote. -delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' - -# Sed substitution to avoid accidental globbing in evaled expressions -no_glob_subst='s/\*/\\\*/g' -]) - -# _LT_PROG_LTMAIN -# --------------- -# Note that this code is called both from 'configure', and 'config.status' -# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, -# 'config.status' has no value for ac_aux_dir unless we are using Automake, -# so we pass a copy along to make sure it has a sensible value anyway. -m4_defun([_LT_PROG_LTMAIN], -[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl -_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) -ltmain=$ac_aux_dir/ltmain.sh -])# _LT_PROG_LTMAIN - - -## ------------------------------------- ## -## Accumulate code for creating libtool. ## -## ------------------------------------- ## - -# So that we can recreate a full libtool script including additional -# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS -# in macros and then make a single call at the end using the 'libtool' -# label. - - -# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) -# ---------------------------------------- -# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. -m4_define([_LT_CONFIG_LIBTOOL_INIT], -[m4_ifval([$1], - [m4_append([_LT_OUTPUT_LIBTOOL_INIT], - [$1 -])])]) - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_INIT]) - - -# _LT_CONFIG_LIBTOOL([COMMANDS]) -# ------------------------------ -# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. -m4_define([_LT_CONFIG_LIBTOOL], -[m4_ifval([$1], - [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], - [$1 -])])]) - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) - - -# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) -# ----------------------------------------------------- -m4_defun([_LT_CONFIG_SAVE_COMMANDS], -[_LT_CONFIG_LIBTOOL([$1]) -_LT_CONFIG_LIBTOOL_INIT([$2]) -]) - - -# _LT_FORMAT_COMMENT([COMMENT]) -# ----------------------------- -# Add leading comment marks to the start of each line, and a trailing -# full-stop to the whole comment if one is not present already. -m4_define([_LT_FORMAT_COMMENT], -[m4_ifval([$1], [ -m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], - [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) -)]) - - - -## ------------------------ ## -## FIXME: Eliminate VARNAME ## -## ------------------------ ## - - -# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) -# ------------------------------------------------------------------- -# CONFIGNAME is the name given to the value in the libtool script. -# VARNAME is the (base) name used in the configure script. -# VALUE may be 0, 1 or 2 for a computed quote escaped value based on -# VARNAME. Any other value will be used directly. -m4_define([_LT_DECL], -[lt_if_append_uniq([lt_decl_varnames], [$2], [, ], - [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], - [m4_ifval([$1], [$1], [$2])]) - lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) - m4_ifval([$4], - [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) - lt_dict_add_subkey([lt_decl_dict], [$2], - [tagged?], [m4_ifval([$5], [yes], [no])])]) -]) - - -# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) -# -------------------------------------------------------- -m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) - - -# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) -# ------------------------------------------------ -m4_define([lt_decl_tag_varnames], -[_lt_decl_filter([tagged?], [yes], $@)]) - - -# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) -# --------------------------------------------------------- -m4_define([_lt_decl_filter], -[m4_case([$#], - [0], [m4_fatal([$0: too few arguments: $#])], - [1], [m4_fatal([$0: too few arguments: $#: $1])], - [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], - [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], - [lt_dict_filter([lt_decl_dict], $@)])[]dnl -]) - - -# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) -# -------------------------------------------------- -m4_define([lt_decl_quote_varnames], -[_lt_decl_filter([value], [1], $@)]) - - -# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) -# --------------------------------------------------- -m4_define([lt_decl_dquote_varnames], -[_lt_decl_filter([value], [2], $@)]) - - -# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) -# --------------------------------------------------- -m4_define([lt_decl_varnames_tagged], -[m4_assert([$# <= 2])dnl -_$0(m4_quote(m4_default([$1], [[, ]])), - m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), - m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) -m4_define([_lt_decl_varnames_tagged], -[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) - - -# lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) -# ------------------------------------------------ -m4_define([lt_decl_all_varnames], -[_$0(m4_quote(m4_default([$1], [[, ]])), - m4_if([$2], [], - m4_quote(lt_decl_varnames), - m4_quote(m4_shift($@))))[]dnl -]) -m4_define([_lt_decl_all_varnames], -[lt_join($@, lt_decl_varnames_tagged([$1], - lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl -]) - - -# _LT_CONFIG_STATUS_DECLARE([VARNAME]) -# ------------------------------------ -# Quote a variable value, and forward it to 'config.status' so that its -# declaration there will have the same value as in 'configure'. VARNAME -# must have a single quote delimited value for this to work. -m4_define([_LT_CONFIG_STATUS_DECLARE], -[$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) - - -# _LT_CONFIG_STATUS_DECLARATIONS -# ------------------------------ -# We delimit libtool config variables with single quotes, so when -# we write them to config.status, we have to be sure to quote all -# embedded single quotes properly. In configure, this macro expands -# each variable declared with _LT_DECL (and _LT_TAGDECL) into: -# -# ='`$ECHO "$" | $SED "$delay_single_quote_subst"`' -m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], -[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), - [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) - - -# _LT_LIBTOOL_TAGS -# ---------------- -# Output comment and list of tags supported by the script -m4_defun([_LT_LIBTOOL_TAGS], -[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl -available_tags='_LT_TAGS'dnl -]) - - -# _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) -# ----------------------------------- -# Extract the dictionary values for VARNAME (optionally with TAG) and -# expand to a commented shell variable setting: -# -# # Some comment about what VAR is for. -# visible_name=$lt_internal_name -m4_define([_LT_LIBTOOL_DECLARE], -[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], - [description])))[]dnl -m4_pushdef([_libtool_name], - m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl -m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), - [0], [_libtool_name=[$]$1], - [1], [_libtool_name=$lt_[]$1], - [2], [_libtool_name=$lt_[]$1], - [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl -m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl -]) - - -# _LT_LIBTOOL_CONFIG_VARS -# ----------------------- -# Produce commented declarations of non-tagged libtool config variables -# suitable for insertion in the LIBTOOL CONFIG section of the 'libtool' -# script. Tagged libtool config variables (even for the LIBTOOL CONFIG -# section) are produced by _LT_LIBTOOL_TAG_VARS. -m4_defun([_LT_LIBTOOL_CONFIG_VARS], -[m4_foreach([_lt_var], - m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) - - -# _LT_LIBTOOL_TAG_VARS(TAG) -# ------------------------- -m4_define([_LT_LIBTOOL_TAG_VARS], -[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), - [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) - - -# _LT_TAGVAR(VARNAME, [TAGNAME]) -# ------------------------------ -m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) - - -# _LT_CONFIG_COMMANDS -# ------------------- -# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of -# variables for single and double quote escaping we saved from calls -# to _LT_DECL, we can put quote escaped variables declarations -# into 'config.status', and then the shell code to quote escape them in -# for loops in 'config.status'. Finally, any additional code accumulated -# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. -m4_defun([_LT_CONFIG_COMMANDS], -[AC_PROVIDE_IFELSE([LT_OUTPUT], - dnl If the libtool generation code has been placed in $CONFIG_LT, - dnl instead of duplicating it all over again into config.status, - dnl then we will have config.status run $CONFIG_LT later, so it - dnl needs to know what name is stored there: - [AC_CONFIG_COMMANDS([libtool], - [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], - dnl If the libtool generation code is destined for config.status, - dnl expand the accumulated commands and init code now: - [AC_CONFIG_COMMANDS([libtool], - [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) -])#_LT_CONFIG_COMMANDS - - -# Initialize. -m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], -[ - -# The HP-UX ksh and POSIX shell print the target directory to stdout -# if CDPATH is set. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH - -sed_quote_subst='$sed_quote_subst' -double_quote_subst='$double_quote_subst' -delay_variable_subst='$delay_variable_subst' -_LT_CONFIG_STATUS_DECLARATIONS -LTCC='$LTCC' -LTCFLAGS='$LTCFLAGS' -compiler='$compiler_DEFAULT' - -# A function that is used when there is no print builtin or printf. -func_fallback_echo () -{ - eval 'cat <<_LTECHO_EOF -\$[]1 -_LTECHO_EOF' -} - -# Quote evaled strings. -for var in lt_decl_all_varnames([[ \ -]], lt_decl_quote_varnames); do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[[\\\\\\\`\\"\\\$]]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -# Double-quote double-evaled strings. -for var in lt_decl_all_varnames([[ \ -]], lt_decl_dquote_varnames); do - case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in - *[[\\\\\\\`\\"\\\$]]*) - eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes - ;; - *) - eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" - ;; - esac -done - -_LT_OUTPUT_LIBTOOL_INIT -]) - -# _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) -# ------------------------------------ -# Generate a child script FILE with all initialization necessary to -# reuse the environment learned by the parent script, and make the -# file executable. If COMMENT is supplied, it is inserted after the -# '#!' sequence but before initialization text begins. After this -# macro, additional text can be appended to FILE to form the body of -# the child script. The macro ends with non-zero status if the -# file could not be fully written (such as if the disk is full). -m4_ifdef([AS_INIT_GENERATED], -[m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], -[m4_defun([_LT_GENERATED_FILE_INIT], -[m4_require([AS_PREPARE])]dnl -[m4_pushdef([AS_MESSAGE_LOG_FD])]dnl -[lt_write_fail=0 -cat >$1 <<_ASEOF || lt_write_fail=1 -#! $SHELL -# Generated by $as_me. -$2 -SHELL=\${CONFIG_SHELL-$SHELL} -export SHELL -_ASEOF -cat >>$1 <<\_ASEOF || lt_write_fail=1 -AS_SHELL_SANITIZE -_AS_PREPARE -exec AS_MESSAGE_FD>&1 -_ASEOF -test 0 = "$lt_write_fail" && chmod +x $1[]dnl -m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT - -# LT_OUTPUT -# --------- -# This macro allows early generation of the libtool script (before -# AC_OUTPUT is called), incase it is used in configure for compilation -# tests. -AC_DEFUN([LT_OUTPUT], -[: ${CONFIG_LT=./config.lt} -AC_MSG_NOTICE([creating $CONFIG_LT]) -_LT_GENERATED_FILE_INIT(["$CONFIG_LT"], -[# Run this file to recreate a libtool stub with the current configuration.]) - -cat >>"$CONFIG_LT" <<\_LTEOF -lt_cl_silent=false -exec AS_MESSAGE_LOG_FD>>config.log -{ - echo - AS_BOX([Running $as_me.]) -} >&AS_MESSAGE_LOG_FD - -lt_cl_help="\ -'$as_me' creates a local libtool stub from the current configuration, -for use in further configure time tests before the real libtool is -generated. - -Usage: $[0] [[OPTIONS]] - - -h, --help print this help, then exit - -V, --version print version number, then exit - -q, --quiet do not print progress messages - -d, --debug don't remove temporary files - -Report bugs to ." - -lt_cl_version="\ -m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl -m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) -configured by $[0], generated by m4_PACKAGE_STRING. - -Copyright (C) 2011 Free Software Foundation, Inc. -This config.lt script is free software; the Free Software Foundation -gives unlimited permision to copy, distribute and modify it." - -while test 0 != $[#] -do - case $[1] in - --version | --v* | -V ) - echo "$lt_cl_version"; exit 0 ;; - --help | --h* | -h ) - echo "$lt_cl_help"; exit 0 ;; - --debug | --d* | -d ) - debug=: ;; - --quiet | --q* | --silent | --s* | -q ) - lt_cl_silent=: ;; - - -*) AC_MSG_ERROR([unrecognized option: $[1] -Try '$[0] --help' for more information.]) ;; - - *) AC_MSG_ERROR([unrecognized argument: $[1] -Try '$[0] --help' for more information.]) ;; - esac - shift -done - -if $lt_cl_silent; then - exec AS_MESSAGE_FD>/dev/null -fi -_LTEOF - -cat >>"$CONFIG_LT" <<_LTEOF -_LT_OUTPUT_LIBTOOL_COMMANDS_INIT -_LTEOF - -cat >>"$CONFIG_LT" <<\_LTEOF -AC_MSG_NOTICE([creating $ofile]) -_LT_OUTPUT_LIBTOOL_COMMANDS -AS_EXIT(0) -_LTEOF -chmod +x "$CONFIG_LT" - -# configure is writing to config.log, but config.lt does its own redirection, -# appending to config.log, which fails on DOS, as config.log is still kept -# open by configure. Here we exec the FD to /dev/null, effectively closing -# config.log, so it can be properly (re)opened and appended to by config.lt. -lt_cl_success=: -test yes = "$silent" && - lt_config_lt_args="$lt_config_lt_args --quiet" -exec AS_MESSAGE_LOG_FD>/dev/null -$SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false -exec AS_MESSAGE_LOG_FD>>config.log -$lt_cl_success || AS_EXIT(1) -])# LT_OUTPUT - - -# _LT_CONFIG(TAG) -# --------------- -# If TAG is the built-in tag, create an initial libtool script with a -# default configuration from the untagged config vars. Otherwise add code -# to config.status for appending the configuration named by TAG from the -# matching tagged config vars. -m4_defun([_LT_CONFIG], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -_LT_CONFIG_SAVE_COMMANDS([ - m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl - m4_if(_LT_TAG, [C], [ - # See if we are running on zsh, and set the options that allow our - # commands through without removal of \ escapes. - if test -n "${ZSH_VERSION+set}"; then - setopt NO_GLOB_SUBST - fi - - cfgfile=${ofile}T - trap "$RM \"$cfgfile\"; exit 1" 1 2 15 - $RM "$cfgfile" - - cat <<_LT_EOF >> "$cfgfile" -#! $SHELL -# Generated automatically by $as_me ($PACKAGE) $VERSION -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: -# NOTE: Changes made to this file will be lost: look at ltmain.sh. - -# Provide generalized library-building support services. -# Written by Gordon Matzigkeit, 1996 - -_LT_COPYING -_LT_LIBTOOL_TAGS - -# Configured defaults for sys_lib_dlsearch_path munging. -: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} - -# ### BEGIN LIBTOOL CONFIG -_LT_LIBTOOL_CONFIG_VARS -_LT_LIBTOOL_TAG_VARS -# ### END LIBTOOL CONFIG - -_LT_EOF - - cat <<'_LT_EOF' >> "$cfgfile" - -# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE - -_LT_PREPARE_MUNGE_PATH_LIST -_LT_PREPARE_CC_BASENAME - -# ### END FUNCTIONS SHARED WITH CONFIGURE - -_LT_EOF - - case $host_os in - aix3*) - cat <<\_LT_EOF >> "$cfgfile" -# AIX sometimes has problems with the GCC collect2 program. For some -# reason, if we set the COLLECT_NAMES environment variable, the problems -# vanish in a puff of smoke. -if test set != "${COLLECT_NAMES+set}"; then - COLLECT_NAMES= - export COLLECT_NAMES -fi -_LT_EOF - ;; - esac - - _LT_PROG_LTMAIN - - # We use sed instead of cat because bash on DJGPP gets confused if - # if finds mixed CR/LF and LF-only lines. Since sed operates in - # text mode, it properly converts lines to CR/LF. This bash problem - # is reportedly fixed, but why not run on old versions too? - $SED '$q' "$ltmain" >> "$cfgfile" \ - || (rm -f "$cfgfile"; exit 1) - - mv -f "$cfgfile" "$ofile" || - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") - chmod +x "$ofile" -], -[cat <<_LT_EOF >> "$ofile" - -dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded -dnl in a comment (ie after a #). -# ### BEGIN LIBTOOL TAG CONFIG: $1 -_LT_LIBTOOL_TAG_VARS(_LT_TAG) -# ### END LIBTOOL TAG CONFIG: $1 -_LT_EOF -])dnl /m4_if -], -[m4_if([$1], [], [ - PACKAGE='$PACKAGE' - VERSION='$VERSION' - RM='$RM' - ofile='$ofile'], []) -])dnl /_LT_CONFIG_SAVE_COMMANDS -])# _LT_CONFIG - - -# LT_SUPPORTED_TAG(TAG) -# --------------------- -# Trace this macro to discover what tags are supported by the libtool -# --tag option, using: -# autoconf --trace 'LT_SUPPORTED_TAG:$1' -AC_DEFUN([LT_SUPPORTED_TAG], []) - - -# C support is built-in for now -m4_define([_LT_LANG_C_enabled], []) -m4_define([_LT_TAGS], []) - - -# LT_LANG(LANG) -# ------------- -# Enable libtool support for the given language if not already enabled. -AC_DEFUN([LT_LANG], -[AC_BEFORE([$0], [LT_OUTPUT])dnl -m4_case([$1], - [C], [_LT_LANG(C)], - [C++], [_LT_LANG(CXX)], - [Go], [_LT_LANG(GO)], - [Java], [_LT_LANG(GCJ)], - [Fortran 77], [_LT_LANG(F77)], - [Fortran], [_LT_LANG(FC)], - [Windows Resource], [_LT_LANG(RC)], - [m4_ifdef([_LT_LANG_]$1[_CONFIG], - [_LT_LANG($1)], - [m4_fatal([$0: unsupported language: "$1"])])])dnl -])# LT_LANG - - -# _LT_LANG(LANGNAME) -# ------------------ -m4_defun([_LT_LANG], -[m4_ifdef([_LT_LANG_]$1[_enabled], [], - [LT_SUPPORTED_TAG([$1])dnl - m4_append([_LT_TAGS], [$1 ])dnl - m4_define([_LT_LANG_]$1[_enabled], [])dnl - _LT_LANG_$1_CONFIG($1)])dnl -])# _LT_LANG - - -m4_ifndef([AC_PROG_GO], [ -############################################################ -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_GO. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -############################################################ -m4_defun([AC_PROG_GO], -[AC_LANG_PUSH(Go)dnl -AC_ARG_VAR([GOC], [Go compiler command])dnl -AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl -_AC_ARG_VAR_LDFLAGS()dnl -AC_CHECK_TOOL(GOC, gccgo) -if test -z "$GOC"; then - if test -n "$ac_tool_prefix"; then - AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo]) - fi -fi -if test -z "$GOC"; then - AC_CHECK_PROG(GOC, gccgo, gccgo, false) -fi -])#m4_defun -])#m4_ifndef - - -# _LT_LANG_DEFAULT_CONFIG -# ----------------------- -m4_defun([_LT_LANG_DEFAULT_CONFIG], -[AC_PROVIDE_IFELSE([AC_PROG_CXX], - [LT_LANG(CXX)], - [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) - -AC_PROVIDE_IFELSE([AC_PROG_F77], - [LT_LANG(F77)], - [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) - -AC_PROVIDE_IFELSE([AC_PROG_FC], - [LT_LANG(FC)], - [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) - -dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal -dnl pulling things in needlessly. -AC_PROVIDE_IFELSE([AC_PROG_GCJ], - [LT_LANG(GCJ)], - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], - [LT_LANG(GCJ)], - [AC_PROVIDE_IFELSE([LT_PROG_GCJ], - [LT_LANG(GCJ)], - [m4_ifdef([AC_PROG_GCJ], - [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) - m4_ifdef([A][M_PROG_GCJ], - [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) - m4_ifdef([LT_PROG_GCJ], - [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) - -AC_PROVIDE_IFELSE([AC_PROG_GO], - [LT_LANG(GO)], - [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])]) - -AC_PROVIDE_IFELSE([LT_PROG_RC], - [LT_LANG(RC)], - [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) -])# _LT_LANG_DEFAULT_CONFIG - -# Obsolete macros: -AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) -AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) -AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) -AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) -AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_CXX], []) -dnl AC_DEFUN([AC_LIBTOOL_F77], []) -dnl AC_DEFUN([AC_LIBTOOL_FC], []) -dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) -dnl AC_DEFUN([AC_LIBTOOL_RC], []) - - -# _LT_TAG_COMPILER -# ---------------- -m4_defun([_LT_TAG_COMPILER], -[AC_REQUIRE([AC_PROG_CC])dnl - -_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl -_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl -_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl -_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC -])# _LT_TAG_COMPILER - - -# _LT_COMPILER_BOILERPLATE -# ------------------------ -# Check for compiler boilerplate output or warnings with -# the simple compiler test code. -m4_defun([_LT_COMPILER_BOILERPLATE], -[m4_require([_LT_DECL_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_compile_test_code" >conftest.$ac_ext -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_compiler_boilerplate=`cat conftest.err` -$RM conftest* -])# _LT_COMPILER_BOILERPLATE - - -# _LT_LINKER_BOILERPLATE -# ---------------------- -# Check for linker boilerplate output or warnings with -# the simple link test code. -m4_defun([_LT_LINKER_BOILERPLATE], -[m4_require([_LT_DECL_SED])dnl -ac_outfile=conftest.$ac_objext -echo "$lt_simple_link_test_code" >conftest.$ac_ext -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err -_lt_linker_boilerplate=`cat conftest.err` -$RM -r conftest* -])# _LT_LINKER_BOILERPLATE - -# _LT_REQUIRED_DARWIN_CHECKS -# ------------------------- -m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ - case $host_os in - rhapsody* | darwin*) - AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) - AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) - AC_CHECK_TOOL([LIPO], [lipo], [:]) - AC_CHECK_TOOL([OTOOL], [otool], [:]) - AC_CHECK_TOOL([OTOOL64], [otool64], [:]) - _LT_DECL([], [DSYMUTIL], [1], - [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) - _LT_DECL([], [NMEDIT], [1], - [Tool to change global to local symbols on Mac OS X]) - _LT_DECL([], [LIPO], [1], - [Tool to manipulate fat objects and archives on Mac OS X]) - _LT_DECL([], [OTOOL], [1], - [ldd/readelf like tool for Mach-O binaries on Mac OS X]) - _LT_DECL([], [OTOOL64], [1], - [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) - - AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], - [lt_cv_apple_cc_single_mod=no - if test -z "$LT_MULTI_MODULE"; then - # By default we will add the -single_module flag. You can override - # by either setting the environment variable LT_MULTI_MODULE - # non-empty at configure time, or by adding -multi_module to the - # link flags. - rm -rf libconftest.dylib* - echo "int foo(void){return 1;}" > conftest.c - echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ --dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ - -dynamiclib -Wl,-single_module conftest.c 2>conftest.err - _lt_result=$? - # If there is a non-empty error log, and "single_module" - # appears in it, assume the flag caused a linker warning - if test -s conftest.err && $GREP single_module conftest.err; then - cat conftest.err >&AS_MESSAGE_LOG_FD - # Otherwise, if the output was created with a 0 exit code from - # the compiler, it worked. - elif test -f libconftest.dylib && test 0 = "$_lt_result"; then - lt_cv_apple_cc_single_mod=yes - else - cat conftest.err >&AS_MESSAGE_LOG_FD - fi - rm -rf libconftest.dylib* - rm -f conftest.* - fi]) - - AC_CACHE_CHECK([for -exported_symbols_list linker flag], - [lt_cv_ld_exported_symbols_list], - [lt_cv_ld_exported_symbols_list=no - save_LDFLAGS=$LDFLAGS - echo "_main" > conftest.sym - LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [lt_cv_ld_exported_symbols_list=yes], - [lt_cv_ld_exported_symbols_list=no]) - LDFLAGS=$save_LDFLAGS - ]) - - AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], - [lt_cv_ld_force_load=no - cat > conftest.c << _LT_EOF -int forced_loaded() { return 2;} -_LT_EOF - echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD - echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD - $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD - echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD - $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD - cat > conftest.c << _LT_EOF -int main() { return 0;} -_LT_EOF - echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD - $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err - _lt_result=$? - if test -s conftest.err && $GREP force_load conftest.err; then - cat conftest.err >&AS_MESSAGE_LOG_FD - elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then - lt_cv_ld_force_load=yes - else - cat conftest.err >&AS_MESSAGE_LOG_FD - fi - rm -f conftest.err libconftest.a conftest conftest.c - rm -rf conftest.dSYM - ]) - case $host_os in - rhapsody* | darwin1.[[012]]) - _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; - darwin1.*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - darwin*) - case $MACOSX_DEPLOYMENT_TARGET,$host in - 10.[[012]],*|,*powerpc*-darwin[[5-8]]*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - *) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - esac - ;; - esac - if test yes = "$lt_cv_apple_cc_single_mod"; then - _lt_dar_single_mod='$single_module' - fi - if test yes = "$lt_cv_ld_exported_symbols_list"; then - _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' - else - _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' - fi - if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then - _lt_dsymutil='~$DSYMUTIL $lib || :' - else - _lt_dsymutil= - fi - ;; - esac -]) - - -# _LT_DARWIN_LINKER_FEATURES([TAG]) -# --------------------------------- -# Checks for linker and compiler features on darwin -m4_defun([_LT_DARWIN_LINKER_FEATURES], -[ - m4_require([_LT_REQUIRED_DARWIN_CHECKS]) - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_automatic, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - if test yes = "$lt_cv_ld_force_load"; then - _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' - m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes], - [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes]) - else - _LT_TAGVAR(whole_archive_flag_spec, $1)='' - fi - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined - case $cc_basename in - ifort*|nagfor*) _lt_dar_can_shared=yes ;; - *) _lt_dar_can_shared=$GCC ;; - esac - if test yes = "$_lt_dar_can_shared"; then - output_verbose_link_cmd=func_echo_all - _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" - _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" - _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" - _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" - m4_if([$1], [CXX], -[ if test yes != "$lt_cv_apple_cc_single_mod"; then - _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" - _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" - fi -],[]) - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi -]) - -# _LT_SYS_MODULE_PATH_AIX([TAGNAME]) -# ---------------------------------- -# Links a minimal program and checks the executable -# for the system default hardcoded library path. In most cases, -# this is /usr/lib:/lib, but when the MPI compilers are used -# the location of the communication and MPI libs are included too. -# If we don't find anything, use the default library path according -# to the aix ld manual. -# Store the results from the different compilers for each TAGNAME. -# Allow to override them for all tags through lt_cv_aix_libpath. -m4_defun([_LT_SYS_MODULE_PATH_AIX], -[m4_require([_LT_DECL_SED])dnl -if test set = "${lt_cv_aix_libpath+set}"; then - aix_libpath=$lt_cv_aix_libpath -else - AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], - [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ - lt_aix_libpath_sed='[ - /Import File Strings/,/^$/ { - /^0/ { - s/^0 *\([^ ]*\) *$/\1/ - p - } - }]' - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - # Check for a 64-bit object if we didn't find anything. - if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` - fi],[]) - if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then - _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib - fi - ]) - aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) -fi -])# _LT_SYS_MODULE_PATH_AIX - - -# _LT_SHELL_INIT(ARG) -# ------------------- -m4_define([_LT_SHELL_INIT], -[m4_divert_text([M4SH-INIT], [$1 -])])# _LT_SHELL_INIT - - - -# _LT_PROG_ECHO_BACKSLASH -# ----------------------- -# Find how we can fake an echo command that does not interpret backslash. -# In particular, with Autoconf 2.60 or later we add some code to the start -# of the generated configure script that will find a shell with a builtin -# printf (that we can use as an echo command). -m4_defun([_LT_PROG_ECHO_BACKSLASH], -[ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO -ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - -AC_MSG_CHECKING([how to print strings]) -# Test print first, because it will be a builtin if present. -if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ - test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='print -r --' -elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then - ECHO='printf %s\n' -else - # Use this function as a fallback that always works. - func_fallback_echo () - { - eval 'cat <<_LTECHO_EOF -$[]1 -_LTECHO_EOF' - } - ECHO='func_fallback_echo' -fi - -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "$*" -} - -case $ECHO in - printf*) AC_MSG_RESULT([printf]) ;; - print*) AC_MSG_RESULT([print -r]) ;; - *) AC_MSG_RESULT([cat]) ;; -esac - -m4_ifdef([_AS_DETECT_SUGGESTED], -[_AS_DETECT_SUGGESTED([ - test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( - ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO - ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO - PATH=/empty FPATH=/empty; export PATH FPATH - test "X`printf %s $ECHO`" = "X$ECHO" \ - || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) - -_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) -_LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) -])# _LT_PROG_ECHO_BACKSLASH - - -# _LT_WITH_SYSROOT -# ---------------- -AC_DEFUN([_LT_WITH_SYSROOT], -[m4_require([_LT_DECL_SED])dnl -AC_MSG_CHECKING([for sysroot]) -AC_ARG_WITH([sysroot], -[AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], - [Search for dependent libraries within DIR (or the compiler's sysroot - if not specified).])], -[], [with_sysroot=no]) - -dnl lt_sysroot will always be passed unquoted. We quote it here -dnl in case the user passed a directory name. -lt_sysroot= -case $with_sysroot in #( - yes) - if test yes = "$GCC"; then - lt_sysroot=`$CC --print-sysroot 2>/dev/null` - fi - ;; #( - /*) - lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` - ;; #( - no|'') - ;; #( - *) - AC_MSG_RESULT([$with_sysroot]) - AC_MSG_ERROR([The sysroot must be an absolute path.]) - ;; -esac - - AC_MSG_RESULT([${lt_sysroot:-no}]) -_LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl -[dependent libraries, and where our libraries should be installed.])]) - -# _LT_ENABLE_LOCK -# --------------- -m4_defun([_LT_ENABLE_LOCK], -[AC_ARG_ENABLE([libtool-lock], - [AS_HELP_STRING([--disable-libtool-lock], - [avoid locking (might break parallel builds)])]) -test no = "$enable_libtool_lock" || enable_libtool_lock=yes - -# Some flags need to be propagated to the compiler or linker for good -# libtool support. -case $host in -ia64-*-hpux*) - # Find out what ABI is being produced by ac_compile, and set mode - # options accordingly. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `$FILECMD conftest.$ac_objext` in - *ELF-32*) - HPUX_IA64_MODE=32 - ;; - *ELF-64*) - HPUX_IA64_MODE=64 - ;; - esac - fi - rm -rf conftest* - ;; -*-*-irix6*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - if test yes = "$lt_cv_prog_gnu_ld"; then - case `$FILECMD conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -melf32bsmip" - ;; - *N32*) - LD="${LD-ld} -melf32bmipn32" - ;; - *64-bit*) - LD="${LD-ld} -melf64bmip" - ;; - esac - else - case `$FILECMD conftest.$ac_objext` in - *32-bit*) - LD="${LD-ld} -32" - ;; - *N32*) - LD="${LD-ld} -n32" - ;; - *64-bit*) - LD="${LD-ld} -64" - ;; - esac - fi - fi - rm -rf conftest* - ;; - -mips64*-*linux*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - emul=elf - case `$FILECMD conftest.$ac_objext` in - *32-bit*) - emul="${emul}32" - ;; - *64-bit*) - emul="${emul}64" - ;; - esac - case `$FILECMD conftest.$ac_objext` in - *MSB*) - emul="${emul}btsmip" - ;; - *LSB*) - emul="${emul}ltsmip" - ;; - esac - case `$FILECMD conftest.$ac_objext` in - *N32*) - emul="${emul}n32" - ;; - esac - LD="${LD-ld} -m $emul" - fi - rm -rf conftest* - ;; - -x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ -s390*-*linux*|s390*-*tpf*|sparc*-*linux*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. Note that the listed cases only cover the - # situations where additional linker options are needed (such as when - # doing 32-bit compilation for a host where ld defaults to 64-bit, or - # vice versa); the common cases where no linker options are needed do - # not appear in the list. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `$FILECMD conftest.o` in - *32-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_i386_fbsd" - ;; - x86_64-*linux*) - case `$FILECMD conftest.o` in - *x86-64*) - LD="${LD-ld} -m elf32_x86_64" - ;; - *) - LD="${LD-ld} -m elf_i386" - ;; - esac - ;; - powerpc64le-*linux*) - LD="${LD-ld} -m elf32lppclinux" - ;; - powerpc64-*linux*) - LD="${LD-ld} -m elf32ppclinux" - ;; - s390x-*linux*) - LD="${LD-ld} -m elf_s390" - ;; - sparc64-*linux*) - LD="${LD-ld} -m elf32_sparc" - ;; - esac - ;; - *64-bit*) - case $host in - x86_64-*kfreebsd*-gnu) - LD="${LD-ld} -m elf_x86_64_fbsd" - ;; - x86_64-*linux*) - LD="${LD-ld} -m elf_x86_64" - ;; - powerpcle-*linux*) - LD="${LD-ld} -m elf64lppc" - ;; - powerpc-*linux*) - LD="${LD-ld} -m elf64ppc" - ;; - s390*-*linux*|s390*-*tpf*) - LD="${LD-ld} -m elf64_s390" - ;; - sparc*-*linux*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; - -*-*-sco3.2v5*) - # On SCO OpenServer 5, we need -belf to get full-featured binaries. - SAVE_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS -belf" - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, - [AC_LANG_PUSH(C) - AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) - AC_LANG_POP]) - if test yes != "$lt_cv_cc_needs_belf"; then - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf - CFLAGS=$SAVE_CFLAGS - fi - ;; -*-*solaris*) - # Find out what ABI is being produced by ac_compile, and set linker - # options accordingly. - echo 'int i;' > conftest.$ac_ext - if AC_TRY_EVAL(ac_compile); then - case `$FILECMD conftest.o` in - *64-bit*) - case $lt_cv_prog_gnu_ld in - yes*) - case $host in - i?86-*-solaris*|x86_64-*-solaris*) - LD="${LD-ld} -m elf_x86_64" - ;; - sparc*-*-solaris*) - LD="${LD-ld} -m elf64_sparc" - ;; - esac - # GNU ld 2.21 introduced _sol2 emulations. Use them if available. - if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then - LD=${LD-ld}_sol2 - fi - ;; - *) - if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then - LD="${LD-ld} -64" - fi - ;; - esac - ;; - esac - fi - rm -rf conftest* - ;; -esac - -need_locks=$enable_libtool_lock -])# _LT_ENABLE_LOCK - - -# _LT_PROG_AR -# ----------- -m4_defun([_LT_PROG_AR], -[AC_CHECK_TOOLS(AR, [ar], false) -: ${AR=ar} -_LT_DECL([], [AR], [1], [The archiver]) - -# Use ARFLAGS variable as AR's operation code to sync the variable naming with -# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have -# higher priority because thats what people were doing historically (setting -# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS -# variable obsoleted/removed. - -test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} -lt_ar_flags=$AR_FLAGS -_LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) - -# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override -# by AR_FLAGS because that was never working and AR_FLAGS is about to die. -_LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], - [Flags to create an archive]) - -AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], - [lt_cv_ar_at_file=no - AC_COMPILE_IFELSE([AC_LANG_PROGRAM], - [echo conftest.$ac_objext > conftest.lst - lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' - AC_TRY_EVAL([lt_ar_try]) - if test 0 -eq "$ac_status"; then - # Ensure the archiver fails upon bogus file names. - rm -f conftest.$ac_objext libconftest.a - AC_TRY_EVAL([lt_ar_try]) - if test 0 -ne "$ac_status"; then - lt_cv_ar_at_file=@ - fi - fi - rm -f conftest.* libconftest.a - ]) - ]) - -if test no = "$lt_cv_ar_at_file"; then - archiver_list_spec= -else - archiver_list_spec=$lt_cv_ar_at_file -fi -_LT_DECL([], [archiver_list_spec], [1], - [How to feed a file listing to the archiver]) -])# _LT_PROG_AR - - -# _LT_CMD_OLD_ARCHIVE -# ------------------- -m4_defun([_LT_CMD_OLD_ARCHIVE], -[_LT_PROG_AR - -AC_CHECK_TOOL(STRIP, strip, :) -test -z "$STRIP" && STRIP=: -_LT_DECL([], [STRIP], [1], [A symbol stripping program]) - -AC_CHECK_TOOL(RANLIB, ranlib, :) -test -z "$RANLIB" && RANLIB=: -_LT_DECL([], [RANLIB], [1], - [Commands used to install an old-style archive]) - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - bitrig* | openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" -fi - -case $host_os in - darwin*) - lock_old_archive_extraction=yes ;; - *) - lock_old_archive_extraction=no ;; -esac -_LT_DECL([], [old_postinstall_cmds], [2]) -_LT_DECL([], [old_postuninstall_cmds], [2]) -_LT_TAGDECL([], [old_archive_cmds], [2], - [Commands used to build an old-style archive]) -_LT_DECL([], [lock_old_archive_extraction], [0], - [Whether to use a lock for old archive extraction]) -])# _LT_CMD_OLD_ARCHIVE - - -# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------------------- -# Check whether the given compiler option works -AC_DEFUN([_LT_COMPILER_OPTION], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - # The option is referenced via a variable to avoid confusing sed. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>conftest.err) - ac_status=$? - cat conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s "$ac_outfile"; then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings other than the usual output. - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - fi - $RM conftest* -]) - -if test yes = "[$]$2"; then - m4_if([$5], , :, [$5]) -else - m4_if([$6], , :, [$6]) -fi -])# _LT_COMPILER_OPTION - -# Old name: -AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) - - -# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, -# [ACTION-SUCCESS], [ACTION-FAILURE]) -# ---------------------------------------------------- -# Check whether the given linker option works -AC_DEFUN([_LT_LINKER_OPTION], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_SED])dnl -AC_CACHE_CHECK([$1], [$2], - [$2=no - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS $3" - echo "$lt_simple_link_test_code" > conftest.$ac_ext - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then - # The linker can only warn and ignore the option if not recognized - # So say no if there are warnings - if test -s conftest.err; then - # Append any errors to the config.log. - cat conftest.err 1>&AS_MESSAGE_LOG_FD - $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp - $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 - if diff conftest.exp conftest.er2 >/dev/null; then - $2=yes - fi - else - $2=yes - fi - fi - $RM -r conftest* - LDFLAGS=$save_LDFLAGS -]) - -if test yes = "[$]$2"; then - m4_if([$4], , :, [$4]) -else - m4_if([$5], , :, [$5]) -fi -])# _LT_LINKER_OPTION - -# Old name: -AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) - - -# LT_CMD_MAX_LEN -#--------------- -AC_DEFUN([LT_CMD_MAX_LEN], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -# find the maximum length of command line arguments -AC_MSG_CHECKING([the maximum length of command line arguments]) -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl - i=0 - teststring=ABCD - - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - - cygwin* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - - mint*) - # On MiNT this can take a long time and run out of memory. - lt_cv_sys_max_cmd_len=8192; - ;; - - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - - bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - - os2*) - # The test takes a long time on OS/2. - lt_cv_sys_max_cmd_len=8192 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len" && \ - test undefined != "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - # Make teststring a little bigger before we do anything with it. - # a 1K string should be a reasonable start. - for i in 1 2 3 4 5 6 7 8; do - teststring=$teststring$teststring - done - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - while { test X`env echo "$teststring$teststring" 2>/dev/null` \ - = "X$teststring$teststring"; } >/dev/null 2>&1 && - test 17 != "$i" # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - # Only check the string length outside the loop. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` - teststring= - # Add a significant safety factor because C++ compilers can tack on - # massive amounts of additional arguments before passing them to the - # linker. It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac -]) -if test -n "$lt_cv_sys_max_cmd_len"; then - AC_MSG_RESULT($lt_cv_sys_max_cmd_len) -else - AC_MSG_RESULT(none) -fi -max_cmd_len=$lt_cv_sys_max_cmd_len -_LT_DECL([], [max_cmd_len], [0], - [What is the maximum length of a command?]) -])# LT_CMD_MAX_LEN - -# Old name: -AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) - - -# _LT_HEADER_DLFCN -# ---------------- -m4_defun([_LT_HEADER_DLFCN], -[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl -])# _LT_HEADER_DLFCN - - -# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) -# ---------------------------------------------------------------- -m4_defun([_LT_TRY_DLOPEN_SELF], -[m4_require([_LT_HEADER_DLFCN])dnl -if test yes = "$cross_compiling"; then : - [$4] -else - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 - lt_status=$lt_dlunknown - cat > conftest.$ac_ext <<_LT_EOF -[#line $LINENO "configure" -#include "confdefs.h" - -#if HAVE_DLFCN_H -#include -#endif - -#include - -#ifdef RTLD_GLOBAL -# define LT_DLGLOBAL RTLD_GLOBAL -#else -# ifdef DL_GLOBAL -# define LT_DLGLOBAL DL_GLOBAL -# else -# define LT_DLGLOBAL 0 -# endif -#endif - -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we - find out it does not work in some platform. */ -#ifndef LT_DLLAZY_OR_NOW -# ifdef RTLD_LAZY -# define LT_DLLAZY_OR_NOW RTLD_LAZY -# else -# ifdef DL_LAZY -# define LT_DLLAZY_OR_NOW DL_LAZY -# else -# ifdef RTLD_NOW -# define LT_DLLAZY_OR_NOW RTLD_NOW -# else -# ifdef DL_NOW -# define LT_DLLAZY_OR_NOW DL_NOW -# else -# define LT_DLLAZY_OR_NOW 0 -# endif -# endif -# endif -# endif -#endif - -/* When -fvisibility=hidden is used, assume the code has been annotated - correspondingly for the symbols needed. */ -#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) -int fnord () __attribute__((visibility("default"))); -#endif - -int fnord () { return 42; } -int main () -{ - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); - int status = $lt_dlunknown; - - if (self) - { - if (dlsym (self,"fnord")) status = $lt_dlno_uscore; - else - { - if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; - else puts (dlerror ()); - } - /* dlclose (self); */ - } - else - puts (dlerror ()); - - return status; -}] -_LT_EOF - if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then - (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) $1 ;; - x$lt_dlneed_uscore) $2 ;; - x$lt_dlunknown|x*) $3 ;; - esac - else : - # compilation failed - $3 - fi -fi -rm -fr conftest* -])# _LT_TRY_DLOPEN_SELF - - -# LT_SYS_DLOPEN_SELF -# ------------------ -AC_DEFUN([LT_SYS_DLOPEN_SELF], -[m4_require([_LT_HEADER_DLFCN])dnl -if test yes != "$enable_dlopen"; then - enable_dlopen=unknown - enable_dlopen_self=unknown - enable_dlopen_self_static=unknown -else - lt_cv_dlopen=no - lt_cv_dlopen_libs= - - case $host_os in - beos*) - lt_cv_dlopen=load_add_on - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ;; - - mingw* | pw32* | cegcc*) - lt_cv_dlopen=LoadLibrary - lt_cv_dlopen_libs= - ;; - - cygwin*) - lt_cv_dlopen=dlopen - lt_cv_dlopen_libs= - ;; - - darwin*) - # if libdl is installed we need to link against it - AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[ - lt_cv_dlopen=dyld - lt_cv_dlopen_libs= - lt_cv_dlopen_self=yes - ]) - ;; - - tpf*) - # Don't try to run any link tests for TPF. We know it's impossible - # because TPF is a cross-compiler, and we know how we open DSOs. - lt_cv_dlopen=dlopen - lt_cv_dlopen_libs= - lt_cv_dlopen_self=no - ;; - - *) - AC_CHECK_FUNC([shl_load], - [lt_cv_dlopen=shl_load], - [AC_CHECK_LIB([dld], [shl_load], - [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld], - [AC_CHECK_FUNC([dlopen], - [lt_cv_dlopen=dlopen], - [AC_CHECK_LIB([dl], [dlopen], - [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl], - [AC_CHECK_LIB([svld], [dlopen], - [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld], - [AC_CHECK_LIB([dld], [dld_link], - [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld]) - ]) - ]) - ]) - ]) - ]) - ;; - esac - - if test no = "$lt_cv_dlopen"; then - enable_dlopen=no - else - enable_dlopen=yes - fi - - case $lt_cv_dlopen in - dlopen) - save_CPPFLAGS=$CPPFLAGS - test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" - - save_LDFLAGS=$LDFLAGS - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" - - save_LIBS=$LIBS - LIBS="$lt_cv_dlopen_libs $LIBS" - - AC_CACHE_CHECK([whether a program can dlopen itself], - lt_cv_dlopen_self, [dnl - _LT_TRY_DLOPEN_SELF( - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) - ]) - - if test yes = "$lt_cv_dlopen_self"; then - wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" - AC_CACHE_CHECK([whether a statically linked program can dlopen itself], - lt_cv_dlopen_self_static, [dnl - _LT_TRY_DLOPEN_SELF( - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) - ]) - fi - - CPPFLAGS=$save_CPPFLAGS - LDFLAGS=$save_LDFLAGS - LIBS=$save_LIBS - ;; - esac - - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac - - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac -fi -_LT_DECL([dlopen_support], [enable_dlopen], [0], - [Whether dlopen is supported]) -_LT_DECL([dlopen_self], [enable_dlopen_self], [0], - [Whether dlopen of programs is supported]) -_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], - [Whether dlopen of statically linked programs is supported]) -])# LT_SYS_DLOPEN_SELF - -# Old name: -AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) - - -# _LT_COMPILER_C_O([TAGNAME]) -# --------------------------- -# Check to see if options -c and -o are simultaneously supported by compiler. -# This macro does not hard code the compiler like AC_PROG_CC_C_O. -m4_defun([_LT_COMPILER_C_O], -[m4_require([_LT_DECL_SED])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_TAG_COMPILER])dnl -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], - [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no - $RM -r conftest 2>/dev/null - mkdir conftest - cd conftest - mkdir out - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - lt_compiler_flag="-o out/conftest2.$ac_objext" - # Insert the option either (1) after the last *FLAGS variable, or - # (2) before a word containing "conftest.", or (3) at the end. - # Note that $ac_compile itself does not contain backslashes and begins - # with a dollar sign (not a hyphen), so the echo should work correctly. - lt_compile=`echo "$ac_compile" | $SED \ - -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ - -e 's:$: $lt_compiler_flag:'` - (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$lt_compile" 2>out/conftest.err) - ac_status=$? - cat out/conftest.err >&AS_MESSAGE_LOG_FD - echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD - if (exit $ac_status) && test -s out/conftest2.$ac_objext - then - # The compiler can only warn and ignore the option if not recognized - # So say no if there are warnings - $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp - $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 - if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then - _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - fi - fi - chmod u+w . 2>&AS_MESSAGE_LOG_FD - $RM conftest* - # SGI C++ compiler will create directory out/ii_files/ for - # template instantiation - test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files - $RM out/* && rmdir out - cd .. - $RM -r conftest - $RM conftest* -]) -_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], - [Does compiler simultaneously support -c and -o options?]) -])# _LT_COMPILER_C_O - - -# _LT_COMPILER_FILE_LOCKS([TAGNAME]) -# ---------------------------------- -# Check to see if we can do hard links to lock some files if needed -m4_defun([_LT_COMPILER_FILE_LOCKS], -[m4_require([_LT_ENABLE_LOCK])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -_LT_COMPILER_C_O([$1]) - -hard_links=nottested -if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then - # do not overwrite the value of need_locks provided by the user - AC_MSG_CHECKING([if we can lock with hard links]) - hard_links=yes - $RM conftest* - ln conftest.a conftest.b 2>/dev/null && hard_links=no - touch conftest.a - ln conftest.a conftest.b 2>&5 || hard_links=no - ln conftest.a conftest.b 2>/dev/null && hard_links=no - AC_MSG_RESULT([$hard_links]) - if test no = "$hard_links"; then - AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe]) - need_locks=warn - fi -else - need_locks=no -fi -_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) -])# _LT_COMPILER_FILE_LOCKS - - -# _LT_CHECK_OBJDIR -# ---------------- -m4_defun([_LT_CHECK_OBJDIR], -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], -[rm -f .libs 2>/dev/null -mkdir .libs 2>/dev/null -if test -d .libs; then - lt_cv_objdir=.libs -else - # MS-DOS does not allow filenames that begin with a dot. - lt_cv_objdir=_libs -fi -rmdir .libs 2>/dev/null]) -objdir=$lt_cv_objdir -_LT_DECL([], [objdir], [0], - [The name of the directory that contains temporary libtool files])dnl -m4_pattern_allow([LT_OBJDIR])dnl -AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/", - [Define to the sub-directory where libtool stores uninstalled libraries.]) -])# _LT_CHECK_OBJDIR - - -# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) -# -------------------------------------- -# Check hardcoding attributes. -m4_defun([_LT_LINKER_HARDCODE_LIBPATH], -[AC_MSG_CHECKING([how to hardcode library paths into programs]) -_LT_TAGVAR(hardcode_action, $1)= -if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || - test -n "$_LT_TAGVAR(runpath_var, $1)" || - test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then - - # We can hardcode non-existent directories. - if test no != "$_LT_TAGVAR(hardcode_direct, $1)" && - # If the only mechanism to avoid hardcoding is shlibpath_var, we - # have to relink, otherwise we might link with an installed library - # when we should be linking with a yet-to-be-installed one - ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" && - test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then - # Linking always hardcodes the temporary library directory. - _LT_TAGVAR(hardcode_action, $1)=relink - else - # We can link without hardcoding, and we can hardcode nonexisting dirs. - _LT_TAGVAR(hardcode_action, $1)=immediate - fi -else - # We cannot hardcode anything, or else we can only hardcode existing - # directories. - _LT_TAGVAR(hardcode_action, $1)=unsupported -fi -AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) - -if test relink = "$_LT_TAGVAR(hardcode_action, $1)" || - test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then - # Fast installation is not supported - enable_fast_install=no -elif test yes = "$shlibpath_overrides_runpath" || - test no = "$enable_shared"; then - # Fast installation is not necessary - enable_fast_install=needless -fi -_LT_TAGDECL([], [hardcode_action], [0], - [How to hardcode a shared library path into an executable]) -])# _LT_LINKER_HARDCODE_LIBPATH - - -# _LT_CMD_STRIPLIB -# ---------------- -m4_defun([_LT_CMD_STRIPLIB], -[m4_require([_LT_DECL_EGREP]) -striplib= -old_striplib= -AC_MSG_CHECKING([whether stripping libraries is possible]) -if test -z "$STRIP"; then - AC_MSG_RESULT([no]) -else - if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then - old_striplib="$STRIP --strip-debug" - striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) - else - case $host_os in - darwin*) - # FIXME - insert some real tests, host_os isn't really good enough - striplib="$STRIP -x" - old_striplib="$STRIP -S" - AC_MSG_RESULT([yes]) - ;; - freebsd*) - if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then - old_striplib="$STRIP --strip-debug" - striplib="$STRIP --strip-unneeded" - AC_MSG_RESULT([yes]) - else - AC_MSG_RESULT([no]) - fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac - fi -fi -_LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) -_LT_DECL([], [striplib], [1]) -])# _LT_CMD_STRIPLIB - - -# _LT_PREPARE_MUNGE_PATH_LIST -# --------------------------- -# Make sure func_munge_path_list() is defined correctly. -m4_defun([_LT_PREPARE_MUNGE_PATH_LIST], -[[# func_munge_path_list VARIABLE PATH -# ----------------------------------- -# VARIABLE is name of variable containing _space_ separated list of -# directories to be munged by the contents of PATH, which is string -# having a format: -# "DIR[:DIR]:" -# string "DIR[ DIR]" will be prepended to VARIABLE -# ":DIR[:DIR]" -# string "DIR[ DIR]" will be appended to VARIABLE -# "DIRP[:DIRP]::[DIRA:]DIRA" -# string "DIRP[ DIRP]" will be prepended to VARIABLE and string -# "DIRA[ DIRA]" will be appended to VARIABLE -# "DIR[:DIR]" -# VARIABLE will be replaced by "DIR[ DIR]" -func_munge_path_list () -{ - case x@S|@2 in - x) - ;; - *:) - eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\" - ;; - x:*) - eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\" - ;; - *::*) - eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" - eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\" - ;; - *) - eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\" - ;; - esac -} -]])# _LT_PREPARE_PATH_LIST - - -# _LT_SYS_DYNAMIC_LINKER([TAG]) -# ----------------------------- -# PORTME Fill in your ld.so characteristics -m4_defun([_LT_SYS_DYNAMIC_LINKER], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_OBJDUMP])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_CHECK_SHELL_FEATURES])dnl -m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl -AC_MSG_CHECKING([dynamic linker characteristics]) -m4_if([$1], - [], [ -if test yes = "$GCC"; then - case $host_os in - darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; - *) lt_awk_arg='/^libraries:/' ;; - esac - case $host_os in - mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;; - *) lt_sed_strip_eq='s|=/|/|g' ;; - esac - lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` - case $lt_search_path_spec in - *\;*) - # if the path contains ";" then we assume it to be the separator - # otherwise default to the standard path separator (i.e. ":") - it is - # assumed that no part of a normal pathname contains ";" but that should - # okay in the real world where ";" in dirpaths is itself problematic. - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` - ;; - *) - lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` - ;; - esac - # Ok, now we have the path, separated by spaces, we can step through it - # and add multilib dir if necessary... - lt_tmp_lt_search_path_spec= - lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` - # ...but if some path component already ends with the multilib dir we assume - # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). - case "$lt_multi_os_dir; $lt_search_path_spec " in - "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) - lt_multi_os_dir= - ;; - esac - for lt_sys_path in $lt_search_path_spec; do - if test -d "$lt_sys_path$lt_multi_os_dir"; then - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" - elif test -n "$lt_multi_os_dir"; then - test -d "$lt_sys_path" && \ - lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" - fi - done - lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' -BEGIN {RS = " "; FS = "/|\n";} { - lt_foo = ""; - lt_count = 0; - for (lt_i = NF; lt_i > 0; lt_i--) { - if ($lt_i != "" && $lt_i != ".") { - if ($lt_i == "..") { - lt_count++; - } else { - if (lt_count == 0) { - lt_foo = "/" $lt_i lt_foo; - } else { - lt_count--; - } - } - } - } - if (lt_foo != "") { lt_freq[[lt_foo]]++; } - if (lt_freq[[lt_foo]] == 1) { print lt_foo; } -}'` - # AWK program above erroneously prepends '/' to C:/dos/paths - # for these hosts. - case $host_os in - mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ - $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;; - esac - sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` -else - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" -fi]) -library_names_spec= -libname_spec='lib$name' -soname_spec= -shrext_cmds=.so -postinstall_cmds= -postuninstall_cmds= -finish_cmds= -finish_eval= -shlibpath_var= -shlibpath_overrides_runpath=unknown -version_type=none -dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" -need_lib_prefix=unknown -hardcode_into_libs=no - -# when you set need_version to no, make sure it does not cause -set_version -# flags to be left without arguments -need_version=unknown - -AC_ARG_VAR([LT_SYS_LIBRARY_PATH], -[User-defined run-time library search path.]) - -case $host_os in -aix3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname.a' - shlibpath_var=LIBPATH - - # AIX 3 has no versioning support, so we append a major version to the name. - soname_spec='$libname$release$shared_ext$major' - ;; - -aix[[4-9]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - hardcode_into_libs=yes - if test ia64 = "$host_cpu"; then - # AIX 5 supports IA64 - library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - else - # With GCC up to 2.95.x, collect2 would create an import file - # for dependence libraries. The import file would start with - # the line '#! .'. This would cause the generated library to - # depend on '.', always an invalid library. This was fixed in - # development snapshots of GCC prior to 3.0. - case $host_os in - aix4 | aix4.[[01]] | aix4.[[01]].*) - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' - echo ' yes ' - echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then - : - else - can_build_shared=no - fi - ;; - esac - # Using Import Files as archive members, it is possible to support - # filename-based versioning of shared library archives on AIX. While - # this would work for both with and without runtime linking, it will - # prevent static linking of such archives. So we do filename-based - # shared library versioning with .so extension only, which is used - # when both runtime linking and shared linking is enabled. - # Unfortunately, runtime linking may impact performance, so we do - # not want this to be the default eventually. Also, we use the - # versioned .so libs for executables only if there is the -brtl - # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. - # To allow for filename-based versioning support, we need to create - # libNAME.so.V as an archive file, containing: - # *) an Import File, referring to the versioned filename of the - # archive as well as the shared archive member, telling the - # bitwidth (32 or 64) of that shared object, and providing the - # list of exported symbols of that shared object, eventually - # decorated with the 'weak' keyword - # *) the shared object with the F_LOADONLY flag set, to really avoid - # it being seen by the linker. - # At run time we better use the real file rather than another symlink, - # but for link time we create the symlink libNAME.so -> libNAME.so.V - - case $with_aix_soname,$aix_use_runtimelinking in - # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct - # soname into executable. Probably we can add versioning support to - # collect2, so additional links can be useful in future. - aix,yes) # traditional libtool - dynamic_linker='AIX unversionable lib.so' - # If using run time linking (on AIX 4.2 or later) use lib.so - # instead of lib.a to let people know that these are not - # typical AIX shared libraries. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - aix,no) # traditional AIX only - dynamic_linker='AIX lib.a[(]lib.so.V[)]' - # We preserve .a as extension for shared libraries through AIX4.2 - # and later when we are not doing run time linking. - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - ;; - svr4,*) # full svr4 only - dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,yes) # both, prefer svr4 - dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]" - library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' - # unpreferred sharedlib libNAME.a needs extra handling - postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' - postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' - # We do not specify a path in Import Files, so LIBPATH fires. - shlibpath_overrides_runpath=yes - ;; - *,no) # both, prefer aix - dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]" - library_names_spec='$libname$release.a $libname.a' - soname_spec='$libname$release$shared_ext$major' - # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling - postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' - postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' - ;; - esac - shlibpath_var=LIBPATH - fi - ;; - -amigaos*) - case $host_cpu in - powerpc) - # Since July 2007 AmigaOS4 officially supports .so libraries. - # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - ;; - m68k) - library_names_spec='$libname.ixlibrary $libname.a' - # Create ${libname}_ixlibrary.a entries in /sys/libs. - finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' - ;; - esac - ;; - -beos*) - library_names_spec='$libname$shared_ext' - dynamic_linker="$host_os ld.so" - shlibpath_var=LIBRARY_PATH - ;; - -bsdi[[45]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" - # the default ld.so.conf also contains /usr/contrib/lib and - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow - # libtool to hard-code these into programs - ;; - -cygwin* | mingw* | pw32* | cegcc*) - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - - case $GCC,$cc_basename in - yes,*) - # gcc - library_names_spec='$libname.dll.a' - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - - case $host_os in - cygwin*) - # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' -m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) - ;; - mingw* | cegcc*) - # MinGW DLLs use traditional 'lib' prefix - soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' - ;; - pw32*) - # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' - ;; - esac - dynamic_linker='Win32 ld.exe' - ;; - - *,cl* | *,icl*) - # Native MSVC or ICC - libname_spec='$name' - soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' - library_names_spec='$libname.dll.lib' - - case $build_os in - mingw*) - sys_lib_search_path_spec= - lt_save_ifs=$IFS - IFS=';' - for lt_path in $LIB - do - IFS=$lt_save_ifs - # Let DOS variable expansion print the short 8.3 style file name. - lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` - sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" - done - IFS=$lt_save_ifs - # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` - ;; - cygwin*) - # Convert to unix form, then to dos form, then back to unix form - # but this time dos style (no spaces!) so that the unix form looks - # like /cygdrive/c/PROGRA~1:/cygdr... - sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` - sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` - sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - ;; - *) - sys_lib_search_path_spec=$LIB - if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then - # It is most probably a Windows format PATH. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` - else - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` - fi - # FIXME: find the short name or the path components, as spaces are - # common. (e.g. "Program Files" -> "PROGRA~1") - ;; - esac - - # DLL is installed to $(libdir)/../bin by postinstall_cmds - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - shlibpath_overrides_runpath=yes - dynamic_linker='Win32 link.exe' - ;; - - *) - # Assume MSVC and ICC wrapper - library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' - dynamic_linker='Win32 ld.exe' - ;; - esac - # FIXME: first we should search . and the directory the executable is in - shlibpath_var=PATH - ;; - -darwin* | rhapsody*) - dynamic_linker="$host_os dyld" - version_type=darwin - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' - soname_spec='$libname$release$major$shared_ext' - shlibpath_overrides_runpath=yes - shlibpath_var=DYLD_LIBRARY_PATH - shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' -m4_if([$1], [],[ - sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' - ;; - -dgux*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -freebsd* | dragonfly* | midnightbsd*) - # DragonFly does not have aout. When/if they implement a new - # versioning mechanism, adjust this. - if test -x /usr/bin/objformat; then - objformat=`/usr/bin/objformat` - else - case $host_os in - freebsd[[23]].*) objformat=aout ;; - *) objformat=elf ;; - esac - fi - version_type=freebsd-$objformat - case $version_type in - freebsd-elf*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - need_version=no - need_lib_prefix=no - ;; - freebsd-*) - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - need_version=yes - ;; - esac - shlibpath_var=LD_LIBRARY_PATH - case $host_os in - freebsd2.*) - shlibpath_overrides_runpath=yes - ;; - freebsd3.[[01]]* | freebsdelf3.[[01]]*) - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ - freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - *) # from 4.6 on, and DragonFly - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - esac - ;; - -haiku*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - dynamic_linker="$host_os runtime_loader" - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LIBRARY_PATH - shlibpath_overrides_runpath=no - sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' - hardcode_into_libs=yes - ;; - -hpux9* | hpux10* | hpux11*) - # Give a soname corresponding to the major version so that dld.sl refuses to - # link against other versions. - version_type=sunos - need_lib_prefix=no - need_version=no - case $host_cpu in - ia64*) - shrext_cmds='.so' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.so" - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - if test 32 = "$HPUX_IA64_MODE"; then - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" - sys_lib_dlsearch_path_spec=/usr/lib/hpux32 - else - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" - sys_lib_dlsearch_path_spec=/usr/lib/hpux64 - fi - ;; - hppa*64*) - shrext_cmds='.sl' - hardcode_into_libs=yes - dynamic_linker="$host_os dld.sl" - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - *) - shrext_cmds='.sl' - dynamic_linker="$host_os dld.sl" - shlibpath_var=SHLIB_PATH - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - ;; - esac - # HP-UX runs *really* slowly unless shared libraries are mode 555, ... - postinstall_cmds='chmod 555 $lib' - # or fails outright, so override atomically: - install_override_mode=555 - ;; - -interix[[3-9]]*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -irix5* | irix6* | nonstopux*) - case $host_os in - nonstopux*) version_type=nonstopux ;; - *) - if test yes = "$lt_cv_prog_gnu_ld"; then - version_type=linux # correct to gnu/linux during the next big refactor - else - version_type=irix - fi ;; - esac - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' - case $host_os in - irix5* | nonstopux*) - libsuff= shlibsuff= - ;; - *) - case $LD in # libtool.m4 will add one of these switches to LD - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") - libsuff= shlibsuff= libmagic=32-bit;; - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") - libsuff=32 shlibsuff=N32 libmagic=N32;; - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") - libsuff=64 shlibsuff=64 libmagic=64-bit;; - *) libsuff= shlibsuff= libmagic=never-match;; - esac - ;; - esac - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH - shlibpath_overrides_runpath=no - sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" - sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" - hardcode_into_libs=yes - ;; - -# No shared lib support for Linux oldld, aout, or coff. -linux*oldld* | linux*aout* | linux*coff*) - dynamic_linker=no - ;; - -linux*android*) - version_type=none # Android doesn't support versioned libraries. - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext' - soname_spec='$libname$release$shared_ext' - finish_cmds= - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - dynamic_linker='Android linker' - # Don't embed -rpath directories since the linker doesn't support them. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - - # Some binutils ld are patched to set DT_RUNPATH - AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], - [lt_cv_shlibpath_overrides_runpath=no - save_LDFLAGS=$LDFLAGS - save_libdir=$libdir - eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ - LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" - AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], - [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], - [lt_cv_shlibpath_overrides_runpath=yes])]) - LDFLAGS=$save_LDFLAGS - libdir=$save_libdir - ]) - shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath - - # This implies no fast_install, which is unacceptable. - # Some rework will be needed to allow for fast_install - # before this can be enabled. - hardcode_into_libs=yes - - # Add ABI-specific directories to the system library path. - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" - - # Ideally, we could use ldconfig to report *all* directores which are - # searched for libraries, however this is still not possible. Aside from not - # being certain /sbin/ldconfig is available, command - # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, - # even though it is searched at run-time. Try to do the best guess by - # appending ld.so.conf contents (and includes) to the search path. - if test -f /etc/ld.so.conf; then - lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" - fi - - # We used to test for /lib/ld.so.1 and disable shared libraries on - # powerpc, because MkLinux only supported shared libraries with the - # GNU dynamic linker. Since this was broken with cross compilers, - # most powerpc-linux boxes support dynamic linking these days and - # people can always --disable-shared, the test was removed, and we - # assume the GNU/Linux dynamic linker is in use. - dynamic_linker='GNU/Linux ld.so' - ;; - -netbsd*) - version_type=sunos - need_lib_prefix=no - need_version=no - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - dynamic_linker='NetBSD (a.out) ld.so' - else - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - dynamic_linker='NetBSD ld.elf_so' - fi - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - ;; - -newsos6) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -*nto* | *qnx*) - version_type=qnx - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - dynamic_linker='ldqnx.so' - ;; - -openbsd* | bitrig*) - version_type=sunos - sys_lib_dlsearch_path_spec=/usr/lib - need_lib_prefix=no - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - need_version=no - else - need_version=yes - fi - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - ;; - -os2*) - libname_spec='$name' - version_type=windows - shrext_cmds=.dll - need_version=no - need_lib_prefix=no - # OS/2 can only load a DLL with a base name of 8 characters or less. - soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; - v=$($ECHO $release$versuffix | tr -d .-); - n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); - $ECHO $n$v`$shared_ext' - library_names_spec='${libname}_dll.$libext' - dynamic_linker='OS/2 ld.exe' - shlibpath_var=BEGINLIBPATH - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - postinstall_cmds='base_file=`basename \$file`~ - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ - dldir=$destdir/`dirname \$dlpath`~ - test -d \$dldir || mkdir -p \$dldir~ - $install_prog $dir/$dlname \$dldir/$dlname~ - chmod a+x \$dldir/$dlname~ - if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then - eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; - fi' - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ - dlpath=$dir/\$dldll~ - $RM \$dlpath' - ;; - -osf3* | osf4* | osf5*) - version_type=osf - need_lib_prefix=no - need_version=no - soname_spec='$libname$release$shared_ext$major' - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec - ;; - -rdos*) - dynamic_linker=no - ;; - -solaris*) - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - # ldd complains unless libraries are executable - postinstall_cmds='chmod +x $lib' - ;; - -sunos4*) - version_type=sunos - library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - if test yes = "$with_gnu_ld"; then - need_lib_prefix=no - fi - need_version=yes - ;; - -sysv4 | sysv4.3*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - case $host_vendor in - sni) - shlibpath_overrides_runpath=no - need_lib_prefix=no - runpath_var=LD_RUN_PATH - ;; - siemens) - need_lib_prefix=no - ;; - motorola) - need_lib_prefix=no - need_version=no - shlibpath_overrides_runpath=no - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' - ;; - esac - ;; - -sysv4*MP*) - if test -d /usr/nec; then - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' - soname_spec='$libname$shared_ext.$major' - shlibpath_var=LD_LIBRARY_PATH - fi - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - version_type=sco - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=yes - hardcode_into_libs=yes - if test yes = "$with_gnu_ld"; then - sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' - else - sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' - case $host_os in - sco3.2v5*) - sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" - ;; - esac - fi - sys_lib_dlsearch_path_spec='/usr/lib' - ;; - -tpf*) - # TPF is a cross-target only. Preferred cross-host = GNU/Linux. - version_type=linux # correct to gnu/linux during the next big refactor - need_lib_prefix=no - need_version=no - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - shlibpath_var=LD_LIBRARY_PATH - shlibpath_overrides_runpath=no - hardcode_into_libs=yes - ;; - -uts4*) - version_type=linux # correct to gnu/linux during the next big refactor - library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' - soname_spec='$libname$release$shared_ext$major' - shlibpath_var=LD_LIBRARY_PATH - ;; - -*) - dynamic_linker=no - ;; -esac -AC_MSG_RESULT([$dynamic_linker]) -test no = "$dynamic_linker" && can_build_shared=no - -variables_saved_for_relink="PATH $shlibpath_var $runpath_var" -if test yes = "$GCC"; then - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" -fi - -if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then - sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec -fi - -if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then - sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec -fi - -# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... -configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec - -# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code -func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" - -# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool -configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH - -_LT_DECL([], [variables_saved_for_relink], [1], - [Variables whose values should be saved in libtool wrapper scripts and - restored at link time]) -_LT_DECL([], [need_lib_prefix], [0], - [Do we need the "lib" prefix for modules?]) -_LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) -_LT_DECL([], [version_type], [0], [Library versioning type]) -_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) -_LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) -_LT_DECL([], [shlibpath_overrides_runpath], [0], - [Is shlibpath searched before the hard-coded library search path?]) -_LT_DECL([], [libname_spec], [1], [Format of library name prefix]) -_LT_DECL([], [library_names_spec], [1], - [[List of archive names. First name is the real one, the rest are links. - The last name is the one that the linker finds with -lNAME]]) -_LT_DECL([], [soname_spec], [1], - [[The coded name of the library, if different from the real name]]) -_LT_DECL([], [install_override_mode], [1], - [Permission mode override for installation of shared libraries]) -_LT_DECL([], [postinstall_cmds], [2], - [Command to use after installation of a shared archive]) -_LT_DECL([], [postuninstall_cmds], [2], - [Command to use after uninstallation of a shared archive]) -_LT_DECL([], [finish_cmds], [2], - [Commands used to finish a libtool library installation in a directory]) -_LT_DECL([], [finish_eval], [1], - [[As "finish_cmds", except a single script fragment to be evaled but - not shown]]) -_LT_DECL([], [hardcode_into_libs], [0], - [Whether we should hardcode library paths into libraries]) -_LT_DECL([], [sys_lib_search_path_spec], [2], - [Compile-time system search path for libraries]) -_LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2], - [Detected run-time system search path for libraries]) -_LT_DECL([], [configure_time_lt_sys_library_path], [2], - [Explicit LT_SYS_LIBRARY_PATH set during ./configure time]) -])# _LT_SYS_DYNAMIC_LINKER - - -# _LT_PATH_TOOL_PREFIX(TOOL) -# -------------------------- -# find a file program that can recognize shared library -AC_DEFUN([_LT_PATH_TOOL_PREFIX], -[m4_require([_LT_DECL_EGREP])dnl -AC_MSG_CHECKING([for $1]) -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, -[case $MAGIC_CMD in -[[\\/*] | ?:[\\/]*]) - lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. - ;; -*) - lt_save_MAGIC_CMD=$MAGIC_CMD - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR -dnl $ac_dummy forces splitting on constant user-supplied paths. -dnl POSIX.2 word splitting is done only on the output of word expansions, -dnl not every word. This closes a longstanding sh security hole. - ac_dummy="m4_if([$2], , $PATH, [$2])" - for ac_dir in $ac_dummy; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$1"; then - lt_cv_path_MAGIC_CMD=$ac_dir/"$1" - if test -n "$file_magic_test_file"; then - case $deplibs_check_method in - "file_magic "*) - file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` - MAGIC_CMD=$lt_cv_path_MAGIC_CMD - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | - $EGREP "$file_magic_regex" > /dev/null; then - : - else - cat <<_LT_EOF 1>&2 - -*** Warning: the command libtool uses to detect shared libraries, -*** $file_magic_cmd, produces output that libtool cannot recognize. -*** The result is that libtool may fail to recognize shared libraries -*** as such. This will affect the creation of libtool libraries that -*** depend on shared libraries, but programs linked with such libtool -*** libraries will work regardless of this problem. Nevertheless, you -*** may want to report the problem to your system manager and/or to -*** bug-libtool@gnu.org - -_LT_EOF - fi ;; - esac - fi - break - fi - done - IFS=$lt_save_ifs - MAGIC_CMD=$lt_save_MAGIC_CMD - ;; -esac]) -MAGIC_CMD=$lt_cv_path_MAGIC_CMD -if test -n "$MAGIC_CMD"; then - AC_MSG_RESULT($MAGIC_CMD) -else - AC_MSG_RESULT(no) -fi -_LT_DECL([], [MAGIC_CMD], [0], - [Used to examine libraries when file_magic_cmd begins with "file"])dnl -])# _LT_PATH_TOOL_PREFIX - -# Old name: -AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) - - -# _LT_PATH_MAGIC -# -------------- -# find a file program that can recognize a shared library -m4_defun([_LT_PATH_MAGIC], -[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) -if test -z "$lt_cv_path_MAGIC_CMD"; then - if test -n "$ac_tool_prefix"; then - _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) - else - MAGIC_CMD=: - fi -fi -])# _LT_PATH_MAGIC - - -# LT_PATH_LD -# ---------- -# find the pathname to the GNU or non-GNU linker -AC_DEFUN([LT_PATH_LD], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_PROG_ECHO_BACKSLASH])dnl - -AC_ARG_WITH([gnu-ld], - [AS_HELP_STRING([--with-gnu-ld], - [assume the C compiler uses GNU ld @<:@default=no@:>@])], - [test no = "$withval" || with_gnu_ld=yes], - [with_gnu_ld=no])dnl - -ac_prog=ld -if test yes = "$GCC"; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by $CC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return, which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]]* | ?:[[\\/]]*) - re_direlt='/[[^/]][[^/]]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD=$ac_prog - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test yes = "$with_gnu_ld"; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL(lt_cv_path_LD, -[if test -z "$LD"; then - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD=$ac_dir/$ac_prog - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &1 conftest.i -cat conftest.i conftest.i >conftest2.i -: ${lt_DD:=$DD} -AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd], -[if "$ac_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then - cmp -s conftest.i conftest.out \ - && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: -fi]) -rm -f conftest.i conftest2.i conftest.out]) -])# _LT_PATH_DD - - -# _LT_CMD_TRUNCATE -# ---------------- -# find command to truncate a binary pipe -m4_defun([_LT_CMD_TRUNCATE], -[m4_require([_LT_PATH_DD]) -AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin], -[printf 0123456789abcdef0123456789abcdef >conftest.i -cat conftest.i conftest.i >conftest2.i -lt_cv_truncate_bin= -if "$ac_cv_path_lt_DD" bs=32 count=1 conftest.out 2>/dev/null; then - cmp -s conftest.i conftest.out \ - && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" -fi -rm -f conftest.i conftest2.i conftest.out -test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"]) -_LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1], - [Command to truncate a binary pipe]) -])# _LT_CMD_TRUNCATE - - -# _LT_CHECK_MAGIC_METHOD -# ---------------------- -# how to check for library dependencies -# -- PORTME fill in with the dynamic library characteristics -m4_defun([_LT_CHECK_MAGIC_METHOD], -[m4_require([_LT_DECL_EGREP]) -m4_require([_LT_DECL_OBJDUMP]) -AC_CACHE_CHECK([how to recognize dependent libraries], -lt_cv_deplibs_check_method, -[lt_cv_file_magic_cmd='$MAGIC_CMD' -lt_cv_file_magic_test_file= -lt_cv_deplibs_check_method='unknown' -# Need to set the preceding variable on all platforms that support -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# 'unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# that responds to the $file_magic_cmd with a given extended regex. -# If you have 'file' or equivalent on your system and you're not sure -# whether 'pass_all' will *always* work, you probably want this one. - -case $host_os in -aix[[4-9]]*) - lt_cv_deplibs_check_method=pass_all - ;; - -beos*) - lt_cv_deplibs_check_method=pass_all - ;; - -bsdi[[45]]*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='$FILECMD -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; - -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; - -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - # Keep this pattern in sync with the one in func_win32_libid. - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; - -cegcc*) - # use the weaker test based on 'objdump'. See mingw*. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; - -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; - -freebsd* | dragonfly* | midnightbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=$FILECMD - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; - -haiku*) - lt_cv_deplibs_check_method=pass_all - ;; - -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=$FILECMD - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'] - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; - -interix[[3-9]]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' - ;; - -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; - -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - lt_cv_deplibs_check_method=pass_all - ;; - -netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' - fi - ;; - -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=$FILECMD - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; - -*nto* | *qnx*) - lt_cv_deplibs_check_method=pass_all - ;; - -openbsd* | bitrig*) - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' - fi - ;; - -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; - -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; - -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; - -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; - -tpf*) - lt_cv_deplibs_check_method=pass_all - ;; -os2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac -]) - -file_magic_glob= -want_nocaseglob=no -if test "$build" = "$host"; then - case $host_os in - mingw* | pw32*) - if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then - want_nocaseglob=yes - else - file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` - fi - ;; - esac -fi - -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown - -_LT_DECL([], [deplibs_check_method], [1], - [Method to check whether dependent libraries are shared objects]) -_LT_DECL([], [file_magic_cmd], [1], - [Command to use when deplibs_check_method = "file_magic"]) -_LT_DECL([], [file_magic_glob], [1], - [How to find potential files when deplibs_check_method = "file_magic"]) -_LT_DECL([], [want_nocaseglob], [1], - [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) -])# _LT_CHECK_MAGIC_METHOD - - -# LT_PATH_NM -# ---------- -# find the pathname to a BSD- or MS-compatible name lister -AC_DEFUN([LT_PATH_NM], -[AC_REQUIRE([AC_PROG_CC])dnl -AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, -[if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM=$NM -else - lt_nm_to_check=${ac_tool_prefix}nm - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - tmp_nm=$ac_dir/$lt_tmp_nm - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the 'sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty - case $build_os in - mingw*) lt_bad_file=conftest.nm/nofile ;; - *) lt_bad_file=/dev/null ;; - esac - case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in - *$lt_bad_file* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break 2 - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break 2 - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS=$lt_save_ifs - done - : ${lt_cv_path_NM=no} -fi]) -if test no != "$lt_cv_path_NM"; then - NM=$lt_cv_path_NM -else - # Didn't find any BSD compatible name lister, look for dumpbin. - if test -n "$DUMPBIN"; then : - # Let the user override the test. - else - AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) - case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in - *COFF*) - DUMPBIN="$DUMPBIN -symbols -headers" - ;; - *) - DUMPBIN=: - ;; - esac - fi - AC_SUBST([DUMPBIN]) - if test : != "$DUMPBIN"; then - NM=$DUMPBIN - fi -fi -test -z "$NM" && NM=nm -AC_SUBST([NM]) -_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl - -AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], - [lt_cv_nm_interface="BSD nm" - echo "int some_variable = 0;" > conftest.$ac_ext - (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) - (eval "$ac_compile" 2>conftest.err) - cat conftest.err >&AS_MESSAGE_LOG_FD - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) - cat conftest.err >&AS_MESSAGE_LOG_FD - (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) - cat conftest.out >&AS_MESSAGE_LOG_FD - if $GREP 'External.*some_variable' conftest.out > /dev/null; then - lt_cv_nm_interface="MS dumpbin" - fi - rm -f conftest*]) -])# LT_PATH_NM - -# Old names: -AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) -AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_PROG_NM], []) -dnl AC_DEFUN([AC_PROG_NM], []) - -# _LT_CHECK_SHAREDLIB_FROM_LINKLIB -# -------------------------------- -# how to determine the name of the shared library -# associated with a specific link library. -# -- PORTME fill in with the dynamic library characteristics -m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], -[m4_require([_LT_DECL_EGREP]) -m4_require([_LT_DECL_OBJDUMP]) -m4_require([_LT_DECL_DLLTOOL]) -AC_CACHE_CHECK([how to associate runtime and link libraries], -lt_cv_sharedlib_from_linklib_cmd, -[lt_cv_sharedlib_from_linklib_cmd='unknown' - -case $host_os in -cygwin* | mingw* | pw32* | cegcc*) - # two different shell functions defined in ltmain.sh; - # decide which one to use based on capabilities of $DLLTOOL - case `$DLLTOOL --help 2>&1` in - *--identify-strict*) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib - ;; - *) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback - ;; - esac - ;; -*) - # fallback: assume linklib IS sharedlib - lt_cv_sharedlib_from_linklib_cmd=$ECHO - ;; -esac -]) -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO - -_LT_DECL([], [sharedlib_from_linklib_cmd], [1], - [Command to associate shared and link libraries]) -])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB - - -# _LT_PATH_MANIFEST_TOOL -# ---------------------- -# locate the manifest tool -m4_defun([_LT_PATH_MANIFEST_TOOL], -[AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) -test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt -AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], - [lt_cv_path_mainfest_tool=no - echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD - $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out - cat conftest.err >&AS_MESSAGE_LOG_FD - if $GREP 'Manifest Tool' conftest.out > /dev/null; then - lt_cv_path_mainfest_tool=yes - fi - rm -f conftest*]) -if test yes != "$lt_cv_path_mainfest_tool"; then - MANIFEST_TOOL=: -fi -_LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl -])# _LT_PATH_MANIFEST_TOOL - - -# _LT_DLL_DEF_P([FILE]) -# --------------------- -# True iff FILE is a Windows DLL '.def' file. -# Keep in sync with func_dll_def_p in the libtool script -AC_DEFUN([_LT_DLL_DEF_P], -[dnl - test DEF = "`$SED -n dnl - -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace - -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments - -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl - -e q dnl Only consider the first "real" line - $1`" dnl -])# _LT_DLL_DEF_P - - -# LT_LIB_M -# -------- -# check for math library -AC_DEFUN([LT_LIB_M], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -LIBM= -case $host in -*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) - # These system don't have libm, or don't need it - ;; -*-ncr-sysv4.3*) - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw) - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") - ;; -*) - AC_CHECK_LIB(m, cos, LIBM=-lm) - ;; -esac -AC_SUBST([LIBM]) -])# LT_LIB_M - -# Old name: -AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_CHECK_LIBM], []) - - -# _LT_COMPILER_NO_RTTI([TAGNAME]) -# ------------------------------- -m4_defun([_LT_COMPILER_NO_RTTI], -[m4_require([_LT_TAG_COMPILER])dnl - -_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - -if test yes = "$GCC"; then - case $cc_basename in - nvcc*) - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; - *) - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; - esac - - _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], - lt_cv_prog_compiler_rtti_exceptions, - [-fno-rtti -fno-exceptions], [], - [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) -fi -_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], - [Compiler flag to turn off builtin functions]) -])# _LT_COMPILER_NO_RTTI - - -# _LT_CMD_GLOBAL_SYMBOLS -# ---------------------- -m4_defun([_LT_CMD_GLOBAL_SYMBOLS], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([AC_PROG_AWK])dnl -AC_REQUIRE([LT_PATH_NM])dnl -AC_REQUIRE([LT_PATH_LD])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_TAG_COMPILER])dnl - -# Check for command to grab the raw symbol name followed by C symbol from nm. -AC_MSG_CHECKING([command to parse $NM output from $compiler object]) -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], -[ -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[[BCDEGRST]]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' - -# Define system-specific variables. -case $host_os in -aix*) - symcode='[[BCDT]]' - ;; -cygwin* | mingw* | pw32* | cegcc*) - symcode='[[ABCDGISTW]]' - ;; -hpux*) - if test ia64 = "$host_cpu"; then - symcode='[[ABCDEGRST]]' - fi - ;; -irix* | nonstopux*) - symcode='[[BCDEGRST]]' - ;; -osf*) - symcode='[[BCDEGQRST]]' - ;; -solaris*) - symcode='[[BDRT]]' - ;; -sco3.2v5*) - symcode='[[DT]]' - ;; -sysv4.2uw2*) - symcode='[[DT]]' - ;; -sysv5* | sco5v6* | unixware* | OpenUNIX*) - symcode='[[ABDT]]' - ;; -sysv4) - symcode='[[DFNSTU]]' - ;; -esac - -# If we're using GNU nm, then use its standard symbol codes. -case `$NM -V 2>&1` in -*GNU* | *'with BFD'*) - symcode='[[ABCDGIRSTW]]' ;; -esac - -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Gets list of data symbols to import. - lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" - # Adjust the below global symbol transforms to fixup imported variables. - lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" - lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" - lt_c_name_lib_hook="\ - -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ - -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" -else - # Disable hooks by default. - lt_cv_sys_global_symbol_to_import= - lt_cdecl_hook= - lt_c_name_hook= - lt_c_name_lib_hook= -fi - -# Transform an extracted symbol line into a proper C declaration. -# Some systems (esp. on ia64) link data and code symbols differently, -# so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ -$lt_cdecl_hook\ -" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" - -# Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ -$lt_c_name_hook\ -" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" - -# Transform an extracted symbol line into symbol name with lib prefix and -# symbol address. -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ -$lt_c_name_lib_hook\ -" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ -" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ -" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" - -# Handle CRLF in mingw tool chain -opt_cr= -case $build_os in -mingw*) - opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp - ;; -esac - -# Try without a prefix underscore, then with it. -for ac_symprfx in "" "_"; do - - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. - symxfrm="\\1 $ac_symprfx\\2 \\2" - - # Write the raw and C identifiers. - if test "$lt_cv_nm_interface" = "MS dumpbin"; then - # Fake it for dumpbin and say T for any non-static function, - # D for any global variable and I for any imported variable. - # Also find C++ and __fastcall symbols from MSVC++ or ICC, - # which start with @ or ?. - lt_cv_sys_global_symbol_pipe="$AWK ['"\ -" {last_section=section; section=\$ 3};"\ -" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ -" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ -" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ -" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ -" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ -" \$ 0!~/External *\|/{next};"\ -" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ -" {if(hide[section]) next};"\ -" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ -" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ -" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ -" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ -" ' prfx=^$ac_symprfx]" - else - lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" - fi - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" - - # Check to see that the pipe works correctly. - pipe_works=no - - rm -f conftest* - cat > conftest.$ac_ext <<_LT_EOF -#ifdef __cplusplus -extern "C" { -#endif -char nm_test_var; -void nm_test_func(void); -void nm_test_func(void){} -#ifdef __cplusplus -} -#endif -int main(){nm_test_var='a';nm_test_func();return(0);} -_LT_EOF - - if AC_TRY_EVAL(ac_compile); then - # Now try to grab the symbols. - nlist=conftest.nm - if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then - # Try sorting and uniquifying the output. - if sort "$nlist" | uniq > "$nlist"T; then - mv -f "$nlist"T "$nlist" - else - rm -f "$nlist"T - fi - - # Make sure that we snagged all the symbols we need. - if $GREP ' nm_test_var$' "$nlist" >/dev/null; then - if $GREP ' nm_test_func$' "$nlist" >/dev/null; then - cat <<_LT_EOF > conftest.$ac_ext -/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ -#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE -/* DATA imports from DLLs on WIN32 can't be const, because runtime - relocations are performed -- see ld's documentation on pseudo-relocs. */ -# define LT@&t@_DLSYM_CONST -#elif defined __osf__ -/* This system does not cope well with relocations in const data. */ -# define LT@&t@_DLSYM_CONST -#else -# define LT@&t@_DLSYM_CONST const -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -_LT_EOF - # Now generate the symbol file. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' - - cat <<_LT_EOF >> conftest.$ac_ext - -/* The mapping between symbol names and symbols. */ -LT@&t@_DLSYM_CONST struct { - const char *name; - void *address; -} -lt__PROGRAM__LTX_preloaded_symbols[[]] = -{ - { "@PROGRAM@", (void *) 0 }, -_LT_EOF - $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext - cat <<\_LT_EOF >> conftest.$ac_ext - {0, (void *) 0} -}; - -/* This works around a problem in FreeBSD linker */ -#ifdef FREEBSD_WORKAROUND -static const void *lt_preloaded_setup() { - return lt__PROGRAM__LTX_preloaded_symbols; -} -#endif - -#ifdef __cplusplus -} -#endif -_LT_EOF - # Now try linking the two files. - mv conftest.$ac_objext conftstm.$ac_objext - lt_globsym_save_LIBS=$LIBS - lt_globsym_save_CFLAGS=$CFLAGS - LIBS=conftstm.$ac_objext - CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" - if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then - pipe_works=yes - fi - LIBS=$lt_globsym_save_LIBS - CFLAGS=$lt_globsym_save_CFLAGS - else - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD - fi - else - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD - fi - else - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD - cat conftest.$ac_ext >&5 - fi - rm -rf conftest* conftst* - - # Do not use the global_symbol_pipe unless it works. - if test yes = "$pipe_works"; then - break - else - lt_cv_sys_global_symbol_pipe= - fi -done -]) -if test -z "$lt_cv_sys_global_symbol_pipe"; then - lt_cv_sys_global_symbol_to_cdecl= -fi -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then - AC_MSG_RESULT(failed) -else - AC_MSG_RESULT(ok) -fi - -# Response file support. -if test "$lt_cv_nm_interface" = "MS dumpbin"; then - nm_file_list_spec='@' -elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then - nm_file_list_spec='@' -fi - -_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], - [Take the output of nm and produce a listing of raw symbols and C names]) -_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], - [Transform the output of nm in a proper C declaration]) -_LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1], - [Transform the output of nm into a list of symbols to manually relocate]) -_LT_DECL([global_symbol_to_c_name_address], - [lt_cv_sys_global_symbol_to_c_name_address], [1], - [Transform the output of nm in a C name address pair]) -_LT_DECL([global_symbol_to_c_name_address_lib_prefix], - [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], - [Transform the output of nm in a C name address pair when lib prefix is needed]) -_LT_DECL([nm_interface], [lt_cv_nm_interface], [1], - [The name lister interface]) -_LT_DECL([], [nm_file_list_spec], [1], - [Specify filename containing input files for $NM]) -]) # _LT_CMD_GLOBAL_SYMBOLS - - -# _LT_COMPILER_PIC([TAGNAME]) -# --------------------------- -m4_defun([_LT_COMPILER_PIC], -[m4_require([_LT_TAG_COMPILER])dnl -_LT_TAGVAR(lt_prog_compiler_wl, $1)= -_LT_TAGVAR(lt_prog_compiler_pic, $1)= -_LT_TAGVAR(lt_prog_compiler_static, $1)= - -m4_if([$1], [CXX], [ - # C++ specific cases for pic, static, wl, etc. - if test yes = "$GXX"; then - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the '-m68020' flag to GCC prevents building anything better, - # like '-m68040'. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - case $host_os in - os2*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' - ;; - esac - ;; - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - *djgpp*) - # DJGPP does not support shared libraries at all - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - _LT_TAGVAR(lt_prog_compiler_static, $1)= - ;; - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - else - case $host_os in - aix[[4-9]]*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - chorus*) - case $cc_basename in - cxch68*) - # Green Hills C++ Compiler - # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" - ;; - esac - ;; - mingw* | cygwin* | os2* | pw32* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - ;; - dgux*) - case $cc_basename in - ec++*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - ghcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - freebsd* | dragonfly* | midnightbsd*) - # FreeBSD uses GNU C++ - ;; - hpux9* | hpux10* | hpux11*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' - if test ia64 != "$host_cpu"; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - fi - ;; - aCC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - ;; - *) - ;; - esac - ;; - interix*) - # This is c89, which is MS Visual C++ (no shared libs) - # Anyone wants to do a port? - ;; - irix5* | irix6* | nonstopux*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - # CC pic flag -KPIC is the default. - ;; - *) - ;; - esac - ;; - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - KCC*) - # KAI C++ Compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - ecpc* ) - # old Intel C++ for x86_64, which still supported -KPIC. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - icpc* ) - # Intel C++, used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - cxx*) - # Compaq C++ - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) - # IBM XL 8.0, 9.0 on PPC and BlueGene - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | $SED 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - esac - ;; - esac - ;; - lynxos*) - ;; - m88k*) - ;; - mvs*) - case $cc_basename in - cxx*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' - ;; - *) - ;; - esac - ;; - netbsd*) - ;; - *qnx* | *nto*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' - ;; - RCC*) - # Rational C++ 2.4.1 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - cxx*) - # Digital/Compaq C++ - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # Make sure the PIC flag is empty. It appears that all Alpha - # Linux and Compaq Tru64 Unix objects are PIC. - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - *) - ;; - esac - ;; - psos*) - ;; - solaris*) - case $cc_basename in - CC* | sunCC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - ;; - *) - ;; - esac - ;; - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - lcc*) - # Lucid - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - ;; - *) - ;; - esac - ;; - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - case $cc_basename in - CC*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - ;; - *) - ;; - esac - ;; - vxworks*) - ;; - *) - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -], -[ - if test yes = "$GCC"; then - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - - case $host_os in - aix*) - # All AIX code is PIC. - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - m68k) - # FIXME: we need at least 68020 code to build shared libraries, but - # adding the '-m68020' flag to GCC prevents building anything better, - # like '-m68040'. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' - ;; - esac - ;; - - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) - # PIC is the default for these OSes. - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - # Although the cygwin gcc ignores -fPIC, still need this for old-style - # (--disable-auto-import) libraries - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - case $host_os in - os2*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' - ;; - esac - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - ;; - - haiku*) - # PIC is the default for Haiku. - # The "-static" flag exists, but is broken. - _LT_TAGVAR(lt_prog_compiler_static, $1)= - ;; - - hpux*) - # PIC is the default for 64-bit PA HP-UX, but not for 32-bit - # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag - # sets the default TLS model and affects inlining. - case $host_cpu in - hppa*64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - ;; - - interix[[3-9]]*) - # Interix 3.x gcc -fpic/-fPIC options generate broken code. - # Instead, we relocate shared libraries at runtime. - ;; - - msdosdjgpp*) - # Just because we use GCC doesn't mean we suddenly get shared libraries - # on systems that don't support them. - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - enable_shared=no - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic - fi - ;; - - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - ;; - esac - - case $cc_basename in - nvcc*) # Cuda Compiler Driver 2.2 - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' - if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)" - fi - ;; - esac - else - # PORTME Check for flag to pass linker flags through the system compiler. - case $host_os in - aix*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - if test ia64 = "$host_cpu"; then - # AIX 5 now supports IA64 processor - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - else - _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' - fi - ;; - - darwin* | rhapsody*) - # PIC is the default on this platform - # Common symbols not allowed in MH_DYLIB files - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' - case $cc_basename in - nagfor*) - # NAG Fortran compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - - mingw* | cygwin* | pw32* | os2* | cegcc*) - # This hack is so that the source file can tell whether it is being - # built for inclusion in a dll (and should export symbols for example). - m4_if([$1], [GCJ], [], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) - case $host_os in - os2*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static' - ;; - esac - ;; - - hpux9* | hpux10* | hpux11*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but - # not for PA HP-UX. - case $host_cpu in - hppa*64*|ia64*) - # +Z the default - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' - ;; - esac - # Is there a better lt_prog_compiler_static that works with the bundled CC? - _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive' - ;; - - irix5* | irix6* | nonstopux*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # PIC (with -KPIC) is the default. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - # old Intel for x86_64, which still supported -KPIC. - ecc*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - # icc used to be incompatible with GCC. - # ICC 10 doesn't accept -KPIC any more. - icc* | ifort*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - # Lahey Fortran 8.1. - lf95*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' - _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' - ;; - nagfor*) - # NAG Fortran compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - tcc*) - # Fabrice Bellard et al's Tiny C Compiler - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group compilers (*not* the Pentium gcc compiler, - # which looks to be a dead project) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - ccc*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All Alpha code is PIC. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - xl* | bgxl* | bgf* | mpixl*) - # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' - ;; - *) - case `$CC -V 2>&1 | $SED 5q` in - *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) - # Sun Fortran 8.3 passes all unrecognized flags to the linker - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='' - ;; - *Sun\ F* | *Sun*Fortran*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - ;; - *Sun\ C*) - # Sun C 5.9 - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - ;; - *Intel*\ [[CF]]*Compiler*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' - ;; - *Portland\ Group*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - esac - ;; - esac - ;; - - newsos6) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *nto* | *qnx*) - # QNX uses GNU C++, but need to define -shared option too, otherwise - # it will coredump. - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' - ;; - - osf3* | osf4* | osf5*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - # All OSF/1 code is PIC. - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - rdos*) - _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' - ;; - - solaris*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - case $cc_basename in - f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; - *) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; - esac - ;; - - sunos4*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4 | sysv4.2uw2* | sysv4.3*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - fi - ;; - - sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - unicos*) - _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - - uts4*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' - _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' - ;; - - *) - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no - ;; - esac - fi -]) -case $host_os in - # For platforms that do not support PIC, -DPIC is meaningless: - *djgpp*) - _LT_TAGVAR(lt_prog_compiler_pic, $1)= - ;; - *) - _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" - ;; -esac - -AC_CACHE_CHECK([for $compiler option to produce PIC], - [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], - [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) -_LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) - -# -# Check to make sure the PIC flag actually works. -# -if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then - _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], - [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], - [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], - [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in - "" | " "*) ;; - *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; - esac], - [_LT_TAGVAR(lt_prog_compiler_pic, $1)= - _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) -fi -_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], - [Additional compiler flags for building library objects]) - -_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], - [How to pass a linker flag through the compiler]) -# -# Check to make sure the static flag actually works. -# -wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" -_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], - _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), - $lt_tmp_static_flag, - [], - [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) -_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], - [Compiler flag to prevent dynamic linking]) -])# _LT_COMPILER_PIC - - -# _LT_LINKER_SHLIBS([TAGNAME]) -# ---------------------------- -# See if the linker supports building shared libraries. -m4_defun([_LT_LINKER_SHLIBS], -[AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -m4_require([_LT_PATH_MANIFEST_TOOL])dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_DECL_SED])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl -m4_require([_LT_TAG_COMPILER])dnl -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) -m4_if([$1], [CXX], [ - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] - case $host_os in - aix[[4-9]]*) - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to GNU nm, but means don't demangle to AIX nm. - # Without the "-l" option, or with the "-B" option, AIX nm treats - # weak defined symbols like other global defined symbols, whereas - # GNU nm marks them as "W". - # While the 'weak' keyword is ignored in the Export File, we need - # it in the Import File for the 'aix-soname' feature, so we have - # to replace the "-B" option with "-P" for AIX nm. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' - else - _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' - fi - ;; - pw32*) - _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds - ;; - cygwin* | mingw* | cegcc*) - case $cc_basename in - cl* | icl*) - _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - ;; - *) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] - ;; - esac - ;; - *) - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - ;; - esac -], [ - runpath_var= - _LT_TAGVAR(allow_undefined_flag, $1)= - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(archive_cmds, $1)= - _LT_TAGVAR(archive_expsym_cmds, $1)= - _LT_TAGVAR(compiler_needs_object, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - _LT_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(hardcode_automatic, $1)=no - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(hardcode_libdir_separator, $1)= - _LT_TAGVAR(hardcode_minus_L, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported - _LT_TAGVAR(inherit_rpath, $1)=no - _LT_TAGVAR(link_all_deplibs, $1)=unknown - _LT_TAGVAR(module_cmds, $1)= - _LT_TAGVAR(module_expsym_cmds, $1)= - _LT_TAGVAR(old_archive_from_new_cmds, $1)= - _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= - _LT_TAGVAR(thread_safe_flag_spec, $1)= - _LT_TAGVAR(whole_archive_flag_spec, $1)= - # include_expsyms should be a list of space-separated symbols to be *always* - # included in the symbol list - _LT_TAGVAR(include_expsyms, $1)= - # exclude_expsyms can be an extended regexp of symbols to exclude - # it will be wrapped by ' (' and ')$', so one must not match beginning or - # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', - # as well as any symbol that contains 'd'. - _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out - # platforms (ab)use it in PIC code, but their linkers get confused if - # the symbol is explicitly referenced. Since portable code cannot - # rely on this symbol name, it's probably fine to never include it in - # preloaded symbol tables. - # Exclude shared library initialization/finalization symbols. -dnl Note also adjust exclude_expsyms for C++ above. - extract_expsyms_cmds= - - case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++ or Intel C++ Compiler. - if test yes != "$GCC"; then - with_gnu_ld=no - fi - ;; - interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) - with_gnu_ld=yes - ;; - openbsd* | bitrig*) - with_gnu_ld=no - ;; - esac - - _LT_TAGVAR(ld_shlibs, $1)=yes - - # On some targets, GNU ld is compatible enough with the native linker - # that we're better off using the native interface for both. - lt_use_gnu_ld_interface=no - if test yes = "$with_gnu_ld"; then - case $host_os in - aix*) - # The AIX port of GNU ld has always aspired to compatibility - # with the native linker. However, as the warning in the GNU ld - # block says, versions before 2.19.5* couldn't really create working - # shared libraries, regardless of the interface used. - case `$LD -v 2>&1` in - *\ \(GNU\ Binutils\)\ 2.19.5*) ;; - *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; - *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - ;; - *) - lt_use_gnu_ld_interface=yes - ;; - esac - fi - - if test yes = "$lt_use_gnu_ld_interface"; then - # If archive_cmds runs LD, not CC, wlarc should be empty - wlarc='$wl' - - # Set some defaults for GNU ld with shared library support. These - # are reset later if shared libraries are not supported. Putting them - # here allows them to be overridden if necessary. - runpath_var=LD_RUN_PATH - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - # ancient GNU ld didn't support --whole-archive et. al. - if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then - _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - supports_anon_versioning=no - case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in - *GNU\ gold*) supports_anon_versioning=yes ;; - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... - *\ 2.11.*) ;; # other 2.11 versions - *) supports_anon_versioning=yes ;; - esac - - # See if GNU ld supports shared libraries. - case $host_os in - aix[[3-9]]*) - # On AIX/PPC, the GNU linker is very broken - if test ia64 != "$host_cpu"; then - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: the GNU linker, at least up to release 2.19, is reported -*** to be unable to reliably create shared libraries on AIX. -*** Therefore, libtool is disabling shared libraries support. If you -*** really care for shared libraries, you may want to install binutils -*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. -*** You will then need to restart the configuration process. - -_LT_EOF - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='' - ;; - m68k) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' - _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file, use it as - # is; otherwise, prepend EXPORTS... - _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - haiku*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - os2*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - shrext_cmds=.dll - _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - ;; - - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - - gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) - tmp_diet=no - if test linux-dietlibc = "$host_os"; then - case $cc_basename in - diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) - esac - fi - if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ - && test no = "$tmp_diet" - then - tmp_addflag=' $pic_flag' - tmp_sharedflag='-shared' - case $cc_basename,$host_cpu in - pgcc*) # Portland Group C compiler - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - tmp_addflag=' $pic_flag' - ;; - pgf77* | pgf90* | pgf95* | pgfortran*) - # Portland Group f77 and f90 compilers - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - tmp_addflag=' $pic_flag -Mnomain' ;; - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 - tmp_addflag=' -i_dynamic' ;; - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 - tmp_addflag=' -i_dynamic -nofor_main' ;; - ifc* | ifort*) # Intel Fortran compiler - tmp_addflag=' -nofor_main' ;; - lf95*) # Lahey Fortran 8.1 - _LT_TAGVAR(whole_archive_flag_spec, $1)= - tmp_sharedflag='--shared' ;; - nagfor*) # NAGFOR 5.3 - tmp_sharedflag='-Wl,-shared' ;; - xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) - tmp_sharedflag='-qmkshrobj' - tmp_addflag= ;; - nvcc*) # Cuda Compiler Driver 2.2 - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - ;; - esac - case `$CC -V 2>&1 | $SED 5q` in - *Sun\ C*) # Sun C 5.9 - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - tmp_sharedflag='-G' ;; - *Sun\ F*) # Sun Fortran 8.3 - tmp_sharedflag='-G' ;; - esac - _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - - if test yes = "$supports_anon_versioning"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' - fi - - case $cc_basename in - tcc*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic' - ;; - xlf* | bgf* | bgxlf* | mpixlf*) - # IBM XL Fortran 10.1 on PPC cannot create shared libs itself - _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' - if test yes = "$supports_anon_versioning"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' - fi - ;; - esac - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' - wlarc= - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - fi - ;; - - solaris*) - if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: The releases 2.8.* of the GNU linker cannot reliably -*** create shared libraries on Solaris systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.9.1 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) - case `$LD -v 2>&1` in - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) - _LT_TAGVAR(ld_shlibs, $1)=no - cat <<_LT_EOF 1>&2 - -*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot -*** reliably create shared libraries on SCO systems. Therefore, libtool -*** is disabling shared libraries support. We urge you to upgrade GNU -*** binutils to release 2.16.91.0.3 or newer. Another option is to modify -*** your PATH or compiler configuration so that the native linker is -*** used, and then restart. - -_LT_EOF - ;; - *) - # For security reasons, it is highly recommended that you always - # use absolute paths for naming shared libraries, and exclude the - # DT_RUNPATH tag from executables and libraries. But doing so - # requires that you compile everything twice, which is a pain. - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - sunos4*) - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' - wlarc= - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - - if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then - runpath_var= - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= - _LT_TAGVAR(export_dynamic_flag_spec, $1)= - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - # PORTME fill in a description of your system's linker (not GNU ld) - case $host_os in - aix3*) - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' - # Note: this linker hardcodes the directories in LIBPATH if there - # are no directories specified by -L. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then - # Neither direct hardcoding nor static linking is supported with a - # broken collect2. - _LT_TAGVAR(hardcode_direct, $1)=unsupported - fi - ;; - - aix[[4-9]]*) - if test ia64 = "$host_cpu"; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag= - else - # If we're using GNU nm, then we don't want the "-C" option. - # -C means demangle to GNU nm, but means don't demangle to AIX nm. - # Without the "-l" option, or with the "-B" option, AIX nm treats - # weak defined symbols like other global defined symbols, whereas - # GNU nm marks them as "W". - # While the 'weak' keyword is ignored in the Export File, we need - # it in the Import File for the 'aix-soname' feature, so we have - # to replace the "-B" option with "-P" for AIX nm. - if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then - _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' - else - _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' - fi - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # have runtime linking enabled, and use it for executables. - # For shared libraries, we enable/disable runtime linking - # depending on the kind of the shared library created - - # when "with_aix_soname,aix_use_runtimelinking" is: - # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables - # "aix,yes" lib.so shared, rtl:yes, for executables - # lib.a static archive - # "both,no" lib.so.V(shr.o) shared, rtl:yes - # lib.a(lib.so.V) shared, rtl:no, for executables - # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a(lib.so.V) shared, rtl:no - # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a static archive - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) - for ld_flag in $LDFLAGS; do - if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then - aix_use_runtimelinking=yes - break - fi - done - if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then - # With aix-soname=svr4, we create the lib.so.V shared archives only, - # so we don't have lib.a shared libs to link our executables. - # We have to force runtime linking in this case. - aix_use_runtimelinking=yes - LDFLAGS="$LDFLAGS -Wl,-brtl" - fi - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_TAGVAR(archive_cmds, $1)='' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='$wl-f,' - case $with_aix_soname,$aix_use_runtimelinking in - aix,*) ;; # traditional, no import file - svr4,* | *,yes) # use import file - # The Import File defines what to hardcode. - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=no - ;; - esac - - if test yes = "$GCC"; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`$CC -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)= - fi - ;; - esac - shared_flag='-shared' - if test yes = "$aix_use_runtimelinking"; then - shared_flag="$shared_flag "'$wl-G' - fi - # Need to ensure runtime linking is disabled for the traditional - # shared library, or the linker may eventually find shared libraries - # /with/ Import File - we do not want to mix them. - shared_flag_aix='-shared' - shared_flag_svr4='-shared $wl-G' - else - # not using gcc - if test ia64 = "$host_cpu"; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test yes = "$aix_use_runtimelinking"; then - shared_flag='$wl-G' - else - shared_flag='$wl-bM:SRE' - fi - shared_flag_aix='$wl-bM:SRE' - shared_flag_svr4='$wl-G' - fi - fi - - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to export. - _LT_TAGVAR(always_export_symbols, $1)=yes - if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(allow_undefined_flag, $1)='-berok' - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag - else - if test ia64 = "$host_cpu"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' - if test yes = "$with_gnu_ld"; then - # We only use this code for GNU lds that support --whole-archive. - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' - # -brtl affects multiple linker settings, -berok does not and is overridden later - compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' - if test svr4 != "$with_aix_soname"; then - # This is similar to how AIX traditionally builds its shared libraries. - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' - fi - if test aix != "$with_aix_soname"; then - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' - else - # used by -dlpreopen to get the symbols - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' - fi - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' - fi - fi - ;; - - amigaos*) - case $host_cpu in - powerpc) - # see comment about AmigaOS4 .so support - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='' - ;; - m68k) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - ;; - - bsdi[[45]]*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic - ;; - - cygwin* | mingw* | pw32* | cegcc*) - # When not using gcc, we currently assume that we are using - # Microsoft Visual C++ or Intel C++ Compiler. - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - case $cc_basename in - cl* | icl*) - # Native MSVC or ICC - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' - _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then - cp "$export_symbols" "$output_objdir/$soname.def"; - echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; - else - $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' - _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1,DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols' - # Don't use ranlib - _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' - _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile=$lt_outputfile.exe - lt_tool_outputfile=$lt_tool_outputfile.exe - ;; - esac~ - if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # Assume MSVC and ICC wrapper - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' - # The linker will automatically build a .lib file if we build a DLL. - _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - # FIXME: Should let the user specify the lib program. - _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - ;; - esac - ;; - - darwin* | rhapsody*) - _LT_DARWIN_LINKER_FEATURES($1) - ;; - - dgux*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor - # support. Future versions do this automatically, but an explicit c++rt0.o - # does not break anything, and helps significantly (at the cost of a little - # extra space). - freebsd2.2*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # Unfortunately, older versions of FreeBSD 2 do not have this feature. - freebsd2.*) - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly* | midnightbsd*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - hpux9*) - if test yes = "$GCC"; then - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - else - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_direct, $1)=yes - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - ;; - - hpux10*) - if test yes,no = "$GCC,$with_gnu_ld"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' - fi - if test no = "$with_gnu_ld"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - fi - ;; - - hpux11*) - if test yes,no = "$GCC,$with_gnu_ld"; then - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - else - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - m4_if($1, [], [ - # Older versions of the 11.00 compiler do not understand -b yet - # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) - _LT_LINKER_OPTION([if $CC understands -b], - _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], - [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], - [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], - [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) - ;; - esac - fi - if test no = "$with_gnu_ld"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - - # hardcode_minus_L: Not really in the search PATH, - # but as the default location of the library. - _LT_TAGVAR(hardcode_minus_L, $1)=yes - ;; - esac - fi - ;; - - irix5* | irix6* | nonstopux*) - if test yes = "$GCC"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - # Try to use the -exported_symbol ld option, if it does not - # work, assume that -exports_file does not work either and - # implicitly export all symbols. - # This should be the same for all languages, so no per-tag cache variable. - AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], - [lt_cv_irix_exported_symbol], - [save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" - AC_LINK_IFELSE( - [AC_LANG_SOURCE( - [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], - [C++], [[int foo (void) { return 0; }]], - [Fortran 77], [[ - subroutine foo - end]], - [Fortran], [[ - subroutine foo - end]])])], - [lt_cv_irix_exported_symbol=yes], - [lt_cv_irix_exported_symbol=no]) - LDFLAGS=$save_LDFLAGS]) - if test yes = "$lt_cv_irix_exported_symbol"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' - fi - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(inherit_rpath, $1)=yes - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - linux*) - case $cc_basename in - tcc*) - # Fabrice Bellard et al's Tiny C Compiler - _LT_TAGVAR(ld_shlibs, $1)=yes - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out - else - _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - newsos6) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *nto* | *qnx*) - ;; - - openbsd* | bitrig*) - if test -f /usr/libexec/ld.so; then - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - fi - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - os2*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - shrext_cmds=.dll - _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - ;; - - osf3*) - if test yes = "$GCC"; then - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - else - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - osf4* | osf5*) # as osf3* with the addition of -msym flag - if test yes = "$GCC"; then - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - else - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp' - - # Both c and cxx compiler support -rpath directly - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)='no' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - ;; - - solaris*) - _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' - if test yes = "$GCC"; then - wlarc='$wl' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - else - case `$CC -V 2>&1` in - *"Compilers 5.0"*) - wlarc='' - _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' - ;; - *) - wlarc='$wl' - _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' - ;; - esac - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands '-z linker_flag'. GCC discards it without '$wl', - # but is careful enough not to reorder. - # Supported since Solaris 2.6 (maybe 2.5.1?) - if test yes = "$GCC"; then - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - fi - ;; - esac - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - sunos4*) - if test sequent = "$host_vendor"; then - # Use $CC to link under sequent, because it throws in some extra .o - # files that make .init and .fini sections work. - _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' - fi - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4) - case $host_vendor in - sni) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? - ;; - siemens) - ## LD is ld it makes a PLAMLIB - ## CC just makes a GrossModule. - _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' - _LT_TAGVAR(hardcode_direct, $1)=no - ;; - motorola) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie - ;; - esac - runpath_var='LD_RUN_PATH' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - sysv4.3*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' - ;; - - sysv4*MP*) - if test -d /usr/nec; then - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var=LD_RUN_PATH - hardcode_runpath_var=yes - _LT_TAGVAR(ld_shlibs, $1)=yes - fi - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - if test yes = "$GCC"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We CANNOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' - _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' - runpath_var='LD_RUN_PATH' - - if test yes = "$GCC"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - fi - ;; - - uts4*) - _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - - *) - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - - if test sni = "$host_vendor"; then - case $host in - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym' - ;; - esac - fi - fi -]) -AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) -test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no - -_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld - -_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl -_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl -_LT_DECL([], [extract_expsyms_cmds], [2], - [The commands to extract the exported symbol list from a shared archive]) - -# -# Do we need to explicitly link libc? -# -case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in -x|xyes) - # Assume -lc should be added - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - - if test yes,yes = "$GCC,$enable_shared"; then - case $_LT_TAGVAR(archive_cmds, $1) in - *'~'*) - # FIXME: we may have to deal with multi-command sequences. - ;; - '$CC '*) - # Test whether the compiler implicitly links with -lc since on some - # systems, -lgcc has to come before -lc. If gcc already passes -lc - # to ld, don't add -lc before -lgcc. - AC_CACHE_CHECK([whether -lc should be explicitly linked in], - [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), - [$RM conftest* - echo "$lt_simple_compile_test_code" > conftest.$ac_ext - - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then - soname=conftest - lib=conftest - libobjs=conftest.$ac_objext - deplibs= - wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) - pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) - compiler_flags=-v - linker_flags=-v - verstring= - output_objdir=. - libname=conftest - lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) - _LT_TAGVAR(allow_undefined_flag, $1)= - if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) - then - lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no - else - lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes - fi - _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag - else - cat conftest.err 1>&5 - fi - $RM conftest* - ]) - _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) - ;; - esac - fi - ;; -esac - -_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], - [Whether or not to add -lc for building shared libraries]) -_LT_TAGDECL([allow_libtool_libs_with_static_runtimes], - [enable_shared_with_static_runtimes], [0], - [Whether or not to disallow shared libs when runtime libs are static]) -_LT_TAGDECL([], [export_dynamic_flag_spec], [1], - [Compiler flag to allow reflexive dlopens]) -_LT_TAGDECL([], [whole_archive_flag_spec], [1], - [Compiler flag to generate shared objects directly from archives]) -_LT_TAGDECL([], [compiler_needs_object], [1], - [Whether the compiler copes with passing no objects directly]) -_LT_TAGDECL([], [old_archive_from_new_cmds], [2], - [Create an old-style archive from a shared archive]) -_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], - [Create a temporary old-style archive to link instead of a shared archive]) -_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) -_LT_TAGDECL([], [archive_expsym_cmds], [2]) -_LT_TAGDECL([], [module_cmds], [2], - [Commands used to build a loadable module if different from building - a shared archive.]) -_LT_TAGDECL([], [module_expsym_cmds], [2]) -_LT_TAGDECL([], [with_gnu_ld], [1], - [Whether we are building with GNU ld or not]) -_LT_TAGDECL([], [allow_undefined_flag], [1], - [Flag that allows shared libraries with undefined symbols to be built]) -_LT_TAGDECL([], [no_undefined_flag], [1], - [Flag that enforces no undefined symbols]) -_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], - [Flag to hardcode $libdir into a binary during linking. - This must work even if $libdir does not exist]) -_LT_TAGDECL([], [hardcode_libdir_separator], [1], - [Whether we need a single "-rpath" flag with a separated argument]) -_LT_TAGDECL([], [hardcode_direct], [0], - [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes - DIR into the resulting binary]) -_LT_TAGDECL([], [hardcode_direct_absolute], [0], - [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes - DIR into the resulting binary and the resulting library dependency is - "absolute", i.e impossible to change by setting $shlibpath_var if the - library is relocated]) -_LT_TAGDECL([], [hardcode_minus_L], [0], - [Set to "yes" if using the -LDIR flag during linking hardcodes DIR - into the resulting binary]) -_LT_TAGDECL([], [hardcode_shlibpath_var], [0], - [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR - into the resulting binary]) -_LT_TAGDECL([], [hardcode_automatic], [0], - [Set to "yes" if building a shared library automatically hardcodes DIR - into the library and all subsequent libraries and executables linked - against it]) -_LT_TAGDECL([], [inherit_rpath], [0], - [Set to yes if linker adds runtime paths of dependent libraries - to runtime path list]) -_LT_TAGDECL([], [link_all_deplibs], [0], - [Whether libtool must link a program against all its dependency libraries]) -_LT_TAGDECL([], [always_export_symbols], [0], - [Set to "yes" if exported symbols are required]) -_LT_TAGDECL([], [export_symbols_cmds], [2], - [The commands to list exported symbols]) -_LT_TAGDECL([], [exclude_expsyms], [1], - [Symbols that should not be listed in the preloaded symbols]) -_LT_TAGDECL([], [include_expsyms], [1], - [Symbols that must always be exported]) -_LT_TAGDECL([], [prelink_cmds], [2], - [Commands necessary for linking programs (against libraries) with templates]) -_LT_TAGDECL([], [postlink_cmds], [2], - [Commands necessary for finishing linking programs]) -_LT_TAGDECL([], [file_list_spec], [1], - [Specify filename containing input files]) -dnl FIXME: Not yet implemented -dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], -dnl [Compiler flag to generate thread safe objects]) -])# _LT_LINKER_SHLIBS - - -# _LT_LANG_C_CONFIG([TAG]) -# ------------------------ -# Ensure that the configuration variables for a C compiler are suitably -# defined. These variables are subsequently used by _LT_CONFIG to write -# the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_C_CONFIG], -[m4_require([_LT_DECL_EGREP])dnl -lt_save_CC=$CC -AC_LANG_PUSH(C) - -# Source file extension for C test sources. -ac_ext=c - -# Object file extension for compiled C test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="int some_variable = 0;" - -# Code to be used in simple link tests -lt_simple_link_test_code='int main(){return(0);}' - -_LT_TAG_COMPILER -# Save the default compiler, since it gets overwritten when the other -# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. -compiler_DEFAULT=$CC - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - LT_SYS_DLOPEN_SELF - _LT_CMD_STRIPLIB - - # Report what library types will actually be built - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test no = "$can_build_shared" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test yes = "$enable_shared" && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - - aix[[4-9]]*) - if test ia64 != "$host_cpu"; then - case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in - yes,aix,yes) ;; # shared object as lib.so file only - yes,svr4,*) ;; # shared object as lib.so archive member only - yes,*) enable_static=no ;; # shared object in lib.a archive as well - esac - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test yes = "$enable_shared" || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_CONFIG($1) -fi -AC_LANG_POP -CC=$lt_save_CC -])# _LT_LANG_C_CONFIG - - -# _LT_LANG_CXX_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for a C++ compiler are suitably -# defined. These variables are subsequently used by _LT_CONFIG to write -# the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_CXX_CONFIG], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_DECL_EGREP])dnl -m4_require([_LT_PATH_MANIFEST_TOOL])dnl -if test -n "$CXX" && ( test no != "$CXX" && - ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || - (test g++ != "$CXX"))); then - AC_PROG_CXXCPP -else - _lt_caught_CXX_error=yes -fi - -AC_LANG_PUSH(C++) -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(compiler_needs_object, $1)=no -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for C++ test sources. -ac_ext=cpp - -# Object file extension for compiled C++ test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the CXX compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test yes != "$_lt_caught_CXX_error"; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="int some_variable = 0;" - - # Code to be used in simple link tests - lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC=$CC - lt_save_CFLAGS=$CFLAGS - lt_save_LD=$LD - lt_save_GCC=$GCC - GCC=$GXX - lt_save_with_gnu_ld=$with_gnu_ld - lt_save_path_LD=$lt_cv_path_LD - if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx - else - $as_unset lt_cv_prog_gnu_ld - fi - if test -n "${lt_cv_path_LDCXX+set}"; then - lt_cv_path_LD=$lt_cv_path_LDCXX - else - $as_unset lt_cv_path_LD - fi - test -z "${LDCXX+set}" || LD=$LDCXX - CC=${CXX-"c++"} - CFLAGS=$CXXFLAGS - compiler=$CC - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - - if test -n "$compiler"; then - # We don't want -fno-exception when compiling C++ code, so set the - # no_builtin_flag separately - if test yes = "$GXX"; then - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' - else - _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= - fi - - if test yes = "$GXX"; then - # Set up default GNU C++ configuration - - LT_PATH_LD - - # Check if GNU C++ uses GNU ld as the underlying linker, since the - # archiving commands below assume that GNU ld is being used. - if test yes = "$with_gnu_ld"; then - _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - - # If archive_cmds runs LD, not CC, wlarc should be empty - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to - # investigate it a little bit more. (MM) - wlarc='$wl' - - # ancient GNU ld didn't support --whole-archive et. al. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | - $GREP 'no-whole-archive' > /dev/null; then - _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - else - _LT_TAGVAR(whole_archive_flag_spec, $1)= - fi - else - with_gnu_ld=no - wlarc= - - # A generic and very simple default shared library creation - # command for GNU C++ for the case where it uses the native - # linker, instead of GNU ld. If possible, this setting should - # overridden to take advantage of the native linker features on - # the platform it is being used on. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - fi - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - - else - GXX=no - with_gnu_ld=no - wlarc= - fi - - # PORTME: fill in a description of your system's C++ link characteristics - AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) - _LT_TAGVAR(ld_shlibs, $1)=yes - case $host_os in - aix3*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aix[[4-9]]*) - if test ia64 = "$host_cpu"; then - # On IA64, the linker does run time linking by default, so we don't - # have to do anything special. - aix_use_runtimelinking=no - exp_sym_flag='-Bexport' - no_entry_flag= - else - aix_use_runtimelinking=no - - # Test if we are trying to use run time linking or normal - # AIX style linking. If -brtl is somewhere in LDFLAGS, we - # have runtime linking enabled, and use it for executables. - # For shared libraries, we enable/disable runtime linking - # depending on the kind of the shared library created - - # when "with_aix_soname,aix_use_runtimelinking" is: - # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables - # "aix,yes" lib.so shared, rtl:yes, for executables - # lib.a static archive - # "both,no" lib.so.V(shr.o) shared, rtl:yes - # lib.a(lib.so.V) shared, rtl:no, for executables - # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a(lib.so.V) shared, rtl:no - # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables - # lib.a static archive - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) - for ld_flag in $LDFLAGS; do - case $ld_flag in - *-brtl*) - aix_use_runtimelinking=yes - break - ;; - esac - done - if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then - # With aix-soname=svr4, we create the lib.so.V shared archives only, - # so we don't have lib.a shared libs to link our executables. - # We have to force runtime linking in this case. - aix_use_runtimelinking=yes - LDFLAGS="$LDFLAGS -Wl,-brtl" - fi - ;; - esac - - exp_sym_flag='-bexport' - no_entry_flag='-bnoentry' - fi - - # When large executables or shared objects are built, AIX ld can - # have problems creating the table of contents. If linking a library - # or program results in "error TOC overflow" add -mminimal-toc to - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. - - _LT_TAGVAR(archive_cmds, $1)='' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='$wl-f,' - case $with_aix_soname,$aix_use_runtimelinking in - aix,*) ;; # no import file - svr4,* | *,yes) # use import file - # The Import File defines what to hardcode. - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=no - ;; - esac - - if test yes = "$GXX"; then - case $host_os in aix4.[[012]]|aix4.[[012]].*) - # We only want to do this on AIX 4.2 and lower, the check - # below for broken collect2 doesn't work under 4.3+ - collect2name=`$CC -print-prog-name=collect2` - if test -f "$collect2name" && - strings "$collect2name" | $GREP resolve_lib_name >/dev/null - then - # We have reworked collect2 - : - else - # We have old collect2 - _LT_TAGVAR(hardcode_direct, $1)=unsupported - # It fails to find uninstalled libraries when the uninstalled - # path is not listed in the libpath. Setting hardcode_minus_L - # to unsupported forces relinking - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)= - fi - esac - shared_flag='-shared' - if test yes = "$aix_use_runtimelinking"; then - shared_flag=$shared_flag' $wl-G' - fi - # Need to ensure runtime linking is disabled for the traditional - # shared library, or the linker may eventually find shared libraries - # /with/ Import File - we do not want to mix them. - shared_flag_aix='-shared' - shared_flag_svr4='-shared $wl-G' - else - # not using gcc - if test ia64 = "$host_cpu"; then - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release - # chokes on -Wl,-G. The following line is correct: - shared_flag='-G' - else - if test yes = "$aix_use_runtimelinking"; then - shared_flag='$wl-G' - else - shared_flag='$wl-bM:SRE' - fi - shared_flag_aix='$wl-bM:SRE' - shared_flag_svr4='$wl-G' - fi - fi - - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall' - # It seems that -bexpall does not export symbols beginning with - # underscore (_), so it is better to generate a list of symbols to - # export. - _LT_TAGVAR(always_export_symbols, $1)=yes - if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then - # Warning - without using the other runtime loading flags (-brtl), - # -berok will link without error, but may produce a broken library. - # The "-G" linker flag allows undefined symbols. - _LT_TAGVAR(no_undefined_flag, $1)='-bernotok' - # Determine the default libpath from the value encoded in an empty - # executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" - - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag - else - if test ia64 = "$host_cpu"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib' - _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" - _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols" - else - # Determine the default libpath from the value encoded in an - # empty executable. - _LT_SYS_MODULE_PATH_AIX([$1]) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath" - # Warning - without using the other run time loading flags, - # -berok will link without error, but may produce a broken library. - _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok' - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok' - if test yes = "$with_gnu_ld"; then - # We only use this code for GNU lds that support --whole-archive. - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' - else - # Exported symbols can be pulled into shared objects from archives - _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' - fi - _LT_TAGVAR(archive_cmds_need_lc, $1)=yes - _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' - # -brtl affects multiple linker settings, -berok does not and is overridden later - compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`' - if test svr4 != "$with_aix_soname"; then - # This is similar to how AIX traditionally builds its shared - # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' - fi - if test aix != "$with_aix_soname"; then - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' - else - # used by -dlpreopen to get the symbols - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir' - fi - _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d' - fi - fi - ;; - - beos*) - if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - # Joseph Beckenbach says some releases of gcc - # support --undefined. This deserves some investigation. FIXME - _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - chorus*) - case $cc_basename in - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - cygwin* | mingw* | pw32* | cegcc*) - case $GXX,$cc_basename in - ,cl* | no,cl* | ,icl* | no,icl*) - # Native MSVC or ICC - # hardcode_libdir_flag_spec is actually meaningless, as there is - # no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - # Tell ltmain to make .lib files, not .a files. - libext=lib - # Tell ltmain to make .dll files, not .so files. - shrext_cmds=.dll - # FIXME: Setting linknames here is a bad hack. - _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' - _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then - cp "$export_symbols" "$output_objdir/$soname.def"; - echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; - else - $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; - fi~ - $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ - linknames=' - # The linker will not automatically build a static lib if we build a DLL. - # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - # Don't use ranlib - _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' - _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ - lt_tool_outputfile="@TOOL_OUTPUT@"~ - case $lt_outputfile in - *.exe|*.EXE) ;; - *) - lt_outputfile=$lt_outputfile.exe - lt_tool_outputfile=$lt_tool_outputfile.exe - ;; - esac~ - func_to_tool_file "$lt_outputfile"~ - if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then - $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; - $RM "$lt_outputfile.manifest"; - fi' - ;; - *) - # g++ - # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, - # as there is no search path for DLLs. - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols' - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - _LT_TAGVAR(always_export_symbols, $1)=no - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - - if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - # If the export-symbols file already is a .def file, use it as - # is; otherwise, prepend EXPORTS... - _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then - cp $export_symbols $output_objdir/$soname.def; - else - echo EXPORTS > $output_objdir/$soname.def; - cat $export_symbols >> $output_objdir/$soname.def; - fi~ - $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - darwin* | rhapsody*) - _LT_DARWIN_LINKER_FEATURES($1) - ;; - - os2*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' - _LT_TAGVAR(hardcode_minus_L, $1)=yes - _LT_TAGVAR(allow_undefined_flag, $1)=unsupported - shrext_cmds=.dll - _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ - $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ - $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ - $ECHO EXPORTS >> $output_objdir/$libname.def~ - prefix_cmds="$SED"~ - if test EXPORTS = "`$SED 1q $export_symbols`"; then - prefix_cmds="$prefix_cmds -e 1d"; - fi~ - prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ - cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ - $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ - emximp -o $lib $output_objdir/$libname.def' - _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' - _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes - _LT_TAGVAR(file_list_spec, $1)='@' - ;; - - dgux*) - case $cc_basename in - ec++*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - ghcx*) - # Green Hills C++ Compiler - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - freebsd2.*) - # C++ shared libraries reported to be fairly broken before - # switch to ELF - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - freebsd-elf*) - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - ;; - - freebsd* | dragonfly* | midnightbsd*) - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF - # conventions - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; - - haiku*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - - hpux9*) - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test yes = "$GXX"; then - _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - hpux10*|hpux11*) - if test no = "$with_gnu_ld"; then - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - case $host_cpu in - hppa*64*|ia64*) - ;; - *) - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - ;; - esac - fi - case $host_cpu in - hppa*64*|ia64*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - ;; - *) - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, - # but as the default - # location of the library. - ;; - esac - - case $cc_basename in - CC*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - aCC*) - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test yes = "$GXX"; then - if test no = "$with_gnu_ld"; then - case $host_cpu in - hppa*64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - ia64*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - ;; - esac - fi - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - interix[[3-9]]*) - _LT_TAGVAR(hardcode_direct, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. - # Instead, shared libraries are loaded at an image base (0x10000000 by - # default) and relocated if they conflict, which is a slow very memory - # consuming and fragmenting process. To avoid this, we pick a random, - # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link - # time. Moving up from 0x10000000 also allows more sbrk(2) space. - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - ;; - irix5* | irix6*) - case $cc_basename in - CC*) - # SGI C++ - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - - # Archives containing C++ object files must be created using - # "CC -ar", where "CC" is the IRIX C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' - ;; - *) - if test yes = "$GXX"; then - if test no = "$with_gnu_ld"; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - else - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' - fi - fi - _LT_TAGVAR(link_all_deplibs, $1)=yes - ;; - esac - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - _LT_TAGVAR(inherit_rpath, $1)=yes - ;; - - linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - - # Archives containing C++ object files must be created using - # "CC -Bstatic", where "CC" is the KAI C++ compiler. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' - ;; - icpc* | ecpc* ) - # Intel C++ - with_gnu_ld=yes - # version 8.0 and above of icpc choke on multiply defined symbols - # if we add $predep_objects and $postdep_objects, however 7.1 and - # earlier do not add the objects themselves. - case `$CC -V 2>&1` in - *"Version 7."*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 8.0 or newer - tmp_idyn= - case $host_cpu in - ia64*) tmp_idyn=' -i_dynamic';; - esac - _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive' - ;; - pgCC* | pgcpp*) - # Portland Group C++ compiler - case `$CC -V` in - *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) - _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ - compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' - _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ - $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ - $RANLIB $oldlib' - _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ - rm -rf $tpldir~ - $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ - $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - *) # Version 6 and above use weak symbols - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - ;; - cxx*) - # Compaq C++ - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' - - runpath_var=LD_RUN_PATH - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' - ;; - xl* | mpixl* | bgxl*) - # IBM XL 8.0 on PPC, with GNU ld - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic' - _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' - if test yes = "$supports_anon_versioning"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ - echo "local: *; };" >> $output_objdir/$libname.ver~ - $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' - fi - ;; - *) - case `$CC -V 2>&1 | $SED 5q` in - *Sun\ C*) - # Sun C++ 5.9 - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' - _LT_TAGVAR(compiler_needs_object, $1)=yes - - # Not sure whether something based on - # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 - # would be better. - output_verbose_link_cmd='func_echo_all' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - esac - ;; - esac - ;; - - lynxos*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - m88k*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - mvs*) - case $cc_basename in - cxx*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' - wlarc= - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - fi - # Workaround some broken pre-1.5 toolchains - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' - ;; - - *nto* | *qnx*) - _LT_TAGVAR(ld_shlibs, $1)=yes - ;; - - openbsd* | bitrig*) - if test -f /usr/libexec/ld.so; then - _LT_TAGVAR(hardcode_direct, $1)=yes - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_direct_absolute, $1)=yes - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E' - _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' - fi - output_verbose_link_cmd=func_echo_all - else - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - - osf3* | osf4* | osf5*) - case $cc_basename in - KCC*) - # Kuck and Associates, Inc. (KAI) C++ Compiler - - # KCC will only create a shared library if the output file - # ends with ".so" (or ".sl" for HP-UX), so rename the library - # to its proper name (with version) after linking. - _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Archives containing C++ object files must be created using - # the KAI C++ compiler. - case $host in - osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; - *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; - esac - ;; - RCC*) - # Rational C++ 2.4.1 - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - cxx*) - case $host in - osf3*) - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - ;; - *) - _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' - _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ - echo "-hidden">> $lib.exp~ - $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ - $RM $lib.exp' - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - # - # There doesn't appear to be a way to prevent this compiler from - # explicitly linking system object files so we need to strip them - # from the output so that they don't get included in the library - # dependencies. - output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' - ;; - *) - if test yes,no = "$GXX,$with_gnu_ld"; then - _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*' - case $host in - osf3*) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' - ;; - esac - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=: - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - - else - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - fi - ;; - esac - ;; - - psos*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - sunos4*) - case $cc_basename in - CC*) - # Sun C++ 4.x - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - lcc*) - # Lucid - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - solaris*) - case $cc_basename in - CC* | sunCC*) - # Sun C++ 4.2, 5.x and Centerline C++ - _LT_TAGVAR(archive_cmds_need_lc,$1)=yes - _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' - _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - # The compiler driver will combine and reorder linker options, - # but understands '-z linker_flag'. - # Supported since Solaris 2.6 (maybe 2.5.1?) - _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' - ;; - esac - _LT_TAGVAR(link_all_deplibs, $1)=yes - - output_verbose_link_cmd='func_echo_all' - - # Archives containing C++ object files must be created using - # "CC -xar", where "CC" is the Sun C++ compiler. This is - # necessary to make sure instantiated templates are included - # in the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' - ;; - gcx*) - # Green Hills C++ Compiler - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' - - # The C++ compiler must be used to create the archive. - _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' - ;; - *) - # GNU C++ compiler with Solaris linker - if test yes,no = "$GXX,$with_gnu_ld"; then - _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs' - if $CC --version | $GREP -v '^2\.7' > /dev/null; then - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - else - # g++ 2.7 appears to require '-G' NOT '-shared' on this - # platform. - _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ - $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' - - # Commands to make compiler produce verbose output that lists - # what "hidden" libraries, object files and flags are used when - # linking a shared library. - output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' - fi - - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir' - case $host_os in - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; - *) - _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' - ;; - esac - fi - ;; - esac - ;; - - sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) - _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - sysv5* | sco3.2v5* | sco5v6*) - # Note: We CANNOT use -z defs as we might desire, because we do not - # link with -lc, and that would cause any symbols used from libc to - # always be unresolved, which means just about no library would - # ever link correctly. If we're not using GNU ld we use -z text - # though, which does catch some bad symbols but isn't as heavy-handed - # as -z defs. - _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text' - _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs' - _LT_TAGVAR(archive_cmds_need_lc, $1)=no - _LT_TAGVAR(hardcode_shlibpath_var, $1)=no - _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir' - _LT_TAGVAR(hardcode_libdir_separator, $1)=':' - _LT_TAGVAR(link_all_deplibs, $1)=yes - _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport' - runpath_var='LD_RUN_PATH' - - case $cc_basename in - CC*) - _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ - '"$_LT_TAGVAR(old_archive_cmds, $1)" - _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ - '"$_LT_TAGVAR(reload_cmds, $1)" - ;; - *) - _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' - ;; - esac - ;; - - tandem*) - case $cc_basename in - NCC*) - # NonStop-UX NCC 3.20 - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - ;; - - vxworks*) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - - *) - # FIXME: insert proper C++ library support - _LT_TAGVAR(ld_shlibs, $1)=no - ;; - esac - - AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) - test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no - - _LT_TAGVAR(GCC, $1)=$GXX - _LT_TAGVAR(LD, $1)=$LD - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_SYS_HIDDEN_LIBDEPS($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS - LDCXX=$LD - LD=$lt_save_LD - GCC=$lt_save_GCC - with_gnu_ld=$lt_save_with_gnu_ld - lt_cv_path_LDCXX=$lt_cv_path_LD - lt_cv_path_LD=$lt_save_path_LD - lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld - lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld -fi # test yes != "$_lt_caught_CXX_error" - -AC_LANG_POP -])# _LT_LANG_CXX_CONFIG - - -# _LT_FUNC_STRIPNAME_CNF -# ---------------------- -# func_stripname_cnf prefix suffix name -# strip PREFIX and SUFFIX off of NAME. -# PREFIX and SUFFIX must not contain globbing or regex special -# characters, hashes, percent signs, but SUFFIX may contain a leading -# dot (in which case that matches only a dot). -# -# This function is identical to the (non-XSI) version of func_stripname, -# except this one can be used by m4 code that may be executed by configure, -# rather than the libtool script. -m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl -AC_REQUIRE([_LT_DECL_SED]) -AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) -func_stripname_cnf () -{ - case @S|@2 in - .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;; - *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;; - esac -} # func_stripname_cnf -])# _LT_FUNC_STRIPNAME_CNF - - -# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) -# --------------------------------- -# Figure out "hidden" library dependencies from verbose -# compiler output when linking a shared library. -# Parse the compiler output and extract the necessary -# objects, libraries and library flags. -m4_defun([_LT_SYS_HIDDEN_LIBDEPS], -[m4_require([_LT_FILEUTILS_DEFAULTS])dnl -AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl -# Dependencies to place before and after the object being linked: -_LT_TAGVAR(predep_objects, $1)= -_LT_TAGVAR(postdep_objects, $1)= -_LT_TAGVAR(predeps, $1)= -_LT_TAGVAR(postdeps, $1)= -_LT_TAGVAR(compiler_lib_search_path, $1)= - -dnl we can't use the lt_simple_compile_test_code here, -dnl because it contains code intended for an executable, -dnl not a library. It's possible we should let each -dnl tag define a new lt_????_link_test_code variable, -dnl but it's only used here... -m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF -int a; -void foo (void) { a = 0; } -_LT_EOF -], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF -class Foo -{ -public: - Foo (void) { a = 0; } -private: - int a; -}; -_LT_EOF -], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF - subroutine foo - implicit none - integer*4 a - a=0 - return - end -_LT_EOF -], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF - subroutine foo - implicit none - integer a - a=0 - return - end -_LT_EOF -], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF -public class foo { - private int a; - public void bar (void) { - a = 0; - } -}; -_LT_EOF -], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF -package foo -func foo() { -} -_LT_EOF -]) - -_lt_libdeps_save_CFLAGS=$CFLAGS -case "$CC $CFLAGS " in #( -*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; -*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; -*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; -esac - -dnl Parse the compiler output and extract the necessary -dnl objects, libraries and library flags. -if AC_TRY_EVAL(ac_compile); then - # Parse the compiler output and extract the necessary - # objects, libraries and library flags. - - # Sentinel used to keep track of whether or not we are before - # the conftest object file. - pre_test_object_deps_done=no - - for p in `eval "$output_verbose_link_cmd"`; do - case $prev$p in - - -L* | -R* | -l*) - # Some compilers place space between "-{L,R}" and the path. - # Remove the space. - if test x-L = "$p" || - test x-R = "$p"; then - prev=$p - continue - fi - - # Expand the sysroot to ease extracting the directories later. - if test -z "$prev"; then - case $p in - -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; - -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; - -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; - esac - fi - case $p in - =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; - esac - if test no = "$pre_test_object_deps_done"; then - case $prev in - -L | -R) - # Internal compiler library paths should come after those - # provided the user. The postdeps already come after the - # user supplied libs so there is no need to process them. - if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then - _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p - else - _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p" - fi - ;; - # The "-l" case would never come before the object being - # linked, so don't bother handling this case. - esac - else - if test -z "$_LT_TAGVAR(postdeps, $1)"; then - _LT_TAGVAR(postdeps, $1)=$prev$p - else - _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p" - fi - fi - prev= - ;; - - *.lto.$objext) ;; # Ignore GCC LTO objects - *.$objext) - # This assumes that the test object file only shows up - # once in the compiler output. - if test "$p" = "conftest.$objext"; then - pre_test_object_deps_done=yes - continue - fi - - if test no = "$pre_test_object_deps_done"; then - if test -z "$_LT_TAGVAR(predep_objects, $1)"; then - _LT_TAGVAR(predep_objects, $1)=$p - else - _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" - fi - else - if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then - _LT_TAGVAR(postdep_objects, $1)=$p - else - _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" - fi - fi - ;; - - *) ;; # Ignore the rest. - - esac - done - - # Clean up. - rm -f a.out a.exe -else - echo "libtool.m4: error: problem compiling $1 test program" -fi - -$RM -f confest.$objext -CFLAGS=$_lt_libdeps_save_CFLAGS - -# PORTME: override above test on systems where it is broken -m4_if([$1], [CXX], -[case $host_os in -interix[[3-9]]*) - # Interix 3.5 installs completely hosed .la files for C++, so rather than - # hack all around it, let's just trust "g++" to DTRT. - _LT_TAGVAR(predep_objects,$1)= - _LT_TAGVAR(postdep_objects,$1)= - _LT_TAGVAR(postdeps,$1)= - ;; -esac -]) - -case " $_LT_TAGVAR(postdeps, $1) " in -*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; -esac - _LT_TAGVAR(compiler_lib_search_dirs, $1)= -if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then - _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'` -fi -_LT_TAGDECL([], [compiler_lib_search_dirs], [1], - [The directories searched by this compiler when creating a shared library]) -_LT_TAGDECL([], [predep_objects], [1], - [Dependencies to place before and after the objects being linked to - create a shared library]) -_LT_TAGDECL([], [postdep_objects], [1]) -_LT_TAGDECL([], [predeps], [1]) -_LT_TAGDECL([], [postdeps], [1]) -_LT_TAGDECL([], [compiler_lib_search_path], [1], - [The library search path used internally by the compiler when linking - a shared library]) -])# _LT_SYS_HIDDEN_LIBDEPS - - -# _LT_LANG_F77_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for a Fortran 77 compiler are -# suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_F77_CONFIG], -[AC_LANG_PUSH(Fortran 77) -if test -z "$F77" || test no = "$F77"; then - _lt_disable_F77=yes -fi - -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for f77 test sources. -ac_ext=f - -# Object file extension for compiled f77 test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the F77 compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test yes != "$_lt_disable_F77"; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="\ - subroutine t - return - end -" - - # Code to be used in simple link tests - lt_simple_link_test_code="\ - program t - end -" - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC=$CC - lt_save_GCC=$GCC - lt_save_CFLAGS=$CFLAGS - CC=${F77-"f77"} - CFLAGS=$FFLAGS - compiler=$CC - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - GCC=$G77 - if test -n "$compiler"; then - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test no = "$can_build_shared" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test yes = "$enable_shared" && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - aix[[4-9]]*) - if test ia64 != "$host_cpu"; then - case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in - yes,aix,yes) ;; # shared object as lib.so file only - yes,svr4,*) ;; # shared object as lib.so archive member only - yes,*) enable_static=no ;; # shared object in lib.a archive as well - esac - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test yes = "$enable_shared" || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_TAGVAR(GCC, $1)=$G77 - _LT_TAGVAR(LD, $1)=$LD - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - GCC=$lt_save_GCC - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS -fi # test yes != "$_lt_disable_F77" - -AC_LANG_POP -])# _LT_LANG_F77_CONFIG - - -# _LT_LANG_FC_CONFIG([TAG]) -# ------------------------- -# Ensure that the configuration variables for a Fortran compiler are -# suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_FC_CONFIG], -[AC_LANG_PUSH(Fortran) - -if test -z "$FC" || test no = "$FC"; then - _lt_disable_FC=yes -fi - -_LT_TAGVAR(archive_cmds_need_lc, $1)=no -_LT_TAGVAR(allow_undefined_flag, $1)= -_LT_TAGVAR(always_export_symbols, $1)=no -_LT_TAGVAR(archive_expsym_cmds, $1)= -_LT_TAGVAR(export_dynamic_flag_spec, $1)= -_LT_TAGVAR(hardcode_direct, $1)=no -_LT_TAGVAR(hardcode_direct_absolute, $1)=no -_LT_TAGVAR(hardcode_libdir_flag_spec, $1)= -_LT_TAGVAR(hardcode_libdir_separator, $1)= -_LT_TAGVAR(hardcode_minus_L, $1)=no -_LT_TAGVAR(hardcode_automatic, $1)=no -_LT_TAGVAR(inherit_rpath, $1)=no -_LT_TAGVAR(module_cmds, $1)= -_LT_TAGVAR(module_expsym_cmds, $1)= -_LT_TAGVAR(link_all_deplibs, $1)=unknown -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds -_LT_TAGVAR(no_undefined_flag, $1)= -_LT_TAGVAR(whole_archive_flag_spec, $1)= -_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no - -# Source file extension for fc test sources. -ac_ext=${ac_fc_srcext-f} - -# Object file extension for compiled fc test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# No sense in running all these tests if we already determined that -# the FC compiler isn't working. Some variables (like enable_shared) -# are currently assumed to apply to all compilers on this platform, -# and will be corrupted by setting them based on a non-working compiler. -if test yes != "$_lt_disable_FC"; then - # Code to be used in simple compile tests - lt_simple_compile_test_code="\ - subroutine t - return - end -" - - # Code to be used in simple link tests - lt_simple_link_test_code="\ - program t - end -" - - # ltmain only uses $CC for tagged configurations so make sure $CC is set. - _LT_TAG_COMPILER - - # save warnings/boilerplate of simple test code - _LT_COMPILER_BOILERPLATE - _LT_LINKER_BOILERPLATE - - # Allow CC to be a program name with arguments. - lt_save_CC=$CC - lt_save_GCC=$GCC - lt_save_CFLAGS=$CFLAGS - CC=${FC-"f95"} - CFLAGS=$FCFLAGS - compiler=$CC - GCC=$ac_cv_fc_compiler_gnu - - _LT_TAGVAR(compiler, $1)=$CC - _LT_CC_BASENAME([$compiler]) - - if test -n "$compiler"; then - AC_MSG_CHECKING([if libtool supports shared libraries]) - AC_MSG_RESULT([$can_build_shared]) - - AC_MSG_CHECKING([whether to build shared libraries]) - test no = "$can_build_shared" && enable_shared=no - - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test yes = "$enable_shared" && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' - fi - ;; - aix[[4-9]]*) - if test ia64 != "$host_cpu"; then - case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in - yes,aix,yes) ;; # shared object as lib.so file only - yes,svr4,*) ;; # shared object as lib.so archive member only - yes,*) enable_static=no ;; # shared object in lib.a archive as well - esac - fi - ;; - esac - AC_MSG_RESULT([$enable_shared]) - - AC_MSG_CHECKING([whether to build static libraries]) - # Make sure either enable_shared or enable_static is yes. - test yes = "$enable_shared" || enable_static=yes - AC_MSG_RESULT([$enable_static]) - - _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu - _LT_TAGVAR(LD, $1)=$LD - - ## CAVEAT EMPTOR: - ## There is no encapsulation within the following macros, do not change - ## the running order or otherwise move them around unless you know exactly - ## what you are doing... - _LT_SYS_HIDDEN_LIBDEPS($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_SYS_DYNAMIC_LINKER($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) - fi # test -n "$compiler" - - GCC=$lt_save_GCC - CC=$lt_save_CC - CFLAGS=$lt_save_CFLAGS -fi # test yes != "$_lt_disable_FC" - -AC_LANG_POP -])# _LT_LANG_FC_CONFIG - - -# _LT_LANG_GCJ_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for the GNU Java Compiler compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_GCJ_CONFIG], -[AC_REQUIRE([LT_PROG_GCJ])dnl -AC_LANG_SAVE - -# Source file extension for Java test sources. -ac_ext=java - -# Object file extension for compiled Java test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="class foo {}" - -# Code to be used in simple link tests -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC=yes -CC=${GCJ-"gcj"} -CFLAGS=$GCJFLAGS -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_TAGVAR(LD, $1)=$LD -_LT_CC_BASENAME([$compiler]) - -# GCJ did not exist at the time GCC didn't implicitly link libc in. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) -fi - -AC_LANG_RESTORE - -GCC=$lt_save_GCC -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_GCJ_CONFIG - - -# _LT_LANG_GO_CONFIG([TAG]) -# -------------------------- -# Ensure that the configuration variables for the GNU Go compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_GO_CONFIG], -[AC_REQUIRE([LT_PROG_GO])dnl -AC_LANG_SAVE - -# Source file extension for Go test sources. -ac_ext=go - -# Object file extension for compiled Go test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code="package main; func main() { }" - -# Code to be used in simple link tests -lt_simple_link_test_code='package main; func main() { }' - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC=yes -CC=${GOC-"gccgo"} -CFLAGS=$GOFLAGS -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_TAGVAR(LD, $1)=$LD -_LT_CC_BASENAME([$compiler]) - -# Go did not exist at the time GCC didn't implicitly link libc in. -_LT_TAGVAR(archive_cmds_need_lc, $1)=no - -_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds -_LT_TAGVAR(reload_flag, $1)=$reload_flag -_LT_TAGVAR(reload_cmds, $1)=$reload_cmds - -## CAVEAT EMPTOR: -## There is no encapsulation within the following macros, do not change -## the running order or otherwise move them around unless you know exactly -## what you are doing... -if test -n "$compiler"; then - _LT_COMPILER_NO_RTTI($1) - _LT_COMPILER_PIC($1) - _LT_COMPILER_C_O($1) - _LT_COMPILER_FILE_LOCKS($1) - _LT_LINKER_SHLIBS($1) - _LT_LINKER_HARDCODE_LIBPATH($1) - - _LT_CONFIG($1) -fi - -AC_LANG_RESTORE - -GCC=$lt_save_GCC -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_GO_CONFIG - - -# _LT_LANG_RC_CONFIG([TAG]) -# ------------------------- -# Ensure that the configuration variables for the Windows resource compiler -# are suitably defined. These variables are subsequently used by _LT_CONFIG -# to write the compiler configuration to 'libtool'. -m4_defun([_LT_LANG_RC_CONFIG], -[AC_REQUIRE([LT_PROG_RC])dnl -AC_LANG_SAVE - -# Source file extension for RC test sources. -ac_ext=rc - -# Object file extension for compiled RC test sources. -objext=o -_LT_TAGVAR(objext, $1)=$objext - -# Code to be used in simple compile tests -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' - -# Code to be used in simple link tests -lt_simple_link_test_code=$lt_simple_compile_test_code - -# ltmain only uses $CC for tagged configurations so make sure $CC is set. -_LT_TAG_COMPILER - -# save warnings/boilerplate of simple test code -_LT_COMPILER_BOILERPLATE -_LT_LINKER_BOILERPLATE - -# Allow CC to be a program name with arguments. -lt_save_CC=$CC -lt_save_CFLAGS=$CFLAGS -lt_save_GCC=$GCC -GCC= -CC=${RC-"windres"} -CFLAGS= -compiler=$CC -_LT_TAGVAR(compiler, $1)=$CC -_LT_CC_BASENAME([$compiler]) -_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes - -if test -n "$compiler"; then - : - _LT_CONFIG($1) -fi - -GCC=$lt_save_GCC -AC_LANG_RESTORE -CC=$lt_save_CC -CFLAGS=$lt_save_CFLAGS -])# _LT_LANG_RC_CONFIG - - -# LT_PROG_GCJ -# ----------- -AC_DEFUN([LT_PROG_GCJ], -[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], - [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], - [AC_CHECK_TOOL(GCJ, gcj,) - test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2" - AC_SUBST(GCJFLAGS)])])[]dnl -]) - -# Old name: -AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_GCJ], []) - - -# LT_PROG_GO -# ---------- -AC_DEFUN([LT_PROG_GO], -[AC_CHECK_TOOL(GOC, gccgo,) -]) - - -# LT_PROG_RC -# ---------- -AC_DEFUN([LT_PROG_RC], -[AC_CHECK_TOOL(RC, windres,) -]) - -# Old name: -AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_RC], []) - - -# _LT_DECL_EGREP -# -------------- -# If we don't have a new enough Autoconf to choose the best grep -# available, choose the one first in the user's PATH. -m4_defun([_LT_DECL_EGREP], -[AC_REQUIRE([AC_PROG_EGREP])dnl -AC_REQUIRE([AC_PROG_FGREP])dnl -test -z "$GREP" && GREP=grep -_LT_DECL([], [GREP], [1], [A grep program that handles long lines]) -_LT_DECL([], [EGREP], [1], [An ERE matcher]) -_LT_DECL([], [FGREP], [1], [A literal string matcher]) -dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too -AC_SUBST([GREP]) -]) - - -# _LT_DECL_OBJDUMP -# -------------- -# If we don't have a new enough Autoconf to choose the best objdump -# available, choose the one first in the user's PATH. -m4_defun([_LT_DECL_OBJDUMP], -[AC_CHECK_TOOL(OBJDUMP, objdump, false) -test -z "$OBJDUMP" && OBJDUMP=objdump -_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) -AC_SUBST([OBJDUMP]) -]) - -# _LT_DECL_DLLTOOL -# ---------------- -# Ensure DLLTOOL variable is set. -m4_defun([_LT_DECL_DLLTOOL], -[AC_CHECK_TOOL(DLLTOOL, dlltool, false) -test -z "$DLLTOOL" && DLLTOOL=dlltool -_LT_DECL([], [DLLTOOL], [1], [DLL creation program]) -AC_SUBST([DLLTOOL]) -]) - -# _LT_DECL_FILECMD -# ---------------- -# Check for a file(cmd) program that can be used to detect file type and magic -m4_defun([_LT_DECL_FILECMD], -[AC_CHECK_TOOL([FILECMD], [file], [:]) -_LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) -])# _LD_DECL_FILECMD - -# _LT_DECL_SED -# ------------ -# Check for a fully-functional sed program, that truncates -# as few characters as possible. Prefer GNU sed if found. -m4_defun([_LT_DECL_SED], -[AC_PROG_SED -test -z "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" -_LT_DECL([], [SED], [1], [A sed program that does not truncate output]) -_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], - [Sed that helps us avoid accidentally triggering echo(1) options like -n]) -])# _LT_DECL_SED - -m4_ifndef([AC_PROG_SED], [ -############################################################ -# NOTE: This macro has been submitted for inclusion into # -# GNU Autoconf as AC_PROG_SED. When it is available in # -# a released version of Autoconf we should remove this # -# macro and use it instead. # -############################################################ - -m4_defun([AC_PROG_SED], -[AC_MSG_CHECKING([for a sed that does not truncate output]) -AC_CACHE_VAL(lt_cv_path_SED, -[# Loop through the user's path and test for sed and gsed. -# Then use that list of sed's as ones to test for truncation. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR -for as_dir in $PATH -do - IFS=$as_save_IFS - test -z "$as_dir" && as_dir=. - for lt_ac_prog in sed gsed; do - for ac_exec_ext in '' $ac_executable_extensions; do - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" - fi - done - done -done -IFS=$as_save_IFS -lt_ac_max=0 -lt_ac_count=0 -# Add /usr/xpg4/bin/sed as it is typically found on Solaris -# along with /bin/sed that truncates output. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do - test ! -f "$lt_ac_sed" && continue - cat /dev/null > conftest.in - lt_ac_count=0 - echo $ECHO_N "0123456789$ECHO_C" >conftest.in - # Check for GNU sed and select it if it is found. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then - lt_cv_path_SED=$lt_ac_sed - break - fi - while true; do - cat conftest.in conftest.in >conftest.tmp - mv conftest.tmp conftest.in - cp conftest.in conftest.nl - echo >>conftest.nl - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break - cmp -s conftest.out conftest.nl || break - # 10000 chars as input seems more than enough - test 10 -lt "$lt_ac_count" && break - lt_ac_count=`expr $lt_ac_count + 1` - if test "$lt_ac_count" -gt "$lt_ac_max"; then - lt_ac_max=$lt_ac_count - lt_cv_path_SED=$lt_ac_sed - fi - done -done -]) -SED=$lt_cv_path_SED -AC_SUBST([SED]) -AC_MSG_RESULT([$SED]) -])#AC_PROG_SED -])#m4_ifndef - -# Old name: -AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([LT_AC_PROG_SED], []) - - -# _LT_CHECK_SHELL_FEATURES -# ------------------------ -# Find out whether the shell is Bourne or XSI compatible, -# or has some other useful features. -m4_defun([_LT_CHECK_SHELL_FEATURES], -[if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - lt_unset=unset -else - lt_unset=false -fi -_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl - -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - lt_SP2NL='tr \040 \012' - lt_NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - lt_SP2NL='tr \100 \n' - lt_NL2SP='tr \r\n \100\100' - ;; -esac -_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl -_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl -])# _LT_CHECK_SHELL_FEATURES - - -# _LT_PATH_CONVERSION_FUNCTIONS -# ----------------------------- -# Determine what file name conversion functions should be used by -# func_to_host_file (and, implicitly, by func_to_host_path). These are needed -# for certain cross-compile configurations and native mingw. -m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -AC_MSG_CHECKING([how to convert $build file names to $host format]) -AC_CACHE_VAL(lt_cv_to_host_file_cmd, -[case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 - ;; - esac - ;; - *-*-cygwin* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin - ;; - esac - ;; - * ) # unhandled hosts (and "normal" native builds) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; -esac -]) -to_host_file_cmd=$lt_cv_to_host_file_cmd -AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) -_LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], - [0], [convert $build file names to $host format])dnl - -AC_MSG_CHECKING([how to convert $build file names to toolchain format]) -AC_CACHE_VAL(lt_cv_to_tool_file_cmd, -[#assume ordinary cross tools, or native build. -lt_cv_to_tool_file_cmd=func_convert_file_noop -case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 - ;; - esac - ;; -esac -]) -to_tool_file_cmd=$lt_cv_to_tool_file_cmd -AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) -_LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], - [0], [convert $build files to toolchain format])dnl -])# _LT_PATH_CONVERSION_FUNCTIONS diff --git a/recipes/wip/files/mc/source/m4/longlong.m4 b/recipes/wip/files/mc/source/m4/longlong.m4 deleted file mode 100644 index 3af6ab5aa1..0000000000 --- a/recipes/wip/files/mc/source/m4/longlong.m4 +++ /dev/null @@ -1,113 +0,0 @@ -# longlong.m4 serial 17 -dnl Copyright (C) 1999-2007, 2009-2013 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Paul Eggert. - -# Define HAVE_LONG_LONG_INT if 'long long int' works. -# This fixes a bug in Autoconf 2.61, and can be faster -# than what's in Autoconf 2.62 through 2.68. - -# Note: If the type 'long long int' exists but is only 32 bits large -# (as on some very old compilers), HAVE_LONG_LONG_INT will not be -# defined. In this case you can treat 'long long int' like 'long int'. - -AC_DEFUN([AC_TYPE_LONG_LONG_INT], -[ - AC_REQUIRE([AC_TYPE_UNSIGNED_LONG_LONG_INT]) - AC_CACHE_CHECK([for long long int], [ac_cv_type_long_long_int], - [ac_cv_type_long_long_int=yes - if test "x${ac_cv_prog_cc_c99-no}" = xno; then - ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int - if test $ac_cv_type_long_long_int = yes; then - dnl Catch a bug in Tandem NonStop Kernel (OSS) cc -O circa 2004. - dnl If cross compiling, assume the bug is not important, since - dnl nobody cross compiles for this platform as far as we know. - AC_RUN_IFELSE( - [AC_LANG_PROGRAM( - [[@%:@include - @%:@ifndef LLONG_MAX - @%:@ define HALF \ - (1LL << (sizeof (long long int) * CHAR_BIT - 2)) - @%:@ define LLONG_MAX (HALF - 1 + HALF) - @%:@endif]], - [[long long int n = 1; - int i; - for (i = 0; ; i++) - { - long long int m = n << i; - if (m >> i != n) - return 1; - if (LLONG_MAX / 2 < m) - break; - } - return 0;]])], - [], - [ac_cv_type_long_long_int=no], - [:]) - fi - fi]) - if test $ac_cv_type_long_long_int = yes; then - AC_DEFINE([HAVE_LONG_LONG_INT], [1], - [Define to 1 if the system has the type 'long long int'.]) - fi -]) - -# Define HAVE_UNSIGNED_LONG_LONG_INT if 'unsigned long long int' works. -# This fixes a bug in Autoconf 2.61, and can be faster -# than what's in Autoconf 2.62 through 2.68. - -# Note: If the type 'unsigned long long int' exists but is only 32 bits -# large (as on some very old compilers), AC_TYPE_UNSIGNED_LONG_LONG_INT -# will not be defined. In this case you can treat 'unsigned long long int' -# like 'unsigned long int'. - -AC_DEFUN([AC_TYPE_UNSIGNED_LONG_LONG_INT], -[ - AC_CACHE_CHECK([for unsigned long long int], - [ac_cv_type_unsigned_long_long_int], - [ac_cv_type_unsigned_long_long_int=yes - if test "x${ac_cv_prog_cc_c99-no}" = xno; then - AC_LINK_IFELSE( - [_AC_TYPE_LONG_LONG_SNIPPET], - [], - [ac_cv_type_unsigned_long_long_int=no]) - fi]) - if test $ac_cv_type_unsigned_long_long_int = yes; then - AC_DEFINE([HAVE_UNSIGNED_LONG_LONG_INT], [1], - [Define to 1 if the system has the type 'unsigned long long int'.]) - fi -]) - -# Expands to a C program that can be used to test for simultaneous support -# of 'long long' and 'unsigned long long'. We don't want to say that -# 'long long' is available if 'unsigned long long' is not, or vice versa, -# because too many programs rely on the symmetry between signed and unsigned -# integer types (excluding 'bool'). -AC_DEFUN([_AC_TYPE_LONG_LONG_SNIPPET], -[ - AC_LANG_PROGRAM( - [[/* For now, do not test the preprocessor; as of 2007 there are too many - implementations with broken preprocessors. Perhaps this can - be revisited in 2012. In the meantime, code should not expect - #if to work with literals wider than 32 bits. */ - /* Test literals. */ - long long int ll = 9223372036854775807ll; - long long int nll = -9223372036854775807LL; - unsigned long long int ull = 18446744073709551615ULL; - /* Test constant expressions. */ - typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) - ? 1 : -1)]; - typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 - ? 1 : -1)]; - int i = 63;]], - [[/* Test availability of runtime routines for shift and division. */ - long long int llmax = 9223372036854775807ll; - unsigned long long int ullmax = 18446744073709551615ull; - return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) - | (llmax / ll) | (llmax % ll) - | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) - | (ullmax / ull) | (ullmax % ull));]]) -]) diff --git a/recipes/wip/files/mc/source/m4/ltoptions.m4 b/recipes/wip/files/mc/source/m4/ltoptions.m4 deleted file mode 100644 index b0b5e9c212..0000000000 --- a/recipes/wip/files/mc/source/m4/ltoptions.m4 +++ /dev/null @@ -1,437 +0,0 @@ -# Helper functions for option handling. -*- Autoconf -*- -# -# Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free -# Software Foundation, Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 8 ltoptions.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) - - -# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) -# ------------------------------------------ -m4_define([_LT_MANGLE_OPTION], -[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) - - -# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) -# --------------------------------------- -# Set option OPTION-NAME for macro MACRO-NAME, and if there is a -# matching handler defined, dispatch to it. Other OPTION-NAMEs are -# saved as a flag. -m4_define([_LT_SET_OPTION], -[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl -m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), - _LT_MANGLE_DEFUN([$1], [$2]), - [m4_warning([Unknown $1 option '$2'])])[]dnl -]) - - -# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) -# ------------------------------------------------------------ -# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. -m4_define([_LT_IF_OPTION], -[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) - - -# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) -# ------------------------------------------------------- -# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME -# are set. -m4_define([_LT_UNLESS_OPTIONS], -[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), - [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), - [m4_define([$0_found])])])[]dnl -m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 -])[]dnl -]) - - -# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) -# ---------------------------------------- -# OPTION-LIST is a space-separated list of Libtool options associated -# with MACRO-NAME. If any OPTION has a matching handler declared with -# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about -# the unknown option and exit. -m4_defun([_LT_SET_OPTIONS], -[# Set options -m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), - [_LT_SET_OPTION([$1], _LT_Option)]) - -m4_if([$1],[LT_INIT],[ - dnl - dnl Simply set some default values (i.e off) if boolean options were not - dnl specified: - _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no - ]) - _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no - ]) - dnl - dnl If no reference was made to various pairs of opposing options, then - dnl we run the default mode handler for the pair. For example, if neither - dnl 'shared' nor 'disable-shared' was passed, we enable building of shared - dnl archives by default: - _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) - _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) - _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) - _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], - [_LT_ENABLE_FAST_INSTALL]) - _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4], - [_LT_WITH_AIX_SONAME([aix])]) - ]) -])# _LT_SET_OPTIONS - - -## --------------------------------- ## -## Macros to handle LT_INIT options. ## -## --------------------------------- ## - -# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) -# ----------------------------------------- -m4_define([_LT_MANGLE_DEFUN], -[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) - - -# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) -# ----------------------------------------------- -m4_define([LT_OPTION_DEFINE], -[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl -])# LT_OPTION_DEFINE - - -# dlopen -# ------ -LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes -]) - -AU_DEFUN([AC_LIBTOOL_DLOPEN], -[_LT_SET_OPTION([LT_INIT], [dlopen]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the 'dlopen' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) - - -# win32-dll -# --------- -# Declare package support for building win32 dll's. -LT_OPTION_DEFINE([LT_INIT], [win32-dll], -[enable_win32_dll=yes - -case $host in -*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) - AC_CHECK_TOOL(AS, as, false) - AC_CHECK_TOOL(DLLTOOL, dlltool, false) - AC_CHECK_TOOL(OBJDUMP, objdump, false) - ;; -esac - -test -z "$AS" && AS=as -_LT_DECL([], [AS], [1], [Assembler program])dnl - -test -z "$DLLTOOL" && DLLTOOL=dlltool -_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl - -test -z "$OBJDUMP" && OBJDUMP=objdump -_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl -])# win32-dll - -AU_DEFUN([AC_LIBTOOL_WIN32_DLL], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -_LT_SET_OPTION([LT_INIT], [win32-dll]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the 'win32-dll' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) - - -# _LT_ENABLE_SHARED([DEFAULT]) -# ---------------------------- -# implement the --enable-shared flag, and supports the 'shared' and -# 'disable-shared' LT_INIT options. -# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. -m4_define([_LT_ENABLE_SHARED], -[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([shared], - [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], - [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_shared=yes ;; - no) enable_shared=no ;; - *) - enable_shared=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_shared=yes - fi - done - IFS=$lt_save_ifs - ;; - esac], - [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) - - _LT_DECL([build_libtool_libs], [enable_shared], [0], - [Whether or not to build shared libraries]) -])# _LT_ENABLE_SHARED - -LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) - -# Old names: -AC_DEFUN([AC_ENABLE_SHARED], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) -]) - -AC_DEFUN([AC_DISABLE_SHARED], -[_LT_SET_OPTION([LT_INIT], [disable-shared]) -]) - -AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) -AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_ENABLE_SHARED], []) -dnl AC_DEFUN([AM_DISABLE_SHARED], []) - - - -# _LT_ENABLE_STATIC([DEFAULT]) -# ---------------------------- -# implement the --enable-static flag, and support the 'static' and -# 'disable-static' LT_INIT options. -# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. -m4_define([_LT_ENABLE_STATIC], -[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([static], - [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], - [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_static=yes ;; - no) enable_static=no ;; - *) - enable_static=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_static=yes - fi - done - IFS=$lt_save_ifs - ;; - esac], - [enable_static=]_LT_ENABLE_STATIC_DEFAULT) - - _LT_DECL([build_old_libs], [enable_static], [0], - [Whether or not to build static libraries]) -])# _LT_ENABLE_STATIC - -LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) - -# Old names: -AC_DEFUN([AC_ENABLE_STATIC], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) -]) - -AC_DEFUN([AC_DISABLE_STATIC], -[_LT_SET_OPTION([LT_INIT], [disable-static]) -]) - -AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) -AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AM_ENABLE_STATIC], []) -dnl AC_DEFUN([AM_DISABLE_STATIC], []) - - - -# _LT_ENABLE_FAST_INSTALL([DEFAULT]) -# ---------------------------------- -# implement the --enable-fast-install flag, and support the 'fast-install' -# and 'disable-fast-install' LT_INIT options. -# DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'. -m4_define([_LT_ENABLE_FAST_INSTALL], -[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl -AC_ARG_ENABLE([fast-install], - [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], - [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], - [p=${PACKAGE-default} - case $enableval in - yes) enable_fast_install=yes ;; - no) enable_fast_install=no ;; - *) - enable_fast_install=no - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for pkg in $enableval; do - IFS=$lt_save_ifs - if test "X$pkg" = "X$p"; then - enable_fast_install=yes - fi - done - IFS=$lt_save_ifs - ;; - esac], - [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) - -_LT_DECL([fast_install], [enable_fast_install], [0], - [Whether or not to optimize for fast installation])dnl -])# _LT_ENABLE_FAST_INSTALL - -LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) -LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) - -# Old names: -AU_DEFUN([AC_ENABLE_FAST_INSTALL], -[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you put -the 'fast-install' option into LT_INIT's first parameter.]) -]) - -AU_DEFUN([AC_DISABLE_FAST_INSTALL], -[_LT_SET_OPTION([LT_INIT], [disable-fast-install]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you put -the 'disable-fast-install' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) -dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) - - -# _LT_WITH_AIX_SONAME([DEFAULT]) -# ---------------------------------- -# implement the --with-aix-soname flag, and support the `aix-soname=aix' -# and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT -# is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'. -m4_define([_LT_WITH_AIX_SONAME], -[m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl -shared_archive_member_spec= -case $host,$enable_shared in -power*-*-aix[[5-9]]*,yes) - AC_MSG_CHECKING([which variant of shared library versioning to provide]) - AC_ARG_WITH([aix-soname], - [AS_HELP_STRING([--with-aix-soname=aix|svr4|both], - [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])], - [case $withval in - aix|svr4|both) - ;; - *) - AC_MSG_ERROR([Unknown argument to --with-aix-soname]) - ;; - esac - lt_cv_with_aix_soname=$with_aix_soname], - [AC_CACHE_VAL([lt_cv_with_aix_soname], - [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT) - with_aix_soname=$lt_cv_with_aix_soname]) - AC_MSG_RESULT([$with_aix_soname]) - if test aix != "$with_aix_soname"; then - # For the AIX way of multilib, we name the shared archive member - # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', - # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. - # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, - # the AIX toolchain works better with OBJECT_MODE set (default 32). - if test 64 = "${OBJECT_MODE-32}"; then - shared_archive_member_spec=shr_64 - else - shared_archive_member_spec=shr - fi - fi - ;; -*) - with_aix_soname=aix - ;; -esac - -_LT_DECL([], [shared_archive_member_spec], [0], - [Shared archive member basename, for filename based shared library versioning on AIX])dnl -])# _LT_WITH_AIX_SONAME - -LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])]) -LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])]) -LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])]) - - -# _LT_WITH_PIC([MODE]) -# -------------------- -# implement the --with-pic flag, and support the 'pic-only' and 'no-pic' -# LT_INIT options. -# MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'. -m4_define([_LT_WITH_PIC], -[AC_ARG_WITH([pic], - [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@], - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], - [lt_p=${PACKAGE-default} - case $withval in - yes|no) pic_mode=$withval ;; - *) - pic_mode=default - # Look at the argument we got. We use all the common list separators. - lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, - for lt_pkg in $withval; do - IFS=$lt_save_ifs - if test "X$lt_pkg" = "X$lt_p"; then - pic_mode=yes - fi - done - IFS=$lt_save_ifs - ;; - esac], - [pic_mode=m4_default([$1], [default])]) - -_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl -])# _LT_WITH_PIC - -LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) -LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) - -# Old name: -AU_DEFUN([AC_LIBTOOL_PICMODE], -[_LT_SET_OPTION([LT_INIT], [pic-only]) -AC_DIAGNOSE([obsolete], -[$0: Remove this warning and the call to _LT_SET_OPTION when you -put the 'pic-only' option into LT_INIT's first parameter.]) -]) - -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) - -## ----------------- ## -## LTDL_INIT Options ## -## ----------------- ## - -m4_define([_LTDL_MODE], []) -LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], - [m4_define([_LTDL_MODE], [nonrecursive])]) -LT_OPTION_DEFINE([LTDL_INIT], [recursive], - [m4_define([_LTDL_MODE], [recursive])]) -LT_OPTION_DEFINE([LTDL_INIT], [subproject], - [m4_define([_LTDL_MODE], [subproject])]) - -m4_define([_LTDL_TYPE], []) -LT_OPTION_DEFINE([LTDL_INIT], [installable], - [m4_define([_LTDL_TYPE], [installable])]) -LT_OPTION_DEFINE([LTDL_INIT], [convenience], - [m4_define([_LTDL_TYPE], [convenience])]) diff --git a/recipes/wip/files/mc/source/m4/ltsugar.m4 b/recipes/wip/files/mc/source/m4/ltsugar.m4 deleted file mode 100644 index 902508bd93..0000000000 --- a/recipes/wip/files/mc/source/m4/ltsugar.m4 +++ /dev/null @@ -1,124 +0,0 @@ -# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- -# -# Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software -# Foundation, Inc. -# Written by Gary V. Vaughan, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 6 ltsugar.m4 - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) - - -# lt_join(SEP, ARG1, [ARG2...]) -# ----------------------------- -# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their -# associated separator. -# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier -# versions in m4sugar had bugs. -m4_define([lt_join], -[m4_if([$#], [1], [], - [$#], [2], [[$2]], - [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) -m4_define([_lt_join], -[m4_if([$#$2], [2], [], - [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) - - -# lt_car(LIST) -# lt_cdr(LIST) -# ------------ -# Manipulate m4 lists. -# These macros are necessary as long as will still need to support -# Autoconf-2.59, which quotes differently. -m4_define([lt_car], [[$1]]) -m4_define([lt_cdr], -[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], - [$#], 1, [], - [m4_dquote(m4_shift($@))])]) -m4_define([lt_unquote], $1) - - -# lt_append(MACRO-NAME, STRING, [SEPARATOR]) -# ------------------------------------------ -# Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'. -# Note that neither SEPARATOR nor STRING are expanded; they are appended -# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). -# No SEPARATOR is output if MACRO-NAME was previously undefined (different -# than defined and empty). -# -# This macro is needed until we can rely on Autoconf 2.62, since earlier -# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. -m4_define([lt_append], -[m4_define([$1], - m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) - - - -# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) -# ---------------------------------------------------------- -# Produce a SEP delimited list of all paired combinations of elements of -# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list -# has the form PREFIXmINFIXSUFFIXn. -# Needed until we can rely on m4_combine added in Autoconf 2.62. -m4_define([lt_combine], -[m4_if(m4_eval([$# > 3]), [1], - [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl -[[m4_foreach([_Lt_prefix], [$2], - [m4_foreach([_Lt_suffix], - ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, - [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) - - -# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) -# ----------------------------------------------------------------------- -# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited -# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. -m4_define([lt_if_append_uniq], -[m4_ifdef([$1], - [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], - [lt_append([$1], [$2], [$3])$4], - [$5])], - [lt_append([$1], [$2], [$3])$4])]) - - -# lt_dict_add(DICT, KEY, VALUE) -# ----------------------------- -m4_define([lt_dict_add], -[m4_define([$1($2)], [$3])]) - - -# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) -# -------------------------------------------- -m4_define([lt_dict_add_subkey], -[m4_define([$1($2:$3)], [$4])]) - - -# lt_dict_fetch(DICT, KEY, [SUBKEY]) -# ---------------------------------- -m4_define([lt_dict_fetch], -[m4_ifval([$3], - m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), - m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) - - -# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) -# ----------------------------------------------------------------- -m4_define([lt_if_dict_fetch], -[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], - [$5], - [$6])]) - - -# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) -# -------------------------------------------------------------- -m4_define([lt_dict_filter], -[m4_if([$5], [], [], - [lt_join(m4_quote(m4_default([$4], [[, ]])), - lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), - [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl -]) diff --git a/recipes/wip/files/mc/source/m4/ltversion.m4 b/recipes/wip/files/mc/source/m4/ltversion.m4 deleted file mode 100644 index b155d0acec..0000000000 --- a/recipes/wip/files/mc/source/m4/ltversion.m4 +++ /dev/null @@ -1,24 +0,0 @@ -# ltversion.m4 -- version numbers -*- Autoconf -*- -# -# Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation, -# Inc. -# Written by Scott James Remnant, 2004 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# @configure_input@ - -# serial 4245 ltversion.m4 -# This file is part of GNU Libtool - -m4_define([LT_PACKAGE_VERSION], [2.4.7]) -m4_define([LT_PACKAGE_REVISION], [2.4.7]) - -AC_DEFUN([LTVERSION_VERSION], -[macro_version='2.4.7' -macro_revision='2.4.7' -_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) -_LT_DECL(, macro_revision, 0) -]) diff --git a/recipes/wip/files/mc/source/m4/lt~obsolete.m4 b/recipes/wip/files/mc/source/m4/lt~obsolete.m4 deleted file mode 100644 index 0f7a8759da..0000000000 --- a/recipes/wip/files/mc/source/m4/lt~obsolete.m4 +++ /dev/null @@ -1,99 +0,0 @@ -# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- -# -# Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free -# Software Foundation, Inc. -# Written by Scott James Remnant, 2004. -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -# serial 5 lt~obsolete.m4 - -# These exist entirely to fool aclocal when bootstrapping libtool. -# -# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN), -# which have later been changed to m4_define as they aren't part of the -# exported API, or moved to Autoconf or Automake where they belong. -# -# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN -# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us -# using a macro with the same name in our local m4/libtool.m4 it'll -# pull the old libtool.m4 in (it doesn't see our shiny new m4_define -# and doesn't know about Autoconf macros at all.) -# -# So we provide this file, which has a silly filename so it's always -# included after everything else. This provides aclocal with the -# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything -# because those macros already exist, or will be overwritten later. -# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. -# -# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. -# Yes, that means every name once taken will need to remain here until -# we give up compatibility with versions before 1.7, at which point -# we need to keep only those names which we still refer to. - -# This is to help aclocal find these macros, as it can't see m4_define. -AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) - -m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) -m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) -m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) -m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) -m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) -m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) -m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) -m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) -m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) -m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) -m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) -m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) -m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) -m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) -m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) -m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) -m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) -m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) -m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) -m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) -m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) -m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) -m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) -m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) -m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) -m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) -m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) -m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) -m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) -m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) -m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) -m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) -m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) -m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) -m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) -m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) -m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) -m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) -m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) -m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) -m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) -m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) -m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) -m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) -m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) -m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) -m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) -m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) -m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) -m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) -m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) -m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) -m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) -m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) -m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) -m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) diff --git a/recipes/wip/files/mc/source/m4/nls.m4 b/recipes/wip/files/mc/source/m4/nls.m4 deleted file mode 100644 index 8f8a147bec..0000000000 --- a/recipes/wip/files/mc/source/m4/nls.m4 +++ /dev/null @@ -1,32 +0,0 @@ -# nls.m4 serial 5 (gettext-0.18) -dnl Copyright (C) 1995-2003, 2005-2006, 2008-2013 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]) -]) diff --git a/recipes/wip/files/mc/source/m4/po.m4 b/recipes/wip/files/mc/source/m4/po.m4 deleted file mode 100644 index f395723435..0000000000 --- a/recipes/wip/files/mc/source/m4/po.m4 +++ /dev/null @@ -1,452 +0,0 @@ -# po.m4 serial 20 (gettext-0.18.2) -dnl Copyright (C) 1995-2013 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.60]) - -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([AC_PROG_MKDIR_P])dnl - 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" - gt_tab=`printf '\t'` - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/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 assignment 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 assignment 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" - tab=`printf '\t'` - 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 - # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which - # contains only /bin. Note that ksh looks also at the FPATH variable, - # so we have to set that as well for the test. - 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 - -# 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 -]) diff --git a/recipes/wip/files/mc/source/mc-version.h b/recipes/wip/files/mc/source/mc-version.h deleted file mode 100644 index a1bde9d18c..0000000000 --- a/recipes/wip/files/mc/source/mc-version.h +++ /dev/null @@ -1,4 +0,0 @@ -#ifndef MC_CURRENT_VERSION -/* This is an autogenerated file. Don't edit! */ -#define MC_CURRENT_VERSION "4.8.33" -#endif diff --git a/recipes/wip/files/mc/source/misc/Makefile.am b/recipes/wip/files/mc/source/misc/Makefile.am deleted file mode 100644 index 7c6e467c29..0000000000 --- a/recipes/wip/files/mc/source/misc/Makefile.am +++ /dev/null @@ -1,63 +0,0 @@ -## Process this file with automake to create Makefile.in. - -SUBDIRS = ext.d macros.d skins syntax - -LIBFILES_OUT = mc.ext.ini - -noinst_DATA = xterm.ad - -PKGDATA_IN = mc.charsets.in - -PKGDATA_OUT = -if CHARSET -PKGDATA_OUT += mc.charsets -endif - -dist_pkgdata_DATA = \ - mc.lib - -pkgdata_DATA = \ - $(PKGDATA_OUT) - -SCRIPTS_IN = \ - mc.menu.in \ - mcedit.menu.in - -SCRIPTS_OUT = \ - mc.menu \ - mcedit.menu - -LIBFILES_CONST = \ - filehighlight.ini \ - mc.default.keymap \ - mc.emacs.keymap \ - mc.vim.keymap - - -LIBFILES_SCRIPT = \ - edit.indent.rc - -CLEANFILES = $(SCRIPTS_OUT) $(PKGDATA_OUT) - -cfgdir = $(sysconfdir)/@PACKAGE@ -cfg_DATA = \ - $(LIBFILES_CONST) \ - $(SCRIPTS_OUT) \ - $(LIBFILES_OUT) - -cfg_SCRIPTS = \ - $(LIBFILES_SCRIPT) - -# Files processed by configure don't need to be here -EXTRA_DIST = \ - $(LIBFILES_CONST) \ - $(LIBFILES_SCRIPT) \ - $(SCRIPTS_IN) \ - $(noinst_DATA) \ - $(PKGDATA_IN) - -install-data-hook: - cd $(DESTDIR)$(cfgdir) && rm -f mc.keymap && $(LN_S) mc.default.keymap mc.keymap - -uninstall-hook: - cd $(DESTDIR)$(cfgdir) && rm -f mc.keymap diff --git a/recipes/wip/files/mc/source/misc/Makefile.in b/recipes/wip/files/mc/source/misc/Makefile.in deleted file mode 100644 index c76f1a1252..0000000000 --- a/recipes/wip/files/mc/source/misc/Makefile.in +++ /dev/null @@ -1,970 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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@ -@CHARSET_TRUE@am__append_1 = mc.charsets -subdir = misc -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(dist_pkgdata_DATA) \ - $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = mc.charsets mc.menu mcedit.menu mc.ext.ini -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(cfgdir)" "$(DESTDIR)$(cfgdir)" \ - "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(pkgdatadir)" -SCRIPTS = $(cfg_SCRIPTS) -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 -DATA = $(cfg_DATA) $(dist_pkgdata_DATA) $(noinst_DATA) $(pkgdata_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 \ - distdir distdir-am -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)` -DIST_SUBDIRS = $(SUBDIRS) -am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/mc.charsets.in \ - $(srcdir)/mc.ext.ini.in $(srcdir)/mc.menu.in \ - $(srcdir)/mcedit.menu.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -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" -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -sbindir = @sbindir@ -sharedstatedir = @sharedstatedir@ -srcdir = @srcdir@ -sysconfdir = @sysconfdir@ -target_alias = @target_alias@ -top_build_prefix = @top_build_prefix@ -top_builddir = @top_builddir@ -top_srcdir = @top_srcdir@ -SUBDIRS = ext.d macros.d skins syntax -LIBFILES_OUT = mc.ext.ini -noinst_DATA = xterm.ad -PKGDATA_IN = mc.charsets.in -PKGDATA_OUT = $(am__append_1) -dist_pkgdata_DATA = \ - mc.lib - -pkgdata_DATA = \ - $(PKGDATA_OUT) - -SCRIPTS_IN = \ - mc.menu.in \ - mcedit.menu.in - -SCRIPTS_OUT = \ - mc.menu \ - mcedit.menu - -LIBFILES_CONST = \ - filehighlight.ini \ - mc.default.keymap \ - mc.emacs.keymap \ - mc.vim.keymap - -LIBFILES_SCRIPT = \ - edit.indent.rc - -CLEANFILES = $(SCRIPTS_OUT) $(PKGDATA_OUT) -cfgdir = $(sysconfdir)/@PACKAGE@ -cfg_DATA = \ - $(LIBFILES_CONST) \ - $(SCRIPTS_OUT) \ - $(LIBFILES_OUT) - -cfg_SCRIPTS = \ - $(LIBFILES_SCRIPT) - - -# Files processed by configure don't need to be here -EXTRA_DIST = \ - $(LIBFILES_CONST) \ - $(LIBFILES_SCRIPT) \ - $(SCRIPTS_IN) \ - $(noinst_DATA) \ - $(PKGDATA_IN) - -all: all-recursive - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu misc/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu misc/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -mc.charsets: $(top_builddir)/config.status $(srcdir)/mc.charsets.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -mc.menu: $(top_builddir)/config.status $(srcdir)/mc.menu.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -mcedit.menu: $(top_builddir)/config.status $(srcdir)/mcedit.menu.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -mc.ext.ini: $(top_builddir)/config.status $(srcdir)/mc.ext.ini.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -install-cfgSCRIPTS: $(cfg_SCRIPTS) - @$(NORMAL_INSTALL) - @list='$(cfg_SCRIPTS)'; test -n "$(cfgdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(cfgdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(cfgdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n' \ - -e 'h;s|.*|.|' \ - -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) { files[d] = files[d] " " $$1; \ - if (++n[d] == $(am__install_max)) { \ - print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ - else { print "f", d "/" $$4, $$1 } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(cfgdir)$$dir'"; \ - $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(cfgdir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-cfgSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(cfg_SCRIPTS)'; test -n "$(cfgdir)" || exit 0; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 's,.*/,,;$(transform)'`; \ - dir='$(DESTDIR)$(cfgdir)'; $(am__uninstall_files_from_dir) - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-cfgDATA: $(cfg_DATA) - @$(NORMAL_INSTALL) - @list='$(cfg_DATA)'; test -n "$(cfgdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(cfgdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(cfgdir)" || 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)$(cfgdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(cfgdir)" || exit $$?; \ - done - -uninstall-cfgDATA: - @$(NORMAL_UNINSTALL) - @list='$(cfg_DATA)'; test -n "$(cfgdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(cfgdir)'; $(am__uninstall_files_from_dir) -install-dist_pkgdataDATA: $(dist_pkgdata_DATA) - @$(NORMAL_INSTALL) - @list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || 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)$(pkgdatadir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ - done - -uninstall-dist_pkgdataDATA: - @$(NORMAL_UNINSTALL) - @list='$(dist_pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) -install-pkgdataDATA: $(pkgdata_DATA) - @$(NORMAL_INSTALL) - @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || 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)$(pkgdatadir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgdatadir)" || exit $$?; \ - done - -uninstall-pkgdataDATA: - @$(NORMAL_UNINSTALL) - @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(pkgdatadir)'; $(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" -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 -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 - @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 -check-am: all-am -check: check-recursive -all-am: Makefile $(SCRIPTS) $(DATA) -installdirs: installdirs-recursive -installdirs-am: - for dir in "$(DESTDIR)$(cfgdir)" "$(DESTDIR)$(cfgdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(pkgdatadir)"; do \ - test -z "$$dir" || $(MKDIR_P) "$$dir"; \ - done -install: install-recursive -install-exec: install-exec-recursive -install-data: install-data-recursive -uninstall: uninstall-recursive - -install-am: all-am - @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am - -installcheck: installcheck-recursive -install-strip: - if test -z '$(STRIP)'; then \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - install; \ - else \ - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \ - fi -mostlyclean-generic: - -clean-generic: - -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) - -distclean-generic: - -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) - -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) - -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 clean-libtool mostlyclean-am - -distclean: distclean-recursive - -rm -f Makefile -distclean-am: clean-am distclean-generic distclean-tags - -dvi: dvi-recursive - -dvi-am: - -html: html-recursive - -html-am: - -info: info-recursive - -info-am: - -install-data-am: install-cfgDATA install-cfgSCRIPTS \ - install-dist_pkgdataDATA install-pkgdataDATA - @$(NORMAL_INSTALL) - $(MAKE) $(AM_MAKEFLAGS) install-data-hook -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-pdf: install-pdf-recursive - -install-pdf-am: - -install-ps: install-ps-recursive - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-recursive - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-recursive - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-recursive - -pdf-am: - -ps: ps-recursive - -ps-am: - -uninstall-am: uninstall-cfgDATA uninstall-cfgSCRIPTS \ - uninstall-dist_pkgdataDATA uninstall-pkgdataDATA - @$(NORMAL_INSTALL) - $(MAKE) $(AM_MAKEFLAGS) uninstall-hook -.MAKE: $(am__recursive_targets) install-am install-data-am \ - install-strip uninstall-am - -.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \ - check-am clean clean-generic clean-libtool cscopelist-am ctags \ - ctags-am distclean distclean-generic distclean-libtool \ - distclean-tags distdir dvi dvi-am html html-am info info-am \ - install install-am install-cfgDATA install-cfgSCRIPTS \ - install-data install-data-am install-data-hook \ - install-dist_pkgdataDATA 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-pkgdataDATA install-ps install-ps-am \ - install-strip installcheck installcheck-am installdirs \ - installdirs-am maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags tags-am uninstall uninstall-am uninstall-cfgDATA \ - uninstall-cfgSCRIPTS uninstall-dist_pkgdataDATA uninstall-hook \ - uninstall-pkgdataDATA - -.PRECIOUS: Makefile - - -install-data-hook: - cd $(DESTDIR)$(cfgdir) && rm -f mc.keymap && $(LN_S) mc.default.keymap mc.keymap - -uninstall-hook: - cd $(DESTDIR)$(cfgdir) && rm -f mc.keymap - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/misc/edit.indent.rc b/recipes/wip/files/mc/source/misc/edit.indent.rc deleted file mode 100755 index 92f82d5950..0000000000 --- a/recipes/wip/files/mc/source/misc/edit.indent.rc +++ /dev/null @@ -1,31 +0,0 @@ -#! /bin/sh -# *** External Formatter (Indenter) for GNU Midnight Commander. -# arguments: -# $1 - Name of the file being edited -# $2 - Name of the file to be processed - -exec >/dev/null - -case `echo $1 |sed 's/^.*\.//'` in - c|h) - # ftp://ftp.gnu.org/pub/gnu/indent/ - # Please add options to your ~/.indent.pro, not here. - indent "$2" - ;; - C|cc|CC|cxx|CXX|cpp|CPP) - # http://astyle.sourceforge.net/ - astyle "$2" - ;; - java|JAVA) - # http://astyle.sourceforge.net/ - astyle --style=java --mode=java "$2" - ;; - htm|html|HTM|HTML) - # http://tidy.sourceforge.net/ - tidy -q -m -ascii -wrap 80 "$2" - ;; - *) - # http://www.gnu.org/software/coreutils/ - fmt "$2" >"$2.tmp" && rm -f "$2" && mv -f "$2.tmp" "$2" - ;; -esac diff --git a/recipes/wip/files/mc/source/misc/ext.d/Makefile.am b/recipes/wip/files/mc/source/misc/ext.d/Makefile.am deleted file mode 100644 index 235eb10968..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/Makefile.am +++ /dev/null @@ -1,28 +0,0 @@ -extdir = $(EXTHELPERSDIR) - -SCRIPTS_IN = \ - doc.sh.in \ - misc.sh.in \ - text.sh.in - -SCRIPTS_OUT = \ - doc.sh \ - misc.sh \ - text.sh - -SCRIPTS_UNTOUCHED = \ - archive.sh \ - image.sh \ - package.sh \ - sound.sh \ - video.sh \ - web.sh - -ext_SCRIPTS = \ - $(SCRIPTS_UNTOUCHED) \ - $(SCRIPTS_OUT) - -EXTRA_DIST = \ - $(SCRIPTS_UNTOUCHED) \ - $(SCRIPTS_IN) - diff --git a/recipes/wip/files/mc/source/misc/ext.d/Makefile.in b/recipes/wip/files/mc/source/misc/ext.d/Makefile.in deleted file mode 100644 index 719abcbb4a..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/Makefile.in +++ /dev/null @@ -1,685 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = misc/ext.d -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = doc.sh misc.sh text.sh -CONFIG_CLEAN_VPATH_FILES = -am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; -am__vpath_adj = case $$p in \ - $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ - *) f=$$p;; \ - esac; -am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; -am__install_max = 40 -am__nobase_strip_setup = \ - srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` -am__nobase_strip = \ - for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" -am__nobase_list = $(am__nobase_strip_setup); \ - for p in $$list; do echo "$$p $$p"; done | \ - sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ - $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ - if (++n[$$2] == $(am__install_max)) \ - { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ - END { for (dir in files) print dir, files[dir] }' -am__base_list = \ - sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ - sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' -am__uninstall_files_from_dir = { \ - test -z "$$files" \ - || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ - || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ - $(am__cd) "$$dir" && rm -f $$files; }; \ - } -am__installdirs = "$(DESTDIR)$(extdir)" -SCRIPTS = $(ext_SCRIPTS) -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 = -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) -am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/doc.sh.in \ - $(srcdir)/misc.sh.in $(srcdir)/text.sh.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -extdir = $(EXTHELPERSDIR) -SCRIPTS_IN = \ - doc.sh.in \ - misc.sh.in \ - text.sh.in - -SCRIPTS_OUT = \ - doc.sh \ - misc.sh \ - text.sh - -SCRIPTS_UNTOUCHED = \ - archive.sh \ - image.sh \ - package.sh \ - sound.sh \ - video.sh \ - web.sh - -ext_SCRIPTS = \ - $(SCRIPTS_UNTOUCHED) \ - $(SCRIPTS_OUT) - -EXTRA_DIST = \ - $(SCRIPTS_UNTOUCHED) \ - $(SCRIPTS_IN) - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu misc/ext.d/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu misc/ext.d/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -doc.sh: $(top_builddir)/config.status $(srcdir)/doc.sh.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -misc.sh: $(top_builddir)/config.status $(srcdir)/misc.sh.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -text.sh: $(top_builddir)/config.status $(srcdir)/text.sh.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ -install-extSCRIPTS: $(ext_SCRIPTS) - @$(NORMAL_INSTALL) - @list='$(ext_SCRIPTS)'; test -n "$(extdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(extdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(extdir)" || exit 1; \ - fi; \ - for p in $$list; do \ - if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ - if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \ - done | \ - sed -e 'p;s,.*/,,;n' \ - -e 'h;s|.*|.|' \ - -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \ - $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \ - { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \ - if ($$2 == $$4) { files[d] = files[d] " " $$1; \ - if (++n[d] == $(am__install_max)) { \ - print "f", d, files[d]; n[d] = 0; files[d] = "" } } \ - else { print "f", d "/" $$4, $$1 } } \ - END { for (d in files) print "f", d, files[d] }' | \ - while read type dir files; do \ - if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \ - test -z "$$files" || { \ - echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(extdir)$$dir'"; \ - $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(extdir)$$dir" || exit $$?; \ - } \ - ; done - -uninstall-extSCRIPTS: - @$(NORMAL_UNINSTALL) - @list='$(ext_SCRIPTS)'; test -n "$(extdir)" || exit 0; \ - files=`for p in $$list; do echo "$$p"; done | \ - sed -e 's,.*/,,;$(transform)'`; \ - dir='$(DESTDIR)$(extdir)'; $(am__uninstall_files_from_dir) - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(SCRIPTS) -installdirs: - for dir in "$(DESTDIR)$(extdir)"; 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-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-extSCRIPTS - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-extSCRIPTS - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-extSCRIPTS \ - install-html install-html-am install-info install-info-am \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-extSCRIPTS - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/misc/ext.d/archive.sh b/recipes/wip/files/mc/source/misc/ext.d/archive.sh deleted file mode 100755 index 12beb0158f..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/archive.sh +++ /dev/null @@ -1,218 +0,0 @@ -#!/bin/sh - -# $1 - action -# $2 - type of file -# $3 - pager - -action=$1 -filetype=$2 -pager=$3 - -[ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open" - -do_view_action() { - filetype=$1 - - case "${filetype}" in - gz) - gzip -dc "${MC_EXT_FILENAME}" 2>/dev/null - ;; - bz2) - bzip2 -dc "${MC_EXT_FILENAME}" 2>/dev/null - ;; - bzip) - bzip2 -dc "${MC_EXT_FILENAME}" 2>/dev/null - ;; - lz) - lzip -dc "${MC_EXT_FILENAME}" 2>/dev/null - ;; - lz4) - lz4 -dc "${MC_EXT_FILENAME}" 2>/dev/null - ;; - lzma) - lzma -dc "${MC_EXT_FILENAME}" 2>/dev/null - ;; - lzo) - lzop -dc "${MC_EXT_FILENAME}" 2>/dev/null - ;; - xz) - xz -dc "${MC_EXT_FILENAME}" 2>/dev/null - ;; - zst) - zstd -dc "${MC_EXT_FILENAME}" 2>/dev/null - ;; - tar) - tar tvvf - < "${MC_EXT_FILENAME}" - ;; - tar.gz|tar.qpr) - gzip -dc "${MC_EXT_FILENAME}" 2>/dev/null | \ - tar tvvf - - ;; - tar.bzip) - bzip -dc "${MC_EXT_FILENAME}" 2>/dev/null | \ - tar tvvf - - ;; - tar.bzip2) - bzip2 -dc "${MC_EXT_FILENAME}" 2>/dev/null | \ - tar tvvf - - ;; - tar.lz) - lzip -dc "${MC_EXT_FILENAME}" 2>/dev/null | \ - tar tvvf - - ;; - tar.lz4) - lz4 -dc "${MC_EXT_FILENAME}" 2>/dev/null | \ - tar tvvf - - ;; - tar.lzma) - lzma -dc "${MC_EXT_FILENAME}" 2>/dev/null | \ - tar tvvf - - ;; - tar.lzo|tzo) - lzop -dc "${MC_EXT_FILENAME}" 2>/dev/null | \ - tar tvvf - - ;; - tar.xz) - xz -dc "${MC_EXT_FILENAME}" 2>/dev/null | \ - tar tvvf - - ;; - tar.zst|tzst) - zstd -dc "${MC_EXT_FILENAME}" 2>/dev/null | \ - tar tvvf - - ;; - tar.F) - freeze -dc "${MC_EXT_FILENAME}" 2>/dev/null | \ - tar tvvf - - ;; - - lha) - lha l "${MC_EXT_FILENAME}" 2>/dev/null || \ - jlha l "${MC_EXT_FILENAME}" 2>/dev/null || \ - lhasa l "${MC_EXT_FILENAME}" 2>/dev/null - ;; - arj) - arj l "${MC_EXT_FILENAME}" 2>/dev/null || \ - unarj l "${MC_EXT_FILENAME}" 2>/dev/null || \ - 7za l "${MC_EXT_FILENAME}" 2>/dev/null - ;; - cab) - cabextract -l "${MC_EXT_FILENAME}" 2> /dev/null || \ - 7za l "${MC_EXT_FILENAME}" 2>/dev/null - ;; - ha) - ha lf "${MC_EXT_FILENAME}" - ;; - rar) - rar v -c- "${MC_EXT_FILENAME}" 2>/dev/null || \ - unrar v -c- "${MC_EXT_FILENAME}" - ;; - alz) - unalz -l "${MC_EXT_FILENAME}" - ;; - cpio.z|cpio.gz) - gzip -dc "${MC_EXT_FILENAME}" | \ - cpio -itv 2>/dev/null - ;; - cpio.lz) - lzip -dc "${MC_EXT_FILENAME}" | \ - cpio -itv 2>/dev/null - ;; - cpio.lz4) - lz4 -dc "${MC_EXT_FILENAME}" | \ - cpio -itv 2>/dev/null - ;; - cpio.lzo) - lzop -dc "${MC_EXT_FILENAME}" | \ - cpio -itv 2>/dev/null - ;; - cpio.xz) - xz -dc "${MC_EXT_FILENAME}" | \ - cpio -itv 2>/dev/null - ;; - cpio.zst) - zstd -dc "${MC_EXT_FILENAME}" | \ - cpio -itv 2>/dev/null - ;; - cpio) - cpio -itv < "${MC_EXT_FILENAME}" 2>/dev/null - ;; - 7z) - 7za l "${MC_EXT_FILENAME}" 2>/dev/null || - 7z l "${MC_EXT_FILENAME}" - - ;; - ace) - unace l "${MC_EXT_FILENAME}" - ;; - arc) - arc l "${MC_EXT_FILENAME}" - ;; - zip) - unzip -v "${MC_EXT_FILENAME}" 2> /dev/null || \ - 7za l "${MC_EXT_FILENAME}" 2> /dev/null - ;; - zipx) - 7za l "${MC_EXT_FILENAME}" 2> /dev/null - ;; - zoo) - zoo l "${MC_EXT_FILENAME}" - ;; - wim) - wimlib-imagex info "${MC_EXT_FILENAME}" 2> /dev/null - ;; - *) - ;; - esac -} - -do_open_action() { - filetype=$1 - pager=$2 - - case "${filetype}" in - bzip2) - bzip2 -dc "${MC_EXT_FILENAME}" | ${pager} - ;; - bzip) - bzip -dc "${MC_EXT_FILENAME}" | ${pager} - ;; - gz) - gz -dc "${MC_EXT_FILENAME}" | ${pager} - ;; - lz) - lzip -dc "${MC_EXT_FILENAME}" | ${pager} - ;; - lz4) - lz4 -dc "${MC_EXT_FILENAME}" | ${pager} - ;; - lzma) - lzma -dc "${MC_EXT_FILENAME}" | ${pager} - ;; - lzo) - lzop -dc "${MC_EXT_FILENAME}" | ${pager} - ;; - xz) - xz -dc "${MC_EXT_FILENAME}" | ${pager} - ;; - zst) - zstd -dc "${MC_EXT_FILENAME}" | ${pager} - ;; - par2) - par2 r "${MC_EXT_FILENAME}" - ;; - *) - ;; - esac -} - -case "${action}" in -view) - do_view_action "${filetype}" - ;; -open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ - do_open_action "${filetype}" "${pager}" - ;; -*) - ;; -esac diff --git a/recipes/wip/files/mc/source/misc/ext.d/doc.sh.in b/recipes/wip/files/mc/source/misc/ext.d/doc.sh.in deleted file mode 100644 index d8c4654945..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/doc.sh.in +++ /dev/null @@ -1,218 +0,0 @@ -#!/bin/sh - -# $1 - action -# $2 - type of file - -action=$1 -filetype=$2 - -[ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open" - -STAROFFICE_REGEXP='\.(sxw|sdw|stw|sxc|stc|sxi|sti|sxd|std||sxm||sxg)$' - -staroffice_console() { - filename=$1;shift - is_view=$1; shift - if [ -n "${is_view}" ]; then - is_view='-dump' - fi - - tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX` - cd $tmp - soffice2html.pl "${filename}" - elinks ${is_view} content.html - rm -rf "$tmp" -} - -get_ooffice_executable() { - if command -v loffice >/dev/null 2>&1; then - echo "loffice" - elif command -v ooffice >/dev/null 2>&1; then - echo "ooffice" - else - echo -n - fi -} - -do_view_action() { - filetype=$1 - - case "${filetype}" in - ps) - ps2ascii "${MC_EXT_FILENAME}" - ;; - pdf) - pdftotext -layout -nopgbrk "${MC_EXT_FILENAME}" - - ;; - odt) - if [ ` echo "${MC_EXT_FILENAME}" | grep -c "${STAROFFICE_REGEXP}"` -ne 0 ]; then - staroffice_console "${MC_EXT_FILENAME}" "view" - else - odt2txt "${MC_EXT_FILENAME}" - fi - ;; - msdoc) - if command -v wvHtml >/dev/null 2>&1; then - tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX` - wvHtml "${MC_EXT_FILENAME}" --targetdir="$tmp" page.html - elinks -dump "$tmp/page.html" - rm -rf "$tmp" - elif command -v antiword >/dev/null 2>&1; then - antiword -t "${MC_EXT_FILENAME}" - elif command -v catdoc >/dev/null 2>&1; then - catdoc -w "${MC_EXT_FILENAME}" - elif command -v word2x >/dev/null 2>&1; then - word2x -f text "${MC_EXT_FILENAME}" - - else - strings "${MC_EXT_FILENAME}" - fi - ;; - msxls) - if command -v xlhtml >/dev/null 2>&1; then - tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX` - xlhtml -a "${MC_EXT_FILENAME}" > "$tmp/page.html" - elinks -dump "$tmp/page.html" - rm -rf "$tmp" - elif command -v xls2csv >/dev/null 2>&1; then - xls2csv "${MC_EXT_FILENAME}" - else - strings "${MC_EXT_FILENAME}" - fi - ;; - dvi) - command -v dvi2tty >/dev/null 2>&1 && \ - dvi2tty "${MC_EXT_FILENAME}" || \ - catdvi "${MC_EXT_FILENAME}" - ;; - djvu) - djvused -e print-pure-txt "${MC_EXT_FILENAME}" - ;; - ebook) - einfo -v "${MC_EXT_FILENAME}" - ;; - *) - ;; - esac -} - -do_open_action() { - filetype=$1 - - case "${filetype}" in - ps) - if [ -n "$DISPLAY" ]; then - (gv "${MC_EXT_FILENAME}" &) - else - ps2ascii "${MC_EXT_FILENAME}" | ${PAGER:-more} - fi - ;; - pdf) - if [ ! -n "$DISPLAY" ]; then - pdftotext -layout -nopgbrk "${MC_EXT_FILENAME}" - | ${PAGER:-more} - elif see > /dev/null 2>&1; then - (see "${MC_EXT_FILENAME}" &) - else - (xpdf "${MC_EXT_FILENAME}" &) - fi - #(acroread "${MC_EXT_FILENAME}" &) - #(ghostview "${MC_EXT_FILENAME}" &) - ;; - ooffice) - if [ -n "$DISPLAY" ]; then - OOFFICE=`get_ooffice_executable` - if [ -n "${OOFFICE}" ]; then - (${OOFFICE} "${MC_EXT_FILENAME}" &) - fi - else - if [ `echo "${MC_EXT_FILENAME}" | grep -c "${STAROFFICE_REGEXP}"` -ne 0 ]; then - staroffice_console "${MC_EXT_FILENAME}" - else - odt2txt "${MC_EXT_FILENAME}" | ${PAGER:-more} - fi - fi - ;; - abw) - (abiword "${MC_EXT_FILENAME}" &) - ;; - gnumeric) - (gnumeric "${MC_EXT_FILENAME}" &) - ;; - msdoc) - if [ -n "$DISPLAY" ]; then - OOFFICE=`get_ooffice_executable` - if [ -n "${OOFFICE}" ]; then - (${OOFFICE} "${MC_EXT_FILENAME}" &) - else - (abiword "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - fi - else - tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX` - wvHtml "${MC_EXT_FILENAME}" --targetdir="$tmp" page.html -1 - elinks "$tmp/page.html" - rm -rf "$tmp" - fi - ;; - msxls) - if [ -n "$DISPLAY" ]; then - OOFFICE=`get_ooffice_executable` - if [ -n "${OOFFICE}" ]; then - (${OOFFICE} "${MC_EXT_FILENAME}" &) - else - (gnumeric "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - fi - else - tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX` - xlhtml -a "${MC_EXT_FILENAME}" > "$tmp/page.html" - elinks "$tmp/page.html" - rm -rf "$tmp" - fi - ;; - msppt) - if [ -n "$DISPLAY" ]; then - OOFFICE=`get_ooffice_executable` - if [ -n "${OOFFICE}" ]; then - (${OOFFICE} "${MC_EXT_FILENAME}" &) - fi - else - tmp=`mktemp -d ${TMPDIR:-/tmp}/%p.XXXXXX` - ppthtml "${MC_EXT_FILENAME}" > "$tmp/page.html" - elinks "$tmp/page.html" - rm -rf "$tmp" - fi - ;; - framemaker) - fmclient -f "${MC_EXT_FILENAME}" - ;; - dvi) - if [ -n "$DISPLAY" ]; then - (xdvi "${MC_EXT_FILENAME}" &) - else - dvisvga "${MC_EXT_FILENAME}" || \ - dvi2tty "${MC_EXT_FILENAME}" | ${PAGER:-more} - fi - ;; - djvu) - djview "${MC_EXT_FILENAME}" & - ;; - comic) - cbrpager "${MC_EXT_FILENAME}" & - ;; - ebook) - lucidor "${MC_EXT_FILENAME}" >/dev/null & - ;; - *) - ;; - esac -} - -case "${action}" in -view) - do_view_action "${filetype}" - ;; -open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ - do_open_action "${filetype}" - ;; -*) - ;; -esac diff --git a/recipes/wip/files/mc/source/misc/ext.d/image.sh b/recipes/wip/files/mc/source/misc/ext.d/image.sh deleted file mode 100755 index 46751c625e..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/image.sh +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/sh - -# $1 - action -# $2 - type of file - -action=$1 -filetype=$2 - -if [ -n "$DISPLAY" ]; then - [ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open" -fi - -do_view_action() { - filetype=$1 - - case "${filetype}" in - xpm) - [ -n "$DISPLAY" ] && sxpm "${MC_EXT_FILENAME}" - ;; - *) - if command -v exif >/dev/null 2>&1; then - exif "${MC_EXT_FILENAME}" 2>/dev/null - E=$? - else - E=1 - fi - if [ $E != 0 ] && command -v exiftool >/dev/null 2>&1; then - exiftool "${MC_EXT_FILENAME}" 2>/dev/null - fi - identify "${MC_EXT_FILENAME}" - ;; - esac -} - -do_open_action() { - filetype=$1 - - case "${filetype}" in - xbm) - (bitmap "${MC_EXT_FILENAME}" &) - ;; - xcf) - (gimp "${MC_EXT_FILENAME}" &) - ;; - svg) - (inkscape "${MC_EXT_FILENAME}" &) - ;; - *) - if [ -n "$DISPLAY" ]; then - if command -v geeqie >/dev/null 2>&1; then - (geeqie "${MC_EXT_FILENAME}" &) - else - (gqview "${MC_EXT_FILENAME}" &) - fi - # no backgrounding for console viewers - elif command -v fim >/dev/null 2>&1; then - fim "${MC_EXT_FILENAME}" - elif command -v fbi >/dev/null 2>&1; then - fbi "${MC_EXT_FILENAME}" - elif command -v zgv >/dev/null 2>&1; then - zgv "${MC_EXT_FILENAME}" - # run-mailcap as a last resort - elif command -v see >/dev/null 2>&1; then - (see "${MC_EXT_FILENAME}" &) - fi - ;; - esac -} - -case "${action}" in -view) - do_view_action "${filetype}" - ;; -open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ - do_open_action "${filetype}" - ;; -*) - ;; -esac diff --git a/recipes/wip/files/mc/source/misc/ext.d/misc.sh.in b/recipes/wip/files/mc/source/misc/ext.d/misc.sh.in deleted file mode 100644 index bfb93eed5e..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/misc.sh.in +++ /dev/null @@ -1,104 +0,0 @@ -#!/bin/sh - -# $1 - action -# $2 - type of file - -action=$1 -filetype=$2 - -[ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open" - -do_view_action() { - filetype=$1 - - case "${filetype}" in - iso9660) - if command -v isoinfo >/dev/null 2>&1; then - isoinfo -d -i "${MC_EXT_FILENAME}" && isoinfo -l -R -J -i "${MC_EXT_FILENAME}" - else - 7za l "${MC_EXT_FILENAME}" - fi - ;; - cat) - cat "${MC_EXT_FILENAME}" 2>/dev/null - ;; - ar) - file "${MC_EXT_FILENAME}" && nm -C "${MC_EXT_FILENAME}" - ;; - lib) - gplib -t "${MC_EXT_FILENAME}" | \ - @PERL@ -e 'while (<>) { @a=split /[\s\t]+/, $_; printf ("%-30s | %10d | %s.%s.%02d | %s\n", $a[0], ($a[1]*1),$a[7], lc($a[4]), $a[5], $a[6]);}' - ;; - so) - file "${MC_EXT_FILENAME}" && nm -C -D "${MC_EXT_FILENAME}" - ;; - elf) - file "${MC_EXT_FILENAME}" && nm -C "${MC_EXT_FILENAME}" - ;; - dylib) - file "${MC_EXT_FILENAME}" && nm -n "${MC_EXT_FILENAME}" - ;; - dbf) - dbview -b "${MC_EXT_FILENAME}" - ;; - sqlite) - sqlite3 "file:${MC_EXT_FILENAME}?immutable=1" .dump - ;; - mo) - msgunfmt "${MC_EXT_FILENAME}" || \ - cat "${MC_EXT_FILENAME}" - ;; - lyx) - lyxcat "${MC_EXT_FILENAME}" - ;; - torrent) - @EXTFSHELPERSDIR@/torrent list "${MC_EXT_FILENAME}" 2>/dev/null - ;; - javaclass) - jad -p "${MC_EXT_FILENAME}" 2>/dev/null || \ - (file -b "${MC_EXT_FILENAME}"; javap -private "${MC_EXT_FILENAME}" 2>/dev/null) - ;; - *) - ;; - esac -} - -do_open_action() { - filetype=$1 - - case "${filetype}" in - dbf) - dbview "${MC_EXT_FILENAME}" - ;; - sqlite) - sqlite3 "${MC_EXT_FILENAME}" - ;; - glade) - if command -v glade-3 >/dev/null 2>&1; then - (glade-3 "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - else - (glade-2 "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - fi - ;; - po) - (poedit "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - ;; - lyx) - lyx "${MC_EXT_FILENAME}" - ;; - *) - ;; - esac -} - -case "${action}" in -view) - do_view_action "${filetype}" - ;; -open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ - do_open_action "${filetype}" - ;; -*) - ;; -esac diff --git a/recipes/wip/files/mc/source/misc/ext.d/package.sh b/recipes/wip/files/mc/source/misc/ext.d/package.sh deleted file mode 100755 index fc1aa1f1df..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/package.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/sh - -# $1 - action -# $2 - type of file - -action=$1 -filetype=$2 - -[ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open" - -do_view_action() { - filetype=$1 - - case "${filetype}" in - trpm) - rpm -qivl --scripts `basename "${MC_EXT_BASENAME}" .trpm` - ;; - src.rpm|rpm) - if rpm --nosignature --version >/dev/null 2>&1; then - RPM="rpm --nosignature" - else - RPM="rpm" - fi - $RPM -qivlp --scripts "${MC_EXT_FILENAME}" - ;; - deb) - dpkg-deb -I "${MC_EXT_FILENAME}" && echo && dpkg-deb -c "${MC_EXT_FILENAME}" - ;; - debd) - dpkg -s `echo "${MC_EXT_BASENAME}" | sed 's/\([0-9a-z.-]*\).*/\1/'` - ;; - deba) - apt-cache show `echo "${MC_EXT_BASENAME}" | sed 's/\([0-9a-z.-]*\).*/\1/'` - ;; - *) - ;; - esac -} - -do_open_action() { - filetype=$1 - - case "${filetype}" in - *) - ;; - esac -} - -case "${action}" in -view) - do_view_action "${filetype}" - ;; -open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ - do_open_action "${filetype}" - ;; -*) - ;; -esac diff --git a/recipes/wip/files/mc/source/misc/ext.d/sound.sh b/recipes/wip/files/mc/source/misc/ext.d/sound.sh deleted file mode 100755 index 943aae4937..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/sound.sh +++ /dev/null @@ -1,108 +0,0 @@ -#!/bin/sh - -# $1 - action -# $2 - type of file - -action=$1 -filetype=$2 - -if [ -n "$DISPLAY" ]; then - [ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open" -fi - -do_view_action() { - filetype=$1 - - case "${filetype}" in - common) - mediainfo "${MC_EXT_FILENAME}" - ;; - - mp3) - mpg123 -vtn1 "${MC_EXT_FILENAME}" 2>&1 | \ - sed -n '/^Title/,/^Comment/p;/^MPEG/,/^Audio/p' - ;; - ogg) - ogginfo "${MC_EXT_FILENAME}" - ;; - opus) - opusinfo "${MC_EXT_FILENAME}" - ;; - wma) - mplayer -quiet -slave -frames 0 -vo null -ao null -identify "${MC_EXT_FILENAME}" 2>/dev/null | \ - tail +13 || file "${MC_EXT_FILENAME}" - ;; - *) - cat "${MC_EXT_FILENAME}" - ;; - esac -} - -do_open_action() { - filetype=$1 - - case "${filetype}" in - common) - if [ -n "$DISPLAY" ]; then - (audacious "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - else - play "${MC_EXT_FILENAME}" - fi - ;; - mod) - mikmod "${MC_EXT_FILENAME}" - #tracker "${MC_EXT_FILENAME}" - ;; - wav22) - vplay -s 22 "${MC_EXT_FILENAME}" - ;; - mp3) - if [ -n "$DISPLAY" ]; then - (audacious "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - else - mpg123 "${MC_EXT_FILENAME}" - fi - ;; - ogg) - if [ -n "$DISPLAY" ]; then - (audacious "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - else - ogg123 "${MC_EXT_FILENAME}" - fi - ;; - opus) - if [ -n "$DISPLAY" ]; then - (audacious "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - else - play "${MC_EXT_FILENAME}" - fi - ;; - midi) - timidity "${MC_EXT_FILENAME}" - ;; - wma) - mplayer -vo null "${MC_EXT_FILENAME}" - ;; - playlist) - if [ -n "$DISPLAY" ]; then - (audacious -p "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - else - mplayer -vo null -playlist "${MC_EXT_FILENAME}" - fi - ;; - *) - ;; - esac -} - -case "${action}" in -view) - do_view_action "${filetype}" - ;; -open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ - do_open_action "${filetype}" - ;; -*) - ;; -esac diff --git a/recipes/wip/files/mc/source/misc/ext.d/text.sh.in b/recipes/wip/files/mc/source/misc/ext.d/text.sh.in deleted file mode 100644 index 38d64c40e8..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/text.sh.in +++ /dev/null @@ -1,155 +0,0 @@ -#!/bin/sh - -# $1 - action -# $2 - type of archive -# $3 - pager - -action=$1 -filetype=$2 -pager=$3 - -[ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open" - -get_unpacker() { - filetype=$1 - case "${filetype}" in - man.gz) - unpacker="gzip -dc" - ;; - man.bz) - unpacker="bzip -dc" - ;; - man.bz2) - unpacker="bzip2 -dc" - ;; - man.lz) - unpacker="lzip -dc" - ;; - man.lz4) - unpacker="lz4 -dc" - ;; - man.lzma) - unpacker="lzma -dc" - ;; - man.lzo) - unpacker="lzop -dc" - ;; - man.xz) - unpacker="xz -dc" - ;; - man.zst) - unpacker="zstd -dc" - ;; - esac - echo ${unpacker} -} - - -do_view_action() { - filetype=$1 - - unpacker=`get_unpacker ${filetype}` - - case "${filetype}" in - man) - case "${MC_EXT_FILENAME}" in - */log/*|*/logs/*) - cat "${MC_EXT_FILENAME}" - ;; - *) - MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat "${MC_EXT_FILENAME}" - ;; - esac - ;; - pod) - pod2man "${MC_EXT_FILENAME}" | nroff @MAN_FLAGS@ @MANDOC@ - ;; - nroff.me) - nroff @MAN_FLAGS@ -me "${MC_EXT_FILENAME}" - ;; - nroff.ms) - nroff @MAN_FLAGS@ -ms "${MC_EXT_FILENAME}" - ;; - man.gz|man.bz|man.bz2|man.lz|man.lz4|man.lzma|man.lzo|man.xz|man.zst) - case "${MC_EXT_FILENAME}" in - */log/*|*/logs/*) - ${unpacker} "${MC_EXT_FILENAME}" - ;; - *) - # "man" takes care of uncompressing. - # This way the stdin is left intact so the correct width is used. - MANROFFOPT=-c MAN_KEEP_FORMATTING=1 man -P cat "${MC_EXT_FILENAME}" - ;; - esac - ;; - *) - ;; - esac -} - -do_open_action() { - filetype=$1 - pager=$2 - - unpacker=`get_unpacker ${filetype}` - - case "${filetype}" in - info) - info -f "${MC_EXT_FILENAME}" - ;; - man) - case "${MC_EXT_FILENAME}" in - */log/*|*/logs/*) - cat "${MC_EXT_FILENAME}" - ;; - *) - { zsoelim "${MC_EXT_FILENAME}" 2>/dev/null || cat "${MC_EXT_FILENAME}"; } | \ - nroff @MAN_FLAGS@ @MANDOC@ - ;; - esac | ${pager} - ;; - pod) - pod2man "${MC_EXT_FILENAME}" | nroff @MAN_FLAGS@ @MANDOC@ | ${pager} - ;; - nroff.me) - nroff @MAN_FLAGS@ -me "${MC_EXT_FILENAME}" | ${pager} - ;; - nroff.ms) - nroff @MAN_FLAGS@ -ms "${MC_EXT_FILENAME}" | ${pager} - ;; - man.gz|man.bz|man.bz2|man.lz|man.lz4|man.lzma|man.lzo|man.xz|man.zst) - case "${MC_EXT_FILENAME}" in - */log/*|*/logs/*) - ${unpacker} "${MC_EXT_FILENAME}" - ;; - *) - ${unpacker} "${MC_EXT_FILENAME}" | nroff @MAN_FLAGS@ @MANDOC@ - ;; - esac | ${pager} - ;; - chm) - if [ -n "$DISPLAY" ]; then - command -v kchmviewer >/dev/null 2>&1 \ - && (kchmviewer "${MC_EXT_FILENAME}" &) \ - || (xchm "${MC_EXT_FILENAME}" &) - else - chm_http "${MC_EXT_FILENAME}" & elinks http://localhost:8080/index.html - kill -INT %1 - fi - ;; - *) - ;; - esac -} - -case "${action}" in -view) - do_view_action "${filetype}" - ;; -open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ - do_open_action "${filetype}" "${pager}" - ;; -*) - ;; -esac diff --git a/recipes/wip/files/mc/source/misc/ext.d/video.sh b/recipes/wip/files/mc/source/misc/ext.d/video.sh deleted file mode 100755 index 1584be9d71..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/video.sh +++ /dev/null @@ -1,56 +0,0 @@ -#!/bin/sh - -# $1 - action -# $2 - type of file - -action=$1 -filetype=$2 - -if [ -n "$DISPLAY" ]; then - [ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open" -fi - -do_view_action() { - filetype=$1 - - case "${filetype}" in - *) - if command -v mplayer >/dev/null 2>&1; then - mplayer -identify -vo null -ao null -frames 0 "${MC_EXT_FILENAME}" 2>&1 | \ - sed -n 's/^ID_//p' - elif command -v mpv_identify.sh >/dev/null 2>&1; then - mpv_identify.sh "${MC_EXT_FILENAME}" - else - echo "Please install either mplayer or mpv to get information for this file" - fi - ;; - esac -} - -do_open_action() { - filetype=$1 - - if command -v mpv >/dev/null 2>&1; then - PLAYER="mpv --really-quiet" - else - PLAYER="mplayer -really-quiet" - fi - - if [ -n "$DISPLAY" ]; then - ($PLAYER "${MC_EXT_FILENAME}" >/dev/null 2>&1 &) - else - $PLAYER -vo null "${MC_EXT_FILENAME}" - fi -} - -case "${action}" in -view) - do_view_action "${filetype}" - ;; -open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ - do_open_action "${filetype}" - ;; -*) - ;; -esac diff --git a/recipes/wip/files/mc/source/misc/ext.d/web.sh b/recipes/wip/files/mc/source/misc/ext.d/web.sh deleted file mode 100755 index 8de9c70d1c..0000000000 --- a/recipes/wip/files/mc/source/misc/ext.d/web.sh +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/sh - -# $1 - action -# $2 - type of file - -action=$1 -filetype=$2 - -[ -n "${MC_XDG_OPEN}" ] || MC_XDG_OPEN="xdg-open" - -do_view_action() { - filetype=$1 - - case "${filetype}" in - html) - links -dump "${MC_EXT_FILENAME}" 2>/dev/null || \ - w3m -dump "${MC_EXT_FILENAME}" 2>/dev/null || \ - lynx -dump -force_html "${MC_EXT_FILENAME}" 2>/dev/null || - cat "${MC_EXT_FILENAME}" - ;; - *) - ;; - esac -} - -do_open_action() { - filetype=$1 - - case "${filetype}" in - html) - (if [ -n "$DISPLAY" ]; then - for browser in gnome-moz-remote mozilla firefox chromium google-chrome konqueror brave-browser opera open ; do - if command -v "${browser}" 1>&2 ; then - "${browser}" file://"${MC_EXT_CURRENTDIR}"/"${MC_EXT_BASENAME}" 1>&2 & - break - fi - done - else - elinks "${MC_EXT_FILENAME}" || \ - links "${MC_EXT_FILENAME}" || \ - lynx -force_html "${MC_EXT_FILENAME}" || \ - ${PAGER:-more} "${MC_EXT_FILENAME}" - fi) 2>/dev/null - ;; - *) - ;; - esac -} - -case "${action}" in -view) - do_view_action "${filetype}" - ;; -open) - ("${MC_XDG_OPEN}" "${MC_EXT_FILENAME}" >/dev/null 2>&1) || \ - do_open_action "${filetype}" - ;; -*) - ;; -esac - diff --git a/recipes/wip/files/mc/source/misc/filehighlight.ini b/recipes/wip/files/mc/source/misc/filehighlight.ini deleted file mode 100644 index ef426a468f..0000000000 --- a/recipes/wip/files/mc/source/misc/filehighlight.ini +++ /dev/null @@ -1,47 +0,0 @@ -[executable] - type=FILE_EXE - -[directory] - type=DIR - -[device] - type=DEVICE - -[special] - type=SPECIAL - -[stalelink] - type=STALE_LINK - -[symlink] - type=SYMLINK - -[core] - regexp=^core\\.*\\d*$ - extensions_case=true - -[temp] - extensions=~;$$$;bak;part;tmp - regexp=(^#.*|.*~$) - -[archive] - extensions=7z;Z;ace;apk;arc;arj;ark;bz2;cab;cpio;deb;gz;lha;lz;lz4;lzh;lzma;lzo;rar;rpm;tar;tbz;tbz2;tgz;tlz;txz;tzo;tzst;vsix;xz;zip;zoo;zst - -[doc] - extensions=chm;css;ctl;diz;doc;docm;docx;dtd;fodg;fodp;fods;fodt;htm;html;json;letter;lsm;mail;man;markdown;md;me;mkd;msg;nroff;odg;odp;ods;odt;pdf;po;ppt;pptm;pptx;ps;rtf;sgml;shtml;tex;text;txt;xls;xlsm;xlsx;xml;xsd;xslt - -[source] - extensions=ada;asm;awk;bash;c;c++;caml;cc;cgi;cpp;cxx;diff;erl;go;h;h++;hh;hi;hpp;hs;inc;jasm;jav;java;js;m4;mak;mjs;ml;mli;mll;mlp;mly;pas;patch;php;phps;pl;pm;prg;py;rb;s;sas;sh;sl;st;swift;tcl;tk;tsx;xq - -[media] - extensions=3gp;aac;ac3;ape;asf;avi;awb;dts;flac;flv;it;m3u;m4a;m4v;med;mid;midi;mkv;mod;mol;mov;mp2;mp3;mp4;mpeg;mpg;mpl;ogg;ogv;opus;s3m;ts;umx;vob;wav;webm;wma;wmv;xm;y4m - -[graph] - extensions=ai;avif;bmp;cdr;eps;gif;heic;heif;ico;jp2;jpeg;jpg;jxl;omf;pcx;pic;png;psb;psd;rle;svg;tga;tif;tiff;webp;wmf;xbm;xcf;xpm - -[database] - extensions=cdx;dat;db;dbf;dbi;dbx;fox;mdb;mdn;mdx;msql;mssql;pgsql;sql;ssql - -# Hardlinks have lowest precedence to make it colored by file type or extension -[hardlink] - type=HARDLINK diff --git a/recipes/wip/files/mc/source/misc/macros.d/Makefile.am b/recipes/wip/files/mc/source/misc/macros.d/Makefile.am deleted file mode 100644 index 07144179c0..0000000000 --- a/recipes/wip/files/mc/source/misc/macros.d/Makefile.am +++ /dev/null @@ -1,13 +0,0 @@ -macrodir = $(pkgdatadir)/examples/macros.d - -macro_DATA = \ - macro.0.sh \ - macro.1.sh \ - macro.3.sh \ - macro.4.sh \ - macro.5.sh \ - macro.6.sh \ - macro.7.sh - -EXTRA_DIST = \ - $(macro_DATA) diff --git a/recipes/wip/files/mc/source/misc/macros.d/Makefile.in b/recipes/wip/files/mc/source/misc/macros.d/Makefile.in deleted file mode 100644 index cb9c02c385..0000000000 --- a/recipes/wip/files/mc/source/misc/macros.d/Makefile.in +++ /dev/null @@ -1,650 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = misc/macros.d -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(macrodir)" -DATA = $(macro_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -macrodir = $(pkgdatadir)/examples/macros.d -macro_DATA = \ - macro.0.sh \ - macro.1.sh \ - macro.3.sh \ - macro.4.sh \ - macro.5.sh \ - macro.6.sh \ - macro.7.sh - -EXTRA_DIST = \ - $(macro_DATA) - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu misc/macros.d/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu misc/macros.d/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-macroDATA: $(macro_DATA) - @$(NORMAL_INSTALL) - @list='$(macro_DATA)'; test -n "$(macrodir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(macrodir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(macrodir)" || 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)$(macrodir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(macrodir)" || exit $$?; \ - done - -uninstall-macroDATA: - @$(NORMAL_UNINSTALL) - @list='$(macro_DATA)'; test -n "$(macrodir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(macrodir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(DATA) -installdirs: - for dir in "$(DESTDIR)$(macrodir)"; 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-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-macroDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-macroDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-macroDATA \ - install-man install-pdf install-pdf-am install-ps \ - install-ps-am install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-macroDATA - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/misc/macros.d/macro.0.sh b/recipes/wip/files/mc/source/misc/macros.d/macro.0.sh deleted file mode 100644 index bc33de8d18..0000000000 --- a/recipes/wip/files/mc/source/misc/macros.d/macro.0.sh +++ /dev/null @@ -1,5 +0,0 @@ -m make - TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1 - make 2> $TMPFILE - mcedit $TMPFILE - rm $TMPFILE diff --git a/recipes/wip/files/mc/source/misc/macros.d/macro.1.sh b/recipes/wip/files/mc/source/misc/macros.d/macro.1.sh deleted file mode 100644 index 93ca59feb9..0000000000 --- a/recipes/wip/files/mc/source/misc/macros.d/macro.1.sh +++ /dev/null @@ -1,6 +0,0 @@ -#silent -u Upper case selection - TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1 - cat %b > $TMPFILE - cat $TMPFILE| sed 's/\(.*\)/\U\1/' >%b - rm -f $TMPFILE diff --git a/recipes/wip/files/mc/source/misc/macros.d/macro.3.sh b/recipes/wip/files/mc/source/misc/macros.d/macro.3.sh deleted file mode 100644 index 7dfd263979..0000000000 --- a/recipes/wip/files/mc/source/misc/macros.d/macro.3.sh +++ /dev/null @@ -1,6 +0,0 @@ -#silent -S Sort selection - TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1 - cat %b > $TMPFILE - cat $TMPFILE| sort >%b - rm -f $TMPFILE diff --git a/recipes/wip/files/mc/source/misc/macros.d/macro.4.sh b/recipes/wip/files/mc/source/misc/macros.d/macro.4.sh deleted file mode 100644 index fca306fb3a..0000000000 --- a/recipes/wip/files/mc/source/misc/macros.d/macro.4.sh +++ /dev/null @@ -1,3 +0,0 @@ -#silent -t Indent `C' formatter - indent -gnu -fc1 -i4 -bli0 -nut -bap -l100 %b 1>/dev/null 2> %e diff --git a/recipes/wip/files/mc/source/misc/macros.d/macro.5.sh b/recipes/wip/files/mc/source/misc/macros.d/macro.5.sh deleted file mode 100644 index 70c2ddc7cc..0000000000 --- a/recipes/wip/files/mc/source/misc/macros.d/macro.5.sh +++ /dev/null @@ -1,41 +0,0 @@ -#silent -s snippets - a=`cat %b` - if [ "$a" = "fori" ]; then - echo "for (i = 0; i _; i++)" > %b - fi - if [ "$a" = "ife" ]; then - cat < %b - if ( ) - { - } - else - { - } - EOF - fi - if [ "$a" = "GPL" ]; then - cat >>%b <. - */ - EOF - fi - if [ "$a" = "type" ]; then - cat < %b - typedef struct { - ; - } ?; - EOF - fi diff --git a/recipes/wip/files/mc/source/misc/macros.d/macro.6.sh b/recipes/wip/files/mc/source/misc/macros.d/macro.6.sh deleted file mode 100644 index 923a5f88f0..0000000000 --- a/recipes/wip/files/mc/source/misc/macros.d/macro.6.sh +++ /dev/null @@ -1,5 +0,0 @@ -#silent -e execute something - TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1 - cat %b > $TMPFILE - sh $TMPFILE > %b diff --git a/recipes/wip/files/mc/source/misc/macros.d/macro.7.sh b/recipes/wip/files/mc/source/misc/macros.d/macro.7.sh deleted file mode 100644 index 1f4e66d137..0000000000 --- a/recipes/wip/files/mc/source/misc/macros.d/macro.7.sh +++ /dev/null @@ -1,5 +0,0 @@ -#silent -w delete trailing whitespace - TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1 - cat %b > $TMPFILE - cat $TMPFILE | sed 's/[ \t]*$//' > %b diff --git a/recipes/wip/files/mc/source/misc/mc.charsets.in b/recipes/wip/files/mc/source/misc/mc.charsets.in deleted file mode 100644 index 68f1b03afd..0000000000 --- a/recipes/wip/files/mc/source/misc/mc.charsets.in +++ /dev/null @@ -1,13 +0,0 @@ -ASCII 7-bit ASCII -@ENCODING_ISO8859@-1 ISO 8859-1 -@ENCODING_ISO8859@-2 ISO 8859-2 -@ENCODING_ISO8859@-5 ISO 8859-5 -CP1250 Windows 1250 -@ENCODING_CP1251@ Windows 1251 -CP437 CP 437 -CP850 CP 850 -CP852 CP 852 -@ENCODING_CP866@ CP 866 -KOI8-R KOI8-R -KOI8-U KOI8-U -UTF-8 UTF-8 diff --git a/recipes/wip/files/mc/source/misc/mc.default.keymap b/recipes/wip/files/mc/source/misc/mc.default.keymap deleted file mode 100644 index 6e7e8bd484..0000000000 --- a/recipes/wip/files/mc/source/misc/mc.default.keymap +++ /dev/null @@ -1,497 +0,0 @@ -[filemanager] -ChangePanel = tab; ctrl-i -Help = f1 -UserMenu = f2 -View = f3 -# ViewFile = -Edit = f4 -# EditForceInternal = -Copy = f5 -Move = f6 -MakeDir = f7 -Delete = f8 -Menu = f9 -Quit = f10 -MenuLastSelected = f19 -QuitQuiet = f20 -Find = alt-question -CdQuick = alt-c -HotList = ctrl-backslash -Reread = ctrl-r -DirSize = ctrl-space -Suspend = ctrl-z -Swap = ctrl-u -History = alt-h -# PanelListing = -# SetupListingFormat = -ShowHidden = alt-dot -SplitVertHoriz = alt-comma -SplitEqual = alt-equal -SplitMore = alt-shift-right -SplitLess = alt-shift-left -Shell = ctrl-o -PutCurrentPath = alt-a -PutOtherPath = alt-shift-a -PutCurrentSelected = alt-enter; ctrl-enter -PutCurrentFullSelected = ctrl-shift-enter -ViewFiltered = alt-exclamation -Select = kpplus -Unselect = kpminus -SelectInvert = kpasterisk -ScreenList = alt-prime -# OptionsLayout = -# OptionsAppearance = -# OptionsPanel = -# OptionsConfirm = -# OptionsDisplayBits = -# OptionsVfs = -# LearnKeys = -# SaveSetup = -# EditExtensionsFile = -# EditFileHighlightFile = -# Filter = -# ConnectShell = -# ConnectFtp = -# Undelete = -EditorViewerHistory = alt-shift-e -ExtendedKeyMap = ctrl-x - -[filemanager:xmap] -ChangeMode = c -ChangeOwn = o -ChangeAttributes = e -CompareDirs = d -CompareFiles = ctrl-d -HotListAdd = h -LinkSymbolicEdit = ctrl-s -Link = l -LinkSymbolic = s -LinkSymbolicRelative = v -PanelInfo = i -PanelQuickView = q -ExternalPanelize = exclamation -VfsList = a -Jobs = j -PutCurrentPath = p -PutOtherPath = ctrl-p -PutCurrentTagged = t -PutOtherTagged = ctrl-t -PutCurrentLink = r -PutOtherLink = ctrl-r - -[panel] -CycleListingFormat = alt-t -Search = ctrl-s; alt-s -Mark = insert; ctrl-t -MarkUp = shift-up -MarkDown = shift-down -# MarkLeft = -# MarkRight = -Down = down; ctrl-n -Up = up; ctrl-p -Left = left -Right = right -PageUp = pgup; alt-v -PageDown = pgdn; ctrl-v -Enter = enter -PanelOtherCd = alt-o -PanelOtherCdLink = alt-l -ViewRaw = f13 -EditNew = f14 -CopySingle = f15 -MoveSingle = f16 -DeleteSingle = f18 -# SelectExt = -Select = alt-plus -Unselect = alt-minus -SelectInvert = alt-asterisk -CdChild = ctrl-pgdn -CdParent = ctrl-pgup -# CdParentSmart = -# Panelize = -History = alt-shift-h -HistoryNext = alt-u -HistoryPrev = alt-y -BottomOnScreen = alt-j -MiddleOnScreen = alt-r -TopOnScreen = alt-g -PanelOtherSync = alt-i -SelectCodepage = alt-e -Top = alt-lt; home; a1 -Bottom = alt-gt; end; c1 -# Sort = -# SortPrev = -# SortNext = -# SortReverse = -# SortByName = -# SortByExt = -# SortBySize = -# SortByMTime = -# Filter = -# ScrollLeft = -# ScrollRight = - -[dialog] -Ok = enter -Cancel = f10; esc; ctrl-g -Up = left; up -#Left = left; up -Down = right; down -#Right = right; down -Help = f1 -Suspend = ctrl-z -Refresh = ctrl-l -ScreenList = alt-prime -ScreenNext = alt-rbrace -ScreenPrev = alt-lbrace - -[menu] -Help = f1 -Left = left; ctrl-b -Right = right; ctrl-f -Up = up; ctrl-p -Down = down; ctrl-n -Home = home; alt-lt; ctr-a -End = end; alt-gt ctrl-e -Enter = enter -Quit = F10; esc; ctrl-g - -[input] -Home = ctrl-a; alt-lt; home; a1 -End = ctrl-e; alt-gt; end; c1 -Left = left; alt-left; ctrl-b -Right = right; alt-right; ctrl-f -WordLeft = ctrl-left; alt-b -WordRight = ctrl-right; alt-f -Backspace = backspace; ctrl-h -Delete = delete; ctrl-d -DeleteToWordBegin = alt-backspace -DeleteToWordEnd = alt-d -# Mark = -Remove = ctrl-w -# Cut = -Store = alt-w -# Paste = -Yank = ctrl-y -DeleteToEnd = ctrl-k -HistoryPrev = alt-p; ctrl-down -HistoryNext = alt-n; ctrl-up -History = alt-h -Complete = alt-tab -# Clear = -MarkLeft = shift-left -MarkRight = shift-right -MarkToWordBegin = ctrl-shift-left -MarkToWordEnd = ctrl-shift-right -MarkToHome = shift-home -MarkToEnd = shift-end - -[listbox] -Up = up; ctrl-p -Down = down; ctrl-n -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -PageUp = pgup; alt-v -PageDown = pgdn; ctrl-v -Delete = delete; d -Clear = shift-delete; shift-d -View = f3 -Edit = f4 -Enter = enter - -[radio] -Up = up; ctrl-p -Down = down; ctrl-n -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -Select = space - -[tree] -Help = f1 -Reread = f2; ctrl-r -Forget = f3 -ToggleNavigation = f4 -Copy = f5 -Move = f6 -Up = up; ctrl-p -Down = down; ctrl-n -Left = left -Right = right -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -PageUp = pgup; alt-v -PageDown = pgdn; ctrl-v -Enter = enter -Search = ctrl-s; alt-s -Delete = f8; delete - -[help] -Help = f1 -Index = f2; c -Back = f3; left; l -Quit = f10; esc -Up = up; ctrl-p -Down = down; ctrl-n -PageDown = f; space; pgdn; ctrl-v -PageUp = b; pgup; alt-v; backspace -HalfPageDown = d -HalfPageUp = u -Top = home; ctrl-home; ctrl-pgup; a1; alt-lt; g -Bottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g -Enter = right; enter -LinkNext = tab -LinkPrev = alt-tab -NodeNext = n -NodePrev = p - -[chattr] -Up = up; left; ctrl-p -Down = down; right; ctrl-n -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -PageUp = pgup; alt-v -PageDown = pgdn; ctrl-v -Mark = t; shift-t -MarkAndDown = insert - -[editor] -Store = ctrl-insert -Paste = shift-insert -Cut = shift-delete -Up = up -Down = down -Left = left -Right = right -WordLeft = ctrl-left; ctrl-z -WordRight = ctrl-right; ctrl-x -Enter = enter -Return = shift-enter; ctrl-enter; ctrl-shift-enter -BackSpace = backspace; ctrl-h -Delete = delete; ctrl-d -PageUp = pgup -PageDown = pgdn -Home = home -End = end -Tab = tab; shift-tab; ctrl-tab; ctrl-shift-tab -Undo = ctrl-u -Redo = alt-r -Top = ctrl-home; alt-lt -Bottom = ctrl-end; alt-gt -ScrollUp = ctrl-up -ScrollDown = ctrl-down -TopOnScreen = ctrl-pgup -BottomOnScreen = ctrl-pgdn -DeleteToWordBegin = alt-backspace -DeleteToWordEnd = alt-d -DeleteLine = ctrl-y -DeleteToEnd = ctrl-k -# DeleteToHome = -# ParagraphUp = -# ParagraphDown = -Save = f2 -# EditFile = -EditNew = ctrl-n -SaveAs = f12; ctrl-f2 -# Close = -History = alt-shift-e -Mark = f3 -Copy = f5 -Move = f6 -Remove = f8 -# MarkLine = -# MarkWord = -# MarkAll = -# Unmark = -Search = f7 -SearchContinue = f17 -# BlockShiftLeft = -# BlockShiftRight = -MarkPageUp = shift-pgup -MarkPageDown = shift-pgdn -MarkLeft = shift-left -MarkRight = shift-right -MarkToWordBegin = ctrl-shift-left -MarkToWordEnd = ctrl-shift-right -MarkUp = shift-up -MarkDown = shift-down -MarkToHome = shift-home -MarkToEnd = shift-end -MarkToFileBegin = ctrl-shift-home -MarkToFileEnd = ctrl-shift-end -MarkToPageBegin = ctrl-shift-pgup -MarkToPageEnd = ctrl-shift-pgdn -MarkScrollUp = ctrl-shift-up -MarkScrollDown = ctrl-shift-down -# MarkParagraphUp = -# MarkParagraphDown = -MarkColumnPageUp = alt-pgup -MarkColumnPageDown = alt-pgdn -MarkColumnLeft = alt-left -MarkColumnRight = alt-right -MarkColumnUp = alt-up -MarkColumnDown = alt-down -# MarkColumnScrollUp = -# MarkColumnScrollDown = -# MarkColumnParagraphUp = -# MarkColumnParagraphDown = -BlockSave = ctrl-f -MarkColumn = f13 -Replace = f4 -ReplaceContinue = f14 -Complete = alt-tab -InsertFile = f15 -Quit = f10; esc -InsertOverwrite = insert -Help = f1 -# Date = -Refresh = ctrl-l -Goto = alt-l -Sort = alt-t -Mail = alt-m -ParagraphFormat = alt-p -MatchBracket = alt-b -ExternalCommand = alt-u -UserMenu = f11 -Menu = f9 -Bookmark = alt-k -BookmarkFlush = alt-o -BookmarkNext = alt-j -BookmarkPrev = alt-i -# History = -Shell = ctrl-o -InsertLiteral = ctrl-q -# MacroStartRecord = -# MacroStopRecord = -MacroStartStopRecord = ctrl-r -# MacroDelete = -ShowNumbers = alt-n -ShowTabTws = alt-underline -SyntaxOnOff = ctrl-s -# SyntaxChoose = -# ShowMargin = -Find = alt-enter -FilePrev = alt-minus -FileNext = alt-plus -# RepeatStartStopRecord = -SelectCodepage = alt-e -# Options = -# OptionsSaveMode = -# SpellCheck = -SpellCheckCurrentWord = ctrl-p -# SpellCheckSelectLang = -# LearnKeys = -# WindowMove = -# WindowResize = -# WindowFullscreen = -# WindowList = -# WindowNext = -# WindowPrev = -# ExtendedKeyMap = - -[viewer] -Help = f1 -WrapMode = f2 -Quit = f3; f10; q; esc -HexMode = f4 -Goto = f5 -Search = f7 -SearchForward = slash -SearchBackward = question -SearchContinue = f17; n -SearchForwardContinue = ctrl-s -SearchBackwardContinue = ctrl-r -SearchOppositeContinue = shift-n -MagicMode = f8 -NroffMode = f9 -Home = ctrl-a -End = ctrl-e -Left = h; left -Right = l; right -LeftQuick = ctrl-left -RightQuick = ctrl-right -Up = k; y; insert; up; ctrl-p -Down = j; e; delete; down; enter; ctrl-n -PageDown = f; space; pgdn; ctrl-v -PageUp = b; pgup; alt-v; backspace -HalfPageDown = d -HalfPageUp = u -Top = home; ctrl-home; ctrl-pgup; a1; alt-lt; g -Bottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g -BookmarkGoto = m -Bookmark = r -FileNext = ctrl-f -FilePrev = ctrl-b -SelectCodepage = alt-e -Shell = ctrl-o -Ruler = alt-r -History = alt-shift-e - -[viewer:hex] -Help = f1 -HexEditMode = f2 -Quit = f3; f10; q; esc -HexMode = f4 -Goto = f5 -Save = f6 -Search = f7 -SearchForward = slash -SearchBackward = question -SearchContinue = f17; n -SearchForwardContinue = ctrl-s -SearchBackwardContinue = ctrl-r -SearchOppositeContinue = shift-n -MagicMode = f8 -NroffMode = f9 -ToggleNavigation = tab -Home = ctrl-a; home -End = ctrl-e; end -Left = b; left -Right = f; right -Up = k; y; up -Down = j; delete; down -PageDown = pgdn; ctrl-v -PageUp = pgup; alt-v -Top = ctrl-home; ctrl-pgup; a1; alt-lt; g -Bottom = ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g -History = alt-shift-e - -[diffviewer] -ShowSymbols = alt-s; s -ShowNumbers = alt-n; l -SplitFull = f -SplitEqual = equal -SplitMore = gt -SplitLess = lt -Tab2 = 2 -Tab3 = 3 -Tab4 = 4 -Tab8 = 8 -Swap = ctrl-u -Redo = ctrl-r -HunkNext = n; enter; space -HunkPrev = p; backspace -Goto = g; shift-g -Save = f2 -Edit = f4 -EditOther = f14 -Merge = f5 -MergeOther = f15 -Search = f7 -SearchContinue = f17 -Options = f9 -Top = ctrl-home -Bottom = ctrl-end -Down = down -Up = up -LeftQuick = ctrl-left -RightQuick = ctrl-right -Left = left -Right = right -PageDown = pgdn -PageUp = pgup -Home = home -End = end -Help = f1 -Quit = f10; q; shift-q; esc -Shell = ctrl-o -SelectCodepage = alt-e diff --git a/recipes/wip/files/mc/source/misc/mc.emacs.keymap b/recipes/wip/files/mc/source/misc/mc.emacs.keymap deleted file mode 100644 index 5aa6128c6f..0000000000 --- a/recipes/wip/files/mc/source/misc/mc.emacs.keymap +++ /dev/null @@ -1,499 +0,0 @@ -[filemanager] -ChangePanel = tab; ctrl-i -Help = f1 -UserMenu = f2 -View = f3 -# ViewFile = -Edit = f4 -# EditForceInternal = -Copy = f5 -Move = f6 -MakeDir = f7 -Delete = f8 -Menu = f9 -Quit = f10 -MenuLastSelected = f19 -QuitQuiet = f20 -Find = alt-question -CdQuick = alt-c -HotList = ctrl-backslash -Reread = ctrl-r -DirSize = ctrl-space -Suspend = ctrl-z -Swap = ctrl-u -History = alt-h -# PanelListing = -# SetupListingFormat = -ShowHidden = alt-dot -SplitVertHoriz = alt-comma -SplitEqual = alt-equal -SplitMore = alt-shift-right -SplitLess = alt-shift-left -Shell = ctrl-o -PutCurrentPath = alt-a -PutOtherPath = alt-shift-a -PutCurrentSelected = alt-enter; ctrl-enter -PutCurrentFullSelected = ctrl-shift-enter -ViewFiltered = alt-exclamation -Select = kpplus -Unselect = kpminus -SelectInvert = kpasterisk -ScreenList = alt-prime -# OptionsLayout = -# OptionsAppearance = -# OptionsPanel = -# OptionsConfirm = -# OptionsDisplayBits = -# OptionsVfs = -# LearnKeys = -# SaveSetup = -# EditExtensionsFile = -# EditFileHighlightFile = -# Filter = -# ConnectShell = -# ConnectFtp = -# Undelete = -EditorViewerHistory = alt-shift-e -ExtendedKeyMap = ctrl-x - -[filemanager:xmap] -ChangeMode = c -ChangeOwn = o -ChangeAttributes = e -CompareDirs = d -CompareFiles = ctrl-d -HotListAdd = h -LinkSymbolicEdit = ctrl-s -Link = l -LinkSymbolic = s -LinkSymbolicRelative = v -PanelInfo = i -PanelQuickView = q -ExternalPanelize = exclamation -VfsList = a -Jobs = j -PutCurrentPath = p -PutOtherPath = ctrl-p -PutCurrentTagged = t -PutOtherTagged = ctrl-t -PutCurrentLink = r -PutOtherLink = ctrl-r - -[panel] -CycleListingFormat = alt-t -Search = ctrl-s; alt-s -Mark = insert; ctrl-t -MarkUp = shift-up -MarkDown = shift-down -# MarkLeft = -# MarkRight = -Down = down; ctrl-n -Up = up; ctrl-p -Left = left -Right = right -PageUp = pgup; alt-v -PageDown = pgdn; ctrl-v -Enter = enter -PanelOtherCd = alt-o -PanelOtherCdLink = alt-l -ViewRaw = f13 -EditNew = f14 -CopySingle = f15 -MoveSingle = f16 -DeleteSingle = f18 -# SelectExt = -Select = alt-plus -Unselect = alt-minus -SelectInvert = alt-asterisk -CdChild = ctrl-pgdn -CdParent = ctrl-pgup -# CdParentSmart = -# Panelize = -History = alt-shift-h -HistoryNext = alt-u -HistoryPrev = alt-y -BottomOnScreen = alt-j -MiddleOnScreen = alt-r -TopOnScreen = alt-g -PanelOtherSync = alt-i -SelectCodepage = alt-e -Top = alt-lt; home; a1 -Bottom = alt-gt; end; c1 -# Sort = -# SortPrev = -# SortNext = -# SortReverse = -# SortByName = -# SortByExt = -# SortBySize = -# SortByMTime = -# Filter = -# ScrollLeft = -# ScrollRight = - -[dialog] -Ok = enter -Cancel = f10; esc -Up = left; up -#Left = left; up -Down = right; down -#Right = right; down -Help = f1 -Suspend = ctrl-z -Refresh = ctrl-l -ScreenList = alt-prime -ScreenNext = alt-rbrace -ScreenPrev = alt-lbrace - -[menu] -Help = f1 -Left = left; ctrl-b -Right = right; ctrl-f -Up = up; ctrl-p -Down = down; ctrl-n -Home = home; alt-lt; ctr-a -End = end; alt-gt ctrl-e -Enter = enter -Quit = F10; esc; ctrl-g - -[input] -Home = ctrl-a; alt-lt; home; a1 -End = ctrl-e; alt-gt; end; c1 -Left = left; alt-left; ctrl-b -Right = right; alt-right; ctrl-f -WordLeft = ctrl-left; alt-b -WordRight = ctrl-right; alt-f -Backspace = backspace -Delete = delete -DeleteToWordBegin = alt-backspace -DeleteToWordEnd = alt-d -# Mark = -Remove = ctrl-w -# Cut = -Store = alt-w -# Paste = -Yank = ctrl-y -DeleteToEnd = ctrl-k -HistoryPrev = alt-p; ctrl-down -HistoryNext = alt-n; ctrl-up -History = alt-h -Complete = alt-tab -# Clear = -# MarkLeft = -# MarkRight = -# MarkToWordBegin = -# MarkToWordEnd = -# MarkToHome = -# MarkToEnd = - -[listbox] -Up = up; ctrl-p -Down = down; ctrl-n -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -PageUp = pgup; alt-v -PageDown = pgdn; ctrl-v -Delete = delete; d -Clear = shift-delete; shift-d -View = f3 -Edit = f4 -Enter = enter - -[radio] -Up = up; ctrl-p -Down = down; ctrl-n -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -Select = space - -[tree] -Help = f1 -Reread = f2; ctrl-r -Forget = f3 -ToggleNavigation = f4 -Copy = f5 -Move = f6 -Up = up; ctrl-p -Down = down; ctrl-n -Left = left -Right = right -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -PageUp = pgup; alt-v -PageDown = pgdn; ctrl-v -Enter = enter -Search = ctrl-s; alt-s -Delete = f8; delete - -[help] -Help = f1 -Index = f2; c -Back = f3; left; l -Quit = f10; esc; ctrl-g -Up = up; ctrl-p -Down = down; ctrl-n -PageDown = f; space; pgdn; ctrl-v -PageUp = b; pgup; alt-v; backspace -HalfPageDown = d -HalfPageUp = u -Top = home; ctrl-home; ctrl-pgup; a1; alt-lt; g -Bottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g -Enter = right; enter -LinkNext = tab -LinkPrev = alt-tab -NodeNext = n -NodePrev = p - -[chattr] -Up = up; left; ctrl-p -Down = down; right; ctrl-n -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -PageUp = pgup; alt-v -PageDown = pgdn; ctrl-v -Mark = t; shift-t -MarkAndDown = insert - -[editor] -Store = alt-w -Paste = ctrl-y -Cut = ctrl-w -Up = up; ctrl-p -Down = down; ctrl-n -Left = left; ctrl-b -Right = right; ctrl-f -WordLeft = ctrl-left; alt-b -WordRight = ctrl-right; alt-f -Enter = enter -Return = shift-enter; ctrl-enter; ctrl-shift-enter -BackSpace = backspace -Delete = delete -PageUp = pgup; alt-v -PageDown = pgdn; ctrl-v -Home = home; ctrl-a -End = end; ctrl-e -Tab = tab; shift-tab; ctrl-tab; ctrl-shift-tab -Undo = ctrl-u -# Redo = -Top = ctrl-home; alt-lt -Bottom = ctrl-end; alt-gt -ScrollUp = ctrl-up -ScrollDown = ctrl-down -TopOnScreen = ctrl-pgup -BottomOnScreen = ctrl-pgdn -DeleteToWordBegin = alt-backspace -DeleteToWordEnd = alt-d -DeleteLine = ctrl-y -DeleteToEnd = ctrl-k -# DeleteToHome = -# ParagraphUp = -# ParagraphDown = -Save = f2 -# EditFile = -SaveAs = f12; ctrl-f2 -# Close = -History = alt-shift-e -Mark = f3; ctrl-at -Copy = f5 -Move = f6 -Remove = f8 -# MarkLine = -# MarkWord = -# MarkAll = -# Unmark = -Search = f7; ctrl-s -SearchContinue = f17 -# BlockShiftLeft = -# BlockShiftRight = -MarkPageUp = shift-pgup -MarkPageDown = shift-pgdn -MarkLeft = shift-left -MarkRight = shift-right -MarkToWordBegin = ctrl-shift-left -MarkToWordEnd = ctrl-shift-right -MarkUp = shift-up -MarkDown = shift-down -MarkToHome = shift-home -MarkToEnd = shift-end -MarkToFileBegin = ctrl-shift-home -MarkToFileEnd = ctrl-shift-end -MarkToPageBegin = ctrl-shift-pgup -MarkToPageEnd = ctrl-shift-pgdn -MarkScrollUp = ctrl-shift-up -MarkScrollDown = ctrl-shift-down -# MarkParagraphUp = -# MarkParagraphDown = -MarkColumnPageUp = alt-pgup -MarkColumnPageDown = alt-pgdn -MarkColumnLeft = alt-left -MarkColumnRight = alt-right -MarkColumnUp = alt-up -MarkColumnDown = alt-down -# MarkColumnScrollUp = -# MarkColumnScrollDown = -# MarkColumnParagraphUp = -# MarkColumnParagraphDown = -# BlockSave = -MarkColumn = f13 -Replace = f4 -ReplaceContinue = f14 -Complete = alt-tab -InsertFile = f15 -Quit = f10; esc -InsertOverwrite = insert -Help = f1 -# Date = -Refresh = ctrl-l -Goto = alt-l -Sort = alt-t -# Mail = -ParagraphFormat = alt-p -# MatchBracket = -ExternalCommand = alt-u -UserMenu = f11 -Menu = f9 -# Bookmark = -# BookmarkFlush = -# BookmarkNext = -# BookmarkPrev = -# History = -Shell = ctrl-o -InsertLiteral = ctrl-q -# MacroStartRecord = -# MacroStopRecord = -MacroStartStopRecord = ctrl-r -# MacroDelete = -ShowNumbers = alt-n -ShowTabTws = alt-underline -SyntaxOnOff = ctrl-s -# SyntaxChoose = -# ShowMargin = -Find = alt-enter -FilePrev = alt-minus -FileNext = alt-plus -# RepeatStartStopRecord = -SelectCodepage = alt-e -# Options = -# OptionsSaveMode = -# SpellCheck = -# SpellCheckCurrentWord = -# SpellCheckSelectLang = -# LearnKeys = -# WindowMove = -# WindowResize = -# WindowFullscreen = -# WindowList = -# WindowNext = -# WindowPrev = -ExtendedKeyMap = ctrl-x - -[editor:xmap] -EditNew = k - -[viewer] -Help = f1 -WrapMode = f2 -Quit = f3; f10; q; esc -HexMode = f4 -Goto = f5 -Search = f7 -SearchForward = slash -SearchBackward = question -SearchContinue = f17; n -SearchForwardContinue = ctrl-s -SearchBackwardContinue = ctrl-r -SearchOppositeContinue = shift-n -MagicMode = f8 -NroffMode = f9 -Home = ctrl-a -End = ctrl-e -Left = h; left -Right = l; right -LeftQuick = ctrl-left -RightQuick = ctrl-right -Up = k; y; insert; up; ctrl-p -Down = j; e; delete; down; enter; ctrl-n -PageDown = f; space; pgdn; ctrl-v -PageUp = b; pgup; alt-v; backspace -HalfPageDown = d -HalfPageUp = u -Top = home; ctrl-home; ctrl-pgup; a1; alt-lt; g -Bottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g -BookmarkGoto = m -Bookmark = r -FileNext = ctrl-f -FilePrev = ctrl-b -SelectCodepage = alt-e -Shell = ctrl-o -Ruler = alt-r -History = alt-shift-e - -[viewer:hex] -Help = f1 -HexEditMode = f2 -Quit = f3; f10; q; esc -HexMode = f4 -Goto = f5 -Save = f6 -Search = f7 -SearchForward = slash -SearchBackward = question -SearchContinue = f17; n -SearchForwardContinue = ctrl-s -SearchBackwardContinue = ctrl-r -SearchOppositeContinue = shift-n -MagicMode = f8 -NroffMode = f9 -ToggleNavigation = tab -Home = ctrl-a; home -End = ctrl-e; end -Left = b; left -Right = f; right -Up = k; y; up -Down = j; delete; down -PageDown = pgdn; ctrl-v -PageUp = pgup; alt-v -Top = ctrl-home; ctrl-pgup; a1; alt-lt; g -Bottom = ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g -History = alt-shift-e - -[diffviewer] -ShowSymbols = alt-s; s -ShowNumbers = alt-n; l -SplitFull = f -SplitEqual = equal -SplitMore = gt -SplitLess = lt -Tab2 = 2 -Tab3 = 3 -Tab4 = 4 -Tab8 = 8 -Swap = ctrl-u -Redo = ctrl-r -HunkNext = n; enter; space -HunkPrev = p; backspace -Goto = g; shift-g -Save = f2 -Edit = f4 -EditOther = f14 -Merge = f5 -MergeOther = f15 -Search = f7 -SearchContinue = f17 -Options = f9 -Top = ctrl-home -Bottom = ctrl-end -Down = down -Up = up -LeftQuick = ctrl-left -RightQuick = ctrl-right -Left = left -Right = right -PageDown = pgdn -PageUp = pgup -Home = home -End = end -Help = f1 -Quit = f10; q; shift-q; esc -Shell = ctrl-o -SelectCodepage = alt-e diff --git a/recipes/wip/files/mc/source/misc/mc.ext.ini.in b/recipes/wip/files/mc/source/misc/mc.ext.ini.in deleted file mode 100644 index 8604eca8de..0000000000 --- a/recipes/wip/files/mc/source/misc/mc.ext.ini.in +++ /dev/null @@ -1,1182 +0,0 @@ -# Midnight Commander 4.0 extension file -# -# Warning: The structure of this file has been completely changed with the version 4.0! -# -# All lines starting with # or empty lines are ignored. -# -# IMPORTANT: mc scans this file only upon first use or after editing it using the -# mc "Edit extension file" command (F9-c-e). If you edit this file in any other way -# while mc is running, you will need to press F9-c-e and exit the editor for your -# changes to take effect, or exit mc and start it again. -# -# Section name can be anything with following exceptions: -# there are two reserved section names: -# mc.ext.ini -# Default -# special name pattern: -# Include/xxxxx -# See below for more details. -# -# Section [mc.ext.ini] is mandatory. It contains file metadata. -# "Version" parameter is mandatory. It contains the file format version. -# -# Section [Default] is optional. It is applied only if no other match was found. -# -# Sections like [Include/xxxx] can be referenced as "Include=xxxx" from other sections. -# Section [Include/xxxx] can be located before or after sections that point to it. -# -# Sections are processed from top to bottom, thus the order is important. -# Multiple sections with the same name are allowed, they are merged together. -# Sections may contain the same key multiple times; the last entry wins. -# -# [Default] should be a catch-all action and come last. -# -# A section describing a file can contain following keys: -# -# File descriptions: -# -# Directory -# Matches any directory matching regular expression. -# Always case sensitive. -# This key has the highest priority over other keys. If this key is present, -# other keys are ignored. -# -# Type -# Matches files if `file %f` matches regular expression -# (the "filename:" part is removed from `file %f` output). -# Ignored if the "file" utility isn't used (not found during the configure step -# or disabled in the ini-file). -# -# TypeIgnoreCase [true|false] -# Defines whether the Type value is case sensitive or not. -# If absent, Type is case sensitive. -# -# Regex -# An extended regular expression -# Please note that we are using the PCRE library and thus \\| matches -# the literal | and | has a special meaning (or), and () have a special meaning -# and \\( \\) stand for literal ( ). -# -# An unescaped backslash \ is handled as invalid escape sequences in glib = 2.77.3 and -# glib >= 2.79 (https://gitlab.gnome.org/GNOME/glib/-/issues/3094), therefore backslash -# must be escaped. -# -# Example: -# Regex=\\.t(ar\\.lzma|lz)$ -# matches *.tar.lzma or *.tlz. -# -# RegexIgnoreCase [true|false] -# Defines whether the Regex value is case sensitive or not. -# If absent, Regex is case sensitive. -# -# Shell -# Describes an extension when starting with a dot (no wildcards). -# -# Example: -# Shell=.tar -# matches *.tar. -# -# If it doesn't start with a dot, it matches only a file of that name. -# -# If both keys Regex and Shell are in the same section, Regex is used -# and Shell is ignored. -# -# ShellIgnoreCase [true|false] -# Defines whether the Shell value is case sensitive or not. -# If absent, Shell is case sensitive. -# -# Include -# Reference to another section. -# -# Example: -# Include=video -# points to the [Include/video] section. -# -# Commands: -# -# Open -# Execute the command if the user presses Enter or doubleclicks it. -# -# View -# Execute the command if the user presses F3. -# -# Edit -# Execute the command if the user presses F4. -# -# All commands are ignored if the section contains the Include key. -# -# Command is any one-line shell command, with the following substitutions: -# -# %% -# The % character -# -# %p -# Name of the current file without the path. -# Also provided to the external application as MC_EXT_BASENAME environment variable. -# -# %f -# Name of the current file. Unlike %p, if the file is located on a non-local -# virtual filesystem, that is either tarfs or ftpfs, then the file will be -# temporarily copied into a local directory and %f will be the full path -# to this local temporary file. -# If you don't want to get a local copy and want to get the virtual fs path -# (like /ftp://ftp.cvut.cz/pub/hungry/xword), then use %d/%p instead of %f. -# Also provided to the external application as MC_EXT_FILENAME environment variable. -# -# %d -# Name of the current directory without the trailing slash (`pwd`). -# Also provided to the external application as MC_EXT_CURRENTDIR environment variable. -# -# %s -# "Selected files", that is space separated list of tagged files if any or the name -# of the current file. -# Also provided to the external application as MC_EXT_SELECTED environment variable. -# -# %t -# List of the tagged files. -# Also provided to the external application as MC_EXT_ONLYTAGGED environment variable. -# -# %u -# List of the tagged files (they will be untaged after the command is executed). -# -# (If the letter following the % is uppercase, then it refers to the opposite panel. -# But you shouldn't have to use it in this file.) -# -# %cd -# The rest is a path mc should change into (cd won't work, since it's a child process). -# %cd handles even vfs names. -# -# %view -# The command output will be piped into mc's internal file viewer. If you use -# only %view and no command, the viewer will load %f file instead (that is no piping, -# which is the difference to %view cat %f). -# -# %view may be directly followed by {} with one or more of the following -# separated by commas: -# ascii (ascii mode) -# hex (hex mode), -# nroff (color highlighting for text using escape sequences), -# unform (no highlighting for nroff sequences) -# -# %var{VAR:default} -# This macro will expand to the value of the VAR variable in the environment if it's -# set, otherwise the default value will be used. This is similar to the Bourne shell -# ${VAR-default} construct. -# -# Section can contain both Type and Regex or Type and Shell keys. In this case -# they are handled as an AND condition. -# -# Example: -# Shell=.3gp -# Type=^ISO Media.*3GPP -# -# matches *.3gp files for which `file` output is a line starting with "ISO Media" -# and containing "3GPP". -# -# If there are more than one keys with the same name in a section, the last key will be used. -# -# -# Any new entries you want to add are always welcome if they are useful on more than one -# system. You can post your modifications as tickets at www.midnight-commander.org. - - -### Changes ### -# -# Reorganization: 2012-03-07 Slava Zanko -# 2021-03-28 Andrew Borodin -# 2021-08-24 Tomas Szepe -# 2022-09-11 Andrew Borodin : port to INI format. - -[mc.ext.ini] -Version=4.0 - -### GIT Repo ### -[gitfs changeset] -Regex=^\\[git\\] -Open=%cd %p/changesetfs:// -View=%cd %p/patchsetfs:// - -### Archives ### -# Since we use "file -z", we should use Regex and Shell first, then Type. - - -######### Files by name (Regex and Shell) ######### - -# .tgz, .tpz, .tar.gz, .tar.z, .tar.Z -[tar.gzip] -Regex=\\.t([gp]?z|ar\\.g?[zZ])$ -Include=tar.gz - -[gem] -Shell=.gem -Include=tar.gz - -[crate] -Shell=.crate -Include=tar.gz - -[tar.bzip] -Shell=.tar.bz -# Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip - -[tar.bzip2] -Regex=\\.t(ar\\.bz2|bz2?|b2)$ -Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.bzip2 - -# .tar.lzma, .tlz -[tar.lzma] -Regex=\\.t(ar\\.lzma|lz)$ -Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzma - -[tar.lz] -Shell=.tar.lz -Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz - -# .tar.lz4, .tlz4 -[tar.lz4] -Regex=\\.t(ar\\.lz4|lz4)$ -Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lz4 - -# .tar.lzo, .tzo -[tar.lzo] -Regex=\\.t(ar\\.lzo|zo)$ -Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.lzo - -# .tar.xz, .txz -[tar.xz] -Regex=\\.t(ar\\.xz|xz)$ -Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.xz - -# .tar.zst, .tzst -[tar.zst] -Regex=\\.t(ar\\.zst|zst)$ -Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.zst - -# .tar.F - used on QNX -[tar.F] -Shell=.tar.F -# Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.F - -# .qpr/.qpk - QNX Neutrino package installer files -[tar.qpr] -Regex=\\.qp[rk]$ -Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.qpr - -[tar] -Shell=.tar -ShellIgnoreCase=true -Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar - -[arj] -Regex=\\.a(rj|[0-9][0-9])$ -RegexIgnoreCase=true -Open=%cd %p/uarj:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arj - -[cab] -Shell=.cab -ShellIgnoreCase=true -Open=%cd %p/ucab:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cab - -[ha] -Shell=.ha -ShellIgnoreCase=true -Open=%cd %p/uha:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ha - -[rar] -Regex=\\.r(ar|[0-9][0-9])$ -RegexIgnoreCase=true -Open=%cd %p/urar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view rar - -# ALZip -[alz] -Shell=.alz -ShellIgnoreCase=true -Open=%cd %p/ualz:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view alz - -[cpio.Z] -Shell=.cpio.Z -Open=%cd %p/ucpio:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.z - -[cpio.lz] -Shell=.cpio.lz -Open=%cd %p/ucpio:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz - -[cpio.lz4] -Shell=.cpio.lz4 -Open=%cd %p/ucpio:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lz4 - -[cpio.lzo] -Shell=.cpio.lzo -Open=%cd %p/ucpio:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.lzo - -[cpio.xz] -Shell=.cpio.xz -Open=%cd %p/ucpio:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.xz - -[cpio.zst] -Shell=.cpio.zst -Open=%cd %p/ucpio:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.zst - -[cpio.gz] -Shell=.cpio.gz -Open=%cd %p/ucpio:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio.gz - -[cpio] -Shell=.cpio -ShellIgnoreCase=true -Include=cpio - -[initrd] -Regex=^(initramfs.*\\.img|initrd(-.+)?\\.img(-.+)?)$ -Include=cpio - -[7zip] -Shell=.7z -ShellIgnoreCase=true -Open=%cd %p/u7z:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view 7z - -[patch] -Regex=\\.(diff|patch)$ -Open=%cd %p/patchfs:// -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view cat - -[patch.gz] -Regex=\\.(diff|patch)\\.(gz|Z)$ -Open=%cd %p/patchfs:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz - -[patch.bz2] -Regex=\\.(diff|patch)\\.bz2$ -Open=%cd %p/patchfs:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2 - -[patch.xz] -Regex=\\.(diff|patch)\\.xz$ -Open=%cd %p/patchfs:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz - -[patch.zst] -Regex=\\.(diff|patch)\\.zst$ -Open=%cd %p/patchfs:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst - -[ls-lR] -Regex=(^|\\.)ls-?lR(\\.gz|Z|bz2)$ -Open=%cd %p/lslR:// - -[trpm] -Shell=.trpm -Open=%cd %p/trpm:// -View=%view{ascii} @EXTHELPERSDIR@/package.sh view trpm - -# RPM packages (SuSE uses *.spm for source packages) -[src.rpm] -Regex=\\.(src\\.rpm|spm)$ -Open=%cd %p/rpm:// -View=%view{ascii} @EXTHELPERSDIR@/package.sh view src.rpm - -[rpm] -Shell=.rpm -Open=%cd %p/rpm:// -View=%view{ascii} @EXTHELPERSDIR@/package.sh view rpm - -[deb] -Regex=\\.u?deb$ -Open=%cd %p/deb:// -View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb - -[dpkg] -Shell=.debd -Open=%cd %p/debd:// -View=%view{ascii} @EXTHELPERSDIR@/package.sh view debd - -[apt] -Shell=.deba -Open=%cd %p/deba:// -View=%view{ascii} @EXTHELPERSDIR@/package.sh view deba - -[ISO9660] -Shell=.iso -ShellIgnoreCase=true -Open=%cd %p/iso9660:// -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view iso9660 - -[ar] -Regex=\\.s?a$ -Open=%cd %p/uar:// -#Open=%view{ascii} ar tv %f -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view ar - -[gplib] -Shell=.lib -ShellIgnoreCase=true -Open=%cd %p/ulib:// -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lib - -### Sources ### - -[C/C++] -Regex=\\.(c|cc|cpp|cxx|c\\+\\+)$ -RegexIgnoreCase=true -Include=editor - -[C/C++ header] -Regex=\\.(h|hh|hpp|hxx|h\\+\\+)$ -RegexIgnoreCase=true -Include=editor - -[Fortran] -Shell=.f -ShellIgnoreCase=true -Include=editor - -[Assembler] -Regex=\\.(s|asm)$ -RegexIgnoreCase=true -Include=editor - -[Typescript] -Shell=.ts -ShellIgnoreCase=true -Type=^Java source -Include=editor - -# .so libraries -[so] -Regex=\\.(so|so\\.[0-9\\.]*)$ -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view so - -# .dylib libraries -[dylib] -Regex=\\.(dylib|dylib\\.[0-9\\.]*)$ -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib - - -### Documentation ### - -#[Texinfo] -#Regex=\\.(te?xi|texinfo)$ - -[info-by-shell] -Shell=.info -Open=@EXTHELPERSDIR@/text.sh open info - -# Exception: .3gp are video files, not manual pages -[3gp] -Shell=.3gp -ShellIgnoreCase=true -Type=^ISO Media.*3GPP -Include=video - -# Troff with me macros. -# Exception - "read.me" is not a nroff file. -[read.me] -Shell=read.me -Open= -View= - -[troff] -Shell=.me -Open=@EXTHELPERSDIR@/text.sh open nroff.me %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.me %var{PAGER:more} - -[roff with ms macros] -Shell=.ms -Open=@EXTHELPERSDIR@/text.sh open nroff.ms %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view nroff.ms %var{PAGER:more} - -# Manual page - -[man.lz] -Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lz$ -Open=@EXTHELPERSDIR@/text.sh open man.lz %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz %var{PAGER:more} - -[man.lz4] -Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lz4$ -Open=@EXTHELPERSDIR@/text.sh open man.lz4 %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lz4 %var{PAGER:more} - -[man.lzma] -Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lzma$ -Open=@EXTHELPERSDIR@/text.sh open man.lzma %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzma %var{PAGER:more} - -[man.lzo] -Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.lzo$ -Open=@EXTHELPERSDIR@/text.sh open man.lzo %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.lzo %var{PAGER:more} - -[man.xz] -Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.xz$ -Open=@EXTHELPERSDIR@/text.sh open man.xz %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.xz %var{PAGER:more} - -[man.zst] -Regex=([^0-9]|^[^\\.]*)\\.([1-9][A-Za-z]*|[ln])\\.zst$ -Open=@EXTHELPERSDIR@/text.sh open man.zst %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.zst %var{PAGER:more} - -# Perl pod page -[pod] -Shell=.pod -Open=@EXTHELPERSDIR@/text.sh open pod %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view pod %var{PAGER:more} - -[chm] -Shell=.chm -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/text.sh open chm - -### Images ### - -[xcf] -Shell=.xcf -Open=@EXTHELPERSDIR@/image.sh open xcf - -[xbm] -Shell=.xbm -Open=@EXTHELPERSDIR@/image.sh open xbm - -[xpm] -Shell=.xpm -Include=image - -[ico] -Shell=.ico -Include=image - -[svg] -Shell=.svg -ShellIgnoreCase=true -View=%view{ascii} @EXTHELPERSDIR@/image.sh view svg -Open=@EXTHELPERSDIR@/image.sh open svg - -[webp] -Shell=.webp -View=%view{ascii} @EXTHELPERSDIR@/image.sh view webp -Open=@EXTHELPERSDIR@/image.sh open webp - -[avif] -Shell=.avif -View=%view{ascii} @EXTHELPERSDIR@/image.sh view avif -Open=@EXTHELPERSDIR@/image.sh open avif - -### Sound files ### - -[sound] -Regex=\\.(wav|snd|voc|au|smp|aiff|snd|m4a|ape|aac|wv|spx|flac)$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/sound.sh open common -View=%view{ascii} @EXTHELPERSDIR@/sound.sh view common - -[mod] -Regex=\\.(mod|s3m|xm|it|mtm|669|stm|ult|far)$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/sound.sh open mod - -[wav22] -Shell=.waw22 -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/sound.sh open wav22 - -[mp3] -Shell=.mp3 -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/sound.sh open mp3 -View=%view{ascii} @EXTHELPERSDIR@/sound.sh view mp3 - -[ogg] -Regex=\\.og[gax]$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/sound.sh open ogg -View=%view{ascii} @EXTHELPERSDIR@/sound.sh view ogg - -[opus] -Shell=.opus -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/sound.sh open opus -View=%view{ascii} @EXTHELPERSDIR@/sound.sh view opus - -[midi] -Regex=\\.(midi?|rmid?)$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/sound.sh open midi - -[wma] -Shell=.wma -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/sound.sh open wma -View=%view{ascii} @EXTHELPERSDIR@/sound.sh view wma - -# Play list -[playlist] -Regex=\\.(m3u|pls)$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/sound.sh open playlist - - -### Video ### - -[avi] -Shell=.avi -ShellIgnoreCase=true -Include=video - -[asf] -Regex=\\.as[fx]$ -RegexIgnoreCase=true -Include=video - -[divx] -Shell=.divx -ShellIgnoreCase=true -Include=video - -[mkv] -Shell=.mkv -ShellIgnoreCase=true -Include=video - -[mov] -Regex=\\.(mov|qt)$ -RegexIgnoreCase=true -Include=video - -[mp4] -Regex=\\.(mp4|m4v|mpe?g)$ -RegexIgnoreCase=true -Include=video - -# MPEG-2 TS container + H.264 codec -[mts] -Shell=.mts -ShellIgnoreCase=true -Include=video - -[ts] -Shell=.ts -ShellIgnoreCase=true -Include=video - -[bob] -Shell=.vob -ShellIgnoreCase=true -Include=video - -[wmv] -Shell=.wmv -ShellIgnoreCase=true -Include=video - -[fli] -Regex=\\.fl[icv]$ -RegexIgnoreCase=true -Include=video - -[ogv] -Shell=.ogv -ShellIgnoreCase=true -Include=video - -[realaudio] -Regex=\\.ra?m$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/video.sh open ram - -[webm-by-shell] -Shell=.webm -ShellIgnoreCase=true -Include=video - - -### Documents ### - -[html] -Regex=\\.s?html?$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/web.sh open html -View=%view{ascii} @EXTHELPERSDIR@/web.sh view html - -[StarOffice-5.2] -Shell=.sdw -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open ooffice - -# StarOffice 6 and OpenOffice.org formats -[OpenOffice.org] -Regex=\\.(odt|fodt|ott|sxw|stw|ods|fods|ots|sxc|stc|odp|fodp|otp|sxi|sti|odg|fodg|otg|sxd|std|odb|odf|sxm|odm|sxg)$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open ooffice -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view odt - -[AbiWord] -Shell=.abw -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open abw - -[Gnumeric] -Shell=.gnumeric -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open gnumeric - -[rtf] -Shell=.rtf -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open msdoc - -# Microsoft Word Document -[msdoc-by-shell] -Regex=\\.(do[ct]|wri|docx)$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open msdoc -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc - -# Microsoft Excel Worksheet -[msxls-by-shell] -Regex=\\.(xl[sw]|xlsx)$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open msxls -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls - -# Microsoft PowerPoint Presentation -[msppt] -Regex=\\.(pp[ts]|pptx)$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open msppt -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msppt - -[dvi] -Shell=.dvi -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open dvi -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view dvi - -[tex] -Shell=.tex -ShellIgnoreCase=true -Include=editor - -[markdown] -Regex=\\.mk?d$ -RegexIgnoreCase=true -Include=editor - -[djvu] -Regex=\\.djvu?$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open djvu -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view djvu - -# Comic Books -[cbr] -Regex=\\.cb[zr]$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open comic - -# Epup, mobi, fb2 -[ebook] -Regex=\\.(epub|mobi|fb2)$ -RegexIgnoreCase=true -Open=@EXTHELPERSDIR@/doc.sh open ebook -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ebook - - -### Miscellaneous ### - -# Compiled Java classes -[javaclass] -Shell=.class -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view javaclass - -[Imakefile] -Shell=Imakefile -Open=xmkmf -a - -# Makefile.PL (MakeMaker) -[Makefile.pl] -Regex=^Makefile\\.(PL|pl)$ -Open=%var{PERL:perl} %f - -[Makefile] -Regex=^[Mm]akefile$ -Open=make -f %f %{Enter parameters} - -[dbf] -Shell=.dbf -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/misc.sh open dbf -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dbf - -# REXX script -[rexx] -Regex=\\.(rexx?|cmd)$ -Open=rexx %f %{Enter parameters};echo "Press ENTER";read y - -# Disk images for Commodore computers (VIC20, C64, C128) -[d64] -Shell=.d64 -ShellIgnoreCase=true -Open=%cd %p/uc1541:// -View=%view{ascii} c1541 %f -list - -# Glade, a user interface designer for GTK+ and GNOME -[glade] -Shell=.glade -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/misc.sh open glade - -# Gettext Catalogs -[mo] -Regex=\\.g?mo$ -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view mo - -[po] -Shell=.po -Open=@EXTHELPERSDIR@/misc.sh open po - -[lyx] -Shell=.lyx -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/misc.sh open lyx -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view lyx - -[torrent] -Shell=.torrent -ShellIgnoreCase=true -Open=%cd %p/torrent:// -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view torrent - - -### Plain compressed files ### - -[ace] -Shell=.ace -ShellIgnoreCase=true -Open=%cd %p/uace:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view ace - -[arc] -Shell=.arc -ShellIgnoreCase=true -Open=%cd %p/uarc:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view arc - -[zip-by-shell] -Shell=.zip -ShellIgnoreCase=true -Open=%cd %p/uzip:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip - -[zoo] -Shell=.zoo -ShellIgnoreCase=true -Open=%cd %p/uzoo:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zoo - -[lz4] -Shell=.lz4 -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/archive.sh view lz4 %var{PAGER:more} -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz4 - -[lzo] -Shell=.lzo -ShellIgnoreCase=true -Open=@EXTHELPERSDIR@/archive.sh view lzo %var{PAGER:more} -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzo - -[wim] -Shell=.wim -ShellIgnoreCase=true -Open=%cd %p/uwim:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view wim - - -######### Files by Type ######### - -### Archives ### - -[mailbox] -Type=^ASCII mail text -Open=%cd %p/mailfs:// - -[ipk-deb] -Shell=.ipk -Type=^Debian binary package -Open=%cd %p/deb:// -View=%view{ascii} @EXTHELPERSDIR@/package.sh view deb - -[ipk-openwrt] -Shell=.ipk -Type=\\(gzip compressed -Include=tar.gz - - -### Sources ### - -# Object -[elf] -Type=^ELF -#Open=%var{PAGER:more} %f -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view elf - -[Mach-O] -Type=^Mach-O -#Open=%var{PAGER:more} %f -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view dylib - -### Documentation ### - -# GNU Info page -[info-by-type] -Type=^Info text -Open=@EXTHELPERSDIR@/text.sh open info - -# Manual page - compressed -[troff.gz] -Type=troff.*gzip compressed -Open=@EXTHELPERSDIR@/text.sh open man.gz %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.gz %var{PAGER:more} - -[troff.bzip] -Type=troff.*bzip compressed -Open=@EXTHELPERSDIR@/text.sh open man.bz %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz %var{PAGER:more} - -[troff.bzip2] -Type=troff.*bzip2 compressed -Open=@EXTHELPERSDIR@/text.sh open man.bz2 %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man.bz2 %var{PAGER:more} - -# Manual page -[man] -Type=troff or preprocessor input -Open=@EXTHELPERSDIR@/text.sh open man %var{PAGER:more} -View=%view{ascii,nroff} @EXTHELPERSDIR@/text.sh view man %var{PAGER:more} - - -### Images ### - -[gif] -Type=^GIF -Include=image - -[jpeg] -Type=^JPEG -Include=image - -[bitmap] -Type=^PC bitmap -Include=image - -[png] -Type=^PNG -Include=image - -[jng] -Type=^JNG -Include=image - -[mng] -Type=^MNG -Include=image - -[tiff] -Type=^TIFF -Include=image - -[rbm] -Type=^PBM -Include=image - -[pgm] -Type=^PGM -Include=image - -[ppm] -Type=^PPM -Include=image - -[netpbm] -Type=^Netpbm -Include=image - - -### Video ### - -[webm-by-type] -Type=WebM -Include=video - - -### Documents ### - -[postscript] -Type=^PostScript -Open=@EXTHELPERSDIR@/doc.sh open ps -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view ps - -[pdf] -Type=^PDF -Open=@EXTHELPERSDIR@/doc.sh open pdf -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view pdf - -# Microsoft Word Document -[msdoc-by-type] -Type=^Microsoft Word -Open=@EXTHELPERSDIR@/doc.sh open msdoc -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msdoc - -# Microsoft Excel Worksheet -[msxls-by-type] -Type=^Microsoft Excel -Open=@EXTHELPERSDIR@/doc.sh open msxls -View=%view{ascii} @EXTHELPERSDIR@/doc.sh view msxls - -# Use OpenOffice.org/LibreOffice to open any MS Office documents -[mso-doc-1] -Type=^Microsoft Office Document -Open=@EXTHELPERSDIR@/doc.sh open ooffice - -[mso-doc-2] -Type=^Microsoft OOXML -Open=@EXTHELPERSDIR@/doc.sh open ooffice - -[framemaker] -Type=^FrameMaker -Open=@EXTHELPERSDIR@/doc.sh open framemaker - - -### Miscellaneous ### - -[sqlite3.db] -Type=^SQLite 3.x database -Open=@EXTHELPERSDIR@/misc.sh open sqlite -View=%view{ascii} @EXTHELPERSDIR@/misc.sh view sqlite - - -### Plain compressed files ### - -[gzip] -Type=\\(gzip compressed -Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more} -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz - -[bzip] -Type=\\(bzip compressed -Open=@EXTHELPERSDIR@/archive.sh view bzip %var{PAGER:more} -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bzip - -[bzip2] -Type=\\(bzip2 compressed -Open=@EXTHELPERSDIR@/archive.sh view bzip2 %var{PAGER:more} -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view bz2 - -[compress] -Type=\\(compress'd -Open=@EXTHELPERSDIR@/archive.sh view gz %var{PAGER:more} -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view gz - -[lz] -Type=\\(lzip compressed -Open=@EXTHELPERSDIR@/archive.sh view lz %var{PAGER:more} -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lz - -[lzma] -Type=\\(LZMA compressed -Open=@EXTHELPERSDIR@/archive.sh view lzma %var{PAGER:more} -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lzma - -[xz] -Type=\\(XZ compressed -Open=@EXTHELPERSDIR@/archive.sh view xz %var{PAGER:more} -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view xz - -[zstd] -Type=\\(Zstandard compressed -Open=@EXTHELPERSDIR@/archive.sh view zst %var{PAGER:more} -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zst - -[zip-by-type] -Type=\\(Zip archive -Open=%cd %p/uzip:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip - -[jar] -Type=\\(Java (Jar file|archive) data \\((zip|JAR)\\)\\) -TypeIgnoreCase=true -Open=%cd %p/uzip:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view zip - -[lha] -Type=^LHa .*archive -Open=%cd %p/ulha:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view lha - -[pak] -Type=^PAK .*archive -Open=%cd %p/unar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view pak - -# Parity Archive -[par2] -Type=^Parity Archive Volume Set -Open=@EXTHELPERSDIR@/archive.sh open par2 - - -######### Includes ######### -# Includes should be at end of the bindings - -[Include/tar.gz] -Open=%cd %p/utar:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view tar.gz - -[Include/cpio] -Open=%cd %p/ucpio:// -View=%view{ascii} @EXTHELPERSDIR@/archive.sh view cpio - -[Include/editor] -Open=%var{EDITOR:vi} %f - -[Include/image] -Open=@EXTHELPERSDIR@/image.sh open ALL_FORMATS -View=%view{ascii} @EXTHELPERSDIR@/image.sh view ALL_FORMATS - -[Include/video] -Open=@EXTHELPERSDIR@/video.sh open ALL_FORMATS -View=%view{ascii} @EXTHELPERSDIR@/video.sh view ALL_FORMATS - - -######### Default ######### - -# Default target for anything not described above -[Default] -Open= -View= - -### EOF ### diff --git a/recipes/wip/files/mc/source/misc/mc.lib b/recipes/wip/files/mc/source/misc/mc.lib deleted file mode 100644 index e71202b65e..0000000000 --- a/recipes/wip/files/mc/source/misc/mc.lib +++ /dev/null @@ -1,166 +0,0 @@ -[External editor or viewer parameters] -vi=+%lineno %filename -vim=+%lineno %filename -view=+%lineno %filename -emacs=+%lineno %filename -nano=+%lineno %filename -joe=+%lineno %filename -more=+%lineno %filename -less=+%lineno %filename -mcedit=%filename:%lineno - -[Special dirs] -list=/afs;/coda;/:;/...;/net - -[terminal:console] -insert=\\e[2~ -f11=\\e[23~ -f12=\\e[24~ -f13=\\e[25~ -f14=\\e[26~ -f15=\\e[28~ -f16=\\e[29~ -f17=\\e[31~ -f18=\\e[32~ -f19=\\e[33~ -f20=\\e[34~ -kpleft=\\eOt -kpright=\\eOv -kpup=\\eOx -kpdown=\\eOr -kphome=\\eOw -kpend=\\eOq -kpnpage=\\eOs -kpppage=\\eOy -kpplus=\\eOl -kpminus=\\eOS -kpasterisk=\\eOR -kpinsert=\\eOp -kpdelete=\\eOn -kpenter=\\eOM -kpslash=\\eOQ -kpnumlock=\\eOP - -[terminal:linux] -copy=console - -[terminal:xterm] -insert=\\e[2~ -f11=\\e[23~;\\eO2P;\\eO1\;2P;\\e[1\;2P -f12=\\e[24~;\\eO2Q;\\eO1\;2Q;\\e[1\;2Q -f13=\\e[25~;\\eO2R;\\eO1\;2R;\\e[1\;2R -f14=\\e[26~;\\eO2S;\\eO1\;2S;\\e[1\;2S -f15=\\e[28~;\\e[15\;2~ -f16=\\e[29~;\\e[17\;2~ -f17=\\e[31~;\\e[18\;2~ -f18=\\e[32~;\\e[19\;2~ -f19=\\e[33~;\\e[20\;2~ -f20=\\e[34~;\\e[21\;2~ -kpleft=\\eOt -kpright=\\eOv -kpup=\\eOx -kpdown=\\eOr -kphome=\\eOw -kpend=\\eOq -kpnpage=\\eOs -kpppage=\\eOy -kpplus=\\eOk -kpminus=\\eOm -kpasterisk=\\eOj -delete=\\e[3~ -bs= -home=\\e[1~;\\e[7~;\\eOH;\\e[H -end=\\eOF;\\e[F;\\e[4~;\\e[8~ -pgdn=\\e[6~ -pgup=\\e[5~ - -# Arrows for both keypad modes (application and normal). -up=\\e[A -up=\\eOA -down=\\e[B -down=\\eOB -right=\\e[C -right=\\eOC -left=\\e[D -left=\\eOD - -[terminal:alacritty] -copy=xterm - -[terminal:gnome] -copy=xterm - -[terminal:rxvt] -copy=xterm - -[terminal:xterm-new] -copy=xterm - -[terminal:xterm-clear] -copy=xterm - -[terminal:xterm-color] -copy=xterm - -[terminal:xterm-256color] -copy=xterm - -[terminal:screen] -copy=xterm - -[terminal:screen-256color] -copy=xterm - -[terminal:tmux] -copy=xterm - -[terminal:tmux-256color] -copy=xterm - -[terminal:ibmpc3] -f11=\\e[Y -f12=\\e[Z -f13=\\e[a -f14=\\e[b -f15=\\e[c -f16=\\e[d -f17=\\e[e -f18=\\e[f -f19=\\e[g -f20=\\e[h -bs=^h -end=\\e[F -kpplus=\\e[+ -kpminus=\\e[- -kpasterisk=\\e[* - -[terminal:cons25] -f11=\\e[Y -f12=\\e[Z -f13=\\e[a -f14=\\e[b -f15=\\e[c -f16=\\e[d -f17=\\e[e -f18=\\e[f -f19=\\e[g -f20=\\e[h - -[terminal:st] -shift-right=\\e[1\;2C -shift-left=\\e[1\;2D -shift-up=\\e[1\;2A -shift-down=\\e[1\;2B -alt-shift-right=\\e[1\;4C -alt-shift-left=\\e[1\;4D -alt-shift-up=\\e[1\;4A -alt-shift-down=\\e[1\;4B - -[terminal:st-256color] -copy=st - -[terminal:st-git-256color] -copy=st - -[terminal:xterm-kitty] -copy=xterm diff --git a/recipes/wip/files/mc/source/misc/mc.menu.in b/recipes/wip/files/mc/source/misc/mc.menu.in deleted file mode 100644 index 9d37e378a0..0000000000 --- a/recipes/wip/files/mc/source/misc/mc.menu.in +++ /dev/null @@ -1,379 +0,0 @@ -shell_patterns=0 - -############################################################################## -# %% The % character -# %f The current file (if non-local vfs, file will be copied locally and -# %f will be full path to it) -# %p The current file -# %d The current working directory -# %s "Selected files"; the tagged files if any, otherwise the current file -# %t Tagged files -# %u Tagged files (and they are untagged on return from expand_format) -# %view Runs the commands and pipes standard output to the view command -# If %view is immediately followed by '{', recognize keywords -# ascii, hex, nroff and unform -# -# If the format letter is in uppercase, it refers to the other panel -# -# With a number followed the % character you can turn quoting on (default) -# and off. For example: -# %f quote expanded macro -# %1f ditto -# %0f don't quote expanded macro -############################################################################## - -+ ! t t -@ Do something on the current file - CMD=%{Enter command} - $CMD %f - -+ t t -@ Do something on the tagged files - CMD=%{Enter command} - for i in %t ; do - $CMD "$i" - done - -0 Edit a bug report and send it to root - I=`mktemp "${MC_TMPDIR:-/tmp}/mail.XXXXXX"` || exit 1 - ${EDITOR-vi} "$I" - test -r "$I" && mail root < "$I" - rm -f "$I" - -=+ f \.1$ | f \.3$ | f \.4$ | f \.5$ | f \.6$ | f \.7$ | f \.8$ | f \.man$ & t r -1 Display the file with roff -man - %view{ascii,nroff} roff @MAN_FLAGS@ @MANDOC@ %f - -2 Call the info hypertext browser - info - -= t d -3 Compress the current subdirectory (tar.gz) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | gzip -f9 > "$tar.tar.gz" && \ - echo "../$tar.tar.gz created." - -4 Compress the current subdirectory (tar.bz2) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | bzip2 -f > "$tar.tar.bz2" && \ - echo "../$tar.tar.bz2 created." - -5 Compress the current subdirectory (tar.7z) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | 7za a -si "$tar.tar.7z" && \ - echo "../$tar.tar.7z created." - -6 Compress the current subdirectory (tar.xz) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | xz -f > "$tar.tar.xz" && \ - echo "../$tar.tar.xz created." - -7 Compress the current subdirectory (tar.zst) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | zstd -f > "$tar.tar.zst" && \ - echo "../$tar.tar.zst created." - -8 Compress the current subdirectory (tar.lzo) - Pwd=`basename %d /` - echo -n "Name of the compressed file (without extension) [$Pwd]: " - read tar - [ "$tar"x = x ] && tar="$Pwd" - cd .. && \ - tar cf - "$Pwd" | lzop -f > "$tar.tar.lzo" && \ - echo "../$tar.tar.lzo created." - -= f \.c$ & t r -+ f \.c$ & t r & ! t t -c Compile and link current .c file - make "`basename %f .c`" 2>/dev/null || cc -O -o "`basename %f .c`" %f - -+ t r & ! t t -a Append file to opposite - cat %f >> %D/%f - -+ t t -A Append files to opposite files - for i in %t ; do - cat "$i" >> %D/"$i" - done - -+ t r & ! t t -d Delete file if a copy exists in the other directory. - if [ %d = %D ]; then - echo "The two directories must be different." - exit 1 - fi - if [ -f %D/%f ]; then # if two of them, then - if cmp -s %D/%f %f; then - rm %f && echo %f": DELETED." - else - echo %f" and "%D/%f" differ: NOT deleted." - echo -n "Press RETURN " - read key - fi - else - echo %f": No copy in "%D/%f": NOT deleted." - fi - -+ t t -D Delete tagged files if a copy exists in the other directory. - if [ %d = %D ]; then - echo "The two directories must be different." - exit 1 - fi - for i in %t ; do - if [ -f %D/"$i" ]; then - SUM1=`sum "$i"` - SUM2=`sum %D/"$i"` - if [ "$SUM1" = "$SUM2" ]; then - rm "$i" && echo "${i}: DELETED." - else - echo "$i and "%D"/$i differ: NOT deleted." - fi - else - echo "$i has no copy in "%D": NOT deleted." - fi - done - -m View manual page - MAN=%{Enter manual name} - %view{ascii,nroff} MANROFFOPT='@MAN_FLAGS@' MAN_KEEP_FORMATTING=1 man -P cat "$MAN" - -= f \.gz$ & t r -+ ! t t -n Inspect gzip'ed newsbatch file - dd if=%f bs=1 skip=12 | zcat | ${PAGER-more} - # assuming the cunbatch header is 12 bytes long. - -= t r & -+ ! t t -h Strip headers from current newsarticle - CHECK=`awk '{print $1 ; exit}' %f` 2>/dev/null - case "$CHECK" in - Newsgroups:|Path:) - I=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1 - cp %f "$I" && sed '/^'"$CHECK"' /,/^$/d' "$I" > %f - [ "$?" = "0" ] && rm "$I" - echo %f": header removed." - ;; - *) - echo %f" is not a news article." - ;; - esac - -+ t t -H Strip headers from the marked newsarticles - for i in %t ; do - CHECK=`awk '{print $1 ; exit}' "$i"` 2>/dev/null - WFILE=`mktemp "${MC_TMPDIR:-/tmp}/news.XXXXXX"` || exit 1 - case "$CHECK" in - Newsgroups:|Path:) - cp "$i" "$WFILE" && sed '/^'"$CHECK"' /,/^$/d' "$WFILE" > "$i" - if [ "$?" = "0" ]; then - rm "$WFILE"; echo "$i header removed. OK." - else - echo "Oops! Please check $i against $WFILE." - fi - ;; - *) - echo "$i skipped: Not a news article." - ;; - esac - done - -= t r -+ ! t t -r Copy file to remote host - echo -n "To which host?: " - read Host - echo -n "To which directory on $Host?: " - read Dir - rcp -p %f "${Host}:${Dir}" - -+ t t -R Copy files to remote host (no error checking) - echo -n "Copy files to which host?: " - read Host - echo -n "To which directory on $Host? :" - read Dir - rcp -pr %u "${Host}:${Dir}" - -= f \.tex$ & t r -+ f \.tex$ & t r & ! t t -t Run latex on file and show it with xdvi - latex %f && xdvi "`basename %f .tex`".dvi - -=+ f ^part | f ^Part | f uue & t r -+ t t -U Uudecode marked news articles (needs work) - ( - for i in %t ; do # strip headers - FIRST=`awk '{print $1 ; exit}' "$i"` - cat "$i" | sed '/^'"$FIRST"' /,/^$/d' - done - ) | sed '/^$/d' | sed -n '/^begin 6/,/^end$/p' | uudecode - if [ "$?" != "0" ]; then - echo "Cannot decode "%t"." - fi - echo "Please test the output file before deleting anything." - -=+ f \.tar\.gz$ | f \.tar\.z$ | f \.tgz$ | f \.tpz$ | f \.tar\.lz$ | f \.tar\.lz4$ | f \.tar\.lzma$ | f \.tar\.lzo$ | f \.tar\.7z$ | f \.tar\.xz$ | f \.tar\.zst | f \.tar\.Z$ | f \.tar\.bz2$ & t rl -x Extract the contents of a compressed tar file - unset PRG - case %f in - *.tar.7z) PRG="7za e -so";; - *.tar.bz2) PRG="bunzip2 -c";; - *.tar.gz|*.tar.z|*.tgz|*.tpz|*.tar.Z) PRG="gzip -dc";; - *.tar.lz) PRG="lzip -dc";; - *.tar.lz4) PRG="lz4 -dc";; - *.tar.lzma) PRG="lzma -dc";; - *.tar.lzo) PRG="lzop -dc";; - *.tar.xz) PRG="xz -dc";; - *.tar.zst) PRG="zstd -dc";; - *) exit 1;; - esac - $PRG %f | tar xvf - - -= t r -+ ! t t -y Gzip or gunzip current file - unset DECOMP - case %f in - *.gz|*.[zZ]) DECOMP=-d;; - esac - # Do *not* add quotes around $DECOMP! - gzip $DECOMP -v %f - -+ t t -Y Gzip or gunzip tagged files - for i in %t ; do - unset DECOMP - case "$i" in - *.gz|*.[zZ]) DECOMP=-d;; - esac - gzip $DECOMP -v "$i" - done - -+ ! t t -b Bzip2 or bunzip2 current file - unset DECOMP - case %f in - *.bz2) DECOMP=-d;; - esac - bzip2 $DECOMP -v %f - -+ t t -B Bzip2 or bunzip2 tagged files - for i in %t ; do - unset DECOMP - case "$i" in - *.bz2) DECOMP=-d;; - esac - bzip2 $DECOMP -v "$i" - done - -+ f \.tar.gz$ | f \.tgz$ | f \.tpz$ | f \.tar.Z$ | f \.tar.z$ | f \.tar.bz2$ | f \.tar.F$ & t r & ! t t -z Extract compressed tar file to subdirectory - unset D - set gzip -cd - case %f in - *.tar.F) D=`basename %f .tar.F`; set freeze -dc;; - *.tar.Z) D=`basename %f .tar.Z`;; - *.tar.bz2) D=`basename %f .tar.bz2`; set bunzip2 -c;; - *.tar.gz) D=`basename %f .tar.gz`;; - *.tar.z) D=`basename %f .tar.z`;; - *.tgz) D=`basename %f .tgz`;; - *.tpz) D=`basename %f .tpz`;; - esac - mkdir "$D"; cd "$D" && ("$1" "$2" ../%f | tar xvf -) - -+ t t -Z Extract compressed tar files to subdirectories - for i in %t ; do - set gzip -dc - unset D - case "$i" in - *.tar.F) D=`basename "$i" .tar.F`; set freeze -dc;; - *.tar.Z) D=`basename "$i" .tar.Z`;; - *.tar.bz2) D=`basename "$i" .tar.bz2`; set bunzip2 -c;; - *.tar.gz) D=`basename "$i" .tar.gz`;; - *.tar.z) D=`basename "$i" .tar.z`;; - *.tgz) D=`basename "$i" .tgz`;; - *.tpz) D=`basename "$i" .tpz`;; - esac - mkdir "$D"; (cd "$D" && "$1" "$2" "../$i" | tar xvf -) - done - -+ f \.gz$ | f \.tgz$ | f \.tpz$ | f \.Z$ | f \.z$ | f \.bz2$ & t r & ! t t -c Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 - unset D - unset EXT - case %f in - *.Z) EXT=Z;; - *.bz2) EXT=bz2;; - *.gz) EXT=gz;; - *.tgz) EXT=tgz;; - *.tpz) EXT=tpz;; - *.z) EXT=z;; - esac - case "$EXT" in - bz2|Z|gz|z) D=`basename %f ."$EXT"`;; - tgz|tpz) D=`basename %f ."$EXT"`.tar;; - esac - if [ "$EXT" = "bz2" ]; then - bunzip2 -v %f - gzip -f9 -v "$D" - else - gunzip -v %f - bzip2 -v "$D" - fi - -+ t t -C Convert gz<->bz2, tar.gz<->tar.bz2 & tgz->tar.bz2 - for i in %t ; do - unset D - unset EXT - case "$i" in - *.Z) EXT=Z;; - *.bz2) EXT=bz2;; - *.gz) EXT=gz;; - *.tgz) EXT=tgz;; - *.tpz) EXT=tpz;; - *.z) EXT=z;; - esac - case "$EXT" in - bz2|Z|gz|z) D=`basename "$i" ."$EXT"`;; - tgz|tpz) D=`basename "$i" ."$EXT"`.tar;; - esac - if [ "$EXT" = "bz2" ]; then - bunzip2 -v "$i" - gzip -f9 -v "$D" - else - gunzip -v "$i" - bzip2 -v "$D" - fi - done - -+ x /usr/bin/open | x /usr/local/bin/open & x /bin/sh -o Open next a free console - open -s -- sh diff --git a/recipes/wip/files/mc/source/misc/mc.vim.keymap b/recipes/wip/files/mc/source/misc/mc.vim.keymap deleted file mode 100644 index d3c3220772..0000000000 --- a/recipes/wip/files/mc/source/misc/mc.vim.keymap +++ /dev/null @@ -1,366 +0,0 @@ -[filemanager] -ChangePanel = tab; ctrl-i -Help = f1 -UserMenu = f2 -View = f3 -# ViewFile = -Edit = f4 -# EditForceInternal = -Copy = f5 -Move = f6 -MakeDir = f7 -Delete = f8 -Menu = f9 -Quit = f10 -MenuLastSelected = f19 -QuitQuiet = f20 -Find = alt-question -CdQuick = alt-c -HotList = ctrl-backslash -Reread = ctrl-r -DirSize = ctrl-space -Suspend = ctrl-z -Swap = ctrl-u -History = alt-m -# PanelListing = -# SetupListingFormat = -ShowHidden = alt-dot -SplitVertHoriz = alt-comma -SplitEqual = alt-equal -SplitMore = shift-l -SplitLess = shift-h -Shell = ctrl-o -PutCurrentPath = shift-a -PutOtherPath = shift-d -PutCurrentSelected = shift-w -PutCurrentFullSelected = shift-f -ViewFiltered = alt-exclamation -Select = kpplus -Unselect = kpminus -SelectInvert = kpasterisk -ScreenList = alt-prime -# OptionsLayout = -# OptionsAppearance = -# OptionsPanel = -# OptionsConfirm = -# OptionsDisplayBits = -# OptionsVfs = -# LearnKeys = -# SaveSetup = -# EditExtensionsFile = -# EditFileHighlightFile = -# Filter = -# ConnectFish = -# ConnectFtp = -# Undelete = -# EditorViewerHistory = -ExtendedKeyMap = ctrl-x - -[filemanager:xmap] -ChangeMode = c -ChangeOwn = o -ChangeAttributes = e -CompareDirs = d -CompareFiles = ctrl-d -HotListAdd = h -LinkSymbolicEdit = ctrl-s -Link = l -LinkSymbolic = s -LinkSymbolicRelative = v -PanelInfo = i -PanelQuickView = q -ExternalPanelize = exclamation -VfsList = a -Jobs = j -# PutCurrentPath = -# PutOtherPath = -# PutCurrentTagged = -# PutOtherTagged = -# PutCurrentLink = -# PutOtherLink = - -[panel] -CycleListingFormat = alt-t -Search = ctrl-s; alt-s -Mark = insert; ctrl-t; shift-m -MarkUp = shift-k -MarkDown = shift-j -# MarkLeft = -# MarkRight = -Down = down; ctrl-n -Up = up; ctrl-p -# Left = -# Right = -PageUp = pgup; shift-{ -PageDown = pgdn; shift-} -Enter = enter -PanelOtherCd = alt-o -PanelOtherCdLink = alt-l -ViewRaw = f13 -EditNew = f14 -CopySingle = f15 -MoveSingle = f16 -DeleteSingle = f18 -# SelectExt = -Select = alt-plus -Unselect = alt-minus -SelectInvert = alt-asterisk -CdChild = alt-j -CdParent = alt-k -# CdParentSmart = -# Panelize = -History = alt-h -HistoryNext = alt-u -HistoryPrev = alt-y -# BottomOnScreen = -# MiddleOnScreen = -# TopOnScreen = -PanelOtherSync = alt-i -SelectCodepage = alt-e -Top = alt-lt; home; a1 -Bottom = alt-gt; end; c1 -# Sort = -# SortPrev = -# SortNext = -# SortReverse = -# SortByName = -# SortByExt = -# SortBySize = -# SortByMTime = -# Filter = -# ScrollLeft = -# ScrollRight = - -[dialog] -Ok = enter -Cancel = f10; esc; ctrl-g -Up = left; up; ctrl-p -Down = right; down; ctrl-n -# Left = -# Right = -Help = f1 -Suspend = ctrl-z -Refresh = ctrl-l -ScreenList = alt-prime -ScreenNext = alt-rbrace -ScreenPrev = alt-lbrace - -[menu] -Help = f1 -Left = left; ctrl-b -Right = right; ctrl-f -Up = up; ctrl-p -Down = down; ctrl-n -Home = home; alt-lt; ctr-a -End = end; alt-gt ctrl-e -Enter = enter -Quit = F10; esc; ctrl-g - -[input] -Home = ctrl-a; alt-lt; home; a1 -End = ctrl-e; alt-gt; end; c1 -Left = left; alt-left; ctrl-b -Right = right; alt-right; ctrl-f -WordLeft = ctrl-left; alt-b -WordRight = ctrl-right; alt-f -Backspace = backspace; ctrl-h -Delete = delete; ctrl-d -DeleteToWordBegin = alt-backspace -DeleteToWordEnd = alt-d -# Mark = -Remove = ctrl-w -# Cut = -Store = alt-w -# Paste = -Yank = ctrl-y -DeleteToEnd = ctrl-k -HistoryPrev = alt-p -HistoryNext = alt-n -History = alt-h -Complete = alt-tab -# Clear = -# MarkLeft = -# MarkRight = -# MarkToWordBegin = -# MarkToWordEnd = -# MarkToHome = -# MarkToEnd = - -[listbox] -Up = up; ctrl-p -Down = down; ctrl-n -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -PageUp = pgup; shift-{ -PageDown = pgdn; shift-} -Delete = delete; d -Clear = shift-delete; shift-d -View = f3 -Edit = f4 -Enter = enter - -[radio] -Up = up; ctrl-p -Down = down; ctrl-n -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -Select = space - -[tree] -Help = f1 -Reread = f2; ctrl-r -Forget = f3 -ToggleNavigation = f4 -Copy = f5 -Move = f6 -Up = up; ctrl-p -Down = down; ctrl-n -Left = left; ctrl-b -Right = right; ctrl-f -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -PageUp = pgup; shift-{ -PageDown = pgdn; shift-} -Enter = enter -Search = ctrl-s; alt-s -Delete = f8; delete - -[help] -Help = f1 -Index = f2; c -Back = f3; left; h; ctrl-b -Quit = f10; esc -Up = up; k; ctrl-p -Down = down; j; ctrl-n -PageDown = f; pgdn; space; shift-} -PageUp = b; pgup; backspace; shift-{ -HalfPageDown = d -HalfPageUp = u -Top = home; ctrl-home; ctrl-pgup; a1; alt-lt; g -Bottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g -Enter = l; ctrl-f; right; enter -LinkNext = tab -LinkPrev = alt-tab -NodeNext = n -NodePrev = p - -[chattr] -Up = up; left; ctrl-p -Down = down; right; ctrl-n -Top = home; alt-lt; a1 -Bottom = end; alt-gt; c1 -PageUp = pgup; shift-{ -PageDown = pgdn; shift-} -Mark = t -MarkAndDown = shift-t; insert - -[editor] -# No remapping, just use vim instead of mcedit - -[viewer] -Help = f1 -WrapMode = f2 -Quit = f3; f10; q; esc -HexMode = f4 -Goto = f5 -Search = f7 -SearchForward = slash -SearchBackward = question -SearchContinue = f17; n -SearchForwardContinue = ctrl-s -SearchBackwardContinue = ctrl-r -SearchOppositeContinue = shift-n -MagicMode = f8 -NroffMode = f9 -Home = ctrl-a -End = ctrl-e -Left = h; left -Right = l; right -LeftQuick = alt-h -RightQuick = alt-l -Up = k; insert; up; ctrl-p -Down = j; delete; down; enter; ctrl-n -PageDown = f; space; pgdn; shift-} -PageUp = b; pgup; backspace; shift-{ -HalfPageDown = d -HalfPageUp = u -Top = home; ctrl-home; ctrl-pgup; a1; alt-lt; g -Bottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g -BookmarkGoto = m -Bookmark = r -FileNext = ctrl-f -FilePrev = ctrl-b -SelectCodepage = alt-e -Shell = ctrl-o -Ruler = alt-r -History = alt-m - -[viewer:hex] -Help = f1 -HexEditMode = f2 -Quit = f3; f10; q; esc -HexMode = f4 -Goto = f5 -Save = f6 -Search = f7 -SearchForward = slash -SearchBackward = question -SearchContinue = f17; n -SearchForwardContinue = ctrl-s -SearchBackwardContinue = ctrl-r -SearchOppositeContinue = shift-n -MagicMode = f8 -NroffMode = f9 -ToggleNavigation = tab -Home = ctrl-a; home -End = ctrl-e; end -Left = h; left -Right = l; right -Up = k; up -Down = j; down; delete -PageDown = pgdn; shift-} -PageUp = pgup; shift-{ -Top = ctrl-home; ctrl-pgup; a1; alt-lt; g -Bottom = ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g -History = alt-m - -[diffviewer] -ShowSymbols = alt-s -ShowNumbers = alt-n -SplitFull = f -SplitEqual = equal -SplitMore = gt -SplitLess = lt -Tab2 = 2 -Tab3 = 3 -Tab4 = 4 -Tab8 = 8 -Swap = ctrl-u -Redo = ctrl-r -HunkNext = n; enter; space -HunkPrev = p; backspace -Goto = g; shift-g -Save = f2 -Edit = f4 -EditOther = f14 -Merge = f5 -MergeOther = f15 -Search = f7 -SearchContinue = f17 -Options = f9 -Top = ctrl-home -Bottom = ctrl-end -Down = down; j -Up = up; k -LeftQuick = alt-h -RightQuick = alt-l -Left = left; h -Right = right; l -PageDown = pgdn; shift-} -PageUp = pgup; shift-{ -Home = home -End = end -Help = f1 -Quit = f10; q; shift-q; esc -Shell = ctrl-o -SelectCodepage = alt-e diff --git a/recipes/wip/files/mc/source/misc/mcedit.menu.in b/recipes/wip/files/mc/source/misc/mcedit.menu.in deleted file mode 100644 index e1aa510189..0000000000 --- a/recipes/wip/files/mc/source/misc/mcedit.menu.in +++ /dev/null @@ -1,483 +0,0 @@ -shell_patterns=0 # expression type - -# The macros are: -# -# %c The cursor column position number. For edit menu only. -# %i The indent of blank space, equal the cursor column -# position. For edit menu only. -# %y The syntax type of current file. For edit menu only. -# %b The block file name. -# %f The current file name. -# %n Only the current file name without extension. -# %x The extension of current file name. -# %d The current directory name. -# %F The current file in the unselected panel. -# %D The directory name of the unselected panel. -# %t The currently tagged files. -# %T The tagged files in the unselected panel. -# %u and %U Similar to the %t and %T macros, but in -# addition the files are untagged. You can use this macro -# only once per menu file entry or extension file entry, -# because next time there will be no tagged files. -# %s and %S The selected files: The tagged files if -# there are any. Otherwise the current file. -# -# %% The % character -# -# %{some text} Prompt for the substitution. An input box -# is shown and the text inside the braces is used as a -# prompt. The macro is substituted by the text typed by the -# user. The user can press ESC or F10 to cancel. This macro -# doesn't work on the command line yet. - -#----------------------- Begin [perl] language template ----------------------- -+ y Perl\ Program | f \.pl$ -1 Author description header - unset LANG - unset LANGUAGE - LC_ALL= - MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`" - AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`" - cat >>%b < - # Created at: `date` - # Computer: `uname -n` - # System: `uname -sr` on `uname -m` - # - # Copyright (c) `date +%%Y` $AUTHOR All rights reserved. - # - #---------------------------------------------------------------------- - # Configure section: - - #---------------------------------------------------------------------- - # - # main() - - EOF - -+ y Perl\ Program | f \.pl$ -2 while () - cat < %b - %iwhile() { - %i} - EOF - -+ y Perl\ Program | f \.pl$ -3 for () - cat < %b - %ifor ($i = ; $i < ; $i++) { - %i} - EOF - -+ y Perl\ Program | f \.pl$ -4 foreach () - cat < %b - %iforeach ($ ) { - %i} - EOF - -+ y Perl\ Program | f \.pl$ -5 if () - cat < %b - %iif () { - %i} - EOF - -+ y Perl\ Program | f \.pl$ -6 if () else - cat < %b - %iif () { - %i} else { - %i} - EOF - -+ y Perl\ Program | f \.pl$ -7 if () elsif () - cat < %b - %iif () { - %i} elsif () { - %i} - EOF - -+ y Perl\ Program | f \.pl$ -8 substr () - echo "%i$ = substr(\$str, \$off, \$cnt);" >%b - -+ y Perl\ Program | f \.pl$ -9 opendir () - cat < %b - %iopendir(DIR, \$dir) || die("\$0: can't open \$dir\n"); - EOF - -+ y Perl\ Program | f \.pl$ -a sub () - NAME=%{ Enter name of subroutine: } - cat < %b - sub - $NAME () - { - } # end of $NAME() - EOF -#----------------------- End [perl] language template ------------------------- - -#---------------------- Begin [shell] language template ----------------------- -+ y Shell\ Script | f \.sh$ -1 Author description header - unset LANG - unset LANGUAGE - LC_ALL= - MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`" - AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`" - cat >>%b < - # Created at: `date` - # Computer: `uname -n` - # System: `uname -sr` on `uname -m` - # - # Copyright (c) `date +%%Y` $AUTHOR All rights reserved. - # - #---------------------------------------------------------------------- - # Configure section: - - #---------------------------------------------------------------------- - # - # main() - - EOF - -+ y Shell\ Script | f \.sh$ -3 for - cat < %b - %ifor i in \$ - %ido - %idone - EOF - -+ y Shell\ Script | f \.sh$ -4 while - cat < %b - %iwhile - %ido - %idone - EOF - -+ y Shell\ Script | f \.sh$ -5 if [] then else - cat <> %b - %iif [ ];then - %ielse - %ifi - EOF - -+ y Shell\ Script | f \.sh$ -6 case - NUMBER=%{ Enter number elements of case:} - cat < %b - %icase "\$" in - EOF - while [ "$NUMBER" -gt 0 ] - do - cat <> %b - %i) - %i ;; - EOF - let NUMBER=$NUMBER-1 - done - cat <> %b - %i*) - %iesac - EOF - -+ y Shell\ Script | f \.sh$ -7 function - NAME=%{ Enter name of function:} - cat <> %b - $NAME() { - } # end of $NAME() - EOF - -+ y Shell\ Script | f \.sh$ -8 select of bash - cat <> %b - %iselect i in \$l - %ido - %i if [ -n "\$i" ];then - %i break - %i else - %i continue - %i fi - %idone - EOF - -#----------------------- End [shell] language template ------------------------ - -#------------------------- Begin [c] language template ------------------------ -+ f \.h$ | f \.c$ | f \.cc$ -1 Author description header - unset LANG - unset LANGUAGE - LC_ALL= - MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`" - AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`" - cat >> %b < - * Created at: `date` - * Computer: `uname -n` - * System: `uname -sr` on `uname -m` - * - * Copyright (c) `date +%%Y` $AUTHOR All rights reserved. - * - ********************************************************************/ - EOF - -+ f \.h$ | f \.c$ | f \.cc$ -2 GPL description header - cat >>%b <. - */ - EOF - -+ f \.c$ | f \.cc$ -3 if () - cat < %b - %iif () { - %i} - EOF - -+ f \.c$ | f \.cc$ -4 if () else - cat < %b - %iif () { - %i} else { - %i} - EOF - -+ f \.c$ | f \.cc$ -5 if () else if () - cat < %b - %iif ( ) { - %i} else if ( ) { - %i} - EOF - -+ f \.c$ | f \.cc$ -6 switch () - NUMBER=%{ Enter number elements of switch:} - echo "%iswitch () {" >%b - while [ "$NUMBER" -gt 0 ] - do - echo "%icase '':" >>%b - echo "%i break;" >>%b - let NUMBER=$NUMBER-1 - done - echo "%i default:" >>%b - echo "%i}" >>%b - -+ f \.c$ | f \.cc$ -7 for () - cat < %b - %ifor (i = ; i < ; i++) { - %i} - EOF - -+ f \.c$ | f \.cc$ -8 while () - cat < %b - %iwhile () { - %i} - EOF - -+ f \.c$ | f \.cc$ -9 do {} while () - cat < %b - %ido { - %i} while () - EOF - -+ f \.c$ | f \.cc$ -a array - cat < %b - %ichar const x[] = { - %i, , - %i}; - EOF - -+ f \.c$ | f \.cc$ -b enum - cat < %b - %ienum x { - %i, , - %i}; - EOF - -+ f \.c$ | f \.cc$ -c struct - cat < %b - %istruct ? { - %i; - %i}; - EOF - -+ f \.c$ | f \.cc$ -d union - cat < %b - %iunion ? { - %i; - %i}; - EOF - -+ f \.c$ | f \.cc$ -e typedef struct - cat < %b - %itypedef struct { - %i; - %i} ?; - EOF - -+ f \.c$ | f \.cc$ -f function - NAME=%{ Enter name of function:} - cat <> %b - $NAME() - { - } /* end of $NAME() */ - EOF - -+ f \.c$ | f \.h$ | f \.cc$ -g #include - INC=%{ Enter include name: } - if [ -r "$INC" ];then - echo \#include \"$INC\" >%b - else - echo \#include \<$INC\> >%b - fi - -+ f \.c$ | f \.h$ | f \.cc$ -d #define - echo "#define " >%b - -+ f \.c$ | f \.h$ | f \.cc$ -d #ifdef - cat < %b - #ifdef - #else - #endif - EOF - -+ f \.c$ | f \.h$ | f \.cc$ -............................................................................... - -+ f \.c$ | f \.h$ | f \.cc$ -h View all *.h into current directory - cat *.h |less - -+ f \.c$ | f \.cc$ -d Run gdb for current file - [ -x "./%n" ] && gdb ./%n - -= f \.c$ | f \.cc$ -+ f \.c$ | f \.cc$ -c Compile, link and run the current .c file - export CFLAGS="-g -Wall -O2" - make || make %n || cc $CFLAGS -o %n %f - [ -r "%n" ] && (echo "*** press any key for run... ***"; read) - [ -x "%n" ] && ./%n - (echo -ne "\n--- Press any key for return to edit. ---"; read) - -+ f \.c$ | f \.h$ -t Indent `C' formatter - indent -kr -pcs %b 1>/dev/null 2> %e - -#--------------------- End [c/c++] language template -------------------------- - -#------------------------- Begin unknown template ----------------------------- -+ y unknown & t r -s #! /bin/sh - echo "#! /bin/sh" >%b - -+ y unknown & t r -p #! /usr/bin/perl - echo "#! /usr/bin/perl" >%b - -+ y unknown & t r -a Author description header - unset LANG - unset LANGUAGE - LC_ALL= - MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`" - AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`" - cat >>%b < - Created at: `date` - Computer: `uname -n` - System: `uname -sr` on `uname -m` - - Copyright (c) `date +%%Y` $AUTHOR All rights reserved. - ---------------------------------------------------------------------- - - EOF -#--------------------------- End unknown template ----------------------------- - -------------------------------------------------------------------------------- - -#----------------------- Begin common section --------------------------------- -S Sort selection - TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1 - cat %b > $TMPFILE - cat $TMPFILE| sort >%b - rm -f $TMPFILE - -I Insert `Changelog' string - DATE="`date +%%Y-%%m-%%d`" - MY_UID="`id | sed 's/^.*uid=\([^(]*\).*$/\1/'`" - AUTHOR="`awk -F: '$3 == '$MY_UID' {print $5}' /etc/passwd`" - EMAIL="<$REPLYTO>" - echo "$DATE $AUTHOR $EMAIL" >%b - -s Invoke `shell' - sh - -m view `man' - MAN=%{Enter name of man:} - %view{ascii,nroff} MANROFFOPT='@MAN_FLAGS@' MAN_KEEP_FORMATTING=1 man -P cat $MAN - -i Insert output of command to cursor - CMD=%{ Enter command: } - eval $CMD > %b - -o Open bash to next free console - open -s -- /bin/bash - -u Upper case selection - TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1 - cat %b > $TMPFILE - sed 's/\(.*\)/\U\1/' $TMPFILE >%b - rm -f $TMPFILE - -l Lower case selection - TMPFILE=`mktemp ${MC_TMPDIR:-/tmp}/up.XXXXXX` || exit 1 - cat %b > $TMPFILE - sed 's/\(.*\)/\L\1/' $TMPFILE >%b - rm -f $TMPFILE - -#-------------------------- End of common section ----------------------------- diff --git a/recipes/wip/files/mc/source/misc/skins/Makefile.am b/recipes/wip/files/mc/source/misc/skins/Makefile.am deleted file mode 100644 index 92ed8ec2ec..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/Makefile.am +++ /dev/null @@ -1,45 +0,0 @@ -skindir = $(pkgdatadir)/skins - -skin_DATA = \ - dark.ini \ - darkfar.ini \ - default.ini \ - double-lines.ini \ - featured-plus.ini \ - featured.ini \ - gotar.ini \ - gray-green-purple256.ini \ - gray-orange-blue256.ini \ - julia256.ini \ - julia256root.ini \ - mc46.ini \ - modarcon16-defbg.ini \ - modarcon16-defbg-thin.ini \ - modarcon16.ini \ - modarcon16-thin.ini \ - modarcon16root-defbg.ini \ - modarcon16root-defbg-thin.ini \ - modarcon16root-thin.ini \ - modarcon16root.ini \ - modarin256-defbg-thin.ini \ - modarin256-defbg.ini \ - modarin256-thin.ini \ - modarin256.ini \ - modarin256root-defbg-thin.ini \ - modarin256root-defbg.ini \ - modarin256root-thin.ini \ - modarin256root.ini \ - nicedark.ini \ - sand256.ini \ - seasons-autumn16M.ini \ - seasons-spring16M.ini \ - seasons-summer16M.ini \ - seasons-winter16M.ini \ - xoria256-thin.ini \ - xoria256.ini \ - xoria256root-thin.ini \ - yadt256-defbg.ini \ - yadt256.ini - -EXTRA_DIST = \ - $(skin_DATA) diff --git a/recipes/wip/files/mc/source/misc/skins/Makefile.in b/recipes/wip/files/mc/source/misc/skins/Makefile.in deleted file mode 100644 index 91bc251385..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/Makefile.in +++ /dev/null @@ -1,682 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = misc/skins -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = -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 = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(skindir)" -DATA = $(skin_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -skindir = $(pkgdatadir)/skins -skin_DATA = \ - dark.ini \ - darkfar.ini \ - default.ini \ - double-lines.ini \ - featured-plus.ini \ - featured.ini \ - gotar.ini \ - gray-green-purple256.ini \ - gray-orange-blue256.ini \ - julia256.ini \ - julia256root.ini \ - mc46.ini \ - modarcon16-defbg.ini \ - modarcon16-defbg-thin.ini \ - modarcon16.ini \ - modarcon16-thin.ini \ - modarcon16root-defbg.ini \ - modarcon16root-defbg-thin.ini \ - modarcon16root-thin.ini \ - modarcon16root.ini \ - modarin256-defbg-thin.ini \ - modarin256-defbg.ini \ - modarin256-thin.ini \ - modarin256.ini \ - modarin256root-defbg-thin.ini \ - modarin256root-defbg.ini \ - modarin256root-thin.ini \ - modarin256root.ini \ - nicedark.ini \ - sand256.ini \ - seasons-autumn16M.ini \ - seasons-spring16M.ini \ - seasons-summer16M.ini \ - seasons-winter16M.ini \ - xoria256-thin.ini \ - xoria256.ini \ - xoria256root-thin.ini \ - yadt256-defbg.ini \ - yadt256.ini - -EXTRA_DIST = \ - $(skin_DATA) - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu misc/skins/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu misc/skins/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-skinDATA: $(skin_DATA) - @$(NORMAL_INSTALL) - @list='$(skin_DATA)'; test -n "$(skindir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(skindir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(skindir)" || 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)$(skindir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(skindir)" || exit $$?; \ - done - -uninstall-skinDATA: - @$(NORMAL_UNINSTALL) - @list='$(skin_DATA)'; test -n "$(skindir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(skindir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(DATA) -installdirs: - for dir in "$(DESTDIR)$(skindir)"; 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-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-skinDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-skinDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-skinDATA install-strip installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-skinDATA - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/misc/skins/dark.ini b/recipes/wip/files/mc/source/misc/skins/dark.ini deleted file mode 100644 index 707b05b4cb..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/dark.ini +++ /dev/null @@ -1,152 +0,0 @@ -[skin] - description = Dark skin - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = lightgray;black - selected = black;cyan - marked = yellow;black - markselect = yellow;cyan - gauge = white;black - input = black;cyan - inputunchanged = gray;cyan - inputmark = cyan;black - disabled = gray;blue - reverse = black;lightgray - commandlinemark = black;lightgray - header = yellow;black - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = brightcyan;blue - dfocus = blue;cyan - dhotnormal = white; - dhotfocus = white;cyan - dtitle = white; - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = yellow;lightgray - errdtitle = yellow;red - -[filehighlight] - directory = white; - executable = brightmagenta; - symlink = lightgray; - hardlink = - stalelink = brightred; - device = brightmagenta; - special = brightblue; - core = red; - temp = gray; - archive = brightgreen; - doc = brown; - source = cyan; - media = green; - graph = brightcyan; - database = brightred; - -[menu] - _default_ = lightgray;blue - menusel = black;cyan - menuhot = white;blue - menuhotsel = white;cyan - menuinactive = black;lightgray - -[popupmenu] - _default_ = lightgray;blue - menusel = black;cyan - menutitle = lightgray;blue - -[buttonbar] - hotkey = red;lightgray - button = black;lightgray - -[statusbar] - _default_ = black;lightgray - -[help] - _default_ = black;lightgray - helpitalic = red;lightgray - helpbold = blue;lightgray - helplink = black;cyan - helpslink = yellow;blue - helptitle = blue;lightgray - -[editor] - _default_ = lightgray;black - editbold = yellow;green - editmarked = black;lightgray - editwhitespace = brightblue;black - editnonprintable = ;black - editlinestate = white;cyan - bookmark = white;red - bookmarkfound = black;green - editrightmargin = white;blue -# editbg = - editframe = gray; - editframeactive = lightgray; - editframedrag = red; - -[viewer] - _default_ = lightgray;black - viewbold = yellow;black - viewunderline = brightred;black - viewselected = yellow;cyan - -[diffviewer] - added = white;green - changedline = blue;cyan - changednew = red;cyan - changed = white;cyan - removed = white;red - error = red;lightgray - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = ↠- history-next-item-char = → - history-show-list-char = ↓ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/darkfar.ini b/recipes/wip/files/mc/source/misc/skins/darkfar.ini deleted file mode 100644 index 1329e1da9c..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/darkfar.ini +++ /dev/null @@ -1,152 +0,0 @@ -[skin] - description = Dark Far skin - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = lightgray;black - selected = black;cyan - marked = yellow;black - markselect = yellow;cyan - gauge = white;black - input = black;cyan - inputunchanged = gray;cyan - inputmark = cyan;black - disabled = gray;blue - reverse = black;lightgray - commandlinemark = black;lightgray - header = yellow;black - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = brightcyan;blue - dfocus = blue;cyan - dhotnormal = white; - dhotfocus = white;cyan - dtitle = white; - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = yellow;lightgray - errdtitle = yellow;red - -[filehighlight] - directory = white; - executable = brightmagenta; - symlink = lightgray; - hardlink = - stalelink = brightred; - device = brightmagenta; - special = brightblue; - core = red; - temp = gray; - archive = brightgreen; - doc = brown; - source = cyan; - media = green; - graph = brightcyan; - database = brightred; - -[menu] - _default_ = lightgray;blue - menusel = black;cyan - menuhot = white;blue - menuhotsel = white;cyan - menuinactive = black;lightgray - -[popupmenu] - _default_ = lightgray;blue - menusel = black;cyan - menutitle = lightgray;blue - -[buttonbar] - hotkey = red;lightgray - button = black;lightgray - -[statusbar] - _default_ = black;lightgray - -[help] - _default_ = black;lightgray - helpitalic = red;lightgray - helpbold = blue;lightgray - helplink = black;cyan - helpslink = yellow;blue - helptitle = blue;lightgray - -[editor] - _default_ = lightgray;black - editbold = yellow;green - editmarked = black;lightgray - editwhitespace = brightblue;black - editnonprintable = ;black - editlinestate = white;cyan - bookmark = white;red - bookmarkfound = black;green - editrightmargin = white;blue -# editbg = - editframe = gray; - editframeactive = lightgray; - editframedrag = white; - -[viewer] - _default_ = lightgray;black - viewbold = yellow;black - viewunderline = brightred;black - viewselected = yellow;cyan - -[diffviewer] - added = white;green - changedline = blue;cyan - changednew = red;cyan - changed = white;cyan - removed = white;red - error = red; - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = ↠- history-next-item-char = → - history-show-list-char = ↓ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = × diff --git a/recipes/wip/files/mc/source/misc/skins/default.ini b/recipes/wip/files/mc/source/misc/skins/default.ini deleted file mode 100644 index a3dd3e3905..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/default.ini +++ /dev/null @@ -1,139 +0,0 @@ -[skin] - description = Standard skin - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = lightgray;blue - selected = black;cyan - marked = yellow;blue - markselect = yellow;cyan - gauge = white;black - input = black;cyan - inputunchanged = gray;cyan - inputmark = cyan;black - disabled = gray;lightgray - reverse = black;lightgray - commandlinemark = black;lightgray - header = yellow;blue - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = black;lightgray - dfocus = black;cyan - dhotnormal = blue;lightgray - dhotfocus = blue;cyan - dtitle = blue;lightgray - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = yellow;lightgray - errdtitle = yellow;red - -[filehighlight] - directory = white; - executable = brightgreen; - symlink = lightgray; - hardlink = - stalelink = brightred; - device = brightmagenta; - special = black; - core = red; - temp = gray; - archive = brightmagenta; - doc = brown; - source = cyan; - media = green; - graph = brightcyan; - database = brightred; - -[menu] - _default_ = white;cyan - menusel = white;black - menuhot = yellow;cyan - menuhotsel = yellow;black - menuinactive = black;cyan - -[popupmenu] - _default_ = white;cyan - menusel = yellow;black - menutitle = yellow;cyan - -[buttonbar] - hotkey = white;black - button = black;cyan - -[statusbar] - _default_ = black;cyan - -[help] - _default_ = black;lightgray - helpitalic = red;lightgray - helpbold = blue;lightgray - helplink = black;cyan - helpslink = yellow;blue - helptitle = blue;lightgray - -[editor] - _default_ = lightgray;blue - editbold = yellow;green - editmarked = black;cyan - editwhitespace = brightblue;blue - editnonprintable = ;black - editlinestate = white;cyan - bookmark = white;red - bookmarkfound = black;green - editrightmargin = brightblue;black -# editbg = lightgray; -# editframe = lightgray; - editframeactive = white; - editframedrag = green; - -[viewer] - _default_ = lightgray;blue - viewbold = yellow;blue - viewunderline = brightred;blue - viewselected = yellow;cyan - -[diffviewer] - added = white;green - changedline = blue;cyan - changednew = red;cyan - changed = white;cyan - removed = white;red - error = red;lightgray - -[widget-panel] - sort-up-char = ' - sort-down-char = . - filename-scroll-left-char = { - filename-scroll-right-char = } - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/double-lines.ini b/recipes/wip/files/mc/source/misc/skins/double-lines.ini deleted file mode 100644 index f6bdac0dca..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/double-lines.ini +++ /dev/null @@ -1,139 +0,0 @@ -[skin] - description = Far-like skin - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = lightgray;blue - selected = black;cyan - marked = yellow;blue - markselect = yellow;cyan - gauge = white;black - input = black;cyan - inputunchanged = gray;cyan - inputmark = cyan;black - commandlinemark = black;lightgray - disabled = gray;lightgray - reverse = black;lightgray - header = yellow;blue - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = black;lightgray - dfocus = black;cyan - dhotnormal = blue;lightgray - dhotfocus = blue;cyan - dtitle = blue;lightgray - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = yellow;lightgray - errdtitle = yellow;red - -[filehighlight] - directory = white; - executable = brightgreen; - symlink = lightgray; - hardlink = - stalelink = brightred; - device = brightmagenta; - special = black; - core = red; - temp = gray; - archive = brightmagenta; - doc = brown; - source = cyan; - media = green; - graph = brightcyan; - database = brightred; - -[menu] - _default_ = white;cyan - menusel = white;black - menuhot = yellow;cyan - menuhotsel = yellow;black - menuinactive = lightgray;blue - -[popupmenu] - _default_ = white;cyan - menusel = white;black - menutitle = white;cyan - -[buttonbar] - hotkey = lightgray;blue - button = lightgray;blue - -[statusbar] - _default_ = black;cyan - -[help] - _default_ = black;lightgray - helpitalic = red;lightgray - helpbold = blue;lightgray - helplink = black;cyan - helpslink = yellow;blue - helptitle = blue;lightgray - -[editor] - _default_ = lightgray;blue - editbold = yellow;green - editmarked = black;cyan - editwhitespace = brightblue;blue - editnonprintable = ;black - editlinestate = white;cyan - bookmark = white;red - bookmarkfound = black;green - editrightmargin = brightblue;black -# editbg = -# editframe = - editframeactive = white; - editframedrag = green; - -[viewer] - _default_ = lightgray;blue - viewbold = yellow;blue - viewunderline = brightred;blue - viewselected = yellow;cyan - -[diffviewer] - added = white;green - changedline = blue;cyan - changednew = red;cyan - changed = white;cyan - removed = white;red - error = red;lightgray - -[widget-panel] - sort-up-char = ' - sort-down-char = . - filename-scroll-left-char = { - filename-scroll-right-char = } - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/featured-plus.ini b/recipes/wip/files/mc/source/misc/skins/featured-plus.ini deleted file mode 100644 index def2147da1..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/featured-plus.ini +++ /dev/null @@ -1,146 +0,0 @@ -# Please, use this skin in UTF-8 system codepage only. - -[skin] - description = Enhanced standard skin with alternative directory and file select/mark colors - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = lightgray;blue - selected = gray;cyan;bold - marked = yellow;blue;bold - markselect = white;cyan;bold - gauge = white;black - input = black;cyan - inputunchanged = gray;cyan - inputmark = cyan;black - disabled = gray;lightgray - reverse = black;lightgray - commandlinemark = black;lightgray - header = yellow;blue - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = black;lightgray - dfocus = black;cyan - dhotnormal = blue;lightgray - dhotfocus = blue;cyan - dtitle = blue;lightgray - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = yellow;lightgray - errdtitle = yellow;red - -[filehighlight] - directory = brightcyan;blue;bold - executable = brightgreen; - symlink = lightgray; - hardlink = - stalelink = brightred; - device = brightmagenta; - special = black; - core = red; - temp = gray; - archive = brightmagenta; - doc = brown; - source = cyan; - media = green; - graph = brightcyan; - database = brightred; - -[menu] - _default_ = white;cyan - menusel = white;black - menuhot = yellow;cyan - menuhotsel = yellow;black - menuinactive = black;cyan - -[popupmenu] - _default_ = white;cyan - menusel = white;black - menutitle = white;cyan - -[buttonbar] - hotkey = white;black - button = black;cyan - -[statusbar] - _default_ = black;cyan - -[help] - _default_ = black;lightgray - helpitalic = red;lightgray - helpbold = blue;lightgray - helplink = black;cyan - helpslink = yellow;blue - helptitle = blue;lightgray - -[editor] - _default_ = lightgray;blue - editbold = yellow;green - editmarked = black;cyan - editwhitespace = brightblue;blue - editnonprintable = ;black - editlinestate = white;cyan - bookmark = white;red - bookmarkfound = black;green - editrightmargin = brightblue;black -# editbg = -# editframe = - editframeactive = lightgray; - editframedrag = cyan; - -[viewer] - _default_ = lightgray;blue - viewbold = yellow;blue - viewunderline = brightred;blue - viewselected = yellow;cyan - -[diffviewer] - added = white;green - changedline = blue;cyan - changednew = red;cyan - changed = white;cyan - removed = white;red - error = red;lightgray - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = â‹… - hiddenfiles-hide-char = • - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/featured.ini b/recipes/wip/files/mc/source/misc/skins/featured.ini deleted file mode 100644 index f5b6f5dc46..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/featured.ini +++ /dev/null @@ -1,146 +0,0 @@ -# Please, use this skin in UTF-8 system codepage only. - -[skin] - description = Enhanced standard skin - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = lightgray;blue - selected = black;cyan - marked = yellow;blue - markselect = yellow;cyan - gauge = white;black - input = black;cyan - inputunchanged = gray;cyan - inputmark = cyan;black - disabled = gray;lightgray - reverse = black;lightgray - commandlinemark = black;lightgray - header = yellow;blue - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = black;lightgray - dfocus = black;cyan - dhotnormal = blue;lightgray - dhotfocus = blue;cyan - dtitle = blue;lightgray - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = yellow;lightgray - errdtitle = yellow;red - -[filehighlight] - directory = white; - executable = brightgreen; - symlink = lightgray; - hardlink = - stalelink = brightred; - device = brightmagenta; - special = black; - core = red; - temp = gray; - archive = brightmagenta; - doc = brown; - source = cyan; - media = green; - graph = brightcyan; - database = brightred; - -[menu] - _default_ = white;cyan - menusel = white;black - menuhot = yellow;cyan - menuhotsel = yellow;black - menuinactive = black;cyan - -[popupmenu] - _default_ = white;cyan - menusel = white;black - menutitle = white;cyan - -[buttonbar] - hotkey = white;black - button = black;cyan - -[statusbar] - _default_ = black;cyan - -[help] - _default_ = black;lightgray - helpitalic = red;lightgray - helpbold = blue;lightgray - helplink = black;cyan - helpslink = yellow;blue - helptitle = blue;lightgray - -[editor] - _default_ = lightgray;blue - editbold = yellow;green - editmarked = black;cyan - editwhitespace = brightblue;blue - editlinestate = white;cyan - editnonprintable = ;black - bookmark = white;red - bookmarkfound = black;green - editrightmargin = brightblue;black -# editbg = -# editframe = - editframeactive = lightgray; - editframedrag = cyan; - -[viewer] - _default_ = lightgray;blue - viewbold = yellow;blue - viewunderline = brightred;blue - viewselected = yellow;cyan - -[diffviewer] - added = white;green - changedline = blue;cyan - changednew = red;cyan - changed = white;cyan - removed = white;red - error = red;lightgray - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = â‹… - hiddenfiles-hide-char = • - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/gotar.ini b/recipes/wip/files/mc/source/misc/skins/gotar.ini deleted file mode 100644 index d49ddb6c06..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/gotar.ini +++ /dev/null @@ -1,135 +0,0 @@ -[skin] - description = GoTaR @PLD Linux - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = lightgray;black - selected = white;blue - marked = brightred; - markselect = yellow; - gauge = ;brown - input = brightgreen; - disabled = gray;blue - reverse = brightgreen;blue - header = brightred; - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = brightcyan;blue - dfocus = brightred;black - dhotnormal = brightred; - dhotfocus = yellow;black - dtitle = brightred; - -[error] - _default_ = white;red - errdfocus = brightgreen;blue - errdhotnormal = yellow; - errdhotfocus = yellow;blue - errdtitle = yellow; - -[filehighlight] - directory = brightcyan; - executable = brightgreen; - symlink = red; - hardlink = - stalelink = yellow;blue - device = green; - special = brightblue; - core = red; - temp = gray; - archive = cyan; - doc = brown; - source = green; - media = white; - graph = magenta; - database = ; - -[menu] - _default_ = brightgreen;black - menusel = brightcyan;blue - menuhot = brightred; - menuhotsel = yellow; - menuinactive = lightgray; - -[popupmenu] - _default_ = brightgreen;black - menusel = brightcyan;blue - menutitle = brightcyan;black - -[buttonbar] - hotkey = lightgray;black - button = white;blue - -[statusbar] - _default_ = white;blue - -[help] - _default_ = brightred;black - helpitalic = brightcyan; - helpbold = brightgreen; - helplink = white; - helpslink = yellow;blue - helptitle = brightgreen; - -[editor] - _default_ = lightgray;black - editbold = yellow;blue - editmarked = brightgreen;red - editwhitespace = brightblue;blue - editnonprintable = ;black - editlinestate = brightgreen - bookmark = white;red - bookmarkfound = black;green - editrightmargin = brightblue;blue -# editbg = -# editframe = - editframeactive = white; - editframedrag = green; - -[viewer] - _default_ = lightgray;black - viewbold = brightred;black - viewunderline = brightgreen;black - viewselected = yellow;black - -[diffviewer] - _default_ = lightgray;black - added = brightgreen; - changedline = cyan; - changednew = yellow; - changed = ;brown - removed = ;blue - error = white;red - -[widget-panel] - filename-scroll-left-char = { - filename-scroll-right-char = } - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/gray-green-purple256.ini b/recipes/wip/files/mc/source/misc/skins/gray-green-purple256.ini deleted file mode 100644 index 12a09e3095..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/gray-green-purple256.ini +++ /dev/null @@ -1,161 +0,0 @@ -[skin] - description = Gray-Green-Purple Skin - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[aliases] - bgmain = gray22 - bgbitdarker = gray21 - bgdarker = gray20 - main1 = rgb141 - main2 = rgb303 - -[core] - _default_ = black;bgmain - selected = ;main1 - marked = main2;;bold - markselect = main2;main1;bold - gauge = ;main1 - input = - inputunchanged = gray - inputmark = ;main1 - disabled = gray8;bgdarker - reverse = - commandlinemark = ;main1 - header = main2 - shadow = black;gray12 - -[dialog] - _default_ = black;bgdarker - dfocus = ;main1 - dhotnormal = main2 - dhotfocus = main2;main1 - dtitle = main2 - -[error] - # "white" might change color when going bold, so use "rgb555" instead - _default_ = rgb555;rgb400;bold - errdfocus = ;main2 - errdhotnormal = main1 - errdhotfocus = main1;main2 - errdtitle = main1 - -[filehighlight] - directory = - executable = rgb030 - symlink = rgb202 - hardlink = - stalelink = rgb400 - device = rgb231 - special = rgb331 - core = rgb430 - temp = gray15 - archive = rgb012 - doc = rgb103 - source = rgb310 - media = rgb024 - graph = rgb033 - database = rgb421 - -[menu] - _default_ = black;bgdarker - menusel = ;main1 - menuhot = main2 - menuhotsel = main2;main1 - menuinactive = - -[popupmenu] - _default_ = black;bgdarker - menusel = ;main1 - menutitle = main2 - -[buttonbar] - hotkey = black;bgmain - button = black;bgdarker - -[statusbar] - _default_ = black;bgdarker - -[help] - _default_ = black;bgdarker - helpitalic = rgb020 - helpbold = rgb300 - helplink = main2;;underline - helpslink = bgdarker;main2 - helptitle = main2 - -[editor] - _default_ = black;bgmain - editbold = rgb400 - editmarked = ;main1 - editwhitespace = rgb400;bgdarker - editnonprintable = ;black - editlinestate = ;bgdarker - bookmark = ;rgb531 - bookmarkfound = ;main2 - editrightmargin = rgb400;bgdarker -# editbg = - editframe = main2; - editframeactive = black; - editframedrag = rgb400; - -[viewer] - _default_ = black;bgmain - # "black" might change color when going bold, so use "rgb000" instead - viewbold = rgb000;;bold - viewunderline = ;;underline - viewselected = main2;main1;bold - -[diffviewer] - added = ;rgb340 - changedline = ;bgdarker - changednew = main2;bgdarker - changed = ;bgbitdarker - removed = ;rgb511 - # "white" might change color when going bold, so use "rgb555" instead - error = rgb555;rgb400;bold - -[widget-panel] - sort-up-char = â–´ - sort-down-char = â–¾ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = â—‚ - history-next-item-char = â–¸ - history-show-list-char = â–¾ - filename-scroll-left-char = â—‚ - filename-scroll-right-char = â–¸ - -[widget-scrollbar] - first-vert-char = â–´ - last-vert-char = â–¾ - first-horiz-char = â—‚ - last-horiz-char = â–¸ - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/gray-orange-blue256.ini b/recipes/wip/files/mc/source/misc/skins/gray-orange-blue256.ini deleted file mode 100644 index bce1a98397..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/gray-orange-blue256.ini +++ /dev/null @@ -1,161 +0,0 @@ -[skin] - description = Gray-Orange-Blue Skin - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[aliases] - bgmain = gray22 - bgbitdarker = gray21 - bgdarker = gray20 - main1 = rgb530 - main2 = rgb004 - -[core] - _default_ = black;bgmain - selected = ;main1 - marked = main2;;bold - markselect = main2;main1;bold - gauge = ;main1 - input = - inputunchanged = gray - inputmark = ;main1 - disabled = gray8;bgdarker - reverse = - commandlinemark = ;main1 - header = main2 - shadow = black;gray12 - -[dialog] - _default_ = black;bgdarker - dfocus = ;main1 - dhotnormal = main2 - dhotfocus = main2;main1 - dtitle = main2 - -[error] - # "white" might change color when going bold, so use "rgb555" instead - _default_ = rgb555;rgb400;bold - errdfocus = ;main2 - errdhotnormal = main1 - errdhotfocus = main1;main2 - errdtitle = main1 - -[filehighlight] - directory = - executable = rgb030 - symlink = rgb202 - hardlink = - stalelink = rgb400 - device = rgb231 - special = rgb331 - core = rgb430 - temp = gray15 - archive = rgb012 - doc = rgb103 - source = rgb310 - media = rgb024 - graph = rgb033 - database = rgb421 - -[menu] - _default_ = black;bgdarker - menusel = ;main1 - menuhot = main2 - menuhotsel = main2;main1 - menuinactive = - -[popupmenu] - _default_ = black;bgdarker - menusel = ;main1 - menutitle = main2 - -[buttonbar] - hotkey = black;bgmain - button = black;bgdarker - -[statusbar] - _default_ = black;bgdarker - -[help] - _default_ = black;bgdarker - helpitalic = rgb020 - helpbold = rgb300 - helplink = main2;;underline - helpslink = bgdarker;main2 - helptitle = main2 - -[editor] - _default_ = black;bgmain - editbold = rgb400 - editmarked = ;main1 - editwhitespace = rgb400;bgdarker - editnonprintable = ;black - editlinestate = ;bgdarker - bookmark = ;rgb531 - bookmarkfound = ;main2 - editrightmargin = rgb400;bgdarker -# editbg = - editframe = main2; - editframeactive = black; - editframedrag = rgb400; - -[viewer] - _default_ = black;bgmain - # "black" might change color when going bold, so use "rgb000" instead - viewbold = rgb000;;bold - viewunderline = ;;underline - viewselected = main2;main1;bold - -[diffviewer] - added = ;rgb340 - changedline = ;bgdarker - changednew = main2;bgdarker - changed = ;bgbitdarker - removed = ;rgb511 - # "white" might change color when going bold, so use "rgb555" instead - error = rgb555;rgb400;bold - -[widget-panel] - sort-up-char = â–´ - sort-down-char = â–¾ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = â—‚ - history-next-item-char = â–¸ - history-show-list-char = â–¾ - filename-scroll-left-char = â—‚ - filename-scroll-right-char = â–¸ - -[widget-scrollbar] - first-vert-char = â–´ - last-vert-char = â–¾ - first-horiz-char = â—‚ - last-horiz-char = â–¸ - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/julia256.ini b/recipes/wip/files/mc/source/misc/skins/julia256.ini deleted file mode 100644 index 2a731801d8..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/julia256.ini +++ /dev/null @@ -1,153 +0,0 @@ -# Dark skin with calm colors and good contrast. Mix of the standard & xoria256 skins. - -[skin] - description = Dark skin with calm colors and good contrast - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = lightgray;color237 - selected = black;cyan - marked = yellow;color237 - markselect = yellow;cyan - gauge = white;color237 - input = black;cyan - inputunchanged = gray;cyan - inputmark = cyan;color237 - disabled = gray;lightgray - reverse = black;lightgray - commandlinemark = black;lightgray - header = yellow;color237 - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = black;lightgray - dfocus = black;cyan - dhotnormal = red; - dhotfocus = red;cyan - dtitle = black; - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = red;lightgray - errdtitle = yellow;red - -[filehighlight] - directory = white; - executable = brightmagenta; - symlink = lightgray; - hardlink = - stalelink = brightred; - device = brightmagenta; - special = brightblue; - core = red; - temp = gray; - archive = brightgreen; - doc = brown; - source = cyan; - media = green; - graph = brightcyan; - database = brightred; - -[menu] - _default_ = lightgray;blue - menusel = black;cyan - menuhot = white;blue - menuhotsel = white;cyan - menuinactive = black;lightgray - -[popupmenu] - _default_ = lightgray;blue - menusel = black;cyan - menutitle = yellow;blue - -[buttonbar] - hotkey = red;lightgray - button = black;lightgray - -[statusbar] - _default_ = black;lightgray - -[help] - _default_ = black;lightgray - helpitalic = red;lightgray - helpbold = blue;lightgray - helplink = black;cyan - helpslink = yellow;blue - helptitle = blue;lightgray - -[editor] - _default_ = lightgray;black - editbold = yellow;green - editmarked = black;lightgray - editwhitespace = brightblue;black - editnonprintable = ;black - editlinestate = white;cyan - bookmark = white;red - bookmarkfound = black;green - editrightmargin = lightgray;color237 -# editbg = - editframe = gray; - editframeactive = lightgray; - editframedrag = red; - window-state-char = ↕ - window-close-char = ✕ - -[viewer] - _default_ = lightgray;black - viewbold = yellow;black - viewunderline = brightred;black - viewselected = yellow;cyan - -[diffviewer] - added = white;green - changedline = black;cyan - changednew = red;cyan - changed = white;cyan - removed = white;red - error = red;lightgray - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = ↠- history-next-item-char = → - history-show-list-char = ↓ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/julia256root.ini b/recipes/wip/files/mc/source/misc/skins/julia256root.ini deleted file mode 100644 index 4b2b8f2b7b..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/julia256root.ini +++ /dev/null @@ -1,153 +0,0 @@ -# Dark skin with calm colors and good contrast. Mix of the standard & xoria256 skins. -# Color referance https://www.ditig.com/publications/256-colors-cheat-sheet -[skin] - description = Dark skin with calm colors and good contrast (root) - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = lightgray;color237 - selected = color116;color94 - marked = yellow;color237 - markselect = yellow;color94 - gauge = white;color237 - input = black;cyan - inputunchanged = gray;cyan - inputmark = cyan;color94 - disabled = gray;lightgray - reverse = black;lightgray - commandlinemark = black;lightgray - header = color214;color237 - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = black;lightgray - dfocus = black;cyan - dhotnormal = red; - dhotfocus = red;cyan - dtitle = black; - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = red;lightgray - errdtitle = yellow;red - -[filehighlight] - directory = white; - executable = brightmagenta; - symlink = lightgray; - hardlink = - stalelink = brightred; - device = brightmagenta; - special = brightblue; - core = red; - temp = gray; - archive = brightgreen; - doc = brown; - source = cyan; - media = green; - graph = brightcyan; - database = brightred; - -[menu] - _default_ = lightgray;blue - menusel = black;cyan - menuhot = white;blue - menuhotsel = white;cyan - menuinactive = black;lightgray - -[popupmenu] - _default_ = lightgray;blue - menusel = black;cyan - menutitle = yellow;blue - -[buttonbar] - hotkey = red;lightgray - button = black;lightgray - -[statusbar] - _default_ = black;lightgray - -[help] - _default_ = black;lightgray - helpitalic = red;lightgray - helpbold = blue;lightgray - helplink = black;cyan - helpslink = yellow;blue - helptitle = blue;lightgray - -[editor] - _default_ = lightgray;black - editbold = yellow;green - editmarked = black;lightgray - editwhitespace = brightblue;black - editnonprintable = ;black - editlinestate = white;cyan - bookmark = white;red - bookmarkfound = black;green - editrightmargin = lightgray;color237 -# editbg = - editframe = gray; - editframeactive = lightgray; - editframedrag = red; - window-state-char = ↕ - window-close-char = ✕ - -[viewer] - _default_ = lightgray;black - viewbold = yellow;black - viewunderline = brightred;black - viewselected = yellow;cyan - -[diffviewer] - added = white;green - changedline = black;cyan - changednew = red;cyan - changed = white;cyan - removed = white;red - error = red;lightgray - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = ↠- history-next-item-char = → - history-show-list-char = ↓ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/mc46.ini b/recipes/wip/files/mc/source/misc/skins/mc46.ini deleted file mode 100644 index fe42e792ab..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/mc46.ini +++ /dev/null @@ -1,130 +0,0 @@ -[skin] - description = mc-4.6 skin - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = lightgray;blue - selected = black;cyan - marked = yellow;blue - markselect = yellow;cyan - gauge = white;black - input = black;cyan - inputunchanged = black;cyan - inputmark = cyan;black - disabled = gray;lightgray - reverse = black;lightgray - commandlinemark = black;lightgray - header = yellow;blue - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = black;lightgray - dfocus = black;cyan - dhotnormal = blue;lightgray - dhotfocus = blue;cyan - dtitle = blue;lightgray - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = yellow;lightgray - errdtitle = yellow;red - -[filehighlight] - directory = white; - executable = brightgreen; - symlink = lightgray; - stalelink = brightred; - device = brightmagenta; - special = black; - -[menu] - _default_ = black;cyan - menusel = white;black - menuhot = yellow;cyan - menuhotsel = yellow;black - menuinactive = gray;cyan - -[popupmenu] - _default_ = white;cyan - menusel = yellow;black - menutitle = yellow;cyan - -[buttonbar] - hotkey = lightgray;black - button = black;cyan - -[statusbar] - _default_ = black;cyan - -[help] - _default_ = black;lightgray - helpitalic = red;lightgray - helpbold = blue;lightgray - helplink = black;cyan - helpslink = yellow;blue - helptitle = blue;lightgray - -[editor] - _default_ = lightgray;blue - editbold = yellow; - editmarked = black;cyan - editwhitespace = brightblue;blue - editnonprintable = ;black - editlinestate = white;cyan - bookmark = white;red - bookmarkfound = black;green - editrightmargin = brightblue;black -# editbg = -# editframe = - editframeactive = lightgray; - editframedrag = cyan; - -[viewer] - _default_ = lightgray;blue - viewbold = yellow;blue - viewunderline = brightred;blue - viewselected = yellow;cyan - -[diffviewer] - added = white;green - changedline = blue;cyan - changednew = red;cyan - changed = white;cyan - removed = white;red - error = red;lightgray - -[widget-panel] - sort-up-char = ' - sort-down-char = . - filename-scroll-left-char = { - filename-scroll-right-char = } - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/modarcon16-defbg-thin.ini b/recipes/wip/files/mc/source/misc/skins/modarcon16-defbg-thin.ini deleted file mode 100644 index 9f9e299865..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarcon16-defbg-thin.ini +++ /dev/null @@ -1,184 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no subsitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarCon16-DefaultBG (user) - 256colors = false - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ─ - dbottommiddle = ─ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color7;default - selected = color15;color2 - marked = color11;;bold - markselect = color11;color2;bold - gauge = color15;color2 - input = color15;color0 - inputmark = color11;color2;bold - inputunchanged = ;color0 - commandlinemark = color11;color2;bold - reverse = color0;color10 - header = color3 - disabled = color8;color7 - #inputhistory = - #commandhistory = - -[dialog] - _default_ = color0;color7 - dhotnormal = color3 - dfocus = color11;color2;bold - dhotfocus = color3;color2 - dtitle = color11;;bold - -[error] - _default_ = color15;color1 - errdfocus = color11;color2;bold - errdhotnormal = color13 - errdhotfocus = color13;color2 - errdtitle = color11;;bold - -[filehighlight] - directory = color15;;bold - executable = color10 - symlink = color12 - hardlink = - stalelink = color9 - device = color13 - special = color3 - core = color1 - temp = color8 - archive = color3 - doc = color14 - source = color6 - media = color5 - graph = color13 - database = color2 - -[menu] - _default_ = color7;default - menusel = color11;color2;bold - menuhot = color3 - menuhotsel = color3;color2 - menuinactive = color8 - -[popupmenu] - _default_ = color7;default - menusel = color11;color2;bold - menutitle = color11;;bold - -[buttonbar] - button = color7 - hotkey = color15;color3 - -[statusbar] - _default_ = color15;color2 - -[help] - _default_ = color0;color7 - helpitalic = color10;;bold - helpbold = color5 - helplink = color14 - helpslink = color11;color2;bold - helptitle = color11;;bold - -[editor] - _default_ = color7;default - editbold = color15;;bold - editmarked = color11;color2;bold - editwhitespace = color12;color4 - editlinestate = color2;color0 - bookmark = color0;color7 - bookmarkfound = color0;color7 - editrightmargin = color0;color7 - -[viewer] - _default_ = color7;default - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color11;color2;bold - -[diffviewer] - changedline = color15;color4 - changednew = color15;color2 - changed = color15;color6 - added = color0;color7 - removed = color8;color0 - error = color15;color1 - -[widget-common] - sort-sign-up = ↑ - sort-sign-down = ↓ - -[widget-panel] - hiddenfiles-sign-show = • - hiddenfiles-sign-hide = â—‹ - history-prev-item-sign = « - history-next-item-sign = » - history-show-list-sign = ^ - -[widget-scollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/modarcon16-defbg.ini b/recipes/wip/files/mc/source/misc/skins/modarcon16-defbg.ini deleted file mode 100644 index c79a5a2b22..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarcon16-defbg.ini +++ /dev/null @@ -1,188 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no substitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarCon16-DefaultBG (user) - 256colors = false - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = color7;default - selected = color15;color2 - marked = color11;;bold - markselect = color11;color2;bold - gauge = color15;color2 - input = color15;color0 - inputmark = color11;color2;bold - inputunchanged = ;color0 - commandlinemark = color11;color2;bold - reverse = color0;color10 - header = color3 - disabled = color8;color7 - #inputhistory = - #commandhistory = - shadow = color7;color0 - -[dialog] - _default_ = color0;color7 - dhotnormal = color3 - dfocus = color11;color2;bold - dhotfocus = color3;color2 - dtitle = color11;;bold - -[error] - _default_ = color15;color1 - errdfocus = color11;color2;bold - errdhotnormal = color13 - errdhotfocus = color13;color2 - errdtitle = color11;;bold - -[filehighlight] - directory = color15;;bold - executable = color10 - symlink = color12 - hardlink = - stalelink = color9 - device = color13 - special = color3 - core = color1 - temp = color8 - archive = color3 - doc = color14 - source = color6 - media = color5 - graph = color13 - database = color2 - -[menu] - _default_ = color7;default - menusel = color11;color2;bold - menuhot = color3 - menuhotsel = color3;color2 - menuinactive = color8 - -[popupmenu] - _default_ = color7;default - menusel = color11;color2;bold - menutitle = color11;;bold - -[buttonbar] - button = color7 - hotkey = color15;color3 - -[statusbar] - _default_ = color15;color2 - -[help] - _default_ = color0;color7 - helpitalic = color10;;bold - helpbold = color5 - helplink = color14 - helpslink = color11;color2;bold - helptitle = color11;;bold - -[editor] - _default_ = color7;default - editbold = color15;;bold - editmarked = color11;color2;bold - editwhitespace = color12;color4 - editnonprintable = ;black - editlinestate = color2;color0 - bookmark = color0;color7 - bookmarkfound = color0;color7 - editrightmargin = color0;color7 - -[viewer] - _default_ = color7;default - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color11;color2;bold - -[diffviewer] - changedline = color15;color4 - changednew = color15;color2 - changed = color15;color6 - added = color0;color7 - removed = color8;color0 - error = color15;color1 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/modarcon16-thin.ini b/recipes/wip/files/mc/source/misc/skins/modarcon16-thin.ini deleted file mode 100644 index 86101f5060..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarcon16-thin.ini +++ /dev/null @@ -1,184 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no subsitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarCon16 (user) - 256colors = false - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ─ - dbottommiddle = ─ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color7;color0 - selected = color15;color2 - marked = color11;;bold - markselect = color11;color2;bold - gauge = color15;color2 - input = color15 - inputmark = color11;color2;bold - inputunchanged = - commandlinemark = color11;color2;bold - reverse = color0;color10 - header = color3 - disabled = color8;color7 - #inputhistory = - #commandhistory = - -[dialog] - _default_ = color0;color7 - dhotnormal = color3 - dfocus = color11;color2;bold - dhotfocus = color3;color2 - dtitle = color11;;bold - -[error] - _default_ = color15;color1 - errdfocus = color11;color2;bold - errdhotnormal = color13 - errdhotfocus = color13;color2 - errdtitle = color11;;bold - -[filehighlight] - directory = color15;;bold - executable = color10 - symlink = color12 - hardlink = - stalelink = color9 - device = color13 - special = color3 - core = color1 - temp = color8 - archive = color3 - doc = color14 - source = color6 - media = color5 - graph = color13 - database = color2 - -[menu] - _default_ = color0;color7 - menusel = color11;color2;bold - menuhot = color3 - menuhotsel = color3;color2 - menuinactive = color8 - -[popupmenu] - _default_ = color0;color7 - menusel = color11;color2;bold - menutitle = color11;;bold - -[buttonbar] - button = color7 - hotkey = color15;color3 - -[statusbar] - _default_ = color15;color2 - -[help] - _default_ = color0;color7 - helpitalic = color10;;bold - helpbold = color5 - helplink = color14 - helpslink = color11;color2;bold - helptitle = color11;;bold - -[editor] - _default_ = color7;color0 - editbold = color15;;bold - editmarked = color11;color2;bold - editwhitespace = color12;color4 - editlinestate = color2;color0 - bookmark = color0;color7 - bookmarkfound = color0;color7 - editrightmargin = color0;color7 - -[viewer] - _default_ = color7;color0 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color11;color2;bold - -[diffviewer] - changedline = color15;color4 - changednew = color15;color2 - changed = color15;color6 - added = color0;color7 - removed = color8;color0 - error = color15;color1 - -[widget-common] - sort-sign-up = ↑ - sort-sign-down = ↓ - -[widget-panel] - hiddenfiles-sign-show = • - hiddenfiles-sign-hide = â—‹ - history-prev-item-sign = « - history-next-item-sign = » - history-show-list-sign = ^ - -[widget-scollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/modarcon16.ini b/recipes/wip/files/mc/source/misc/skins/modarcon16.ini deleted file mode 100644 index 6e958368c0..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarcon16.ini +++ /dev/null @@ -1,188 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no substitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarCon16 (user) - 256colors = false - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = color7;color0 - selected = color15;color2 - marked = color11;;bold - markselect = color11;color2;bold - gauge = color15;color2 - input = color15 - inputmark = color11;color2;bold - inputunchanged = - commandlinemark = color11;color2;bold - reverse = color0;color10 - header = color3 - disabled = color8;color7 - #inputhistory = - #commandhistory = - shadow = color7;color0 - -[dialog] - _default_ = color0;color7 - dhotnormal = color3 - dfocus = color11;color2;bold - dhotfocus = color3;color2 - dtitle = color11;;bold - -[error] - _default_ = color15;color1 - errdfocus = color11;color2;bold - errdhotnormal = color13 - errdhotfocus = color13;color2 - errdtitle = color11;;bold - -[filehighlight] - directory = color15;;bold - executable = color10 - symlink = color12 - hardlink = - stalelink = color9 - device = color13 - special = color3 - core = color1 - temp = color8 - archive = color3 - doc = color14 - source = color6 - media = color5 - graph = color13 - database = color2 - -[menu] - _default_ = color0;color7 - menusel = color11;color2;bold - menuhot = color3 - menuhotsel = color3;color2 - menuinactive = color8 - -[popupmenu] - _default_ = color0;color7 - menusel = color11;color2;bold - menutitle = color11;;bold - -[buttonbar] - button = color7 - hotkey = color15;color3 - -[statusbar] - _default_ = color15;color2 - -[help] - _default_ = color0;color7 - helpitalic = color10;;bold - helpbold = color5 - helplink = color14 - helpslink = color11;color2;bold - helptitle = color11;;bold - -[editor] - _default_ = color7;color0 - editbold = color15;;bold - editmarked = color11;color2;bold - editwhitespace = color2;color0 - editnonprintable = ;black - editlinestate = color2;color0 - bookmark = color0;color7 - bookmarkfound = color0;color7 - editrightmargin = color0;color7 - -[viewer] - _default_ = color7;color0 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color11;color2;bold - -[diffviewer] - changedline = color15;color4 - changednew = color15;color2 - changed = color15;color6 - added = color0;color7 - removed = color8;color0 - error = color15;color1 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/modarcon16root-defbg-thin.ini b/recipes/wip/files/mc/source/misc/skins/modarcon16root-defbg-thin.ini deleted file mode 100644 index 5d0d391413..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarcon16root-defbg-thin.ini +++ /dev/null @@ -1,184 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no subsitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarCon16root-DefaultBG (root) - 256colors = false - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ─ - dbottommiddle = ─ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color7;default - selected = color15;color1 - marked = color11;;bold - markselect = color11;color1;bold - gauge = color15;color1 - input = color15;color0 - inputmark = color11;color1;bold - inputunchanged = ;color0 - commandlinemark = color11;color1;bold - reverse = color0;color9 - header = color3 - disabled = color8;color7 - #inputhistory = - #commandhistory = - -[dialog] - _default_ = color0;color7 - dhotnormal = color3 - dfocus = color11;color1;bold - dhotfocus = color5;color1;bold - dtitle = color11;;bold - -[error] - _default_ = color15;color1 - errdfocus = color11;color3;bold - errdhotnormal = color13 - errdhotfocus = color13;color3 - errdtitle = color11;;bold - -[filehighlight] - directory = color15;;bold - executable = color10 - symlink = color12 - hardlink = - stalelink = color9 - device = color13 - special = color3 - core = color1 - temp = color8 - archive = color3 - doc = color14 - source = color6 - media = color5 - graph = color13 - database = color2 - -[menu] - _default_ = color7;default - menusel = color11;color1;bold - menuhot = color3 - menuhotsel = color5;color1;bold - menuinactive = color8 - -[popupmenu] - _default_ = color7;default - menusel = color11;color1;bold - menutitle = color11;;bold - -[buttonbar] - button = color7 - hotkey = color15;color3 - -[statusbar] - _default_ = color15;color1 - -[help] - _default_ = color0;color7 - helpitalic = color10;;bold - helpbold = color5 - helplink = color14 - helpslink = color11;color1;bold - helptitle = color11;;bold - -[editor] - _default_ = color7;default - editbold = color15;;bold - editmarked = color11;color1;bold - editwhitespace = color12;color4 - editlinestate = color1;color0 - bookmark = color0;color7 - bookmarkfound = color0;color7 - editrightmargin = color0;color7 - -[viewer] - _default_ = color7;default - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color11;color1;bold - -[diffviewer] - changedline = color15;color4 - changednew = color15;color5 - changed = color15;color3 - added = color0;color7 - removed = color8;color0 - error = color15;color1 - -[widget-common] - sort-sign-up = ↑ - sort-sign-down = ↓ - -[widget-panel] - hiddenfiles-sign-show = • - hiddenfiles-sign-hide = â—‹ - history-prev-item-sign = « - history-next-item-sign = » - history-show-list-sign = ^ - -[widget-scollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/modarcon16root-defbg.ini b/recipes/wip/files/mc/source/misc/skins/modarcon16root-defbg.ini deleted file mode 100644 index 677f3ead28..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarcon16root-defbg.ini +++ /dev/null @@ -1,188 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no substitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarCon16root-DefaultBG (root) - 256colors = false - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = color7;default - selected = color15;color1 - marked = color11;;bold - markselect = color11;color1;bold - gauge = color15;color1 - input = color15;color0 - inputmark = color11;color1;bold - inputunchanged = ;color0 - commandlinemark = color11;color1;bold - reverse = color0;color9 - header = color3 - disabled = color8;color7 - #inputhistory = - #commandhistory = - shadow = color7;color0 - -[dialog] - _default_ = color0;color7 - dhotnormal = color3 - dfocus = color11;color1;bold - dhotfocus = color5;color1;bold - dtitle = color11;;bold - -[error] - _default_ = color15;color1 - errdfocus = color11;color3;bold - errdhotnormal = color13 - errdhotfocus = color13;color3 - errdtitle = color11;;bold - -[filehighlight] - directory = color15;;bold - executable = color10 - symlink = color12 - hardlink = - stalelink = color9 - device = color13 - special = color3 - core = color1 - temp = color8 - archive = color3 - doc = color14 - source = color6 - media = color5 - graph = color13 - database = color2 - -[menu] - _default_ = color7;default - menusel = color11;color1;bold - menuhot = color3 - menuhotsel = color5;color1;bold - menuinactive = color8 - -[popupmenu] - _default_ = color7;default - menusel = color11;color1;bold - menutitle = color11;;bold - -[buttonbar] - button = color7 - hotkey = color15;color3 - -[statusbar] - _default_ = color15;color1 - -[help] - _default_ = color0;color7 - helpitalic = color10;;bold - helpbold = color5 - helplink = color14 - helpslink = color11;color1;bold - helptitle = color11;;bold - -[editor] - _default_ = color7;default - editbold = color15;;bold - editmarked = color11;color1;bold - editwhitespace = color12;color4 - editnonprintable = ;black - editlinestate = color1;color0 - bookmark = color0;color7 - bookmarkfound = color0;color7 - editrightmargin = color0;color7 - -[viewer] - _default_ = color7;default - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color11;color1;bold - -[diffviewer] - changedline = color15;color4 - changednew = color15;color5 - changed = color15;color3 - added = color0;color7 - removed = color8;color0 - error = color15;color1 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/modarcon16root-thin.ini b/recipes/wip/files/mc/source/misc/skins/modarcon16root-thin.ini deleted file mode 100644 index bd9fae7717..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarcon16root-thin.ini +++ /dev/null @@ -1,184 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no subsitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarCon16root (root) - 256colors = false - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ─ - dbottommiddle = ─ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color7;color0 - selected = color15;color1 - marked = color11;;bold - markselect = color11;color1;bold - gauge = color15;color1 - input = color15 - inputmark = color11;color1;bold - inputunchanged = - commandlinemark = color11;color1;bold - reverse = color0;color9 - header = color3 - disabled = color8;color7 - #inputhistory = - #commandhistory = - -[dialog] - _default_ = color0;color7 - dhotnormal = color3 - dfocus = color11;color1;bold - dhotfocus = color5;color1;bold - dtitle = color11;;bold - -[error] - _default_ = color15;color1 - errdfocus = color11;color3;bold - errdhotnormal = color13 - errdhotfocus = color13;color3 - errdtitle = color11;;bold - -[filehighlight] - directory = color15;;bold - executable = color10 - symlink = color12 - hardlink = - stalelink = color9 - device = color13 - special = color3 - core = color1 - temp = color8 - archive = color3 - doc = color14 - source = color6 - media = color5 - graph = color13 - database = color2 - -[menu] - _default_ = color0;color7 - menusel = color11;color1;bold - menuhot = color3 - menuhotsel = color5;color1;bold - menuinactive = color8 - -[popupmenu] - _default_ = color0;color7 - menusel = color11;color1;bold - menutitle = color11;;bold - -[buttonbar] - button = color7 - hotkey = color15;color3 - -[statusbar] - _default_ = color15;color1 - -[help] - _default_ = color0;color7 - helpitalic = color10;;bold - helpbold = color5 - helplink = color14 - helpslink = color11;color1;bold - helptitle = color11;;bold - -[editor] - _default_ = color7;color0 - editbold = color15;;bold - editmarked = color11;color1;bold - editwhitespace = color12;color4 - editlinestate = color1;color0 - bookmark = color0;color7 - bookmarkfound = color0;color7 - editrightmargin = color0;color7 - -[viewer] - _default_ = color7;color0 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color11;color1;bold - -[diffviewer] - changedline = color15;color4 - changednew = color15;color5 - changed = color15;color3 - added = color0;color7 - removed = color8;color0 - error = color15;color1 - -[widget-common] - sort-sign-up = ↑ - sort-sign-down = ↓ - -[widget-panel] - hiddenfiles-sign-show = • - hiddenfiles-sign-hide = â—‹ - history-prev-item-sign = « - history-next-item-sign = » - history-show-list-sign = ^ - -[widget-scollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/modarcon16root.ini b/recipes/wip/files/mc/source/misc/skins/modarcon16root.ini deleted file mode 100644 index 49164d6af3..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarcon16root.ini +++ /dev/null @@ -1,188 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no substitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarCon16root (root) - 256colors = false - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = color7;color0 - selected = color15;color1 - marked = color11;;bold - markselect = color11;color1;bold - gauge = color15;color1 - input = color15 - inputmark = color11;color1;bold - inputunchanged = - commandlinemark = color11;color1;bold - reverse = color0;color9 - header = color3 - disabled = color8;color7 - #inputhistory = - #commandhistory = - shadow = color7;color0 - -[dialog] - _default_ = color0;color7 - dhotnormal = color3 - dfocus = color11;color1;bold - dhotfocus = color5;color1;bold - dtitle = color11;;bold - -[error] - _default_ = color15;color1 - errdfocus = color11;color3;bold - errdhotnormal = color13 - errdhotfocus = color13;color3 - errdtitle = color11;;bold - -[filehighlight] - directory = color15;;bold - executable = color10 - symlink = color12 - hardlink = - stalelink = color9 - device = color13 - special = color3 - core = color1 - temp = color8 - archive = color3 - doc = color14 - source = color6 - media = color5 - graph = color13 - database = color2 - -[menu] - _default_ = color0;color7 - menusel = color11;color1;bold - menuhot = color3 - menuhotsel = color5;color1;bold - menuinactive = color8 - -[popupmenu] - _default_ = color0;color7 - menusel = color11;color1;bold - menutitle = color11;;bold - -[buttonbar] - button = color7 - hotkey = color15;color3 - -[statusbar] - _default_ = color15;color1 - -[help] - _default_ = color0;color7 - helpitalic = color10;;bold - helpbold = color5 - helplink = color14 - helpslink = color11;color1;bold - helptitle = color11;;bold - -[editor] - _default_ = color7;color0 - editbold = color15;;bold - editmarked = color11;color1;bold - editwhitespace = color12;color4 - editnonprintable = ;black - editlinestate = color1;color0 - bookmark = color0;color7 - bookmarkfound = color0;color7 - editrightmargin = color0;color7 - -[viewer] - _default_ = color7;color0 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color11;color1;bold - -[diffviewer] - changedline = color15;color4 - changednew = color15;color5 - changed = color15;color3 - added = color0;color7 - removed = color8;color0 - error = color15;color1 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/modarin256-defbg-thin.ini b/recipes/wip/files/mc/source/misc/skins/modarin256-defbg-thin.ini deleted file mode 100644 index ded04ef708..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarin256-defbg-thin.ini +++ /dev/null @@ -1,184 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no subsitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarIn256-DefaultBG (user) - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ─ - dbottommiddle = ─ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color250;default - selected = color253;color23 - marked = color228;;bold - markselect = color228;color23;bold - gauge = color250;color66 - input = color187;color235;bold - inputmark = color228;color23;bold - inputunchanged = color144;color235;bold - commandlinemark = color228;color23;bold - reverse = color254;color66 - header = color180;;bold - disabled = color246;color239 - #inputhistory = - #commandhistory = - -[dialog] - _default_ = color252;color239 - dhotnormal = color214 - dfocus = color228;color23;bold - dhotfocus = color214;color23 - dtitle = color180;;bold - -[error] - _default_ = color230;color52 - errdfocus = color254;color23;bold - errdhotnormal = color203;color52 - errdhotfocus = color203;color23;bold - errdtitle = color227;;bold - -[filehighlight] - directory = color144;;bold - executable = color114 - symlink = color45 - hardlink = - stalelink = color203 - device = color170 - special = color142 - core = color197 - temp = color245 - archive = color172 - doc = color153 - source = color109 - media = color141 - graph = color216 - database = color103 - -[menu] - _default_ = color250;default - menusel = color253;color23 - menuhot = color214 - menuhotsel = color214;color23 - menuinactive = color245 - -[popupmenu] - _default_ = color250;default - menusel = color253;color23 - menutitle = color180;;bold - -[buttonbar] - button = color253;color236 - hotkey = color214;color238;bold - -[statusbar] - _default_ = color253;color66 - -[help] - _default_ = color252;color239 - helpitalic = color114;;bold - helpbold = color180;;bold - helplink = color45 - helpslink = color228;color23;bold - helptitle = color180;;bold - -[editor] - _default_ = color250;default - editbold = color228;;bold - editmarked = color228;color23;bold - editwhitespace = color56;color234 - editlinestate = color66;color235 - bookmark = ;color239 - bookmarkfound = ;color239;bold - editrightmargin = ;color235;bold - -[viewer] - _default_ = color250;default - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color23;bold - -[diffviewer] - changedline = color231;color29 - changednew = color232;color78 - changed = color231;color39 - added = color232;color81 - removed = ;color234 - error = color231;color160 - -[widget-common] - sort-sign-up = ↑ - sort-sign-down = ↓ - -[widget-panel] - hiddenfiles-sign-show = • - hiddenfiles-sign-hide = â—‹ - history-prev-item-sign = « - history-next-item-sign = » - history-show-list-sign = ^ - -[widget-scollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/modarin256-defbg.ini b/recipes/wip/files/mc/source/misc/skins/modarin256-defbg.ini deleted file mode 100644 index d4e84fefe9..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarin256-defbg.ini +++ /dev/null @@ -1,188 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no substitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarIn256-DefaultBG (user) - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = color250;default - selected = color253;color23 - marked = color228;;bold - markselect = color228;color23;bold - gauge = color250;color66 - input = color187;color235;bold - inputmark = color228;color23;bold - inputunchanged = color144;color235;bold - commandlinemark = color228;color23;bold - reverse = color254;color66 - header = color180;;bold - disabled = color246;color239 - #inputhistory = - #commandhistory = - shadow = color240;color0 - -[dialog] - _default_ = color252;color239 - dhotnormal = color214 - dfocus = color228;color23;bold - dhotfocus = color214;color23 - dtitle = color180;;bold - -[error] - _default_ = color230;color52 - errdfocus = color254;color23;bold - errdhotnormal = color203;color52 - errdhotfocus = color203;color23;bold - errdtitle = color227;;bold - -[filehighlight] - directory = color144;;bold - executable = color114 - symlink = color45 - hardlink = - stalelink = color203 - device = color170 - special = color142 - core = color197 - temp = color245 - archive = color172 - doc = color153 - source = color109 - media = color141 - graph = color216 - database = color103 - -[menu] - _default_ = color250;default - menusel = color253;color23 - menuhot = color214 - menuhotsel = color214;color23 - menuinactive = color245 - -[popupmenu] - _default_ = color250;default - menusel = color253;color23 - menutitle = color180;;bold - -[buttonbar] - button = color253;color236 - hotkey = color214;color238;bold - -[statusbar] - _default_ = color253;color66 - -[help] - _default_ = color252;color239 - helpitalic = color114;;bold - helpbold = color180;;bold - helplink = color45 - helpslink = color228;color23;bold - helptitle = color180;;bold - -[editor] - _default_ = color250;default - editbold = color228;;bold - editmarked = color228;color23;bold - editwhitespace = color56;color234 - editnonprintable = ;black - editlinestate = color66;color235 - bookmark = ;color239 - bookmarkfound = ;color239;bold - editrightmargin = ;color235;bold - -[viewer] - _default_ = color250;default - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color23;bold - -[diffviewer] - changedline = color231;color29 - changednew = color232;color78 - changed = color231;color39 - added = color232;color81 - removed = ;color234 - error = color231;color160 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/modarin256-thin.ini b/recipes/wip/files/mc/source/misc/skins/modarin256-thin.ini deleted file mode 100644 index ebc5991cad..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarin256-thin.ini +++ /dev/null @@ -1,184 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no subsitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarIn256 (user) - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ─ - dbottommiddle = ─ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color252;color237 - selected = color253;color23 - marked = color228;;bold - markselect = color228;color23;bold - gauge = color250;color66 - input = color187;color235;bold - inputmark = color228;color23;bold - inputunchanged = color144;color235;bold - commandlinemark = color228;color23;bold - reverse = color254;color66 - header = color180;;bold - disabled = color246;color239 - #inputhistory = - #commandhistory = - -[dialog] - _default_ = color252;color239 - dhotnormal = color214 - dfocus = color228;color23;bold - dhotfocus = color214;color23 - dtitle = color180;;bold - -[error] - _default_ = color230;color52 - errdfocus = color254;color23;bold - errdhotnormal = color203;color52 - errdhotfocus = color203;color23;bold - errdtitle = color227;;bold - -[filehighlight] - directory = color144;;bold - executable = color114 - symlink = color45 - hardlink = - stalelink = color203 - device = color170 - special = color142 - core = color197 - temp = color245 - archive = color172 - doc = color153 - source = color109 - media = color141 - graph = color216 - database = color103 - -[menu] - _default_ = color252;color239 - menusel = color253;color23 - menuhot = color214 - menuhotsel = color214;color23 - menuinactive = color246 - -[popupmenu] - _default_ = color252;color239 - menusel = color253;color23 - menutitle = color180;;bold - -[buttonbar] - button = color253;color236 - hotkey = color214;color238;bold - -[statusbar] - _default_ = color253;color66 - -[help] - _default_ = color252;color239 - helpitalic = color114;;bold - helpbold = color180;;bold - helplink = color45 - helpslink = color228;color23;bold - helptitle = color180;;bold - -[editor] - _default_ = color252;color237 - editbold = color228;;bold - editmarked = color228;color23;bold - editwhitespace = color56;color234 - editlinestate = color66;color235 - bookmark = ;color239 - bookmarkfound = ;color239;bold - editrightmargin = ;color235;bold - -[viewer] - _default_ = color252;color237 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color23;bold - -[diffviewer] - changedline = color231;color29 - changednew = color232;color78 - changed = color231;color39 - added = color232;color81 - removed = ;color235 - error = color231;color160 - -[widget-common] - sort-sign-up = ↑ - sort-sign-down = ↓ - -[widget-panel] - hiddenfiles-sign-show = • - hiddenfiles-sign-hide = â—‹ - history-prev-item-sign = « - history-next-item-sign = » - history-show-list-sign = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/modarin256.ini b/recipes/wip/files/mc/source/misc/skins/modarin256.ini deleted file mode 100644 index afdd71c678..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarin256.ini +++ /dev/null @@ -1,188 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no substitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarIn256 (user) - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = color252;color237 - selected = color253;color23 - marked = color228;;bold - markselect = color228;color23;bold - gauge = color250;color66 - input = color187;color235;bold - inputmark = color228;color23;bold - inputunchanged = color144;color235;bold - commandlinemark = color228;color23;bold - reverse = color254;color66 - header = color180;;bold - disabled = color246;color239 - #inputhistory = - #commandhistory = - shadow = color240;color0 - -[dialog] - _default_ = color252;color239 - dhotnormal = color214 - dfocus = color228;color23;bold - dhotfocus = color214;color23 - dtitle = color180;;bold - -[error] - _default_ = color230;color52 - errdfocus = color254;color23;bold - errdhotnormal = color203;color52 - errdhotfocus = color203;color23;bold - errdtitle = color227;;bold - -[filehighlight] - directory = color144;;bold - executable = color114 - symlink = color45 - hardlink = - stalelink = color203 - device = color170 - special = color142 - core = color197 - temp = color245 - archive = color172 - doc = color153 - source = color109 - media = color141 - graph = color216 - database = color103 - -[menu] - _default_ = color252;color239 - menusel = color253;color23 - menuhot = color214 - menuhotsel = color214;color23 - menuinactive = color246 - -[popupmenu] - _default_ = color252;color239 - menusel = color253;color23 - menutitle = color180;;bold - -[buttonbar] - button = color253;color236 - hotkey = color214;color238;bold - -[statusbar] - _default_ = color253;color66 - -[help] - _default_ = color252;color239 - helpitalic = color114;;bold - helpbold = color180;;bold - helplink = color45 - helpslink = color228;color23;bold - helptitle = color180;;bold - -[editor] - _default_ = color252;color237 - editbold = color228;;bold - editmarked = color228;color23;bold - editwhitespace = color56;color234 - editnonprintable = ;black - editlinestate = color66;color235 - bookmark = ;color239 - bookmarkfound = ;color239;bold - editrightmargin = ;color235;bold - -[viewer] - _default_ = color252;color237 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color23;bold - -[diffviewer] - changedline = color231;color29 - changednew = color232;color78 - changed = color231;color39 - added = color232;color81 - removed = ;color235 - error = color231;color160 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/modarin256root-defbg-thin.ini b/recipes/wip/files/mc/source/misc/skins/modarin256root-defbg-thin.ini deleted file mode 100644 index 17c871dd1f..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarin256root-defbg-thin.ini +++ /dev/null @@ -1,184 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no subsitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarIn256root-DefaultBG (root) - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ─ - dbottommiddle = ─ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color250;default - selected = color253;color88 - marked = color228;;bold - markselect = color228;color88;bold - gauge = color250;color95 - input = color187;color235;bold - inputmark = color228;color88;bold - inputunchanged = color144;color235;bold - commandlinemark = color228;color88;bold - reverse = color254;color95 - header = color180;;bold - disabled = color246;color239 - #inputhistory = - #commandhistory = - -[dialog] - _default_ = color252;color239 - dhotnormal = color214 - dfocus = color228;color88;bold - dhotfocus = color214;color88;bold - dtitle = color180;;bold - -[error] - _default_ = color230;color52 - errdfocus = color254;color95;bold - errdhotnormal = color203;color52 - errdhotfocus = color203;color95;bold - errdtitle = color227;;bold - -[filehighlight] - directory = color144;;bold - executable = color114 - symlink = color45 - hardlink = - stalelink = color203 - device = color170 - special = color142 - core = color197 - temp = color245 - archive = color172 - doc = color153 - source = color109 - media = color141 - graph = color216 - database = color103 - -[menu] - _default_ = color250;default - menusel = color253;color88 - menuhot = color214 - menuhotsel = color214;color88 - menuinactive = color245 - -[popupmenu] - _default_ = color250;default - menusel = color253;color88 - menutitle = color180;;bold - -[buttonbar] - button = color253;color236 - hotkey = color214;color238;bold - -[statusbar] - _default_ = color254;color95 - -[help] - _default_ = color252;color239 - helpitalic = color114;;bold - helpbold = color180;;bold - helplink = color45 - helpslink = color228;color88;bold - helptitle = color180;;bold - -[editor] - _default_ = color250;default - editbold = color228;;bold - editmarked = color228;color88;bold - editwhitespace = color56;color234 - editlinestate = color95;color235 - bookmark = ;color239 - bookmarkfound = ;color239;bold - editrightmargin = ;color235;bold - -[viewer] - _default_ = color250;default - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color88;bold - -[diffviewer] - changedline = color231;color130 - changednew = color232;color208 - changed = color231;color96 - added = color232;color218 - removed = ;color234 - error = color231;color160 - -[widget-common] - sort-sign-up = ↑ - sort-sign-down = ↓ - -[widget-panel] - hiddenfiles-sign-show = • - hiddenfiles-sign-hide = â—‹ - history-prev-item-sign = « - history-next-item-sign = » - history-show-list-sign = ^ - -[widget-scollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/modarin256root-defbg.ini b/recipes/wip/files/mc/source/misc/skins/modarin256root-defbg.ini deleted file mode 100644 index bb0a8233fe..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarin256root-defbg.ini +++ /dev/null @@ -1,188 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no substitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarIn256root-DefaultBG (root) - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = color250;default - selected = color253;color88 - marked = color228;;bold - markselect = color228;color88;bold - gauge = color250;color95 - input = color187;color235;bold - inputmark = color228;color88;bold - inputunchanged = color144;color235;bold - commandlinemark = color228;color88;bold - reverse = color254;color95 - header = color180;;bold - disabled = color246;color239 - #inputhistory = - #commandhistory = - shadow = color240;color0 - -[dialog] - _default_ = color252;color239 - dhotnormal = color214 - dfocus = color228;color88;bold - dhotfocus = color214;color88;bold - dtitle = color180;;bold - -[error] - _default_ = color230;color52 - errdfocus = color254;color95;bold - errdhotnormal = color203;color52 - errdhotfocus = color203;color95;bold - errdtitle = color227;;bold - -[filehighlight] - directory = color144;;bold - executable = color114 - symlink = color45 - hardlink = - stalelink = color203 - device = color170 - special = color142 - core = color197 - temp = color245 - archive = color172 - doc = color153 - source = color109 - media = color141 - graph = color216 - database = color103 - -[menu] - _default_ = color250;default - menusel = color253;color88 - menuhot = color214 - menuhotsel = color214;color88 - menuinactive = color245 - -[popupmenu] - _default_ = color250;default - menusel = color253;color88 - menutitle = color180;;bold - -[buttonbar] - button = color253;color236 - hotkey = color214;color238;bold - -[statusbar] - _default_ = color254;color95 - -[help] - _default_ = color252;color239 - helpitalic = color114;;bold - helpbold = color180;;bold - helplink = color45 - helpslink = color228;color88;bold - helptitle = color180;;bold - -[editor] - _default_ = color250;default - editbold = color228;;bold - editmarked = color228;color88;bold - editwhitespace = color56;color234 - editnonprintable = ;black - editlinestate = color95;color235 - bookmark = ;color239 - bookmarkfound = ;color239;bold - editrightmargin = ;color235;bold - -[viewer] - _default_ = color250;default - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color88;bold - -[diffviewer] - changedline = color231;color130 - changednew = color232;color208 - changed = color231;color96 - added = color232;color218 - removed = ;color234 - error = color231;color160 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/modarin256root-thin.ini b/recipes/wip/files/mc/source/misc/skins/modarin256root-thin.ini deleted file mode 100644 index 83e2a0358e..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarin256root-thin.ini +++ /dev/null @@ -1,184 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no subsitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarIn256root (root) - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ─ - dbottommiddle = ─ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color252;color237 - selected = color253;color88 - marked = color228;;bold - markselect = color228;color88;bold - gauge = color250;color95 - input = color187;color235;bold - inputmark = color228;color88;bold - inputunchanged = color144;color235;bold - commandlinemark = color228;color88;bold - reverse = color254;color95 - header = color180;;bold - disabled = color246;color239 - #inputhistory = - #commandhistory = - -[dialog] - _default_ = color252;color239 - dhotnormal = color214 - dfocus = color228;color88;bold - dhotfocus = color214;color88;bold - dtitle = color180;;bold - -[error] - _default_ = color230;color52 - errdfocus = color254;color95;bold - errdhotnormal = color203;color52 - errdhotfocus = color203;color95;bold - errdtitle = color227;;bold - -[filehighlight] - directory = color144;;bold - executable = color114 - symlink = color45 - hardlink = - stalelink = color203 - device = color170 - special = color142 - core = color197 - temp = color245 - archive = color172 - doc = color153 - source = color109 - media = color141 - graph = color216 - database = color103 - -[menu] - _default_ = color252;color239 - menusel = color253;color88 - menuhot = color214 - menuhotsel = color214;color88 - menuinactive = color246 - -[popupmenu] - _default_ = color252;color239 - menusel = color253;color88 - menutitle = color180;;bold - -[buttonbar] - button = color253;color236 - hotkey = color214;color238;bold - -[statusbar] - _default_ = color254;color95 - -[help] - _default_ = color252;color239 - helpitalic = color114;;bold - helpbold = color180;;bold - helplink = color45 - helpslink = color228;color88;bold - helptitle = color180;;bold - -[editor] - _default_ = color252;color237 - editbold = color228;;bold - editmarked = color228;color88;bold - editwhitespace = color56;color234 - editlinestate = color95;color235 - bookmark = ;color239 - bookmarkfound = ;color239;bold - editrightmargin = ;color235;bold - -[viewer] - _default_ = color252;color237 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color88;bold - -[diffviewer] - changedline = color231;color130 - changednew = color232;color208 - changed = color231;color96 - added = color232;color218 - removed = ;color235 - error = color231;color160 - -[widget-common] - sort-sign-up = ↑ - sort-sign-down = ↓ - -[widget-panel] - hiddenfiles-sign-show = • - hiddenfiles-sign-hide = â—‹ - history-prev-item-sign = « - history-next-item-sign = » - history-show-list-sign = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/modarin256root.ini b/recipes/wip/files/mc/source/misc/skins/modarin256root.ini deleted file mode 100644 index dd05c00586..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/modarin256root.ini +++ /dev/null @@ -1,188 +0,0 @@ -# -# modarin256: a moderate-dark-independent 256-color skin for MidnightCommander. -# -# This skin is using colors independent from the default 16 terminal colors, -# i.e., no matter how the 16 standard colors are configured, the appearance -# of Midnight Commander will not be affected. -# -# There are 4 variants of this skin: -# -# modarin256 -# - default skin, no standard colors used. -# -# modarin256-defbg -# - like modarin256, but using the default background color for core, editor, -# viewer, menu and popupmenu backgrounds, for use with (semi-)transparent -# background colors. -# -# modarin256root -# modarin256root-defbg -# - like the other two skins, but for the root user, with red colors used -# instead of green colors for things like select/focus/statusbar etc., -# to keep reminding the user that mc is running as root. -# -# Fallback skins for 16-color terminals (poor man's skins): -# -# modarcon16 -# modarcon16-defbg -# modarcon16root -# modarcon16root-defbg -# - like everything running in a 16-color terminal, these skins look ugly -# and are no substitute for the 256-color versions. As some terminals don't -# support using dark gray as background color, i used a black background -# and adjusted the remaining colors accordingly. -# -# 256-color skins require mc version 4.8 or newer. -# -# Author: Oliver Lange -# -# Version: 1.2 -# - -[skin] - description = MoDarIn256root (root) - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = color252;color237 - selected = color253;color88 - marked = color228;;bold - markselect = color228;color88;bold - gauge = color250;color95 - input = color187;color235;bold - inputmark = color228;color88;bold - inputunchanged = color144;color235;bold - commandlinemark = color228;color88;bold - reverse = color254;color95 - header = color180;;bold - disabled = color246;color239 - #inputhistory = - #commandhistory = - shadow = color240;color0 - -[dialog] - _default_ = color252;color239 - dhotnormal = color214 - dfocus = color228;color88;bold - dhotfocus = color214;color88;bold - dtitle = color180;;bold - -[error] - _default_ = color230;color52 - errdfocus = color254;color95;bold - errdhotnormal = color203;color52 - errdhotfocus = color203;color95;bold - errdtitle = color227;;bold - -[filehighlight] - directory = color144;;bold - executable = color114 - symlink = color45 - hardlink = - stalelink = color203 - device = color170 - special = color142 - core = color197 - temp = color245 - archive = color172 - doc = color153 - source = color109 - media = color141 - graph = color216 - database = color103 - -[menu] - _default_ = color252;color239 - menusel = color253;color88 - menuhot = color214 - menuhotsel = color214;color88 - menuinactive = color246 - -[popupmenu] - _default_ = color252;color239 - menusel = color253;color88 - menutitle = color180;;bold - -[buttonbar] - button = color253;color236 - hotkey = color214;color238;bold - -[statusbar] - _default_ = color254;color95 - -[help] - _default_ = color252;color239 - helpitalic = color114;;bold - helpbold = color180;;bold - helplink = color45 - helpslink = color228;color88;bold - helptitle = color180;;bold - -[editor] - _default_ = color252;color237 - editbold = color228;;bold - editmarked = color228;color88;bold - editwhitespace = color56;color234 - editnonprintable = ;black - editlinestate = color95;color235 - bookmark = ;color239 - bookmarkfound = ;color239;bold - editrightmargin = ;color235;bold - -[viewer] - _default_ = color252;color237 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color88;bold - -[diffviewer] - changedline = color231;color130 - changednew = color232;color208 - changed = color231;color96 - added = color232;color218 - removed = ;color235 - error = color231;color160 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = * - window-close-char = X diff --git a/recipes/wip/files/mc/source/misc/skins/nicedark.ini b/recipes/wip/files/mc/source/misc/skins/nicedark.ini deleted file mode 100644 index 3bace63b70..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/nicedark.ini +++ /dev/null @@ -1,144 +0,0 @@ -[skin] - description = Nice and Dark - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = lightgray;black - selected = lightgray;blue - marked = brown;black - markselect = brown;blue - gauge = black;lightgray - input = lightgray;black - inputunchanged = gray;black - inputmark = black;lightgray - disabled = gray;black - reverse = brown;black - commandlinemark = black;lightgray - header = lightgray;black - inputhistory = - commandhistory = - shadow = gray;black - -[dialog] - _default_ = lightgray;black - dfocus = lightgray;blue - dhotnormal = brown;black - dhotfocus = brown;blue - dtitle = brown;black - -[error] - _default_ = red;black - errdfocus = black;red - errdhotnormal = brightred;black - errdhotfocus = brown;red - errdtitle = brown;black - -[filehighlight] - directory = blue; - executable = brightgreen; - symlink = gray; - hardlink = - stalelink = brightred; - device = brightmagenta; - special = gray; - core = red; - temp = gray; - archive = magenta; - doc = lightgray; - source = brightcyan; - media = green; - graph = cyan; - database = brightred; - -[menu] - _default_ = lightgray;black - menusel = lightgray;blue - menuhot = brown;black - menuhotsel = brown;blue - menuinactive = gray;black - -[popupmenu] - _default_ = lightgray;black - menusel = lightgray;blue - menutitle = lightgray;black - -[buttonbar] - hotkey = lightgray;blue - button = lightgray;black - -[statusbar] - _default_ = lightgray;black - -[help] - _default_ = lightgray;black - helpitalic = red;black - helpbold = brown;black - helplink = blue;black - helpslink = lightgray;blue - helptitle = brown;black - -[editor] - _default_ = lightgray;black - editbold = brown;blue - editmarked = black;cyan - editwhitespace = brightblue;blue - editnonprintable = ;black - editlinestate = white;cyan - bookmark = white;red - bookmarkfound = black;green - editrightmargin = brightblue;black -# editbg = - editframe = gray; - editframeactive = lightgray; - editframedrag = brightblue; - -[viewer] - _default_ = lightgray;black - viewbold = brown;blue - viewunderline = brightred;blue - viewselected = brown;cyan - -[diffviewer] - added = white;brown - changedline = blue;cyan - changednew = red;cyan - changed = white;cyan - removed = white;red - error = red;lightgray - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/sand256.ini b/recipes/wip/files/mc/source/misc/skins/sand256.ini deleted file mode 100644 index 33c43c7277..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/sand256.ini +++ /dev/null @@ -1,210 +0,0 @@ -# This skin demonstrates how to use 256 colors in mc. -# -# As a prerequisite, you will need to: -# 1) Have a terminal emulator that supports 256 colors (a few examples: -# xterm, Gnome terminal and other VTE derivatives, KDE's Konsole; -# iTerm for Mac OS X, PuTTY for Windows). -# 2) Adjust your TERM variable accordingly, e.g.: export TERM=xterm-256color -# Verify by running tput colors -# -# Each of the 256 colors has two names, you can use whichever you prefer. -# -# One possibility is to use the names "color0" to "color255" to access every -# color directly based on their number. -# -# The first 16 colors ("color0" to "color15") can also be specified by their -# names (these names are already being used by mc for 8/16 color terminals): -# black gray -# red brightred -# green brightgreen -# brown yellow -# blue brightblue -# magenta brightmagenta -# cyan brightcyan -# lightgray white -# Note that with 8/16 color terminal settings (such as TERM=xterm), colors -# of the second column can only be used for the foreground, and their actual -# interpretation varies across terminals. Some terminals show the colors -# from the first column instead (that is, you only have 8 colors), but make -# them bold. Others show the brighter version (16 foreground colors). Yet -# others make them bold and bright at the same time. Switching to 256 colors -# should end this ambiguity: you should have 16 separate colors according to -# their names, none of them are bold by default but any of them can be -# switched to bold, and all of them are available for background, too. This -# is the intended behavior, the actual behavior might vary across terminals. -# -# Colors of the 6x6x6 cube ("color16" to "color231") can alternatively be -# referred to as "rgb000" to "rgb555", all three digits ranging from 0 to 5, -# corresponding to the R, G and B color components. -# -# The 24 grayscale colors ("color232" to "color255") have the aliases "gray0" -# to "gray23". -# -# In addition to the 256 colors, the special word "default" means the -# default foreground or background color of your terminal, while "base" means -# mc's main colors. A missing value means falling back to the _default_ of the -# given section. -# -# Following the foreground and background colors, the third (optional) value -# can specify special attributes to enable. Valid values are bold, underline, -# italic, reverse and blink. Append more with a plus sign, e.g. "bold+italic". -# Leaving the field empty makes it fall back to the attributes of _default_. -# Use any other word (e.g. "none") to prevent fallback and disable all flags. -# -# Italic support requires a recent enough ncurses (>= 5.9.20130831) or slang -# (>= 2.3). All attributes are subject to support by the terminal emulator. - -[skin] - description = Sand skin using 256 colors - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = black;rgb554 - selected = ;rgb452 - marked = rgb400;;italic - markselect = rgb400;rgb452;italic - gauge = ;rgb452 - input = ;rgb452 - inputunchanged = gray;rgb452 - inputmark = rgb452;gray - disabled = gray;rgb553 - reverse = ;rgb452 - commandlinemark = white;gray - header = red;;italic - shadow = black;rgb221 - -[dialog] - _default_ = black;rgb553 - dfocus = ;rgb452 - dhotnormal = ;;underline - dhotfocus = ;rgb452;underline - dtitle = ;;italic+underline - -[error] - _default_ = rgb554;rgb320;bold - # "black" might change color when going bold, so use "rgb000" instead - errdfocus = rgb000;rgb452;bold - errdhotnormal = ;;bold+underline - errdhotfocus = rgb000;rgb452;bold+underline - errdtitle = ;;bold+italic+underline - -[filehighlight] - directory = - executable = rgb030 - symlink = rgb202 - hardlink = - # 404 Not Found :) - stalelink = rgb404 - device = rgb231 - special = rgb331 - core = rgb430 - temp = gray15 - archive = rgb012 - doc = rgb103 - source = rgb310 - media = rgb024 - graph = rgb033 - database = rgb421 - -[menu] - _default_ = black;rgb452;italic - menusel = ;rgb551 - menuhot = ;;italic+underline - menuhotsel = ;rgb551;italic+underline - menuinactive = - -[popupmenu] - _default_ = black;rgb553 - menusel = ;rgb452;underline - menutitle = ;;italic+underline - -[buttonbar] - hotkey = black;rgb554;italic - button = black;rgb452;italic - -[statusbar] - _default_ = black;rgb452;italic - -[help] - _default_ = black;rgb553 - helpitalic = green;;italic - helpbold = red;;bold - helplink = blue;;underline - helpslink = blue;;reverse - helptitle = ;;underline - -[editor] - _default_ = black;rgb554 - editbold = rgb400 - editmarked = ;rgb452;italic - editwhitespace = rgb400;rgb553 - editnonprintable = ;black - editlinestate = ;rgb553 - bookmark = ;rgb551 - bookmarkfound = ;rgb530 - editrightmargin = rgb400;rgb553 -# editbg = - editframe = rgb530; - editframeactive = black; - editframedrag = rgb400; - -[viewer] - _default_ = black;rgb554 - # "black" might change color when going bold, so use "rgb000" instead - viewbold = rgb000;;bold - viewunderline = ;;underline - viewselected = rgb400;rgb452 - -[diffviewer] - added = ;rgb450 - changedline = blue;rgb553 - changednew = rgb400;rgb553 - changed = ;rgb553 - removed = ;rgb511 - error = rgb554;rgb320 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/seasons-autumn16M.ini b/recipes/wip/files/mc/source/misc/skins/seasons-autumn16M.ini deleted file mode 100644 index 4a94ccbfc1..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/seasons-autumn16M.ini +++ /dev/null @@ -1,218 +0,0 @@ -# The Four Seasons skins demonstrate how to use direct RGB true colors. -# -# As a prerequisite, you will need: -# 1) Midnight Commander version 4.8.19 or newer. -# 2) Midnight Commander being compiled against S-Lang (rather than ncurses). -# 3) S-Lang version 2.3.1 or newer. -# 4) A 64-bit operating system. (Future S-Lang version 3 will support -# true colors on 32-bit OSes too. Until then, you can install a patched -# S-Lang and compile MC against it by following the instructions at -# https://www.midnight-commander.org/wiki/doc-devel/slang-16Mcolors-32bits.) -# 5) A terminal emulator that supports true colors, such as e.g. -# GNOME Terminal and other VTE derivatives, KDE's Konsole, -# iTerm2 for macOS. See https://gist.github.com/XVilka/8346728 for a -# more exhaustive and up to date list. -# 6) The TERM environment variable describing 256 color support, e.g.: -# export TERM=xterm-256color -# or inside screen or tmux: -# export TERM=screen-256color -# Verify by running tput colors, it should report 256. -# 7) The COLORTERM env variable set to either "truecolor" or "24bit", e.g.: -# export COLORTERM=truecolor -# -# True colors are referred to by the standard #rrggbb or #rgb notation, the -# short form is interpreted by doubling each hex digit. -# -# In addition to these the 256 palette colors are still available, and -# obviously so are the attributes. See the sand256.ini skin file for details. - -[skin] - # Falling leaves, beautiful forests, Halloween pumpkins. - # Also search for "Why are autumn leaves yellow in Europe, red in America?" - description = Four Seasons – Autumn - truecolors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[aliases] - Main = #992005 - MainFg = #ffa - MarkedFg = #ff5 - HeaderFg = MarkedFg - Selected = #681400 - Dialog = #85a918 - DialogFocus = #69880c - Input = #b5c400 - PaleFg = #555 - ShadowFg = #7f7f55 - ShadowBg = #4c1002 - Error = #840000 - ErrorFocus = #b00 - Top = #ff9909 - MenuActive = Bottom - MenuSelected = Top - Bottom = #ffc90c - BottomNumber = Main - BottomNumberFg = MainFg - Help = Bottom - HelpBoldFg = DialogFocus - HelpItalicFg = Main - HelpLinkFg = ErrorFocus - EditorLineNumber = Dialog - EditorWhitespace = #cd4800 - EditorRightMargin = EditorWhitespace - EditorBookmark = Bottom - EditorFindAll = Top - EditorVoid = DialogFocus - EditorFrameFg = MainFg - EditorFrameActiveFg = MarkedFg - EditorFrameDragFg = BottomNumberFg - ViewerBoldFg = MarkedFg - ViewerUnderlinedFg = Bottom - ViewerSelected = EditorBookmark - DiffAdd = Dialog - DiffChangedLine = Selected - DiffGap = ErrorFocus - -[core] - _default_ = MainFg;Main - selected = ;Selected - marked = MarkedFg;;bold - markselect = MarkedFg;Selected;bold - gauge = ;DialogFocus - input = #000;Input - inputunchanged = PaleFg;Input - inputmark = #000;DialogFocus - disabled = PaleFg;Dialog - reverse = #000;Bottom - commandlinemark = #000;DialogFocus - header = HeaderFg - shadow = ShadowFg;ShadowBg - -[dialog] - _default_ = #000;Dialog - dfocus = ;DialogFocus - dhotnormal = ;;underline - dhotfocus = ;DialogFocus;underline - dtitle = ;;bold - -[error] - _default_ = #fff;Error - errdfocus = ;ErrorFocus - errdhotnormal = ;;underline - errdhotfocus = ;ErrorFocus;underline - errdtitle = ;;bold - -[filehighlight] - directory = - executable = #84ea84 - symlink = #ff58fd - hardlink = - stalelink = #ffadad - device = #87af5f - special = #afaf5f - core = #d7c053 - temp = #bbb - archive = #b2e8ff - doc = #c27bff - source = #ffb55e - media = #33aaef - graph = #2dd2d4 - database = #e7a584 - -[menu] - _default_ = #000;MenuActive - menusel = ;MenuSelected - menuhot = ;;underline - menuhotsel = ;MenuSelected;underline - menuinactive = ;Top - -[popupmenu] - _default_ = #000;Dialog - menusel = ;DialogFocus - menutitle = ;;bold - -[buttonbar] - hotkey = BottomNumberFg;BottomNumber - button = #000;Bottom - -[statusbar] - _default_ = #000;Top - -[help] - _default_ = #000;Help - helpbold = HelpBoldFg;;bold - helpitalic = HelpItalicFg;;italic - helplink = HelpLinkFg;;underline - helpslink = Help;HelpLinkFg - -[editor] - editbold = MarkedFg;;bold - editmarked = ;Selected - editwhitespace = ;EditorWhitespace - editnonprintable = ;black - editlinestate = #000;EditorLineNumber - bookmark = #000;EditorBookmark - bookmarkfound = #000;EditorFindAll - editrightmargin = ;EditorRightMargin - editbg = ;EditorVoid - editframe = EditorFrameFg - editframeactive = EditorFrameActiveFg - editframedrag = EditorFrameDragFg - -[viewer] - viewbold = ViewerBoldFg;;bold - viewunderline = ViewerUnderlinedFg;;underline - viewselected = #000;ViewerSelected - -[diffviewer] - added = ;DiffAdd - changedline = ;DiffChangedLine - changednew = ;DiffAdd - changed = ;DiffGap - removed = ;DiffGap - error = #fff;Error - -[widget-panel] - sort-up-char = â–´ - sort-down-char = â–¾ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = â—‚ - history-next-item-char = â–¸ - history-show-list-char = â–¾ - filename-scroll-left-char = â—‚ - filename-scroll-right-char = â–¸ - -[widget-scrollbar] - first-vert-char = â–´ - last-vert-char = â–¾ - first-horiz-char = â—‚ - last-horiz-char = â–¸ - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/seasons-spring16M.ini b/recipes/wip/files/mc/source/misc/skins/seasons-spring16M.ini deleted file mode 100644 index c839f8183a..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/seasons-spring16M.ini +++ /dev/null @@ -1,218 +0,0 @@ -# The Four Seasons skins demonstrate how to use direct RGB true colors. -# -# As a prerequisite, you will need: -# 1) Midnight Commander version 4.8.19 or newer. -# 2) Midnight Commander being compiled against S-Lang (rather than ncurses). -# 3) S-Lang version 2.3.1 or newer. -# 4) A 64-bit operating system. (Future S-Lang version 3 will support -# true colors on 32-bit OSes too. Until then, you can install a patched -# S-Lang and compile MC against it by following the instructions at -# https://www.midnight-commander.org/wiki/doc-devel/slang-16Mcolors-32bits.) -# 5) A terminal emulator that supports true colors, such as e.g. -# GNOME Terminal and other VTE derivatives, KDE's Konsole, -# iTerm2 for macOS. See https://gist.github.com/XVilka/8346728 for a -# more exhaustive and up to date list. -# 6) The TERM environment variable describing 256 color support, e.g.: -# export TERM=xterm-256color -# or inside screen or tmux: -# export TERM=screen-256color -# Verify by running tput colors, it should report 256. -# 7) The COLORTERM env variable set to either "truecolor" or "24bit", e.g.: -# export COLORTERM=truecolor -# -# True colors are referred to by the standard #rrggbb or #rgb notation, the -# short form is interpreted by doubling each hex digit. -# -# In addition to these the 256 palette colors are still available, and -# obviously so are the attributes. See the sand256.ini skin file for details. - -[skin] - # Blooming. - # Slightly inspired by Gmail's Cherry Blossom theme. - description = Four Seasons – Spring - truecolors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[aliases] - Main = #f3ffe7 - MainFg = #000 - MarkedFg = #d14576 - HeaderFg = MarkedFg - Selected = #d5f1b7 - Dialog = Selected - DialogFocus = #b3de85 - Input = Main - PaleFg = #777 - ShadowFg = #000 - ShadowBg = #797f73 - Error = #c62b41 - ErrorFocus = #e16d7e - Top = #f699a6 - MenuActive = Bottom - MenuSelected = Top - Bottom = #ffc3cb - BottomNumber = #f4ef57 - BottomNumberFg = #000 - Help = #f6f28f - HelpBoldFg = #a95965 - HelpItalicFg = Error - HelpLinkFg = #699f2f - EditorLineNumber = BottomNumber - EditorWhitespace = #fafff5 - EditorRightMargin = EditorWhitespace - EditorBookmark = BottomNumber - EditorFindAll = Bottom - EditorVoid = BottomNumber - EditorFrameFg = MainFg - EditorFrameActiveFg = MarkedFg - EditorFrameDragFg = DialogFocus - ViewerBoldFg = HelpBoldFg - ViewerUnderlinedFg = HelpLinkFg - ViewerSelected = EditorBookmark - DiffAdd = #80e080 - DiffChangedLine = BottomNumber - DiffGap = #e08080 - -[core] - _default_ = MainFg;Main - selected = ;Selected - marked = MarkedFg;;bold - markselect = MarkedFg;Selected;bold - gauge = ;DialogFocus - input = #000;Input - inputunchanged = PaleFg;Input - inputmark = #000;DialogFocus - disabled = PaleFg;Dialog - reverse = #000;Bottom - commandlinemark = #000;DialogFocus - header = HeaderFg - shadow = ShadowFg;ShadowBg - -[dialog] - _default_ = #000;Dialog - dfocus = ;DialogFocus - dhotnormal = ;;underline - dhotfocus = ;DialogFocus;underline - dtitle = ;;bold - -[error] - _default_ = #fff;Error - errdfocus = ;ErrorFocus - errdhotnormal = ;;underline - errdhotfocus = ;ErrorFocus;underline - errdtitle = ;;bold - -[filehighlight] - directory = - executable = #00af00 - symlink = #870087 - hardlink = - stalelink = #d70000 - device = #87af5f - special = #afaf5f - core = #d7af00 - temp = #9e9e9e - archive = #005f87 - doc = #5f00af - source = #af5f00 - media = #0087d7 - graph = #00afaf - database = #d7875f - -[menu] - _default_ = #000;MenuActive - menusel = ;MenuSelected - menuhot = ;;underline - menuhotsel = ;MenuSelected;underline - menuinactive = ;Top - -[popupmenu] - _default_ = #000;Dialog - menusel = ;DialogFocus - menutitle = ;;bold - -[buttonbar] - hotkey = BottomNumberFg;BottomNumber - button = #000;Bottom - -[statusbar] - _default_ = #000;Top - -[help] - _default_ = #000;Help - helpbold = HelpBoldFg;;bold - helpitalic = HelpItalicFg;;italic - helplink = HelpLinkFg;;underline - helpslink = Help;HelpLinkFg - -[editor] - editbold = MarkedFg;;bold - editmarked = ;Selected - editwhitespace = ;EditorWhitespace - editnonprintable = ;black - editlinestate = #000;EditorLineNumber - bookmark = #000;EditorBookmark - bookmarkfound = #000;EditorFindAll - editrightmargin = ;EditorRightMargin - editbg = ;EditorVoid - editframe = EditorFrameFg - editframeactive = EditorFrameActiveFg - editframedrag = EditorFrameDragFg - -[viewer] - viewbold = ViewerBoldFg;;bold - viewunderline = ViewerUnderlinedFg;;underline - viewselected = #000;ViewerSelected - -[diffviewer] - added = ;DiffAdd - changedline = ;DiffChangedLine - changednew = ;DiffAdd - changed = ;DiffGap - removed = ;DiffGap - error = #fff;Error - -[widget-panel] - sort-up-char = â–´ - sort-down-char = â–¾ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = â—‚ - history-next-item-char = â–¸ - history-show-list-char = â–¾ - filename-scroll-left-char = â—‚ - filename-scroll-right-char = â–¸ - -[widget-scrollbar] - first-vert-char = â–´ - last-vert-char = â–¾ - first-horiz-char = â—‚ - last-horiz-char = â–¸ - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/seasons-summer16M.ini b/recipes/wip/files/mc/source/misc/skins/seasons-summer16M.ini deleted file mode 100644 index 3ab01481b7..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/seasons-summer16M.ini +++ /dev/null @@ -1,218 +0,0 @@ -# The Four Seasons skins demonstrate how to use direct RGB true colors. -# -# As a prerequisite, you will need: -# 1) Midnight Commander version 4.8.19 or newer. -# 2) Midnight Commander being compiled against S-Lang (rather than ncurses). -# 3) S-Lang version 2.3.1 or newer. -# 4) A 64-bit operating system. (Future S-Lang version 3 will support -# true colors on 32-bit OSes too. Until then, you can install a patched -# S-Lang and compile MC against it by following the instructions at -# https://www.midnight-commander.org/wiki/doc-devel/slang-16Mcolors-32bits.) -# 5) A terminal emulator that supports true colors, such as e.g. -# GNOME Terminal and other VTE derivatives, KDE's Konsole, -# iTerm2 for macOS. See https://gist.github.com/XVilka/8346728 for a -# more exhaustive and up to date list. -# 6) The TERM environment variable describing 256 color support, e.g.: -# export TERM=xterm-256color -# or inside screen or tmux: -# export TERM=screen-256color -# Verify by running tput colors, it should report 256. -# 7) The COLORTERM env variable set to either "truecolor" or "24bit", e.g.: -# export COLORTERM=truecolor -# -# True colors are referred to by the standard #rrggbb or #rgb notation, the -# short form is interpreted by doubling each hex digit. -# -# In addition to these the 256 palette colors are still available, and -# obviously so are the attributes. See the sand256.ini skin file for details. - -[skin] - # Sunshine, ocean, beach, beachball, sunshades, ice cream. - # (Pistachio is out.) - description = Four Seasons – Summer - truecolors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[aliases] - Main = #ffedb3 - MainFg = #000 - MarkedFg = #e311aa - HeaderFg = MarkedFg - Selected = #d9b64a - Dialog = #a7f25a - DialogFocus = #f864f6 - Input = #d7ffad - PaleFg = #777 - ShadowFg = #000 - ShadowBg = #7f7659 - Error = #d40707 - ErrorFocus = #db7b7b - Top = #46cef3 - MenuActive = #85e1fb - MenuSelected = #fae728 - Bottom = #f4ff83 - BottomNumber = DialogFocus - BottomNumberFg = #000 - Help = Bottom - HelpBoldFg = DialogFocus - HelpItalicFg = ErrorFocus - HelpLinkFg = #168bac - EditorLineNumber = #fff5d5 - EditorWhitespace = EditorLineNumber - EditorRightMargin = EditorWhitespace - EditorBookmark = Bottom - EditorFindAll = Top - EditorVoid = #f9faac - EditorFrameFg = MainFg - EditorFrameActiveFg = MarkedFg - EditorFrameDragFg = Top - ViewerBoldFg = MarkedFg - ViewerUnderlinedFg = HelpLinkFg - ViewerSelected = Dialog - DiffAdd = #80e080 - DiffChangedLine = Bottom - DiffGap = #e08080 - -[core] - _default_ = MainFg;Main - selected = ;Selected - marked = MarkedFg;;bold - markselect = MarkedFg;Selected;bold - gauge = ;DialogFocus - input = #000;Input - inputunchanged = PaleFg;Input - inputmark = #000;DialogFocus - disabled = PaleFg;Dialog - reverse = #000;Bottom - commandlinemark = #000;DialogFocus - header = HeaderFg - shadow = ShadowFg;ShadowBg - -[dialog] - _default_ = #000;Dialog - dfocus = ;DialogFocus - dhotnormal = ;;underline - dhotfocus = ;DialogFocus;underline - dtitle = ;;bold - -[error] - _default_ = #fff;Error - errdfocus = ;ErrorFocus - errdhotnormal = ;;underline - errdhotfocus = ;ErrorFocus;underline - errdtitle = ;;bold - -[filehighlight] - directory = - executable = #00af00 - symlink = #870087 - hardlink = - stalelink = #d70000 - device = #87af5f - special = #afaf5f - core = #d7af00 - temp = #9e9e9e - archive = #005f87 - doc = #5f00af - source = #af5f00 - media = #0087d7 - graph = #00afaf - database = #d7875f - -[menu] - _default_ = #000;MenuActive - menusel = ;MenuSelected - menuhot = ;;underline - menuhotsel = ;MenuSelected;underline - menuinactive = ;Top - -[popupmenu] - _default_ = #000;Dialog - menusel = ;DialogFocus - menutitle = ;;bold - -[buttonbar] - hotkey = BottomNumberFg;BottomNumber - button = #000;Bottom - -[statusbar] - _default_ = #000;Top - -[help] - _default_ = #000;Help - helpbold = HelpBoldFg;;bold - helpitalic = HelpItalicFg;;italic - helplink = HelpLinkFg;;underline - helpslink = Help;HelpLinkFg - -[editor] - editbold = MarkedFg;;bold - editmarked = ;Selected - editwhitespace = ;EditorWhitespace - editnonprintable = ;black - editlinestate = #000;EditorLineNumber - bookmark = #000;EditorBookmark - bookmarkfound = #000;EditorFindAll - editrightmargin = ;EditorRightMargin - editbg = ;EditorVoid - editframe = EditorFrameFg - editframeactive = EditorFrameActiveFg - editframedrag = EditorFrameDragFg - -[viewer] - viewbold = ViewerBoldFg;;bold - viewunderline = ViewerUnderlinedFg;;underline - viewselected = #000;ViewerSelected - -[diffviewer] - added = ;DiffAdd - changedline = ;DiffChangedLine - changednew = ;DiffAdd - changed = ;DiffGap - removed = ;DiffGap - error = #fff;Error - -[widget-panel] - sort-up-char = â–´ - sort-down-char = â–¾ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = â—‚ - history-next-item-char = â–¸ - history-show-list-char = â–¾ - filename-scroll-left-char = â—‚ - filename-scroll-right-char = â–¸ - -[widget-scrollbar] - first-vert-char = â–´ - last-vert-char = â–¾ - first-horiz-char = â—‚ - last-horiz-char = â–¸ - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/seasons-winter16M.ini b/recipes/wip/files/mc/source/misc/skins/seasons-winter16M.ini deleted file mode 100644 index cae092f438..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/seasons-winter16M.ini +++ /dev/null @@ -1,218 +0,0 @@ -# The Four Seasons skins demonstrate how to use direct RGB true colors. -# -# As a prerequisite, you will need: -# 1) Midnight Commander version 4.8.19 or newer. -# 2) Midnight Commander being compiled against S-Lang (rather than ncurses). -# 3) S-Lang version 2.3.1 or newer. -# 4) A 64-bit operating system. (Future S-Lang version 3 will support -# true colors on 32-bit OSes too. Until then, you can install a patched -# S-Lang and compile MC against it by following the instructions at -# https://www.midnight-commander.org/wiki/doc-devel/slang-16Mcolors-32bits.) -# 5) A terminal emulator that supports true colors, such as e.g. -# GNOME Terminal and other VTE derivatives, KDE's Konsole, -# iTerm2 for macOS. See https://gist.github.com/XVilka/8346728 for a -# more exhaustive and up to date list. -# 6) The TERM environment variable describing 256 color support, e.g.: -# export TERM=xterm-256color -# or inside screen or tmux: -# export TERM=screen-256color -# Verify by running tput colors, it should report 256. -# 7) The COLORTERM env variable set to either "truecolor" or "24bit", e.g.: -# export COLORTERM=truecolor -# -# True colors are referred to by the standard #rrggbb or #rgb notation, the -# short form is interpreted by doubling each hex digit. -# -# In addition to these the 256 palette colors are still available, and -# obviously so are the attributes. See the sand256.ini skin file for details. - -[skin] - # The sun is shining and the grass is green, - # Under the three feet of snow I mean. - description = Four Seasons – Winter - truecolors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[aliases] - Main = #e4e3ed - MainFg = #000 - MarkedFg = #3064a9 - HeaderFg = MarkedFg - Selected = #cbd1e1 - Dialog = Selected - DialogFocus = #afbad8 - Input = Main - PaleFg = #777 - ShadowFg = #000 - ShadowBg = #727176 - Error = #3c4766 - ErrorFocus = #586896 - Top = #6b99d7 - MenuActive = Bottom - MenuSelected = Top - Bottom = #a7c2e7 - BottomNumber = #8e93a5 - BottomNumberFg = #e4e3ed - Help = Selected - HelpBoldFg = ErrorFocus - HelpItalicFg = Error - HelpLinkFg = #4c84cd - EditorLineNumber = #f1f0f6 - EditorWhitespace = EditorLineNumber - EditorRightMargin = EditorLineNumber - EditorBookmark = Bottom - EditorFindAll = Top - EditorVoid = BottomNumber - EditorFrameFg = MainFg - EditorFrameActiveFg = MarkedFg - EditorFrameDragFg = #fff - ViewerBoldFg = HelpBoldFg - ViewerUnderlinedFg = HelpLinkFg - ViewerSelected = EditorBookmark - DiffAdd = #80e080 - DiffChangedLine = Selected - DiffGap = #e08080 - -[core] - _default_ = MainFg;Main - selected = ;Selected - marked = MarkedFg;;bold - markselect = MarkedFg;Selected;bold - gauge = ;DialogFocus - input = #000;Input - inputunchanged = PaleFg;Input - inputmark = #000;DialogFocus - disabled = PaleFg;Dialog - reverse = #000;Bottom - commandlinemark = #000;DialogFocus - header = HeaderFg - shadow = ShadowFg;ShadowBg - -[dialog] - _default_ = #000;Dialog - dfocus = ;DialogFocus - dhotnormal = ;;underline - dhotfocus = ;DialogFocus;underline - dtitle = ;;bold - -[error] - _default_ = #fff;Error - errdfocus = ;ErrorFocus - errdhotnormal = ;;underline - errdhotfocus = ;ErrorFocus;underline - errdtitle = ;;bold - -[filehighlight] - directory = - executable = #00af00 - symlink = #870087 - hardlink = - stalelink = #d70000 - device = #87af5f - special = #afaf5f - core = #d7af00 - temp = #9e9e9e - archive = #005f87 - doc = #5f00af - source = #af5f00 - media = #0087d7 - graph = #00afaf - database = #d7875f - -[menu] - _default_ = #000;MenuActive - menusel = ;MenuSelected - menuhot = ;;underline - menuhotsel = ;MenuSelected;underline - menuinactive = ;Top - -[popupmenu] - _default_ = #000;Dialog - menusel = ;DialogFocus - menutitle = ;;bold - -[buttonbar] - hotkey = BottomNumberFg;BottomNumber - button = #000;Bottom - -[statusbar] - _default_ = #000;Top - -[help] - _default_ = #000;Help - helpbold = HelpBoldFg;;bold - helpitalic = HelpItalicFg;;italic - helplink = HelpLinkFg;;underline - helpslink = Help;HelpLinkFg - -[editor] - editbold = MarkedFg;;bold - editmarked = ;Selected - editwhitespace = ;EditorWhitespace - editnonprintable = ;black - editlinestate = #000;EditorLineNumber - bookmark = #000;EditorBookmark - bookmarkfound = #000;EditorFindAll - editrightmargin = ;EditorRightMargin - editbg = ;EditorVoid - editframe = EditorFrameFg - editframeactive = EditorFrameActiveFg - editframedrag = EditorFrameDragFg - -[viewer] - viewbold = ViewerBoldFg;;bold - viewunderline = ViewerUnderlinedFg;;underline - viewselected = #000;ViewerSelected - -[diffviewer] - added = ;DiffAdd - changedline = ;DiffChangedLine - changednew = ;DiffAdd - changed = ;DiffGap - removed = ;DiffGap - error = #fff;Error - -[widget-panel] - sort-up-char = â–´ - sort-down-char = â–¾ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = â—‚ - history-next-item-char = â–¸ - history-show-list-char = â–¾ - filename-scroll-left-char = â—‚ - filename-scroll-right-char = â–¸ - -[widget-scrollbar] - first-vert-char = â–´ - last-vert-char = â–¾ - first-horiz-char = â—‚ - last-horiz-char = â–¸ - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/xoria256-thin.ini b/recipes/wip/files/mc/source/misc/skins/xoria256-thin.ini deleted file mode 100644 index babf0d5944..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/xoria256-thin.ini +++ /dev/null @@ -1,172 +0,0 @@ -# This is a 256 colors thin MidnightCommander color scheme -# based on the Xoria256 color scheme for the Vim editor -# (http://www.vim.org/scripts/script.php?script_id=2140) - -# Note you'll need mc > 4.7.5 for this scheme to work (256 colors support) -# Hint: compile from the git repository - -# Author : Alexander Glyzov (isee@inbox.ru) -# Last Change : Jan 11, 2011 - -# Special Thanks to Dmitriy Zotikov -- author of the Vim Xoria256 color scheme. - - - -[skin] - description = Xoria256-Thin - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color250;color234 - selected = ;color60 - marked = color228 - markselect = color228;color60 - reverse = color234;color250; - header = color180;;bold - - gauge = white;black - - input = color252;color60;bold - inputunchanged = color250;color60;bold - inputmark = color228;color236;bold - - disabled = color244;color250 - - #inputhistory = - #commandhistory = - #commandlinemark = black;lightgray - - shadow = color239;black - -[dialog] - _default_ = black;color250 - dhotnormal = color88;; - dfocus = black;color73; - dhotfocus = color88;color73; - dtitle = color235;;bold - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = yellow;lightgray - errdtitle = yellow;red;bold - -[filehighlight] - directory = ;;bold - executable = color114 - symlink = color180 - hardlink = - stalelink = rgb404 - device = rgb231 - special = rgb331 - core = rgb430 - temp = color239 - archive = color174 - doc = rgb033 - source = color29 - media = color110 - graph = color182 - database = color31 - -[menu] - _default_ = black;color250 - menusel = black;color73; - menuhot = color88;; - menuhotsel = color88;color73; - menuinactive = color244 - -[popupmenu] - _default_ = black;color250 - menusel = black;color73 - menutitle = ;;bold - -[buttonbar] - button = black;color250 - hotkey = color88;color181;bold - -[statusbar] - _default_ = black;color250 - -[help] - _default_ = black;color250 - helpitalic = color88;;bold - helpbold = color235;;bold - helplink = color19;; - helpslink = black;color73;inverse - helptitle = color235;;bold - -[editor] - _default_ = color250;color234 - editbold = ;;bold - editmarked = ;color60 - editwhitespace = color236;color234 - editnonprintable = ;black - editlinestate = ;color235 - bookmark = ;color239; - bookmarkfound = ;color239;bold - editrightmargin = color180;color235;bold -# editbg = - editframe = color244; - editframeactive = color250; - editframedrag = color73; - -[viewer] - _default_ = color250;color234 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color60 - -[diffviewer] - changedline = ;color60 - changednew = black;color174 - added = black;color181 - changed = black;color151 - removed = ;color235 - error = rgb554;rgb320 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/xoria256.ini b/recipes/wip/files/mc/source/misc/skins/xoria256.ini deleted file mode 100644 index 44a7ff07f3..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/xoria256.ini +++ /dev/null @@ -1,172 +0,0 @@ -# This is a 256 colors MidnightCommander color scheme -# based on the Xoria256 color scheme for the Vim editor -# (http://www.vim.org/scripts/script.php?script_id=2140) - -# Note you'll need mc > 4.7.5 for this scheme to work (256 colors support) -# Hint: compile from the git repository - -# Author : Alexander Glyzov (isee@inbox.ru) -# Last Change : Jan 11, 2011 - -# Special Thanks to Dmitriy Zotikov -- author of the Vim Xoria256 color scheme. - - - -[skin] - description = Xoria256 - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = â• - dvert = â•‘ - dlefttop = â•” - drighttop = â•— - dleftbottom = ╚ - drightbottom = â• - dtopmiddle = ╤ - dbottommiddle = â•§ - dleftmiddle = ╟ - drightmiddle = â•¢ - -[core] - _default_ = color250;color234 - selected = ;color60 - marked = color228 - markselect = color228;color60 - reverse = color234;color250; - header = color180;;bold - - gauge = white;black - - input = color252;color60;bold - inputunchanged = color250;color60;bold - inputmark = color228;color236;bold - - disabled = color244;color250 - - #inputhistory = - #commandhistory = - #commandlinemark = black;lightgray - - shadow = color239;black - -[dialog] - _default_ = black;color250 - dhotnormal = color88;; - dfocus = black;color73; - dhotfocus = color88;color73; - dtitle = color235;;bold - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = yellow;lightgray - errdtitle = yellow;red;bold - -[filehighlight] - directory = ;;bold - executable = color114 - symlink = color180 - hardlink = - stalelink = rgb404 - device = rgb231 - special = rgb331 - core = rgb430 - temp = color239 - archive = color174 - doc = rgb033 - source = color29 - media = color110 - graph = color182 - database = color31 - -[menu] - _default_ = black;color250 - menusel = black;color73; - menuhot = color88;; - menuhotsel = color88;color73; - menuinactive = color244 - -[popupmenu] - _default_ = black;color250 - menusel = black;color73 - menutitle = ;;bold - -[buttonbar] - button = black;color250 - hotkey = color88;color181;bold - -[statusbar] - _default_ = black;color250 - -[help] - _default_ = black;color250 - helpitalic = color88;;bold - helpbold = color235;;bold - helplink = color19;; - helpslink = black;color73;inverse - helptitle = color235;;bold - -[editor] - _default_ = color250;color234 - editbold = ;;bold - editmarked = ;color60 - editwhitespace = color236;color234 - editnonprintable = ;black - editlinestate = ;color235 - bookmark = ;color239; - bookmarkfound = ;color239;bold - editrightmargin = color180;color235;bold -# editbg = - editframe = color244; - editframeactive = color250; - editframedrag = color73; - -[viewer] - _default_ = color250;color234 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color60 - -[diffviewer] - changedline = ;color60 - changednew = black;color174 - added = black;color181 - changed = black;color151 - removed = ;color235 - error = rgb554;rgb320 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/xoria256root-thin.ini b/recipes/wip/files/mc/source/misc/skins/xoria256root-thin.ini deleted file mode 100644 index 5d274393be..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/xoria256root-thin.ini +++ /dev/null @@ -1,172 +0,0 @@ -# This is a 256 colors root thin MidnightCommander color scheme -# based on the Xoria256 color scheme for the Vim editor -# (http://www.vim.org/scripts/script.php?script_id=2140) - -# Note you'll need mc > 4.7.5 for this scheme to work (256 colors support) -# Hint: compile from the git repository - -# Author : Alexander Glyzov (isee@inbox.ru) -# Last Change : Jan 11, 2011 - -# Special Thanks to Dmitriy Zotikov -- author of the Vim Xoria256 color scheme. - - - -[skin] - description = Xoria256root-Thin - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color250;color234 - selected = color253;color88 - marked = color228 - markselect = color228;color60 - reverse = color234;color250; - header = color180;;bold - - gauge = white;black - - input = color252;color60;bold - inputunchanged = color250;color60;bold - inputmark = color228;color236;bold - - disabled = color244;color250 - - #inputhistory = - #commandhistory = - #commandlinemark = black;lightgray - - shadow = color239;black - -[dialog] - _default_ = black;color250 - dhotnormal = color88;; - dfocus = black;color73; - dhotfocus = color88;color73; - dtitle = color235;;bold - -[error] - _default_ = white;red - errdfocus = black;lightgray - errdhotnormal = yellow;red - errdhotfocus = yellow;lightgray - errdtitle = yellow;red;bold - -[filehighlight] - directory = ;;bold - executable = color114 - symlink = color180 - hardlink = - stalelink = rgb404 - device = rgb231 - special = rgb331 - core = rgb430 - temp = color239 - archive = color174 - doc = rgb033 - source = color29 - media = color110 - graph = color182 - database = color31 - -[menu] - _default_ = black;color250 - menusel = black;color73; - menuhot = color88;; - menuhotsel = color88;color73; - menuinactive = color244 - -[popupmenu] - _default_ = black;color250 - menusel = black;color73 - menutitle = ;;bold - -[buttonbar] - button = black;color250 - hotkey = color88;color181;bold - -[statusbar] - _default_ = black;color250 - -[help] - _default_ = black;color250 - helpitalic = color88;;bold - helpbold = color235;;bold - helplink = color19;; - helpslink = black;color73;inverse - helptitle = color235;;bold - -[editor] - _default_ = color250;color234 - editbold = ;;bold - editmarked = ;color60 - editwhitespace = color236;color234 - editnonprintable = ;black - editlinestate = ;color235 - bookmark = ;color239; - bookmarkfound = ;color239;bold - editrightmargin = color180;color235;bold -# editbg = - editframe = color244; - editframeactive = color250; - editframedrag = color73; - -[viewer] - _default_ = color250;color234 - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;color60 - -[diffviewer] - changedline = ;color60 - changednew = black;color174 - added = black;color181 - changed = black;color151 - removed = ;color235 - error = rgb554;rgb320 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = « - history-next-item-char = » - history-show-list-char = ^ - filename-scroll-left-char = « - filename-scroll-right-char = » - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = « - last-horiz-char = » - current-char = â–  - background-char = â–’ - -[widget-editor] - window-state-char = ↕ - window-close-char = ✕ diff --git a/recipes/wip/files/mc/source/misc/skins/yadt256-defbg.ini b/recipes/wip/files/mc/source/misc/skins/yadt256-defbg.ini deleted file mode 100644 index d59b65a614..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/yadt256-defbg.ini +++ /dev/null @@ -1,151 +0,0 @@ -# yadt256-defbg (Yet Another Dark Theme, 256 colors, default background) -# Based on modarin256-defbg of Oliver Lange -# -# The skin looks good only if you have some sort of a "dark background". -# It can be set by the color schema of your terminal (e.g. Green-On-Black) -# or as underlying windows in the transparent mode. For a "light background", -# I'd use a version of the skin with a static background color (yadt256) - -[skin] - description = Yet Another Dark Theme, 256 colors, default background - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color250;default - selected = white;blue - marked = color228;color239;bold - markselect = color228;blue;bold - gauge = color250;color66 - input = color187;color235;bold - inputmark = color228;blue;bold - inputunchanged = color144;color235;bold - commandlinemark = color228;blue;bold - reverse = color180;blue;bold - header = color180;;bold - disabled = color246;color239 - #inputhistory = - #commandhistory = - shadow = color239;black - -[dialog] - _default_ = color252;color239 - dhotnormal = color214 - dfocus = color228;blue;bold - dhotfocus = color214;blue - dtitle = color180;;bold - -[error] - _default_ = color230;color52 - errdfocus = color254;blue;bold - errdhotnormal = color203;color52 - errdhotfocus = color203;blue;bold - errdtitle = color227;;bold - -[filehighlight] - directory = color144;;bold - executable = color114 - symlink = color45 - hardlink = - stalelink = color203 - device = color170 - special = color142 - core = color197 - temp = color245 - archive = color172 - doc = color153 - source = color109 - media = color141 - graph = color216 - database = color103 - -[menu] - _default_ = color252;color239 - menusel = white;blue - menuhot = color214 - menuhotsel = color214;blue - menuinactive = color252 - -[popupmenu] - _default_ = color252;default - menusel = color252;blue - menutitle = color180;;bold - -[buttonbar] - button = color252;color236 - hotkey = color214;color238;bold - -[statusbar] - _default_ = color252;color66 - -[help] - _default_ = color252;color239 - helpitalic = color114;;bold - helpbold = color180;;bold - helplink = color45 - helpslink = color228;blue;bold - helptitle = color180;;bold - -[editor] - _default_ = color250;default - editbold = color228;;bold - editmarked = color228;blue;bold - editwhitespace = color56;color234 - editnonprintable = ;black - editlinestate = color66;color235 - bookmark = ;color239 - bookmarkfound = ;color239;bold - editrightmargin = ;color235;bold - -[viewer] - _default_ = color250;default - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;blue;bold - -[diffviewer] - changedline = color231;color29 - changednew = color232;color78 - changed = color231;color39 - added = color232;color81 - removed = ;color234 - error = color231;color160 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = < - history-next-item-char = > - history-show-list-char = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = < - last-horiz-char = > - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/skins/yadt256.ini b/recipes/wip/files/mc/source/misc/skins/yadt256.ini deleted file mode 100644 index 2aaf4e5964..0000000000 --- a/recipes/wip/files/mc/source/misc/skins/yadt256.ini +++ /dev/null @@ -1,150 +0,0 @@ -# yadt256 (Yet Another Dark Theme, 256 colors, black background) -# Based on modarin256 of Oliver Lange -# -# This skin might be used in case you have a sort of a "light background" -# (e.g. Black-On-White color schema of the terminal). To keep the skin "dark" -# a background color was set to black for the main window, editor and viewer. - -[skin] - description = Yet Another Dark Theme, 256 colors, black background - 256colors = true - -[Lines] - horiz = ─ - vert = │ - lefttop = ┌ - righttop = â” - leftbottom = â”” - rightbottom = ┘ - topmiddle = ┬ - bottommiddle = â”´ - leftmiddle = ├ - rightmiddle = ┤ - cross = ┼ - dhoriz = ─ - dvert = │ - dlefttop = ┌ - drighttop = â” - dleftbottom = â”” - drightbottom = ┘ - dtopmiddle = ┬ - dbottommiddle = â”´ - dleftmiddle = ├ - drightmiddle = ┤ - -[core] - _default_ = color250;black - selected = white;blue - marked = color228;color239;bold - markselect = color228;blue;bold - gauge = color250;color66 - input = color187;color235;bold - inputmark = color228;blue;bold - inputunchanged = color144;color235;bold - commandlinemark = color228;blue;bold - reverse = color180;blue;bold - header = color180;;bold - disabled = color246;color239 - #inputhistory = - #commandhistory = - shadow = color239;black - -[dialog] - _default_ = color252;color239 - dhotnormal = color214 - dfocus = color228;blue;bold - dhotfocus = color214;blue - dtitle = color180;;bold - -[error] - _default_ = color230;color52 - errdfocus = color254;blue;bold - errdhotnormal = color203;color52 - errdhotfocus = color203;blue;bold - errdtitle = color227;;bold - -[filehighlight] - directory = color144;;bold - executable = color114 - symlink = color45 - hardlink = - stalelink = color203 - device = color170 - special = color142 - core = color197 - temp = color245 - archive = color172 - doc = color153 - source = color109 - media = color141 - graph = color216 - database = color103 - -[menu] - _default_ = color252;color239 - menusel = white;blue - menuhot = color214 - menuhotsel = color214;blue - menuinactive = color252 - -[popupmenu] - _default_ = color252;color239 - menusel = color252;blue - menutitle = color180;;bold - -[buttonbar] - button = color252;color236 - hotkey = color214;color238;bold - -[statusbar] - _default_ = color252;color66 - -[help] - _default_ = color252;color239 - helpitalic = color114;;bold - helpbold = color180;;bold - helplink = color45 - helpslink = color228;blue;bold - helptitle = color180;;bold - -[editor] - _default_ = color250;black - editbold = color228;;bold - editmarked = color228;blue;bold - editwhitespace = color56;color234 - editnonprintable = ;black - editlinestate = color66;color235 - bookmark = ;color239 - bookmarkfound = ;color239;bold - editrightmargin = ;color235;bold - -[viewer] - _default_ = color250;black - viewbold = ;;bold - viewunderline = ;;underline - viewselected = color228;blue;bold - -[diffviewer] - changedline = color231;color29 - changednew = color232;color78 - changed = color231;color39 - added = color232;color81 - removed = ;color234 - error = color231;color160 - -[widget-panel] - sort-up-char = ↑ - sort-down-char = ↓ - hiddenfiles-show-char = • - hiddenfiles-hide-char = â—‹ - history-prev-item-char = < - history-next-item-char = > - history-show-list-char = ^ - -[widget-scrollbar] - first-vert-char = ↑ - last-vert-char = ↓ - first-horiz-char = < - last-horiz-char = > - current-char = â–  - background-char = â–’ diff --git a/recipes/wip/files/mc/source/misc/syntax/Makefile.am b/recipes/wip/files/mc/source/misc/syntax/Makefile.am deleted file mode 100644 index a6f12d9d8f..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/Makefile.am +++ /dev/null @@ -1,113 +0,0 @@ -SYNTAX_IN = Syntax.in - -SYNTAX_OUT = Syntax - -SYNTAXFILES = \ - PKGBUILD.syntax \ - ada95.syntax \ - as.syntax \ - aspx.syntax \ - assembler.syntax \ - awk.syntax \ - b.syntax \ - c.syntax \ - cabal.syntax \ - changelog.syntax \ - cmake.syntax \ - cobol.syntax \ - cs.syntax \ - css.syntax \ - cuda.syntax \ - cxx.syntax \ - cython.syntax \ - d.syntax \ - debian-changelog.syntax \ - debian-control.syntax \ - debian-description.syntax \ - debian-sources-list.syntax \ - diff.syntax \ - dlink.syntax \ - dos.syntax \ - dot.syntax \ - ebuild.syntax \ - eiffel.syntax \ - erlang.syntax \ - f90.syntax \ - filehighlight.syntax \ - fortran.syntax \ - glsl.syntax \ - go.syntax \ - haskell.syntax \ - hive.syntax \ - html.syntax \ - idl.syntax \ - ini.syntax \ - j.syntax \ - jal.syntax \ - java.syntax \ - js.syntax \ - json.syntax \ - kotlin.syntax \ - latex.syntax \ - lisp.syntax \ - lkr.syntax \ - lsm.syntax \ - lua.syntax \ - m4.syntax \ - mail.syntax \ - makefile.syntax \ - markdown.syntax \ - ml.syntax \ - meson.syntax \ - named.syntax \ - nemerle.syntax \ - nroff.syntax \ - octave.syntax \ - opencl.syntax \ - osl.syntax \ - pascal.syntax \ - perl.syntax \ - php.syntax \ - po.syntax \ - povray.syntax \ - privoxy.syntax \ - procmail.syntax \ - properties.syntax \ - protobuf.syntax \ - puppet.syntax \ - python.syntax \ - r.syntax \ - ruby.syntax \ - rust.syntax \ - sh.syntax \ - slang.syntax \ - smalltalk.syntax \ - spec.syntax \ - spice.syntax \ - sql.syntax \ - strace.syntax \ - swift.syntax \ - swig.syntax \ - syntax.syntax \ - tcl.syntax \ - texinfo.syntax \ - toml.syntax \ - ts.syntax \ - tt.syntax \ - unknown.syntax \ - verilog.syntax \ - vhdl.syntax \ - xml.syntax \ - yabasic.syntax \ - yaml.syntax \ - yum-repo.syntax \ - yxx.syntax - -if USE_INTERNAL_EDIT -syntaxdir = $(pkgdatadir)/syntax -syntax_DATA = $(SYNTAX_OUT) \ - $(SYNTAXFILES) -endif - -EXTRA_DIST = $(SYNTAX_IN) \ - $(SYNTAXFILES) diff --git a/recipes/wip/files/mc/source/misc/syntax/Makefile.in b/recipes/wip/files/mc/source/misc/syntax/Makefile.in deleted file mode 100644 index bd4e3c0ed1..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/Makefile.in +++ /dev/null @@ -1,749 +0,0 @@ -# Makefile.in generated by automake 1.16.5 from Makefile.am. -# @configure_input@ - -# Copyright (C) 1994-2021 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 = { \ - if test -z '$(MAKELEVEL)'; then \ - false; \ - elif test -n '$(MAKE_HOST)'; then \ - true; \ - elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ - true; \ - else \ - false; \ - fi; \ -} -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 = misc/syntax -ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \ - $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ - $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ - $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/longlong.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/m4.include/gnulib/mc-gnulib-common.m4 \ - $(top_srcdir)/m4.include/gnulib/mode_t.m4 \ - $(top_srcdir)/m4.include/gnulib/stat-size.m4 \ - $(top_srcdir)/m4.include/gnulib/fstypename.m4 \ - $(top_srcdir)/m4.include/gnulib/fsusage.m4 \ - $(top_srcdir)/m4.include/gnulib/mountlist.m4 \ - $(top_srcdir)/m4.include/gnulib/windows-stat-inodes.m4 \ - $(top_srcdir)/m4.include/gnulib/sys_types_h.m4 \ - $(top_srcdir)/m4.include/ax_path_lib_pcre.m4 \ - $(top_srcdir)/m4.include/ax_check_pcre2.m4 \ - $(top_srcdir)/m4.include/dx_doxygen.m4 \ - $(top_srcdir)/m4.include/ax_require_defined.m4 \ - $(top_srcdir)/m4.include/ax_check_compile_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_flag.m4 \ - $(top_srcdir)/m4.include/ax_append_compile_flags.m4 \ - $(top_srcdir)/m4.include/mc-cflags.m4 \ - $(top_srcdir)/m4.include/mc-stdckdint.m4 \ - $(top_srcdir)/m4.include/ax_gcc_func_attribute.m4 \ - $(top_srcdir)/m4.include/mc-check-search-type.m4 \ - $(top_srcdir)/m4.include/mc-get-fs-info.m4 \ - $(top_srcdir)/m4.include/mc-with-x.m4 \ - $(top_srcdir)/m4.include/mc-use-termcap.m4 \ - $(top_srcdir)/m4.include/mc-with-screen.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-ncurses.m4 \ - $(top_srcdir)/m4.include/mc-with-screen-slang.m4 \ - $(top_srcdir)/m4.include/mc-with-internal-edit.m4 \ - $(top_srcdir)/m4.include/mc-subshell.m4 \ - $(top_srcdir)/m4.include/mc-background.m4 \ - $(top_srcdir)/m4.include/mc-ext2fs-attr.m4 \ - $(top_srcdir)/m4.include/mc-glib.m4 \ - $(top_srcdir)/m4.include/mc-vfs.m4 \ - $(top_srcdir)/m4.include/vfs/socket.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-extfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-ftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-sftp.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-shell.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-undelfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-tarfs.m4 \ - $(top_srcdir)/m4.include/vfs/mc-vfs-cpiofs.m4 \ - $(top_srcdir)/m4.include/mc-version.m4 \ - $(top_srcdir)/m4.include/mc-tests.m4 \ - $(top_srcdir)/m4.include/mc-i18n.m4 \ - $(top_srcdir)/m4.include/mc-assert.m4 \ - $(top_srcdir)/configure.ac -am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ - $(ACLOCAL_M4) -DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) -mkinstalldirs = $(install_sh) -d -CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = Syntax -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 = -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; }; \ - } -am__installdirs = "$(DESTDIR)$(syntaxdir)" -DATA = $(syntax_DATA) -am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) -am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Syntax.in -DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) -ACLOCAL = @ACLOCAL@ -AMTAR = @AMTAR@ -AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ -AR = @AR@ -AUTOCONF = @AUTOCONF@ -AUTOHEADER = @AUTOHEADER@ -AUTOMAKE = @AUTOMAKE@ -AWK = @AWK@ -CC = @CC@ -CCDEPMODE = @CCDEPMODE@ -CFLAGS = @CFLAGS@ -CHECK_CFLAGS = @CHECK_CFLAGS@ -CHECK_LIBS = @CHECK_LIBS@ -COM_ERR_CFLAGS = @COM_ERR_CFLAGS@ -COM_ERR_LIBS = @COM_ERR_LIBS@ -CPP = @CPP@ -CPPFLAGS = @CPPFLAGS@ -CSCOPE = @CSCOPE@ -CTAGS = @CTAGS@ -CYGPATH_W = @CYGPATH_W@ -DEFS = @DEFS@ -DEPDIR = @DEPDIR@ -DLLTOOL = @DLLTOOL@ -DOC_LINGUAS = @DOC_LINGUAS@ -DOXYGEN_PAPER_SIZE = @DOXYGEN_PAPER_SIZE@ -DSYMUTIL = @DSYMUTIL@ -DUMPBIN = @DUMPBIN@ -DX_CONFIG = @DX_CONFIG@ -DX_DOCDIR = @DX_DOCDIR@ -DX_DOT = @DX_DOT@ -DX_DOXYGEN = @DX_DOXYGEN@ -DX_DVIPS = @DX_DVIPS@ -DX_EGREP = @DX_EGREP@ -DX_ENV = @DX_ENV@ -DX_FLAG_chi = @DX_FLAG_chi@ -DX_FLAG_chm = @DX_FLAG_chm@ -DX_FLAG_doc = @DX_FLAG_doc@ -DX_FLAG_dot = @DX_FLAG_dot@ -DX_FLAG_html = @DX_FLAG_html@ -DX_FLAG_man = @DX_FLAG_man@ -DX_FLAG_pdf = @DX_FLAG_pdf@ -DX_FLAG_ps = @DX_FLAG_ps@ -DX_FLAG_rtf = @DX_FLAG_rtf@ -DX_FLAG_xml = @DX_FLAG_xml@ -DX_HHC = @DX_HHC@ -DX_LATEX = @DX_LATEX@ -DX_MAKEINDEX = @DX_MAKEINDEX@ -DX_PDFLATEX = @DX_PDFLATEX@ -DX_PERL = @DX_PERL@ -DX_PROJECT = @DX_PROJECT@ -E2P_CFLAGS = @E2P_CFLAGS@ -E2P_LIBS = @E2P_LIBS@ -ECHO_C = @ECHO_C@ -ECHO_N = @ECHO_N@ -ECHO_T = @ECHO_T@ -EGREP = @EGREP@ -ENCODING_CP1251 = @ENCODING_CP1251@ -ENCODING_CP866 = @ENCODING_CP866@ -ETAGS = @ETAGS@ -EXEEXT = @EXEEXT@ -EXT2FS_CFLAGS = @EXT2FS_CFLAGS@ -EXT2FS_LIBS = @EXT2FS_LIBS@ -EXTFSHELPERSDIR = @EXTFSHELPERSDIR@ -EXTHELPERSDIR = @EXTHELPERSDIR@ -FGREP = @FGREP@ -FILECMD = @FILECMD@ -GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ -GLIB_CFLAGS = @GLIB_CFLAGS@ -GLIB_LIBS = @GLIB_LIBS@ -GMODULE_CFLAGS = @GMODULE_CFLAGS@ -GMODULE_LIBS = @GMODULE_LIBS@ -GMSGFMT = @GMSGFMT@ -GMSGFMT_015 = @GMSGFMT_015@ -GREP = @GREP@ -HAVE_FILECMD = @HAVE_FILECMD@ -HAVE_ZIPINFO = @HAVE_ZIPINFO@ -HAVE_nroff = @HAVE_nroff@ -INDENT = @INDENT@ -INSTALL = @INSTALL@ -INSTALL_DATA = @INSTALL_DATA@ -INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SCRIPT = @INSTALL_SCRIPT@ -INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INTLLIBS = @INTLLIBS@ -INTL_MACOSX_LIBS = @INTL_MACOSX_LIBS@ -LD = @LD@ -LDFLAGS = @LDFLAGS@ -LIBICONV = @LIBICONV@ -LIBINTL = @LIBINTL@ -LIBMC_RELEASE = @LIBMC_RELEASE@ -LIBMC_VERSION = @LIBMC_VERSION@ -LIBOBJS = @LIBOBJS@ -LIBS = @LIBS@ -LIBSSH_CFLAGS = @LIBSSH_CFLAGS@ -LIBSSH_LIBS = @LIBSSH_LIBS@ -LIBTOOL = @LIBTOOL@ -LIPO = @LIPO@ -LN_S = @LN_S@ -LTLIBICONV = @LTLIBICONV@ -LTLIBINTL = @LTLIBINTL@ -LTLIBOBJS = @LTLIBOBJS@ -LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@ -MAINT = @MAINT@ -MAKEINFO = @MAKEINFO@ -MANDOC = @MANDOC@ -MANIFEST_TOOL = @MANIFEST_TOOL@ -MAN_DATE = @MAN_DATE@ -MAN_FLAGS = @MAN_FLAGS@ -MAN_VERSION = @MAN_VERSION@ -MCLIBS = @MCLIBS@ -MKDIR_P = @MKDIR_P@ -MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ -MSGMERGE = @MSGMERGE@ -NM = @NM@ -NMEDIT = @NMEDIT@ -OBJDUMP = @OBJDUMP@ -OBJEXT = @OBJEXT@ -OTOOL = @OTOOL@ -OTOOL64 = @OTOOL64@ -PACKAGE = @PACKAGE@ -PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ -PACKAGE_NAME = @PACKAGE_NAME@ -PACKAGE_STRING = @PACKAGE_STRING@ -PACKAGE_TARNAME = @PACKAGE_TARNAME@ -PACKAGE_URL = @PACKAGE_URL@ -PACKAGE_VERSION = @PACKAGE_VERSION@ -PATH_SEPARATOR = @PATH_SEPARATOR@ -PCRE_CFLAGS = @PCRE_CFLAGS@ -PCRE_LIBS = @PCRE_LIBS@ -PERL = @PERL@ -PERL_FOR_BUILD = @PERL_FOR_BUILD@ -PKG_CONFIG = @PKG_CONFIG@ -PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ -PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ -POSUB = @POSUB@ -PYTHON = @PYTHON@ -RANLIB = @RANLIB@ -RUBY = @RUBY@ -SED = @SED@ -SET_MAKE = @SET_MAKE@ -SHELL = @SHELL@ -SLANG_CFLAGS = @SLANG_CFLAGS@ -SLANG_LIBS = @SLANG_LIBS@ -STDCKDINT_H = @STDCKDINT_H@ -STRIP = @STRIP@ -UNZIP = @UNZIP@ -USE_NLS = @USE_NLS@ -VERSION = @VERSION@ -XGETTEXT = @XGETTEXT@ -XGETTEXT_015 = @XGETTEXT_015@ -XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ -XMKMF = @XMKMF@ -X_CFLAGS = @X_CFLAGS@ -X_EXTRA_LIBS = @X_EXTRA_LIBS@ -X_LIBS = @X_LIBS@ -X_PRE_LIBS = @X_PRE_LIBS@ -ZIP = @ZIP@ -abs_builddir = @abs_builddir@ -abs_srcdir = @abs_srcdir@ -abs_top_builddir = @abs_top_builddir@ -abs_top_srcdir = @abs_top_srcdir@ -ac_ct_AR = @ac_ct_AR@ -ac_ct_CC = @ac_ct_CC@ -ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ -ac_ct_INDENT = @ac_ct_INDENT@ -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@ -runstatedir = @runstatedir@ -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@ -SYNTAX_IN = Syntax.in -SYNTAX_OUT = Syntax -SYNTAXFILES = \ - PKGBUILD.syntax \ - ada95.syntax \ - as.syntax \ - aspx.syntax \ - assembler.syntax \ - awk.syntax \ - b.syntax \ - c.syntax \ - cabal.syntax \ - changelog.syntax \ - cmake.syntax \ - cobol.syntax \ - cs.syntax \ - css.syntax \ - cuda.syntax \ - cxx.syntax \ - cython.syntax \ - d.syntax \ - debian-changelog.syntax \ - debian-control.syntax \ - debian-description.syntax \ - debian-sources-list.syntax \ - diff.syntax \ - dlink.syntax \ - dos.syntax \ - dot.syntax \ - ebuild.syntax \ - eiffel.syntax \ - erlang.syntax \ - f90.syntax \ - filehighlight.syntax \ - fortran.syntax \ - glsl.syntax \ - go.syntax \ - haskell.syntax \ - hive.syntax \ - html.syntax \ - idl.syntax \ - ini.syntax \ - j.syntax \ - jal.syntax \ - java.syntax \ - js.syntax \ - json.syntax \ - kotlin.syntax \ - latex.syntax \ - lisp.syntax \ - lkr.syntax \ - lsm.syntax \ - lua.syntax \ - m4.syntax \ - mail.syntax \ - makefile.syntax \ - markdown.syntax \ - ml.syntax \ - meson.syntax \ - named.syntax \ - nemerle.syntax \ - nroff.syntax \ - octave.syntax \ - opencl.syntax \ - osl.syntax \ - pascal.syntax \ - perl.syntax \ - php.syntax \ - po.syntax \ - povray.syntax \ - privoxy.syntax \ - procmail.syntax \ - properties.syntax \ - protobuf.syntax \ - puppet.syntax \ - python.syntax \ - r.syntax \ - ruby.syntax \ - rust.syntax \ - sh.syntax \ - slang.syntax \ - smalltalk.syntax \ - spec.syntax \ - spice.syntax \ - sql.syntax \ - strace.syntax \ - swift.syntax \ - swig.syntax \ - syntax.syntax \ - tcl.syntax \ - texinfo.syntax \ - toml.syntax \ - ts.syntax \ - tt.syntax \ - unknown.syntax \ - verilog.syntax \ - vhdl.syntax \ - xml.syntax \ - yabasic.syntax \ - yaml.syntax \ - yum-repo.syntax \ - yxx.syntax - -@USE_INTERNAL_EDIT_TRUE@syntaxdir = $(pkgdatadir)/syntax -@USE_INTERNAL_EDIT_TRUE@syntax_DATA = $(SYNTAX_OUT) \ -@USE_INTERNAL_EDIT_TRUE@ $(SYNTAXFILES) - -EXTRA_DIST = $(SYNTAX_IN) \ - $(SYNTAXFILES) - -all: all-am - -.SUFFIXES: -$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps) - @for dep in $?; do \ - case '$(am__configure_deps)' in \ - *$$dep*) \ - ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ - && { if test -f $@; then exit 0; else break; fi; }; \ - exit 1;; \ - esac; \ - done; \ - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu misc/syntax/Makefile'; \ - $(am__cd) $(top_srcdir) && \ - $(AUTOMAKE) --gnu misc/syntax/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__maybe_remake_depfiles)'; \ - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \ - esac; - -$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh - -$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps) - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh -$(am__aclocal_m4_deps): -Syntax: $(top_builddir)/config.status $(srcdir)/Syntax.in - cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ - -mostlyclean-libtool: - -rm -f *.lo - -clean-libtool: - -rm -rf .libs _libs -install-syntaxDATA: $(syntax_DATA) - @$(NORMAL_INSTALL) - @list='$(syntax_DATA)'; test -n "$(syntaxdir)" || list=; \ - if test -n "$$list"; then \ - echo " $(MKDIR_P) '$(DESTDIR)$(syntaxdir)'"; \ - $(MKDIR_P) "$(DESTDIR)$(syntaxdir)" || 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)$(syntaxdir)'"; \ - $(INSTALL_DATA) $$files "$(DESTDIR)$(syntaxdir)" || exit $$?; \ - done - -uninstall-syntaxDATA: - @$(NORMAL_UNINSTALL) - @list='$(syntax_DATA)'; test -n "$(syntaxdir)" || list=; \ - files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - dir='$(DESTDIR)$(syntaxdir)'; $(am__uninstall_files_from_dir) -tags TAGS: - -ctags CTAGS: - -cscope cscopelist: - -distdir: $(BUILT_SOURCES) - $(MAKE) $(AM_MAKEFLAGS) distdir-am - -distdir-am: $(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 $(DATA) -installdirs: - for dir in "$(DESTDIR)$(syntaxdir)"; 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-generic clean-libtool mostlyclean-am - -distclean: distclean-am - -rm -f Makefile -distclean-am: clean-am distclean-generic - -dvi: dvi-am - -dvi-am: - -html: html-am - -html-am: - -info: info-am - -info-am: - -install-data-am: install-syntaxDATA - -install-dvi: install-dvi-am - -install-dvi-am: - -install-exec-am: - -install-html: install-html-am - -install-html-am: - -install-info: install-info-am - -install-info-am: - -install-man: - -install-pdf: install-pdf-am - -install-pdf-am: - -install-ps: install-ps-am - -install-ps-am: - -installcheck-am: - -maintainer-clean: maintainer-clean-am - -rm -f Makefile -maintainer-clean-am: distclean-am maintainer-clean-generic - -mostlyclean: mostlyclean-am - -mostlyclean-am: mostlyclean-generic mostlyclean-libtool - -pdf: pdf-am - -pdf-am: - -ps: ps-am - -ps-am: - -uninstall-am: uninstall-syntaxDATA - -.MAKE: install-am install-strip - -.PHONY: all all-am check check-am clean clean-generic clean-libtool \ - cscopelist-am ctags-am distclean distclean-generic \ - distclean-libtool distdir dvi dvi-am html html-am info info-am \ - install install-am install-data install-data-am install-dvi \ - install-dvi-am install-exec install-exec-am install-html \ - install-html-am install-info install-info-am install-man \ - install-pdf install-pdf-am install-ps install-ps-am \ - install-strip install-syntaxDATA installcheck installcheck-am \ - installdirs maintainer-clean maintainer-clean-generic \ - mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \ - ps ps-am tags-am uninstall uninstall-am uninstall-syntaxDATA - -.PRECIOUS: Makefile - - -# Tell versions [3.59,3.63) of GNU make to not export all variables. -# Otherwise a system limit (for SysV at least) may be exceeded. -.NOEXPORT: diff --git a/recipes/wip/files/mc/source/misc/syntax/PKGBUILD.syntax b/recipes/wip/files/mc/source/misc/syntax/PKGBUILD.syntax deleted file mode 100644 index 5e929919a8..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/PKGBUILD.syntax +++ /dev/null @@ -1,452 +0,0 @@ -# Sergej Pupykin - -context default - keyword whole linestart pkgbase brightcyan - keyword whole linestart pkgname brightcyan - keyword whole linestart epoch brightcyan - keyword whole linestart pkgver brightcyan - keyword whole linestart pkgrel brightcyan - keyword whole linestart pkgdesc brightcyan - keyword whole linestart arch brightcyan - keyword whole linestart url brightcyan - keyword whole linestart license brightcyan - keyword whole linestart groups brightcyan - keyword whole linestart depends brightcyan - keyword whole linestart makedepends brightcyan - keyword whole linestart optdepends brightcyan - keyword whole linestart checkdepends brightcyan - keyword whole linestart provides brightcyan - keyword whole linestart conflicts brightcyan - keyword whole linestart replaces brightcyan - keyword whole linestart backup brightcyan - keyword whole linestart options brightcyan - keyword whole linestart install brightcyan - keyword whole linestart source brightcyan - keyword whole linestart noextract brightcyan - keyword whole linestart backup brightcyan - keyword whole linestart changelog brightcyan - keyword whole linestart validpgpkeys brightcyan - keyword whole linestart b2sums brightcyan - keyword whole linestart md5sums brightcyan - keyword whole linestart sha1sums brightcyan - keyword whole linestart sha256sums brightcyan - keyword whole linestart sha384sums brightcyan - keyword whole linestart sha512sums brightcyan - - keyword whole linestart _cvsroot brightcyan - keyword whole linestart _cvsmod brightcyan - keyword whole linestart _svntrunk brightcyan - keyword whole linestart _svnmod brightcyan - keyword whole linestart _gitroot brightcyan - keyword whole linestart _gitname brightcyan - keyword whole linestart _hgroot brightcyan - keyword whole linestart _hgrepo brightcyan - keyword whole linestart _darcstrunk brightcyan - keyword whole linestart _darcsmod brightcyan - keyword whole linestart _bzrtrunk brightcyan - keyword whole linestart _bzrmod brightcyan - - keyword whole $srcdir brightcyan - keyword whole $pkgdir brightcyan - keyword whole $startdir brightcyan - keyword whole ${srcdir} brightcyan - keyword whole ${pkgdir} brightcyan - keyword whole ${startdir} brightcyan - keyword whole $(srcdir) brightcyan - keyword whole $(pkgdir) brightcyan - keyword whole $(startdir) brightcyan - - keyword ;; brightred - keyword \\@ brightred - keyword \\$ brightred - keyword \\\\ brightred - keyword \\" brightred - keyword \\' brightred - keyword \\` brightred - keyword ` brightred - keyword ; brightcyan - keyword $(*) brightgreen - keyword ${*} brightgreen - keyword { brightcyan - keyword } brightcyan - - keyword whole linestart #!\[\s\]*\n brightcyan black - - keyword $\* brightred - keyword $@ brightred - keyword $# brightred - keyword $? brightred - keyword $- brightred - keyword $$ brightred - keyword $! brightred - keyword $_ brightred - - keyword wholeright $\[0123456789\] brightred - - keyword wholeright $+ brightgreen - - keyword $ brightgreen - - - keyword wholeleft linestart function*() brightmagenta - keyword wholeleft linestart function\[\s\]+ brightmagenta - keyword wholeright +() brightmagenta - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._ - - keyword whole alias yellow - keyword whole bg yellow - keyword whole break yellow - keyword whole case yellow - keyword whole continue yellow - keyword whole done yellow - keyword whole do yellow - keyword whole elif yellow - keyword whole else yellow - keyword whole esac yellow - keyword whole eval yellow - keyword whole exec yellow - keyword whole exit yellow - keyword whole export yellow - keyword whole fg yellow - keyword whole fi yellow - keyword whole for yellow - keyword whole if yellow - keyword whole in yellow - keyword whole read yellow - keyword whole return yellow - keyword whole select yellow - keyword whole set yellow - keyword whole shift yellow - keyword whole then yellow - keyword whole trap yellow - keyword whole umask yellow - keyword whole unset yellow - keyword whole until yellow - keyword whole wait yellow - keyword whole while yellow - - keyword whole arch cyan - keyword whole ash cyan - keyword whole awk cyan - keyword whole basename cyan - keyword whole bash cyan - keyword whole bg_backup cyan - keyword whole bg_restore cyan - keyword whole bsh cyan - keyword whole cat cyan - keyword whole cd cyan - keyword whole cmake cyan - keyword whole chgrp cyan - keyword whole chmod cyan - keyword whole chown cyan - keyword whole cp cyan - keyword whole cpio cyan - keyword whole csh cyan - keyword whole date cyan - keyword whole dd cyan - keyword whole df cyan - keyword whole dmesg cyan - keyword whole dnsdomainname cyan - keyword whole doexec cyan - keyword whole domainname cyan - keyword whole echo cyan - keyword whole ed cyan - keyword whole egrep cyan - keyword whole ex cyan - keyword whole false cyan - keyword whole fgrep cyan - keyword whole find cyan - keyword whole fsconf cyan - keyword whole gawk cyan - keyword whole grep cyan - keyword whole gunzip cyan - keyword whole gzip cyan - keyword whole hostname cyan - keyword whole igawk cyan - keyword whole install cyan - keyword whole ipcalc cyan - keyword whole kill cyan - keyword whole ksh cyan - keyword whole linuxconf cyan - keyword whole ln cyan - keyword whole login cyan - keyword whole lpdconf cyan - keyword whole ls cyan - keyword whole mail cyan - keyword whole make cyan - keyword whole mkdir cyan - keyword whole mknod cyan - keyword whole mktemp cyan - keyword whole more cyan - keyword whole mount cyan - keyword whole msg cyan - keyword whole mt cyan - keyword whole mv cyan - keyword whole netconf cyan - keyword whole netstat cyan - keyword whole nice cyan - keyword whole nisdomainname cyan - keyword whole patch cyan - keyword whole ping cyan - keyword whole ps cyan - keyword whole pwd cyan - keyword whole red cyan - keyword whole remadmin cyan - keyword whole rm cyan - keyword whole rmdir cyan - keyword whole rpm cyan - keyword whole sed cyan - keyword whole set cyan - keyword whole setserial cyan - keyword whole sh cyan - keyword whole sleep cyan - keyword whole sort cyan - keyword whole stty cyan - keyword whole su cyan - keyword whole sync cyan - keyword whole taper cyan - keyword whole tar cyan - keyword whole tcsh cyan - keyword whole test cyan - keyword whole time cyan - keyword whole touch cyan - keyword whole true cyan - keyword whole umount cyan - keyword whole uname cyan - keyword whole userconf cyan - keyword whole usleep cyan - keyword whole vi cyan - keyword whole view cyan - keyword whole vim cyan - keyword whole xconf cyan - keyword whole ypdomainname cyan - keyword whole zcat cyan - keyword whole zsh cyan - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_ - -context # \n brown - spellcheck - -context exclusive whole <<\[\s\]\[-\]\[\s\]\[\\\]EOF EOF green -context exclusive whole <<\[\s\]\[-\]\[\s\]\[\\\]END END green - -context ' ' green - -context " " green - keyword whole $srcdir brightcyan - keyword whole $pkgdir brightcyan - keyword whole $startdir brightcyan - keyword whole ${srcdir} brightcyan - keyword whole ${pkgdir} brightcyan - keyword whole ${startdir} brightcyan - keyword whole $(srcdir) brightcyan - keyword whole $(pkgdir) brightcyan - keyword whole $(startdir) brightcyan - - keyword \\* brightgreen - keyword \\@ brightgreen - keyword \\$ brightgreen - keyword \\\\ brightgreen - keyword \\` brightgreen - keyword \\" brightgreen - keyword $(*) brightgreen - keyword ${*} brightgreen - keyword $\* brightred - keyword $@ brightred - keyword $# brightred - keyword $? brightred - keyword $- brightred - keyword $$ brightred - keyword $! brightred - keyword $_ brightred - keyword wholeright $\[0123456789\] brightred - - keyword wholeright $+ brightgreen - - keyword $ brightgreen - -context exclusive ` ` lightgray black - keyword whole $srcdir brightcyan - keyword whole $pkgdir brightcyan - keyword whole $startdir brightcyan - keyword whole ${srcdir} brightcyan - keyword whole ${pkgdir} brightcyan - keyword whole ${startdir} brightcyan - keyword whole $(srcdir) brightcyan - keyword whole $(pkgdir) brightcyan - keyword whole $(startdir) brightcyan - - keyword '*' green - keyword " green - keyword \\` green - keyword ; brightcyan - keyword ${*} brightgreen - keyword $(*) brightgreen - keyword { brightcyan - keyword } brightcyan - - keyword $\* brightred - keyword $@ brightred - keyword $# brightred - keyword $? brightred - keyword $- brightred - keyword $$ brightred - keyword $! brightred - keyword $_ brightred - - keyword wholeright $\[0123456789\] brightred - - keyword wholeright $+ brightgreen - - keyword $ brightgreen - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._ - - keyword whole break yellow - keyword whole case yellow - keyword whole continue yellow - keyword whole done yellow - keyword whole do yellow - keyword whole elif yellow - keyword whole else yellow - keyword whole esac yellow - keyword whole exit yellow - keyword whole fi yellow - keyword whole for yellow - keyword whole if yellow - keyword whole in yellow - keyword whole return yellow - keyword whole select yellow - keyword whole shift yellow - keyword whole then yellow - keyword whole trap yellow - keyword whole until yellow - keyword whole while yellow - - keyword whole arch cyan - keyword whole ash cyan - keyword whole awk cyan - keyword whole basename cyan - keyword whole bash cyan - keyword whole bg_backup cyan - keyword whole bg_restore cyan - keyword whole bsh cyan - keyword whole cat cyan - keyword whole cd cyan - keyword whole chgrp cyan - keyword whole chmod cyan - keyword whole chown cyan - keyword whole cmake cyan - keyword whole cp cyan - keyword whole cpio cyan - keyword whole csh cyan - keyword whole date cyan - keyword whole dd cyan - keyword whole df cyan - keyword whole dmesg cyan - keyword whole dnsdomainname cyan - keyword whole doexec cyan - keyword whole domainname cyan - keyword whole echo cyan - keyword whole ed cyan - keyword whole egrep cyan - keyword whole ex cyan - keyword whole false cyan - keyword whole fgrep cyan - keyword whole find cyan - keyword whole fsconf cyan - keyword whole gawk cyan - keyword whole grep cyan - keyword whole gunzip cyan - keyword whole gzip cyan - keyword whole hostname cyan - keyword whole igawk cyan - keyword whole install cyan - keyword whole ipcalc cyan - keyword whole kill cyan - keyword whole ksh cyan - keyword whole linuxconf cyan - keyword whole ln cyan - keyword whole login cyan - keyword whole lpdconf cyan - keyword whole ls cyan - keyword whole mail cyan - keyword whole mkdir cyan - keyword whole mknod cyan - keyword whole mktemp cyan - keyword whole more cyan - keyword whole mount cyan - keyword whole mt cyan - keyword whole mv cyan - keyword whole netconf cyan - keyword whole netstat cyan - keyword whole nice cyan - keyword whole nisdomainname cyan - keyword whole patch cyan - keyword whole ping cyan - keyword whole ps cyan - keyword whole pwd cyan - keyword whole red cyan - keyword whole remadmin cyan - keyword whole rm cyan - keyword whole rmdir cyan - keyword whole rpm cyan - keyword whole sed cyan - keyword whole set cyan - keyword whole setserial cyan - keyword whole sh cyan - keyword whole sleep cyan - keyword whole sort cyan - keyword whole stty cyan - keyword whole su cyan - keyword whole sync cyan - keyword whole taper cyan - keyword whole tar cyan - keyword whole tcsh cyan - keyword whole test cyan - keyword whole time cyan - keyword whole touch cyan - keyword whole true cyan - keyword whole umount cyan - keyword whole uname cyan - keyword whole userconf cyan - keyword whole usleep cyan - keyword whole vi cyan - keyword whole view cyan - keyword whole vim cyan - keyword whole xconf cyan - keyword whole ypdomainname cyan - keyword whole zcat cyan - keyword whole zsh cyan - -context exclusive linestart options ) lightgray - keyword whole strip brightgreen - keyword whole docs brightgreen - keyword whole libtool brightgreen - keyword whole emptydirs brightgreen - keyword whole zipman brightgreen - keyword whole ccache brightgreen - keyword whole distcc brightgreen - keyword whole buildflags brightgreen - keyword whole makeflags brightgreen - keyword whole debug brightgreen - keyword whole upx brightgreen - - keyword whole !strip brightred - keyword whole !docs brightred - keyword whole !libtool brightred - keyword whole !emptydirs brightred - keyword whole !zipman brightred - keyword whole !ccache brightred - keyword whole !distcc brightred - keyword whole !buildflags brightred - keyword whole !makeflags brightred - keyword whole !debug brightred - keyword whole !upx brightred - -context exclusive linestart arch ) lightgray - keyword whole any brightcyan - keyword whole i686 brightcyan - keyword whole x86_64 brightcyan diff --git a/recipes/wip/files/mc/source/misc/syntax/Syntax.in b/recipes/wip/files/mc/source/misc/syntax/Syntax.in deleted file mode 100644 index 00850135ca..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/Syntax.in +++ /dev/null @@ -1,352 +0,0 @@ -# This file describes which highlighting scheme is applied to a particular -# file in mcedit. -# -# -# System-wide files (this and syntax definitions) are located in -# @datarootdir@/@PACKAGE@/syntax/ directory. -# -# User's files (this and syntax definitions) are located in -# ~/.local/share/@PACKAGE@/syntax directory. -# -# If user's file is missing, system-wide one is used. -# -# -# This file is rescanned on opening of every new editor file. -# -# Format of this file is following. -# -# Each entry consists of two lines: a "file" specification and the -# corresponding highlighting definition ("include"). A file specification -# can have two or three fields, each separated by white-space characters. -# -# The first field is a regular expression that is matched against the file -# name. The second field is a description of the file type and is -# currently unused. The third (optional) field is a regular expression -# that is matched against the first line of the file. The first entry -# that matches wins, that is, all the entries below are ignored. -# -# Certain characters must be quoted in these fields. These are space (\s), -# tabs (\t), backslashes(\\), plus (\+) and asterisk (\*). Braces {} and -# brackets [] must not be quoted in this file. However, they have a special -# meaning when used in the actual syntax definitions. -# -# You can use the following colors in the syntax highlighting files: -# black, blue, brightblue, brightcyan, brightgreen, brightmagenta, -# brightred, brown, cyan, gray, green, lightgray, magenta, red, white, -# yellow -# - -file [Ss]yntax$ Syntax\sHighlighting\sdefinitions ^#\ssyntax\srules\sversion\s -include syntax.syntax - -file filehighlight\\.ini$ File\sHighlighting\sdefinitions ^#\sfile\shighlight\srules\sversion\s -include filehighlight.syntax - -file ..\*\\.e$ Eiffel\sSource\sFile -include eiffel.syntax - -file ..\*\\.(diff|rej|patch)|COMMIT_EDITMSG$ Diff\sOutput ^(diff|Index:)\s -include diff.syntax - -file ..\*\\.lsm$ LSM\sFile -include lsm.syntax - -file .\*(bash(_completion|rc)|profile|\\.(sh|bash(rc|_(completion|profile|log(in|out)|aliases|exports|history))|profile|zlog(in|out)|zprofile|zsh(env|rc)?))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh -include sh.syntax - -# Since openrc scripts have no extension "by definition", use an empty pattern -# that doesn't match any file name, and therefore only the shebang is used to detect -# syntax highlighting rules (see tickets #4246 and #4252 for details). -file ^$ OpenRC\sRunscript\sFile ^#!\s\*/sbin/openrc-run -include sh.syntax - -file ..\*\\.((?i:ini)|desktop|busname|(auto)?mount|net(dev|work)|link|path|service|slice|socket|swap|target|timer)$ INI-based\sFile -include ini.syntax - -file ..\*\\.((?i:pl|pm|psgi)|t)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@) -include perl.syntax - -file ..\*\\.(?i:py)$ Python\sProgram ^#!.\*([\s/]python|@PYTHON@) -include python.syntax - -file ..\*\\.(pyx|pxd|pxi)$ Cython\sor\sPyrex\sProgram -include cython.syntax - -file ..\*\\.(?i:rb)$ Ruby\sProgram ^#!.\*([\s/]ruby|@RUBY@) -include ruby.syntax - -file ..\*\\.(man|[0-9n]|[0-9](x|ncurses|ssl|p|pm|menu|form|vga|t|td))$ NROFF\sSource -include nroff.syntax - -file ..\*\\.(?i:html?)$ HTML\sFile -include html.syntax - -file ..\*\\.((?i:xml|xsd|xslt?|dtd)|qpg|qpg\\.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s) -include xml.syntax - -file ..\*\\.cir$ Spice\scircuit -include spice.syntax - -file ..\*\\.(?i:tt)$ Template::Toolkit\sFile -include tt.syntax - -file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|..\*\\.mak|Kbuild)$ Makefile -include makefile.syntax - -file (CMakeLists.txt|.\*.cmake)$ CMake -include cmake.syntax - -file meson\\.build$ Meson\sBuild\sFile -include meson.syntax - -file ..\*\\.(?i:pas|dpr|inc)$ Pascal\sProgram -include pascal.syntax - -file ..\*\\.(?i:ad[abs])$ Ada\sProgram -include ada95.syntax - -file ..\*\\.(?i:i?tcl)$ Tcl\sProgram ^#!.\*([\s/]tclsh|[\s/]wish|/usr/bin/tclsh|/usr/bin/wish) -include tcl.syntax - -file ..\*\\.(?i:sl)$ S-Lang\sProgram -include slang.syntax - -file ..\*\\.tex$ LaTeX\s2.09\sDocument -include latex.syntax - -file ..\*\\.(?i:texi|texinfo)$ Texinfo\sDocument -include texinfo.syntax - -file ..\*\\.(dot|gv)$ DOT/Graphviz\sgraph -include dot.syntax - -file ..\*\\.c$ C\sProgram -include c.syntax - -file ..\*\\.([hC]|(?i:cxx|cc|cpp|c\\\+\\\+|hxx|hh|hpp|h\\\+\\\+|ino)|[Hh]\\.in)$ C/C\+\+\sProgram -include cxx.syntax - -file ..\*\\.d$ D\sProgram -include d.syntax - -file ..\*\\.(?i:f)$ Fortran\sProgram -include fortran.syntax - -file ..\*\\.go$ GoLang\sProgram -include go.syntax - -file ..\*\\.rs$ Rust\sProgram -include rust.syntax - -file ..\*\\.(?i:f)9[05]$ Freeform\sFortran\sProgram -include f90.syntax - -file ..\*\\.i$ SWIG\sSource -include swig.syntax - -file ..\*\\.(?i:php)[0-9]?$ PHP\sProgram -include php.syntax - -file ..\*\\.ij[xs]$ J\sFile -include j.syntax - -file ..\*\\.(?i:java?|groovy|Jenkinsfile)$ Java\sProgram -include java.syntax - -file ..\*\\.(properties|config)$ Java\sFile -include properties.syntax - -file ..\*\\.(?i:cs)$ C\#\sProgram -include cs.syntax - -file ..\*\\.(?i:m?js)$ JavaScript\sProgram ^#!.\*[\s/](node|nodejs)\\b -include js.syntax - -file ..\*\\.(?i:json)$ JSON\sFile -include json.syntax - -file ..\*\\.(?i:ts)$ TypeScript\sProgram -include ts.syntax - -file ..\*\\.(?i:as)$ ActionScript\sProgram -include as.syntax - -file ..\*\\.(as[achmp]x)$ ASPX\sFile -include aspx.syntax - -file ..\*\\.st$ SmallTalk\sProgram -include smalltalk.syntax - -file ..\*\\.(lisp|lsp|el)$ Lisp\sProgram -include lisp.syntax - -file ..\*\\.(ml[ilpy]?)$ ML\sProgram -include ml.syntax - -file ..\*\\.m$ Matlab\sor\sOctave\sFile -include octave.syntax - -file ..\*\\.(?i:sql)$ SQL\sProgram -include sql.syntax - -file ..\*\\.(?i:hql)$ HiveQL\sProgram -include hive.syntax - -file ..\*\\.(spec|spec\\.in)$ RPM\sSpecfile -include spec.syntax - -file ..\*\\.repo$ YUM\sRepo\sFile -include yum-repo.syntax - -file ..\*\\.awk$ AWK\sFile -include awk.syntax - -file ..\*\\.(?i:[cq]ss)$ CSS\sFile -include css.syntax - -file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile -include changelog.syntax - -file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource -include m4.syntax - -file ..\*\\.(bat|cmd)$ DOS\sBatch -include dos.syntax - -file ..\*\\.po[tx]?$ PO\sFile -include po.syntax - -file ..\*\\.(?i:asm|s)$ ASM\sProgram -include assembler.syntax - -file ..\*\\.(?i:pov)$ POV\sScript -include povray.syntax - -file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild -include ebuild.syntax - -file ..\*\\.(?i:lua)$ Lua\sProgram ^#!.\*[\s/]lua -include lua.syntax - -file ..\*\\.(?i:idl)$ CORBA\sIDL -include idl.syntax - -file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s -include mail.syntax - -file \\.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail -include procmail.syntax - -file sources.list$ sources\slist -include debian-sources-list.syntax - -file control$ Debian\scontrol\sfile -include debian-control.syntax - -file (rules|rocks)$ Debian\srules -include makefile.syntax - -file .\*changelog$ Debian\schangelog\sfile -include debian-changelog.syntax - -file changelog.Debian$ Debian\schangelog\sfile -include debian-changelog.syntax - -file ..\*\\.dsc$ Debian\sdescriptiom\sfile -include debian-description.syntax - -file ..\*\\.(?i:hsc?)$ Haskell\sprogram -include haskell.syntax - -file ..\*\\.(?i:cabal)$ Cabal\sconfig\sfile -include cabal.syntax - -file ..\*\\.(?i:n)$ Nemerle\sProgram -include nemerle.syntax - -file ..\*\\.(?i:(v|sv|vh|svh))$ Verilog/SystemVerilog\sDevice\sDescription -include verilog.syntax - -file ..\*\\.(?i:hdl|vhdl?)$ VHDL\sDevice\sDescription -include vhdl.syntax - -file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript) -include erlang.syntax - -file ..\*\\.hrl$ Erlang\sHeader ^-record\\( -include erlang.syntax - -file .\*named.conf$ Bind9\sconfiguration -include named.syntax - -file ..\*\\.strace$ Strace\sdebug\soutput -include strace.syntax - -file PKGBUILD$ Arch\spackage\sbuild\sscript -include PKGBUILD.syntax - -file \\.install$ Arch\spackage\sinstall\sscript -include sh.syntax - -file ..\*\\.(l|y|yxx|ypp)$ Lex/Flex/Yacc/Bison\ssource -include yxx.syntax - -file ..\*\\.dlink\\.sw$ D-Link\sSwitch\sCommands -include dlink.syntax - -file ..\*\\.(?i:jalt?)$ Jal\ssource -include jal.syntax - -file ..\*\\.(?i:lkr)$ PIC\slinker\sscript\sfile -include lkr.syntax - -file ..\*\\.pp$ Puppet\smanifest\sfile -include puppet.syntax - -file ..\*\\.(glsl|vert|frag|geom)$ GLSL\sProgram -include glsl.syntax - -file ..\*\\.cuh?$ CUDA\sProgram -include cuda.syntax - -file ..\*\\.cl$ OpenCL\sProgram -include opencl.syntax - -file ..\*\\.(?i:ya?ml)$ YAML\sFile -include yaml.syntax - -file .\*\\.osl$ OSL\sProgram -include osl.syntax - -file .\*\\.([rR]|Rd|Rscript)$ R\sProgram -include r.syntax - -file ..\*\\.(?i:md)$ Markdown -include markdown.syntax - -file ..\*\\.proto$ Protobuf\sFile -include protobuf.syntax - -file ..\*\\.(?i:yab)$ Yabasic\s(Yet\sAnother\sBASIC) -include yabasic.syntax - -file ..\*\\.(?i:cbl|cob)$ Cobol\sProgram -include cobol.syntax - -file ..\*\\.kt$ Kotliin\sSource -include kotlin.syntax - -file ..\*\\.swift$ Swift\sProgram -include swift.syntax - -file ..\*\\.action$ Privoxy\sFile -include privoxy.syntax - -file .\*\\.toml$ TOML\sFile -include toml.syntax - -file .\*\\.(mch|ref|imp)$ B\sFile -include b.syntax - -file .\* unknown -include unknown.syntax diff --git a/recipes/wip/files/mc/source/misc/syntax/ada95.syntax b/recipes/wip/files/mc/source/misc/syntax/ada95.syntax deleted file mode 100644 index e9bed270f3..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/ada95.syntax +++ /dev/null @@ -1,124 +0,0 @@ -# Scott Billings - -caseinsensitive - -context default - keyword whole abort yellow - keyword whole abs yellow - keyword whole and yellow - keyword whole delay yellow - keyword whole delta yellow - keyword whole digits yellow - keyword whole do yellow - keyword whole in yellow - keyword whole is yellow - keyword whole mod yellow - keyword whole not yellow - keyword whole null yellow - keyword whole of yellow - keyword whole or yellow - keyword whole others yellow - keyword whole out yellow - keyword whole pragma yellow - keyword whole raise yellow - keyword whole range yellow - keyword whole renames yellow - keyword whole requeue yellow - keyword whole return yellow - keyword whole reverse yellow - keyword whole separate yellow - keyword whole task yellow - keyword whole terminate yellow - keyword whole use yellow - keyword whole with yellow - keyword whole xor yellow - -# prevents - keyword from interfering with comment - keyword -- brown - - keyword # brightgreen - keyword ' brightgreen - keyword ( brightgreen - keyword ) brightgreen - keyword \*\* brightgreen - keyword \* brightgreen - keyword \+ brightgreen - keyword , brightgreen - keyword - brightgreen - keyword . brightgreen - keyword .. brightgreen - keyword /= brightgreen - keyword / brightgreen - keyword < brightgreen - keyword <= brightgreen - keyword >= brightgreen - keyword > brightgreen - keyword := brightgreen - keyword : brightgreen - keyword ; brightgreen - keyword => brightgreen - keyword <> brightgreen - keyword \\& brightgreen - keyword = brightgreen - - keyword whole begin brightred - keyword whole case brightred - keyword whole declare brightred - keyword whole else brightred - keyword whole elsif brightred - keyword whole end brightred - keyword whole entry brightred - keyword whole exception brightred - keyword whole exit brightred - keyword whole for brightred - keyword whole if brightred - keyword whole loop brightred - keyword whole private brightred - keyword whole protected brightred - keyword whole select brightred - keyword whole then brightred - keyword whole until brightred - keyword whole when brightred - keyword whole while brightred - - keyword whole array cyan - keyword whole boolean cyan - keyword whole character cyan - keyword whole duration cyan - keyword whole false cyan - keyword whole fixed cyan - keyword whole float cyan - keyword whole integer cyan - keyword whole natural cyan - keyword whole positive cyan - keyword whole record cyan - keyword whole string cyan - keyword whole true cyan - keyword whole universal_integer cyan - keyword whole universal_float cyan - keyword whole wide_character cyan - - keyword whole abstract brightcyan - keyword whole accept brightcyan - keyword whole access brightcyan - keyword whole aliased brightcyan - keyword whole all brightcyan - keyword whole at brightcyan - keyword whole constant brightcyan - keyword whole goto brightcyan - keyword whole limited brightcyan - keyword whole new_line brightcyan - keyword whole subtype brightcyan - keyword whole tagged brightcyan - keyword whole type brightcyan - - keyword whole body magenta - keyword whole function magenta - keyword whole generic magenta - keyword whole new magenta - keyword whole package magenta - keyword whole procedure magenta - -context exclusive -- \n brown - -context " " green diff --git a/recipes/wip/files/mc/source/misc/syntax/as.syntax b/recipes/wip/files/mc/source/misc/syntax/as.syntax deleted file mode 100644 index ac751d3d72..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/as.syntax +++ /dev/null @@ -1,200 +0,0 @@ -# -# ActionScript syntax highlighting -# for MC Editor/CoolEdit -# -# Author: Oleg Kosenkov -# Based on js.syntax -# -# 2011-12-27 Oleg Kosenkov -# * Initial public release. -# - -context default - - #========================= - # Keywords - keyword whole arguments yellow - keyword whole break yellow - keyword whole caller yellow - keyword whole case yellow - keyword whole catch yellow - keyword whole constructor yellow - keyword whole continue yellow - keyword whole else yellow - keyword whole default yellow - keyword whole delete yellow - keyword whole for yellow - keyword whole function yellow - keyword whole private yellow - keyword whole public yellow - keyword whole internal yellow - keyword whole protected yellow - keyword whole native yellow - keyword whole static yellow - keyword whole if yellow - keyword whole in yellow - keyword whole instanceof yellow - keyword whole new yellow - keyword whole prototype yellow - keyword whole override yellow - keyword whole return yellow - keyword whole switch yellow - keyword whole this yellow - keyword whole throw yellow - keyword whole try yellow - keyword whole typeof yellow - keyword whole var yellow - keyword whole while yellow - keyword whole with yellow - keyword whole import yellow - keyword whole package yellow - keyword whole class yellow - keyword whole final yellow - keyword whole const yellow - keyword whole set yellow - keyword whole get yellow - keyword whole dynamic yellow - keyword whole label yellow - keyword whole super yellow - keyword whole extends yellow - keyword whole include yellow - keyword whole namespace yellow - keyword whole interface yellow - keyword whole this yellow - - - #========================= - # Objects - keyword whole ActiveXObject yellow - keyword whole Array yellow - keyword whole Boolean yellow - keyword whole Date yellow - keyword whole Dictionary yellow - keyword whole Enumerator yellow - keyword whole FileSystemObject yellow - keyword whole Function yellow - keyword whole Global yellow - keyword whole Image yellow - keyword whole Math yellow - keyword whole Number yellow - keyword whole Object yellow - keyword whole TextStream yellow - keyword whole RegExp yellow - keyword whole VBArray yellow - keyword whole String yellow - keyword whole void yellow - keyword whole int yellow - - #========================= - # Most common functions - keyword whole alert yellow - keyword whole escape yellow - keyword whole eval yellow - keyword whole indexOf yellow - keyword whole isNaN yellow - keyword whole toString yellow - keyword whole unescape yellow - keyword whole valueOf yellow - - #========================= - # Constants - keyword whole false brightgreen - keyword whole null brightgreen - keyword whole true brightgreen - keyword whole undefined yellow - - #========================= - # Comments - keyword /\* brown - keyword \*/ brown - keyword // brown - - #========================= - # Numbers - wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_. - - keyword whole 0\{xX\}\{0123456789abcdefABCDEF\}\[0123456789abcdefABCDEF\] brightgreen - keyword whole \{0123456789\}\[0123456789\] brightgreen - keyword whole \[0123456789\]\.\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\.\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen - - #========================= - # Special symbols - keyword \. yellow - keyword \* yellow - keyword \+ yellow - keyword - yellow - keyword / yellow - keyword % yellow - keyword = yellow - keyword ! yellow - keyword & yellow - keyword | yellow - keyword ^ yellow - keyword ~ yellow - keyword > yellow - keyword < yellow - - #========================= - # Separators - keyword { brightcyan - keyword } brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword [ brightcyan - keyword ] brightcyan - keyword , brightcyan - keyword ? brightcyan - keyword : brightcyan - keyword ; brightmagenta - - -#============================= -# Comments - -context exclusive /\* \*/ brown - spellcheck - keyword whole BUG brightred - keyword whole FixMe brightred - keyword whole FIXME brightred - keyword whole Note brightred - keyword whole NOTE brightred - keyword whole ToDo brightred - keyword whole TODO brightred - keyword !!\[!\] brightred - keyword ??\[?\] brightred - - -context exclusive // \n brown - spellcheck - keyword whole BUG brightred - keyword whole FixMe brightred - keyword whole FIXME brightred - keyword whole Note brightred - keyword whole NOTE brightred - keyword whole ToDo brightred - keyword whole TODO brightred - keyword !!\[!\] brightred - keyword ??\[?\] brightred - - -#============================= -# Strings - -context " " green - spellcheck - keyword \\\{\\'"abtnvfr\} brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - - keyword ' brightgreen - -context ' ' green - spellcheck - keyword \\\{\\'"abtnvfr\} brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - - keyword " brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/aspx.syntax b/recipes/wip/files/mc/source/misc/syntax/aspx.syntax deleted file mode 100644 index f0af865c6e..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/aspx.syntax +++ /dev/null @@ -1,49 +0,0 @@ -# ASP.NET syntax highlighting -# -# Author: Juan C. Olivares -# http://www.juancri.com - -context default - keyword "*" lightgray - keyword '*' lightgray - - spellcheck - -context brightgreen - spellcheck - -context yellow - keyword '+' brightcyan - keyword "+" brightcyan - keyword \( lightgray - keyword \) lightgray - keyword \* lightgray - keyword \? lightgray - keyword \+ lightgray - keyword \| lightgray - keyword \, lightgray - spellcheck - -context <% %> brightgreen - keyword Application white - keyword Assembly white - keyword Control white - keyword Implements white - keyword Import white - keyword Inherits white - keyword OutputCache white - keyword Page white - keyword Reference white - keyword Register white - keyword WebService white - keyword \s+\= yellow - keyword '*' brightcyan - keyword "*" brightcyan - spellcheck - -context < > white - keyword \s+\= yellow - keyword "server" brightgreen - keyword '*' brightcyan - keyword "*" brightcyan - spellcheck diff --git a/recipes/wip/files/mc/source/misc/syntax/assembler.syntax b/recipes/wip/files/mc/source/misc/syntax/assembler.syntax deleted file mode 100644 index 0187c72914..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/assembler.syntax +++ /dev/null @@ -1,402 +0,0 @@ -# -# NASM,WASM,TASM,MASM and GAS x86 syntax highlight -# // Mike Gorchak -# // Andres Farfan 2012 -# - -caseinsensitive - -context default lightgray - -# NASM directives - keyword whole BITS white - keyword whole SECTION white - keyword whole SEGMENT white - keyword whole ABSOLUTE white - keyword whole EXTERN white - keyword whole GLOBAL white - keyword whole COMMON white - keyword whole CPU white - -# NASM, WASM, TASM, MASM and common modifiers - keyword whole ALIGN white - keyword whole ALIGNB white - keyword whole STRUC white - keyword whole ENDSTRUC white - keyword whole ISTRUC white - keyword whole IEND white - keyword whole AT white - keyword whole __FILE__ white - keyword whole __LINE__ white - keyword whole __NASM_VER__ white - keyword whole __NASM_VERSION_ID__ white - keyword whole __NASM_MAJOR__ white - keyword whole __NASM_MINOR__ white - keyword whole __NASM_SUBMINOR__ white - keyword whole __NASM_PATCHLEVEL__ white - keyword whole __SECT__ white - keyword whole STRICT white - keyword whole SEG white - keyword whole WRT white - keyword whole NOSPLIT white - keyword whole BYTE white - keyword whole WORD white - keyword whole DWORD white - keyword whole QWORD white - keyword whole TWORD white - -# Pseudo instructions - keyword whole ORG white - keyword whole EQU white - keyword whole DB white - keyword whole DW white - keyword whole DD white - keyword whole DQ white - keyword whole DT white - keyword whole RESB white - keyword whole RESW white - keyword whole RESD white - keyword whole RESQ white - keyword whole REST white - keyword whole INCBIN white - keyword whole TIMES white - -# GAS specific - keyword whole .string white - keyword whole .section white - keyword whole .align white - keyword whole .type white - keyword whole .size white - keyword whole .comm white - keyword whole .ident white - keyword whole .globl white - keyword whole .rodata brightblue - keyword whole .data brightblue - keyword whole .text brightblue - keyword whole .bss brightblue - -# NASM/TASM Macroses - keyword whole %ifdef brightred - keyword whole %define brightred - keyword whole %else brightred - keyword whole %elif brightred - keyword whole %endif brightred - keyword whole %macro brightred - keyword whole %endmacro brightred - keyword whole %rep brightred - keyword whole %repl brightred - keyword whole %strlen brightred - keyword whole %substr brightred - keyword whole %arg brightred - keyword whole %stacksize brightred - keyword whole %local brightred - keyword whole %push brightred - keyword whole %pop brightred - keyword whole %line brightred - keyword whole %\! brightred - keyword whole %\+ brightred - -# Generic 16-bit registers set - keyword whole %al brightmagenta - keyword whole %bl brightmagenta - keyword whole %cl brightmagenta - keyword whole %dl brightmagenta - keyword whole %ah brightmagenta - keyword whole %bh brightmagenta - keyword whole %ch brightmagenta - keyword whole %dh brightmagenta - keyword whole %ax brightmagenta - keyword whole %bx brightmagenta - keyword whole %cx brightmagenta - keyword whole %dx brightmagenta - keyword whole %si brightmagenta - keyword whole %di brightmagenta - keyword whole %bp brightmagenta - keyword whole %sp brightmagenta - keyword whole %es brightmagenta - keyword whole %cs brightmagenta - keyword whole %ds brightmagenta - - keyword whole AL brightmagenta - keyword whole BL brightmagenta - keyword whole CL brightmagenta - keyword whole DL brightmagenta - keyword whole AH brightmagenta - keyword whole BH brightmagenta - keyword whole CH brightmagenta - keyword whole DH brightmagenta - keyword whole AX brightmagenta - keyword whole BX brightmagenta - keyword whole CX brightmagenta - keyword whole DX brightmagenta - keyword whole SI brightmagenta - keyword whole DI brightmagenta - keyword whole BP brightmagenta - keyword whole SP brightmagenta - keyword whole ES brightmagenta - keyword whole CS brightmagenta - keyword whole DS brightmagenta - -# Generic 32-bit registers set - keyword whole %eax brightmagenta - keyword whole %ebx brightmagenta - keyword whole %ecx brightmagenta - keyword whole %edx brightmagenta - keyword whole %esi brightmagenta - keyword whole %edi brightmagenta - keyword whole %ebp brightmagenta - keyword whole %esp brightmagenta - keyword whole %fs brightmagenta - keyword whole %gs brightmagenta - - keyword whole EAX brightmagenta - keyword whole EBX brightmagenta - keyword whole ECX brightmagenta - keyword whole EDX brightmagenta - keyword whole ESI brightmagenta - keyword whole EDI brightmagenta - keyword whole EBP brightmagenta - keyword whole ESP brightmagenta - keyword whole FS brightmagenta - keyword whole GS brightmagenta - - keyword whole CR0 magenta - keyword whole CR1 magenta - keyword whole CR2 magenta - keyword whole CR3 magenta - keyword whole DR0 magenta - keyword whole DR1 magenta - keyword whole DR3 magenta - keyword whole DR4 magenta - keyword whole DR5 magenta - keyword whole DR6 magenta - keyword whole DR7 magenta - keyword whole TR0 magenta - keyword whole TR1 magenta - keyword whole TR2 magenta - keyword whole TR3 magenta - keyword whole TR4 magenta - keyword whole TR5 magenta - keyword whole TR6 magenta - keyword whole TR7 magenta - keyword whole TR8 magenta - keyword whole TR9 magenta - keyword whole TR10 magenta - keyword whole TR11 magenta - -# Generic AMD64 registers set - keyword whole %rax brightmagenta - keyword whole %rbx brightmagenta - keyword whole %rcx brightmagenta - keyword whole %rdx brightmagenta - keyword whole %rsi brightmagenta - keyword whole %rdi brightmagenta - keyword whole %rbp brightmagenta - keyword whole %rsp brightmagenta - keyword whole %r8 brightmagenta - keyword whole %r9 brightmagenta - keyword whole %r10 brightmagenta - keyword whole %r11 brightmagenta - keyword whole %r12 brightmagenta - keyword whole %r13 brightmagenta - keyword whole %r14 brightmagenta - keyword whole %r15 brightmagenta - - keyword whole RAX brightmagenta - keyword whole RBX brightmagenta - keyword whole RCX brightmagenta - keyword whole RDX brightmagenta - keyword whole RSI brightmagenta - keyword whole RDI brightmagenta - keyword whole RBP brightmagenta - keyword whole RSP brightmagenta - keyword whole R8 brightmagenta - keyword whole R9 brightmagenta - keyword whole R10 brightmagenta - keyword whole R11 brightmagenta - keyword whole R12 brightmagenta - keyword whole R13 brightmagenta - keyword whole R14 brightmagenta - keyword whole R15 brightmagenta - -#AMD64 32-bit registers. 64-bit mode - keyword whole %r8d brightmagenta - keyword whole %r9d brightmagenta - keyword whole %r10d brightmagenta - keyword whole %r11d brightmagenta - keyword whole %r12d brightmagenta - keyword whole %r13d brightmagenta - keyword whole %r14d brightmagenta - keyword whole %r15d brightmagenta - - keyword whole R8D brightmagenta - keyword whole R9D brightmagenta - keyword whole R10D brightmagenta - keyword whole R11D brightmagenta - keyword whole R12D brightmagenta - keyword whole R13D brightmagenta - keyword whole R14D brightmagenta - keyword whole R15D brightmagenta - -#AMD64 16-bit registers. 64-bit mode - keyword whole %r8w brightmagenta - keyword whole %r9w brightmagenta - keyword whole %r10w brightmagenta - keyword whole %r11w brightmagenta - keyword whole %r12w brightmagenta - keyword whole %r13w brightmagenta - keyword whole %r14w brightmagenta - keyword whole %r15w brightmagenta - - keyword whole R8W brightmagenta - keyword whole R9W brightmagenta - keyword whole R10W brightmagenta - keyword whole R11W brightmagenta - keyword whole R12W brightmagenta - keyword whole R13W brightmagenta - keyword whole R14W brightmagenta - keyword whole R15W brightmagenta - -#AMD64 8-bit registers. 64-bit mode - keyword whole %sil brightmagenta - keyword whole %dil brightmagenta - keyword whole %bpl brightmagenta - keyword whole %spl brightmagenta - keyword whole %r8b brightmagenta - keyword whole %r9b brightmagenta - keyword whole %r10b brightmagenta - keyword whole %r11b brightmagenta - keyword whole %r12b brightmagenta - keyword whole %r13b brightmagenta - keyword whole %r14b brightmagenta - keyword whole %r15b brightmagenta - - keyword whole SIL brightmagenta - keyword whole DIL brightmagenta - keyword whole BPL brightmagenta - keyword whole SPL brightmagenta - keyword whole R8B brightmagenta - keyword whole R9B brightmagenta - keyword whole R10B brightmagenta - keyword whole R11B brightmagenta - keyword whole R12B brightmagenta - keyword whole R13B brightmagenta - keyword whole R14B brightmagenta - keyword whole R15B brightmagenta - -#AMD64 System registers. 64-bit mode - keyword whole CR8 magenta - -#AMD64 SSE Registers. 64-bit mode - keyword whole %xmm8 brightcyan - keyword whole %xmm9 brightcyan - keyword whole %xmm10 brightcyan - keyword whole %xmm11 brightcyan - keyword whole %xmm12 brightcyan - keyword whole %xmm13 brightcyan - keyword whole %xmm14 brightcyan - keyword whole %xmm15 brightcyan - - keyword whole xmm8 brightcyan - keyword whole xmm9 brightcyan - keyword whole xmm10 brightcyan - keyword whole xmm11 brightcyan - keyword whole xmm12 brightcyan - keyword whole xmm13 brightcyan - keyword whole xmm14 brightcyan - keyword whole xmm15 brightcyan - -# FPU registers set - keyword whole st0 brightcyan - keyword whole st1 brightcyan - keyword whole st2 brightcyan - keyword whole st3 brightcyan - keyword whole st4 brightcyan - keyword whole st5 brightcyan - keyword whole st6 brightcyan - keyword whole st7 brightcyan - keyword whole %st0 brightcyan - keyword whole %st1 brightcyan - keyword whole %st2 brightcyan - keyword whole %st3 brightcyan - keyword whole %st4 brightcyan - keyword whole %st5 brightcyan - keyword whole %st6 brightcyan - keyword whole %st7 brightcyan - -# MMX/3DNOW registers set - keyword whole mm0 brightcyan - keyword whole mm1 brightcyan - keyword whole mm2 brightcyan - keyword whole mm3 brightcyan - keyword whole mm4 brightcyan - keyword whole mm5 brightcyan - keyword whole mm6 brightcyan - keyword whole mm7 brightcyan - keyword whole %mm0 brightcyan - keyword whole %mm1 brightcyan - keyword whole %mm2 brightcyan - keyword whole %mm3 brightcyan - keyword whole %mm4 brightcyan - keyword whole %mm5 brightcyan - keyword whole %mm6 brightcyan - keyword whole %mm7 brightcyan - -# SSE registers set - keyword whole xmm0 brightcyan - keyword whole xmm1 brightcyan - keyword whole xmm2 brightcyan - keyword whole xmm3 brightcyan - keyword whole xmm4 brightcyan - keyword whole xmm5 brightcyan - keyword whole xmm6 brightcyan - keyword whole xmm7 brightcyan - keyword whole %xmm0 brightcyan - keyword whole %xmm1 brightcyan - keyword whole %xmm2 brightcyan - keyword whole %xmm3 brightcyan - keyword whole %xmm4 brightcyan - keyword whole %xmm5 brightcyan - keyword whole %xmm6 brightcyan - keyword whole %xmm7 brightcyan - -# Common symbols - keyword ; brown - keyword ! brown - keyword /\* brown - keyword \*/ brown - keyword [ white - keyword ] white - keyword , white - keyword \+ white - keyword - white - keyword . white - keyword ( white - keyword ) white - keyword : white - keyword @ white - keyword >> white - keyword << white - keyword % white - keyword \\ white - keyword / white - keyword // white - keyword ~ white - keyword ^ white - keyword & white - keyword \* white - keyword | white - keyword $ brightgreen - keyword $$ brightgreen - keyword %% cyan - -context " " green -context ' ' brightgreen -context exclusive ; \n brown - spellcheck - -context exclusive /\* \*/ brown - spellcheck - -context exclusive ! \n brown - spellcheck diff --git a/recipes/wip/files/mc/source/misc/syntax/awk.syntax b/recipes/wip/files/mc/source/misc/syntax/awk.syntax deleted file mode 100644 index 551a67a8f4..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/awk.syntax +++ /dev/null @@ -1,172 +0,0 @@ -# AWK syntax by -# Olegarch -# Andres Farfan, -# Ilia Maslakov -# -# (c) 2003, 2004, 2009 -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -context default - - keyword whole linestart #!\[\s\]/bin/\[msg\]awk yellow magenta - keyword whole linestart #!\[\s\]/usr/bin/\[msg\]awk yellow magenta -# Keywords - keyword whole AMNOISE white - keyword whole BEGIN white - keyword whole END white - keyword whole func white - keyword whole function white - keyword whole nextfile white - - keyword whole return white/26 - keyword whole print white/26 - keyword whole printf white/26 - keyword whole if white/26 - keyword whole else white/26 - keyword whole while white/26 - keyword whole for white/26 - keyword whole in white/26 - keyword whole do white/26 - keyword whole break white/26 - keyword whole continue white/26 - keyword whole next white/26 - keyword whole exit white/26 - keyword whole close white/26 - keyword whole system white/26 - keyword whole getline white/26 -# Builtin functions: - keyword whole atan2 white black - keyword whole cos white black - keyword whole exp white black - keyword whole int white black - keyword whole log white black - keyword whole rand white black - keyword whole sin white black - keyword whole sqrt white black - keyword whole srand white black - keyword whole gsub white black - keyword whole index white black - keyword whole length white black - keyword whole match white black - keyword whole split white black - keyword whole sprintf white black - keyword whole sub white black - keyword whole substr white black - keyword whole asort white black - keyword whole asorti white black - - keyword whole xor white - keyword whole and white - keyword whole or white - -# Gawk builtin functions: - keyword whole fflush white black - keyword whole gensub white black - keyword whole tolower white black - keyword whole toupper white black - keyword whole systime white black - keyword whole strftime white black - keyword whole strtonum white - keyword whole bindtextdomain white - keyword whole dcgettext white - keyword whole dcngettext white - keyword whole compl white - keyword whole delete white - keyword whole extension white - keyword whole mktime white - keyword whole lshift white - keyword whole rshift white - -# Builtin variables: - keyword whole ARGIND brightblue - keyword whole BINMODE brightblue - keyword whole CONVFMT brightblue - keyword whole ENVIRON brightblue - keyword whole LINT brightblue - keyword whole TEXTDOMAIN brightblue - keyword whole ARGC brightblue - keyword whole ARGV brightblue - keyword whole FILENAME brightblue - keyword whole FNR brightblue - keyword whole FS brightblue - keyword whole NF brightblue - keyword whole NR brightblue - keyword whole OFMT brightblue - keyword whole OFS brightblue - keyword whole ORS brightblue - keyword whole RLENGTH brightblue - keyword whole RS brightblue - keyword whole RSTART brightblue - keyword whole SUBSEP brightblue -# Gawk builtin variables: - keyword whole ARGIND brightblue - keyword whole ERRNO brightblue - keyword whole RT brightblue - keyword whole IGNORECASE brightblue - keyword whole FIELDWIDTHS brightblue - - keyword '\s' brightgreen/16 - keyword '+' brightgreen/16 - keyword > yellow/24 - keyword < yellow/24 - keyword \+ yellow/24 - keyword - yellow/24 - keyword \* yellow/24 - keyword % yellow/24 - keyword = yellow/24 - keyword != yellow/24 - keyword == yellow/24 - keyword { white/25 - keyword } white/25 - keyword ( white/25 - keyword ) white/25 - keyword [*] magenta - keyword , white/25 - keyword : white/25 - keyword ; lightgray/19 - keyword $\[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\] brightred/18 -# Begin/End: - keyword whole BEGIN red - keyword whole END red -# Function keyword: - keyword whole function brightmagenta -# Hex constant: - keyword 0\{xX\}\[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\] magenta/6 -# Tab: \t -# keyword linestart \t lightgray/13 blue/6 - -# Sed: - keyword linestart /^ red - keyword linestart /^# red -context /^#*/ red - -# Comments: -context linestart # \n brown -context linestart $ \n brown - -# String: -context " " green/6 - keyword \\" brightgreen/16 - keyword \\\n brightgreen/16 - keyword %% brightgreen/16 - keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgGoxX\} brightgreen/16 - keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diu\} brightgreen/16 - keyword %\[hl\]n brightgreen/16 - keyword %\[.\]\[0123456789\]s brightgreen/16 - keyword %[*] brightgreen/16 - keyword %c brightgreen/16 - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen/16 - keyword \\\\ brightgreen/16 - keyword \\' brightgreen/16 - keyword \\\{abtnvfr\} brightgreen/16 diff --git a/recipes/wip/files/mc/source/misc/syntax/b.syntax b/recipes/wip/files/mc/source/misc/syntax/b.syntax deleted file mode 100644 index 7cd91a0a8f..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/b.syntax +++ /dev/null @@ -1,382 +0,0 @@ -# B language keywords -# by Gyorgy Rotter -# -# For the proper syntax highlight the order of the keywords are -# important. This is why the related keywords are not listed in a block. -# To create semantic relationship between the keywords I used groups. -# Some keywords are in a group (the name of the group is -# indicated in a commented line above the keyword definition) -# -# With the one-liner for example we could replace -# the color of the keywords which are the members of the -# "Sequences" group from "yellow" to "red"... -# -# echo Sequences yellow red | xargs -l bash -c 'sed -z "s/\(# $0\n[^\n]*\)$1/\1$2/g" b.syntax' -# ^ ^ ^ -# | | | -# | | -- new_color -# | -- actual_color -# -- groupname -# -# -# Usable groups: -# Relations, Sequences, Logical, Arithmetic, Sets, Substitutions -# -# Usable colors: -# described in the Syntax file -# - -context default - keyword whole ABSTRACT_CONSTANTS yellow - keyword whole ABSTRACT_VARIABLES yellow - keyword whole CONCRETE_CONSTANTS yellow - keyword whole CONCRETE_VARIABLES yellow - keyword whole LOCAL_OPERATIONS yellow - keyword whole IMPLEMENTATION yellow - keyword whole INITIALISATION yellow - keyword whole CONSTRAINTS yellow - keyword whole DEFINITIONS yellow - keyword whole ASSERTIONS yellow - keyword whole OPERATIONS yellow - keyword whole PROPERTIES yellow - keyword whole REFINEMENT yellow - keyword whole CONSTANTS yellow - keyword whole INVARIANT yellow - keyword whole sequences yellow - keyword whole VARIABLES yellow - keyword whole Cardinal yellow - - # Relations - keyword whole closure1 white - - keyword whole INCLUDES yellow - - # Arithmetic - keyword whole NATURAL1 yellow - - keyword whole PROMOTES yellow - keyword whole Boolean yellow - keyword whole EXTENDS yellow - keyword whole IMPORTS yellow - - # Arithmetic - keyword whole INTEGER yellow - - keyword whole iterate yellow - keyword whole MACHINE yellow - - # Arithmetic - keyword whole NATURAL yellow - - keyword whole postfix yellow - keyword whole REFINES yellow - keyword whole subtree yellow - keyword whole VARIANT yellow - keyword whole ASSERT yellow - keyword whole CHOICE yellow - - # Relations - keyword whole closure white - - keyword whole EITHER yellow - keyword whole father yellow - keyword whole MAXINT yellow - keyword whole MININT yellow - keyword whole mirror yellow - keyword whole modulo yellow - keyword whole prefix yellow - keyword whole SELECT yellow - keyword whole STRING yellow - keyword whole struct yellow - keyword whole VALUES yellow - keyword whole arity yellow - keyword whole BEGIN yellow - keyword whole btree yellow - keyword whole const yellow - keyword whole ELSIF yellow - keyword whole FALSE yellow - keyword whole first yellow - keyword whole front yellow - keyword whole infix yellow - - # Sets - keyword whole INTER yellow - - keyword whole inter yellow - keyword whole iseq1 yellow - keyword whole right yellow - - # Arithmetic - keyword whole SIGMA yellow - - keyword whole sizet yellow - - # Sets - keyword whole UNION yellow - - keyword whole union yellow - keyword whole WHERE yellow - keyword whole WHILE yellow - keyword whole bool yellow - keyword whole BOOL yellow - keyword whole card yellow - keyword whole CASE yellow - keyword whole conc yellow - keyword whole ELSE yellow - - # Sets - keyword whole FIN1 yellow - - keyword whole iseq yellow - keyword whole last yellow - keyword whole left yellow - keyword whole NAT1 yellow - - # Sets - keyword whole POW1 yellow - - keyword whole perm yellow - keyword whole pred yellow - keyword whole prj1 yellow - keyword whole prj2 yellow - keyword whole rank yellow - keyword whole SEES yellow - keyword whole seq1 yellow - keyword whole SETS yellow - keyword whole size yellow - keyword whole skip yellow - keyword whole sons yellow - keyword whole succ yellow - keyword whole tail yellow - keyword whole THEN yellow - keyword whole tree yellow - keyword whole TRUE yellow - keyword whole USES yellow - keyword whole WHEN yellow - keyword whole ANY yellow - keyword whole bin yellow - keyword whole dom yellow - keyword whole END yellow - - # Sets - keyword whole FIN yellow - - keyword whole fnc yellow - keyword whole INT yellow - keyword whole LET yellow - keyword whole max yellow - keyword whole min yellow - keyword whole mod yellow - keyword whole NAT yellow - - # Logical - keyword whole not cyan - - # Sets - keyword whole POW yellow - - keyword whole PRE yellow - keyword whole ran yellow - keyword whole rec yellow - keyword whole rel yellow - keyword whole rev yellow - keyword whole seq yellow - keyword whole Set yellow - keyword whole son yellow - keyword whole top yellow - keyword whole VAR yellow - keyword whole BE yellow - keyword whole DO yellow - keyword whole id yellow - keyword whole IF yellow - keyword whole IN yellow - keyword whole OF yellow - keyword whole OR yellow - - # Logical - keyword whole or cyan - - # Arithmetic - keyword whole PI yellow - -# prevents - keyword from interfering with comment - keyword /\* green - keyword \*/ green - keyword // green - - - keyword <-- yellow - keyword := yellow - - - # Relations - keyword \+->> white - - # Relations - keyword -->> white - - # Sets - keyword /<<: yellow - - # Sequences - keyword /|\\ magenta - - # Relations - keyword >->> white - - # Relations - keyword >\+> white - - # Arithmetic - keyword \*\* yellow - - # Relations - keyword \+-> white - - # Sequences - keyword \\|/ magenta - - # Relations - keyword --> white - - # Sets - keyword /<: yellow - - # Sets - keyword /\\ yellow - - # Relations - keyword <-> white - - # Sets - keyword <<: yellow - - # Relations - keyword <<| white - - # Logical - keyword <=> cyan - - # Relations - keyword <\+ white - - # Relations - keyword >-> white - - # Sets - keyword \\/ yellow - - # Relations - keyword |-> white - - # Relations - keyword |>> white - - keyword != yellow - - # Sequences - keyword -> magenta - - # Sets - keyword /: yellow - - # Logical - keyword /= cyan - - # Substitutions - keyword :: yellow - - # Sequences - keyword <- magenta - - # Sets - keyword <: yellow - - # Arithmetic - keyword <= yellow - - # Relations - keyword <| white - - keyword == yellow - - # Logical - keyword => cyan - - # Relations - keyword >< white - - # Arithmetic - keyword >= yellow - - # Arithmetic - keyword \* yellow - - # Arithmetic - keyword \+ yellow - - # Sets - keyword {} yellow - - # Relations - keyword |> white - - # Logical - keyword ! cyan - - # Logical - keyword # cyan - - # Relations - keyword % white - - # Logical - keyword & cyan - - keyword ( yellow - keyword ) yellow - keyword , yellow - - # Arithmetic - keyword - yellow - - # Arithmetic - keyword / yellow - - # Sets - keyword : yellow - - keyword ; yellow - - # Arithmetic - keyword < yellow - - # Logical - keyword = cyan - - # Arithmetic - keyword > yellow - - keyword ? yellow - keyword [ yellow - keyword ] yellow - - # Sequences - keyword ^ magenta - - keyword { yellow - keyword } yellow - - keyword | yellow - - # Relations - keyword ~ white - - -context exclusive /\* \*/ green - spellcheck - -context exclusive // \n green - spellcheck - -context " " brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/c.syntax b/recipes/wip/files/mc/source/misc/syntax/c.syntax deleted file mode 100644 index 4c248379f7..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/c.syntax +++ /dev/null @@ -1,272 +0,0 @@ -# Syntax rules for the C (and partially C++) programming languages. - -# -# Rewritten and extended with defines by Morthimer McMare -# -# -# Tab size: 4. -# Feel free to improve the highlighting file. -# -# Date: -# Initial 2024.04.24; -# Updated 2024.06.26 (first public release. Classic Midnight Commander C-syntax theme set by default, added keywords from the C23 standard). -# - - -# For the default (blue) background. -# The colors almost match the original "c.syntax" file, slightly extending it: -define _punctuation yellow -define _punct_operator brightcyan -define _punct_semicolon brightmagenta -define _punct_bracket brightcyan -define _punct_sqbracket brightcyan -define _punct_field yellow -define _punct_comma brightcyan -define _punct_ternary brightcyan -define _punct_bitwise brightmagenta -define _label cyan -define _preproc brightred -define _preproc_str red -define _preproc_nl_esc red -define _preproc_indent brightmagenta -define _keyword yellow -define _datatype yellow -define _datatype_void yellow -define _datatype_mod yellow -define _datatype_scope yellow -define _const lightgray -define _num_integer lightgray -define _num_hex lightgray -define _num_oct lightgray -define _num_float lightgray -define _string green -define _string_specsymb brightgreen -define _string_escchar brightgreen -define _char brightgreen -define _comment brown -define _comment_word black brown -define _comment_exmark black yellow -define _comment_qnmark black brown - -# I think this highlighting is easier for the eyes for the black background themes. Can be also used with the blue background: -#define _punctuation yellow -#define _punct_operator brightmagenta -#define _punct_semicolon brightmagenta -#define _punct_bracket yellow -#define _punct_sqbracket brown -#define _punct_field yellow -#define _punct_comma yellow -#define _punct_ternary white -#define _punct_bitwise yellow -#define _label brightcyan -#define _preproc lightgray -#define _preproc_str white -#define _preproc_nl_esc white -#define _preproc_indent lightgray -#define _keyword brightcyan -#define _datatype brightcyan -#define _datatype_void brightcyan -#define _datatype_mod brightcyan -#define _datatype_scope brightblue -#define _const lightgray -#define _num_integer red -#define _num_hex red -#define _num_oct red -#define _num_float magenta -#define _string brightgreen -#define _string_specsymb brightcyan -#define _string_escchar brightcyan -#define _char brightgreen -#define _comment gray -#define _comment_word black gray -#define _comment_exmark black yellow -#define _comment_qnmark black brown - - -context default - keyword whole asm _keyword - keyword whole break _keyword - keyword whole case _keyword - keyword whole const _keyword - keyword whole continue _keyword - keyword whole do _keyword - keyword whole else _keyword - keyword whole enum _keyword - keyword whole for _keyword - keyword whole goto _keyword - keyword whole if _keyword - keyword whole inline _keyword - keyword whole restrict _keyword - keyword whole return _keyword - keyword whole sizeof _keyword - keyword whole struct _keyword - keyword whole switch _keyword - keyword whole typedef _keyword - keyword whole union _keyword - keyword whole volatile _keyword - keyword whole while _keyword - - # C11/C23 extensions: - keyword whole alignas _keyword - keyword whole alignof _keyword - keyword whole constexpr _keyword - keyword whole typeof _keyword - keyword whole typeof_unqual _keyword - keyword whole static_assert _keyword - keyword whole thread_local _keyword - keyword whole _Alignas _keyword - keyword whole _Alignof _keyword - keyword whole _Atomic _keyword - keyword whole _Bool _keyword - keyword whole _Complex _keyword - keyword whole _Decimal32 _keyword - keyword whole _Decimal64 _keyword - keyword whole _Decimal128 _keyword - keyword whole _Generic _keyword - keyword whole _Imaginary _keyword - keyword whole _Noreturn _keyword - keyword whole _Static_assert _keyword - keyword whole _Thread_local _keyword - - keyword whole auto _datatype_scope - keyword whole extern _datatype_scope - keyword whole register _datatype_scope - keyword whole static _datatype_scope - - keyword whole void _datatype_void - keyword whole int _datatype - keyword whole char _datatype - keyword whole float _datatype - keyword whole double _datatype - keyword whole wchar_t _datatype - keyword whole short _datatype_mod - keyword whole long _datatype_mod - keyword whole signed _datatype_mod - keyword whole unsigned _datatype_mod - keyword whole wchar_t _datatype - keyword whole ... _keyword - - keyword NULL _const - # Since C23: - keyword true _const - keyword false _const - keyword nullptr _const - - keyword linestart \{\s\t\}\[\s\t\]#*\n _preproc_indent - keyword whole linestart \[\s\t\]\{ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\}\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]: _label - keyword whole \[\s\t\]default _keyword - - # Comments: - keyword /\* _comment - keyword \*/ _comment - keyword // _comment - - # Characters: - keyword '\\\{"abtnvfr\}' _char - keyword '\\\{0123\}\{01234567\}\{01234567\}' _char - keyword '\\'' _char - keyword '\\\\' _char - keyword '\\0' _char - keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\}' _char - - # Punctuation characters, sorted by ASCII code: - keyword ! _punctuation - keyword % _punctuation - keyword && _punctuation - # Note: the '&' symbol uses both in the reference/address and in the bitwise operation. - keyword & _punct_bitwise - keyword ( _punct_bracket - keyword ) _punct_bracket - keyword \* _punctuation - keyword \+ _punctuation - keyword , _punct_comma - keyword . _punct_field - keyword -> _punct_field - keyword - _punctuation - keyword / _punctuation - keyword : _punct_ternary - keyword ; _punct_semicolon - keyword < _punctuation - keyword = _punctuation - keyword > _punctuation - keyword ? _punct_ternary - keyword [ _punct_sqbracket - keyword ] _punct_sqbracket - keyword ^ _punct_bitwise - keyword { _punct_operator - keyword || _punctuation - keyword | _punct_bitwise - keyword } _punct_operator - keyword ~ _punct_bitwise - - # Numbers: - wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_. - - keyword whole 0x\{0123456789abcdefABCDEF_\}\[0123456789abcdefABCDEF_\] _num_hex - keyword whole 0\{01234567_\}\[01234567_\] _num_oct - keyword whole 0 _num_integer - keyword whole 0\{lu\} _num_integer - keyword whole \{123456789_\}\[0123456789_\] _num_integer - keyword whole \{123456789_\}\[0123456789_\]\{lu\} _num_integer - # Float-point values: - keyword whole \[0123456789_\]\.\{0123456789_\}\[0123456789_\] _num_float - keyword whole \{0123456789_\}\[0123456789_\]\.\[0123456789_\] _num_float - keyword whole \{0123456789_\}\[0123456789_\]\{eE\}\{0123456789_\}\[0123456789_\] _num_float - keyword whole \{0123456789_\}\[0123456789_\]\{eE\}\{\-\+\}\{0123456789_\}\[0123456789_\] _num_float - keyword whole \{0123456789_\}\[0123456789_\]\.\{0123456789_\}\[0123456789_\]\{eE\}\{0123456789_\}\[0123456789_\] _num_float - keyword whole \{0123456789_\}\[0123456789_\]\.\{0123456789_\}\[0123456789_\]\{eE\}\{\-\+\}\{0123456789_\}\[0123456789_\] _num_float - # Explicit float (not double): - keyword whole \[0123456789_\]\.\{0123456789_\}\[0123456789_\]f _num_float - keyword whole \{0123456789_\}\[0123456789_\]\.\[0123456789_\]f _num_float - keyword whole \{0123456789_\}\[0123456789_\]\{eE\}\{0123456789_\}\[0123456789_\]f _num_float - keyword whole \{0123456789_\}\[0123456789_\]\{eE\}\{\-\+\}\{0123456789_\}\[0123456789_\]f _num_float - keyword whole \{0123456789_\}\[0123456789_\]\.\{0123456789_\}\[0123456789_\]\{eE\}\{0123456789_\}\[0123456789_\]f _num_float - keyword whole \{0123456789_\}\[0123456789_\]\.\{0123456789_\}\[0123456789_\]\{eE\}\{\-\+\}\{0123456789_\}\[0123456789_\]f _num_float - - -context exclusive /\* \*/ _comment - keyword whole BUG _comment_word - keyword whole FixMe _comment_word - keyword whole FIXME _comment_word - keyword whole Note _comment_word - keyword whole NOTE _comment_word - keyword whole ToDo _comment_word - keyword whole TODO _comment_word - keyword !!\[!\] _comment_exmark - keyword ??\[?\] _comment_qnmark - spellcheck - -context exclusive // \n _comment - keyword whole BUG: _comment_word - keyword whole FixMe: _comment_word - keyword whole FIXME: _comment_word - keyword whole Note: _comment_word - keyword whole NOTE: _comment_word - keyword whole ToDo: _comment_word - keyword whole TODO: _comment_word - keyword !!\[!\] _comment_exmark - keyword ??\[?\] _comment_qnmark - spellcheck - -context linestart # \n _preproc - keyword \\\n _preproc_nl_esc - keyword /\**\*/ _comment - keyword //*\n _comment - keyword "+" _preproc_str - keyword <+> _preproc_str - -context " " _string - spellcheck - keyword \\" _string_escchar - keyword %% _string_specsymb - keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} _string_specsymb - keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} _string_specsymb - keyword %\[hl\]n _string_specsymb - keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s _string_specsymb - keyword %[*] _string_specsymb - keyword %c _string_specsymb - keyword %p _string_specsymb - keyword \\\{0123\}\{01234567\}\{01234567\} _string_specsymb - keyword \\\\ _string_escchar - keyword \\' _string_escchar - keyword \\\{abtnvfr\} _string_escchar diff --git a/recipes/wip/files/mc/source/misc/syntax/cabal.syntax b/recipes/wip/files/mc/source/misc/syntax/cabal.syntax deleted file mode 100644 index a622401b3e..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/cabal.syntax +++ /dev/null @@ -1,275 +0,0 @@ -# Author : Mikhail S. Pobolovets -# Language : cabal -# -# haskell.syntax is taken as base -# - -caseinsensitive - -context default - -# cabal keywords - -# reserved keywords: - -#comments - keyword -- brown - -# unused symbols - keyword whole _\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] magenta - -# known fields - keyword whole \[\s\]author cyan - keyword whole \[\s\]bug-reports cyan - keyword whole \[\s\]buildable cyan - keyword whole \[\s\]build-depends cyan - keyword whole \[\s\]build-tools cyan - keyword whole \[\s\]build-type cyan - keyword whole \[\s\]cabal-version cyan - keyword whole \[\s\]category cyan - keyword whole \[\s\]cc-options cyan - keyword whole \[\s\]copyright cyan - keyword whole \[\s\]cpp-options cyan - keyword whole \[\s\]c-sources cyan - keyword whole \[\s\]data-dir cyan - keyword whole \[\s\]data-files cyan - keyword whole \[\s\]default-language cyan - keyword whole \[\s\]default cyan - keyword whole \[\s\]description cyan - keyword whole \[\s\]exposed-modules cyan - keyword whole \[\s\]exposed cyan - keyword whole \[\s\]extensions cyan - keyword whole \[\s\]extra-lib-dirs cyan - keyword whole \[\s\]extra-libraries cyan - keyword whole \[\s\]extra-source-files cyan - keyword whole \[\s\]extra-tmp-files cyan - keyword whole \[\s\]frameworks cyan - keyword whole \[\s\]ghc-options cyan - keyword whole \[\s\]ghc-prof-options cyan - keyword whole \[\s\]ghc-shared-options cyan - keyword whole \[\s\]homepage cyan - keyword whole \[\s\]hs-source-dirs cyan - keyword whole \[\s\]hugs-options cyan - keyword whole \[\s\]include-dirs cyan - keyword whole \[\s\]includes cyan - keyword whole \[\s\]install-includes cyan - keyword whole \[\s\]jhc-options cyan - keyword whole \[\s\]ld-options cyan - keyword whole \[\s\]license-file cyan - keyword whole \[\s\]license cyan - keyword whole \[\s\]location cyan - keyword whole \[\s\]main-is cyan - keyword whole \[\s\]maintainer cyan - keyword whole \[\s\]name cyan - keyword whole \[\s\]nhc98-options cyan - keyword whole \[\s\]other-extensions cyan - keyword whole \[\s\]other-modules cyan - keyword whole \[\s\]package-url cyan - keyword whole \[\s\]pkgconfig-depends cyan - keyword whole \[\s\]source-repository cyan - keyword whole \[\s\]stability cyan - keyword whole \[\s\]synopsis cyan - keyword whole \[\s\]tag cyan - keyword whole \[\s\]tested-with cyan - keyword whole \[\s\]type cyan - keyword whole \[\s\]version cyan - -# extended fields - keyword whole x\-\[\-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] cyan - -# version wildcard - keyword whole -any red - -# commandline keys - keyword whole -\[\-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz_0123456789\] brightred - -# known extensions - keyword whole Arrows brightmagenta - keyword whole BangPatterns brightmagenta - keyword whole ConstrainedClassMethods brightmagenta - keyword whole DeriveDataTypeable brightmagenta - keyword whole DisambiguateRecordFields brightmagenta - keyword whole EmptyDataDecls brightmagenta - keyword whole CPP brightmagenta - keyword whole ExistentialQuantification brightmagenta - keyword whole ExtendedDefaultRules brightmagenta - keyword whole ExtensibleRecords brightmagenta - keyword whole FlexibleContexts brightmagenta - keyword whole FlexibleInstances brightmagenta - keyword whole ForeignFunctionInterface brightmagenta - keyword whole FunctionalDependencies brightmagenta - keyword whole GADTs brightmagenta - keyword whole GeneralizedNewtypeDeriving brightmagenta - keyword whole Generics brightmagenta - keyword whole HereDocuments brightmagenta - keyword whole ImplicitParams brightmagenta - keyword whole ImpredicativeTypes brightmagenta - keyword whole IncoherentInstances brightmagenta - keyword whole KindSignatures brightmagenta - keyword whole LiberalTypeSynonyms brightmagenta - keyword whole MagicHash brightmagenta - keyword whole MultiParamTypeClasses brightmagenta - keyword whole NamedFieldPuns brightmagenta - keyword whole NewQualifiedOperators brightmagenta - keyword whole NoImplicitPrelude brightmagenta - keyword whole NoMonomorphismRestriction brightmagenta - keyword whole NoMonoPatBinds brightmagenta - keyword whole OverlappingInstances brightmagenta - keyword whole OverloadedStrings brightmagenta - keyword whole PackageImports brightmagenta - keyword whole ParallelListComp brightmagenta - keyword whole PatternGuards brightmagenta - keyword whole PatternSignatures brightmagenta - keyword whole PolymorphicComponents brightmagenta - keyword whole PostfixOperators brightmagenta - keyword whole QuasiQuotes brightmagenta - keyword whole Rank2Types brightmagenta - keyword whole RankNTypes brightmagenta - keyword whole RecordPuns brightmagenta - keyword whole RecordWildCards brightmagenta - keyword whole RecursiveDo brightmagenta - keyword whole RelaxedPolyRec brightmagenta - keyword whole RestrictedTypeSynonyms brightmagenta - keyword whole ScopedTypeVariables brightmagenta - keyword whole StandaloneDeriving brightmagenta - keyword whole TemplateHaskell brightmagenta - keyword whole TransformListComp brightmagenta - keyword whole TypeFamilies brightmagenta - keyword whole TypeOperators brightmagenta - keyword whole TypeSynonymInstances brightmagenta - keyword whole UnboxedTuples brightmagenta - keyword whole UndecidableInstances brightmagenta - keyword whole UnicodeSyntax brightmagenta - keyword whole UnliftedFFITypes brightmagenta - keyword whole ViewPatterns brightmagenta - -# links - keyword http://+ gray - keyword ftp://+ gray - keyword git://+ gray - keyword cvs://+ gray - keyword svn://+ gray - keyword darcs://+ gray -# special text inside of <>, i.e. emails - keyword \<+\> red - -# build types with '\s & \n' hack to remove too stupid highlighting - keyword whole Configure\s white - keyword whole Configure\n white - keyword whole Custom\s white - keyword whole Custom\n white - keyword whole Make\s white - keyword whole Make\n white - keyword whole Simple\n white - keyword whole Simple\s white - -# licenses - keyword whole AllRightsReserved white - keyword whole OtherLicense white - keyword whole PublicDomain white - keyword whole LGPL white - keyword whole GPL white - keyword whole LGPL2 white - keyword whole GPL2 white - keyword whole LGPL3 white - keyword whole GPL3 white - keyword whole BSD white - keyword whole BSD3 white - keyword whole BSD4 white - keyword whole MIT white - -# compilers - keyword whole GHC white - keyword whole NHC white - keyword whole JHC white - keyword whole HBC white - keyword whole Helium white - keyword whole Hugs white - -# special keywords - keyword whole True white - keyword whole False white - keyword whole if white - keyword whole else white - keyword whole os white - keyword whole impl white - keyword whole arch white - - keyword whole linestart \[\s\]executable yellow - keyword whole linestart \[\s\]library yellow - keyword whole linestart \[\s\]test-suite yellow - keyword whole flag yellow - keyword whole repo yellow - - -# unboxed (started from upcase) -# keyword whole \{ABCDEFGHIJKLMNOPQRSTUVWXYZ\}\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]# white -# types/modules -# keyword whole \{ABCDEFGHIJKLMNOPQRSTUVWXYZ\}\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] white - -#digits - keyword whole 0\{xX\}\{0123456789abcdefABCDEF\}\[0123456789abcdefABCDEF\] brightgreen - keyword whole \{0123456789\}\[0123456789\] brightgreen - keyword whole \[0123456789\]\.\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\.\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen - - -# some punctuation characters - keyword whole $ yellow - keyword whole ! white - keyword whole && white - keyword whole \* yellow - keyword whole \+ yellow - keyword whole / yellow - keyword whole ^ white - keyword whole || white - keyword whole | white - - keyword ~ white - keyword , brightcyan - keyword - yellow - keyword : brightcyan - keyword ; yellow - keyword = yellow - keyword < yellow - keyword > yellow - keyword { white - keyword } white - keyword [ brightcyan - keyword ] brightcyan - keyword ( brightcyan - keyword ) brightcyan - -# comments -context exclusive {- -} brown - spellcheck - -context exclusive // \n brown - spellcheck - -context exclusive \-\- \n brown - spellcheck - -context " " green - spellcheck - - keyword \\" brightgreen - keyword %% brightgreen - keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen - keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen - keyword %\[hl\]n brightgreen - keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen - keyword %[*] brightgreen - keyword %c brightgreen - keyword %p brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{abtnvfr\} brightgreen - -# infix binop -context exclusive ` ` white diff --git a/recipes/wip/files/mc/source/misc/syntax/changelog.syntax b/recipes/wip/files/mc/source/misc/syntax/changelog.syntax deleted file mode 100644 index 00a13f1a51..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/changelog.syntax +++ /dev/null @@ -1,34 +0,0 @@ -context default - spellcheck - -context linestart \t \n\n - keyword wholeright +() brightmagenta - keyword linestart \t\*\s*: brightcyan - keyword (*): cyan - keyword (*)\{\s\}[*]: cyan - -context linestart \s\s\s\s\s\s\s\s \n\n - keyword wholeright +() brightmagenta - keyword \*\s*: brightcyan - keyword (*): cyan - keyword (*)\{\s\}[*]: cyan - keyword whole \* brightcyan - -context linestart 19+-+\s \n yellow - keyword <+> brightred -context linestart 20+-+\s \n yellow - keyword <+> brightred -context linestart Mon\s \n yellow - keyword <+> brightred -context linestart Tue\s \n yellow - keyword <+> brightred -context linestart Wed\s \n yellow - keyword <+> brightred -context linestart Thu\s \n yellow - keyword <+> brightred -context linestart Fri\s \n yellow - keyword <+> brightred -context linestart Sat\s \n yellow - keyword <+> brightred -context linestart Sun\s \n yellow - keyword <+> brightred diff --git a/recipes/wip/files/mc/source/misc/syntax/cmake.syntax b/recipes/wip/files/mc/source/misc/syntax/cmake.syntax deleted file mode 100644 index 1bf8ae0d18..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/cmake.syntax +++ /dev/null @@ -1,782 +0,0 @@ -# CMake syntax highlighting -# -# Author: Henrik Pauli - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-/\ - -caseinsensitive -context default - - keyword ( brightcyan - keyword ) brightcyan - -# cmake --help-command-list - keyword whole add_compile_options brightred - keyword whole add_custom_command brightred - keyword whole add_custom_target brightred - keyword whole add_definitions brightred - keyword whole add_dependencies brightred - keyword whole add_executable brightred - keyword whole add_library brightred - keyword whole add_subdirectory brightred - keyword whole add_test brightred - keyword whole aux_source_directory brightred - keyword whole break brightred - keyword whole build_command brightred - keyword whole cmake_host_system_information brightred - keyword whole cmake_minimum_required brightred - keyword whole cmake_policy brightred - keyword whole configure_file brightred - keyword whole create_test_sourcelist brightred - keyword whole define_property brightred - keyword whole else brightred - keyword whole elseif brightred - keyword whole enable_language brightred - keyword whole enable_testing brightred - keyword whole endforeach brightred - keyword whole endfunction brightred - keyword whole endif brightred - keyword whole endmacro brightred - keyword whole endwhile brightred - keyword whole execute_process brightred - keyword whole export brightred - keyword whole file brightred - keyword whole find_file brightred - keyword whole find_library brightred - keyword whole find_package brightred - keyword whole find_path brightred - keyword whole find_program brightred - keyword whole fltk_wrap_ui brightred - keyword whole foreach brightred - keyword whole function brightred - keyword whole get_cmake_property brightred - keyword whole get_directory_property brightred - keyword whole get_filename_component brightred - keyword whole get_property brightred - keyword whole get_source_file_property brightred - keyword whole get_target_property brightred - keyword whole get_test_property brightred - keyword whole if brightred - keyword whole include brightred - keyword whole include_directories brightred - keyword whole include_external_msproject brightred - keyword whole include_regular_expression brightred - keyword whole install brightred - keyword whole link_directories brightred - keyword whole list brightred - keyword whole load_cache brightred - keyword whole load_command brightred - keyword whole macro brightred - keyword whole mark_as_advanced brightred - keyword whole math brightred - keyword whole message brightred - keyword whole option brightred - keyword whole project brightred - keyword whole qt_wrap_cpp brightred - keyword whole qt_wrap_ui brightred - keyword whole remove_definitions brightred - keyword whole return brightred - keyword whole separate_arguments brightred - keyword whole set brightred - keyword whole set_directory_properties brightred - keyword whole set_property brightred - keyword whole set_source_files_properties brightred - keyword whole set_target_properties brightred - keyword whole set_tests_properties brightred - keyword whole site_name brightred - keyword whole source_group brightred - keyword whole string brightred - keyword whole target_compile_definitions brightred - keyword whole target_compile_options brightred - keyword whole target_include_directories brightred - keyword whole target_link_libraries brightred - keyword whole try_compile brightred - keyword whole try_run brightred - keyword whole unset brightred - keyword whole variable_watch brightred - keyword whole while brightred - -# compatibility commands - keyword whole build_name red - keyword whole exec_program red - keyword whole export_library_dependencies red - keyword whole install_files red - keyword whole install_programs red - keyword whole install_targets red - keyword whole link_libraries red - keyword whole make_directory red - keyword whole output_required_files red - keyword whole remove red - keyword whole subdir_depends red - keyword whole subdirs red - keyword whole use_mangled_mesa red - keyword whole utility_source red - keyword whole variable_requires red - keyword whole write_file red - -# cmake --help-property-list - keyword whole ALLOW_DUPLICATE_CUSTOM_TARGETS white - keyword whole AUTOMOC_TARGETS_FOLDER white - keyword whole DEBUG_CONFIGURATIONS white - keyword whole DISABLED_FEATURES white - keyword whole ENABLED_FEATURES white - keyword whole ENABLED_LANGUAGES white - keyword whole FIND_LIBRARY_USE_LIB64_PATHS white - keyword whole FIND_LIBRARY_USE_OPENBSD_VERSIONING white - keyword whole GLOBAL_DEPENDS_DEBUG_MODE white - keyword whole GLOBAL_DEPENDS_NO_CYCLES white - keyword whole IN_TRY_COMPILE white - keyword whole PACKAGES_FOUND white - keyword whole PACKAGES_NOT_FOUND white - keyword whole PREDEFINED_TARGETS_FOLDER white - keyword whole REPORT_UNDEFINED_PROPERTIES white - keyword whole RULE_LAUNCH_COMPILE white - keyword whole RULE_LAUNCH_CUSTOM white - keyword whole RULE_LAUNCH_LINK white - keyword whole RULE_MESSAGES white - keyword whole TARGET_ARCHIVES_MAY_BE_SHARED_LIBS white - keyword whole TARGET_SUPPORTS_SHARED_LIBS white - keyword whole USE_FOLDERS white - keyword whole __CMAKE_DELETE_CACHE_CHANGE_VARS_ white - keyword whole ADDITIONAL_MAKE_CLEAN_FILES white - keyword whole CACHE_VARIABLES white - keyword whole CLEAN_NO_CUSTOM white - keyword whole COMPILE_DEFINITIONS white - keyword whole COMPILE_DEFINITIONS_+ white - keyword whole COMPILE_OPTIONS white - keyword whole DEFINITIONS white - keyword whole EXCLUDE_FROM_ALL white - keyword whole IMPLICIT_DEPENDS_INCLUDE_TRANSFORM white - keyword whole INCLUDE_DIRECTORIES white - keyword whole INCLUDE_REGULAR_EXPRESSION white - keyword whole INTERPROCEDURAL_OPTIMIZATION white - keyword whole INTERPROCEDURAL_OPTIMIZATION_+ white - keyword whole LINK_DIRECTORIES white - keyword whole LISTFILE_STACK white - keyword whole MACROS white - keyword whole PARENT_DIRECTORY white - keyword whole RULE_LAUNCH_COMPILE white - keyword whole RULE_LAUNCH_CUSTOM white - keyword whole RULE_LAUNCH_LINK white - keyword whole TEST_INCLUDE_FILE white - keyword whole VARIABLES white - keyword whole VS_GLOBAL_SECTION_POST_+ white - keyword whole VS_GLOBAL_SECTION_PRE_+ white - keyword whole +_OUTPUT_NAME white - keyword whole +_POSTFIX white - keyword whole +_VISIBILITY_PRESET white - keyword whole ALIASED_TARGET white - keyword whole ARCHIVE_OUTPUT_DIRECTORY white - keyword whole ARCHIVE_OUTPUT_DIRECTORY_+ white - keyword whole ARCHIVE_OUTPUT_NAME white - keyword whole ARCHIVE_OUTPUT_NAME_+ white - keyword whole AUTOMOC white - keyword whole AUTOMOC_MOC_OPTIONS white - keyword whole BUILD_WITH_INSTALL_RPATH white - keyword whole BUNDLE white - keyword whole BUNDLE_EXTENSION white - keyword whole COMPATIBLE_INTERFACE_BOOL white - keyword whole COMPATIBLE_INTERFACE_STRING white - keyword whole COMPILE_DEFINITIONS white - keyword whole COMPILE_DEFINITIONS_+ white - keyword whole COMPILE_FLAGS white - keyword whole COMPILE_OPTIONS white - keyword whole DEBUG_POSTFIX white - keyword whole DEFINE_SYMBOL white - keyword whole ENABLE_EXPORTS white - keyword whole EXCLUDE_FROM_ALL white - keyword whole EXCLUDE_FROM_DEFAULT_BUILD white - keyword whole EXCLUDE_FROM_DEFAULT_BUILD_+ white - keyword whole EXPORT_NAME white - keyword whole EchoString white - keyword whole FOLDER white - keyword whole FRAMEWORK white - keyword whole Fortran_FORMAT white - keyword whole Fortran_MODULE_DIRECTORY white - keyword whole GENERATOR_FILE_NAME white - keyword whole GNUtoMS white - keyword whole HAS_CXX white - keyword whole IMPLICIT_DEPENDS_INCLUDE_TRANSFORM white - keyword whole IMPORTED white - keyword whole IMPORTED_CONFIGURATIONS white - keyword whole IMPORTED_IMPLIB white - keyword whole IMPORTED_IMPLIB_+ white - keyword whole IMPORTED_LINK_DEPENDENT_LIBRARIES white - keyword whole IMPORTED_LINK_DEPENDENT_LIBRARIES_+ white - keyword whole IMPORTED_LINK_INTERFACE_LANGUAGES white - keyword whole IMPORTED_LINK_INTERFACE_LANGUAGES_+ white - keyword whole IMPORTED_LINK_INTERFACE_LIBRARIES white - keyword whole IMPORTED_LINK_INTERFACE_LIBRARIES_+ white - keyword whole IMPORTED_LINK_INTERFACE_MULTIPLICITY white - keyword whole IMPORTED_LINK_INTERFACE_MULTIPLICITY_+ white - keyword whole IMPORTED_LOCATION white - keyword whole IMPORTED_LOCATION_+ white - keyword whole IMPORTED_NO_SONAME white - keyword whole IMPORTED_NO_SONAME_+ white - keyword whole IMPORTED_SONAME white - keyword whole IMPORTED_SONAME_+ white - keyword whole IMPORT_PREFIX white - keyword whole IMPORT_SUFFIX white - keyword whole INCLUDE_DIRECTORIES white - keyword whole INSTALL_NAME_DIR white - keyword whole INSTALL_RPATH white - keyword whole INSTALL_RPATH_USE_LINK_PATH white - keyword whole INTERFACE_COMPILE_DEFINITIONS white - keyword whole INTERFACE_COMPILE_OPTIONS white - keyword whole INTERFACE_INCLUDE_DIRECTORIES white - keyword whole INTERFACE_LINK_LIBRARIES white - keyword whole INTERFACE_POSITION_INDEPENDENT_CODE white - keyword whole INTERFACE_SYSTEM_INCLUDE_DIRECTORIES white - keyword whole INTERPROCEDURAL_OPTIMIZATION white - keyword whole INTERPROCEDURAL_OPTIMIZATION_+ white - keyword whole LABELS white - keyword whole LIBRARY_OUTPUT_DIRECTORY white - keyword whole LIBRARY_OUTPUT_DIRECTORY_+ white - keyword whole LIBRARY_OUTPUT_NAME white - keyword whole LIBRARY_OUTPUT_NAME_+ white - keyword whole LINKER_LANGUAGE white - keyword whole LINK_DEPENDS white - keyword whole LINK_DEPENDS_NO_SHARED white - keyword whole LINK_FLAGS white - keyword whole LINK_FLAGS_+ white - keyword whole LINK_INTERFACE_LIBRARIES white - keyword whole LINK_INTERFACE_LIBRARIES_+ white - keyword whole LINK_INTERFACE_MULTIPLICITY white - keyword whole LINK_INTERFACE_MULTIPLICITY_+ white - keyword whole LINK_LIBRARIES white - keyword whole LINK_SEARCH_END_STATIC white - keyword whole LINK_SEARCH_START_STATIC white - keyword whole LOCATION white - keyword whole LOCATION_+ white - keyword whole MACOSX_BUNDLE white - keyword whole MACOSX_BUNDLE_INFO_PLIST white - keyword whole MACOSX_FRAMEWORK_INFO_PLIST white - keyword whole MACOSX_RPATH white - keyword whole MAP_IMPORTED_CONFIG_+ white - keyword whole NAME white - keyword whole NO_SONAME white - keyword whole OSX_ARCHITECTURES white - keyword whole OSX_ARCHITECTURES_+ white - keyword whole OUTPUT_NAME white - keyword whole OUTPUT_NAME_+ white - keyword whole PDB_NAME white - keyword whole PDB_NAME_+ white - keyword whole PDB_OUTPUT_DIRECTORY white - keyword whole PDB_OUTPUT_DIRECTORY_+ white - keyword whole POSITION_INDEPENDENT_CODE white - keyword whole POST_INSTALL_SCRIPT white - keyword whole PREFIX white - keyword whole PRE_INSTALL_SCRIPT white - keyword whole PRIVATE_HEADER white - keyword whole PROJECT_LABEL white - keyword whole PUBLIC_HEADER white - keyword whole RESOURCE white - keyword whole RULE_LAUNCH_COMPILE white - keyword whole RULE_LAUNCH_CUSTOM white - keyword whole RULE_LAUNCH_LINK white - keyword whole RUNTIME_OUTPUT_DIRECTORY white - keyword whole RUNTIME_OUTPUT_DIRECTORY_+ white - keyword whole RUNTIME_OUTPUT_NAME white - keyword whole RUNTIME_OUTPUT_NAME_+ white - keyword whole SKIP_BUILD_RPATH white - keyword whole SOURCES white - keyword whole SOVERSION white - keyword whole STATIC_LIBRARY_FLAGS white - keyword whole STATIC_LIBRARY_FLAGS_+ white - keyword whole SUFFIX white - keyword whole TYPE white - keyword whole VERSION white - keyword whole VISIBILITY_INLINES_HIDDEN white - keyword whole VS_DOTNET_REFERENCES white - keyword whole VS_DOTNET_TARGET_FRAMEWORK_VERSION white - keyword whole VS_GLOBAL_+ white - keyword whole VS_GLOBAL_KEYWORD white - keyword whole VS_GLOBAL_PROJECT_TYPES white - keyword whole VS_GLOBAL_ROOTNAMESPACE white - keyword whole VS_KEYWORD white - keyword whole VS_SCC_AUXPATH white - keyword whole VS_SCC_LOCALPATH white - keyword whole VS_SCC_PROJECTNAME white - keyword whole VS_SCC_PROVIDER white - keyword whole VS_WINRT_EXTENSIONS white - keyword whole VS_WINRT_REFERENCES white - keyword whole WIN32_EXECUTABLE white - keyword whole XCODE_ATTRIBUTE_+ white - keyword whole ATTACHED_FILES white - keyword whole ATTACHED_FILES_ON_FAIL white - keyword whole COST white - keyword whole DEPENDS white - keyword whole ENVIRONMENT white - keyword whole FAIL_REGULAR_EXPRESSION white - keyword whole LABELS white - keyword whole MEASUREMENT white - keyword whole PASS_REGULAR_EXPRESSION white - keyword whole PROCESSORS white - keyword whole REQUIRED_FILES white - keyword whole RESOURCE_LOCK white - keyword whole RUN_SERIAL white - keyword whole TIMEOUT white - keyword whole WILL_FAIL white - keyword whole WORKING_DIRECTORY white - keyword whole ABSTRACT white - keyword whole COMPILE_DEFINITIONS white - keyword whole COMPILE_DEFINITIONS_+ white - keyword whole COMPILE_FLAGS white - keyword whole EXTERNAL_OBJECT white - keyword whole Fortran_FORMAT white - keyword whole GENERATED white - keyword whole HEADER_FILE_ONLY white - keyword whole KEEP_EXTENSION white - keyword whole LABELS white - keyword whole LANGUAGE white - keyword whole LOCATION white - keyword whole MACOSX_PACKAGE_LOCATION white - keyword whole OBJECT_DEPENDS white - keyword whole OBJECT_OUTPUTS white - keyword whole SYMBOLIC white - keyword whole WRAP_EXCLUDE white - keyword whole ADVANCED white - keyword whole HELPSTRING white - keyword whole MODIFIED white - keyword whole STRINGS white - keyword whole TYPE white - keyword whole VALUE white - -# cmake --help-module-list - keyword whole AddFileDependencies brightmagenta - keyword whole BundleUtilities brightmagenta - keyword whole CMakeAddFortranSubdirectory brightmagenta - keyword whole CMakeBackwardCompatibilityCXX brightmagenta - keyword whole CMakeDependentOption brightmagenta - keyword whole CMakeDetermineVSServicePack brightmagenta - keyword whole CMakeExpandImportedTargets brightmagenta - keyword whole CMakeFindFrameworks brightmagenta - keyword whole CMakeFindPackageMode brightmagenta - keyword whole CMakeForceCompiler brightmagenta - keyword whole CMakeGraphVizOptions brightmagenta - keyword whole CMakePackageConfigHelpers brightmagenta - keyword whole CMakeParseArguments brightmagenta - keyword whole CMakePrintHelpers brightmagenta - keyword whole CMakePrintSystemInformation brightmagenta - keyword whole CMakePushCheckState brightmagenta - keyword whole CMakeVerifyManifest brightmagenta - keyword whole CPack brightmagenta - keyword whole CPackBundle brightmagenta - keyword whole CPackComponent brightmagenta - keyword whole CPackCygwin brightmagenta - keyword whole CPackDMG brightmagenta - keyword whole CPackDeb brightmagenta - keyword whole CPackNSIS brightmagenta - keyword whole CPackPackageMaker brightmagenta - keyword whole CPackRPM brightmagenta - keyword whole CPackWIX brightmagenta - keyword whole CTest brightmagenta - keyword whole CTestScriptMode brightmagenta - keyword whole CTestUseLaunchers brightmagenta - keyword whole CheckCCompilerFlag brightmagenta - keyword whole CheckCSourceCompiles brightmagenta - keyword whole CheckCSourceRuns brightmagenta - keyword whole CheckCXXCompilerFlag brightmagenta - keyword whole CheckCXXSourceCompiles brightmagenta - keyword whole CheckCXXSourceRuns brightmagenta - keyword whole CheckCXXSymbolExists brightmagenta - keyword whole CheckFortranFunctionExists brightmagenta - keyword whole CheckFunctionExists brightmagenta - keyword whole CheckIncludeFile brightmagenta - keyword whole CheckIncludeFileCXX brightmagenta - keyword whole CheckIncludeFiles brightmagenta - keyword whole CheckLanguage brightmagenta - keyword whole CheckLibraryExists brightmagenta - keyword whole CheckPrototypeDefinition brightmagenta - keyword whole CheckStructHasMember brightmagenta - keyword whole CheckSymbolExists brightmagenta - keyword whole CheckTypeSize brightmagenta - keyword whole CheckVariableExists brightmagenta - keyword whole Dart brightmagenta - keyword whole DeployQt4 brightmagenta - keyword whole Documentation brightmagenta - keyword whole ExternalData brightmagenta - keyword whole ExternalProject brightmagenta - keyword whole FLTKConfig brightmagenta - keyword whole FeatureSummary brightmagenta - keyword whole FindALSA brightmagenta - keyword whole FindASPELL brightmagenta - keyword whole FindAVIFile brightmagenta - keyword whole FindArmadillo brightmagenta - keyword whole FindBISON brightmagenta - keyword whole FindBLAS brightmagenta - keyword whole FindBZip2 brightmagenta - keyword whole FindBoost brightmagenta - keyword whole FindBullet brightmagenta - keyword whole FindCABLE brightmagenta - keyword whole FindCUDA brightmagenta - keyword whole FindCURL brightmagenta - keyword whole FindCVS brightmagenta - keyword whole FindCoin3D brightmagenta - keyword whole FindCups brightmagenta - keyword whole FindCurses brightmagenta - keyword whole FindCxxTest brightmagenta - keyword whole FindCygwin brightmagenta - keyword whole FindDCMTK brightmagenta - keyword whole FindDart brightmagenta - keyword whole FindDevIL brightmagenta - keyword whole FindDoxygen brightmagenta - keyword whole FindEXPAT brightmagenta - keyword whole FindFLEX brightmagenta - keyword whole FindFLTK brightmagenta - keyword whole FindFLTK2 brightmagenta - keyword whole FindFreetype brightmagenta - keyword whole FindGCCXML brightmagenta - keyword whole FindGDAL brightmagenta - keyword whole FindGIF brightmagenta - keyword whole FindGLEW brightmagenta - keyword whole FindGLUT brightmagenta - keyword whole FindGTK brightmagenta - keyword whole FindGTK2 brightmagenta - keyword whole FindGTest brightmagenta - keyword whole FindGettext brightmagenta - keyword whole FindGit brightmagenta - keyword whole FindGnuTLS brightmagenta - keyword whole FindGnuplot brightmagenta - keyword whole FindHDF5 brightmagenta - keyword whole FindHSPELL brightmagenta - keyword whole FindHTMLHelp brightmagenta - keyword whole FindHg brightmagenta - keyword whole FindITK brightmagenta - keyword whole FindIcotool brightmagenta - keyword whole FindImageMagick brightmagenta - keyword whole FindJNI brightmagenta - keyword whole FindJPEG brightmagenta - keyword whole FindJasper brightmagenta - keyword whole FindJava brightmagenta - keyword whole FindKDE3 brightmagenta - keyword whole FindKDE4 brightmagenta - keyword whole FindLAPACK brightmagenta - keyword whole FindLATEX brightmagenta - keyword whole FindLibArchive brightmagenta - keyword whole FindLibLZMA brightmagenta - keyword whole FindLibXml2 brightmagenta - keyword whole FindLibXslt brightmagenta - keyword whole FindLua50 brightmagenta - keyword whole FindLua51 brightmagenta - keyword whole FindMFC brightmagenta - keyword whole FindMPEG brightmagenta - keyword whole FindMPEG2 brightmagenta - keyword whole FindMPI brightmagenta - keyword whole FindMatlab brightmagenta - keyword whole FindMotif brightmagenta - keyword whole FindOpenAL brightmagenta - keyword whole FindOpenGL brightmagenta - keyword whole FindOpenMP brightmagenta - keyword whole FindOpenSSL brightmagenta - keyword whole FindOpenSceneGraph brightmagenta - keyword whole FindOpenThreads brightmagenta - keyword whole FindPHP4 brightmagenta - keyword whole FindPNG brightmagenta - keyword whole FindPackageHandleStandardArgs brightmagenta - keyword whole FindPackageMessage brightmagenta - keyword whole FindPerl brightmagenta - keyword whole FindPerlLibs brightmagenta - keyword whole FindPhysFS brightmagenta - keyword whole FindPike brightmagenta - keyword whole FindPkgConfig brightmagenta - keyword whole FindPostgreSQL brightmagenta - keyword whole FindProducer brightmagenta - keyword whole FindProtobuf brightmagenta - keyword whole FindPythonInterp brightmagenta - keyword whole FindPythonLibs brightmagenta - keyword whole FindQt brightmagenta - keyword whole FindQt3 brightmagenta - keyword whole FindQt4 brightmagenta - keyword whole FindQuickTime brightmagenta - keyword whole FindRTI brightmagenta - keyword whole FindRuby brightmagenta - keyword whole FindSDL brightmagenta - keyword whole FindSDL_image brightmagenta - keyword whole FindSDL_mixer brightmagenta - keyword whole FindSDL_net brightmagenta - keyword whole FindSDL_sound brightmagenta - keyword whole FindSDL_ttf brightmagenta - keyword whole FindSWIG brightmagenta - keyword whole FindSelfPackers brightmagenta - keyword whole FindSquish brightmagenta - keyword whole FindSubversion brightmagenta - keyword whole FindTCL brightmagenta - keyword whole FindTIFF brightmagenta - keyword whole FindTclStub brightmagenta - keyword whole FindTclsh brightmagenta - keyword whole FindThreads brightmagenta - keyword whole FindUnixCommands brightmagenta - keyword whole FindVTK brightmagenta - keyword whole FindWget brightmagenta - keyword whole FindWish brightmagenta - keyword whole FindX11 brightmagenta - keyword whole FindXMLRPC brightmagenta - keyword whole FindZLIB brightmagenta - keyword whole Findlibproxy brightmagenta - keyword whole Findosg brightmagenta - keyword whole FindosgAnimation brightmagenta - keyword whole FindosgDB brightmagenta - keyword whole FindosgFX brightmagenta - keyword whole FindosgGA brightmagenta - keyword whole FindosgIntrospection brightmagenta - keyword whole FindosgManipulator brightmagenta - keyword whole FindosgParticle brightmagenta - keyword whole FindosgPresentation brightmagenta - keyword whole FindosgProducer brightmagenta - keyword whole FindosgQt brightmagenta - keyword whole FindosgShadow brightmagenta - keyword whole FindosgSim brightmagenta - keyword whole FindosgTerrain brightmagenta - keyword whole FindosgText brightmagenta - keyword whole FindosgUtil brightmagenta - keyword whole FindosgViewer brightmagenta - keyword whole FindosgVolume brightmagenta - keyword whole FindosgWidget brightmagenta - keyword whole Findosg_functions brightmagenta - keyword whole FindwxWidgets brightmagenta - keyword whole FindwxWindows brightmagenta - keyword whole FortranCInterface brightmagenta - keyword whole GNUInstallDirs brightmagenta - keyword whole GenerateExportHeader brightmagenta - keyword whole GetPrerequisites brightmagenta - keyword whole InstallRequiredSystemLibraries brightmagenta - keyword whole MacroAddFileDependencies brightmagenta - keyword whole ProcessorCount brightmagenta - keyword whole Qt4ConfigDependentSettings brightmagenta - keyword whole Qt4Macros brightmagenta - keyword whole SelectLibraryConfigurations brightmagenta - keyword whole SquishTestScript brightmagenta - keyword whole TestBigEndian brightmagenta - keyword whole TestCXXAcceptsFlag brightmagenta - keyword whole TestForANSIForScope brightmagenta - keyword whole TestForANSIStreamHeaders brightmagenta - keyword whole TestForSSTREAM brightmagenta - keyword whole TestForSTDNamespace brightmagenta - keyword whole UseEcos brightmagenta - keyword whole UseJava brightmagenta - keyword whole UseJavaClassFilelist brightmagenta - keyword whole UseJavaSymlinks brightmagenta - keyword whole UsePkgConfig brightmagenta - keyword whole UseQt4 brightmagenta - keyword whole UseSWIG brightmagenta - keyword whole Use_wxWindows brightmagenta - keyword whole UsewxWidgets brightmagenta - keyword whole WriteBasicConfigVersionFile brightmagenta - -# cmake --help-variable-list - keyword whole CMAKE_AR brightgreen - keyword whole CMAKE_ARGC brightgreen - keyword whole CMAKE_ARGV0 brightgreen - keyword whole CMAKE_BINARY_DIR brightgreen - keyword whole CMAKE_BUILD_TOOL brightgreen - keyword whole CMAKE_CACHEFILE_DIR brightgreen - keyword whole CMAKE_CACHE_MAJOR_VERSION brightgreen - keyword whole CMAKE_CACHE_MINOR_VERSION brightgreen - keyword whole CMAKE_CACHE_PATCH_VERSION brightgreen - keyword whole CMAKE_CFG_INTDIR brightgreen - keyword whole CMAKE_COMMAND brightgreen - keyword whole CMAKE_CROSSCOMPILING brightgreen - keyword whole CMAKE_CTEST_COMMAND brightgreen - keyword whole CMAKE_CURRENT_BINARY_DIR brightgreen - keyword whole CMAKE_CURRENT_LIST_DIR brightgreen - keyword whole CMAKE_CURRENT_LIST_FILE brightgreen - keyword whole CMAKE_CURRENT_LIST_LINE brightgreen - keyword whole CMAKE_CURRENT_SOURCE_DIR brightgreen - keyword whole CMAKE_DL_LIBS brightgreen - keyword whole CMAKE_EDIT_COMMAND brightgreen - keyword whole CMAKE_EXECUTABLE_SUFFIX brightgreen - keyword whole CMAKE_EXTRA_GENERATOR brightgreen - keyword whole CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES brightgreen - keyword whole CMAKE_GENERATOR brightgreen - keyword whole CMAKE_GENERATOR_TOOLSET brightgreen - keyword whole CMAKE_HOME_DIRECTORY brightgreen - keyword whole CMAKE_IMPORT_LIBRARY_PREFIX brightgreen - keyword whole CMAKE_IMPORT_LIBRARY_SUFFIX brightgreen - keyword whole CMAKE_LINK_LIBRARY_SUFFIX brightgreen - keyword whole CMAKE_MAJOR_VERSION brightgreen - keyword whole CMAKE_MAKE_PROGRAM brightgreen - keyword whole CMAKE_MINIMUM_REQUIRED_VERSION brightgreen - keyword whole CMAKE_MINOR_VERSION brightgreen - keyword whole CMAKE_PARENT_LIST_FILE brightgreen - keyword whole CMAKE_PATCH_VERSION brightgreen - keyword whole CMAKE_PROJECT_NAME brightgreen - keyword whole CMAKE_RANLIB brightgreen - keyword whole CMAKE_ROOT brightgreen - keyword whole CMAKE_SCRIPT_MODE_FILE brightgreen - keyword whole CMAKE_SHARED_LIBRARY_PREFIX brightgreen - keyword whole CMAKE_SHARED_LIBRARY_SUFFIX brightgreen - keyword whole CMAKE_SHARED_MODULE_PREFIX brightgreen - keyword whole CMAKE_SHARED_MODULE_SUFFIX brightgreen - keyword whole CMAKE_SIZEOF_VOID_P brightgreen - keyword whole CMAKE_SKIP_RPATH brightgreen - keyword whole CMAKE_SOURCE_DIR brightgreen - keyword whole CMAKE_STANDARD_LIBRARIES brightgreen - keyword whole CMAKE_STATIC_LIBRARY_PREFIX brightgreen - keyword whole CMAKE_STATIC_LIBRARY_SUFFIX brightgreen - keyword whole CMAKE_TWEAK_VERSION brightgreen - keyword whole CMAKE_VERBOSE_MAKEFILE brightgreen - keyword whole CMAKE_VERSION brightgreen - keyword whole CMAKE_VS_PLATFORM_TOOLSET brightgreen - keyword whole CMAKE_XCODE_PLATFORM_TOOLSET brightgreen - keyword whole PROJECT_BINARY_DIR brightgreen - keyword whole PROJECT_NAME brightgreen - keyword whole PROJECT_SOURCE_DIR brightgreen - keyword whole +_BINARY_DIR brightgreen - keyword whole +_SOURCE_DIR brightgreen - keyword whole BUILD_SHARED_LIBS brightgreen - keyword whole CMAKE_ABSOLUTE_DESTINATION_FILES brightgreen - keyword whole CMAKE_AUTOMOC_RELAXED_MODE brightgreen - keyword whole CMAKE_BACKWARDS_COMPATIBILITY brightgreen - keyword whole CMAKE_BUILD_TYPE brightgreen - keyword whole CMAKE_COLOR_MAKEFILE brightgreen - keyword whole CMAKE_CONFIGURATION_TYPES brightgreen - keyword whole CMAKE_DEBUG_TARGET_PROPERTIES brightgreen - keyword whole CMAKE_DISABLE_FIND_PACKAGE_+ brightgreen - keyword whole CMAKE_ERROR_DEPRECATED brightgreen - keyword whole CMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION brightgreen - keyword whole CMAKE_FIND_LIBRARY_PREFIXES brightgreen - keyword whole CMAKE_FIND_LIBRARY_SUFFIXES brightgreen - keyword whole CMAKE_FIND_PACKAGE_WARN_NO_MODULE brightgreen - keyword whole CMAKE_IGNORE_PATH brightgreen - keyword whole CMAKE_INCLUDE_PATH brightgreen - keyword whole CMAKE_INSTALL_DEFAULT_COMPONENT_NAME brightgreen - keyword whole CMAKE_INSTALL_PREFIX brightgreen - keyword whole CMAKE_LIBRARY_PATH brightgreen - keyword whole CMAKE_MFC_FLAG brightgreen - keyword whole CMAKE_MODULE_PATH brightgreen - keyword whole CMAKE_NOT_USING_CONFIG_FLAGS brightgreen - keyword whole CMAKE_POLICY_DEFAULT_CMP+ brightgreen - keyword whole CMAKE_PREFIX_PATH brightgreen - keyword whole CMAKE_PROGRAM_PATH brightgreen - keyword whole CMAKE_SKIP_INSTALL_ALL_DEPENDENCY brightgreen - keyword whole CMAKE_SYSTEM_IGNORE_PATH brightgreen - keyword whole CMAKE_SYSTEM_INCLUDE_PATH brightgreen - keyword whole CMAKE_SYSTEM_LIBRARY_PATH brightgreen - keyword whole CMAKE_SYSTEM_PREFIX_PATH brightgreen - keyword whole CMAKE_SYSTEM_PROGRAM_PATH brightgreen - keyword whole CMAKE_USER_MAKE_RULES_OVERRIDE brightgreen - keyword whole CMAKE_WARN_DEPRECATED brightgreen - keyword whole CMAKE_WARN_ON_ABSOLUTE_INSTALL_DESTINATION brightgreen - keyword whole APPLE brightgreen - keyword whole BORLAND brightgreen - keyword whole CMAKE_CL_64 brightgreen - keyword whole CMAKE_COMPILER_2005 brightgreen - keyword whole CMAKE_HOST_APPLE brightgreen - keyword whole CMAKE_HOST_SYSTEM brightgreen - keyword whole CMAKE_HOST_SYSTEM_NAME brightgreen - keyword whole CMAKE_HOST_SYSTEM_PROCESSOR brightgreen - keyword whole CMAKE_HOST_SYSTEM_VERSION brightgreen - keyword whole CMAKE_HOST_UNIX brightgreen - keyword whole CMAKE_HOST_WIN32 brightgreen - keyword whole CMAKE_LIBRARY_ARCHITECTURE brightgreen - keyword whole CMAKE_LIBRARY_ARCHITECTURE_REGEX brightgreen - keyword whole CMAKE_OBJECT_PATH_MAX brightgreen - keyword whole CMAKE_SYSTEM brightgreen - keyword whole CMAKE_SYSTEM_NAME brightgreen - keyword whole CMAKE_SYSTEM_PROCESSOR brightgreen - keyword whole CMAKE_SYSTEM_VERSION brightgreen - keyword whole CYGWIN brightgreen - keyword whole ENV brightgreen - keyword whole MSVC brightgreen - keyword whole MSVC10 brightgreen - keyword whole MSVC11 brightgreen - keyword whole MSVC12 brightgreen - keyword whole MSVC60 brightgreen - keyword whole MSVC70 brightgreen - keyword whole MSVC71 brightgreen - keyword whole MSVC80 brightgreen - keyword whole MSVC90 brightgreen - keyword whole MSVC_IDE brightgreen - keyword whole MSVC_VERSION brightgreen - keyword whole UNIX brightgreen - keyword whole WIN32 brightgreen - keyword whole XCODE_VERSION brightgreen - keyword whole CMAKE_+_POSTFIX brightgreen - keyword whole CMAKE_+_VISIBILITY_PRESET brightgreen - keyword whole CMAKE_ARCHIVE_OUTPUT_DIRECTORY brightgreen - keyword whole CMAKE_AUTOMOC brightgreen - keyword whole CMAKE_AUTOMOC_MOC_OPTIONS brightgreen - keyword whole CMAKE_BUILD_WITH_INSTALL_RPATH brightgreen - keyword whole CMAKE_DEBUG_POSTFIX brightgreen - keyword whole CMAKE_EXE_LINKER_FLAGS brightgreen - keyword whole CMAKE_EXE_LINKER_FLAGS_+ brightgreen - keyword whole CMAKE_Fortran_FORMAT brightgreen - keyword whole CMAKE_Fortran_MODULE_DIRECTORY brightgreen - keyword whole CMAKE_GNUtoMS brightgreen - keyword whole CMAKE_INCLUDE_CURRENT_DIR brightgreen - keyword whole CMAKE_INCLUDE_CURRENT_DIR_IN_INTERFACE brightgreen - keyword whole CMAKE_INSTALL_NAME_DIR brightgreen - keyword whole CMAKE_INSTALL_RPATH brightgreen - keyword whole CMAKE_INSTALL_RPATH_USE_LINK_PATH brightgreen - keyword whole CMAKE_LIBRARY_OUTPUT_DIRECTORY brightgreen - keyword whole CMAKE_LIBRARY_PATH_FLAG brightgreen - keyword whole CMAKE_LINK_DEF_FILE_FLAG brightgreen - keyword whole CMAKE_LINK_DEPENDS_NO_SHARED brightgreen - keyword whole CMAKE_LINK_INTERFACE_LIBRARIES brightgreen - keyword whole CMAKE_LINK_LIBRARY_FILE_FLAG brightgreen - keyword whole CMAKE_LINK_LIBRARY_FLAG brightgreen - keyword whole CMAKE_MACOSX_BUNDLE brightgreen - keyword whole CMAKE_MODULE_LINKER_FLAGS brightgreen - keyword whole CMAKE_MODULE_LINKER_FLAGS_+ brightgreen - keyword whole CMAKE_NO_BUILTIN_CHRPATH brightgreen - keyword whole CMAKE_PDB_OUTPUT_DIRECTORY brightgreen - keyword whole CMAKE_POSITION_INDEPENDENT_CODE brightgreen - keyword whole CMAKE_RUNTIME_OUTPUT_DIRECTORY brightgreen - keyword whole CMAKE_SHARED_LINKER_FLAGS brightgreen - keyword whole CMAKE_SHARED_LINKER_FLAGS_+ brightgreen - keyword whole CMAKE_SKIP_BUILD_RPATH brightgreen - keyword whole CMAKE_SKIP_INSTALL_RPATH brightgreen - keyword whole CMAKE_STATIC_LINKER_FLAGS brightgreen - keyword whole CMAKE_STATIC_LINKER_FLAGS_+ brightgreen - keyword whole CMAKE_TRY_COMPILE_CONFIGURATION brightgreen - keyword whole CMAKE_USE_RELATIVE_PATHS brightgreen - keyword whole CMAKE_VISIBILITY_INLINES_HIDDEN brightgreen - keyword whole CMAKE_WIN32_EXECUTABLE brightgreen - keyword whole EXECUTABLE_OUTPUT_PATH brightgreen - keyword whole LIBRARY_OUTPUT_PATH brightgreen - keyword whole CMAKE_+_ARCHIVE_APPEND brightgreen - keyword whole CMAKE_+_ARCHIVE_CREATE brightgreen - keyword whole CMAKE_+_ARCHIVE_FINISH brightgreen - keyword whole CMAKE_+_COMPILER brightgreen - keyword whole CMAKE_+_COMPILER_ABI brightgreen - keyword whole CMAKE_+_COMPILER_ID brightgreen - keyword whole CMAKE_+_COMPILER_LOADED brightgreen - keyword whole CMAKE_+_COMPILER_VERSION brightgreen - keyword whole CMAKE_+_COMPILE_OBJECT brightgreen - keyword whole CMAKE_+_CREATE_SHARED_LIBRARY brightgreen - keyword whole CMAKE_+_CREATE_SHARED_MODULE brightgreen - keyword whole CMAKE_+_CREATE_STATIC_LIBRARY brightgreen - keyword whole CMAKE_+_FLAGS brightgreen - keyword whole CMAKE_+_FLAGS_DEBUG brightgreen - keyword whole CMAKE_+_FLAGS_MINSIZEREL brightgreen - keyword whole CMAKE_+_FLAGS_RELEASE brightgreen - keyword whole CMAKE_+_FLAGS_RELWITHDEBINFO brightgreen - keyword whole CMAKE_+_IGNORE_EXTENSIONS brightgreen - keyword whole CMAKE_+_IMPLICIT_INCLUDE_DIRECTORIES brightgreen - keyword whole CMAKE_+_IMPLICIT_LINK_DIRECTORIES brightgreen - keyword whole CMAKE_+_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES brightgreen - keyword whole CMAKE_+_IMPLICIT_LINK_LIBRARIES brightgreen - keyword whole CMAKE_+_LIBRARY_ARCHITECTURE brightgreen - keyword whole CMAKE_+_LINKER_PREFERENCE brightgreen - keyword whole CMAKE_+_LINKER_PREFERENCE_PROPAGATES brightgreen - keyword whole CMAKE_+_LINK_EXECUTABLE brightgreen - keyword whole CMAKE_+_OUTPUT_EXTENSION brightgreen - keyword whole CMAKE_+_PLATFORM_ID brightgreen - keyword whole CMAKE_+_SIZEOF_DATA_PTR brightgreen - keyword whole CMAKE_+_SOURCE_FILE_EXTENSIONS brightgreen - keyword whole CMAKE_COMPILER_IS_GNU+ brightgreen - keyword whole CMAKE_Fortran_MODDIR_DEFAULT brightgreen - keyword whole CMAKE_Fortran_MODDIR_FLAG brightgreen - keyword whole CMAKE_Fortran_MODOUT_FLAG brightgreen - keyword whole CMAKE_INTERNAL_PLATFORM_ABI brightgreen - keyword whole CMAKE_USER_MAKE_RULES_OVERRIDE_+ brightgreen - - keyword ${*} brightgreen - - spellcheck - -context # \n brown - -context " " green - keyword ${*} brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/cobol.syntax b/recipes/wip/files/mc/source/misc/syntax/cobol.syntax deleted file mode 100644 index f83a627714..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/cobol.syntax +++ /dev/null @@ -1,706 +0,0 @@ -# syntax highlighting for cobol. -# the author is Wuerl, see https://midnight-commander.org/ticket/1987 -# adapted to use in mcedit version 4.8.24 by alex bodnaru - -caseinsensitive - -context default - keyword ;; brightred - keyword \\@ brightred - keyword \\$ brightred - keyword \\\\ brightred - keyword \\" brightred - keyword \\' brightred - keyword \\` brightred - keyword ` brightred - keyword ; brightcyan - keyword $(*) brightgreen - keyword ${*} brightgreen - keyword { brightcyan - keyword } brightcyan - - keyword whole linestart #!\[\s\]*\n brightcyan black - - keyword $\* brightred - keyword $@ brightred - keyword $# brightred - keyword $? brightred - keyword $- brightred - keyword $$ brightred - keyword $! brightred - keyword $_ brightred - - keyword wholeright $\[0123456789\] brightred - - keyword wholeright $+ brightgreen - - keyword $ brightgreen - - keyword wholeleft linestart function*() brightmagenta - keyword wholeleft linestart function\[\s\]+ brightmagenta - keyword wholeright +() brightmagenta - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._ - - keyword whole accept yellow - keyword whole access yellow - keyword whole add yellow - keyword whole adress yellow - keyword whole advancing yellow - keyword whole after yellow - keyword whole allowing yellow - keyword whole all yellow - keyword whole alpahanumeric-edited yellow - keyword whole alphabetic-lower yellow - keyword whole alphabetic-upper yellow - keyword whole alphabetic yellow - keyword whole alphabet yellow - keyword whole alphanumeric-edited yellow - keyword whole alphanumeric yellow - keyword whole also yellow - keyword whole alternate yellow - keyword whole alter yellow - keyword whole and yellow - keyword whole any yellow - keyword whole apply yellow - keyword whole areas yellow - keyword whole area yellow - keyword whole are yellow - keyword whole arithmetic yellow - keyword whole ascending yellow - keyword whole assign yellow - keyword whole as yellow - keyword whole at yellow - keyword whole author. yellow - keyword whole b-and yellow - keyword whole based-storage yellow - keyword whole based yellow - keyword whole basis yellow - keyword whole before yellow - keyword whole beginning yellow - keyword whole begin yellow - keyword whole between yellow - keyword whole b-exor yellow - keyword whole binary yellow - keyword whole binary- yellow - keyword whole bits yellow - keyword whole bit yellow - keyword whole blank yellow - keyword whole b-less yellow - keyword whole block yellow - keyword whole b-not yellow - keyword whole boolean yellow - keyword whole b-or yellow - keyword whole bottom yellow - keyword whole byte yellow - keyword whole by yellow - keyword whole call yellow - keyword whole cancel yellow - keyword whole caracter yellow - keyword whole cbl yellow - keyword whole cd yellow - keyword whole cf yellow - keyword whole characters yellow - keyword whole character yellow - keyword whole ch yellow - keyword whole class-id yellow - keyword whole class yellow - keyword whole clock-units yellow - keyword whole cobol yellow - keyword whole code-set yellow - keyword whole code yellow - keyword whole collating yellow - keyword whole column yellow - keyword whole command yellow - keyword whole comma yellow - keyword whole common yellow - keyword whole communication yellow - keyword whole comp-1 yellow - keyword whole comp-2 yellow - keyword whole comp-3 yellow - keyword whole comp-4 yellow - keyword whole comp-5 yellow - keyword whole comp-6 yellow - keyword whole comp-7 yellow - keyword whole comp-8 yellow - keyword whole complex yellow - keyword whole comp-n yellow - keyword whole computational-1 yellow - keyword whole computational-2 yellow - keyword whole computational-3 yellow - keyword whole computational-4 yellow - keyword whole computational-5 yellow - keyword whole computational-n yellow - keyword whole computational-x yellow - keyword whole computational yellow - keyword whole compute yellow - keyword whole comp-x yellow - keyword whole com-reg yellow - keyword whole configuration yellow - keyword whole console yellow - keyword whole constant yellow - keyword whole contained yellow - keyword whole contains yellow - keyword whole content yellow - keyword whole continue yellow - keyword whole control-area yellow - keyword whole controls yellow - keyword whole control yellow - keyword whole converting yellow - keyword whole copy yellow - keyword whole corresponding yellow - keyword whole corr yellow - keyword whole count yellow - keyword whole currency yellow - keyword whole current yellow - keyword whole cursor yellow - keyword whole custom-attribute yellow - keyword whole cycle yellow - keyword whole data yellow - keyword whole date-compiled. yellow - keyword whole date-written. yellow - keyword whole date yellow - keyword whole day-of-week yellow - keyword whole day yellow - keyword whole db-access-control-key yellow - keyword whole dbcs yellow - keyword whole db-data-name yellow - keyword whole db-exception yellow - keyword whole db-record-name yellow - keyword whole db-set-name yellow - keyword whole db-status yellow - keyword whole db yellow - keyword whole debug-contents yellow - keyword whole debugging yellow - keyword whole debug-item yellow - keyword whole debug-line yellow - keyword whole debug-name yellow - keyword whole debug-sub-1 yellow - keyword whole debug-sub-2 yellow - keyword whole debug-sub-3 yellow - keyword whole debug-sub yellow - keyword whole debug yellow - keyword whole decimal-point yellow - keyword whole declaratives yellow - keyword whole default yellow - keyword whole delegate-id yellow - keyword whole delegate yellow - keyword whole delimited yellow - keyword whole delimiter yellow - keyword whole depending yellow - keyword whole descending yellow - keyword whole destination yellow - keyword whole destination- yellow - keyword whole detail yellow - keyword whole de yellow - keyword whole disable yellow - keyword whole display-1 yellow - keyword whole display-2 yellow - keyword whole display-3 yellow - keyword whole display-4 yellow - keyword whole display-5 yellow - keyword whole display-6 yellow - keyword whole display-7 yellow - keyword whole display-8 yellow - keyword whole display-9 yellow - keyword whole display yellow - keyword whole display- yellow - keyword whole divide yellow - keyword whole division. yellow - keyword whole down yellow - keyword whole duplicates yellow - keyword whole duplicate yellow - keyword whole dynamic yellow - keyword whole egcs yellow - keyword whole egi yellow - keyword whole eject yellow - keyword whole else yellow - keyword whole emi yellow - keyword whole empty yellow - keyword whole enable yellow - keyword whole end-add yellow - keyword whole end-call yellow - keyword whole end-ch yellow - keyword whole end-class yellow - keyword whole end-compute yellow - keyword whole end*delegate. yellow - keyword whole end-delegate yellow - keyword whole end-disable yellow - keyword whole end-display yellow - keyword whole end-divide yellow - keyword whole end-enable yellow - keyword whole end-enum yellow - keyword whole end-evaluate yellow - keyword whole end-if yellow - keyword whole ending yellow - keyword whole end-invoke yellow - keyword whole end-multiply yellow - keyword whole end-of-page yellow - keyword whole end-perform yellow - keyword whole end-receive yellow - keyword whole end-return yellow - keyword whole end-send yellow - keyword whole end-start yellow - keyword whole end-string yellow - keyword whole end-subtract yellow - keyword whole endter yellow - keyword whole end-transceive yellow - keyword whole end-unstring yellow - keyword whole end yellow - keyword whole enter yellow - keyword whole entry yellow - keyword whole enum*id yellow - keyword whole enum-id yellow - keyword whole enum yellow - keyword whole eop yellow - keyword whole equals yellow - keyword whole equal yellow - keyword whole erase yellow - keyword whole error yellow - keyword whole esi yellow - keyword whole evaluate yellow - keyword whole every yellow - keyword whole exact yellow - keyword whole examine yellow - keyword whole exceeds yellow - keyword whole exception-object yellow - keyword whole exception yellow - keyword whole exclusive yellow - keyword whole exceeds yellow - keyword whole exist yellow - keyword whole exit yellow - keyword whole extend yellow - keyword whole external yellow - keyword whole factory yellow - keyword whole false yellow - keyword whole fd yellow - keyword whole file-control. yellow - keyword whole file-limits yellow - keyword whole files yellow - keyword whole file yellow - keyword whole final yellow - keyword whole find yellow - keyword whole finish yellow - keyword whole first yellow - keyword whole footing yellow - keyword whole format yellow - keyword whole form yellow - keyword whole free yellow - keyword whole from yellow - keyword whole function yellow - keyword whole f yellow - keyword whole f. yellow - keyword whole generate yellow - keyword whole get yellow - keyword whole giving yellow - keyword whole global yellow - keyword whole goback yellow - keyword whole goback. yellow - keyword whole go yellow - keyword whole greater yellow - keyword whole group yellow - keyword whole having yellow - keyword whole heading yellow - keyword whole high-values yellow - keyword whole high*value yellow - keyword whole high-value yellow - keyword whole id yellow - keyword whole if yellow - keyword whole include yellow - keyword whole indexed yellow - keyword whole index yellow - keyword whole indicate yellow - keyword whole inherits yellow - keyword whole initialize yellow - keyword whole initial yellow - keyword whole initiate yellow - keyword whole input-output yellow - keyword whole input yellow - keyword whole inspect yellow - keyword whole installation yellow - keyword whole interface-id yellow - keyword whole interface yellow - keyword whole into yellow - keyword whole invalid yellow - keyword whole invoke yellow - keyword whole in yellow - keyword whole i-o-control. yellow - keyword whole i-o yellow - keyword whole is yellow - keyword whole item yellow - keyword whole justified yellow - keyword whole just yellow - keyword whole kanji yellow - keyword whole keep yellow - keyword whole key yellow - keyword whole label yellow - keyword whole last yellow - keyword whole ld yellow - keyword whole leading yellow - keyword whole left yellow - keyword whole lenght yellow - keyword whole less yellow - keyword whole like yellow - keyword whole limits yellow - keyword whole limit yellow - keyword whole linage*counter yellow - keyword whole linage-counter yellow - keyword whole linage yellow - keyword whole line*counter yellow - keyword whole line-counter yellow - keyword whole lines yellow - keyword whole line yellow - keyword whole linkage yellow - keyword whole locally yellow - keyword whole local-storage yellow - keyword whole lock yellow - keyword whole low-values yellow - keyword whole low-value yellow - keyword whole ls-area yellow - keyword whole member yellow - keyword whole memory yellow - keyword whole merge yellow - keyword whole message yellow - keyword whole metaclass yellow - keyword whole method-id yellow - keyword whole method yellow - keyword whole mode yellow - keyword whole mode- yellow - keyword whole modify yellow - keyword whole modules yellow - keyword whole more-labels yellow - keyword whole more yellow - keyword whole move yellow - keyword whole multiple yellow - keyword whole multiply yellow - keyword whole native yellow - keyword whole negative yellow - keyword whole next yellow - keyword whole normal yellow - keyword whole not yellow - keyword whole no yellow - keyword whole nulls yellow - keyword whole null yellow - keyword whole number yellow - keyword whole numeric-edited yellow - keyword whole numeric yellow - keyword whole object-computer. yellow - keyword whole object yellow - keyword whole occurs yellow - keyword whole off yellow - keyword whole of yellow - keyword whole omitted yellow - keyword whole only yellow - keyword whole on yellow - keyword whole optional yellow - keyword whole order yellow - keyword whole organisation yellow - keyword whole or yellow - keyword whole other yellow - keyword whole output yellow - keyword whole overflow yellow - keyword whole override yellow - keyword whole owner yellow - keyword whole packed*decimal yellow - keyword whole packed-decimal yellow - keyword whole padding yellow - keyword whole page-counter yellow - keyword whole page yellow - keyword whole password yellow - keyword whole perform yellow - keyword whole pf yellow - keyword whole ph yellow - keyword whole picture yellow - keyword whole pic yellow - keyword whole plus yellow - keyword whole pointer yellow - keyword whole positioning yellow - keyword whole position yellow - keyword whole positive yellow - keyword whole present yellow - keyword whole previous yellow - keyword whole printing yellow - keyword whole prior yellow - keyword whole private yellow - keyword whole procedure-pointer yellow - keyword whole procedures yellow - keyword whole proceed yellow - keyword whole processing yellow - keyword whole process yellow - keyword whole program-id. yellow - keyword whole program yellow - keyword whole program. yellow - keyword whole property yellow - keyword whole protected yellow - keyword whole prototype yellow - keyword whole public yellow - keyword whole purge yellow - keyword whole queue yellow - keyword whole quotes yellow - keyword whole quote yellow - keyword whole raise yellow - keyword whole raising yellow - keyword whole random yellow - keyword whole range yellow - keyword whole rd yellow - keyword whole ready yellow - keyword whole realm yellow - keyword whole receive yellow - keyword whole reconnect yellow - keyword whole recording yellow - keyword whole record-name yellow - keyword whole records yellow - keyword whole record yellow - keyword whole recursive yellow - keyword whole redefines yellow - keyword whole reel yellow - keyword whole references yellow - keyword whole reference yellow - keyword whole relation yellow - keyword whole relative yellow - keyword whole release yellow - keyword whole reload yellow - keyword whole remainder yellow - keyword whole remarks yellow - keyword whole removal yellow - keyword whole renames yellow - keyword whole repeated yellow - keyword whole replace yellow - keyword whole replacing yellow - keyword whole reporting yellow - keyword whole reports yellow - keyword whole report yellow - keyword whole repository yellow - keyword whole rerun yellow - keyword whole reserve yellow - keyword whole reset yellow - keyword whole retaining yellow - keyword whole retrieval yellow - keyword whole return-code yellow - keyword whole returning yellow - keyword whole return yellow - keyword whole reversed yellow - keyword whole rewind yellow - keyword whole rf yellow - keyword whole rh yellow - keyword whole right yellow - keyword whole rounded yellow - keyword whole run yellow - keyword whole run. yellow - keyword whole same yellow - keyword whole screen yellow - keyword whole sd yellow - keyword whole search yellow - keyword whole section. yellow - keyword whole security yellow - keyword whole segment-limit yellow - keyword whole segment yellow - keyword whole self yellow - keyword whole send yellow - keyword whole sentence yellow - keyword whole separate yellow - keyword whole sequence yellow - keyword whole sequential yellow - keyword whole service yellow - keyword whole session-id yellow - keyword whole session yellow - keyword whole set yellow - keyword whole shared yellow - keyword whole shift-in yellow - keyword whole shift-out yellow - keyword whole signed yellow - keyword whole sign yellow - keyword whole size yellow - keyword whole skip yellow - keyword whole sort-control yellow - keyword whole sort-core-size yellow - keyword whole sort-file-size yellow - keyword whole sort-merge yellow - keyword whole sort-message yellow - keyword whole sort-mode-size yellow - keyword whole sort-return yellow - keyword whole sort-status yellow - keyword whole sort yellow - keyword whole source-computer. yellow - keyword whole source yellow - keyword whole spaces yellow - keyword whole space yellow - keyword whole special-names. yellow - keyword whole standard yellow - keyword whole standard- yellow - keyword whole start yellow - keyword whole static yellow - keyword whole status yellow - keyword whole stop yellow - keyword whole storage yellow - keyword whole store yellow - keyword whole string yellow - keyword whole sub-queue- yellow - keyword whole sub-schema yellow - keyword whole subtract yellow - keyword whole suffix yellow - keyword whole sum yellow - keyword whole super yellow - keyword whole suppress yellow - keyword whole symbolic yellow - keyword whole synchronized yellow - keyword whole sync yellow - keyword whole table yellow - keyword whole tallying yellow - keyword whole tally yellow - keyword whole tape yellow - keyword whole tenant yellow - keyword whole terminal yellow - keyword whole terminate yellow - keyword whole test yellow - keyword whole text yellow - keyword whole than yellow - keyword whole then yellow - keyword whole through yellow - keyword whole thru yellow - keyword whole timeout yellow - keyword whole times yellow - keyword whole time yellow - keyword whole title yellow - keyword whole top yellow - keyword whole to yellow - keyword whole trace yellow - keyword whole trailing yellow - keyword whole transceive yellow - keyword whole true yellow - keyword whole typedef yellow - keyword whole type yellow - keyword whole unequal yellow - keyword whole unit yellow - keyword whole unlock yellow - keyword whole unsigned yellow - keyword whole unstring yellow - keyword whole until yellow - keyword whole upon yellow - keyword whole up yellow - keyword whole usage-mode yellow - keyword whole usage yellow - keyword whole use yellow - keyword whole using yellow - keyword whole validate yellow - keyword whole valid yellow - keyword whole values yellow - keyword whole value yellow - keyword whole varying yellow - keyword whole wait yellow - keyword whole when-compiled yellow - keyword whole whenever yellow - keyword whole when yellow - keyword whole where yellow - keyword whole within yellow - keyword whole with yellow - keyword whole words yellow - keyword whole working-storage yellow - keyword whole write-only yellow - keyword whole zeroes yellow - keyword whole zeros yellow - keyword whole zero yellow - - keyword whole environment*division. cyan - keyword whole data*division. cyan - keyword whole program cyan - keyword whole procedure*division cyan - keyword whole procedure*division. cyan - keyword whole identification*division. cyan - keyword whole section cyan - keyword whole paragraph cyan - keyword whole end-program cyan - keyword whole end*program. cyan - - keyword whole s9 brightgreen - keyword whole v9 brightgreen - - keyword whole close brightred - keyword whole commit brightred - keyword whole connect brightred - keyword whole declare brightred - keyword whole delete brightred - keyword whole disconnect brightred - keyword whole end-delete brightred - keyword whole end-exec brightred - keyword whole end-read brightred - keyword whole end-rewrite brightred - keyword whole end-write brightred - keyword whole exec brightred - keyword whole execute brightred - keyword whole execute*immediate. brightred - keyword whole fetch brightred - keyword whole for brightred - keyword whole insert brightred - keyword whole open brightred - keyword whole phase brightred - keyword whole prepare brightred - keyword whole read brightred - keyword whole rewrite brightred - keyword whole rollback brightred - keyword whole select brightred - keyword whole sql brightred - keyword whole update brightred - keyword whole work brightred - keyword whole write brightred - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_ - -context \* \n brown - spellcheck - -context exclusive whole <<\[\s\]\[-\]\[\s\]\[\\\]EOF EOF green -context exclusive whole <<\[\s\]\[-\]\[\s\]\[\\\]END END green - -context ' ' green - -context " " green - keyword \\* brightgreen - keyword \\@ brightgreen - keyword \\$ brightgreen - keyword \\\\ brightgreen - keyword \\` brightgreen - keyword \\" brightgreen - keyword $(*) brightgreen - keyword ${*} brightgreen - keyword $\* brightred - keyword $@ brightred - keyword $# brightred - keyword $? brightred - keyword $- brightred - keyword $$ brightred - keyword $! brightred - keyword $_ brightred - keyword wholeright $\[0123456789\] brightred - - keyword wholeright $+ brightgreen - - keyword $ brightgreen - -context exclusive ` ` lightgray black - keyword '*' green - keyword " green - keyword \\` green - keyword ; brightcyan - keyword $(*) brightgreen - keyword ${*} brightgreen - keyword { brightcyan - keyword } brightcyan - - keyword $\* brightred - keyword $@ brightred - keyword $# brightred - keyword $? brightred - keyword $- brightred - keyword $$ brightred - keyword $! brightred - keyword $_ brightred - - keyword wholeright $\[0123456789\] brightred - - keyword wholeright $+ brightgreen - - keyword $ brightgreen - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._ - diff --git a/recipes/wip/files/mc/source/misc/syntax/cs.syntax b/recipes/wip/files/mc/source/misc/syntax/cs.syntax deleted file mode 100644 index 4164100ff9..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/cs.syntax +++ /dev/null @@ -1,149 +0,0 @@ -# Modified from C highlight file by Juan C. Olivares - -context default - - keyword whole abstract yellow - keyword whole as yellow - keyword whole base yellow - keyword whole bool yellow - keyword whole break yellow - keyword whole byte yellow - keyword whole case yellow - keyword whole catch yellow - keyword whole char yellow - keyword whole checked yellow - keyword whole class white - keyword whole const yellow - keyword whole continue yellow - keyword whole decimal yellow - keyword whole default yellow - keyword whole delegate white - keyword whole do yellow - keyword whole double yellow - keyword whole else yellow - keyword whole enum white - keyword whole event yellow - keyword whole explicit yellow - keyword whole extern yellow - keyword whole false yellow - keyword whole finally yellow - keyword whole fixed yellow - keyword whole float yellow - keyword whole for yellow - keyword whole foreach yellow - keyword whole get brightgreen - keyword whole goto yellow - keyword whole if yellow - keyword whole implicit yellow - keyword whole in yellow - keyword whole int yellow - keyword whole interface white - keyword whole internal brightred - keyword whole is yellow - keyword whole lock yellow - keyword whole long yellow - keyword whole namespace white - keyword whole new yellow - keyword whole null yellow - keyword whole object yellow - keyword whole operator yellow - keyword whole out yellow - keyword whole override yellow - keyword whole params yellow - keyword whole partial yellow - keyword whole private brightred - keyword whole protected yellow - keyword whole public brightred - keyword whole readonly yellow - keyword whole ref yellow - keyword whole return yellow - keyword whole sbyte yellow - keyword whole sealed yellow - keyword whole set brightgreen - keyword whole short yellow - keyword whole sizeof yellow - keyword whole stackalloc yellow - keyword whole static yellow - keyword whole string yellow - keyword whole struct white - keyword whole switch yellow - keyword whole this yellow - keyword whole throw yellow - keyword whole true yellow - keyword whole try yellow - keyword whole typeof yellow - keyword whole uint yellow - keyword whole ulong yellow - keyword whole unchecked yellow - keyword whole unsafe yellow - keyword whole ushort yellow - keyword whole using brightcyan - keyword whole value yellow - keyword whole virtual yellow - keyword whole void yellow - keyword whole volatile yellow - keyword whole where yellow - keyword whole while yellow - keyword whole yield yellow - - - keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta - - keyword /\* brown - keyword \*/ brown - keyword // brown - - keyword '\\\{"abtnvfr\}' brightgreen - keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen - keyword '\\'' brightgreen - keyword '\\\\' brightgreen - keyword '\\0' brightgreen - keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\}' brightgreen - - keyword > yellow - keyword < yellow - keyword \+ yellow - keyword - yellow - keyword \* yellow - keyword / yellow - keyword % yellow - keyword = yellow - keyword != yellow - keyword == yellow - keyword { brightcyan - keyword } brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword [ brightcyan - keyword ] brightcyan - keyword , brightcyan - keyword : brightcyan - keyword ? brightcyan - keyword ; brightmagenta - -context exclusive /\* \*/ brown - spellcheck - -context exclusive // \n brown - spellcheck - -context linestart # \n brightred - keyword \\\n yellow - keyword /\**\*/ brown - keyword "+" red - -context " " green - spellcheck - keyword \\" brightgreen - keyword %% brightgreen - keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen - keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen - keyword %\[hl\]n brightgreen - keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen - keyword %[*] brightgreen - keyword %c brightgreen - keyword %p brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{abtnvfr\} brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/css.syntax b/recipes/wip/files/mc/source/misc/syntax/css.syntax deleted file mode 100644 index 718c88b279..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/css.syntax +++ /dev/null @@ -1,550 +0,0 @@ -# Updated by Mikhail S. Pobolovets on 2010.09.12 -context default -# -moz-... - keyword whole \-\{ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\}\[\-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] lightgray -# class - keyword whole \.\{ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\}\[\-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] green - - keyword whole body white - keyword whole div white - keyword whole p white - keyword whole a white - keyword whole h1 white - keyword whole h2 white - keyword whole h3 white - keyword whole h4 white - keyword whole h5 white - keyword whole h6 white - keyword whole 'font' white - keyword whole br white - keyword whole table white - keyword whole td white - keyword whole th white - keyword whole tr white - keyword whole u white - keyword whole i white - keyword whole b white - keyword whole address white - keyword whole big white - keyword whole small white - keyword whole sub white - keyword whole sup white - keyword whole img white - keyword whole form white - keyword whole textarea white - keyword whole input white - keyword whole select white - keyword whole option white - keyword whole optgroup white - - - keyword \:\:add-line white - keyword \:\:add-page white - keyword \:\:branch white - keyword \:\:chunk white - keyword \:\:close-button white - keyword \:\:down-arrow white - keyword \:\:down-button white - keyword \:\:drop-down white - keyword \:\:float-button white - keyword \:\:groove white - keyword \:\:indicator white - keyword \:\:handle white - keyword \:\:icon white - keyword \:\:item white - keyword \:\:left-arrow white - keyword \:\:left-corner white - keyword \:\:menu-arrow white - keyword \:\:menu-button white - keyword \:\:menu-indicator white - keyword \:\:right-arrow white - keyword \:\:pane white - keyword \:\:right-corner white - keyword \:\:scroller white - keyword \:\:section white - keyword \:\:separator white - keyword \:\:sub-line white - keyword \:\:sub-page white - keyword \:\:tab white - keyword \:\:tab-bar white - keyword \:\:tear white - keyword \:\:tear-off white - keyword \:\:text white - keyword \:\:title white - keyword \:\:up-arrow white - keyword \:\:up-button white - - keyword \:active brightmagenta - keyword \:after brightmagenta - keyword \:visited brightmagenta - keyword \:before brightmagenta - keyword \:first-child brightmagenta - keyword \:first-letter brightmagenta - keyword \:first-line brightmagenta - keyword \:focus brightmagenta - keyword \:lang brightmagenta - keyword \:link brightmagenta - keyword \:adjoins-item brightmagenta - keyword \:alternate brightmagenta - keyword \:bottom brightmagenta - keyword \:checked brightmagenta - keyword \:closable brightmagenta - keyword \:closed brightmagenta - keyword \:default brightmagenta - keyword \:disabled brightmagenta - keyword \:editable brightmagenta - keyword \:edit-focus brightmagenta - keyword \:enabled brightmagenta - keyword \:exclusive brightmagenta - keyword \:first brightmagenta - keyword \:flat brightmagenta - keyword \:floatable brightmagenta - keyword \:has-children brightmagenta - keyword \:has-siblings brightmagenta - keyword \:horizontal brightmagenta - keyword \:hover brightmagenta - keyword \:indeterminate brightmagenta - keyword \:last brightmagenta - keyword \:left brightmagenta - keyword \:maximized brightmagenta - keyword \:middle brightmagenta - keyword \:minimized brightmagenta - keyword \:movable brightmagenta - keyword \:no-frame brightmagenta - keyword \:non-exclusive brightmagenta - keyword \:off brightmagenta - keyword \:on brightmagenta - keyword \:only-one brightmagenta - keyword \:open brightmagenta - keyword \:next-selected brightmagenta - keyword \:pressed brightmagenta - keyword \:previous-selected brightmagenta - keyword \:read-only brightmagenta - keyword \:right brightmagenta - keyword \:selected brightmagenta - keyword \:top brightmagenta - keyword \:unchecked brightmagenta - keyword \:vertical brightmagenta - keyword \:window brightmagenta - - keyword whole \!important brightred - - keyword whole background-attachment lightgray - keyword whole background-color lightgray - keyword whole background-image lightgray - keyword whole background-position lightgray - keyword whole background-repeat lightgray - keyword whole background lightgray - keyword whole bidi-override lightgray - keyword whole border-bottom lightgray - keyword whole border-bottom-color lightgray - keyword whole border-bottom-style lightgray - keyword whole border-bottom-width lightgray - keyword whole border-collapse lightgray - keyword whole border-color lightgray - keyword whole border-left lightgray - keyword whole border-left-color lightgray - keyword whole border-left-style lightgray - keyword whole border-left-width lightgray - keyword whole border-right lightgray - keyword whole border-right-color lightgray - keyword whole border-right-style lightgray - keyword whole border-right-width lightgray - keyword whole border-spacing lightgray - keyword whole border-style lightgray - keyword whole border-top lightgray - keyword whole border-top-color lightgray - keyword whole border-top-style lightgray - keyword whole border-top-width lightgray - keyword whole border-width lightgray - keyword whole border lightgray - keyword whole bottom lightgray - keyword whole caption-side lightgray - keyword whole clear lightgray - keyword whole clip lightgray - keyword whole color lightgray - keyword whole content lightgray - keyword whole counter-increment lightgray - keyword whole cursor lightgray - keyword whole direction lightgray - keyword whole display lightgray - keyword whole empty-cells lightgray - keyword whole fixed lightgray - keyword whole float lightgray - keyword whole font-size-adjust lightgray - keyword whole font-stretch lightgray - keyword whole font-family lightgray - keyword whole font-size lightgray - keyword whole font-style lightgray - keyword whole font-variant lightgray - keyword whole font-weight lightgray - keyword whole font lightgray - keyword whole generic-family lightgray - keyword whole height lightgray - keyword whole identifier lightgray - keyword whole image lightgray - keyword whole justify lightgray - keyword whole left lightgray - keyword whole length lightgray - keyword whole letter-spacing lightgray - keyword whole line-height lightgray - keyword whole list-style-image lightgray - keyword whole list-style-position lightgray - keyword whole list-style-type lightgray - keyword whole list-style lightgray - keyword whole margin-left lightgray - keyword whole margin-top lightgray - keyword whole margin lightgray - keyword whole marker-offset lightgray - keyword whole max-height lightgray - keyword whole max-width lightgray - keyword whole min-height lightgray - keyword whole min-width lightgray - keyword whole nowrap lightgray - keyword whole outline-color lightgray - keyword whole outline-style lightgray - keyword whole outline-width lightgray - keyword whole outline lightgray - keyword whole padding-left lightgray - keyword whole padding-top lightgray - keyword whole padding lightgray - keyword whole position lightgray - keyword whole quotes lightgray - keyword whole right lightgray - keyword whole subcontrol-origin lightgray - keyword whole subcontrol-position lightgray - keyword whole table-layout lightgray - keyword whole text-align lightgray - keyword whole text-decoration lightgray - keyword whole text-indent lightgray - keyword whole text-shadow lightgray - keyword whole text-transform lightgray - keyword whole top lightgray - keyword whole unicode-bidi lightgray - keyword whole vertical-align lightgray - keyword whole visibility lightgray - keyword whole white-space lightgray - keyword whole width lightgray - keyword whole word-spacing lightgray - keyword whole opacity lightgray - keyword whole filter lightgray - - keyword whole qconicalgradient brightgreen - keyword whole qlineargradient brightgreen - keyword whole qradialgradient brightgreen - - keyword whole center brightgreen - keyword whole bold brightgreen - keyword whole smaller brightgreen - keyword whole italic brightgreen - keyword whole bolder brightgreen - keyword whole underline brightgreen - keyword whole absolute brightgreen - - keyword whole none brightgreen - keyword whole auto brightgreen - keyword whole blink brightgreen - keyword whole hide brightgreen - - keyword whole thin brightgreen - keyword whole medium brightgreen - keyword whole thick brightgreen - - - keyword whole disc brightgreen - keyword whole circle brightgreen - keyword whole square brightgreen - keyword whole decimal brightgreen - keyword whole decimal-leading-zero brightgreen - keyword whole lower-roman brightgreen - keyword whole upper-roman brightgreen - keyword whole lower-alpha brightgreen - keyword whole upper-alpha brightgreen - keyword whole lower-greek brightgreen - keyword whole lower-latin brightgreen - keyword whole upper-latin brightgreen - keyword whole hebrew brightgreen - keyword whole armenian brightgreen - keyword whole georgian brightgreen - keyword whole cjk-ideographic brightgreen - keyword whole hiragana brightgreen - keyword whole katakana brightgreen - keyword whole hiragana-iroha brightgreen - keyword whole katakana-iroha brightgreen - - keyword whole invert brightgreen - keyword whole oblique brightgreen - keyword whole no-close-quote brightgreen - keyword whole repeat-x brightgreen - keyword whole repeat-y brightgreen - keyword whole repeat brightgreen - keyword whole no-repeat brightgreen - keyword whole small-caps brightgreen - keyword whole transparent brightgreen - - keyword whole visible brightgreen - keyword whole hidden brightgreen - keyword whole dotted brightgreen - - keyword whole dashed brightgreen - keyword whole solid brightgreen - keyword whole double brightgreen - keyword whole groove brightgreen - keyword whole ridge brightgreen - keyword whole inset brightgreen - keyword whole outset brightgreen - - keyword whole crosshair brightgreen - keyword whole default brightgreen - keyword whole pointer brightgreen - keyword whole move brightgreen - keyword whole e-resize brightgreen - keyword whole ne-resize brightgreen - keyword whole nw-resize brightgreen - keyword whole n-resize brightgreen - keyword whole se-resize brightgreen - keyword whole sw-resize brightgreen - keyword whole s-resize brightgreen - keyword whole w-resize brightgreen - keyword whole text brightgreen - keyword whole wait brightgreen - keyword whole help brightgreen - - keyword whole inline brightgreen - keyword whole block brightgreen - keyword whole list-item brightgreen - keyword whole run-in brightgreen - keyword whole compact brightgreen - keyword whole marker brightgreen - keyword whole inline-table brightgreen - keyword whole table-row-group brightgreen - keyword whole table-header-group brightgreen - keyword whole table-footer-group brightgreen - keyword whole table-row brightgreen - keyword whole table-column-group brightgreen - keyword whole table-column brightgreen - keyword whole table-cell brightgreen - keyword whole table-caption brightgreen - - keyword whole large brightgreen - - keyword whole normal brightgreen - keyword whole lighter brightgreen - - keyword whole open-quote brightgreen - keyword whole close-quote brightgreen - keyword whole no-open-quote brightgreen - - keyword whole baseline brightgreen - keyword whole super brightgreen - keyword whole text-top brightgreen - keyword whole middle brightgreen - keyword whole text-bottom brightgreen - - keyword whole collapse brightgreen - keyword whole separate brightgreen - - keyword whole capitalize brightgreen - keyword whole uppercase brightgreen - keyword whole lowercase brightgreen - - keyword whole pre brightgreen - - keyword whole aliceblue brightgreen - keyword whole antiquewhite brightgreen - keyword whole aqua brightgreen - keyword whole aquamarine brightgreen - keyword whole azure brightgreen - keyword whole beige brightgreen - keyword whole bisque brightgreen - keyword whole black brightgreen - keyword whole blanchedalmond brightgreen - keyword whole blue brightgreen - keyword whole blueviolet brightgreen - keyword whole brown brightgreen - keyword whole burlywood brightgreen - keyword whole cadetblue brightgreen - keyword whole chartreuse brightgreen - keyword whole chocolate brightgreen - keyword whole coral brightgreen - keyword whole cornflowerblue brightgreen - keyword whole cornsilk brightgreen - keyword whole crimson brightgreen - keyword whole cyan brightgreen - keyword whole darkblue brightgreen - keyword whole darkcyan brightgreen - keyword whole darkgoldenrod brightgreen - keyword whole darkgray brightgreen - keyword whole darkgreen brightgreen - keyword whole darkkhaki brightgreen - keyword whole darkmagenta brightgreen - keyword whole darkolivegreen brightgreen - keyword whole darkorange brightgreen - keyword whole darkorchid brightgreen - keyword whole darkred brightgreen - keyword whole darksalmon brightgreen - keyword whole darkseagreen brightgreen - keyword whole darkslateblue brightgreen - keyword whole darkslategray brightgreen - keyword whole darkturquoise brightgreen - keyword whole darkviolet brightgreen - keyword whole deeppink brightgreen - keyword whole deepskyblue brightgreen - keyword whole dimgray brightgreen - keyword whole dodgerblue brightgreen - keyword whole feldspar brightgreen - keyword whole firebrick brightgreen - keyword whole floralwhite brightgreen - keyword whole forestgreen brightgreen - keyword whole fuchsia brightgreen - keyword whole gainsboro brightgreen - keyword whole ghostwhite brightgreen - keyword whole gold brightgreen - keyword whole goldenrod brightgreen - keyword whole gray brightgreen - keyword whole green brightgreen - keyword whole greenyellow brightgreen - keyword whole honeydew brightgreen - keyword whole hotpink brightgreen - keyword whole indianred brightgreen - keyword whole indigo brightgreen - keyword whole ivory brightgreen - keyword whole khaki brightgreen - keyword whole lavender brightgreen - keyword whole lavenderblush brightgreen - keyword whole lawngreen brightgreen - keyword whole lemonchiffon brightgreen - keyword whole lightblue brightgreen - keyword whole lightcoral brightgreen - keyword whole lightcyan brightgreen - keyword whole lightgoldenrodyellow brightgreen - keyword whole lightgray brightgreen - keyword whole lightgreen brightgreen - keyword whole lightpink brightgreen - keyword whole lightsalmon brightgreen - keyword whole lightseagreen brightgreen - keyword whole lightskyblue brightgreen - keyword whole lightslateblue brightgreen - keyword whole lightslategray brightgreen - keyword whole lightsteelblue brightgreen - keyword whole lightyellow brightgreen - keyword whole lime brightgreen - keyword whole limegreen brightgreen - keyword whole linen brightgreen - keyword whole magenta brightgreen - keyword whole maroon brightgreen - keyword whole mediumaquamarine brightgreen - keyword whole mediumblue brightgreen - keyword whole mediumorchid brightgreen - keyword whole mediumpurple brightgreen - keyword whole mediumseagreen brightgreen - keyword whole mediumslateblue brightgreen - keyword whole mediumspringgreen brightgreen - keyword whole mediumturquoise brightgreen - keyword whole mediumvioletred brightgreen - keyword whole midnightblue brightgreen - keyword whole mintcream brightgreen - keyword whole mistyrose brightgreen - keyword whole moccasin brightgreen - keyword whole navajowhite brightgreen - keyword whole navy brightgreen - keyword whole oldlace brightgreen - keyword whole olive brightgreen - keyword whole olivedrab brightgreen - keyword whole orange brightgreen - keyword whole orangered brightgreen - keyword whole orchid brightgreen - keyword whole palegoldenrod brightgreen - keyword whole palegreen brightgreen - keyword whole paleturquoise brightgreen - keyword whole palevioletred brightgreen - keyword whole papayawhip brightgreen - keyword whole peachpuff brightgreen - keyword whole peru brightgreen - keyword whole pink brightgreen - keyword whole plum brightgreen - keyword whole powderblue brightgreen - keyword whole purple brightgreen - keyword whole red brightgreen - keyword whole rosybrown brightgreen - keyword whole royalblue brightgreen - keyword whole saddlebrown brightgreen - keyword whole salmon brightgreen - keyword whole sandybrown brightgreen - keyword whole seagreen brightgreen - keyword whole seashell brightgreen - keyword whole sienna brightgreen - keyword whole silver brightgreen - keyword whole skyblue brightgreen - keyword whole slateblue brightgreen - keyword whole slategray brightgreen - keyword whole snow brightgreen - keyword whole springgreen brightgreen - keyword whole steelblue brightgreen - keyword whole tan brightgreen - keyword whole teal brightgreen - keyword whole thistle brightgreen - keyword whole tomato brightgreen - keyword whole turquoise brightgreen - keyword whole violet brightgreen - keyword whole violetred brightgreen - keyword whole wheat brightgreen - keyword whole white brightgreen - keyword whole whitesmoke brightgreen - keyword whole yellow brightgreen - keyword whole yellowgreen brightgreen - - keyword { yellow - keyword } yellow - - keyword /\* brown - keyword \*/ brown - - keyword whole Arial brightgreen - keyword whole arial brightgreen - keyword whole Narrow brightgreen - keyword whole narrow brightgreen - keyword whole Trebuchet\sMS brightgreen - keyword whole trebuchet\sms brightgreen - keyword whole verdana brightgreen - keyword whole Verdana brightgreen - keyword whole sans-serif brightgreen - keyword whole serif brightgreen - keyword whole tahoma brightgreen - keyword whole Tahoma brightgreen - keyword whole Helvetica brightgreen - keyword whole helvetica brightgreen - -# #1234BEAF - keyword #\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} red - - keyword whole \[\-\.0123456789\]px brightgreen - keyword whole \[\-\.0123456789\]em brightgreen - keyword whole \[\-\.0123456789\]cm brightgreen - keyword whole \[\-\.0123456789\]mm brightgreen - keyword whole \[\-\.0123456789\]ex brightgreen - keyword whole \[\-\.0123456789\]pt brightgreen - keyword whole \[\-\.0123456789\]pc brightgreen - keyword whole \[\-\.0123456789\]% brightred - - keyword whole \{0123456789\} brightgreen - keyword whole \.\[0123456789\] brightgreen - keyword whole \-\{0123456789\} brightgreen - - keyword whole '.' white - - keyword { brightcyan - keyword } brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword , brightcyan - keyword : brightcyan - keyword ; brightmagenta - -context exclusive /\* \*/ brown - spellcheck - -context exclusive counter( ) magenta -context exclusive counters( ) magenta -context exclusive rgb( ) magenta -context exclusive url( ) magenta diff --git a/recipes/wip/files/mc/source/misc/syntax/cuda.syntax b/recipes/wip/files/mc/source/misc/syntax/cuda.syntax deleted file mode 100644 index 96cc8beaa5..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/cuda.syntax +++ /dev/null @@ -1,159 +0,0 @@ -# Cuda syntax file - -# Authors: -# Sergey Sharybin -# -# Based on cxx.syntax file with some extra keywords to be -# highlighted, - -context default - keyword whole auto yellow - keyword whole break yellow - keyword whole case yellow - keyword whole char yellow - keyword whole const yellow - keyword whole continue yellow - keyword whole default yellow - keyword whole do yellow - keyword whole double yellow - keyword whole else yellow - keyword whole enum yellow - keyword whole extern yellow - keyword whole float yellow - keyword whole for yellow - keyword whole goto yellow - keyword whole if yellow - keyword whole int yellow - keyword whole long yellow - keyword whole register yellow - keyword whole return yellow - keyword whole short yellow - keyword whole signed yellow - keyword whole sizeof yellow - keyword whole static yellow - keyword whole struct yellow - keyword whole switch yellow - keyword whole typedef yellow - keyword whole union yellow - keyword whole unsigned yellow - keyword whole void yellow - keyword whole volatile yellow - keyword whole while yellow - keyword whole asm yellow - keyword whole catch yellow - keyword whole class yellow - keyword whole friend yellow - keyword whole delete yellow - keyword whole inline yellow - keyword whole new yellow - keyword whole operator yellow - keyword whole private yellow - keyword whole protected yellow - keyword whole public yellow - keyword whole this yellow - keyword whole throw yellow - keyword whole template yellow - keyword whole try yellow - keyword whole virtual yellow - keyword whole bool yellow - keyword whole const_cast yellow - keyword whole dynamic_cast yellow - keyword whole explicit yellow - keyword whole false yellow - keyword whole mutable yellow - keyword whole namespace yellow - keyword whole reinterpret_cast yellow - keyword whole static_cast yellow - keyword whole true yellow - keyword whole typeid yellow - keyword whole typename yellow - keyword whole using yellow - keyword whole wchar_t yellow - keyword whole ... yellow - keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta - -# Function type qualifiers - keyword whole __device__ white - keyword whole __global__ white - keyword whole __host__ white - - keyword whole __noinline__ white - keyword whole __forceinline__ white - -# Variable type qualifiers - keyword whole __constant__ white - keyword whole __shared__ white - keyword whole __managed__ white - keyword whole __restrict__ white - -# Built-in variables - keyword whole threadIdx white - keyword whole blockIdx white - keyword whole blockDim white - keyword whole gridDim white - keyword whole warpSize white - -# Synchronization - keyword whole __syncthreads white - keyword whole __threadfence white - - keyword /\* brown - keyword \*/ brown - keyword // brown - - keyword '\\\{"abtnvfr\}' brightgreen - keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen - keyword '\\'' brightgreen - keyword '\\\\' brightgreen - keyword '\\0' brightgreen - keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\}' brightgreen - - keyword > yellow - keyword < yellow - keyword \+ yellow - keyword - yellow - keyword \* yellow - keyword / yellow - keyword % yellow - keyword = yellow - keyword != yellow - keyword == yellow - keyword { brightcyan - keyword } brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword [ brightcyan - keyword ] brightcyan - keyword , brightcyan - keyword : brightcyan - keyword ? brightcyan - keyword ; brightmagenta - -context exclusive /\* \*/ brown - spellcheck - -context exclusive // \n brown - spellcheck - -context linestart # \n brightred - keyword \\\n yellow - keyword /\**\*/ brown - keyword //*\n brown - keyword "+" red - keyword <+> red - -context " " green - spellcheck - keyword \\" brightgreen - keyword %% brightgreen - keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen - keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen - keyword %\[hl\]n brightgreen - keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen - keyword %[*] brightgreen - keyword %c brightgreen - keyword %p brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{abtnvfr\} brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/cxx.syntax b/recipes/wip/files/mc/source/misc/syntax/cxx.syntax deleted file mode 100644 index 7875cb61a0..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/cxx.syntax +++ /dev/null @@ -1,157 +0,0 @@ -context default - keyword whole alignas yellow - keyword whole alignof yellow - keyword whole and yellow - keyword whole and_eq yellow - keyword whole asm yellow - keyword whole auto yellow - keyword whole bitand yellow - keyword whole bitor yellow - keyword whole bool yellow - keyword whole break yellow - keyword whole case yellow - keyword whole catch yellow - keyword whole char8_t yellow - keyword whole char16_t yellow - keyword whole char32_t yellow - keyword whole char yellow - keyword whole class yellow - keyword whole compl yellow - keyword whole concept yellow - keyword whole concept yellow - keyword whole consteval yellow - keyword whole constexpr yellow - keyword whole constinit yellow - keyword whole const yellow - keyword whole const_cast yellow - keyword whole continue yellow - keyword whole co_await yellow - keyword whole co_return yellow - keyword whole co_yield yellow - keyword whole decltype yellow - keyword whole default yellow - keyword whole delete yellow - keyword whole double yellow - keyword whole do yellow - keyword whole dynamic_cast yellow - keyword whole else yellow - keyword whole enum yellow - keyword whole explicit yellow - keyword whole export yellow - keyword whole extern yellow - keyword whole false yellow - keyword whole float yellow - keyword whole for yellow - keyword whole friend yellow - keyword whole goto yellow - keyword whole if yellow - keyword whole inline yellow - keyword whole int yellow - keyword whole long yellow - keyword whole mutable yellow - keyword whole namespace yellow - keyword whole new yellow - keyword whole noexcept yellow - keyword whole not yellow - keyword whole not_eq yellow - keyword whole nullptr yellow - keyword whole operator yellow - keyword whole or yellow - keyword whole or_eq yellow - keyword whole private yellow - keyword whole protected yellow - keyword whole public yellow - keyword whole register yellow - keyword whole reinterpret_cast yellow - keyword whole requires yellow - keyword whole return yellow - keyword whole short yellow - keyword whole signed yellow - keyword whole sizeof yellow - keyword whole static yellow - keyword whole static_assert yellow - keyword whole static_cast yellow - keyword whole struct yellow - keyword whole switch yellow - keyword whole template yellow - keyword whole this yellow - keyword whole thread_local yellow - keyword whole throw yellow - keyword whole true yellow - keyword whole try yellow - keyword whole typedef yellow - keyword whole typeid yellow - keyword whole typename yellow - keyword whole union yellow - keyword whole unsigned yellow - keyword whole using yellow - keyword whole virtual yellow - keyword whole void yellow - keyword whole volatile yellow - keyword whole wchar_t yellow - keyword whole while yellow - keyword whole xor yellow - keyword whole xor_eq yellow - keyword whole ... yellow - keyword linestart \{\s\t\}\[\s\t\]#*\n brightmagenta - - keyword /\* brown - keyword \*/ brown - keyword // brown - - keyword '\\\{"abtnvfr\}' brightgreen - keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen - keyword '\\'' brightgreen - keyword '\\\\' brightgreen - keyword '\\0' brightgreen - keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\}' brightgreen - - keyword > yellow - keyword < yellow - keyword \+ yellow - keyword - yellow - keyword \* yellow - keyword / yellow - keyword % yellow - keyword = yellow - keyword != yellow - keyword == yellow - keyword { brightcyan - keyword } brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword [ brightcyan - keyword ] brightcyan - keyword , brightcyan - keyword : brightcyan - keyword ? brightcyan - keyword ; brightmagenta - -context exclusive /\* \*/ brown - spellcheck - -context exclusive // \n brown - spellcheck - -context linestart # \n brightred - keyword \\\n yellow - keyword /\**\*/ brown - keyword //*\n brown - keyword "+" red - keyword <+> red - -context " " green - spellcheck - keyword \\" brightgreen - keyword %% brightgreen - keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen - keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen - keyword %\[hl\]n brightgreen - keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen - keyword %[*] brightgreen - keyword %c brightgreen - keyword %p brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{abtnvfr\} brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/cython.syntax b/recipes/wip/files/mc/source/misc/syntax/cython.syntax deleted file mode 100644 index 3604dad605..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/cython.syntax +++ /dev/null @@ -1,304 +0,0 @@ -context default - keyword : brightred - keyword . white/Orange - keyword > yellow - keyword < yellow - keyword \+ yellow - keyword - yellow - keyword \* yellow - keyword / yellow - keyword % yellow - keyword = yellow - keyword != yellow - keyword == yellow - keyword { brightcyan - keyword } brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword [ brightcyan - keyword ] brightcyan - keyword , brightcyan - keyword ; brightmagenta - keyword whole self brightred - keyword whole and yellow - keyword whole as yellow - keyword whole assert yellow - keyword whole break yellow - keyword whole class yellow - keyword whole continue yellow - keyword whole def yellow - keyword whole del yellow - keyword whole elif yellow - keyword whole else yellow - keyword whole except? yellow - keyword whole except yellow - keyword whole exec yellow - keyword whole finally yellow - keyword whole for yellow - keyword whole from yellow - keyword whole global yellow - keyword whole if yellow - keyword whole import yellow - keyword whole in yellow - keyword whole is yellow - keyword whole lambda yellow - keyword whole not yellow - keyword whole or yellow - keyword whole pass yellow - keyword whole print yellow - keyword whole raise yellow - keyword whole return yellow - keyword whole try yellow - keyword whole while yellow - keyword whole with yellow - keyword whole yield yellow - keyword whole by yellow - keyword whole cdef yellow - keyword whole cimport yellow - keyword whole cpdef yellow - keyword whole ctypedef yellow - keyword whole enum yellow - keyword whole extern yellow - keyword whole public yellow - keyword whole sizeof yellow - keyword whole struct yellow - keyword whole union yellow - keyword whole DEF yellow - keyword whole IF yellow - keyword whole ELIF yellow - keyword whole ELSE yellow - - keyword whole abs brightcyan - keyword whole all brightcyan - keyword whole any brightcyan - keyword whole basestring brightcyan - keyword whole bin brightcyan - keyword whole bool brightcyan - keyword whole callable brightcyan - keyword whole chr brightcyan - keyword whole classmethod brightcyan - keyword whole cmp brightcyan - keyword whole coerce brightcyan - keyword whole compile brightcyan - keyword whole complex brightcyan - keyword whole delattr brightcyan - keyword whole dict brightcyan - keyword whole dir brightcyan - keyword whole divmod brightcyan - keyword whole enumerate brightcyan - keyword whole eval brightcyan - keyword whole execfile brightcyan - keyword whole file brightcyan - keyword whole filter brightcyan - keyword whole float brightcyan - keyword whole frozenset brightcyan - keyword whole getattr brightcyan - keyword whole globals brightcyan - keyword whole hasattr brightcyan - keyword whole hash brightcyan - keyword whole help brightcyan - keyword whole hex brightcyan - keyword whole id brightcyan - keyword whole input brightcyan - keyword whole int brightcyan - keyword whole isinstance brightcyan - keyword whole issubclass brightcyan - keyword whole iter brightcyan - keyword whole len brightcyan - keyword whole list brightcyan - keyword whole locals brightcyan - keyword whole long brightcyan - keyword whole map brightcyan - keyword whole max brightcyan - keyword whole min brightcyan - keyword whole next brightcyan - keyword whole object brightcyan - keyword whole oct brightcyan - keyword whole open brightcyan - keyword whole ord brightcyan - keyword whole pow brightcyan - keyword whole print brightcyan - keyword whole property brightcyan - keyword whole range brightcyan - keyword whole raw_input brightcyan - keyword whole reduce brightcyan - keyword whole reload brightcyan - keyword whole repr brightcyan - keyword whole reversed brightcyan - keyword whole round brightcyan - keyword whole setattr brightcyan - keyword whole slice brightcyan - keyword whole sorted brightcyan - keyword whole staticmethod brightcyan - keyword whole str brightcyan - keyword whole sum brightcyan - keyword whole super brightcyan - keyword whole tuple brightcyan - keyword whole type brightcyan - keyword whole unichr brightcyan - keyword whole unicode brightcyan - keyword whole vars brightcyan - keyword whole xrange brightcyan - keyword whole zip brightcyan - keyword whole NULL brightcyan - keyword whole void brightcyan - keyword whole bint brightcyan - keyword whole char brightcyan - keyword whole short brightcyan - keyword whole double brightcyan - keyword whole Py_ssize_t brightcyan - keyword whole size_t brightcyan - - keyword whole atof magenta - keyword whole atoi magenta - keyword whole atol magenta - keyword whole expandtabs magenta - keyword whole find magenta - keyword whole rfind magenta - keyword whole index magenta - keyword whole rindex magenta - keyword whole count magenta - keyword whole split magenta - keyword whole splitfields magenta - keyword whole join magenta - keyword whole joinfields magenta - keyword whole strip magenta - keyword whole lstrip magenta - keyword whole rstrip magenta - keyword whole swapcase magenta - keyword whole upper magenta - keyword whole lower magenta - keyword whole ljust magenta - keyword whole rjust magenta - keyword whole center magenta - keyword whole zfill magenta - - keyword whole include brightmagenta - keyword whole gil red - keyword whole nogil red - keyword whole readonly red - - keyword whole __init__ lightgray - keyword whole __del__ lightgray - keyword whole __repr__ lightgray - keyword whole __str__ lightgray - keyword whole __cmp__ lightgray - keyword whole __hash__ lightgray - keyword whole __call__ lightgray - keyword whole __getattr__ lightgray - keyword whole __setattr__ lightgray - keyword whole __delattr__ lightgray - keyword whole __len__ lightgray - keyword whole __getitem__ lightgray - keyword whole __setitem__ lightgray - keyword whole __delitem__ lightgray - keyword whole __getslice__ lightgray - keyword whole __setslice__ lightgray - keyword whole __delslice__ lightgray - keyword whole __add__ lightgray - keyword whole __sub__ lightgray - keyword whole __mul__ lightgray - keyword whole __div__ lightgray - keyword whole __mod__ lightgray - keyword whole __divmod__ lightgray - keyword whole __pow__ lightgray - keyword whole __lshift__ lightgray - keyword whole __rshift__ lightgray - keyword whole __and__ lightgray - keyword whole __xor__ lightgray - keyword whole __or__ lightgray - keyword whole __neg__ lightgray - keyword whole __pos__ lightgray - keyword whole __abs__ lightgray - keyword whole __invert__ lightgray - keyword whole __nonzero__ lightgray - keyword whole __coerce__ lightgray - keyword whole __int__ lightgray - keyword whole __long__ lightgray - keyword whole __float__ lightgray - keyword whole __oct__ lightgray - keyword whole __hex__ lightgray - - keyword whole __radd__ lightgray - keyword whole __rsub__ lightgray - keyword whole __rmul__ lightgray - keyword whole __rdiv__ lightgray - keyword whole __rmod__ lightgray - keyword whole __rdivmod__ lightgray - keyword whole __rpow__ lightgray - keyword whole __rlshift__ lightgray - keyword whole __rrshift__ lightgray - keyword whole __rand__ lightgray - keyword whole __rxor__ lightgray - keyword whole __ror__ lightgray - - keyword whole __+__ brightred - -context """ """ green - keyword \\" brightgreen - keyword \\\n brightgreen - keyword %% brightgreen - keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgGoxX\} brightgreen - keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diu\} brightgreen - keyword %\[hl\]n brightgreen - keyword %\[.\]\[0123456789\]s brightgreen - keyword %[*] brightgreen - keyword %c brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\\{01234567\}\{01234567\} brightgreen - keyword \\\\{01234567\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{abtnvfr\} brightgreen - -context ''' ''' green - keyword \\" brightgreen - keyword \\\n brightgreen - keyword %% brightgreen - keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgGoxX\} brightgreen - keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diu\} brightgreen - keyword %\[hl\]n brightgreen - keyword %\[.\]\[0123456789\]s brightgreen - keyword %[*] brightgreen - keyword %c brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\\{01234567\}\{01234567\} brightgreen - keyword \\\\{01234567\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{abtnvfr\} brightgreen - -context # \n brown - keyword coding\{=:\}\[\s\]\[-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] brightmagenta - keyword vim:fileencoding=\[-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] brightmagenta - keyword -\*-\[\s\]coding:\[\s\]\[-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]\[\s\]-\*- brightmagenta - spellcheck - -context " " green - keyword \\" brightgreen - keyword %% brightgreen - keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgGoxX\} brightgreen - keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diuxX\} brightgreen - keyword %\[hl\]n brightgreen - keyword %\[.\]\[0123456789\]s brightgreen - keyword %[*] brightgreen - keyword %c brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{abtnvfr\} brightgreen - -context ' ' green - keyword \\" brightgreen - keyword \\\n brightgreen - keyword %% brightgreen - keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgGoxX\} brightgreen - keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diuxX\} brightgreen - keyword %\[hl\]n brightgreen - keyword %\[.\]\[0123456789\]s brightgreen - keyword %[*] brightgreen - keyword %c brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{abtnvfr\} brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/d.syntax b/recipes/wip/files/mc/source/misc/syntax/d.syntax deleted file mode 100644 index 33675760d5..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/d.syntax +++ /dev/null @@ -1,561 +0,0 @@ -# ------------------------------- -# -# D programming language syntax highlighting -# for CoolEdit -# -# Homepage of D: http://www.digitalmars.com/d/ -# -# Author: Witold Baryluk < baryluk at smp if uj edu pl > -# Date: 23-08-2007 -# -# ------------------------------- - -context default - -# sh bang - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/dmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/dmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/dmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/bin/dmd brightcyan black - keyword whole linestart #!\[\s\]/bin/dmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/dmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/dmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/dmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/dmd brightcyan black - keyword whole linestart #!\[\s\]/dmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/gdmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/gdmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/\[abcdefghijklmnopqrstuvwxyz\]/gdmd brightcyan black - keyword whole linestart #!\[\s\]/\[abcdefghijklmnopqrstuvwxyz\]/dmd brightcyan black - keyword whole linestart #!\[\s\]/gdmd brightcyan black - -# keywords - keyword whole abstract yellow - keyword whole alias yellow - keyword whole align yellow - keyword whole assert yellow - keyword whole body yellow - keyword whole bool yellow - keyword whole byte yellow - keyword whole cast yellow - keyword whole catch yellow - keyword whole cdouble yellow - keyword whole cent yellow - keyword whole cfloat yellow - keyword whole class yellow - keyword whole creal yellow - keyword whole dchar yellow - keyword whole debug yellow - keyword whole delegate yellow - keyword whole delete yellow - keyword whole deprecated yellow - keyword whole dstring yellow - keyword whole false brightred - keyword whole finally yellow - keyword whole final yellow - keyword whole foreach_reverse yellow - keyword whole function yellow - keyword whole idouble yellow - keyword whole ifloat yellow - keyword whole inout yellow - keyword whole interface yellow - keyword whole invariant yellow - keyword whole in yellow - keyword whole is yellow - keyword whole ireal yellow - keyword whole lazy yellow - keyword whole long yellow - keyword whole macro yellow - keyword whole mixin yellow - keyword whole module yellow - keyword whole new yellow - keyword whole null brightred - keyword whole out yellow - keyword whole override yellow - keyword whole package yellow - keyword whole pragma yellow - keyword whole private yellow - keyword whole protected yellow - keyword whole public yellow - keyword whole real yellow - keyword whole ref yellow - keyword whole scope yellow - keyword whole string yellow - keyword whole super brightred - keyword whole synchronized yellow - keyword whole template yellow - keyword whole this brightred - keyword whole throw yellow - keyword whole true brightred - keyword whole try yellow - keyword whole typedef yellow - keyword whole typeid yellow - keyword whole typeof yellow - keyword whole ubyte yellow - keyword whole ucent yellow - keyword whole ulong yellow - keyword whole unittest yellow - keyword whole ushort yellow - keyword whole version yellow - keyword whole volatile yellow - keyword whole wchar yellow - keyword whole with yellow - keyword whole wstring yellow - keyword whole asm yellow - keyword whole auto yellow - keyword whole break yellow - keyword whole case yellow - keyword whole char yellow - keyword whole const yellow - keyword whole continue yellow - keyword whole default yellow - keyword whole double yellow - keyword whole do yellow - keyword whole else yellow - keyword whole enum yellow - keyword whole export yellow - keyword whole extern yellow - keyword whole float yellow - keyword whole foreach yellow - keyword whole for yellow - keyword whole goto yellow - keyword whole if yellow - keyword whole import magenta - keyword whole inline yellow - keyword whole int yellow - keyword whole return yellow - keyword whole short yellow - keyword whole signed yellow - keyword whole sizeof yellow - keyword whole static yellow - keyword whole struct yellow - keyword whole switch yellow - keyword whole typedef yellow - keyword whole uint yellow - keyword whole union yellow - keyword whole unsigned yellow - keyword whole void yellow - keyword whole while yellow - -# predefined aliases (deprecated) - keyword whole bit yellow -# predefined aliases (2.0) - keyword whole string yellow - keyword whole dstring yellow - keyword whole wstring yellow - -# D array attributes - keyword wholeright .sizeof yellow - keyword wholeright .length yellow - keyword wholeright .ptr yellow - keyword wholeright .dup yellow - keyword wholeright .reverse yellow - keyword wholeright .sort yellow - keyword wholeright .keys yellow - keyword wholeright .values yellow - keyword wholeright .rehash yellow -# D types attributes - keyword wholeright .init yellow - keyword wholeright .alignof yellow - keyword wholeright .mangleof yellow - keyword wholeright .stringof yellow -# +integer - keyword wholeright .min yellow - keyword wholeright .max yellow -# +floating point - keyword wholeright .infinity yellow - keyword wholeright .nan yellow - keyword wholeright .dig yellow - keyword wholeright .epsilon yellow - keyword wholeright .mant_dig yellow - keyword wholeright .max_10_exp yellow - keyword wholeright .max_exp yellow - keyword wholeright .min_10_exp yellow - keyword wholeright .min_exp yellow - keyword wholeright .re yellow - keyword wholeright .im yellow - keyword wholeright .im yellow -# union - keyword wholeright .offsetof yellow - -# D 2.0 attributes - keyword wholeright .idup yellow - -# unary operators - keyword whole opNeg gray - keyword whole opPos gray - keyword whole opCom gray - keyword whole opPostInc gray - keyword whole opPostDec gray - keyword whole opCast gray - -# binary operators - keyword whole opAdd gray - keyword whole opAdd_r gray - keyword whole opSub gray - keyword whole opSub_r gray - keyword whole opMul gray - keyword whole opMul_r gray - keyword whole opDiv gray - keyword whole opDiv_r gray - keyword whole opMod gray - keyword whole opMod_r gray - keyword whole opAnd gray - keyword whole opAnd_r gray - keyword whole opOr gray - keyword whole opOr_r gray - keyword whole opXor gray - keyword whole opXor_r gray - keyword whole opShl gray - keyword whole opShl_r gray - keyword whole opShr gray - keyword whole opShr_r gray - keyword whole opUShr gray - keyword whole opUShr_r gray - keyword whole opCat gray - keyword whole opCat_r gray - keyword whole opEquals gray - keyword whole opCmp gray - keyword whole opAssign gray - keyword whole opAddAssign gray - keyword whole opSubAssign gray - keyword whole opMulAssign gray - keyword whole opDivAssign gray - keyword whole opModAssign gray - keyword whole opAndAssign gray - keyword whole opOrAssign gray - keyword whole opXorAssign gray - keyword whole opShlAssign gray - keyword whole opShrAssign gray - keyword whole opUShrAssign gray - keyword whole opCatAssign gray - keyword whole opIn gray - keyword whole opIn_r gray - -# special operators - keyword whole opCall gray - keyword whole opIndex gray - keyword whole opIndexAssign gray - keyword whole opSlice gray - keyword whole opSliceAssign gray - keyword whole opAssign gray - keyword whole opApply gray - - keyword whole ... yellow - keyword whole .. yellow -# keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta # C preprocesor - -# special objects - -# hidden argument of variadic functions - keyword whole _argptr brightred - keyword whole _arguments brightred - -# object - keyword whole Object brightmagenta - keyword whole Interface brightmagenta - keyword whole ClassInfo brightmagenta - keyword whole OffsetTypeInfo brightmagenta - keyword whole TypeInfo brightmagenta - keyword whole Exception brightmagenta - keyword whole Error brightmagenta - -# common functions - -# object methods - keyword whole toString cyan - keyword whole toHash cyan -# std.stdio - keyword whole writefln cyan - keyword whole writef cyan -# std.gc - keyword whole addRoot cyan - keyword whole removeRoot cyan - keyword whole addRange cyan - keyword whole hasPointers cyan - keyword whole hasNoPointers cyan - keyword whole setTypeInfo cyan - keyword whole malloc cyan - keyword whole realoc cyan - keyword whole extend cyan - keyword whole capacity cyan - keyword whole setV1_0 cyan - keyword whole fullCollect cyan - keyword whole genCollect cyan -# std.string - keyword whole iswhite cyan - keyword whole atoi cyan - keyword whole atof cyan - keyword whole toStringz cyan - keyword whole tolower cyan - keyword whole toupper cyan - keyword whole repeat cyan - keyword whole join cyan - keyword whole split cyan - keyword whole stripl cyan - keyword whole stripr cyan - keyword whole strip cyan - keyword whole chomp cyan - keyword whole chop cyan - keyword whole isNumeric cyan - keyword whole isEmail cyan - keyword whole isURL cyan -# std.math - keyword whole abs cyan - keyword whole conj cyan - keyword whole cos cyan - keyword whole sin cyan - keyword whole tan cyan - keyword whole acos cyan - keyword whole asin cyan - keyword whole atan cyan - keyword whole atan2 cyan - keyword whole cosh cyan - keyword whole sinh cyan - keyword whole tanh cyan - keyword whole acosh cyan - keyword whole asinh cyan - keyword whole atanh cyan - keyword whole rndtol cyan - keyword whole rndtonl cyan - keyword whole sqrt cyan - keyword whole exp cyan - keyword whole exp2 cyan - keyword whole expm1 cyan - keyword whole frexp cyan - keyword whole ilogb cyan - keyword whole ldexp cyan - keyword whole log cyan - keyword whole log10 cyan - keyword whole log1p cyan - keyword whole log2 cyan - keyword whole logb cyan - keyword whole modf cyan - keyword whole scalbn cyan - keyword whole cbrt cyan - keyword whole fabs cyan - keyword whole hypot cyan - keyword whole erf cyan - keyword whole erfc cyan - keyword whole lgamma cyan - keyword whole tgamma cyan - keyword whole ceil cyan - keyword whole floor cyan - keyword whole nearbyint cyan - keyword whole rint cyan - keyword whole lrint cyan - keyword whole round cyan - keyword whole lround cyan - keyword whole trunc cyan - keyword whole remainder cyan - keyword whole remquo cyan - keyword whole isnan cyan - keyword whole isfinite cyan - keyword whole isnormal cyan - keyword whole issubnormal cyan - keyword whole isinf cyan - keyword whole signbit cyan - keyword whole copysign cyan - keyword whole nan cyan - keyword whole nextafter cyan - keyword whole fdim cyan - keyword whole fmax cyan - keyword whole fmin cyan - keyword whole fma cyan - keyword whole pow cyan - keyword whole feqrel cyan - keyword whole poly cyan - -# comments - keyword /\*\* brown - keyword /\* brown - keyword \*/ brown - keyword // brown - - keyword /\+\+\+\+\+\+\+\+\+\+ brown - keyword /\+\+\+\+\+\+\+\+\+ brown - keyword /\+\+\+\+\+\+\+\+ brown - keyword /\+\+\+\+\+\+\+ brown - keyword /\+\+\+\+\+\+ brown - keyword /\+\+\+\+\+ brown - keyword /\+\+\+\+ brown - keyword /\+\+\+ brown - keyword /\+\+ brown - keyword /\+ brown - keyword \+\+\+\+\+\+\+\+\+\+/ brown - keyword \+\+\+\+\+\+\+\+\+/ brown - keyword \+\+\+\+\+\+\+\+/ brown - keyword \+\+\+\+\+\+\+/ brown - keyword \+\+\+\+\+\+/ brown - keyword \+\+\+\+\+/ brown - keyword \+\+\+\+/ brown - keyword \+\+\+/ brown - keyword \+\+/ brown - keyword \+/ brown - -# chars, 'x' and entities - keyword '\\\{"abtnvfr\}' brightgreen - keyword \\\{"abtnvfr\} brightmagenta - keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightmagenta - keyword '\\\{01234567\}\{01234567\}' brightgreen - keyword \\\{01234567\}\{01234567\} brightmagenta - keyword '\\\{01234567\}' brightgreen - keyword \\\{01234567\} brightmagenta - keyword '\\'' brightgreen - keyword '\\\\' brightgreen - keyword '\\0' brightgreen - keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\}' brightgreen - keyword '\\&*;' brightgreen - keyword \\&*; brightmagenta - keyword '\\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}' brightgreen - keyword \\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightmagenta - keyword '\\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}' brightgreen - keyword \\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightmagenta - keyword '\\u\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}' brightgreen - keyword \\u\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightmagenta - keyword '\\U\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}' brightgreen - keyword \\U\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightmagenta - -# hexstring - keyword x"\[0123456789abcdefABCDEF\t\s\]"\{cwd\} brightgreen - keyword x"\[0123456789abcdefABCDEF\t\s\]" brightgreen - -# start of wyswig string -# keyword "\{cwd\} green # imposible in cooledit - keyword " green - keyword r" green -# keyword `\{cwd\} green # imposible in cooledit - keyword ` green - -# operators - keyword !<>= yellow - keyword !<> yellow - keyword !>= yellow - keyword !> yellow - keyword !<= yellow - keyword !< yellow - keyword != yellow - keyword ! yellow - keyword %= yellow - keyword % yellow - keyword && yellow - keyword &= yellow - keyword & yellow - keyword ( brightcyan - keyword ) brightcyan - keyword \+\+ yellow - keyword -- yellow - keyword \*= yellow - keyword \* yellow - keyword \+= yellow - keyword \+ yellow - keyword , brightcyan - keyword -= yellow - keyword - yellow - keyword /= yellow - keyword / yellow - keyword : brightcyan - keyword ; brightmagenta - keyword <>= yellow - keyword <> yellow - keyword <<= yellow - keyword << yellow - keyword <= yellow - keyword < yellow - keyword = yellow - keyword >>>= yellow - keyword >>> yellow - keyword >>= yellow - keyword >> yellow - keyword >= yellow - keyword > yellow - keyword ? brightcyan - keyword [ brightcyan - keyword ] brightcyan - keyword ^= yellow - keyword ^ yellow - keyword || yellow - keyword |= yellow - keyword | yellow - keyword { brightcyan - keyword } brightcyan - keyword $ brightcyan - keyword ~= yellow - keyword ~ yellow - -# predefined lexer entities - keyword whole __FILE__ red - keyword whole __LINE__ red - keyword whole __DATE__ red - keyword whole __TIME__ red - keyword whole __TIMESTAMP__ red -# 1.017 ? - keyword whole __VENDOR__ red - keyword whole __VERSION__ red - - keyword #line*"*" red - -context exclusive /\*\* \*/ brown - keyword \*/ brown - spellcheck -# ddoc - keyword Authors: red - keyword Author: red - keyword BUGS: red - keyword Bugs: red - keyword Date: red - keyword Deprecated: red - keyword Examples: red - keyword History: red - keyword License: red - keyword Returns: red - keyword See_Also: red - keyword Standards: red - keyword Throws: red - keyword Version: red -# sections - keyword Copyright: red - keyword Params: red - keyword Macros: red -# non standard - keyword TODO: red - keyword FIXME: red - keyword Note: red - -context exclusive /\+\+\+\+\+\+\+\+\+ \+\+\+\+\+\+\+\+\+/ brown -context exclusive /\+\+\+\+\+\+\+\+ \+\+\+\+\+\+\+\+/ brown -context exclusive /\+\+\+\+\+\+\+ \+\+\+\+\+\+\+/ brown -context exclusive /\+\+\+\+\+\+ \+\+\+\+\+\+/ brown -context exclusive /\+\+\+\+\+ \+\+\+\+\+/ brown -context exclusive /\+\+\+\+ \+\+\+\+/ brown -context exclusive /\+\+\+ \+\+\+/ brown -context exclusive /\+\+ \+\+/ brown -context exclusive /\+ \+/ brown - -context exclusive /\* \*/ brown - spellcheck - -context exclusive // \n brown - spellcheck - -context exclusive ` ` green - -context exclusive r" " green - -context exclusive " " green - spellcheck - keyword \\" brightgreen - keyword %% brightgreen - keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen - keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen - keyword %\[hl\]n brightgreen - keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen - keyword %[*] brightgreen - keyword %c brightgreen - keyword %p brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{abtnvfr\} brightgreen - keyword \\&*; brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/debian-changelog.syntax b/recipes/wip/files/mc/source/misc/syntax/debian-changelog.syntax deleted file mode 100644 index 72f24237ab..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/debian-changelog.syntax +++ /dev/null @@ -1,20 +0,0 @@ -context default - - keyword linestart \s\s\* brightcyan/17 - keyword linestart \s-- brightred/19 - keyword linestart \s\s\s\s\+ cyan/17 - - keyword <*@*> brightred/19 - keyword whole experimental; brightmagenta/magenta - keyword whole unstable; brightmagenta/magenta - keyword whole stable; brightmagenta/magenta - keyword whole urgency=low yellow/24 - keyword whole urgency=medium brightgreen/6 - keyword whole urgency=high white/25 - keyword whole urgency=LOW yellow/24 - keyword whole urgency=MEDIUM brightgreen/6 - keyword whole urgency=HIGH white/25 - - keyword whole bug white/25 - keyword whole Bug white/25 - keyword whole BUG white/25 diff --git a/recipes/wip/files/mc/source/misc/syntax/debian-control.syntax b/recipes/wip/files/mc/source/misc/syntax/debian-control.syntax deleted file mode 100644 index 92d4925a1c..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/debian-control.syntax +++ /dev/null @@ -1,23 +0,0 @@ -context default - keyword linestart Source brightmagenta/20 - keyword linestart Section brightmagenta/20 - keyword linestart Priority brightmagenta/20 - keyword linestart Maintainer brightmagenta/20 - keyword linestart Standards-Version brightmagenta/20 - keyword linestart Package green/6 - keyword linestart Architecture green/6 - keyword linestart Depends green/6 - keyword linestart Recommends green/6 - keyword linestart Suggests green/6 - keyword linestart Conflicts green/6 - keyword linestart Replaces green/6 - keyword linestart Provides green/6 - keyword linestart Pre-Depends green/6 - keyword linestart Build-Depends green/6 - keyword linestart Build-Depends-Indep green/6 - keyword linestart Build-Conflicts green/6 - keyword linestart Build-Conflicts-Indep green/6 - keyword linestart Description green/6 - keyword <*@*> brightred/19 - -context linestart \s \n brown/22 diff --git a/recipes/wip/files/mc/source/misc/syntax/debian-description.syntax b/recipes/wip/files/mc/source/misc/syntax/debian-description.syntax deleted file mode 100644 index 17e1150318..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/debian-description.syntax +++ /dev/null @@ -1,14 +0,0 @@ -context default - keyword linestart Format green - keyword linestart Source brightmagenta - keyword linestart Version yellow - keyword linestart Binary brightgreen - keyword linestart Maintainer brightmagenta - keyword <*@*> brightred - keyword linestart Architecture cyan - keyword linestart Standards-Version brightmagenta - keyword linestart Build-Depends green - keyword linestart Files green - -context --- \n brightred - spellcheck diff --git a/recipes/wip/files/mc/source/misc/syntax/debian-sources-list.syntax b/recipes/wip/files/mc/source/misc/syntax/debian-sources-list.syntax deleted file mode 100644 index 1ae6b70616..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/debian-sources-list.syntax +++ /dev/null @@ -1,70 +0,0 @@ -context default - keyword linestart deb-src brightmagenta/20 - keyword linestart deb brightmagenta/20 - - # Variables - keyword \$\(ARCH\) brightred/18 - - # Options (delimiters) - keyword [ yellow/24 - keyword ] yellow/24 - - -# Options -context exclusive [ ] - # Basic syntax elements - keyword ! yellow/24 - keyword , yellow/24 - keyword = yellow/24 - - # Known options - keyword whole arch white - keyword whole allow-downgrade-to-insecure white - keyword whole allow-insecure white - keyword whole allow-weak white - keyword whole by-hash white - keyword whole check-date white - keyword whole check-valid-until white - keyword whole date-max-future white - keyword whole inrelease-path white - keyword whole lang white - keyword whole pdiffs white - keyword whole signed-by white - keyword whole target white - keyword whole trusted white - keyword whole valid-until-max white - keyword whole valid-until-min white - - # Known values - keyword whole force white - keyword whole no white - keyword whole yes white - -# Comment -context # \n brown/22 - -# Common URI specifications -context cdrom\:\/ \s cyan/24 -context copy\: \s cyan/24 -context file\:\/ \s cyan/24 -context ftp\:\/\/ \s green/6 -context http\:\/\/ \s green/6 -context https\:\/\/ \s green/6 -context mirror\:\/\/ \s green/6 -context mirror\+cdrom\:\/ \s cyan/24 -context mirror\+copy\: \s cyan/24 -context mirror\+file\:\/ \s cyan/24 -context mirror\+ftp\:\/\/ \s green/6 -context mirror\+https\:\/\/ \s green/6 -context mirror\+rsh\:\/\/ \s green/6 -context mirror\+ssh\:\/\/ \s green/6 -context rsh\:\/\/ \s green/6 -context ssh\:\/\/ \s green/6 - -# Other URI specifications -context mirror\+s3\:\/\/ \s brightgreen/6 -context mirror\+tor\+http\:\/\/ \s brightgreen/6 -context mirror\+tor\+https\:\/\/ \s brightgreen/6 -context s3\:\/\/ \s brightgreen/6 -context tor\+http\:\/\/ \s brightgreen/6 -context tor\+https\:\/\/ \s brightgreen/6 diff --git a/recipes/wip/files/mc/source/misc/syntax/diff.syntax b/recipes/wip/files/mc/source/misc/syntax/diff.syntax deleted file mode 100644 index b0aaee6e28..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/diff.syntax +++ /dev/null @@ -1,32 +0,0 @@ -# Highlighting for various diffs including those generated by CVS - -context default yellow - keyword linestart @@*@@ cyan - keyword linestart Index:\s brown - keyword linestart \s black white - keyword linestart \*\*\*\*\*\*\*\*\*\*\*\*\*\*\* cyan - keyword linestart \*\*\**\*\*\*\* cyan - keyword linestart ---*---- cyan -context exclusive linestart @@*@@ \n brightcyan -context exclusive linestart Index:\s \n black white -context exclusive linestart \s \n lightgray -context exclusive linestart \t \n lightgray -context linestart diff \n white red -context linestart ---\s \n brightmagenta -context linestart \+\+\+\s \n brightmagenta -context linestart \*\*\*\s \n brightmagenta -context linestart === \n brown -context linestart \+ \n brightgreen -context linestart > \n brightgreen -context linestart - \n brightred -context linestart < \n brightred -context linestart ! \n yellow -context linestart ? \n brown -context linestart RCS\s \n brown -context linestart retrieving\s \n brown -context linestart Only\s \n yellow black -context linestart Common\s \n yellow black -context linestart File\s \n yellow black -context linestart Files\s \n yellow black -context linestart Binary\s \n yellow black -context linestart # \n brightcyan diff --git a/recipes/wip/files/mc/source/misc/syntax/dlink.syntax b/recipes/wip/files/mc/source/misc/syntax/dlink.syntax deleted file mode 100644 index 2151d8e220..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/dlink.syntax +++ /dev/null @@ -1,216 +0,0 @@ -# D-Link switch command set syntax -# Copyleft, by KLArk (A), 2010 y. - -context default - - keyword whole linestart create yellow - keyword whole linestart config yellow - keyword whole linestart delete yellow - keyword whole linestart enable yellow - keyword whole linestart disable yellow - keyword whole linestart save yellow - keyword whole linestart logout yellow - keyword whole linestart reset\sconfig brightred - - keyword whole permit brightgreen - keyword whole enable brightgreen - keyword whole disable brightred - keyword whole delete brightred - keyword whole deny brightred - keyword whole drop brightred - - keyword whole authen_enable brightcyan - keyword whole authen\sapplication brightcyan - keyword whole authen\sparameter brightcyan - keyword whole authen\senable_admin brightcyan - keyword whole authen_policy brightcyan - keyword whole authen_login brightcyan - - keyword whole snmp\ssystem_name brightcyan - keyword whole snmp\ssystem_location brightcyan - keyword whole snmp\ssystem_contact brightcyan - keyword whole snmp\scommunity brightcyan - keyword whole snmp\suser brightcyan - keyword whole snmp\sgroup brightcyan - keyword whole snmp\sview brightcyan - keyword whole snmp\sengineID brightcyan - keyword whole snmp brightcyan - - keyword whole vlan brightcyan - keyword whole gvrp brightcyan - keyword whole lldp brightcyan - keyword whole stp brightcyan - keyword whole double_vlan brightcyan - keyword whole clipaging brightcyan - keyword whole hol_prevention brightcyan - keyword whole ssl\sciphersuite brightcyan - keyword whole ssl\scachetimeout brightcyan - keyword whole jumbo_frame brightcyan - keyword whole pvid\sauto_assign brightcyan - keyword whole qinq brightcyan - keyword whole rspan brightcyan - keyword whole filter\sdhcp_server brightcyan - keyword whole bpdu_tunnel brightcyan - keyword whole greeting_message brightcyan - keyword whole ssh\salgorithm brightcyan - keyword whole ssh\sauthmode brightcyan - keyword whole ssh\suser brightcyan - keyword whole ipif_mac_mapping brightcyan - keyword whole mac_based_access_control brightcyan - keyword whole ipv6\snd brightcyan - keyword whole wac\smethod brightcyan - keyword whole wac brightcyan - keyword whole route\spreference brightcyan - keyword whole ecmp\salgorithm brightcyan - keyword whole ecmp\sospf brightcyan - keyword whole igmp brightcyan - keyword whole pim brightcyan - keyword whole dvmrp brightcyan - keyword whole rip brightcyan - keyword whole ospf brightcyan - keyword whole dnsr brightcyan - keyword whole dhcp_server brightcyan - keyword whole dhcp brightcyan - keyword whole option_82 brightcyan - keyword whole option_60 brightcyan - keyword whole option_61 brightcyan - keyword whole vrrp brightcyan - keyword whole autoconfig brightcyan - keyword whole lacp_port brightcyan - keyword whole serial_port brightcyan - keyword whole terminal_line brightcyan - keyword whole port_security brightcyan - keyword whole rmon brightcyan - keyword whole password\sencryption brightcyan - keyword whole traffic\strap brightcyan - keyword whole traffic\scontrol brightcyan - keyword whole traffic\scontrol_trap brightcyan - keyword whole loopdetect brightcyan - keyword whole sim brightcyan - keyword whole system_severity brightcyan - keyword whole scheduling brightcyan - keyword whole fdb brightcyan - keyword whole ssh brightcyan - keyword whole ssl brightcyan - keyword whole safeguard_engine brightcyan - keyword whole time_zone brightcyan - keyword whole dst brightcyan - keyword whole igmp_snooping brightcyan - keyword whole multicast_range brightcyan - keyword whole limited_multicast_addr brightcyan - keyword whole arp_aging brightcyan - keyword whole gratuitous_arp brightcyan - keyword whole command_prompt brightcyan - keyword whole iproute brightcyan - keyword whole time brightcyan - keyword whole sntp brightcyan - keyword whole multicast brightcyan - keyword whole arpentry brightcyan - keyword whole address_binding brightcyan - keyword whole dhcp_relay brightcyan - keyword whole dhcp_local_relay brightcyan - keyword whole traffic_segmentation brightcyan - keyword whole account brightcyan - keyword whole syslog brightcyan - keyword whole 802.1x brightcyan - keyword whole 802.1p brightcyan - keyword whole ipif brightcyan - keyword whole mirror brightcyan - keyword whole policy_route brightcyan - keyword whole asymmetric_vlan brightcyan - keyword whole bandwidth_control brightcyan - keyword whole scheduling_mechanism brightcyan - keyword whole log_save_timing brightcyan - keyword whole mac_notification brightcyan - keyword whole link_aggregation brightcyan - keyword whole cpu_interface_filtering brightcyan - - keyword whole access_profile\spacket_content_mask brightcyan - keyword whole access_profile\sip brightcyan - keyword whole access_profile\sethernet brightcyan - keyword whole access_profile\sprofile_id\s\[1234567890\] magenta - keyword whole profile_id\s\[1234567890\] brightmagenta - keyword whole access_id\s\[1234567890\] blue - keyword whole access_id\sauto_assign blue - keyword whole \*\*\*\*\*\*\*\* brightred - keyword whole \[1234567890\].\[1234567890\].\[1234567890\].\[1234567890\]/\[1234567890\] red - keyword whole \[1234567890\].\[1234567890\].\[1234567890\].\[1234567890\] red - keyword whole \[1234567890abcdefABCDEDF\]:\[1234567890abcdefABCDEF\]:\[1234567890abcdefABCDEF\]:\[1234567890abcdefABCDEF\]:\[1234567890abcdefABCDEF\]:\[1234567890abcdefABCDEF\] cyan - keyword whole \[1234567890abcdefABCDEDF\]-\[1234567890abcdefABCDEF\]-\[1234567890abcdefABCDEF\]-\[1234567890abcdefABCDEF\]-\[1234567890abcdefABCDEF\]-\[1234567890abcdefABCDEF\] cyan - keyword whole mst_ports\s\[1234567890\-\] white - keyword whole ports\s\[1234567890\-\] white - keyword whole port\s\[1234567890\-\] white - keyword whole web\s\[1234567890\] green - keyword whole telnet\s\[1234567890\] green - keyword whole udp_port\s\[1234567890\] green - keyword whole tcp_port\s\[1234567890\] green - keyword whole src_port\s\[1234567890\] green - keyword whole dst_port\s\[1234567890\] green - keyword whole icmp\stype\s\[1234567890\] green - keyword whole ports\sall white - keyword whole port\sall white - keyword whole telnet brightcyan - keyword whole web brightcyan - -context exclusive config\sgvrp state - keyword whole gvrp brightcyan - keyword whole \[1234567890\-\] white - -context exclusive traffic_segmentation \n - keyword whole \[1234567890\-\] white - keyword whole all white - -context exclusive traffic\scontrol action - keyword whole enable brightgreen - keyword whole disable brightred - keyword whole \[1234567890\-\] white - -context exclusive bandwidth_control \n - keyword whole \[1234567890\-\] white - -context exclusive default_priority \n - keyword whole \[1234567890\-\] white - -context exclusive filtering_mode \n - keyword whole all white - -context exclusive config\srouter_ports_forbidden \n - keyword whole router_ports_forbidden brightcyan - keyword whole \[1234567890\-\] white - -context exclusive config\sssh\sserver \n - keyword whole ssh\sserver brightcyan - keyword whole port\s\[1234567890\-\] green - -context exclusive create\svlan \n - keyword whole vlan brightcyan - keyword whole \[1234567890\] brightblue - -context exclusive pvid \n - keyword whole \[1234567890\] brightblue - -context exclusive config\svlan\s\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_\-\]\sdelete \n - keyword whole vlan brightcyan - keyword whole \[1234567890\-\] white - -context exclusive CommunityView \n - keyword whole \[1234567890\.\] blue - -context exclusive restricted \n - keyword whole \[1234567890\.\] blue - -context exclusive lacp_port mode - keyword whole \[1234567890\-\] white - -context exclusive add\sforbidden \n - keyword whole \[1234567890\-\] white - -context exclusive add\suntagged \n - keyword whole \[1234567890\-\] white - -context exclusive add\stagged \n - keyword whole \[1234567890\-\] white - -context linestart # \n brown - spellcheck - diff --git a/recipes/wip/files/mc/source/misc/syntax/dos.syntax b/recipes/wip/files/mc/source/misc/syntax/dos.syntax deleted file mode 100644 index 12c84670ce..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/dos.syntax +++ /dev/null @@ -1,74 +0,0 @@ -# DOS & Windows highlighting -# 2002 (C) Petr Kozelka, - -caseinsensitive - -context default - keyword whole break yellow - keyword whole call yellow - keyword whole cd yellow - keyword whole chdir yellow - keyword whole cls yellow - keyword whole copy yellow - keyword whole del yellow - keyword whole dir yellow - keyword whole do yellow - keyword whole echo yellow - keyword whole else yellow - keyword whole erase yellow - keyword whole endlocal yellow - keyword whole errorlevel yellow - keyword whole exist yellow - keyword whole exit yellow - keyword whole for yellow - keyword whole goto yellow - keyword whole if yellow - keyword whole in yellow - keyword whole md yellow - keyword whole mkdir yellow - keyword whole move yellow - keyword whole not yellow - keyword whole off yellow - keyword whole on yellow - keyword whole pause yellow - keyword whole popd yellow - keyword whole pushd yellow - keyword whole rd yellow - keyword wholeleft rem\s*\n brown - keyword whole ren yellow - keyword whole rename yellow - keyword whole rmdir yellow - keyword whole set yellow - keyword whole setlocal yellow - keyword whole shift yellow - keyword whole then yellow - keyword whole type yellow - keyword whole ver yellow - - keyword \\ lightgray - keyword whole \%\* brightmagenta - keyword whole \%\$ brightmagenta - keyword whole \%\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789\]+\% brightmagenta - keyword whole \%\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789@~\]+ brightmagenta - keyword >> white - keyword > white - keyword < white - keyword | white - -context ' ' brightcyan - spellcheck - -context " " brightcyan - keyword whole \%\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789\]+\% brightmagenta - keyword whole \%\[ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_0123456789@~\]+ brightmagenta - spellcheck - -context linestart :: \n brightgreen - keyword $+:*$ black green - spellcheck - -context linestart : \n white black - spellcheck - -context :: \n brightgreen - spellcheck diff --git a/recipes/wip/files/mc/source/misc/syntax/dot.syntax b/recipes/wip/files/mc/source/misc/syntax/dot.syntax deleted file mode 100644 index 7049180053..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/dot.syntax +++ /dev/null @@ -1,227 +0,0 @@ -# DOT/Graphviz graphs -context default - keyword whole strict brightred - keyword whole graph brightred - keyword whole digraph brightred - keyword whole subgraph brightred - - keyword whole node yellow - keyword whole edge yellow - - keyword wholeleft cluster_ yellow - - keyword whole -> brightred - keyword whole -- brightred - - keyword whole _background white - keyword whole area white - keyword whole arrowhead white - keyword whole arrowsize white - keyword whole arrowtail white - keyword whole bb white - keyword whole bgcolor white - keyword whole center white - keyword whole charset white - keyword whole class white - keyword whole clusterrank white - keyword whole color white - keyword whole colorscheme white - keyword whole comment white - keyword whole compound white - keyword whole concentrate white - keyword whole constraint white - keyword whole Damping white - keyword whole decorate white - keyword whole defaultdist white - keyword whole dim white - keyword whole dimen white - keyword whole dir white - keyword whole diredgeconstraints white - keyword whole distortion white - keyword whole dpi white - keyword whole edgehref white - keyword whole edgetarget white - keyword whole edgetooltip white - keyword whole edgeURL white - keyword whole epsilon white - keyword whole esep white - keyword whole fillcolor white - keyword whole fixedsize white - keyword whole fontcolor white - keyword whole fontname white - keyword whole fontnames white - keyword whole fontpath white - keyword whole fontsize white - keyword whole forcelabels white - keyword whole gradientangle white - keyword whole group white - keyword whole head_lp white - keyword whole headclip white - keyword whole headhref white - keyword whole headlabel white - keyword whole headport white - keyword whole headtarget white - keyword whole headtooltip white - keyword whole headURL white - keyword whole height white - keyword whole href white - keyword whole id white - keyword whole image white - keyword whole imagepath white - keyword whole imagepos white - keyword whole imagescale white - keyword whole inputscale white - keyword whole K white - keyword whole label white - keyword whole label_scheme white - keyword whole labelangle white - keyword whole labeldistance white - keyword whole labelfloat white - keyword whole labelfontcolor white - keyword whole labelfontname white - keyword whole labelfontsize white - keyword whole labelhref white - keyword whole labeljust white - keyword whole labelloc white - keyword whole labeltarget white - keyword whole labeltooltip white - keyword whole labelURL white - keyword whole landscape white - keyword whole layer white - keyword whole layerlistsep white - keyword whole layers white - keyword whole layerselect white - keyword whole layersep white - keyword whole layout white - keyword whole len white - keyword whole levels white - keyword whole levelsgap white - keyword whole lhead white - keyword whole lheight white - keyword whole lp white - keyword whole ltail white - keyword whole lwidth white - keyword whole margin white - keyword whole maxiter white - keyword whole mclimit white - keyword whole mindist white - keyword whole minlen white - keyword whole mode white - keyword whole model white - keyword whole mosek white - keyword whole newrank white - keyword whole nodesep white - keyword whole nojustify white - keyword whole normalize white - keyword whole notranslate white - keyword whole nslimit white - keyword whole nslimit1 white - keyword whole ordering white - keyword whole orientation white - keyword whole outputorder white - keyword whole overlap white - keyword whole overlap_scaling white - keyword whole overlap_shrink white - keyword whole pack white - keyword whole packmode white - keyword whole pad white - keyword whole page white - keyword whole pagedir white - keyword whole pencolor white - keyword whole penwidth white - keyword whole peripheries white - keyword whole pin white - keyword whole pos white - keyword whole quadtree white - keyword whole quantum white - keyword whole rank white - keyword whole rankdir white - keyword whole ranksep white - keyword whole ratio white - keyword whole rects white - keyword whole regular white - keyword whole remincross white - keyword whole repulsiveforce white - keyword whole resolution white - keyword whole root white - keyword whole rotate white - keyword whole rotation white - keyword whole samehead white - keyword whole sametail white - keyword whole samplepoints white - keyword whole scale white - keyword whole searchsize white - keyword whole sep white - keyword whole shape white - keyword whole shapefile white - keyword whole showboxes white - keyword whole sides white - keyword whole size white - keyword whole skew white - keyword whole smoothing white - keyword whole sortv white - keyword whole splines white - keyword whole start white - keyword whole style white - keyword whole stylesheet white - keyword whole tail_lp white - keyword whole tailclip white - keyword whole tailhref white - keyword whole taillabel white - keyword whole tailport white - keyword whole tailtarget white - keyword whole tailtooltip white - keyword whole tailURL white - keyword whole target white - keyword whole tooltip white - keyword whole truecolor white - keyword whole URL white - keyword whole vertices white - keyword whole viewport white - keyword whole voro_margin white - keyword whole weight white - keyword whole width white - keyword whole xdotversion white - keyword whole xlabel white - keyword whole xlp white - keyword whole z white - - keyword /\* brown - keyword \*/ brown - keyword // brown - - keyword \+ red - keyword , brightcyan - keyword : brightcyan - keyword ; brightmagenta - keyword < green - keyword = yellow - keyword > green - keyword [ brightcyan - keyword ] brightcyan - keyword { brightcyan - keyword } brightcyan - -context exclusive /\* \*/ brown - spellcheck - -context exclusive // \n brown - spellcheck - -context linestart # \n brightred - keyword \\\n yellow - keyword /\**\*/ brown - keyword //*\n brown - keyword "+" red - keyword <+> red - -context exclusive < > green - spellcheck - - keyword <*> cyan - -context " " green - spellcheck - keyword \\\n yellow - keyword \\" brightgreen - keyword \\\{abtnvfr\} brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/ebuild.syntax b/recipes/wip/files/mc/source/misc/syntax/ebuild.syntax deleted file mode 100644 index 96fa35f5ca..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/ebuild.syntax +++ /dev/null @@ -1,566 +0,0 @@ -# Author : Sergei Trofimovich -# Language : shell -# Mode : ebuild -# -# sh.syntax is taken as base. -# -# Note : keep in sync default and " " contexts -# -# 'sh.syntax' header: -# # Since I regulary update ths file, please send any comments -# # to: Michelle Konzack -# # Last Update: Thu, 01 Jun 2006 22:10:07 +0200 - -context default - #.ebuild specific commands/glo vars - # TODO: 1. split keywords by .eclass'es - # 2. grep all exports and place here - keyword whole AT_M4DIR brightcyan - keyword whole BDEPEND brightcyan - keyword whole CABAL_FEATURES brightcyan - keyword whole CHECKREQS_DISK_BUILD brightcyan - keyword whole CHECKREQS_DISK_USR brightcyan - keyword whole CHECKREQS_DISK_VAR brightcyan - keyword whole CHECKREQS_MEMORY brightcyan - keyword whole CONFIG_CHECK brightcyan - keyword whole DEPEND brightcyan - keyword whole DESCRIPTION brightcyan - keyword whole EAPI brightcyan - keyword whole ECONF_SOURCE brightcyan - keyword whole EDARCS_REPOSITORY brightcyan - keyword whole EDARCS_GET_CMD brightcyan - keyword whole EDARCS_LOCALREPO brightcyan - keyword whole EGIT_BRANCH brightcyan - keyword whole EGIT_PROJECT brightcyan - keyword whole EGIT_REPO_URI brightcyan - keyword whole EGIT_SUBMODULES brightcyan - keyword whole EGIT_TREE brightcyan - keyword whole ESVN_REPO_URI brightcyan - keyword whole EXPORT_FUNCTIONS brightcyan - keyword whole HOMEPAGE brightcyan - keyword whole IUSE brightcyan - keyword whole KEYWORDS brightcyan - keyword whole LICENSE brightcyan - keyword whole PATCHES brightcyan - keyword whole PDEPEND brightcyan - keyword whole PROVIDE brightcyan - keyword whole PYTHON_COMPAT brightcyan - keyword whole QA_AM_MAINTAINER_MODE brightcyan - keyword whole QA_CONFIGURE_OPTIONS brightcyan - keyword whole QA_DESKTOP_FILE brightcyan - keyword whole QA_DT_NEEDED brightcyan - keyword whole QA_EXECSTACK brightcyan - keyword whole QA_FLAGS_IGNORED brightcyan - keyword whole QA_MULTILIB_PATHS brightcyan - keyword whole QA_PREBUILT brightcyan - keyword whole QA_PRESTRIPPED brightcyan - keyword whole QA_SONAME brightcyan - keyword whole QA_TEXTRELS brightcyan - keyword whole QA_WX_LOAD brightcyan - keyword whole RDEPEND brightcyan - keyword whole REQUIRED_USE brightcyan - keyword whole RESTRICT brightcyan - keyword whole S brightcyan - keyword whole SITEFILE brightcyan - keyword whole SLOT brightcyan - keyword whole SRC_URI brightcyan - keyword whole WANT_AUTOCONF brightcyan - keyword whole WANT_AUTOMAKE brightcyan - keyword DOCS brightcyan - keyword HTML_DOCS brightcyan - keyword LINGUAS brightcyan - - keyword whole addpredict yellow - keyword whole best_version yellow - keyword whole built_with_use yellow - keyword whole check_KV yellow - keyword whole default yellow - keyword whole die yellow - keyword whole diropts yellow - keyword whole dobin yellow - keyword whole docinto yellow - keyword whole docompress yellow - keyword whole doconfd yellow - keyword whole dodir yellow - keyword whole dodoc yellow - keyword whole doenvd yellow - keyword whole doexe yellow - keyword whole dohard yellow - keyword whole dohtml yellow - keyword whole doinfo yellow - keyword whole doinitd yellow - keyword whole doins yellow - keyword whole dolib yellow - keyword whole dolib.a yellow - keyword whole dolib.so yellow - keyword whole doman yellow - keyword whole dosbin yellow - keyword whole dosed yellow - keyword whole dosym yellow - keyword whole eapply yellow - keyword whole eapply_user yellow - keyword whole ebegin yellow - keyword whole econf yellow - keyword whole eend yellow - keyword whole eerror yellow - keyword whole einfo yellow - keyword whole einstall yellow - keyword whole einstalldocs yellow - keyword whole elog yellow - keyword whole emake yellow - keyword whole epatch yellow - keyword whole epatch_user yellow - keyword whole ewarn yellow - keyword whole exeinto yellow - keyword whole exeopts yellow - keyword whole enewgroup yellow - keyword whole enewuser yellow - keyword whole fowners yellow - keyword whole fperms yellow - keyword whole has yellow - keyword whole hasq yellow - keyword whole has_version yellow - keyword whole insinto yellow - keyword whole insopts yellow - keyword whole intltoolize yellow - keyword whole into yellow - keyword whole keepdir yellow - keyword whole libopts yellow - keyword whole newbin yellow - keyword whole newconfd yellow - keyword whole newdoc yellow - keyword whole newexe yellow - keyword whole newins yellow - keyword whole newman yellow - keyword whole newsbin yellow - keyword whole newinitd yellow - keyword whole pax-mark yellow - keyword whole prepall yellow - keyword whole prepalldocs yellow - keyword whole prepallinfo yellow - keyword whole prepallman yellow - keyword whole unpack yellow - keyword whole use yellow - keyword whole usev yellow - keyword whole usex yellow - keyword whole use_enable yellow - keyword whole use_with yellow - #autotools - keyword whole _elibtoolize yellow - keyword whole eaclocal yellow - keyword whole eautoconf yellow - keyword whole eautopoint yellow - keyword whole eautoreconf yellow - keyword whole eautomake yellow - #bashcomp - keyword whole bashcomp_alias yellow - keyword whole dobashcomp yellow - keyword whole newbashcomp yellow - #cvs - keyword whole cvs_src_unpack yellow - #darcs - keyword whole darcs_src_unpack yellow - #default - keyword whole default_src_unpack yellow - #desktop - keyword whole doicon yellow - keyword whole domenu yellow - keyword whole make_desktop_entry yellow - keyword whole make_session_desktop yellow - keyword whole newicon yellow - keyword whole newmenu yellow - #elisp-common - keyword whole elisp-compile yellow - keyword whole elisp-install yellow - keyword whole elisp-site-file-install yellow - keyword whole elisp-site-regen yellow - #flag-o-matic - keyword whole append-cflags yellow - keyword whole append-cxxflags yellow - keyword whole append-flags yellow - keyword whole append-ldflags yellow - keyword whole append-lfs-flags yellow - keyword whole filter-flags yellow - keyword whole replace-flags yellow - keyword whole strip-flags yellow - keyword whole strip-unsupported-flags yellow - #git-r3 - keyword whole git-r3_checkout yellow - keyword whole git-r3_fetch yellow - keyword whole git-r3_src_unpack yellow - #java-ant-2 - keyword whole EANT_BUILD_TARGET yellow - #kernel-2 - keyword whole kernel-2_src_unpack yellow - keyword whole kernel_is yellow - #libtool - keyword whole elibtoolize yellow - #mercurial - keyword whole mercurial_src_unpack yellow - #mozilla - keyword whole mozconfig_annotate yellow - keyword whole mozconfig_config yellow - keyword whole mozconfig_final yellow - keyword whole mozconfig_init yellow - keyword whole mozconfig_install_prefs yellow - keyword whole mozconfig_use_enable yellow - keyword whole mozconfig_use_with yellow - keyword whole moz_pkg_setup yellow - #multilib - keyword whole multilib_copy_sources yellow - keyword whole multilib_env yellow - keyword whole multilib_foreach_abi yellow - keyword whole multilib_is_native_abi yellow - keyword whole multilib_layout yellow - keyword whole multilib_parallel_foreach_abi yellow - keyword whole multilib_toolchain_setup yellow - #ninja-utils - keyword whole eninja yellow - #pam - keyword whole cleanpamd yellow - keyword whole dopamd yellow - keyword whole dopammod yellow - keyword whole dopamsecurity yellow - keyword whole newpamd yellow - keyword whole newpammod yellow - keyword whole newpamsecurity yellow - keyword whole pamd_mimic yellow - keyword whole pamd_mimic_system yellow - #prefix - keyword whole eprefixify yellow - #preserve-libs - keyword whole preserve_old_lib yellow - keyword whole preserve_old_lib_notify yellow - #python - keyword whole python_copy_sources yellow - keyword whole python_do yellow - keyword whole python_doexe yellow - keyword whole python_doheader yellow - keyword whole python_domodule yellow - keyword whole python_doscript yellow - keyword whole python_export yellow - keyword whole python_export_best yellow - keyword whole python_fix_shebang yellow - keyword whole python_foreach_impl yellow - keyword whole python_is_python3 yellow - keyword whole python_moduleinto yellow - keyword whole python_newexe yellow - keyword whole python_newscript yellow - keyword whole python_optimize yellow - keyword whole python_replicate_script yellow - keyword whole python_scriptinto yellow - keyword whole python_setup yellow - #rpm - keyword whole rpm_src_unpack yellow - keyword whole rpm_unpack yellow - #svn - keyword whole subversion_src_unpack yellow - #systemd - keyword whole systemd_dotmpfilesd yellow - keyword whole systemd_dounit yellow - keyword whole systemd_douserunit yellow - keyword whole systemd_enable_ntpunit yellow - keyword whole systemd_install_serviced yellow - keyword whole systemd_logger yellow - keyword whole systemd_newtmpfilesd yellow - keyword whole systemd_newunit yellow - keyword whole systemd_reenable yellow - keyword whole systemd_update_catalog yellow - #toolchain-funcs - keyword whole gen_usr_ldscript yellow - keyword whole tc-check-openmp yellow - keyword whole tc-enables-pie yellow - keyword whole tc-export yellow - keyword whole tc-export_build_env yellow - keyword whole tc-has-openmp yellow - keyword whole tc-has-tls yellow - keyword whole tc-is-clang yellow - keyword whole tc-is-cross-compiler yellow - keyword whole tc-is-gcc yellow - keyword whole tc-is-static-only yellow - keyword whole tc-ld-disable-gold yellow - #toolchain - keyword whole toolchain_src_unpack yellow - #unpacker - keyword whole unpacker_src_unpack yellow - #virtualx - keyword whole virtx yellow - #xdg - keyword whole xdg_desktop_database_update yellow - keyword whole xdg_environment_reset yellow - keyword whole xdg_icon_cache_update yellow - keyword whole xdg_mimeinfo_database_update yellow - - #bashism (builtin extended 'test') - keyword whole [[ brightcyan - keyword whole ]] brightcyan - - #common Makefile variables - keyword whole AR cyan - keyword whole AS cyan - keyword whole BINDIR cyan - keyword whole CC cyan - keyword whole CFLAGS cyan - keyword whole CPPFLAGS cyan - keyword whole CXX cyan - keyword whole CXXFLAGS cyan - keyword whole DESTDIR cyan - keyword whole DOCDIR cyan - keyword whole LD cyan - keyword whole LDFLAGS cyan - keyword whole LIBDIR cyan - keyword whole MANDIR cyan - keyword whole NM cyan - keyword whole OBJCOPY cyan - keyword whole PKG_CONFIG cyan - keyword whole PREFIX cyan - keyword whole RANLIB cyan - keyword whole SBINDIR cyan - keyword whole SHELL cyan - keyword whole STRIP cyan - keyword whole SYSCONFDIR cyan - keyword whole YACC cyan - -#################### -# here starts original sh.syntax (with core commands only) -#################### - - keyword ! brightred - keyword ;; brightred - keyword \\@ brightred - keyword \\$ brightred - keyword \\\\ brightred - keyword \\" brightred - keyword \\' brightred - keyword \\` brightred - keyword ` brightred - keyword ; brightcyan - keyword $(*) brightgreen - keyword ${*} brightgreen - keyword { brightcyan - keyword } brightcyan - - keyword whole linestart #!\[\s\]*\n brightcyan black - - keyword $\* brightred - keyword $@ brightred - keyword $# brightred - keyword $? brightred - keyword $- brightred - keyword $$ brightred - keyword $! brightred - keyword $_ brightred - - keyword whole 2>&1 brightred - keyword whole 1>&2 brightred - keyword whole 2> brightred - keyword whole 1> brightred - - keyword wholeright $\[0123456789\] brightred - - keyword wholeright $+ brightgreen - - keyword $ brightgreen - - keyword wholeleft linestart function*() brightmagenta - keyword wholeleft linestart function\[\s\]+ brightmagenta - keyword wholeright +() brightmagenta - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._ - - keyword whole break yellow - keyword whole case yellow - keyword whole clear yellow - keyword whole continue yellow - keyword whole declare yellow - keyword whole done yellow - keyword whole do yellow - keyword whole elif yellow - keyword whole else yellow - keyword whole esac yellow - keyword whole exit yellow - keyword whole export yellow - keyword whole fi yellow - keyword whole for yellow - keyword whole getopts yellow - keyword whole if yellow - keyword whole in yellow - keyword whole local yellow - keyword whole read yellow - keyword whole return yellow - keyword whole select yellow - keyword whole shift yellow - keyword whole source yellow - keyword whole then yellow - keyword whole trap yellow - keyword whole until yellow - keyword whole unset yellow - keyword whole wait yellow - keyword whole while yellow - -# here goes usable subset for .ebuild commands - keyword whole awk cyan - keyword whole cd cyan - keyword whole chown cyan - keyword whole chmod cyan - keyword whole cmake cyan - keyword whole cp cyan - keyword whole echo cyan - keyword whole egrep cyan - keyword whole fgrep cyan - keyword whole find cyan - keyword whole grep cyan - keyword whole ln cyan - keyword whole make cyan - keyword whole mkdir cyan - keyword whole mknod cyan - keyword whole mv cyan - keyword whole perl cyan - keyword whole pod2man cyan - keyword whole popd cyan - keyword whole printf cyan - keyword whole pushd cyan - keyword whole rm cyan - keyword whole rmdir cyan - keyword whole sed cyan - keyword whole sh cyan - keyword whole shopt cyan - keyword whole touch cyan - keyword whole xmkmf cyan - -# some interesting files to copy - keyword whole ANNOUNCEMENT white - keyword whole AUTHORS white - keyword whole BUGS white - keyword whole CHANGES white - keyword whole COPYING white - keyword whole COPYRIGHT white - keyword whole CREDITS white - keyword whole ChangeLog white - keyword whole FAQ white - keyword whole HACKING white - keyword whole INSTALL white - keyword whole LICENSE white - keyword whole NEWS white - keyword whole README white - keyword whole THANKS white - keyword whole TODO white - keyword whole VERSION white - - keyword whole /dev/audio brightblue - keyword whole /dev/dsp brightblue - keyword whole /dev/null brightblue - keyword whole /dev/mixed brightblue - keyword whole /dev/stdin brightblue - keyword whole /dev/stdout brightblue - keyword whole /dev/stderr brightblue - keyword whole /dev/zero brightblue - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_ - -context # \n brown - spellcheck - -context exclusive whole <<\[\s\]\[-\]\[\s\]\[\\\]EOF EOF green -context exclusive whole <<\[\s\]\[-\]\[\s\]\[\\\]END END green - -context ' ' green - -context " " green - keyword \\* brightgreen - keyword \\@ brightgreen - keyword \\$ brightgreen - keyword \\\\ brightgreen - keyword \\` brightgreen - keyword \\" brightgreen - keyword $(*) brightgreen - keyword ${*} brightgreen - keyword $\* brightred - keyword $@ brightred - keyword $# brightred - keyword $? brightred - keyword $- brightred - keyword $$ brightred - keyword $! brightred - keyword $_ brightred - keyword wholeright $\[0123456789\] brightred - - keyword wholeright $+ brightgreen - - keyword $ brightgreen - -context exclusive ` ` lightgray black - keyword '*' green - keyword " green - keyword \\` green - keyword ; brightcyan - keyword $(*) brightgreen - keyword ${*} brightgreen - keyword { brightcyan - keyword } brightcyan - - keyword $\* brightred - keyword $@ brightred - keyword $# brightred - keyword $? brightred - keyword $- brightred - keyword $$ brightred - keyword $! brightred - keyword $_ brightred - - keyword whole 2>&1 brightred - keyword whole 2> brightred - keyword whole 1> brightred - - keyword wholeright $\[0123456789\] brightred - - keyword wholeright $+ brightgreen - - keyword $ brightgreen - -wholechars abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-._ - - keyword whole break yellow - keyword whole case yellow - keyword whole clear yellow - keyword whole continue yellow - keyword whole declare yellow - keyword whole done yellow - keyword whole do yellow - keyword whole elif yellow - keyword whole else yellow - keyword whole esac yellow - keyword whole exit yellow - keyword whole export yellow - keyword whole fi yellow - keyword whole for yellow - keyword whole getopts yellow - keyword whole if yellow - keyword whole in yellow - keyword whole read yellow - keyword whole return yellow - keyword whole select yellow - keyword whole shift yellow - keyword whole source yellow - keyword whole then yellow - keyword whole trap yellow - keyword whole until yellow - keyword whole unset yellow - keyword whole wait yellow - keyword whole while yellow - -# here goes usable subset for .ebuild commands - keyword whole awk cyan - keyword whole sed cyan - - keyword whole /dev/audio brightblue - keyword whole /dev/dsp brightblue - keyword whole /dev/null brightblue - keyword whole /dev/mixed brightblue - keyword whole /dev/stdin brightblue - keyword whole /dev/stdout brightblue - keyword whole /dev/stderr brightblue - keyword whole /dev/zero brightblue - -context inherit \n magenta - keyword whole inherit yellow diff --git a/recipes/wip/files/mc/source/misc/syntax/eiffel.syntax b/recipes/wip/files/mc/source/misc/syntax/eiffel.syntax deleted file mode 100644 index 66e8c2aa61..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/eiffel.syntax +++ /dev/null @@ -1,114 +0,0 @@ -# Sytnax highlighting for Eiffel -# Daniel F Moisset - dmoisset@grulic.org.ar -# Based on mc's pascal.syntax - -context default yellow - - keyword whole agent white - keyword whole alias white - keyword whole as white - keyword whole check white - keyword whole class white - keyword whole create white - keyword whole creation white - keyword whole debug white - keyword whole deferred white - keyword whole do white - keyword whole else white - keyword whole elseif white - keyword whole end white - keyword whole ensure white - keyword whole expanded white - keyword whole export white - keyword whole external white - keyword whole feature white - keyword whole from white - keyword whole if white - keyword whole is white - keyword whole indexing white - keyword whole inherit white - keyword whole inspect white - keyword whole invariant white - keyword whole like white - keyword whole local white - keyword whole loop white - keyword whole obsolete white - keyword whole old white - keyword whole once white - keyword whole redefine white - keyword whole reference white - keyword whole rename white - keyword whole require white - keyword whole rescue white - keyword whole retry white - keyword whole select white - keyword whole then white - keyword whole undefine white - keyword whole unique white - keyword whole until white - keyword whole variant white - keyword whole when white - - keyword whole Current brightmagenta - keyword whole Precursor brightmagenta - keyword whole Result brightmagenta - keyword whole Void brightmagenta - -# prevents - keyword from interfering with comment - keyword -- lightgray - - keyword := brightcyan - keyword ?= brightcyan - keyword ! brightcyan - keyword : brightcyan - keyword ; brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword [ brightcyan - keyword ] brightcyan - - keyword {*} brightred - - keyword \+ cyan - keyword - cyan - keyword \* cyan - keyword / cyan - keyword > cyan - keyword < cyan - keyword = cyan - keyword ^ cyan - keyword \\ cyan - keyword @ cyan - keyword | cyan - keyword whole and cyan - keyword whole implies cyan - keyword whole not cyan - keyword whole xor cyan - keyword whole or cyan - -# Uncomment this to highlight tabs and trailing spaces -# keyword \t yellow red -# keyword \s\[\s\]\n yellow red - -# Comments -context exclusive -- \n lightgray - keyword `*' brown - -# Strings and characters -context " " green - keyword %N brightgreen - keyword %R brightgreen - keyword %U brightgreen - keyword %" brightgreen - keyword %' brightgreen - keyword %% brightgreen - keyword %/\[0123456789\]/ brightgreen - -context ' ' green - keyword %N brightgreen - keyword %R brightgreen - keyword %U brightgreen - keyword %" brightgreen - keyword %' brightgreen - keyword %% brightgreen - keyword %/\[0123456789\]/ brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/erlang.syntax b/recipes/wip/files/mc/source/misc/syntax/erlang.syntax deleted file mode 100644 index cfed3ce302..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/erlang.syntax +++ /dev/null @@ -1,299 +0,0 @@ -# ------------------------------- -# -# Erlang programming language syntax highlighting -# for CoolEdit -# -# Homepage of Erlang: http://www.erlang.org -# -# Author: Witold Baryluk < baryluk at smp if uj edu pl > -# Date: 07-07-2009, 08-02-2009 -# -# ------------------------------- -# -# Useful links: -# http://www.erlang.org/doc/doc-5.4.13/doc/reference_manual/part_frame.html -# http://www.erlang.org/doc/reference_manual/data_types.html#2.14 -# http://www.regular-expressions.info/reference.html -# gedit: http://martin.ankerl.com/files/erlang.lang -# joe: http://www.straatinvestments.com/~tlack/erlang/joe-editor/erlang.jsf -# geshi: http://www.kreisquadratur.de/blog/?p=305 -# vim: http://erlang.org/pipermail/erlang-questions/2006-July/021362.html -# kate: http://bugsfiles.kde.org/attachment.cgi?id=21155 -# -# entries for Syntax file: -# -# file ..\*\\.erl$ Erlang\sProgram (-module\\(|#!.*escript) -# include erlang.syntax -# -# file ..\*\\.hrl$ Erlang\sHeader -record\\( -# include erlang.syntax - -context default - keyword whole after yellow - keyword whole and brown - keyword whole andalso brown - keyword whole band brown - keyword whole begin yellow - keyword whole bnot brown - keyword whole bor brown - keyword whole bsl brown - keyword whole bsr brown - keyword whole bxor brown - keyword whole case yellow - keyword whole catch yellow - keyword whole cond yellow - keyword whole div brown - keyword whole end yellow - keyword whole fun yellow - keyword whole if yellow - keyword whole let yellow - keyword whole not brown - keyword whole of yellow - keyword whole or brown - keyword whole orelse brown - keyword whole query yellow - keyword whole receive yellow - keyword whole rem brown - keyword whole try yellow - keyword whole throw yellow - keyword whole xor brown - - keyword whole when yellow - - keyword whole -module brightmagenta - keyword whole -compile brightmagenta - keyword whole -behaviour brightmagenta - keyword whole -record brightmagenta - keyword whole -define brightmagenta - keyword whole -include brightmagenta - keyword whole -include_lib brightmagenta - keyword whole -vsn magenta - keyword whole -author magenta - keyword whole -copyright magenta - keyword whole -export brightmagenta - keyword whole -\{abcdefghijklmnoprqstuvwxyz\}\[abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTVWXYZ0123456789_\] red - -# erlang:* - keyword whole abs brightgreen - keyword whole accept brightgreen - keyword whole alarm brightgreen - keyword whole apply brightgreen - keyword whole atom_to_list brightgreen - keyword whole binary_to_list brightgreen - keyword whole binary_to_term brightgreen - keyword whole check_process_code brightgreen - keyword whole concat_binary brightgreen - keyword whole date brightgreen - keyword whole delete_module brightgreen - keyword whole disconnect_node brightgreen - keyword whole element brightgreen - keyword whole erase brightgreen - keyword whole exit brightgreen - keyword whole float brightgreen - keyword whole float_to_list brightgreen - keyword whole garbage_collect brightgreen - keyword whole get brightgreen - keyword whole get_keys brightgreen - keyword whole group_leader brightgreen - keyword whole halt brightgreen - keyword whole hd brightgreen - keyword whole integer_to_list brightgreen - keyword whole is_alive brightgreen - keyword whole is_atom brightgreen - keyword whole is_binary brightgreen - keyword whole is_boolean brightgreen - keyword whole is_float brightgreen - keyword whole is_function brightgreen - keyword whole is_integer brightgreen - keyword whole is_list brightgreen - keyword whole is_number brightgreen - keyword whole is_pid brightgreen - keyword whole is_port brightgreen - keyword whole is_process_alive brightgreen - keyword whole is_record brightgreen - keyword whole is_reference brightgreen - keyword whole is_tuple brightgreen - keyword whole length brightgreen - keyword whole link brightgreen - keyword whole list_to_atom brightgreen - keyword whole list_to_binary brightgreen - keyword whole list_to_float brightgreen - keyword whole list_to_integer brightgreen - keyword whole list_to_pid brightgreen - keyword whole list_to_tuple brightgreen - keyword whole load_module brightgreen - keyword whole loaded brightgreen - keyword whole localtime brightgreen - keyword whole make_ref brightgreen - keyword whole module_loaded brightgreen - keyword whole node brightgreen - keyword whole nodes brightgreen - keyword whole now brightgreen - keyword whole open_port brightgreen - keyword whole pid_to_list brightgreen - keyword whole port_close brightgreen - keyword whole port_command brightgreen - keyword whole port_connect brightgreen - keyword whole port_control brightgreen - keyword whole ports brightgreen - keyword whole pre_loaded brightgreen - keyword whole process_flag brightgreen - keyword whole process_info brightgreen - keyword whole processes brightgreen - keyword whole purge_module brightgreen - keyword whole put brightgreen - keyword whole register brightgreen - keyword whole registered brightgreen - keyword whole round brightgreen - keyword whole self brightgreen - keyword whole setelement brightgreen - keyword whole size brightgreen - keyword whole spawn brightgreen - keyword whole spawn_link brightgreen - keyword whole spawn_opt brightgreen - keyword whole split_binary brightgreen - keyword whole statistics brightgreen - keyword whole term_to_binary brightgreen - keyword whole throw brightgreen - keyword whole time brightgreen - keyword whole tl brightgreen - keyword whole trunc brightgreen - keyword whole tuple_to_list brightgreen - keyword whole unlink brightgreen - keyword whole unregister brightgreen - keyword whole whereis brightgreen - - keyword whole gen_server:cast brightgreen - keyword whole gen_server:call brightgreen - keyword whole gen_server:reply brightgreen - keyword whole gen_server:start_link brightgreen - keyword whole gen_server:start brightgreen - keyword whole io:format brightgreen - - keyword whole init white - keyword whole handle_cast white - keyword whole handle_call white - keyword whole handle_info white - keyword whole handle_event white - keyword whole handle_sync_event white - keyword whole terminate white - keyword whole code_change white - -# list comprehension - keyword <- yellow -# clause - keyword -> yellow -# guards - keyword =:= brown - keyword == brown - keyword /= brown - keyword =/= brown -# binary - keyword << brightcyan - keyword >> brightcyan -# guards - keyword < brown - keyword =< brown - keyword >= brown - keyword > brown -# ops - keyword - yellow - keyword \+ yellow - keyword / yellow - keyword \* yellow - - keyword ; brightcyan - keyword , brightcyan - keyword . brightcyan - keyword = yellow - keyword % brown - - keyword \+\+ yellow - keyword -- yellow - keyword ! yellow -# TODO this does not work for $" or $', use $\" or $\' instead. ? - keyword $\{abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ0123456789_{}[]()(\\/`~!@#$%^&\*+-=;:'"|,./?<>\} red - keyword $\ red - -# keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen - -# TODO: integers, inegers of form Base#digits, 2#1010101 -# todo: records access via #state{} - - keyword whole ?MODULE red - keyword whole ?LINE red - keyword whole ?FILE red - keyword whole ?\[abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ0123456789_@\] red - -# gray operatory -# cyan - moduly - - - keyword whole true red - keyword whole false red - - keyword [ brightcyan - keyword || brightcyan - keyword | brightcyan - keyword ] brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword { cyan - keyword } cyan - - keyword whole lists:seq gray - keyword whole lists:map gray - keyword whole lists:filter gray - keyword whole lists:reduce gray - keyword whole lists:foldl gray - keyword whole lists:foldr gray - keyword whole lists:append gray - keyword whole lists:nth gray - keyword whole behaviour_info gray - keyword whole dict:find gray - keyword whole dict:is_key gray - keyword whole dict:erase gray - keyword whole dict:new gray - keyword whole dict:map gray - keyword whole dict:store gray - keyword whole dict:fetch_keys gray - keyword whole dict:append gray - keyword whole dict:update gray - keyword whole dict:update_counter gray - keyword whole dict:fold gray - keyword whole dict:to_list gray - keyword whole dict:fetch gray - -# todo: no more than one dot in atom, and not at the end - keyword whole \{abcdefghijklmnoprqstuvwxyz\}\[abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ0123456789_.@\] lightgray - keyword whole \{_ABCDEFGHIJKLMNOPRQSTUVWXYZ\}\[abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ0123456789_@\] white - -context exclusive % \n brown - spellcheck - -context " " green - spellcheck - keyword ~p brightgreen - keyword ~n brightgreen - keyword ~w brightgreen - keyword ~~ brightgreen - keyword \\" brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\{01234567\}\{01234567\} brightgreen - keyword \\\{01234567\} brightgreen - keyword \\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{bdefrstv\} brightgreen - keyword \\^\{abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ\} brightgreen - -context ' ' red - keyword \\" brightred - keyword \\\{0123\}\{01234567\}\{01234567\} brightred - keyword \\\{01234567\}\{01234567\} brightred - keyword \\\{01234567\} brightred - keyword \\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightred - keyword \\\\ brightred - keyword \\' brightred - keyword \\\{bdefrstv\} brightred - keyword \\^\{abcdefghijklmnoprqstuvwxyzABCDEFGHIJKLMNOPRQSTUVWXYZ\} brightred diff --git a/recipes/wip/files/mc/source/misc/syntax/f90.syntax b/recipes/wip/files/mc/source/misc/syntax/f90.syntax deleted file mode 100644 index 31e74bc60c..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/f90.syntax +++ /dev/null @@ -1,278 +0,0 @@ -# --------------------------------------------------- -# f90.syntax -# FORTRAN 90/95 language freeform syntax highlighting template. -# Provides syntax highlighting rules for the -# FORTRAN programming language. -# -# Based on FORTRAN77 version fortran.syntax -# Author: John Theal -# Email: jtheal@renegadelinuxbox.dhs.org -# December 7, 1999 -# --------------------------------------------------- - -# Heavily modified by Paul Sheer . -# Adjusted to Fortran 90 by Norbert Nemec . - -caseinsensitive - -context default -# keywords at the beginning of line - keyword linestart \{0123456789\}\{0123456789\}\{0123456789\}\{0123456789\}\{0123456789\} brightred - keyword linestart \{0123456789\}\{0123456789\}\{0123456789\}\{0123456789\} brightred - keyword linestart \{0123456789\}\{0123456789\}\{0123456789\} brightred - keyword linestart \{0123456789\}\{0123456789\} brightred - keyword linestart \{0123456789\} brightred - -# structure - keyword whole ASSIGNMENT white black - keyword whole CONTAINS white black - keyword whole END white black - keyword whole FUNCTION white black - keyword whole INTERFACE white black - keyword whole INCLUDE white black - keyword whole MODULE white black - keyword whole OPERATOR white black - keyword whole PROGRAM white black - keyword whole SUBROUTINE white black - -# boolean and logical expressions / operators - keyword .and. brightred/orange - keyword .eq. brightred/orange - keyword .eqv. brightred/orange - keyword .false. brightred/orange - keyword .ge. brightred/orange - keyword .gt. brightred/orange - keyword .le. brightred/orange - keyword .lt. brightred/orange - keyword .ne. brightred/orange - keyword .neqv. brightred/orange - keyword .not. brightred/orange - keyword .or. brightred/orange - keyword .true. brightred/orange - keyword whole lge brightred/orange - keyword whole lgt brightred/orange - keyword whole lle brightred/orange - keyword whole llt brightred/orange - -# declarations - keyword whole ALLOCATABLE brightcyan - keyword whole BLOCK brightcyan - keyword whole CHARACTER brightcyan - keyword whole COMMON brightcyan - keyword whole COMPLEX brightcyan - keyword whole DATA brightcyan - keyword whole DIMENSION brightcyan - keyword whole DOUBLE brightcyan - keyword whole ELEMENTAL brightcyan - keyword whole EQUIVALENCE brightcyan - keyword whole EXTERNAL brightcyan - keyword whole FORMAT brightcyan - keyword whole IMPLICIT brightcyan - keyword whole INTEGER brightcyan - keyword whole INTENT brightcyan - keyword whole INTRINSIC brightcyan - keyword whole LOGICAL brightcyan - keyword whole NAMELIST brightcyan - keyword whole NONE brightcyan - keyword whole ONLY brightcyan - keyword whole OPTIONAL brightcyan - keyword whole PARAMETER brightcyan - keyword whole POINTER brightcyan - keyword whole PRECISION brightcyan - keyword whole PRIVATE brightcyan - keyword whole PUBLIC brightcyan - keyword whole PURE brightcyan - keyword whole REAL brightcyan - keyword whole SAVE brightcyan - keyword whole TYPE brightcyan - keyword whole USE brightcyan - -# general programming syntax - keyword whole allocate brightgreen - keyword whole assign brightgreen - keyword whole call brightgreen - keyword whole case brightgreen - keyword whole deallocate brightgreen - keyword whole default brightgreen - keyword whole continue brightgreen - keyword whole cycle brightgreen - keyword whole do brightgreen - keyword whole else brightgreen - keyword whole elseif brightgreen - keyword whole elsewhere brightgreen - keyword whole end brightgreen - keyword whole enddo brightgreen - keyword whole endif brightgreen - keyword whole exit brightgreen - keyword whole for brightgreen - keyword whole forall brightgreen - keyword whole goto brightgreen - keyword whole if brightgreen - keyword whole nullify brightgreen - keyword whole pause brightgreen - keyword whole return brightgreen - keyword whole select brightgreen - keyword whole stop brightgreen - keyword whole target brightgreen - keyword whole then brightgreen - keyword whole to brightgreen - keyword whole where brightgreen - keyword whole while brightgreen - -# headers - keyword whole entry brightgreen - -# I/O functions -# may have optional equal signs after them: 'keyword =' - keyword whole access brightmagenta - keyword whole backspace brightmagenta - keyword whole blank brightmagenta - keyword whole close brightmagenta - keyword whole direct brightmagenta - keyword whole endfile brightmagenta - keyword whole err brightmagenta - keyword whole exist brightmagenta - keyword whole file brightmagenta - keyword whole fmt brightmagenta - keyword whole form brightmagenta - keyword whole formatted brightmagenta - keyword whole inquire brightmagenta - keyword whole iostat brightmagenta - keyword whole name brightmagenta - keyword whole named brightmagenta - keyword whole nextrec brightmagenta - keyword whole number brightmagenta - keyword whole open brightmagenta - keyword whole opened brightmagenta - keyword whole print brightmagenta - keyword whole read brightmagenta - keyword whole rec brightmagenta - keyword whole recl brightmagenta - keyword whole rewind brightmagenta - keyword whole sequential brightmagenta - keyword whole status brightmagenta - keyword whole unformatted brightmagenta - keyword whole unit brightmagenta - keyword whole write brightmagenta - -# mathematical functions - keyword whole abs yellow - keyword whole achar yellow - keyword whole acos yellow - keyword whole aimag yellow - keyword whole aint yellow - keyword whole alog yellow - keyword whole alog10 yellow - keyword whole amax0 yellow - keyword whole amax1 yellow - keyword whole amin0 yellow - keyword whole amin1 yellow - keyword whole amod yellow - keyword whole anint yellow - keyword whole aprime yellow - keyword whole asin yellow - keyword whole atan yellow - keyword whole atan2 yellow - keyword whole acos yellow - keyword whole cabs yellow - keyword whole ceiling yellow - keyword whole cexp yellow - keyword whole char yellow - keyword whole clog yellow - keyword whole cmplx yellow - keyword whole conjg yellow - keyword whole cos yellow - keyword whole cosh yellow - keyword whole ccos yellow - keyword whole csin yellow - keyword whole csqrt yellow - keyword whole dabs yellow - keyword whole dacos yellow - keyword whole dasin yellow - keyword whole datan yellow - keyword whole datan2 yellow - keyword whole dble yellow - keyword whole dcos yellow - keyword whole dcosh yellow - keyword whole dfloat yellow - keyword whole ddmim yellow - keyword whole dexp yellow - keyword whole dim yellow - keyword whole dint yellow - keyword whole dlog yellow - keyword whole dlog10 yellow - keyword whole dmax1 yellow - keyword whole dmin1 yellow - keyword whole dmod yellow - keyword whole dnint yellow - keyword whole dsign yellow - keyword whole dsin yellow - keyword whole dsinh yellow - keyword whole dsqrt yellow - keyword whole dtan yellow - keyword whole dtanh yellow - keyword whole exp yellow - keyword whole float yellow - keyword whole floor yellow - keyword whole iabs yellow - keyword whole iachar yellow - keyword whole ichar yellow - keyword whole idim yellow - keyword whole idint yellow - keyword whole ifix yellow - keyword whole index yellow - keyword whole int yellow - keyword whole isign yellow - keyword whole len yellow - keyword whole log yellow - keyword whole log10 yellow - keyword whole matmul yellow - keyword whole max yellow - keyword whole max0 yellow - keyword whole max1 yellow - keyword whole maxval yellow - keyword whole min yellow - keyword whole min0 yellow - keyword whole min1 yellow - keyword whole minval yellow - keyword whole mod yellow - keyword whole nint yellow - keyword whole product yellow - keyword whole rand yellow - keyword whole random_number yellow - keyword whole random_seed yellow - keyword whole sign yellow - keyword whole sin yellow - keyword whole sinh yellow - keyword whole sngl yellow - keyword whole sqrt yellow - keyword whole sum yellow - keyword whole tan yellow - keyword whole tanh yellow - keyword whole transpose yellow - -# operators and syntax elements - keyword ( brightcyan - keyword ) brightcyan - keyword : brightcyan - keyword , brightcyan - keyword ; brightcyan - keyword \+ yellow - keyword - yellow - keyword \* yellow - keyword / yellow - keyword = yellow - keyword < yellow - keyword > yellow - -# comments and quotes - keyword '*' green - keyword "*" green - -#context &\n \n black cyan - keyword &\n black cyan - -context format( ) green - -context ! \n brown - spellcheck diff --git a/recipes/wip/files/mc/source/misc/syntax/filehighlight.syntax b/recipes/wip/files/mc/source/misc/syntax/filehighlight.syntax deleted file mode 100644 index 6e48ca6d7c..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/filehighlight.syntax +++ /dev/null @@ -1,91 +0,0 @@ -# Syntax highlighting rules for file highlighting rules - -# Use \[\] at the end of keywords to suppress their special meaning - -context default - keyword whole black black blue - keyword whole red red - keyword whole green green - keyword whole brown brown - keyword whole blue blue black - keyword whole magenta magenta - keyword whole cyan cyan - keyword whole lightgray lightgray - keyword whole gray gray black - keyword whole brightred brightred - keyword whole brightgreen brightgreen - keyword whole yellow yellow - keyword whole brightblue brightblue black - keyword whole brightmagenta brightmagenta - keyword whole brightcyan brightcyan - keyword whole white white - - keyword = brightcyan - keyword ; brightmagenta - keyword whole extensions yellow - keyword whole extensions_case yellow - keyword whole type yellow - keyword DEVICE brightred - keyword DIR brightred - keyword FILE_EXE brightred - keyword SPECIAL brightred - keyword STALE_LINK brightred - keyword SYMLINK brightred - keyword HARDLINK brightred - -context linestart # \n brown - -context linestart [ ] white - -context regexp= \n lightgray - keyword = brightcyan - keyword whole regexp yellow - -# regexp patterns - keyword \\\/ brightcyan - keyword \\\\ brightcyan - keyword \\B brightcyan - keyword \\b brightcyan - keyword \\D brightcyan - keyword \\d brightcyan - keyword \\S brightcyan - keyword \\s brightcyan - keyword \\W brightcyan - keyword \\w brightcyan - keyword \\A brightcyan - keyword \\Z brightcyan - - keyword \\( brightcyan - keyword \\) brightcyan - keyword \\[ brightcyan - keyword \\] brightcyan - keyword \\{ brightcyan - keyword \\} brightcyan - keyword \\$ brightcyan - keyword \\\+ brightcyan - keyword \\. brightcyan - keyword \\? brightcyan - keyword \\\* brightcyan - keyword \\^ brightcyan - keyword \\| brightcyan - - keyword ( brightmagenta - keyword ) brightmagenta - keyword [ brightmagenta - keyword ] brightmagenta - keyword { brightmagenta - keyword } brightmagenta - - keyword ?! yellow - keyword ?# yellow - keyword ?: yellow - keyword ?= yellow - keyword ?\{-imx:\}+ yellow - - keyword $ yellow - keyword \+ yellow - keyword . yellow - keyword ? yellow - keyword \* yellow - keyword ^ yellow - keyword | yellow diff --git a/recipes/wip/files/mc/source/misc/syntax/fortran.syntax b/recipes/wip/files/mc/source/misc/syntax/fortran.syntax deleted file mode 100644 index 451500af79..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/fortran.syntax +++ /dev/null @@ -1,245 +0,0 @@ -# --------------------------------------------------- -# fortran.syntax -# FORTRAN language syntax highlighting template. -# Provides syntax highlighting rules for the -# FORTRAN programming language. -# -# Author: John Theal -# Email: jtheal@renegadelinuxbox.dhs.org -# December 7, 1999 -# --------------------------------------------------- - -# Heavily modified by Paul Sheer . - -caseinsensitive - -context default -# keywords at the beginning of line - keyword linestart ! black yellow - keyword linestart \* black yellow - keyword linestart c black yellow - keyword linestart C black yellow - - keyword linestart \s\s\s\s\s\* yellow red - keyword linestart \s\s\s\s\s\+ yellow red - - keyword linestart \s\s\s\s\s\s black brightcyan/blue3 - - keyword linestart 0\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart 1\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart 2\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart 3\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart 4\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart 5\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart 6\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart 7\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart 8\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart 9\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - - keyword linestart \s\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart \s\s\{0123456789\s\}\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart \s\s\s\{0123456789\s\}\{0123456789\s\}\s white brightcyan - keyword linestart \s\s\s\s\{0123456789\s\}\s white brightcyan - -# boolean and logical expressions / operators - keyword .and. brightred/orange - keyword .eq. brightred/orange - keyword .eqv. brightred/orange - keyword .false. brightred/orange - keyword .ge. brightred/orange - keyword .gt. brightred/orange - keyword .le. brightred/orange - keyword .lt. brightred/orange - keyword .ne. brightred/orange - keyword .neqv. brightred/orange - keyword .not. brightred/orange - keyword .or. brightred/orange - keyword .true. brightred/orange - keyword whole lge brightred/orange - keyword whole lgt brightred/orange - keyword whole lle brightred/orange - keyword whole llt brightred/orange - -# declarations - keyword whole block brightcyan - keyword whole character brightcyan - keyword whole common brightcyan - keyword whole complex brightcyan - keyword whole data brightcyan - keyword whole dimension brightcyan - keyword whole double brightcyan - keyword whole external brightcyan - keyword whole format brightcyan - keyword whole implicit brightcyan - keyword whole integer brightcyan - keyword whole intrinsic brightcyan - keyword whole logical brightcyan - keyword whole none brightcyan - keyword whole parameter brightcyan - keyword whole precision brightcyan - keyword whole real brightcyan - -# general programming syntax - keyword whole assign brightgreen - keyword whole call brightgreen - keyword whole continue brightgreen - keyword whole do brightgreen - keyword whole else brightgreen - keyword whole elseif brightgreen - keyword whole end brightgreen - keyword whole enddo brightgreen - keyword whole endif brightgreen - keyword whole for brightgreen - keyword whole goto brightgreen - keyword whole if brightgreen - keyword whole pause brightgreen - keyword whole return brightgreen - keyword whole stop brightgreen - keyword whole then brightgreen - keyword whole to brightgreen - keyword whole while brightgreen - -# headers - keyword whole entry brightgreen - keyword whole function yellow - keyword whole program yellow - keyword whole subroutine yellow - -# I/O functions -# may have optional equal signs after them: 'keyword =' - keyword whole access brightmagenta - keyword whole backspace brightmagenta - keyword whole blank brightmagenta - keyword whole close brightmagenta - keyword whole direct brightmagenta - keyword whole endfile brightmagenta - keyword whole err brightmagenta - keyword whole exist brightmagenta - keyword whole file brightmagenta - keyword whole fmt brightmagenta - keyword whole form brightmagenta - keyword whole formatted brightmagenta - keyword whole inquire brightmagenta - keyword whole iostat brightmagenta - keyword whole name brightmagenta - keyword whole named brightmagenta - keyword whole nextrec brightmagenta - keyword whole number brightmagenta - keyword whole open brightmagenta - keyword whole opened brightmagenta - keyword whole print brightmagenta - keyword whole read brightmagenta - keyword whole rec brightmagenta - keyword whole recl brightmagenta - keyword whole rewind brightmagenta - keyword whole sequential brightmagenta - keyword whole status brightmagenta - keyword whole unformatted brightmagenta - keyword whole unit brightmagenta - keyword whole write brightmagenta - -# mathematical functions - keyword whole abs yellow - keyword whole acos yellow - keyword whole aimag yellow - keyword whole aint yellow - keyword whole alog yellow - keyword whole alog10 yellow - keyword whole amax0 yellow - keyword whole amax1 yellow - keyword whole amin0 yellow - keyword whole amin1 yellow - keyword whole amod yellow - keyword whole anint yellow - keyword whole aprime yellow - keyword whole asin yellow - keyword whole atan yellow - keyword whole atan2 yellow - keyword whole acos yellow - keyword whole cabs yellow - keyword whole cexp yellow - keyword whole char yellow - keyword whole clog yellow - keyword whole cmplx yellow - keyword whole conjg yellow - keyword whole cos yellow - keyword whole cosh yellow - keyword whole ccos yellow - keyword whole csin yellow - keyword whole csqrt yellow - keyword whole dabs yellow - keyword whole dacos yellow - keyword whole dasin yellow - keyword whole datan yellow - keyword whole datan2 yellow - keyword whole dble yellow - keyword whole dcos yellow - keyword whole dcosh yellow - keyword whole dfloat yellow - keyword whole ddmim yellow - keyword whole dexp yellow - keyword whole dim yellow - keyword whole dint yellow - keyword whole dlog yellow - keyword whole dlog10 yellow - keyword whole dmax1 yellow - keyword whole dmin1 yellow - keyword whole dmod yellow - keyword whole dnint yellow - keyword whole dsign yellow - keyword whole dsin yellow - keyword whole dsinh yellow - keyword whole dsqrt yellow - keyword whole dtan yellow - keyword whole dtanh yellow - keyword whole equivalence yellow - keyword whole exp yellow - keyword whole float yellow - keyword whole iabs yellow - keyword whole ichar yellow - keyword whole idim yellow - keyword whole idint yellow - keyword whole ifix yellow - keyword whole index yellow - keyword whole int yellow - keyword whole isign yellow - keyword whole len yellow - keyword whole log yellow - keyword whole log10 yellow - keyword whole max yellow - keyword whole max0 yellow - keyword whole max1 yellow - keyword whole min yellow - keyword whole min0 yellow - keyword whole min1 yellow - keyword whole mod yellow - keyword whole rand yellow - keyword whole sign yellow - keyword whole sin yellow - keyword whole sinh yellow - keyword whole sngl yellow - keyword whole sqrt yellow - keyword whole tan yellow - keyword whole tanh yellow - -# operators and syntax elements - keyword ( brightcyan - keyword ) brightcyan - keyword , brightcyan - keyword \+ yellow - keyword - yellow - keyword \* yellow - keyword / yellow - keyword = yellow - -# comments and quotes - keyword '*' green - -context exclusive linestart ! \n brown - spellcheck -context exclusive linestart \* \n brown - spellcheck -context exclusive linestart c \n brown - spellcheck -context exclusive linestart C \n brown - spellcheck diff --git a/recipes/wip/files/mc/source/misc/syntax/glsl.syntax b/recipes/wip/files/mc/source/misc/syntax/glsl.syntax deleted file mode 100644 index 48cca1b045..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/glsl.syntax +++ /dev/null @@ -1,452 +0,0 @@ -# GLSL syntax file - -# Authors: -# Sergey Sharybin -# -# Based on glsl-mode.el from -# Xavier.Decoret@imag.fr -# Jim Hourihan - -context default - -# Types - - keyword whole float yellow - keyword whole double yellow - keyword whole int yellow - keyword whole void yellow - keyword whole bool yellow - keyword whole true yellow - keyword whole false yellow - keyword whole mat2 yellow - keyword whole mat3 yellow - keyword whole mat4 yellow - keyword whole dmat2 yellow - keyword whole dmat3 yellow - keyword whole dmat4 yellow - keyword whole mat2x2 yellow - keyword whole mat2x3 yellow - keyword whole mat2x4 yellow - keyword whole dmat2x2 yellow - keyword whole dmat2x3 yellow - keyword whole dmat2x4 yellow - keyword whole mat3x2 yellow - keyword whole mat3x3 yellow - keyword whole mat3x4 yellow - keyword whole dmat3x2 yellow - keyword whole dmat3x3 yellow - keyword whole dmat3x4 yellow - keyword whole mat4x2 yellow - keyword whole mat4x3 yellow - keyword whole mat4x4 yellow - keyword whole dmat4x2 yellow - keyword whole dmat4x3 yellow - keyword whole dmat4x4 yellow - keyword whole vec2 yellow - keyword whole vec3 yellow - keyword whole vec4 yellow - keyword whole ivec2 yellow - keyword whole ivec3 yellow - keyword whole ivec4 yellow - keyword whole bvec2 yellow - keyword whole bvec3 yellow - keyword whole bvec4 yellow - keyword whole dvec2 yellow - keyword whole dvec3 yellow - keyword whole dvec4 yellow - keyword whole uint yellow - keyword whole uvec2 yellow - keyword whole uvec3 yellow - keyword whole uvec4 yellow - keyword whole sampler1D yellow - keyword whole sampler2D yellow - keyword whole sampler3D yellow - keyword whole samplerCube yellow - keyword whole sampler1DShadow yellow - keyword whole sampler2DShadow yellow - keyword whole samplerCubeShadow yellow - keyword whole sampler1DArray yellow - keyword whole sampler2DArray yellow - keyword whole sampler1DArrayShadow yellow - keyword whole sampler2DArrayShadow yellow - keyword whole isampler1D yellow - keyword whole isampler2D yellow - keyword whole isampler3D yellow - keyword whole isamplerCube yellow - keyword whole isampler1DArray yellow - keyword whole isampler2DArray yellow - keyword whole usampler1D yellow - keyword whole usampler2D yellow - keyword whole usampler3D yellow - keyword whole usamplerCube yellow - keyword whole usampler1DArray yellow - keyword whole usampler2DArray yellow - keyword whole sampler2DRect yellow - keyword whole sampler2DRectShadow yellow - keyword whole isampler2DRect yellow - keyword whole usampler2DRect yellow - keyword whole samplerBuffer yellow - keyword whole isamplerBuffer yellow - keyword whole usamplerBuffer yellow - keyword whole sampler2DMS yellow - keyword whole isampler2DMS yellow - keyword whole usampler2DMS yellow - keyword whole sampler2DMSArray yellow - keyword whole isampler2DMSArray yellow - keyword whole usampler2DMSArray yellow - keyword whole samplerCubeArray yellow - keyword whole samplerCubeArrayShadow yellow - keyword whole isamplerCubeArray yellow - keyword whole usamplerCubeArray yellow - keyword whole image1D yellow - keyword whole iimage1D yellow - keyword whole uimage1D yellow - keyword whole image2D yellow - keyword whole iimage2D yellow - keyword whole uimage2D yellow - keyword whole image3D yellow - keyword whole iimage3D yellow - keyword whole uimage3D yellow - keyword whole image2DRect yellow - keyword whole iimage2DRect yellow - keyword whole uimage2DRect yellow - keyword whole imageCube yellow - keyword whole iimageCube yellow - keyword whole uimageCube yellow - keyword whole imageBuffer yellow - keyword whole iimageBuffer yellow - keyword whole uimageBuffer yellow - keyword whole image1DArray yellow - keyword whole iimage1DArray yellow - keyword whole uimage1DArray yellow - keyword whole image2DArray yellow - keyword whole iimage2DArray yellow - keyword whole uimage2DArray yellow - keyword whole imageCubeArray yellow - keyword whole iimageCubeArray yellow - keyword whole uimageCubeArray yellow - keyword whole image2DMS yellow - keyword whole iimage2DMS yellow - keyword whole uimage2DMS yellow - keyword whole image2DMSArray yellow - keyword whole iimage2DMSArray yellow - keyword whole uimage2DMSArray yellow - keyword whole long yellow - keyword whole short yellow - keyword whole half yellow - keyword whole fixed yellow - keyword whole unsigned yellow - keyword whole hvec2 yellow - keyword whole hvec3 yellow - keyword whole hvec4 yellow - keyword whole fvec2 yellow - keyword whole fvec3 yellow - keyword whole fvec4 yellow - keyword whole sampler3DRect yellow - -# Modifiers - - keyword whole attribute yellow - keyword whole const yellow - keyword whole uniform yellow - keyword whole varying yellow - keyword whole buffer yellow - keyword whole shared yellow - keyword whole coherent yellow - keyword whole volatile yellow - keyword whole restrict yellow - keyword whole readonly yellow - keyword whole writeonly yellow - keyword whole atomic_uint yellow - keyword whole layout yellow - keyword whole centroid yellow - keyword whole flat yellow - keyword whole smooth yellow - keyword whole noperspective yellow - keyword whole patch yellow - keyword whole sample yellow - keyword whole break yellow - keyword whole continue yellow - keyword whole do yellow - keyword whole for yellow - keyword whole while yellow - keyword whole switch yellow - keyword whole case yellow - keyword whole default yellow - keyword whole if yellow - keyword whole else yellow - keyword whole subroutine yellow - keyword whole in yellow - keyword whole out yellow - keyword whole inout yellow - keyword whole invariant yellow - keyword whole discard yellow - keyword whole return yellow - keyword whole lowp yellow - keyword whole mediump yellow - keyword whole highp yellow - keyword whole precision yellow - keyword whole struct yellow - keyword whole common yellow - keyword whole partition yellow - keyword whole active yellow - keyword whole asm yellow - keyword whole class yellow - keyword whole union yellow - keyword whole enum yellow - keyword whole typedef yellow - keyword whole template yellow - keyword whole this yellow - keyword whole packed yellow - keyword whole resource yellow - keyword whole goto yellow - keyword whole inline yellow - keyword whole noinline yellow - keyword whole public yellow - keyword whole static yellow - keyword whole extern yellow - keyword whole external yellow - keyword whole interface yellow - keyword whole superp yellow - keyword whole input yellow - keyword whole output yellow - keyword whole filter yellow - keyword whole sizeof yellow - keyword whole cast yellow - keyword whole namespace yellow - keyword whole using yellow - keyword whole row_major yellow - keyword whole early_fragment_tests yellow - -# Deprecated - keyword whole varying brightred - keyword whole attribute brightred - -# Built-in - keyword whole abs brightmagenta - keyword whole acos brightmagenta - keyword whole acosh brightmagenta - keyword whole all brightmagenta - keyword whole any brightmagenta - keyword whole asin brightmagenta - keyword whole asinh brightmagenta - keyword whole atan brightmagenta - keyword whole atanh brightmagenta - keyword whole atomicCounter brightmagenta - keyword whole atomicCounterDecrement brightmagenta - keyword whole atomicCounterIncrement brightmagenta - keyword whole barrier brightmagenta - keyword whole bitCount brightmagenta - keyword whole bitfieldExtract brightmagenta - keyword whole bitfieldInsert brightmagenta - keyword whole bitfieldReverse brightmagenta - keyword whole ceil brightmagenta - keyword whole clamp brightmagenta - keyword whole cos brightmagenta - keyword whole cosh brightmagenta - keyword whole cross brightmagenta - keyword whole degrees brightmagenta - keyword whole determinant brightmagenta - keyword whole dFdx brightmagenta - keyword whole dFdy brightmagenta - keyword whole dFdyFine brightmagenta - keyword whole dFdxFine brightmagenta - keyword whole dFdyCoarse brightmagenta - keyword whole dFdxCourse brightmagenta - keyword whole fwidthFine brightmagenta - keyword whole fwidthCoarse brightmagenta - keyword whole distance brightmagenta - keyword whole dot brightmagenta - keyword whole EmitStreamVertex brightmagenta - keyword whole EmitVertex brightmagenta - keyword whole EndPrimitive brightmagenta - keyword whole EndStreamPrimitive brightmagenta - keyword whole equal brightmagenta - keyword whole exp brightmagenta - keyword whole exp2 brightmagenta - keyword whole faceforward brightmagenta - keyword whole findLSB brightmagenta - keyword whole findMSB brightmagenta - keyword whole floatBitsToInt brightmagenta - keyword whole floatBitsToUint brightmagenta - keyword whole floor brightmagenta - keyword whole fma brightmagenta - keyword whole fract brightmagenta - keyword whole frexp brightmagenta - keyword whole fwidth brightmagenta - keyword whole greaterThan brightmagenta - keyword whole greaterThanEqual brightmagenta - keyword whole imageAtomicAdd brightmagenta - keyword whole imageAtomicAnd brightmagenta - keyword whole imageAtomicCompSwap brightmagenta - keyword whole imageAtomicExchange brightmagenta - keyword whole imageAtomicMax brightmagenta - keyword whole imageAtomicMin brightmagenta - keyword whole imageAtomicOr brightmagenta - keyword whole imageAtomicXor brightmagenta - keyword whole imageLoad brightmagenta - keyword whole imageSize brightmagenta - keyword whole imageStore brightmagenta - keyword whole imulExtended brightmagenta - keyword whole intBitsToFloat brightmagenta - keyword whole imageSamples brightmagenta - keyword whole interpolateAtCentroid brightmagenta - keyword whole interpolateAtOffset brightmagenta - keyword whole interpolateAtSample brightmagenta - keyword whole inverse brightmagenta - keyword whole inversesqrt brightmagenta - keyword whole isinf brightmagenta - keyword whole isnan brightmagenta - keyword whole ldexp brightmagenta - keyword whole length brightmagenta - keyword whole lessThan brightmagenta - keyword whole lessThanEqual brightmagenta - keyword whole log brightmagenta - keyword whole log2 brightmagenta - keyword whole matrixCompMult brightmagenta - keyword whole max brightmagenta - keyword whole memoryBarrier brightmagenta - keyword whole min brightmagenta - keyword whole mix brightmagenta - keyword whole mod brightmagenta - keyword whole modf brightmagenta - keyword whole noise brightmagenta - keyword whole normalize brightmagenta - keyword whole not brightmagenta - keyword whole notEqual brightmagenta - keyword whole outerProduct brightmagenta - keyword whole packDouble2x32 brightmagenta - keyword whole packHalf2x16 brightmagenta - keyword whole packSnorm2x16 brightmagenta - keyword whole packSnorm4x8 brightmagenta - keyword whole packUnorm2x16 brightmagenta - keyword whole packUnorm4x8 brightmagenta - keyword whole pow brightmagenta - keyword whole radians brightmagenta - keyword whole reflect brightmagenta - keyword whole refract brightmagenta - keyword whole round brightmagenta - keyword whole roundEven brightmagenta - keyword whole sign brightmagenta - keyword whole sin brightmagenta - keyword whole sinh brightmagenta - keyword whole smoothstep brightmagenta - keyword whole sqrt brightmagenta - keyword whole step brightmagenta - keyword whole tan brightmagenta - keyword whole tanh brightmagenta - keyword whole texelFetch brightmagenta - keyword whole texelFetchOffset brightmagenta - keyword whole texture brightmagenta - keyword whole textureGather brightmagenta - keyword whole textureGatherOffset brightmagenta - keyword whole textureGatherOffsets brightmagenta - keyword whole textureGrad brightmagenta - keyword whole textureGradOffset brightmagenta - keyword whole textureLod brightmagenta - keyword whole textureLodOffset brightmagenta - keyword whole textureOffset brightmagenta - keyword whole textureProj brightmagenta - keyword whole textureProjGrad brightmagenta - keyword whole textureProjGradOffset brightmagenta - keyword whole textureProjLod brightmagenta - keyword whole textureProjLodOffset brightmagenta - keyword whole textureProjOffset brightmagenta - keyword whole textureQueryLevels brightmagenta - keyword whole textureQueryLod brightmagenta - keyword whole textureSize brightmagenta - keyword whole transpose brightmagenta - keyword whole trunc brightmagenta - keyword whole uaddCarry brightmagenta - keyword whole uintBitsToFloat brightmagenta - keyword whole umulExtended brightmagenta - keyword whole unpackDouble2x32 brightmagenta - keyword whole unpackHalf2x16 brightmagenta - keyword whole unpackSnorm2x16 brightmagenta - keyword whole unpackSnorm4x8 brightmagenta - keyword whole unpackUnorm2x16 brightmagenta - keyword whole unpackUnorm4x8 brightmagenta - keyword whole usubBorrow brightmagenta - -# Deprecated built-in - keyword whole texture1D magenta - keyword whole texture1DProj magenta - keyword whole texture1DLod magenta - keyword whole texture1DProjLod magenta - keyword whole texture2D magenta - keyword whole texture2DProj magenta - keyword whole texture2DLod magenta - keyword whole texture2DProjLod magenta - keyword whole texture2DRect magenta - keyword whole texture2DRectProj magenta - keyword whole texture3D magenta - keyword whole texture3DProj magenta - keyword whole texture3DLod magenta - keyword whole texture3DProjLod magenta - keyword whole shadow1D magenta - keyword whole shadow1DProj magenta - keyword whole shadow1DLod magenta - keyword whole shadow1DProjLod magenta - keyword whole shadow2D magenta - keyword whole shadow2DProj magenta - keyword whole shadow2DLod magenta - keyword whole shadow2DProjLod magenta - keyword whole textureCube magenta - keyword whole textureCubeLod magenta - -# Deprecated variables - - keyword whole gl_FragColor red - keyword whole gl_FragData red - keyword whole gl_MaxVarying red - keyword whole gl_MaxVaryingFloats red - keyword whole gl_MaxVaryingComponents red - -# Comments - keyword /\* brown - keyword \*/ brown - keyword // brown - -# Preprocessor - keyword # brightred - -# Punctuation - keyword > white - keyword < white - keyword \+ white - keyword - white - keyword \* white - keyword / white - keyword % white - keyword = white - keyword != white - keyword == white - keyword & white - keyword | white - keyword :: white - keyword -> white - keyword { brightcyan - keyword } brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword [ brightcyan - keyword ] brightcyan - keyword , brightcyan - keyword : brightcyan - keyword ; brightmagenta - -context exclusive # \n brightred - keyword \\\n yellow - keyword /\**\*/ brown - keyword //*\n brown - keyword "+" red - keyword <+> red -context exclusive /\* \*/ brown - spellcheck -context exclusive // \n brown - spellcheck - -context " " green - spellcheck -context ' ' brightgreen - spellcheck diff --git a/recipes/wip/files/mc/source/misc/syntax/go.syntax b/recipes/wip/files/mc/source/misc/syntax/go.syntax deleted file mode 100644 index 5e2b1b7d0a..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/go.syntax +++ /dev/null @@ -1,158 +0,0 @@ -context default -# keywords - keyword whole break yellow - keyword whole case yellow - keyword whole chan yellow - keyword whole const yellow - keyword whole continue yellow - keyword whole default yellow - keyword whole defer yellow - keyword whole else yellow - keyword whole fallthrough yellow - keyword whole for yellow - keyword whole func yellow - keyword whole go yellow - keyword whole goto yellow - keyword whole if yellow - keyword whole import yellow - keyword whole interface yellow - keyword whole map yellow - keyword whole package yellow - keyword whole range yellow - keyword whole return yellow - keyword whole select yellow - keyword whole struct yellow - keyword whole switch yellow - keyword whole type yellow - keyword whole var yellow -# builtin types - keyword whole uint8 brightgreen - keyword whole uint16 brightgreen - keyword whole uint32 brightgreen - keyword whole uint64 brightgreen - keyword whole int8 brightgreen - keyword whole int16 brightgreen - keyword whole int32 brightgreen - keyword whole int64 brightgreen - keyword whole float32 brightgreen - keyword whole float64 brightgreen - keyword whole byte brightgreen - keyword whole uint brightgreen - keyword whole int brightgreen - keyword whole float brightgreen - keyword whole uintptr brightgreen - keyword whole string brightgreen - keyword whole bool brightgreen - keyword whole time brightgreen -# builtin functions - keyword whole nil brown - keyword whole true brown - keyword whole false brown - keyword whole iota brown - keyword whole cap brown - keyword whole close brown - keyword whole closed brown - keyword whole len brown - keyword whole make brown - keyword whole new brown - keyword whole panic brown - keyword whole panicln brown - keyword whole print brown - keyword whole println brown -# builtin packages - keyword whole tar brightgreen - keyword whole zip brightgreen - keyword whole bufio brightgreen - keyword whole bytes brightgreen - keyword whole cmd brightgreen - keyword whole compress brightgreen - keyword whole container brightgreen - keyword whole crypto brightgreen - keyword whole database brightgreen - keyword whole debug brightgreen - keyword whole encoding brightgreen - keyword whole errors brightgreen - keyword whole expvar brightgreen - keyword whole flag brightgreen - keyword whole fmt brightgreen - keyword whole hash brightgreen - keyword whole html brightgreen - keyword whole image brightgreen - keyword whole suffixarray brightgreen - keyword whole race brightgreen - keyword whole singleflight brightgreen - keyword whole syscall brightgreen - keyword whole testenv brightgreen - keyword whole trace brightgreen - keyword whole io brightgreen - keyword whole log brightgreen - keyword whole math brightgreen - keyword whole mime brightgreen - keyword whole net brightgreen - keyword whole os brightgreen - keyword whole path brightgreen - keyword whole reflect brightgreen - keyword whole regexp brightgreen - keyword whole runtime brightgreen - keyword whole sort brightgreen - keyword whole strconv brightgreen - keyword whole strings brightgreen - keyword whole sync brightgreen - keyword whole testing brightgreen - keyword whole text brightgreen - keyword whole time brightgreen - keyword whole unicode brightgreen - keyword whole unsafe brightgreen - keyword whole vendor brightgreen - keyword whole unicode brightgreen -# special functions - keyword whole init brown - keyword whole main brown -# comment chars - keyword /\* green - keyword \*/ green - keyword // green -# punctuation, operator chars - keyword <- brightmagenta - keyword \+ brightcyan - keyword & brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword - brightcyan - keyword | brightcyan - keyword < brightcyan - keyword [ brightcyan - keyword ] brightcyan - keyword \* brightcyan - keyword ^ brightcyan - keyword > brightcyan - keyword { brightcyan - keyword } brightcyan - keyword / brightcyan - keyword = brightcyan - keyword , brightcyan - keyword ; brightcyan - keyword % brightcyan - keyword ! brightcyan - keyword . brightcyan - keyword : brightcyan - -# comment -context exclusive /\* \*/ brown -context exclusive // \n brown - -# char, raw string, string -context ' ' gray - keyword \\\{abfnrtv\\'"\} white - keyword \\\{0123\}\{01234567\}\{01234567\} white - keyword \\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} white - keyword \\u\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} white - keyword \\U\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} white -context ` ` green -context " " green - spellcheck - keyword \\\{abfnrtv\\'"\} brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\x\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightgreen - keyword \\u\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightgreen - keyword \\U\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\}\{0123456789abcdefABCDEF\} brightgreen diff --git a/recipes/wip/files/mc/source/misc/syntax/haskell.syntax b/recipes/wip/files/mc/source/misc/syntax/haskell.syntax deleted file mode 100644 index c650479c32..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/haskell.syntax +++ /dev/null @@ -1,283 +0,0 @@ -# Author : Sergei Trofimovich -# Language : haskell -# -# 'Syntax rules for the C and the C++ programming languages' is taken as base -# (haskell compilers support CPP macros) -# -# haskell keywords and reserved symbols are grabbed from ghc-6.10.1/compiler/parser/Lexer.hs - -context default - -# haskell keywords - -# reserved keywords: - -# unused symbols - keyword whole _\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] brightmagenta - - keyword whole as yellow - keyword whole case yellow - keyword whole class yellow - keyword whole data yellow - keyword whole default yellow - keyword whole deriving yellow - keyword whole do yellow - keyword whole else yellow - keyword whole hiding yellow - keyword whole if yellow - keyword whole import yellow - keyword whole in yellow - keyword whole infix yellow - keyword whole infixl yellow - keyword whole infixr yellow - keyword whole instance yellow - keyword whole let yellow - keyword whole module yellow - keyword whole newtype yellow - keyword whole of yellow - keyword whole qualified yellow - keyword whole then yellow - keyword whole type yellow - keyword whole where yellow - -# extension keywords - keyword whole forall yellow - keyword whole mdo yellow - keyword whole family yellow - keyword whole group yellow - keyword whole by yellow - keyword whole using yellow - -# ffi - keyword whole foreign yellow - keyword whole export yellow - keyword whole label yellow - keyword whole dynamic yellow - keyword whole safe yellow - keyword whole threadsafe yellow - keyword whole unsafe yellow - keyword whole stdcall yellow - keyword whole ccall yellow - keyword whole dotnet yellow - - keyword whole rec yellow - keyword whole proc yellow - -# other - keyword . white -# keyword whole .. white - -# unboxed (started from upcase) - keyword whole \{ABCDEFGHIJKLMNOPQRSTUVWXYZ\}\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]# white -# types/modules - keyword whole \{ABCDEFGHIJKLMNOPQRSTUVWXYZ\}\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\] white - -# C keywords (TODO: remove unused in haskell source) - keyword whole auto yellow - keyword whole break yellow - keyword whole case yellow - keyword whole char yellow - keyword whole const yellow - keyword whole continue yellow - keyword whole do yellow - keyword whole double yellow - keyword whole else yellow - keyword whole enum yellow - keyword whole extern yellow - keyword whole float yellow - keyword whole for yellow - keyword whole goto yellow - keyword whole if yellow - keyword whole int yellow - keyword whole long yellow - keyword whole register yellow - keyword whole return yellow - keyword whole short yellow - keyword whole signed yellow - keyword whole sizeof yellow - keyword whole static yellow - keyword whole struct yellow - keyword whole switch yellow - keyword whole typedef yellow - keyword whole union yellow - keyword whole unsigned yellow - keyword whole void yellow - keyword whole volatile yellow - keyword whole while yellow - keyword whole asm yellow - keyword whole inline yellow - keyword whole wchar_t yellow - keyword whole ... yellow - keyword whole linestart \{\s\t\}\[\s\t\]#*\n brightmagenta - keyword whole \[\s\t\]default yellow - keyword whole linestart \[\s\t\]\{ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\}\[0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz\]: cyan - -#digits - keyword whole 0\{xX\}\{0123456789abcdefABCDEF\}\[0123456789abcdefABCDEF\] brightgreen - keyword whole \{0123456789\}\[0123456789\] brightgreen - keyword whole \[0123456789\]\.\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\.\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{0123456789\}\[0123456789\] brightgreen - keyword whole \{0123456789\}\[0123456789\]\.\{0123456789\}\[0123456789\]\{eE\}\{\-\+\}\{0123456789\}\[0123456789\] brightgreen - -#comments - keyword {- brown - keyword -} brown - keyword -- brown - - keyword \*/ brown - keyword /\* brown - keyword // brown - - keyword '\\\{"abtnvfr\}' brightgreen - -#haskell standalone char escapes - keyword '\\NUL' brightgreen - keyword '\\SOH' brightgreen - keyword '\\STX' brightgreen - keyword '\\ETX' brightgreen - keyword '\\EOT' brightgreen - keyword '\\ENQ' brightgreen - keyword '\\ACK' brightgreen - keyword '\\BEL' brightgreen - keyword '\\BS' brightgreen - keyword '\\HT' brightgreen - keyword '\\LF' brightgreen - keyword '\\VT' brightgreen - keyword '\\FF' brightgreen - keyword '\\CR' brightgreen - keyword '\\SO' brightgreen - keyword '\\SI' brightgreen - keyword '\\DLE' brightgreen - keyword '\\DC1' brightgreen - keyword '\\DC2' brightgreen - keyword '\\DC3' brightgreen - keyword '\\DC4' brightgreen - keyword '\\NAK' brightgreen - keyword '\\SYN' brightgreen - keyword '\\ETB' brightgreen - keyword '\\CAN' brightgreen - keyword '\\EM' brightgreen - keyword '\\SUB' brightgreen - keyword '\\ESC' brightgreen - keyword '\\FS' brightgreen - keyword '\\GS' brightgreen - keyword '\\RS' brightgreen - keyword '\\US' brightgreen - keyword '\\SP' brightgreen - keyword '\\DEL' brightgreen - - keyword '\\\{0123\}\{01234567\}\{01234567\}' brightgreen - keyword '\\'' brightgreen - keyword '\\\\' brightgreen - keyword '\\0' brightgreen - keyword '\{\s!"#$%&()\*\+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ\}' brightgreen - -# some punctuation characters - keyword whole $ yellow - keyword whole ! white - keyword whole && white - keyword whole \* yellow - keyword whole \+ yellow - keyword whole / yellow - keyword whole < yellow - keyword whole > yellow - keyword whole ^ white - keyword whole || white - keyword whole | white - - keyword ~ white - keyword , brightcyan - keyword - yellow - keyword : brightcyan - keyword ; yellow - keyword = yellow - keyword { white - keyword } white - keyword [ brightcyan - keyword ] brightcyan - keyword ( brightcyan - keyword ) brightcyan - -# comments -context exclusive /\* \*/ brown - spellcheck - -context exclusive {-# #-} green - spellcheck - -context exclusive {- -} brown - spellcheck - -context exclusive // \n brown - spellcheck - -context exclusive \-\- \n brown - spellcheck - -# C macros -context linestart # \n brightred - keyword \\\n yellow - keyword /\**\*/ brown - keyword //*\n brown - keyword "+" red - keyword <+> red - - -context " " green - spellcheck - -#haskell escapes in ""s - keyword \\NUL brightgreen - keyword \\SOH brightgreen - keyword \\STX brightgreen - keyword \\ETX brightgreen - keyword \\EOT brightgreen - keyword \\ENQ brightgreen - keyword \\ACK brightgreen - keyword \\BEL brightgreen - keyword \\BS brightgreen - keyword \\HT brightgreen - keyword \\LF brightgreen - keyword \\VT brightgreen - keyword \\FF brightgreen - keyword \\CR brightgreen - keyword \\SO brightgreen - keyword \\SI brightgreen - keyword \\DLE brightgreen - keyword \\DC1 brightgreen - keyword \\DC2 brightgreen - keyword \\DC3 brightgreen - keyword \\DC4 brightgreen - keyword \\NAK brightgreen - keyword \\SYN brightgreen - keyword \\ETB brightgreen - keyword \\CAN brightgreen - keyword \\EM brightgreen - keyword \\SUB brightgreen - keyword \\ESC brightgreen - keyword \\FS brightgreen - keyword \\GS brightgreen - keyword \\RS brightgreen - keyword \\US brightgreen - keyword \\SP brightgreen - keyword \\DEL brightgreen - - keyword \\" brightgreen - keyword %% brightgreen - keyword %\[#0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[L\]\{eEfgGoxX\} brightgreen - keyword %\[0\s-\+,\]\[0123456789\*\]\[.\]\[0123456789\*\]\[hl\]\{diuxX\} brightgreen - keyword %\[hl\]n brightgreen - keyword %\[-\]\[0123456789\*\]\[.\]\[0123456789\*\]s brightgreen - keyword %[*] brightgreen - keyword %c brightgreen - keyword %p brightgreen - keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen - keyword \\\\ brightgreen - keyword \\' brightgreen - keyword \\\{abtnvfr\} brightgreen - -# infix binop -context exclusive ` ` white diff --git a/recipes/wip/files/mc/source/misc/syntax/hive.syntax b/recipes/wip/files/mc/source/misc/syntax/hive.syntax deleted file mode 100644 index a8b01d7d5c..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/hive.syntax +++ /dev/null @@ -1,627 +0,0 @@ -# HQL syntax highlighting -# by Michal Lorek - -caseinsensitive - -context default - -# Keywords - keyword whole TRUE white - keyword whole FALSE white - keyword whole ALL white - keyword whole NONE white - keyword whole AND white - keyword whole OR white - keyword whole NOT white - keyword whole ! brightcyan - keyword whole LIKE white - keyword whole ANY white - keyword whole IF white - keyword whole EXISTS white - keyword whole ASC white - keyword whole DESC white - keyword whole NULLS white - keyword whole LAST white - keyword whole ORDER white - keyword whole GROUP white - keyword whole BY white - keyword whole HAVING white - keyword whole WHERE white - keyword whole FROM white - keyword whole AS white - keyword whole SELECT white - keyword whole DISTINCT white - keyword whole INSERT white - keyword whole OVERWRITE magenta - keyword whole OUTER white - keyword whole UNIQUEJOIN white - keyword whole PRESERVE white - keyword whole JOIN white - keyword whole LEFT white - keyword whole RIGHT white - keyword whole FULL white - keyword whole ON white - keyword whole PARTITION white - keyword whole PARTITIONS white - keyword whole TABLE white - keyword whole TABLES white - keyword whole COLUMNS white - keyword whole INDEX white - keyword whole INDEXES white - keyword whole REBUILD white - keyword whole FUNCTIONS white - keyword whole SHOW white - keyword whole MSCK white - keyword whole REPAIR white - keyword whole DIRECTORY magenta - keyword whole LOCAL magenta - keyword whole TRANSFORM white - keyword whole USING white - keyword whole CLUSTER white - keyword whole DISTRIBUTE white - keyword whole SORT white - keyword whole UNION white - keyword whole EXCEPT white - keyword whole LOAD white - keyword whole EXPORT white - keyword whole IMPORT white - keyword whole REPLICATION white - keyword whole METADATA white - keyword whole DATA white - keyword whole INPATH white - keyword whole IS white - keyword whole NULL white - keyword whole CREATE white - keyword whole EXTERNAL white - keyword whole ALTER white - keyword whole CHANGE white - keyword whole COLUMN white - keyword whole FIRST white - keyword whole AFTER white - keyword whole DESCRIBE magenta - keyword whole DROP white - keyword whole RENAME white - keyword whole TO white - keyword whole COMMENT white - keyword whole BOOLEAN white - keyword whole TINYINT white - keyword whole SMALLINT white - keyword whole INT white - keyword whole INTEGER white - keyword whole BIGINT white - keyword whole FLOAT white - keyword whole DOUBLE white - keyword whole PRECISION white - keyword whole DATE white - keyword whole DATETIME white - keyword whole TIMESTAMP white - keyword whole TIMESTAMPTZ white - keyword whole TIME white - keyword whole ZONE white - keyword whole INTERVAL white - keyword whole DECIMAL white - keyword whole DEC white - keyword whole NUMERIC white - keyword whole STRING white - keyword whole CHAR white - keyword whole VARCHAR white - keyword whole ARRAY white - keyword whole STRUCT white - keyword whole MAP white - keyword whole UNIONTYPE white - keyword whole REDUCE white - keyword whole PARTITIONED white - keyword whole CLUSTERED white - keyword whole SORTED white - keyword whole INTO white - keyword whole BUCKETS white - keyword whole ROW magenta - keyword whole ROWS magenta - keyword whole FORMAT magenta - keyword whole DELIMITED magenta - keyword whole FIELDS magenta - keyword whole TERMINATED magenta - keyword whole ESCAPED magenta - keyword whole COLLECTION white - keyword whole ITEMS white - keyword whole KEYS white - keyword whole $KEY$ white - keyword whole LINES magenta - keyword whole STORED magenta - keyword whole FILEFORMAT magenta - keyword whole INPUTFORMAT magenta - keyword whole OUTPUTFORMAT magenta - keyword whole INPUTDRIVER white - keyword whole OUTPUTDRIVER white - keyword whole ENABLE white - keyword whole DISABLE white - keyword whole LOCATION magenta - keyword whole TABLESAMPLE white - keyword whole BUCKET white - keyword whole OUT white - keyword whole OF white - keyword whole PERCENT white - keyword whole CAST cyan - keyword whole ADD white - keyword whole REPLACE white - keyword whole RLIKE white - keyword whole REGEXP white - keyword whole TEMPORARY white - keyword whole FUNCTION white - keyword whole MACRO white - keyword whole FILE white - keyword whole JAR white - keyword whole EXPLAIN white - keyword whole EXTENDED white - keyword whole FORMATTED white - keyword whole PRETTY white - keyword whole DEPENDENCY white - keyword whole LOGICAL white - keyword whole SERDE white - keyword whole WITH white - keyword whole DEFERRED white - keyword whole SERDEPROPERTIES white - keyword whole DBPROPERTIES white - keyword whole LIMIT white - keyword whole OFFSET white - keyword whole SET white - keyword whole UNSET white - keyword whole TBLPROPERTIES white - keyword whole IDXPROPERTIES white - keyword whole $VALUE$ white - keyword whole $ELEM$ white - keyword whole DEFINED white - keyword whole CASE white - keyword whole WHEN white - keyword whole THEN white - keyword whole ELSE white - keyword whole END white - keyword whole MAPJOIN white - keyword whole STREAMTABLE white - keyword whole CLUSTERSTATUS white - keyword whole UTC white - keyword whole UTC_TMESTAMP white - keyword whole LONG white - keyword whole DELETE white - keyword whole PLUS white - keyword whole MINUS white - keyword whole FETCH white - keyword whole INTERSECT white - keyword whole VIEW white - keyword whole VIEWS white - keyword whole IN white - keyword whole DATABASE white - keyword whole DATABASES white - keyword whole MATERIALIZED white - keyword whole SCHEMA white - keyword whole SCHEMAS white - keyword whole GRANT white - keyword whole REVOKE white - keyword whole SSL white - keyword whole UNDO white - keyword whole LOCK white - keyword whole LOCKS white - keyword whole UNLOCK white - keyword whole SHARED white - keyword whole EXCLUSIVE white - keyword whole PROCEDURE white - keyword whole UNSIGNED white - keyword whole WHILE white - keyword whole READ white - keyword whole READS white - keyword whole PURGE white - keyword whole RANGE white - keyword whole ANALYZE white - keyword whole BEFORE white - keyword whole BETWEEN white - keyword whole BOTH white - keyword whole BINARY white - keyword whole CROSS white - keyword whole CONTINUE white - keyword whole CURSOR white - keyword whole TRIGGER white - keyword whole RECORDREADER white - keyword whole RECORDWRITER white - keyword whole SEMI white - keyword whole LATERAL magenta - keyword whole TOUCH white - keyword whole ARCHIVE magenta - keyword whole UNARCHIVE magenta - keyword whole COMPUTE white - keyword whole STATISTICS white - keyword whole USE magenta - keyword whole OPTION white - keyword whole CONCATENATE magenta - keyword whole SHOW_DATABASE white - keyword whole UPDATE white - keyword whole RESTRICT white - keyword whole CASCADE white - keyword whole SKEWED white - keyword whole ROLLUP white - keyword whole CUBE white - keyword whole DIRECTORIES white - keyword whole FOR white - keyword whole WINDOW white - keyword whole UNBOUNDED white - keyword whole PRECEDING white - keyword whole FOLLOWING white - keyword whole CURRENT white - keyword whole CURRENT_DATE white - keyword whole CURRENT_TIMESTAMP white - keyword whole LESS white - keyword whole MORE white - keyword whole OVER white - keyword whole GROUPING white - keyword whole SETS white - keyword whole TRUNCATE white - keyword whole NOSCAN white - keyword whole PARTIALSCAN white - keyword whole USER white - keyword whole ROLE white - keyword whole ROLES white - keyword whole INNER white - keyword whole EXCHANGE white - keyword whole URI white - keyword whole SERVER white - keyword whole ADMIN white - keyword whole OWNER white - keyword whole PRINCIPALS white - keyword whole COMPACT white - keyword whole COMPACTIONS white - keyword whole TRANSACTIONS white - keyword whole REWRITE white - keyword whole AUTHORIZATION white - keyword whole CONF white - keyword whole VALUES white - keyword whole RELOAD white - keyword whole YEAR white - keyword whole YEARS white - keyword whole QUARTER white - keyword whole MONTH white - keyword whole MONTHS white - keyword whole WEEK white - keyword whole WEEKS white - keyword whole DAY white - keyword whole DAYS white - keyword whole DAYOFWEEK white - keyword whole HOUR white - keyword whole HOURS white - keyword whole MINUTE white - keyword whole MINUTES white - keyword whole SECOND white - keyword whole SECONDS white - keyword whole START white - keyword whole TRANSACTION white - keyword whole COMMIT white - keyword whole ROLLBACK white - keyword whole WORK white - keyword whole ONLY white - keyword whole WRITE white - keyword whole ISOLATION white - keyword whole LEVEL white - keyword whole SNAPSHOT white - keyword whole AUTOCOMMIT white - keyword whole CACHE white - keyword whole PRIMARY white - keyword whole FOREIGN white - keyword whole REFERENCES white - keyword whole CONSTRAINT white - keyword whole VALIDATE white - keyword whole NOVALIDATE white - keyword whole RELY white - keyword whole NORELY white - keyword whole UNIQUE white - keyword whole KEY white - keyword whole ABORT white - keyword whole EXTRACT white - keyword whole FLOOR white - keyword whole MERGE white - keyword whole MATCHED white - keyword whole REPL white - keyword whole DUMP white - keyword whole STATUS white - keyword whole VECTORIZATION white - keyword whole SUMMARY white - keyword whole OPERATOR white - keyword whole EXPRESSION white - keyword whole DETAIL white - keyword whole WAIT white - -# Storage Formats - keyword whole TEXTFILE brightblue - keyword whole ORC brightblue - keyword whole SEQUENCEFILE brightblue - keyword whole RCFILE brightblue - keyword whole PARQUET brightblue - keyword whole AVRO brightblue - -# Comments - keyword /\* brown - keyword \*/ brown - keyword -- brown - -# Operators - keyword > brightcyan - keyword < brightcyan - keyword \+ brightcyan - keyword - brightcyan - keyword \* brightcyan - keyword / brightcyan - keyword % brightcyan - keyword = brightcyan - keyword ( brightcyan - keyword ) brightcyan - keyword , brightcyan - keyword ; brightcyan - keyword . white - keyword \| white - keyword != white - keyword \^ white - keyword \~ white - keyword whole DIV white - keyword [ brightcyan - keyword ] brightcyan - keyword { brightcyan - keyword } brightcyan - keyword : white - keyword & white - keyword ? white - -# Mathematical Functions - keyword whole round yellow - keyword whole bround yellow - keyword whole floor yellow - keyword whole ceil yellow - keyword whole rand yellow - keyword whole exp yellow - keyword whole ln yellow - keyword whole log10 yellow - keyword whole log2 yellow - keyword whole log yellow - keyword whole pow yellow - keyword whole sqrt yellow - keyword whole bin yellow - keyword whole hex yellow - keyword whole unhex yellow - keyword whole conv yellow - keyword whole abs yellow - keyword whole pmod yellow - keyword whole sin yellow - keyword whole asin yellow - keyword whole cos yellow - keyword whole acos yellow - keyword whole tan yellow - keyword whole atan yellow - keyword whole degrees yellow - keyword whole radians yellow - keyword whole positive yellow - keyword whole negative yellow - keyword whole sign yellow - keyword whole e() yellow - keyword whole pi() yellow - keyword whole factorial yellow - keyword whole cbrt yellow - keyword whole shiftleft yellow - keyword whole shiftright yellow - keyword whole shiftrightunsigned yellow - keyword whole greatest yellow - keyword whole least yellow - keyword whole width_bucket yellow - -# Collection Functions - keyword whole size yellow - keyword whole map_keys yellow - keyword whole map_values yellow - keyword whole array_contains yellow - keyword whole sort_array yellow - -# Type Conversion -# binary # keyword -# cast # keyword - -# Date Functions - keyword whole from_unixtime yellow - keyword whole unix_timestamp yellow - keyword whole to_date yellow - keyword whole year yellow - keyword whole quarter yellow - keyword whole month yellow - keyword whole day yellow - keyword whole hour yellow - keyword whole minute yellow - keyword whole second yellow - keyword whole weekofyear yellow - keyword whole extract yellow - keyword whole datediff yellow - keyword whole date_add yellow - keyword whole date_sub yellow - keyword whole from_utc_timestamp yellow - keyword whole to_utc_timestamp yellow - keyword whole current_date yellow - keyword whole add_months yellow - keyword whole last_day yellow - keyword whole next_day yellow - keyword whole trunc yellow - keyword whole months_between yellow - keyword whole date_format yellow - -# Conditional Functions - keyword whole if yellow - keyword whole isnull yellow - keyword whole isnotnull yellow - keyword whole coalesce yellow - keyword whole nullif yellow - keyword whole assert_true yellow - -# String Functions - keyword whole ascii yellow - keyword whole base64 yellow - keyword whole character_length yellow - keyword whole chr yellow - keyword whole concat yellow - keyword whole context_ngrams yellow - keyword whole concat_ws yellow - keyword whole decode yellow - keyword whole elt yellow - keyword whole encode yellow - keyword whole field yellow - keyword whole find_in_set yellow - keyword whole format_number yellow - keyword whole get_json_object yellow - keyword whole in_file yellow - keyword whole instr yellow - keyword whole length yellow - keyword whole locate yellow - keyword whole lower yellow - keyword whole lpad yellow - keyword whole ltrim yellow - keyword whole ngrams yellow - keyword whole octet_length yellow - keyword whole parse_url yellow - keyword whole printf yellow - keyword whole regexp_extract yellow - keyword whole regexp_replace yellow - keyword whole repeat yellow - keyword whole replace yellow - keyword whole reverse yellow - keyword whole rpad yellow - keyword whole rtrim yellow - keyword whole sentences yellow - keyword whole space yellow - keyword whole split yellow - keyword whole str_to_map yellow - keyword whole substr yellow - keyword whole substr_index yellow - keyword whole translate yellow - keyword whole trim yellow - keyword whole unbase64 yellow - keyword whole upper yellow - keyword whole initcap yellow - keyword whole levenshtein yellow - keyword whole soundex yellow - -# Data Masking Functions - keyword whole mask yellow - keyword whole mask_first_n yellow - keyword whole mask_last_n yellow - keyword whole mask_show_first_n yellow - keyword whole mask_show_last_n yellow - keyword whole mask_hash yellow - -# Misc. Functions - keyword whole java_method yellow - keyword whole reflect yellow - keyword whole hash yellow - keyword whole current_user yellow - keyword whole logged_user yellow - keyword whole md5 yellow - keyword whole sha1 yellow - keyword whole sha yellow - keyword whole crc32 yellow - keyword whole sha2 yellow - keyword whole aes_encrypt yellow - keyword whole aes_decrypt yellow - keyword whole version yellow - -# xpath - keyword whole xpath yellow - keyword whole xpath_short yellow - keyword whole xpath_int yellow - keyword whole xpath_long yellow - keyword whole xpath_float yellow - keyword whole xpath_double yellow - keyword whole xpath_number yellow - keyword whole xpath_string yellow - -# Aggregate Functions - keyword whole count yellow - keyword whole sum yellow - keyword whole avg yellow - keyword whole min yellow - keyword whole max yellow - keyword whole variance yellow - keyword whole var_samp yellow - keyword whole stddev_pop yellow - keyword whole stddev_samp yellow - keyword whole covar_pop yellow - keyword whole covar_samp yellow - keyword whole corr yellow - keyword whole percentile yellow - keyword whole regr_avgx yellow - keyword whole regr_avgy yellow - keyword whole regr_count yellow - keyword whole regr_intercept yellow - keyword whole regr_r2 yellow - keyword whole regr_slope yellow - keyword whole regr_sxx yellow - keyword whole regr_sxy yellow - keyword whole regr_syy yellow - keyword whole histogram_numeric yellow - keyword whole collect_set yellow - keyword whole collect_list yellow - keyword whole ntile yellow - -# Table-Generating Functions - keyword whole explode yellow - keyword whole posexplode yellow - keyword whole inline yellow - keyword whole stack yellow - keyword whole json_tuple yellow - keyword whole parse_url yellow - -# Window Functions - keyword whole lead yellow - keyword whole lag yellow - keyword whole first_value yellow - keyword whole last_value yellow - keyword whole rank yellow - keyword whole row_number yellow - keyword whole dense_rank yellow - keyword whole cume_dist yellow - keyword whole percent_rank yellow - keyword whole ntile yellow - -# Variables - # oozie variables - keyword whole ${+} brightgreen - # hive variables - keyword whole ${hiveconf:+} magenta - - -# Hive options - keyword wholeright hive.+.+.+ red - keyword wholeright tez.+.+ red - keyword wholeright mapreduce.+.+ red - -# Literals - # float - keyword whole \[0123456789\]\{.\}\[0123456789\] brightmagenta - # float e notation - keyword whole \[0123456789\]\[.\]\[0123456789\]\{e\}\[\+-\]\{0123456789\}\[0123456789\] brightmagenta - - # tinyint - keyword whole \{0123456789\}\[0123456789\]Y magenta - # smallint - keyword whole \{0123456789\}\[0123456789\]S magenta - # bigint - keyword whole \{0123456789\}\[0123456789\]L magenta - # int - keyword whole \{0123456789\}\[0123456789\] brightmagenta - # big decimal - keyword whole \{0123456789\}\[0123456789\]BD magenta - -context exclusive -- \n brown - spellcheck - -context exclusive /\* \*/ brown - spellcheck - -context ' ' green - keyword \\' brightgreen - # oozie variables - keyword whole ${+} brightgreen - # hive variables - keyword whole ${hiveconf:+} magenta - -context " " red - keyword \\" brightred diff --git a/recipes/wip/files/mc/source/misc/syntax/html.syntax b/recipes/wip/files/mc/source/misc/syntax/html.syntax deleted file mode 100644 index 3adbe4d0b4..0000000000 --- a/recipes/wip/files/mc/source/misc/syntax/html.syntax +++ /dev/null @@ -1,1267 +0,0 @@ - -# html highlighting with tags in caps always. if you want everything in lowercase -# use tr - -# i got upto IMG in the netscape comprehensive tags reference. thereafter will get -# done later - paul - -caseinsensitive - -context default - keyword whole &*; brightgreen/16 - spellcheck - - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword
brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword

brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - keyword brightcyan/17 - - -context brightcyan/17 - keyword = brightred/18 - - keyword "http:*" magenta/22 - keyword "ftp:*" magenta/22 - keyword "news:*" magenta/22 - keyword "mailto:*" magenta/22 - keyword "gopher:*" magenta/22 - keyword "telnet:*" magenta/22 - keyword "file:*" magenta/22 - keyword "javascript:*" magenta/22 - - keyword "Alternate" magenta/22 - keyword "Stylesheet" magenta/22 - keyword "Start" magenta/22 - keyword "Next" magenta/22 - keyword "Prev" magenta/22 - keyword "Contents" magenta/22 - keyword "Index" magenta/22 - keyword "Glossary" magenta/22 - keyword "Copyright" magenta/22 - keyword "Chapter" magenta/22 - keyword "Section" magenta/22 - keyword "Subsection" magenta/22 - keyword "Appendix" magenta/22 - keyword "Help" magenta/22 - keyword "Bookmark" magenta/22 - - keyword "_blank" magenta/22 - keyword "_self" magenta/22 - keyword "_parent" magenta/22 - keyword "_top" magenta/22 - - keyword "*" cyan/5 - -# keyword whole charset yellow/24 -# keyword whole type yellow/24 - keyword whole name yellow/24 - keyword whole href yellow/24 -# keyword whole hreflang yellow/24 -# keyword whole rel yellow/24 -# keyword whole rev yellow/24 - keyword whole shape yellow/24 - keyword whole coords yellow/24 -# keyword whole tabindex yellow/24 -# keyword whole selected yellow/24 - keyword whole target yellow/24 - keyword whole onblur yellow/24 - keyword whole onclick yellow/24 - keyword whole ondblclick yellow/24 - keyword whole onfocus yellow/24 - keyword whole onkeydown yellow/24 - keyword whole onkeypress yellow/24 - keyword whole onkeyup yellow/24 - keyword whole onmousedown yellow/24 - keyword whole onmousemove yellow/24 - keyword whole onmouseout yellow/24 - keyword whole onmouseover yellow/24 - keyword whole onmouseup yellow/24 - - -context
brightcyan/17 - keyword = brightred/18 - - keyword whole class yellow/24 - keyword whole id yellow/24 - keyword whole dir yellow/24 - keyword whole title yellow/24 - keyword whole lang yellow/24 - - keyword whole onblur yellow/24 - keyword whole onclick yellow/24 - keyword whole ondblclick yellow/24 - keyword whole onfocus yellow/24 - keyword whole onkeydown yellow/24 - keyword whole onkeypress yellow/24 - keyword whole onkeyup yellow/24 - keyword whole onmousedown yellow/24 - keyword whole onmousemove yellow/24 - keyword whole onmouseout yellow/24 - keyword whole onmouseover yellow/24 - keyword whole onmouseup yellow/24 - keyword "*" cyan/5 - -context brightcyan/17 - keyword = brightred/18 - - keyword whole class yellow/24 - keyword whole id yellow/24 - keyword whole style yellow/24 - keyword whole title yellow/24 - - keyword whole align yellow/24 - keyword whole alt yellow/24 - keyword whole archive yellow/24 - keyword whole code yellow/24 - keyword whole codebase yellow/24 - keyword whole height yellow/24 - keyword whole hspace yellow/24 - keyword whole mayscript yellow/24 - keyword whole name yellow/24 - keyword whole object yellow/24 - keyword whole vspace yellow/24 - keyword whole width yellow/24 - - keyword "http:*" magenta/22 - keyword "ftp:*" magenta/22 - keyword "news:*" magenta/22 - keyword "mailto:*" magenta/22 - keyword "gopher:*" magenta/22 - keyword "telnet:*" magenta/22 - keyword "file:*" magenta/22 - keyword "javascript:*" magenta/22 - keyword "*.class" magenta/22 - keyword "*" cyan/5 - -context brightcyan/17 - keyword = brightred/18 - -# keyword whole accesskey yellow/24 -# keyword whole alt yellow/24 - keyword whole coords yellow/24 - keyword whole href yellow/24 - keyword whole nohref yellow/24 - keyword whole shape yellow/24 -# keyword whole onfocus yellow/24 -# keyword whole onblur yellow/24 - keyword whole target magenta/22 - keyword "_blank" magenta/22 - keyword "_self" magenta/22 - keyword "_parent" magenta/22 - keyword "_top" magenta/22 - - keyword "DEFAULT" magenta/22 - keyword "CIRCLE" magenta/22 - keyword "POLY" magenta/22 - keyword "POLYGON" magenta/22 - keyword "RECT" magenta/22 - keyword "RECTANGLE" magenta/22 - - keyword "http:*" magenta/22 - keyword "ftp:*" magenta/22 - keyword "news:*" magenta/22 - keyword "gopher:*" magenta/22 - keyword "telnet:*" magenta/22 - keyword "*" cyan/5 - -context brightcyan/17 - keyword = brightred/18 - - keyword whole class yellow/24 - keyword whole id yellow/24 - keyword whole style yellow/24 - keyword whole title yellow/24 - - keyword whole dir yellow/24 - keyword whole lang yellow/24 - - keyword whole onclick yellow/24 - keyword whole ondblclick yellow/24 - keyword whole onkeydown yellow/24 - keyword whole onkeypress yellow/24 - keyword whole onkeyup yellow/24 - keyword whole onmousedown yellow/24 - keyword whole onmousemove yellow/24 - keyword whole onmouseout yellow/24 - keyword whole onmouseover yellow/24 - keyword whole onmouseup yellow/24 - keyword "*" cyan/5 - -context brightcyan/17 - keyword = brightred/18 - - keyword whole href yellow/24 - keyword whole target yellow/24 - keyword "_blank" magenta/22 - keyword "_self" magenta/22 - keyword "_parent" magenta/22 - keyword "_top" magenta/22 - - keyword "http:*" magenta/22 - keyword "ftp:*" magenta/22 - keyword "*" cyan/5 - -context brightcyan/17 - keyword = brightred/18 - keyword " magenta/22 - - keyword whole id yellow/24 - keyword whole size yellow/24 - keyword whole color yellow/24 - keyword whole face yellow/24 - keyword "*" cyan/5 - -context brightcyan/17 - keyword = brightred/18 - - keyword whole class yellow/24 - keyword whole id yellow/24 - keyword whole style yellow/24 - keyword whole title yellow/24 - - keyword whole dir yellow/24 - keyword whole lang yellow/24 - - keyword whole onclick yellow/24 - keyword whole ondblclick yellow/24 - keyword whole onkeydown yellow/24 - keyword whole onkeypress yellow/24 - keyword whole onkeyup yellow/24 - keyword whole onmousedown yellow/24 - keyword whole onmousemove yellow/24 - keyword whole onmouseout yellow/24 - keyword whole onmouseover yellow/24 - keyword whole onmouseup yellow/24 - keyword "*" cyan/5 - - -context
brightcyan/17 - keyword = brightred/18 - - keyword whole class yellow/24 - keyword whole id yellow/24 - keyword whole style yellow/24 - keyword whole title yellow/24 - - keyword whole dir yellow/24 - keyword whole lang yellow/24 - - keyword whole onclick yellow/24 - keyword whole ondblclick yellow/24 - keyword whole onkeydown yellow/24 - keyword whole onkeypress yellow/24 - keyword whole onkeyup yellow/24 - keyword whole onmousedown yellow/24 - keyword whole onmousemove yellow/24 - keyword whole onmouseout yellow/24 - keyword whole onmouseover yellow/24 - keyword whole onmouseup yellow/24 - - keyword whole cite yellow/24 - keyword "*" cyan/5 - - -context brightcyan/17 - keyword = brightred/18 - - keyword whole class yellow/24 - keyword whole id yellow/24 - keyword whole style yellow/24 - keyword whole title yellow/24 - - keyword whole dir yellow/24 - keyword whole lang yellow/24 - - keyword whole onclick yellow/24 - keyword whole ondblclick yellow/24 - keyword whole onkeydown yellow/24 - keyword whole onkeypress yellow/24 - keyword whole onkeyup yellow/24 - keyword whole onmousedown yellow/24 - keyword whole onmousemove yellow/24 - keyword whole onmouseout yellow/24 - keyword whole onmouseover yellow/24 - keyword whole onmouseup yellow/24 - - keyword whole onload yellow/24 - keyword whole onunload yellow/24 - - keyword whole alink yellow/24 - keyword whole background yellow/24 - - keyword "*.gif" brightred/19 - keyword "*.jpg" brightred/19 - keyword "*.png" brightred/19 - keyword "*" cyan/5 - - keyword whole bgcolor yellow/24 - keyword whole link yellow/24 - keyword whole text yellow/24 - keyword whole vlink yellow/24 - -context
brightcyan/17 - keyword = brightred/18 - - keyword whole class yellow/24 - keyword whole id yellow/24 - keyword whole style yellow/24 - keyword whole title yellow/24 - keyword "*" cyan/5 - - -context